From 6bcca052f6b3cd0cff85e6c11963d40a5d2079aa Mon Sep 17 00:00:00 2001 From: eduauto Date: Fri, 13 Jun 2025 11:55:10 +0800 Subject: [PATCH] autoUpdataFile --- index.html | 12 ++++++------ js/public.js | 2 +- layouts__index.1e41d6a3.async.js | 1 + layouts__index.249d1868.async.js | 1 - live-play.html | 2 +- live-push.html | 2 +- office.html | 2 +- p__Agent__Index__index.19bee4ff.async.js | 1 - p__Agent__Index__index.44d18ba1.async.js | 1 + p__IntelligentTools__index.63c45aa2.async.js | 1 + p__IntelligentTools__index.f298f86a.async.js | 1 - ..._KnowledgeGraphs__Index__index.26a11c11.chunk.css | 2 +- p__KnowledgeGraphs__Index__index.64f35c5f.async.js | 1 + p__KnowledgeGraphs__Index__index.89547d17.async.js | 1 - p__SmartResources__index.27af236f.async.js | 1 - p__SmartResources__index.5bf85556.async.js | 1 + umi.0264a7ff.js | 1 + umi.a3a83034.js | 1 - upgrade-browser.html | 6 +++--- 19 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 layouts__index.1e41d6a3.async.js delete mode 100644 layouts__index.249d1868.async.js delete mode 100644 p__Agent__Index__index.19bee4ff.async.js create mode 100644 p__Agent__Index__index.44d18ba1.async.js create mode 100644 p__IntelligentTools__index.63c45aa2.async.js delete mode 100644 p__IntelligentTools__index.f298f86a.async.js rename p__KnowledgeGraphs__Index__index.4ea6bab4.chunk.css => p__KnowledgeGraphs__Index__index.26a11c11.chunk.css (56%) create mode 100644 p__KnowledgeGraphs__Index__index.64f35c5f.async.js delete mode 100644 p__KnowledgeGraphs__Index__index.89547d17.async.js delete mode 100644 p__SmartResources__index.27af236f.async.js create mode 100644 p__SmartResources__index.5bf85556.async.js create mode 100644 umi.0264a7ff.js delete mode 100644 umi.a3a83034.js diff --git a/index.html b/index.html index 1677f70e59..58e7992336 100644 --- a/index.html +++ b/index.html @@ -90,23 +90,23 @@ strVar += ('
'); strVar += (' 1.1 请检查您的电脑是否接入互联网,可以尝试访问百度(https://www.baidu.com),确认链接状态
'); strVar += (' 1.2 如能正常访问互联网,请检查所在网络是否被限流,可以使用工具(https://speedtest.educoder.net/)进行检测。
'); - strVar += (' 1.3 尝试用其他网络访问网站,使用手机网络访问头歌网站(https://www.educoder.net)进行网络对比检测。
'); + strVar += (' 1.3 尝试用其他网络访问网站,使用手机网络访问 网站(https://www.educoder.net)进行网络对比检测。
'); strVar += ('
'); - strVar += (' 如果不能接入互联网(1.1),或本地存在限流(1.2),或手机网络访问正常电脑网络无法访问则可能是您的局域网络中心对头歌网站进行了屏蔽或限流管理,请联系相关管理部门协调解决。'); + strVar += (' 如果不能接入互联网(1.1),或本地存在限流(1.2),或手机网络访问正常电脑网络无法访问则可能是您的局域网络中心对 网站进行了屏蔽或限流管理,请联系相关管理部门协调解决。'); strVar += ('
'); strVar += ('
'); strVar += (' '); strVar += (' 2.如果网络通畅,请再确认您的电脑设置是否有问题,请修改相关设置
'); strVar += ('
'); - strVar += (' 2.1 将您的电脑网络的DNS地址设置为8.8.8.8 或114.114.114.114,然后重新访问头歌网站。如果仍不能访问头歌
'); + strVar += (' 2.1 将您的电脑网络的DNS地址设置为8.8.8.8 或114.114.114.114,然后重新访问 网站。如果仍不能访问
'); strVar += ('
'); strVar += (' 网站,请继续尝试2.2。'); strVar += ('
'); strVar += (' 2.2 清除浏览器缓存后再次访问。'); strVar += ('
'); - strVar += (' 3.如果仍未解决您的问题,请您直接联系头歌团队:
'); + strVar += (' 3.如果仍未解决您的问题,请您直接联系 团队:
'); strVar += ('
'); - strVar += (' 头歌助教:EduCoder003(微信同号),头歌QQ群:727685969。'); + strVar += (' 助教:EduCoder003(微信同号), QQ群:727685969。'); strVar += ('
'); strVar += (' '); @@ -173,7 +173,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/js/public.js b/js/public.js index f167486f9e..6268feabe7 100644 --- a/js/public.js +++ b/js/public.js @@ -277,7 +277,7 @@ function showTip(){ strVar += " 您当前的网络不稳定,请尝试以下解决方法:"; strVar += " 1. 请检查您的网络是否正常,如访问百度(https:\/\/www.baidu.com<\/a>)"; strVar += " 2. 访问其他网络正常,请检查网络是否存在限流,测试地址xxxx"; - strVar += " 3. 尝试使用手机网络访问头歌(https:\/\/www.educoder.net<\/a>),若手机网络可以访问请继续尝试第3步"; + strVar += " 3. 尝试使用手机网络访问 (https:\/\/www.educoder.net<\/a>),若手机网络可以访问请继续尝试第3步"; strVar += " 4. 修改电脑网路DNS地址为8.8.8.8 或114.114.114.114后刷新页面重新访问"; strVar += " 5. 清除浏览器缓存后再次访问"; strVar += " <\/pre>"; diff --git a/layouts__index.1e41d6a3.async.js b/layouts__index.1e41d6a3.async.js new file mode 100644 index 0000000000..a7363757f8 --- /dev/null +++ b/layouts__index.1e41d6a3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1717],{89489:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},40001:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},49198:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},84105:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},18785:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},15277:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},33853:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},62772:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},38819:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},47472:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},35593:function(e,t,n){n.d(t,{Z:function(){return G}});var r=n(20439),o=n(50298),i=n(62646),a=n(43403),l=n(92310),c=n.n(l),s=n(29301),u=n(76846),d=n(96452),p=n(6089),f=n(80402),m=n(34280),g=n(49658),h=n(59301),v=n(14809),b=n(77900),y=n(8654);function x(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,u=void 0===s?0:s,d=o.y,p=void 0===d?0:d,f=h.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],x=v[0],w=v[1];b!==x&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=u}return h.createElement("div",{ref:f,className:c()("".concat(t,"-arrow"),a),style:m},l)}function w(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:c()("".concat(t,"-mask"),n)})})):null}var C=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var S=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,S=e.onClick,$=e.mask,E=e.arrow,k=e.arrowPos,I=e.align,Z=e.motion,N=e.maskMotion,O=e.forceRender,j=e.getPopupContainer,M=e.autoDestroy,P=e.portal,R=e.zIndex,z=e.onMouseEnter,T=e.onMouseLeave,L=e.onPointerEnter,D=e.ready,B=e.offsetX,A=e.offsetY,_=e.offsetR,H=e.offsetB,K=e.onAlign,F=e.onPrepare,W=e.stretch,V=e.targetWidth,X=e.targetHeight,G="function"==typeof n?n():n,Y=p||f,q=(null==j?void 0:j.length)>0,U=h.useState(!j||!q),Q=(0,o.Z)(U,2),J=Q[0],ee=Q[1];if((0,m.Z)((function(){!J&&q&&u&&ee(!0)}),[J,q,u]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(D||!p){var re,oe=I.points,ie=I.dynamicInset||(null===(re=I._experimental)||void 0===re?void 0:re.dynamicInset),ae=ie&&"r"===oe[0][1],le=ie&&"b"===oe[0][0];ae?(ne.right=_,ne.left=te):(ne.left=B,ne.right=te),le?(ne.bottom=H,ne.top=te):(ne.top=A,ne.bottom=te)}var ce={};return W&&(W.includes("height")&&X?ce.height=X:W.includes("minHeight")&&X&&(ce.minHeight=X),W.includes("width")&&V?ce.width=V:W.includes("minWidth")&&V&&(ce.minWidth=V)),p||(ce.pointerEvents="none"),h.createElement(P,{open:O||Y,getContainer:j&&function(){return j(u)},autoDestroy:M},h.createElement(w,{prefixCls:a,open:p,zIndex:R,mask:$,motion:N}),h.createElement(s.Z,{onResize:K,disabled:!p},(function(e){return h.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(a,"-hidden")},Z,{onAppearPrepare:F,onEnterPrepare:F,visible:p,onVisibleChanged:function(e){var t;null==Z||null===(t=Z.onVisibleChanged)||void 0===t||t.call(Z,e),d(e)}}),(function(n,o){var s=n.className,u=n.style,d=c()(a,s,i);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(k.x||0,"px"),"--arrow-y":"".concat(k.y||0,"px")},ne),ce),u),{},{boxSizing:"border-box",zIndex:R},l),onMouseEnter:z,onMouseLeave:T,onPointerEnter:L,onClick:S},E&&h.createElement(x,{prefixCls:a,arrow:E,arrowPos:k,align:I}),h.createElement(C,{cache:!p&&!g},G))}))})))}));var $=h.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=h.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,n.ref);return o?h.cloneElement(n,{ref:a}):n})),E=h.createContext(null);function k(e){return e?Array.isArray(e)?e:[e]:[]}function I(e,t,n,r){return h.useMemo((function(){var o=k(null!=n?n:t),i=k(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}var Z=n(29194);function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function O(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function z(e){return R(parseFloat(e),0)}function T(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=M(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=z(i),g=z(a),h=z(l),v=z(c),b=R(Math.round(s.width/p*1e3)/1e3),y=R(Math.round(s.height/u*1e3)/1e3),x=(p-f-h-v)*b,w=(u-d-m-g)*y,C=m*y,S=g*y,$=h*b,E=v*b,k=0,I=0;if("clip"===r){var Z=z(o);k=Z*b,I=Z*y}var N=s.x+$-k,O=s.y+C-I,j=N+s.width+2*k-$-E-x,P=O+s.height+2*I-C-S-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,O),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,P)}})),n}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function D(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[L(e.width,i),L(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function A(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function _(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function H(e,t,n,i,a,l,c){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,o.Z)(s,2),f=d[0],g=d[1],v=h.useRef(0),b=h.useMemo((function(){return t?P(t):[]}),[t]),y=h.useRef({});e||(y.current={});var x=(0,p.Z)((function(){if(t&&n&&e){var s,d,p,f=t,m=f.ownerDocument,h=M(f).getComputedStyle(f),v=h.width,x=h.height,w=h.position,C=f.style.left,S=f.style.top,$=f.style.right,E=f.style.bottom,k=f.style.overflow,I=(0,r.Z)((0,r.Z)({},a[i]),l),N=m.createElement("div");if(null===(s=f.parentElement)||void 0===s||s.appendChild(N),N.style.left="".concat(f.offsetLeft,"px"),N.style.top="".concat(f.offsetTop,"px"),N.style.position=w,N.style.height="".concat(f.offsetHeight,"px"),N.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();p={x:O.x,y:O.y,width:O.width,height:O.height}}var j=f.getBoundingClientRect(),P=m.documentElement,z=P.clientWidth,L=P.clientHeight,H=P.scrollWidth,K=P.scrollHeight,F=P.scrollTop,W=P.scrollLeft,V=j.height,X=j.width,G=p.height,Y=p.width,q={left:0,top:0,right:z,bottom:L},U={left:-W,top:-F,right:H-W,bottom:K-F},Q=I.htmlRegion,J="visible",ee="visibleFirst";"scroll"!==Q&&Q!==ee&&(Q=J);var te=Q===ee,ne=T(U,b),re=T(q,b),oe=Q===J?re:ne,ie=te?re:oe;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var ae=f.getBoundingClientRect();f.style.left=C,f.style.top=S,f.style.right=$,f.style.bottom=E,f.style.overflow=k,null===(d=f.parentElement)||void 0===d||d.removeChild(N);var le=R(Math.round(X/parseFloat(v)*1e3)/1e3),ce=R(Math.round(V/parseFloat(x)*1e3)/1e3);if(0===le||0===ce||(0,u.Sh)(n)&&!(0,Z.Z)(n))return;var se=I.offset,ue=I.targetOffset,de=D(j,se),pe=(0,o.Z)(de,2),fe=pe[0],me=pe[1],ge=D(p,ue),he=(0,o.Z)(ge,2),ve=he[0],be=he[1];p.x-=ve,p.y-=be;var ye=I.points||[],xe=(0,o.Z)(ye,2),we=xe[0],Ce=B(xe[1]),Se=B(we),$e=A(p,Ce),Ee=A(j,Se),ke=(0,r.Z)({},I),Ie=$e.x-Ee.x+fe,Ze=$e.y-Ee.y+me;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,r=j.x+e,o=j.y+t,i=r+X,a=o+V,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Ne,Oe,je,Me,Pe=wt(Ie,Ze),Re=wt(Ie,Ze,re),ze=A(p,["t","l"]),Te=A(j,["t","l"]),Le=A(p,["b","r"]),De=A(j,["b","r"]),Be=I.overflow||{},Ae=Be.adjustX,_e=Be.adjustY,He=Be.shiftX,Ke=Be.shiftY,Fe=function(e){return"boolean"==typeof e?e:e>=0};function Ct(){Ne=j.y+Ze,Oe=Ne+V,je=j.x+Ie,Me=je+X}Ct();var We=Fe(_e),Ve=Se[0]===Ce[0];if(We&&"t"===Se[0]&&(Oe>ie.bottom||y.current.bt)){var Xe=Ze;Ve?Xe-=V-G:Xe=ze.y-De.y-me;var Ge=wt(Ie,Xe),Ye=wt(Ie,Xe,re);Ge>Pe||Ge===Pe&&(!te||Ye>=Re)?(y.current.bt=!0,Ze=Xe,me=-me,ke.points=[_(Se,0),_(Ce,0)]):y.current.bt=!1}if(We&&"b"===Se[0]&&(NePe||Ue===Pe&&(!te||Qe>=Re)?(y.current.tb=!0,Ze=qe,me=-me,ke.points=[_(Se,0),_(Ce,0)]):y.current.tb=!1}var Je=Fe(Ae),et=Se[1]===Ce[1];if(Je&&"l"===Se[1]&&(Me>ie.right||y.current.rl)){var tt=Ie;et?tt-=X-Y:tt=ze.x-De.x-fe;var nt=wt(tt,Ze),rt=wt(tt,Ze,re);nt>Pe||nt===Pe&&(!te||rt>=Re)?(y.current.rl=!0,Ie=tt,fe=-fe,ke.points=[_(Se,1),_(Ce,1)]):y.current.rl=!1}if(Je&&"r"===Se[1]&&(jePe||it===Pe&&(!te||at>=Re)?(y.current.lr=!0,Ie=ot,fe=-fe,ke.points=[_(Se,1),_(Ce,1)]):y.current.lr=!1}Ct();var lt=!0===He?0:He;"number"==typeof lt&&(jere.right&&(Ie-=Me-re.right-fe,p.x>re.right-lt&&(Ie+=p.x-re.right+lt)));var ct=!0===Ke?0:Ke;"number"==typeof ct&&(Nere.bottom&&(Ze-=Oe-re.bottom-me,p.y>re.bottom-ct&&(Ze+=p.y-re.bottom+ct)));var st=j.x+Ie,ut=st+X,dt=j.y+Ze,pt=dt+V,ft=p.x,mt=ft+Y,gt=p.y,ht=gt+G,vt=(Math.max(st,ft)+Math.min(ut,mt))/2-st,bt=(Math.max(dt,gt)+Math.min(pt,ht))/2-dt;null==c||c(t,ke);var yt=ae.right-j.x-(Ie+j.width),xt=ae.bottom-j.y-(Ze+j.height);g({ready:!0,offsetX:Ie/le,offsetY:Ze/ce,offsetR:yt/le,offsetB:xt/ce,arrowX:vt/le,arrowY:bt/ce,scaleX:le,scaleY:ce,align:ke})}})),w=function(){g((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,m.Z)(w,[i]),(0,m.Z)((function(){e||w()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&x()}))}]}var K=n(95190);function F(e,t,n,r,o){(0,m.Z)((function(){if(e&&t&&n){var i=n,a=P(t),l=P(i),c=M(i),s=new Set([c].concat((0,K.Z)(a),(0,K.Z)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}n(48736);var W=n(16089);function V(e,t,n,r,i,a,l,c){var s=h.useRef(e),u=h.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),h.useEffect((function(){var e=(0,W.Z)((function(){u.current=!1}));return function(){W.Z.cancel(e)}}),[e]),h.useEffect((function(){if(t&&r&&(!i||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=l(n)},function(t){var n=t.target;u.current||!s.current||e||l(n)||c(!1)}]},p=e(),f=(0,o.Z)(p,2),m=f[0],g=f[1],h=e(),v=(0,o.Z)(h,2),b=v[0],y=v[1],x=M(r);x.addEventListener("mousedown",m,!0),x.addEventListener("click",g,!0),x.addEventListener("contextmenu",g,!0);var w=(0,d.A)(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){x.removeEventListener("mousedown",m,!0),x.removeEventListener("click",g,!0),x.removeEventListener("contextmenu",g,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0))}}}),[t,n,r,i,a])}var X=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,x=t.showAction,w=t.hideAction,C=t.popupVisible,k=t.defaultPopupVisible,Z=t.onPopupVisibleChange,N=t.afterPopupVisibleChange,M=t.mouseEnterDelay,P=t.mouseLeaveDelay,R=void 0===P?.1:P,z=t.focusDelay,T=t.blurDelay,L=t.mask,D=t.maskClosable,B=void 0===D||D,A=t.getPopupContainer,_=t.forceRender,K=t.autoDestroy,W=t.destroyPopupOnHide,G=t.popup,Y=t.popupClassName,q=t.popupStyle,U=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,le=t.onPopupAlign,ce=t.arrow,se=t.popupMotion,ue=t.maskMotion,de=t.popupTransitionName,pe=t.popupAnimation,fe=t.maskTransitionName,me=t.maskAnimation,ge=t.className,he=t.getTriggerDOMNode,ve=(0,i.Z)(t,X),be=K||W||!1,ye=h.useState(!1),xe=(0,o.Z)(ye,2),we=xe[0],Ce=xe[1];(0,m.Z)((function(){Ce((0,g.Z)())}),[]);var Se=h.useRef({}),$e=h.useContext(E),Ee=h.useMemo((function(){return{registerSubPopup:function(e,t){Se.current[e]=t,null==$e||$e.registerSubPopup(e,t)}}}),[$e]),ke=(0,f.Z)(),Ie=h.useState(null),Ze=(0,o.Z)(Ie,2),Ne=Ze[0],Oe=Ze[1],je=(0,p.Z)((function(e){(0,u.Sh)(e)&&Ne!==e&&Oe(e),null==$e||$e.registerSubPopup(ke,e)})),Me=h.useState(null),Pe=(0,o.Z)(Me,2),Re=Pe[0],ze=Pe[1],Te=h.useRef(null),Le=(0,p.Z)((function(e){(0,u.Sh)(e)&&Re!==e&&(ze(e),Te.current=e)})),De=h.Children.only(v),Be=(null==De?void 0:De.props)||{},Ae={},_e=(0,p.Z)((function(e){var t,n,r=Re;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Ne?void 0:Ne.contains(e))||(null===(n=(0,d.A)(Ne))||void 0===n?void 0:n.host)===e||e===Ne||Object.values(Se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),He=j(l,se,pe,de),Ke=j(l,ue,me,fe),Fe=h.useState(k||!1),We=(0,o.Z)(Fe,2),Ve=We[0],Xe=We[1],Ge=null!=C?C:Ve,Ye=(0,p.Z)((function(e){void 0===C&&Xe(e)}));(0,m.Z)((function(){Xe(C||!1)}),[C]);var qe=h.useRef(Ge);qe.current=Ge;var Ue=h.useRef([]);Ue.current=[];var Qe=(0,p.Z)((function(e){var t;Ye(e),(null!==(t=Ue.current[Ue.current.length-1])&&void 0!==t?t:Ge)!==e&&(Ue.current.push(e),null==Z||Z(e))})),Je=h.useRef(),et=function(){clearTimeout(Je.current)},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;et(),0===t?Qe(e):Je.current=setTimeout((function(){Qe(e)}),1e3*t)};h.useEffect((function(){return et}),[]);var nt=h.useState(!1),rt=(0,o.Z)(nt,2),ot=rt[0],it=rt[1];(0,m.Z)((function(e){e&&!Ge||it(!0)}),[Ge]);var at=h.useState(null),lt=(0,o.Z)(at,2),ct=lt[0],st=lt[1],ut=h.useState([0,0]),dt=(0,o.Z)(ut,2),pt=dt[0],ft=dt[1],mt=function(e){ft([e.clientX,e.clientY])},gt=H(Ge,Ne,ie?pt:Re,U,J,ee,le),ht=(0,o.Z)(gt,11),vt=ht[0],bt=ht[1],yt=ht[2],xt=ht[3],wt=ht[4],Ct=ht[5],St=ht[6],$t=ht[7],Et=ht[8],kt=ht[9],It=ht[10],Zt=I(we,y,x,w),Nt=(0,o.Z)(Zt,2),Ot=Nt[0],jt=Nt[1],Mt=Ot.has("click"),Pt=jt.has("click")||jt.has("contextMenu"),Rt=(0,p.Z)((function(){ot||It()}));F(Ge,Re,Ne,Rt,(function(){qe.current&&ie&&Pt&&tt(!1)})),(0,m.Z)((function(){Rt()}),[pt,U]),(0,m.Z)((function(){!Ge||null!=J&&J[U]||Rt()}),[JSON.stringify(ee)]);var zt=h.useMemo((function(){var e=O(J,l,kt,ie);return c()(e,null==re?void 0:re(kt))}),[kt,re,J,l,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Te.current,forceAlign:Rt}}));var Tt=h.useState(0),Lt=(0,o.Z)(Tt,2),Dt=Lt[0],Bt=Lt[1],At=h.useState(0),_t=(0,o.Z)(At,2),Ht=_t[0],Kt=_t[1],Ft=function(){if(ne&&Re){var e=Re.getBoundingClientRect();Bt(e.width),Kt(e.height)}};function Wt(e,t,n,r){Ae[e]=function(o){var i;null==r||r(o),tt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;"function"==typeof SuppressedError&&SuppressedError;var b=n(92310),y=n.n(b),x=n(59301),w=function(){var e=(0,x.useRef)(!1);return(0,x.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var C=function(e){var t=w(),n=v((0,x.useState)(e),2),r=n[0],o=n[1];return[r,(0,x.useCallback)((function(e){t.current||o(e)}),[])]};var S=function(e){var t=(0,x.useRef)(e);return t.current=e,t},$=function(e){(0,x.useEffect)((function(){e()}),[])};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 42px;\n height: var(--rcsc-control-height, 42px);\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-load-failed {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha-load-failed {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: #ccc;\n font-size: 85px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n border-radius: var(--rcsc-panel-border-radius, 2px);\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n");var E="rc-slider-captcha";function k(e){var t=0,n=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,n=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,n=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY),{clientX:t,clientY:n}}function I(e,t){if(void 0===t&&(t={}),e)for(var n in t)e.style[n]=t[n]}var Z="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener,N=Z&&"onpointerdown"in window,O=Z&&"ontouchstart"in window;function j(e,t){return"number"==typeof e&&!Number.isNaN(e)&&"number"==typeof t&&t>0?Number(e.toFixed(t)):e}var M="".concat(E,"-button"),P=function(e){var t,n=e.className,r=e.disabled,o=e.active,i=e.success,a=e.error,l=e.verify,c=e.buttonRef,s=m(e,["className","disabled","active","success","error","verify","buttonRef"]);return x.createElement("span",f({className:y()(M,n,(t={},t["".concat(M,"-disabled")]=r,t["".concat(M,"-active")]=o,t["".concat(M,"-verify")]=l,t["".concat(M,"-success")]=i,t["".concat(M,"-error")]=a,t["".concat(M,"-pc")]=!O,t)),ref:c},s))};P.displayName="SliderButton";var R,z="".concat(E,"-icon"),T=function(e){var t,n=e.className,r=e.spin,o=m(e,["className","spin"]);return x.createElement("span",f({className:y()(z,(t={},t["".concat(z,"-spin")]=r,t),n)},o))},L={arrowRight:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),x.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))}),null),check:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))}),null),loading:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),x.createElement("defs",null,x.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),x.createElement("g",null,x.createElement("use",{xlinkHref:"#l",opacity:".27"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))}),null),refresh:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))}),null),x:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))}),null),imageFill:x.createElement((function(e){return x.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16"},e),x.createElement("path",{d:"M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}))}),null)},D=function(e){var t=e.type,n=m(e,["type"]);return x.createElement(T,f({},n),L[t])};!function(e){e[e.Default=1]="Default",e[e.Loading=2]="Loading",e[e.Moving=3]="Moving",e[e.Verify=4]="Verify",e[e.Success=5]="Success",e[e.Error=6]="Error",e[e.LoadFailed=7]="LoadFailed"}(R||(R={}));var B,A="".concat(E,"-control"),_=function(e){var t,n=e.status,r=void 0===n?R.Default:n,o=e.isLimitErrors,i=e.tipText,a=e.tipIcon,l=e.sliderButtonProps,c=e.indicatorProps,s=e.controlRef,u=m(e,["status","isLimitErrors","tipText","tipIcon","sliderButtonProps","indicatorProps","controlRef"]),d=(0,x.useRef)(null),p=(0,x.useRef)(null),g=(0,x.useRef)(null),h=(0,x.useRef)({}),v=(0,x.useMemo)((function(){return f({default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:x.createElement(x.Fragment,null,x.createElement(D,{type:"x",style:{fontSize:20}})," 失败过多,点击重试"),loadFailed:"加载失败,点击重试"},i)}),[i]),b=(0,x.useMemo)((function(){return f({default:x.createElement(D,{type:"arrowRight"}),loading:x.createElement(D,{type:"loading",spin:!0}),error:x.createElement(D,{type:"x"}),success:x.createElement(D,{type:"check"})},a)}),[a]),w=(0,x.useMemo)((function(){var e;return(e={})[R.Default]=[v.default,b.default],e[R.Loading]=[v.loading,b.default],e[R.Moving]=[v.moving,b.default],e[R.Verify]=[v.verifying,b.loading],e[R.Error]=[v.error,b.error],e[R.Success]=[v.success,b.success],e[R.LoadFailed]=[v.loadFailed,b.default],e}),[v,b]),C=function(e){var t;return(e||"number"!=typeof h.current.sliderButtonWidth)&&(h.current.sliderButtonWidth=(null===(t=p.current)||void 0===t?void 0:t.clientWidth)||40),h.current.sliderButtonWidth},S=function(e){if(e||"number"!=typeof h.current.indicatorBorderWidth)if(g.current){var t=window.getComputedStyle(g.current);h.current.indicatorBorderWidth=parseInt(t.borderLeftWidth)+parseInt(t.borderRightWidth)}else h.current.indicatorBorderWidth=2;return h.current.indicatorBorderWidth},$=function(e){var t;return!e&&h.current.rect||d.current&&(h.current.rect=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect()),h.current.rect};(0,x.useImperativeHandle)(s,(function(){return{getSliderButtonWidth:C,getIndicatorBorderWidth:S,getRect:$,updateLeft:function(e){var t=C(),n=S();I(p.current,{left:e+"px"}),I(g.current,{width:e+t+n+"px"})}}}),[]);var E=r===R.Loading,k=r===R.Moving,Z=r===R.Verify,N=r===R.Success,O=r===R.Error,j=r===R.LoadFailed,M=o?v.errors:w[r][0];return x.createElement("div",f({},u,{className:y()(A,(t={},t["".concat(A,"-loading")]=E,t["".concat(A,"-moving")]=k,t["".concat(A,"-verify")]=Z,t["".concat(A,"-success")]=N,t["".concat(A,"-error")]=O,t["".concat(A,"-errors")]=o,t["".concat(A,"-load-failed")]=j,t),u.className),ref:d}),x.createElement("div",f({},c,{className:y()("".concat(A,"-indicator"),null==c?void 0:c.className),ref:g})),x.createElement(P,f({},l,{className:y()("".concat(A,"-button"),null==l?void 0:l.className),disabled:E,active:k,verify:Z,success:N,error:O,buttonRef:p}),w[r][1]),x.createElement("div",{className:y()("".concat(A,"-tips")),style:M?{}:{display:"none"}},M))},H="".concat(E,"-loading"),K=function(e){var t=e.icon,n=void 0===t?x.createElement(D,{type:"loading",spin:!0}):t,r=e.text,o=void 0===r?"加载中...":r,i=e.className,a=m(e,["icon","text","className"]);return x.createElement("div",f({className:y()(H,i)},a),x.createElement("div",{className:"".concat(H,"-icon")},n),x.createElement("div",{className:"".concat(H,"-text")},o))},F="".concat(E,"-jigsaw"),W={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},loadFailedIcon:x.createElement(D,{type:"imageFill"}),refreshIcon:x.createElement(D,{type:"refresh"})},V=function(e){var t,n,r=e.status,o=e.bgSize,i=void 0===o?W.bgSize:o,a=e.puzzleSize,l=void 0===a?W.puzzleSize:a,c=e.bgUrl,s=e.puzzleUrl,u=e.bgImgProps,d=e.puzzleImgProps,p=e.jigsawRef,g=e.loadingBoxProps,h=e.loadFailedIcon,v=void 0===h?W.loadFailedIcon:h,b=e.showRefreshIcon,w=void 0===b||b,C=e.refreshIcon,S=void 0===C?W.refreshIcon:C,$=e.disabledRefresh,k=e.onRefresh,Z=e.style,N=e.className,O=e.children,j=m(e,["status","bgSize","puzzleSize","bgUrl","puzzleUrl","bgImgProps","puzzleImgProps","jigsawRef","loadingBoxProps","loadFailedIcon","showRefreshIcon","refreshIcon","disabledRefresh","onRefresh","style","className","children"]),M=(0,x.useRef)(null);if((0,x.useImperativeHandle)(p,(function(){return{updateLeft:function(e){I(M.current,{left:e+"px"})}}})),r===R.Loading)return x.createElement(K,f({},g,{style:f(f({},null==g?void 0:g.style),i)}));if(r===R.LoadFailed||!c||!s)return x.createElement("div",{className:"".concat(E,"-load-failed"),style:i},v);var P=r===R.Verify||r===R.Error||r===R.Success;return x.createElement("div",f({className:y()(F,(t={},t["".concat(F,"-stop")]=P,t),N),style:f(f({},Z),i)},j),x.createElement("img",f({src:c,alt:""},u,{className:y()("".concat(F,"-bg"),null==u?void 0:u.className),style:f(f({},null==u?void 0:u.style),i)})),x.createElement("img",f({src:s,alt:""},d,{className:y()("".concat(F,"-puzzle"),null==d?void 0:d.className),style:f(f({},null==d?void 0:d.style),l),ref:M})),w&&r!==R.Success&&S&&x.createElement("div",{className:y()("".concat(F,"-refresh"),(n={},n["".concat(F,"-refresh-disabled")]=r===R.Verify||$,n)),onClick:function(){r===R.Verify||$||null==k||k()}},S),O)},X=N?{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}:O?{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}:{start:"mousedown",move:"mousemove",end:"mouseup",cancel:"touchcancel"},G=N?"onPointerDown":O?"onTouchStart":"onMouseDown";!function(e){e.Puzzle="puzzle",e.Button="button"}(B||(B={}));var Y=function(e){var t,n,r,o=e.mode,i=void 0===o?"embed":o,a=e.limitErrorCount,l=void 0===a?0:a,c=e.tipText,s=e.tipIcon,u=e.refreshIcon,d=e.bgSize,p=e.puzzleSize,m=e.request,v=e.autoRequest,b=void 0===v||v,w=e.onVerify,Z=e.autoRefreshOnError,N=void 0===Z||Z,M=e.actionRef,P=e.showRefreshIcon,z=void 0===P||P,T=e.jigsawContent,L=e.errorHoldDuration,D=void 0===L?500:L,A=e.loadingDelay,H=void 0===A?0:A,K=e.placement,F=void 0===K?"top":K,Y=e.loadingBoxProps,q=e.sliderButtonProps,U=e.precision,Q=void 0===U?7:U,J=e.className,ee=e.style,te=e.styles,ne=C(),re=ne[0],oe=ne[1],ie=C(R.Default),ae=ie[0],le=ie[1],ce=S(ae),se=(0,x.useRef)(null),ue=(0,x.useRef)(null),de=(0,x.useRef)(null),pe=(0,x.useMemo)((function(){return"float"===i||"slider"===i?i:"embed"}),[i]),fe=(0,x.useMemo)((function(){return void 0!==u?u:void 0!==(null==s?void 0:s.refresh)?s.refresh:void 0}),[u,s]),me=(0,x.useMemo)((function(){return f(f({},W.bgSize),d)}),[d]),ge=(0,x.useMemo)((function(){return f(f({},W.puzzleSize),p)}),[p]),he=(0,x.useMemo)((function(){return"bottom"===F?"top":"bottom"}),[F]),ve=(0,x.useRef)({isPressed:!1,trail:[],errorCount:0,startInfo:{x:0,y:0,timestamp:0},currentTargetType:B.Button,floatTransitionTimer:null,floatDelayShowTimer:null,floatDelayHideTimer:null,refreshTimer:null,loadingTimer:null,sliderButtonWidth:40,indicatorBorderWidth:2,ratio:1,buttonMaxDistance:0,puzzleMaxDistance:0}),be="slider"===pe,ye="number"==typeof H&&H>0,xe=ae===R.Error&&l>0&&ve.current.errorCount>=l,we=function(){var e;return(null===(e=se.current)||void 0===e?void 0:e.getRect(!0).height)||42},Ce=function(){return g(void 0,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:if(be)return[2];if(!m)return[3,4];ye?ve.current.loadingTimer=setTimeout((function(){le(R.Loading)}),H):le(R.Loading),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,m()];case 2:return e=t.sent(),ye&&clearTimeout(ve.current.loadingTimer),oe(e),le(R.Default),[3,4];case 3:return t.sent(),ye&&clearTimeout(ve.current.loadingTimer),le(R.LoadFailed),[3,4];case 4:return[2]}}))}))},Se=function(e){void 0===e&&(e=300),"float"===pe&&ce.current!==R.Success&&(clearTimeout(ve.current.floatTransitionTimer),clearTimeout(ve.current.floatDelayHideTimer),clearTimeout(ve.current.floatDelayShowTimer),ve.current.floatDelayShowTimer=setTimeout((function(){var e,t;I(de.current,{display:"block"}),null==(t=de.current)||t.scrollTop;var n=we()+"px";I(de.current,((e={})[he]=n,e.opacity="1",e))}),e))},$e=function(e){void 0===e&&(e=300),"float"===pe&&(clearTimeout(ve.current.floatTransitionTimer),clearTimeout(ve.current.floatDelayHideTimer),clearTimeout(ve.current.floatDelayShowTimer),ve.current.floatDelayHideTimer=setTimeout((function(){var e,t=we()/2+"px";I(de.current,((e={})[he]=t,e.opacity="0",e)),ve.current.floatTransitionTimer=setTimeout((function(){I(de.current,{display:"none"})}),300)}),e))},Ee=function(e){var t;be||null===(t=ue.current)||void 0===t||t.updateLeft(e)},ke=function(){var e;ve.current.isPressed=!1,le(R.Default),null===(e=se.current)||void 0===e||e.updateLeft(0),Ee(ge.left)},Ie=function(e){void 0===e&&(e=!1),e&&(ve.current.errorCount=0),clearTimeout(ve.current.refreshTimer),ce.current!==R.Loading&&(ke(),Ce())},Ze=function(e){if(ce.current===R.Default){e.preventDefault();var t=k(e),n=t.clientX,r=t.clientY;ve.current.startInfo={x:n,y:r,timestamp:(new Date).getTime()},ve.current.trail=[[n,r]],se.current&&(ve.current.sliderButtonWidth=se.current.getSliderButtonWidth(!0),ve.current.indicatorBorderWidth=se.current.getIndicatorBorderWidth(!0)),ve.current.buttonMaxDistance=me.width-ve.current.sliderButtonWidth-ve.current.indicatorBorderWidth,ve.current.puzzleMaxDistance=me.width-ge.width-ge.left,ve.current.ratio=ve.current.puzzleMaxDistance/ve.current.buttonMaxDistance,ve.current.currentTargetType===B.Puzzle&&(ve.current.ratio=1/ve.current.ratio),(O||"pen"===e.pointerType||"touch"===e.pointerType)&&Se(0),ve.current.isPressed=!0,document.addEventListener(X.move,Ne),document.addEventListener(X.end,Oe),document.addEventListener(X.cancel,Oe)}},Ne=function(e){var t;if(ve.current.isPressed){e.preventDefault();var n=k(e),r=n.clientX,o=n.clientY,i=r-ve.current.startInfo.x;ve.current.trail.push([r,o]),ce.current!==R.Moving&&i>0&&le(R.Moving);var a=i,l=i;ve.current.currentTargetType===B.Puzzle?(a=(i=Math.max(0,Math.min(i,ve.current.puzzleMaxDistance)))+ge.left,l=i*ve.current.ratio):(l=i=Math.max(0,Math.min(i,ve.current.buttonMaxDistance)),a=i*ve.current.ratio+ge.left),null===(t=se.current)||void 0===t||t.updateLeft(l),Ee(a)}},Oe=function(e){if(document.removeEventListener(X.move,Ne),document.removeEventListener(X.end,Oe),document.removeEventListener(X.cancel,Oe),ve.current.isPressed){if(ce.current!==R.Moving)return ve.current.isPressed=!1,void(O&&$e());if(w){ve.current.isPressed=!1,le(R.Verify);var t=(new Date).getTime(),n=k(e),r=n.clientX,o=n.clientY-ve.current.startInfo.y,i=r-ve.current.startInfo.x,a=i;ve.current.currentTargetType===B.Puzzle?a=(i=Math.max(0,Math.min(i,ve.current.puzzleMaxDistance)))*ve.current.ratio:(a=i=Math.max(0,Math.min(i,ve.current.buttonMaxDistance)),i*=ve.current.ratio),w({x:j(i,Q),y:j(o,Q),sliderOffsetX:j(a,Q),duration:t-ve.current.startInfo.timestamp,trail:ve.current.trail,targetType:ve.current.currentTargetType,errorCount:ve.current.errorCount}).then((function(){ve.current.errorCount=0,le(R.Success),$e()})).catch((function(){ve.current.errorCount+=1,le(R.Error),(O||"pen"===e.pointerType||"touch"===e.pointerType)&&$e(),(l<=0||ve.current.errorCount0)&&(r.forEach((function(e){e.wrap.apply(e.context,t)})),!0)},e}(),U={},Q=function(){function e(e){void 0===e&&(e="default"),this.scope=e,U[this.scope]||(U[this.scope]={}),this.data=U[this.scope]}return e.prototype.getItem=function(e){return e in this.data?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=t},e.prototype.removeItem=function(e){delete this.data[e]},e.prototype.clear=function(){U[this.scope]={},this.data=U[this.scope]},e}();function J(e){try{var t="object"==typeof e&&null!==e&&!!e.setItem&&!!e.getItem&&!!e.removeItem;if(t){var n=Math.random().toString(16).substring(2,8)+(new Date).getTime();if(e.setItem(n,"1"),"1"!==e.getItem(n))return!1;e.removeItem(n)}return t}catch(t){return console.error("[cache2] ".concat(e," is not supported. The default memory cache will be used.")),!1}}var ee=function(){function e(e,t){void 0===t&&(t={});var n=!!e&&J(e);this.options=f({needParsed:n,prefix:""},t),this.storage=n?e:new Q(this.options.memoryScope)}return e.prototype.getKey=function(e){return this.options.prefix+e},e.prototype.get=function(e){var t=this.storage.getItem(this.getKey(e));return this.options.needParsed?function(e,t){try{return JSON.parse(e,t)}catch(t){return e}}(t,this.options.reviver):t},e.prototype.set=function(e,t){this.storage.setItem(this.getKey(e),this.options.needParsed?function(e,t){return JSON.stringify(e,t)}(t,this.options.replacer):t)},e.prototype.del=function(e){this.storage.removeItem(this.getKey(e))},e.prototype.clear=function(){"function"==typeof this.storage.clear&&this.storage.clear()},e}(),te="default",ne=function(e){function t(t,n){var r,o=e.call(this)||this,i=te;return"string"==typeof t?i=t||te:"object"==typeof t&&(r=t),r||"object"!=typeof n||(r=n),o.options=f({max:-1,stdTTL:0,maxStrategy:"limited",checkperiod:0,prefix:"cache2_"},r),o.storage=new ee(o.options.storage,f({memoryScope:i},o.options)),o.cacheKey=i,o.startCheckperiod(),o}return p(t,e),t.prototype._check=function(e,t){var n=!0;return 0!==t.t&&t.t0?n+r:0,n:n}},t.prototype._isLimited=function(e){return this.options.max>-1&&e>=this.options.max},t.prototype._getReplaceKey=function(e,t){var n=e[0];return e.forEach((function(e){(t[e].t0&&this.setCacheValues(n),r},t.prototype.clear=function(){this.storage.del(this.cacheKey)},t.prototype.keys=function(){var e=this,t=this.cacheValues;return Object.keys(t).filter((function(n){return e._check(n,t[n])}))},t.prototype.has=function(e){var t=this.cacheValues[e];return!(!t||!this._check(e,t))},t.prototype.take=function(e){var t,n=this.cacheValues[e];return n&&this._check(e,n)&&(t=n.v,this.del(e)),t},t.prototype.ttl=function(e,t){var n=this.cacheValues,r=n[e];return!(!r||!this._check(e,r))&&(n[e]=this._wrap(r.v,t),!0)},t.prototype.getTtl=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].t},t.prototype.getLastModified=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].n},t.prototype.startCheckperiod=function(){var e=this;this.keys(),this.options.checkperiod>0&&(clearTimeout(this._checkTimeout),this._checkTimeout=setTimeout((function(){e.startCheckperiod()}),this.options.checkperiod))},t.prototype.stopCheckperiod=function(){clearTimeout(this._checkTimeout)},t}(q),re="undefined",oe="object",ie=Object.prototype,ae=ie.toString,le=(ie.hasOwnProperty,ie.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Function.prototype.toString,typeof Symbol!==re&&Symbol.prototype,Array.prototype.slice,Math.min),ce=Math.max,se=Math.random,ue=Math.floor,de=Math.ceil,pe=(Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,typeof globalThis===oe&&globalThis,typeof n.g===oe&&n.g,typeof self===oe&&self,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,"[object "),fe=pe+"String]",me=pe+"Symbol]",ge=(["Function","AsyncFunction","GeneratorFunction","Proxy"].map((function(e){return pe+e+"]"})),pe+"Blob]");function he(e){return ae.call(e)}var ve=function(){function e(e,t){void 0===t&&(t="uh_async_memo"),this.promiseCache={},this.cache=new ne(t,e)}return e.prototype.run=function(e,t,n){var r,o=this;if(!t||"string"!=typeof(r=t)&&he(r)!==fe)return e();var i=f({persisted:!0},n);if(i.persisted){var a=this.cache.get(t);if(a)return Promise.resolve(a)}return this.promiseCache[t]||(this.promiseCache[t]=e().then((function(e){return delete o.promiseCache[t],o.cache.set(t,e,i.ttl),e})).catch((function(e){return delete o.promiseCache[t],Promise.reject(e)}))),this.promiseCache[t]},e}(),be=typeof Blob!==re;function ye(e){return!!(be&&e instanceof Blob)||he(e)===ge}var xe,we="undefined"!=typeof URL,Ce=Object.keys,Se=(Object.values,we?URL.createObjectURL:(xe="",function(){return xe})),$e=we?URL.revokeObjectURL:function(){};var Ee=[200,304];function ke(e,t){return new Promise((function(n,r){var o,i,a,l,c,s,u,d,p,m,g,h,v,b,y,x,w,C,S,$,E,k,I,Z,N,O;ye(e)?n(e):(o=e,i=f({responseType:"blob"},t),a=i||{},l=a.method,c=void 0===l?"get":l,s=a.data,u=void 0===s?null:s,d=a.timeout,p=a.headers,m=a.withCredentials,g=void 0!==m&&m,h=a.async,v=void 0===h||h,b=a.user,y=void 0===b?null:b,x=a.password,w=void 0===x?null:x,C=a.responseType,S=a.onReadyStateChange,$=a.onLoadStart,E=a.onProgress,k=a.onAbort,I=a.onTimeout,Z=a.onError,N=a.onLoad,O=a.onLoadEnd,new Promise((function(e,t){var n=new XMLHttpRequest;n.open(c.toLowerCase(),o,v,y,w),S&&(n.onreadystatechange=S),"number"==typeof d&&d>0&&(n.timeout=d),n.withCredentials=g,C&&(n.responseType=C),"object"==typeof p&&Ce(p).map((function(e){n.setRequestHeader(e,p[e])}));var r,i=function(e){return function(r){t(r),null==e||e.call(n,r)}},a={loadstart:$,progress:E,abort:i(k),timeout:i(I),error:i(Z),load:(r=N,function(t){e(t),null==r||r.call(n,t)}),loadend:O};Ce(a).forEach((function(e){var t=a[e];t&&n.addEventListener(e,t)})),n.send(u)}))).then((function(t){var o=t.target.status;if(-1!==Ee.indexOf(o))n(t.target.response);else{var i=new Error("The file does not support get requests, responseStatus ".concat(o,", '").concat(e,"'."));console.error(i),r(i)}})).catch((function(e){console.error(new Error("Failed to request file. ".concat(e))),r(e)}))}))}function Ie(e,t){return ke(e,t).then((function(e){return function(e){return new Promise((function(t,n){var r=ye(e),o=r?Se(e):e,i=new Image;r||(i.crossOrigin="anonymous"),i.onload=function(){t(i)},i.onerror=function(t){r&&$e(o),console.error("[loadImage] The image load failed, '".concat(e,"'.")),n(t)},i.src=o}))}(e).then((function(t){return{blob:e,image:t}}))}))}function Ze(e){return"function"==typeof e||function(e){return null!==e&&"object"==typeof e}(e)}var Ne=/^0b[01]+$/i,Oe=/^0o[0-7]+$/i,je=/^[-+]0x[0-9a-f]+$/i;function Me(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||he(e)===me}(e))return NaN;if(Ze(e)&&(e=Number(e)),"string"!=typeof e)return 0===e?e:+e;e=e.trim();var t=Ne.test(e);return t||Oe.test(e)?parseInt(e.slice(2),t?2:8):je.test(e)?NaN:+e}function Pe(e){return e?(e=Me(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Re(e,t){void 0===e&&(e=0),void 0===t&&(t=1),e=Pe(e),t=Pe(t);var n=de(le(e,t)||0),r=ue(ce(e,t)||0);if(n>r){var o=n;n=r,r=o}return ue(n+se()*(r-n+1))}var ze,Te=Math.PI;!function(e){e[e.None=0]="None",e[e.Outer=1]="Outer",e[e.Inner=2]="Inner"}(ze||(ze={}));var Le=[ze.None,ze.Outer,ze.Inner];function De(e){return e[Re(0,e.length-1)]}function Be(e){var t={top:De(Le),right:De(Le),bottom:De(Le),left:De(Le)},n=Object.keys(t),r=["top","bottom"],o=["left","right"];if(t.top===ze.Outer&&t.bottom===ze.Outer?t[De(r)]=ze.Inner:t.top!==ze.Outer&&t.bottom!==ze.Outer&&(t[De(r)]=ze.Outer),t.left===ze.Outer&&t.right===ze.Outer?t[De(o)]=ze.Inner:t.left!==ze.Outer&&t.right!==ze.Outer&&(t[De(o)]=ze.Outer),e){var i=[],a=[];n.forEach((function(e){t[e]===ze.Inner?i.push(e):t[e]===ze.None&&a.push(e)})),2===e?i.forEach((function(e){return t[e]=ze.None})):3===e?0===i.length?t[De(a)]=ze.Inner:2===i.length&&(t[De(i)]=ze.None):4==e&&a.forEach((function(e){return t[e]=ze.Inner}))}return t}function Ae(e,t){void 0===t&&(t={});var n=t.x,r=void 0===n?0:n,o=t.y,i=void 0===o?0:o,a=t.w,l=void 0===a?60:a,c=t.h,s=void 0===c?60:c,u=t.needClosePath,d=void 0===u||u,p=t.points,f=t.margin,m=void 0===f?0:f;m=m<=0?0:m,"number"!=typeof p&&p||(p=Be(p));var g=.15*(Math.min(l,s)-2*m),h=Math.hypot(g,g)/2,v=g+h,b={x:r+m,y:i+m,w:l-v-2*m,h:s-v-2*m},y=b.w/2,x=b.h/2;p.left===ze.Outer&&(b.x+=v),p.top===ze.Outer&&(b.y+=v),e.beginPath(),e.lineWidth=2,e.moveTo(b.x,b.y),p.top!==ze.None&&(e.lineTo(b.x+y-h,b.y),p.top===ze.Inner?e.arc(b.x+y,b.y+h,g,1.25*Te,1.75*Te,!0):e.arc(b.x+y,b.y-h,g,.75*Te,.25*Te)),e.lineTo(b.x+b.w,b.y),p.right!==ze.None&&(e.lineTo(b.x+b.w,b.y+x-h),p.right===ze.Inner?e.arc(b.x+b.w-h,b.y+x,g,1.75*Te,.25*Te,!0):e.arc(b.x+b.w+h,b.y+x,g,1.25*Te,.75*Te)),e.lineTo(b.x+b.w,b.y+b.h),p.bottom!==ze.None&&(e.lineTo(b.x+y+h,b.y+b.h),p.bottom===ze.Inner?e.arc(b.x+y,b.y+b.h-h,g,.25*Te,.75*Te,!0):e.arc(b.x+y,b.y+b.h+h,g,1.75*Te,1.25*Te)),e.lineTo(b.x,b.y+b.h),p.left!==ze.None&&(e.lineTo(b.x,b.y+x+h),p.left===ze.Inner?e.arc(b.x+h,b.y+x,g,.75*Te,1.25*Te,!0):e.arc(b.x-h,b.y+x,g,.25*Te,1.75*Te)),e.lineTo(b.x,b.y),e.stroke(),d&&e.closePath()}function _e(e,t,n,r){return new Promise((function(o){t?e.toBlob((function(t){o(t?URL.createObjectURL(t):e.toDataURL(n,r))}),n,r):o(e.toDataURL(n,r))}))}var He=new ve({max:5,maxStrategy:"replaced"});He.cache.on("del",(function(e,t){try{t.image.src&&URL.revokeObjectURL(t.image.src)}catch(e){}}));var Ke=new WeakMap,Fe="image/jpeg",We="image/png",Ve=[];function Xe(e,t){void 0===t&&(t={});var n=t.borderWidth,r=void 0===n?2:n,o=t.borderColor,i=void 0===o?"rgba(255,255,255,0.7)":o,a=t.fillColor,l=void 0===a?"rgba(255,255,255,0.7)":a,c=t.points,s=t.width,u=void 0===s?60:s,d=t.height,p=void 0===d?60:d,f=t.x,m=t.y,g=t.margin,h=void 0===g?2:g,v=t.equalHeight,b=void 0===v||v,y=t.imageWidth,x=t.imageHeight,w=t.bgWidth,C=t.bgHeight,S=t.bgOffset,$=void 0===S?[0,0]:S,E=t.bgImageType,k=void 0===E?Fe:E,I=t.quality,Z=void 0===I?.8:I,N=t.format,O=void 0===N?"dataURL":N,j=t.cacheImage,M=void 0===j||j,P=t.autoRevokePreviousBlobUrl,R=void 0===P||P,z=t.ajaxOptions;return new Promise((function(t,n){var o=document.createElement("canvas"),a=document.createElement("canvas"),s=o.getContext("2d"),d=a.getContext("2d"),g=M?function(e){if(!Ze(e))return String(e);if(!Ke.get(e)){var t="_"+Date.now();Ke.set(e,t)}return Ke.get(e)}(e):void 0;He.run((function(){return Ie(e,z)}),g).then((function(e){var g=e.image;y&&(g.width=y),x&&(g.height=x);var v="number"==typeof w&&w>0?w>u?w:u:g.width,S="number"==typeof C&&C>0?C>p?C:p:g.height;o.width=v,o.height=S;var E=v-u,I=S-p,N=void 0===f?Re(u,E):f||0,j=void 0===m?Re(0,I):m||0;N<0?N=0:N>E&&(N=E),j<0?j=0:j>I&&(j=I);var M="number"!=typeof c&&c?c:Be(c),P="function"==typeof $?$(g.width,g.height):$;s.strokeStyle=i,s.lineWidth=r,s.fillStyle=l,Ae(s,{x:N,y:j,w:u,h:p,points:M,margin:h}),s.fillStyle=l,s.fill(),s.globalCompositeOperation="destination-over",s.drawImage(g,P[0],P[1],g.width,g.height),a.width=v,a.height=S,d.strokeStyle=i,d.lineWidth=r,Ae(d,{x:N,y:j,w:u,h:p,points:M,margin:h}),d.globalCompositeOperation="destination-over",d.clip(),d.drawImage(g,P[0],P[1],g.width,g.height);var z=d.getImageData(N,j,u,p);d.clearRect(0,0,v,S),a.width=u,a.height=b?S:p,d.putImageData(z,0,b?j:0);var T="blob"===O,L=_e(a,T,We,Z),D=_e(o,T,k,Z);Promise.all([L,D]).then((function(e){var n=e[0],r=e[1];R&&(Ve.length&&(Ve.forEach((function(e){URL.revokeObjectURL(e)})),Ve.length=0),T&&Ve.push(r,n)),t({puzzleUrl:n,bgUrl:r,x:N,y:b?0:j})})).catch(n)})).catch(n)}))}var Ge=n(73677),Ye=n(3113),qe=n(37712),Ue=function(e){var t=e.ModalProps,n=e.onFinish,r=(0,x.useState)(),i=u()(r,2),l=i[0],s=i[1],d=(0,x.useRef)(),p=function(){var e=c()(a()().mark((function e(){var t,n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/images/VerifCodeBg/img".concat(Math.floor(23*Math.random())+1,".jpg"),e.next=3,Xe(t,{imageHeight:180,imageWidth:360});case 3:return n=e.sent,s(n),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!=t&&t.x&&t.x>l.x-5&&t.x({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),O=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},(0,I.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},j=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:f}=e;return{[t]:{"&-success":N(o,r,n,e,t),"&-info":N(f,p,d,e,t),"&-warning":N(l,a,i,e,t),"&-error":Object.assign(Object.assign({},N(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},M=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},P=e=>[O(e),j(e),M(e)];var R=(0,Z.Z)("Alert",(e=>[P(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=T[r]||null;return t?(0,E.wm)(t,d.createElement("span",{className:`${n}-icon`},t),(()=>({className:C()(`${n}-icon`,{[t.props.className]:t.props.className})}))):d.createElement(o,{className:`${n}-icon`})},D=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o}=e,i=!0===r||void 0===r?d.createElement(b.Z,null):r;return t?d.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i):null};var B=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:i,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:s,onClick:u,afterClose:p,showIcon:f,closable:m,closeText:g,closeIcon:h,action:v}=e,b=z(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[y,x]=d.useState(!1);const w=d.useRef(null),{getPrefixCls:E,direction:I,alert:Z}=d.useContext(k.E_),N=E("alert",n),[O,j]=R(N),M=t=>{var n;x(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},P=d.useMemo((()=>void 0!==e.type?e.type:o?"warning":"info"),[e.type,o]),T=d.useMemo((()=>!!g||("boolean"==typeof m?m:!1!==h&&null!=h)),[g,h,m]),B=!(!o||void 0!==f)||f,A=C()(N,`${N}-${P}`,{[`${N}-with-description`]:!!t,[`${N}-no-icon`]:!B,[`${N}-banner`]:!!o,[`${N}-rtl`]:"rtl"===I},null==Z?void 0:Z.className,i,a,j),_=(0,$.Z)(b,{aria:!0,data:!0});return O(d.createElement(S.ZP,{visible:!y,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:p},(n=>{let{className:o,style:i}=n;return d.createElement("div",Object.assign({ref:w,"data-show":!y,className:C()(A,o),style:Object.assign(Object.assign(Object.assign({},null==Z?void 0:Z.style),l),i),onMouseEnter:c,onMouseLeave:s,onClick:u,role:"alert"},_),B?d.createElement(L,{description:t,icon:e.icon,prefixCls:N,type:P}):null,d.createElement("div",{className:`${N}-content`},r?d.createElement("div",{className:`${N}-message`},r):null,t?d.createElement("div",{className:`${N}-description`},t):null),v?d.createElement("div",{className:`${N}-action`},v):null,d.createElement(D,{isClosable:T,prefixCls:N,closeIcon:g||h,handleClose:M}))})))},A=n(99153),_=n(84851),H=n(19257),K=n(54941);let F=function(e){(0,H.Z)(n,e);var t=(0,K.Z)(n);function n(){var e;return(0,A.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,_.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:r,info:o}=this.state,i=o&&o.componentStack?o.componentStack:null,a=void 0===e?(r||"").toString():e,l=void 0===t?i:t;return r?d.createElement(B,{type:"error",message:a,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):n}}]),n}(d.Component);var W=F;const V=B;V.ErrorBoundary=W;var X=V,G=n(10249),Y=n(23003),q=n(94706),U=n(37712),Q=(0,q.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.data),r=e.accountInfo,i=e.open,l=p.Z.useForm(),s=u()(l,1)[0],h=(0,q.useSearchParams)(),v=u()(h,1)[0],b=(0,q.useLocation)(),y=(0,d.useState)(!1),x=u()(y,2),w=x[0],C=x[1],S=(0,d.useState)(""),$=u()(S,2),E=($[0],$[1]),k=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;(0,d.useEffect)((function(){C(i)}),[i]);var I=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,U.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,U.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],Z=function(){var e=c()(o()().mark((function e(){var n,i,l,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(null==r||!r.code){e.next=8;break}return e.next=5,(0,Y.Gq)(a()(a()({},r),{},{phone:null==r?void 0:r.login},s.getFieldValue()));case 5:i=e.sent,e.next=11;break;case 8:return e.next=10,(0,Y.Es)(a()(a()({},r),s.getFieldValue()));case 10:i=e.sent;case 11:if(!i.status){e.next=18;break}if(-4!==i.status){e.next=16;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:i.user,loginInfo:r}}),e.abrupt("return");case 16:return E(null===(l=i)||void 0===l?void 0:l.message),e.abrupt("return");case 18:if(C(!1),null!==(n=i)&&void 0!==n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null===(c=i)||void 0===c?void 0:c.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==b.pathname&&"/login"!==b.pathname){e.next=35;break}if(!(u=v.get("form")||v.get("back_url"))){e.next=26;break}window.location.href=decodeURIComponent(u),e.next=33;break;case 26:if(k.test(r.password)||null!=r&&r.code){e.next=31;break}f.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure",e.next=33;break;case 31:return window.location.href="/",e.abrupt("return");case 33:e.next=43;break;case 35:if(k.test(r.password)||null!=r&&r.code){e.next=41;break}f.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure?active=3",t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=43;break;case 41:return window.location.reload(),e.abrupt("return");case 43:s.resetFields();case 44:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,U.jsxs)(m.Z,{title:"登录提示",width:600,onOk:Z,onCancel:function(){return C(!1)},centered:!0,keyboard:!1,closable:!1,maskClosable:!1,open:w,children:[(0,U.jsx)("p",{className:"tc",children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。"}),(0,U.jsx)("div",{className:"mt20",children:(0,U.jsx)(g.Z,{pagination:{hideOnSinglePage:!0},dataSource:n||[],columns:I})}),(0,U.jsx)("div",{className:"mt20 mb20",children:(0,U.jsx)(X,{message:"请监考老师输入的考试解锁码,授权当前学生登录平台。",type:"warning"})}),(0,U.jsx)(p.Z,{name:"global_state",autoComplete:"off",form:s,children:(0,U.jsx)(p.Z.Item,{name:"unlock_key",label:"考试解锁码",rules:[{required:!0,message:"请输入解锁码"}],children:(0,U.jsx)(G.Z.Password,{autoComplete:"off"})})})]})}))},41741:function(e,t,n){n.r(t),n.d(t,{default:function(){return Ot}});var r=n(7557),o=n.n(r),i=n(82242),a=n.n(i),l=n(41498),c=n.n(l),s=n(79800),u=n.n(s),d=n(39647),p=n.n(d),f=n(59301),m=n(92736),g=n(81863),h=n(73677),v=n(94706),b=n(83447),y=n(8591),x=n(10249),w=n(24905),C=n(3113),S=n(23003),$=n(99267),E=n(87318),k="login-panel-wrapper2___HuMNJ",I="login-panel-right-wrp___vWD_i",Z="res-error-values___hV1lz",N="password___whzyL",O="tabs___EwOAX",j=n(28209),M=n.n(j),P=n(37712),R={height:48,borderRadius:4},z=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.user),r=e.setusername,i=b.Z.useForm(),l=u()(i,1)[0],s=(0,v.useSearchParams)(),d=u()(s,1)[0],p=(0,v.useLocation)(),m=(0,f.useState)(""),g=u()(m,2),h=g[0],k=g[1],I=(0,f.useState)([]),O=u()(I,2),j=O[0],z=O[1],T=(0,f.useState)({}),L=u()(T,2),D=L[0],B=L[1],A=(0,f.useState)(!1),_=u()(A,2),H=_[0],K=_[1],F=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,W=function(){var e=c()(o()().mark((function e(n){var i,c,s,u,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(!1),F.test(n.password)||r(n.login),i=a()({},n),c=M().enc.Utf8.parse("5183666c72eec9e4"),s=M().AES.encrypt(n.password||"",c,{iv:c,mode:M().mode.CBC}),i.password=s.toString(),B(a()({},n)),e.next=9,(0,S.Es)(i);case 9:if(!(u=e.sent).status){e.next=23;break}if(-4!==u.status){e.next=17;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:u.user,loginInfo:i}}),e.abrupt("return");case 17:if(-5!==u.status){e.next=21;break}return z([null==u?void 0:u.message]),K(!0),e.abrupt("return");case 21:return k(null==u?void 0:u.message),e.abrupt("return");case 23:if(null!=u&&u.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==u?void 0:u.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==p.pathname&&"/login"!==p.pathname){e.next=37;break}if(!(f=d.get("form")||d.get("back_url"))){e.next=30;break}window.location.href=decodeURIComponent(f),e.next=35;break;case 30:if(F.test(n.password)){e.next=34;break}return y.ZP.info("系统检测您的密码强度过低,请及时修改"),e.next=34,new Promise((function(e){return setTimeout(e,300)}));case 34:window.location.href="/";case 35:e.next=42;break;case 37:if(F.test(n.password)){e.next=41;break}return y.ZP.info("系统检测您的密码强度过低,请及时修改"),e.next=41,new Promise((function(e){return setTimeout(e,300)}));case 41:window.location.reload();case 42:l.resetFields();case 43:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(b.Z,{layout:"vertical",form:l,initialValues:{autologin:!0,login:n.actionTabs.phone},onFinish:W,onValuesChange:function(e){k("");if("password"in e){var t=e.password.replace(/[\u4e00-\u9fa5]/g,"");l.setFieldsValue({password:t})}},children:[!!h&&(0,P.jsxs)("div",{className:Z,children:[(0,P.jsx)("span",{children:h}),(0,P.jsx)($.Z,{onClick:function(){return k("")}})]}),(0,P.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入用户名、手机号或邮箱"}],children:(0,P.jsx)(x.Z,{style:R,size:"middle",placeholder:"请输入有效的手机号/邮箱号/账号",onBlur:function(){t({type:"user/setActionTabs",payload:{phone:l.getFieldValue("login")}})}})}),(0,P.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"}],children:(0,P.jsx)(x.Z.Password,{className:N,style:R,size:"middle",placeholder:"密码"})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)("div",{className:"flex-container",style:{justifyContent:"space-between"},children:[(0,P.jsx)(b.Z.Item,{name:"autologin",noStyle:!0,valuePropName:"checked",children:(0,P.jsx)(w.Z,{children:"下次自动登录"})}),(0,P.jsx)("div",{})]})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsx)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,className:"font16",style:R,children:"登录"})})]}),(0,P.jsx)(E.Z,{open:H,data:j,accountInfo:a()({},D)})]})})),T=n(6848),L=n(1079),D=n(31138),B={height:48},A=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,_=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,H={timer:0},K=function(e){return e[e.setTimer=0]="setTimer",e}(K||{});function F(e,t){if(t.type===K.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var W=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,n=e.validateName,r=e.getCode,i=e.register,a=e.style,l=void 0===a?{}:a,s=e.buttonText,d=void 0===s?"注册":s,p=e.globalSetting,m=b.Z.useForm(),g=u()(m,1)[0],h=(0,f.useReducer)(F,H),v=u()(h,2),y=v[0],w=v[1],S=(0,f.useState)(!1),$=u()(S,2),E=$[0],k=$[1],I=y.timer,Z=(0,f.useState)(!1),N=u()(Z,2),O=N[0],j=N[1];function M(){return M=c()(o()().mark((function e(t){var n,r,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,r=t.password,a=t.code,e.next=3,i({login:n,password:r,code:a});case 3:if(l=e.sent,c=l.message,!(l.status<0)){e.next=9;break}return g.setFields([{name:"code",errors:[c]}]),e.abrupt("return");case 9:window.location.reload();case 10:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function R(){return z.apply(this,arguments)}function z(){return z=c()(o()().mark((function e(){var t,r,i,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=g.getFieldValue("login"),r=0,A.test(t)&&!(t.indexOf(" ")>-1)){e.next=6;break}return g.setFields([{name:"login",errors:["请输入正确的手机号或邮箱"]}]),r=1,e.abrupt("return",r);case 6:return e.next=8,n({login:t,type:1});case 8:return i=e.sent,a=i.status,l=i.message,a>0?r=2:(g.setFields([{name:"login",errors:[l]}]),r=1),e.abrupt("return",r);case 14:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}var W=function(){var e=c()(o()().mark((function e(){var t,i,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k(!0),g.getFieldValue("verify"),t=g.getFieldValue("login")){e.next=7;break}g.validateFields(["login"]),e.next=20;break;case 7:return e.next=9,n({login:t,type:1});case 9:if(1===(null==(i=e.sent)?void 0:i.status)){e.next=13;break}return g.setFields([{name:"login",errors:[null==i?void 0:i.message]}]),e.abrupt("return");case 13:return e.next=15,r({login:t,type:1,smscode:(0,L.M)(t)});case 15:a=e.sent,l=a.status,c=a.message,l<0&&g.setFields([{name:"code",errors:[c]}]),w({type:K.setTimer,payload:60});case 20:k(!1);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){I>0&&setTimeout((function(){w({type:K.setTimer,payload:I-1})}),1e3)}),[I]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(b.Z,{layout:"vertical",form:g,style:l,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return M.apply(this,arguments)},children:[(0,P.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):A.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,P.jsx)(x.Z,{style:B,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onBlur:function(){return R},onChange:function(){return g.setFieldsValue({verify:0})}})}),!(null!=p&&null!==(t=p.setting)&&void 0!==t&&t.is_local)&&(0,P.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,P.jsx)(x.Z,{suffix:(0,P.jsxs)(C.ZP,{loading:E,type:"link",onClick:function(e){e.stopPropagation(),g.getFieldValue("login")?j(!0):g.validateFields(["login"])},disabled:I>0,children:[" ",0===I?"获取验证码":"".concat(I,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!_.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位密码,区分大小写、不能使用空格")}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:B,size:"middle",placeholder:"请输入8~16位字符,字母、数字和特殊符号至少包含2种"})})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:B,className:"font16",children:[" ",d," "]})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:0,paddingBottom:35},children:["注册并登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]}),(0,P.jsx)(D.Z,{ModalProps:{open:O,onCancel:function(){j(!1)}},onFinish:function(){j(!1),W()}})]})})),V=n(89392),X={height:48},G=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,Y=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,q={timer:0},U=function(e){return e[e.setTimer=0]="setTimer",e}(U||{});function Q(e,t){if(t.type===U.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var J=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,n=e.validateName,r=e.getCode,i=e.register,a=e.style,l=void 0===a?{}:a,s=e.buttonText,d=void 0===s?"注册":s,p=e.globalSetting,m=b.Z.useForm(),g=u()(m,1)[0],h=(0,f.useReducer)(Q,q),v=u()(h,2),y=v[0],w=v[1],S=(0,f.useState)(!1),$=u()(S,2),E=$[0],k=$[1],I=y.timer,Z=(0,f.useState)(!1),N=u()(Z,2),O=N[0],j=N[1];function M(){return M=c()(o()().mark((function e(t){var n,r,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,r=t.new_password,a=t.code,e.next=3,i({login:n,new_password:r,code:a});case 3:if(l=e.sent,c=l.message,!(l.status<0)){e.next=9;break}return g.setFields([{name:"code",errors:[c]}]),e.abrupt("return");case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}var R=function(){var e=c()(o()().mark((function e(){var t,n,i,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g.getFieldValue("verify"),t=g.getFieldValue("login"),e.next=4,g.validateFields(["login"]);case 4:if(t){e.next=8;break}g.validateFields(["login"]),e.next=17;break;case 8:return k(!0),e.next=11,r({login:t,type:2,smscode:(0,L.M)(t)});case 11:n=e.sent,i=n.status,a=n.message,i<0&&g.setFields([{name:"code",errors:[a]}]),w({type:U.setTimer,payload:60}),k(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){I>0&&setTimeout((function(){w({type:U.setTimer,payload:I-1})}),1e3)}),[I]);var z=function(){var e=c()(o()().mark((function e(t,r){var i,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(!(r.indexOf(" ")>-1)){e.next=4;break}return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 4:if(!G.test(r)){e.next=18;break}return e.next=7,n({login:r,type:2});case 7:if(i=e.sent,a=i.status,l=i.message,!(a>0)){e.next=15;break}return e.abrupt("return",Promise.resolve());case 15:return e.abrupt("return",Promise.reject(l));case 16:e.next=19;break;case 18:return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 19:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(b.Z,{layout:"vertical",form:g,style:l,initialValues:{autologin:!0,protool:!1},onFinish:(0,V.throttle)((function(e){return M.apply(this,arguments)}),2e3),children:[(0,P.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:(0,V.throttle)(z,400)}],children:(0,P.jsx)(x.Z,{style:X,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onChange:function(){return g.setFieldsValue({verify:0})}})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"new_password",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!Y.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格")}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:X,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),!(null!=p&&null!==(t=p.setting)&&void 0!==t&&t.is_local)&&(0,P.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,P.jsx)(x.Z,{suffix:(0,P.jsxs)(C.ZP,{loading:E,type:"link",onClick:function(e){e.stopPropagation(),g.getFieldValue("login")?j(!0):g.validateFields(["login"])},disabled:I>0,children:[" ",0===I?"获取验证码":"".concat(I,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:X,className:"font16",children:[" ",d," "]})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:0,paddingBottom:20},children:["修改并登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]}),(0,P.jsx)(D.Z,{ModalProps:{open:O,onCancel:function(){j(!1)}},onFinish:function(){j(!1),R()}})]})}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ee="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgNjYgNjYiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDY2IDY2IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MXtmaWxsOiMwMGI5MTN9PC9zdHlsZT48ZyBpZD0i6aG16Z2iLTEiPjxnIGlkPSLnmbvlvZVf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jgtMi4yLTIgMC0xLjIgMS0yLjEgMi4xLTJ6TTExLjIgOS45QzEwLjEgMTAgOS4xIDkuMiA5IDhjLjEtMS4yIDEuMS0yLjEgMi4yLTIgMS0uMSAxLjguNyAxLjggMS44VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yem0xNS4yIDEwLjdjLS44LS4xLTEuNC0uNy0xLjUtMS42LjEtLjguNy0xLjUgMS41LTEuNi45LS4xIDEuNy42IDEuOSAxLjYtLjIgMS0xIDEuNy0xLjkgMS42em04LjIgMGMtLjgtLjEtMS40LS43LTEuNS0xLjYuMS0uOC43LTEuNSAxLjUtMS42LjktLjEgMS43LjYgMS45IDEuNi0uMiAxLTEgMS43LTEuOSAxLjZ6IiBzdHlsZT0iZmlsbDojZmZmIi8+PC9nPjwvZz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var te="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAwQzIyOS4zNTYgMCAwIDIyOS4zNTYgMCA1MTJzMjI5LjM1NiA1MTIgNTEyIDUxMiA1MTItMjI5LjM1NiA1MTItNTEyUzc5NC42NDQgMCA1MTIgMHptMjM1Ljc1IDY0Ny42MDNjLTEwLjcgNS40MTctMjcuNDE3LTYuOTYzLTQzLjM0LTMwLjE1Ny02LjI2NyAyNS4yNjItMjEuNjczIDQ3Ljk1LTQzLjYwNyA2Ni4yNTMgMjMuMjQ0IDguNTA1IDM4LjEyMyAyMi4xNyAzOC4xMjMgMzcuODk4IDAgMjUuNTE5LTQwLjk5IDQ2LjQwMy05MS4zODcgNDYuNDAzLTQ1LjQzIDAtODMuMjg3LTE3LjAxNC05MC4wNzYtMzguOTI3aC0xMC45NjdDNDk5LjQ0NiA3NTEuMjQzIDQ2MS44NSA3NjggNDE2LjQyIDc2OGMtNTAuMzk2IDAtOTEuMzg3LTIwLjYyMy05MS4zODctNDYuNDAzIDAtMTUuNzI4IDE1LjE0NS0yOS4zODggMzguMTE4LTM3Ljg5OC0yMS45MjktMTguMzA0LTM3LjU5Ni00MS4yNTItNDMuNjAyLTY2LjI1My0xNS42NjcgMjMuMTk0LTMyLjYzNCAzNS44My00My4zNCAzMC4xNTctMTUuNjY4LTcuOTg3LTEyLjUzNC01MS4wNDYgNy4wNS05Ni4xNTkgMTUuMTQ1LTM1LjMxNyAzNi4wMy02MS42MTQgNTEuNjk3LTY3LjI4Ny0uMjYyLTIuMzE5LS4yNjItNC42MzgtLjI2Mi02LjcwNyAwLTEzLjY2IDMuOTE3LTI2LjI5MSAxMC40NDUtMzYuNjA4di0yLjMxNGMwLTYuMTkgMS41NjctMTIuMTE5IDQuMTc4LTE3LjI3NUMzNTMuMjMgMzI5LjIxNiA0MTQuMDcgMjU2IDUxMi4yNDEgMjU2czE1OS4wMDYgNzMuMjE2IDE2Mi45MjMgMTY1LjI1M2EzOC4zNzQgMzguMzc0IDAgMCAxIDQuMTc4IDE3LjI3NXYyLjMyYzYuNTI4IDEwLjMxMSAxMC40NDUgMjIuOTQyIDEwLjQ0NSAzNi42MDcgMCAyLjMyIDAgNC42NC0uMjYxIDYuNzAyIDE1LjkyMyA1LjY3MyAzNi41NTcgMzEuOTcgNTEuNjk2IDY3LjI4NyAxOS4wNjIgNDUuMTE4IDIyLjE5NiA4OC4xNjcgNi41MjggOTYuMTZ6IiBmaWxsPSIjMzc4QUZFIi8+PC9zdmc+",ne="other-login___Jd48Z",re="wechat-qrcode___bLWkh",oe="driver___IuicK",ie=n(67390),ae=window.location.host,le=ie.Z.QQLoginCB,ce=function(e){var t=e.onWechatLogin,n=e.setType,r=e.loginType;function o(){return(0,L.b9)()?"https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(le,"%2fotherloginqq&state=null,").concat(ae,"&response_type=code"):"https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(le,"%2fotherloginqq&state=null,").concat(ae,"&response_type=code")}return(0,P.jsxs)(P.Fragment,{children:[(1===r||2===r)&&(0,P.jsxs)("div",{style:{marginTop:(0,L.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["没有账号?",(0,P.jsx)("span",{onClick:function(){return n(3)},className:"c-blue current",children:"免费注册"})]}),(3===r||4===r||5===r)&&(0,P.jsxs)("div",{style:{marginTop:(0,L.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["已有账号?",(0,P.jsx)("span",{onClick:function(){return n(1)},className:"c-blue current",children:"立即登录"})]}),!(0,L.WX)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{className:oe,children:(0,P.jsx)("span",{style:{color:"#444444"},children:"快速登录"})}),(0,P.jsxs)("div",{className:ne,children:[(0,L.s2)()&&(0,L.IS)()&&(0,P.jsx)("a",{title:"微信登录",style:{margin:0},onClick:t,children:(0,P.jsx)("img",{src:ee,alt:"微信",width:66})}),(0,L.s2)()&&!(0,L.IS)()&&(0,P.jsx)("a",{title:"qq登录",rel:"noreferrer noopener nofollow",style:{margin:0},href:o(),children:(0,P.jsx)("img",{src:te,alt:"QQ",width:66})}),(0,L.b9)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("a",{title:"微信登录",style:{marginRight:(0,L.IS)()?0:40},onClick:t,children:(0,P.jsx)("img",{src:ee,alt:"微信",width:66})}),!(0,L.IS)()&&(0,P.jsx)("a",{title:"qq登录",href:o(),children:(0,P.jsx)("img",{src:te,alt:"QQ",width:66})})]})]})]})]})};function se(e){e.onBack;var t=e.setType;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{style:{overflow:"hidden",width:300,height:300,margin:"20px auto 0 auto"},children:(0,P.jsx)("iframe",{className:re,frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(le,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(ae,"#wechat_redirect")})}),(0,P.jsx)("div",{style:{marginTop:17,marginBottom:10},className:"font16 bold tc c-blue current",children:(0,P.jsx)("span",{onClick:function(){return t(1)},style:{borderBottom:"2px solid #0152d9"},children:"返回账号登录"})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:14,paddingBottom:40},children:["登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})}var ue={height:48},de=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,pe={timer:0},fe=function(e){return e[e.setTimer=0]="setTimer",e}(fe||{});function me(e,t){if(t.type===fe.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var ge=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){e.validateName,e.getCode;var t=e.register,n=e.style,r=void 0===n?{}:n,i=e.buttonText,a=void 0===i?"注册":i,l=(e.globalSetting,b.Z.useForm()),s=u()(l,1)[0],d=(0,f.useReducer)(me,pe),p=u()(d,2),m=p[0],g=p[1],h=(0,f.useState)(!1),v=u()(h,2),y=(v[0],v[1],m.timer);function w(){return w=c()(o()().mark((function e(n){var r,i,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.old_password,i=n.newPassword,e.next=3,t({old_password:r,newPassword:i});case 3:if(a=e.sent,l=a.message,!(a.status<0)){e.next=9;break}return s.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}return(0,f.useEffect)((function(){y>0&&setTimeout((function(){g({type:fe.setTimer,payload:y-1})}),1e3)}),[y]),(0,P.jsxs)(b.Z,{layout:"vertical",form:s,style:r,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return w.apply(this,arguments)},children:[(0,P.jsx)(b.Z.Item,{name:"old_password",rules:[{required:!0,message:"请输入8~16位密码,区分大小写"}],children:(0,P.jsx)(x.Z,{style:ue,autoComplete:"new-login",size:"middle",type:"password",placeholder:"请输入旧密码",onChange:function(){return s.setFieldsValue({verify:0})}})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"newPassword",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t,n){t?t.indexOf(" ")>-1?n("请输入8-16位密码,区分大小写、不能使用空格"):t.length<8||t.length>16?n("请输入8-16位字符的新密码,区分大小写!"):de.test(t)?n():n("请输入8~16位字符,字母、数字和特殊符号至少包含2种"):n("请输入8-16位字符的新密码,区分大小写!")}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:ue,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,n){t!=s.getFieldsValue().newPassword?n("两次输入的新密码必须一致!"):n()}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:ue,size:"middle",placeholder:"请再次输入新密码"})})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:ue,className:"font16",children:[" ",a," "]})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:0,paddingBottom:20},children:["修改并登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})})),he=n(99313),ve=n(95237),be=n(43604),ye=he.Z.TabPane,xe=function(e){e.dispatch,e.is_main_site;var t=e.is_local,n=e.style,r=void 0===n?{}:n,i=(0,f.useState)(!1),l=u()(i,2),s=(l[0],l[1]),d=(0,f.useState)("1"),p=u()(d,2),m=p[0],g=p[1],h=(0,f.useState)(1),v=u()(h,2),b=v[0],x=v[1],w=(0,f.useState)(),C=u()(w,2),$=C[0],E=C[1];function Z(){x(1),s(!1)}function N(e){console.log(e),g(e)}S.Ol,S.o1,j=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Gq)({phone:t.login,code:t.code});case 2:if(0!==(n=e.sent).status){e.next=7;break}return null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),window.location.reload(),e.abrupt("return","/");case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));var j,M,R,T,D={buttonText:"注册并登录",validateName:S.Ol,getCode:S.o1,register:(M=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.z2)(a()({},t));case 2:if(0!==(n=e.sent).status){e.next=9;break}return"1"===localStorage.getItem("addinfo")?localStorage.setItem("addinfo","2"):localStorage.setItem("registeruser","1"),localStorage.removeItem("extension-modal"),y.ZP.info("注册并登陆成功"),e.abrupt("return","/");case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)}))),function(e){return M.apply(this,arguments)})},B={buttonText:"修改密码",validateName:S.Ol,getCode:S.o1,register:(R=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Ex)(a()({login:$},t));case 2:return n=e.sent,y.ZP.info("修改密码成功"),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(e){return R.apply(this,arguments)})},A={buttonText:"修改并登录",validateName:S.Ol,getCode:S.o1,register:(T=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=c()(o()().mark((function e(n){var r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.new_password_confirmation=t.new_password,e.next=3,(0,S.c0)(a()({},t));case 3:if(0!==(r=e.sent).status){e.next=9;break}return null!=r&&r.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==r?void 0:r.start_date)):localStorage.removeItem("extension-modal"),y.ZP.info("修改成功"),n("/"),e.abrupt("return","/");case 9:return n(r),e.abrupt("return",r);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return T.apply(this,arguments)})},_=(0,f.useCallback)((function(){switch(b){case 1:return(0,P.jsx)(he.Z,{defaultActiveKey:m,onChange:N,className:O,style:{marginRight:40},children:(0,P.jsx)(ye,{tab:"账号登录",children:(0,P.jsx)("div",{className:"mt20",children:"1"===m&&(0,P.jsx)(z,{setusername:E,setType:x})})},"1")});case 2:return(0,P.jsx)(se,{setType:x,onBack:Z});case 3:return(0,P.jsxs)("div",{className:"ml40",children:[(0,P.jsx)("h1",{className:"font18 mb20 mt35",children:"新用户注册"}),(0,P.jsx)(W,a()({},D))]});case 4:return(0,P.jsxs)("div",{className:"ml40",children:[(0,P.jsx)("h1",{className:"font18 mb20 mt35",children:"找回密码"}),(0,P.jsx)(J,a()({},A))]});case 5:return(0,P.jsxs)("div",{className:"ml40",children:[(0,P.jsx)("h1",{className:"font18 mb20 mt35",children:"修改密码"}),(0,P.jsx)(ge,a()({},B))]})}}),[b,m]);return(0,P.jsx)("div",{className:k,style:r,children:(0,P.jsxs)(ve.Z,{children:[(0,P.jsx)(be.Z,{flex:"1",children:_()}),(0,P.jsx)(be.Z,{flex:"295px",className:I,children:!t&&(0,P.jsx)(ce,{loginType:b,setType:x,onWechatLogin:function(){(0,L.s2)()||(0,L.IS)()?(0,L.Or)():(x(2),s(!0))}})})]})})},we="popLogin___R8wQQ",Ce=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,n=e.user,r=e.globalSetting,o=(e.loading,e.dispatch),i=null===(t=r.setting)||void 0===t?void 0:t.main_site;return(0,P.jsx)(h.Z,{centered:!0,open:n.showPopLogin,footer:null,width:420,keyboard:!1,maskClosable:!1,wrapClassName:we,closable:n.showClosable,onCancel:function(){o({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})},children:n.showPopLogin&&(0,P.jsx)(xe,{is_main_site:i,is_local:true})})})),Se=n(57809),$e=n(92310),Ee=n.n($e),ke=n(11592),Ie=n(2738),Ze=n(53487),Ne=n(92343),Oe=n(36355);const{Option:je}=Se.default;function Me(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const Pe=(e,t)=>{const{prefixCls:n,className:r,popupClassName:o,dropdownClassName:i,children:a,dataSource:l}=e,c=(0,ke.Z)(a);let s;1===c.length&&(0,Ne.l$)(c[0])&&!Me(c[0])&&([s]=c);const u=s?()=>s:void 0;let d;d=c.length&&Me(c[0])?a:l?l.map((e=>{if((0,Ne.l$)(e))return e;switch(typeof e){case"string":return f.createElement(je,{key:e,value:e},e);case"object":{const{value:t}=e;return f.createElement(je,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:p}=f.useContext(Oe.E_),m=p("select",n);return f.createElement(Se.default,Object.assign({ref:t,suffixIcon:null},(0,Ie.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:m,popupClassName:o||i,className:Ee()(`${m}-auto-complete`,r),mode:Se.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:u}),d)},Re=f.forwardRef(Pe),ze=(0,Ze.Z)(Re);Re.Option=je,Re._InternalPanelDoNotUseOrYouWillBeFired=ze;var Te=Re,Le=n(24530),De={modalWrap:"modalWrap___bBTZj",formWrap:"formWrap___aTC2c",staffWrap:"staffWrap___Vt2Lh"},Be=n.p+"static/touge_code.728ce351.jpg",Ae=n.p+"static/touge_code6.e67b4cee.jpg",_e=n(56007),He="tilte___IfiMG",Ke="flexRow___pQP78",Fe="flexColumn___xrBZQ",We="img___GoWZu",Ve="content___pumTK",Xe=(0,v.connect)((function(e){var t=e.paperlibrary,n=e.loading;return{paperlibrary:t,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t=e.visible,n=e.occupationValue,r=e.onCancel,o=void 0===r?function(){}:r,i=function(){return(0,P.jsxs)("div",{className:Fe,children:[(0,P.jsx)("img",{className:We,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39W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pvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"}),(0,P.jsx)("span",{className:Ve,children:"未职业认证"})]})},a=function(){return(0,P.jsxs)("div",{className:Fe,children:[(0,P.jsx)("img",{className:We,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjP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asDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"}),(0,P.jsx)("span",{className:Ve,children:"未实名认证"})]})};return(0,P.jsxs)(h.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:t,title:"因为以下原因,您暂时不能进行操作",okText:"立即认证",cancelText:"取消",width:"600px",onOk:function(){o(),v.history.push("/account/certification")},onCancel:function(){o()},children:[(0,P.jsx)("div",{className:He,children:"请在完成条件后重试"}),(0,P.jsx)("div",{className:Ke,children:3===n?(0,P.jsxs)(P.Fragment,{children:[a(),i()]}):2===n?i():a()})]})})),Ge=n(14809),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},qe=n(7657),Ue=function(e,t){return f.createElement(qe.Z,(0,Ge.Z)({},e,{ref:t,icon:Ye}))};var Qe=f.forwardRef(Ue),Je="bottom___z0ujX",et="yes___hodnN",tt=n(32637),nt=(0,v.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t=e.classroomList,n=e.dispatch;e.user;return(0,P.jsxs)(h.Z,{open:"到期提示"===t.actionTabs.key,width:464,centered:!0,title:(0,P.jsxs)("span",{children:[(0,P.jsx)(Qe,{style:{color:"#faad14",fontSize:"18px"}})," 提示"]}),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},footer:null,children:[(0,P.jsxs)("div",{style:{textAlign:"center",marginBottom:30},children:[(0,P.jsxs)("div",{style:{marginBottom:20,textAlign:"left"},children:["该教学课堂的试用已到期,目前无法支持",(0,P.jsx)("span",{style:{color:"#FF9D18"},children:"超过50"}),"人的教学活动。如有任何疑问,请随时联系我们。感谢您的理解与支持!"]}),(0,P.jsx)("img",{style:{width:130,height:130},src:tt})]}),(0,P.jsx)("div",{className:Je,children:(0,P.jsx)(C.ZP,{className:et,onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},children:"我知道了"})})]})})),rt=function(e){return e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student",e}(rt||{}),ot=(0,v.connect)((function(e){return{user:e.user,account:e.account}}))((function(e){var t=e.visible,n=e.user,r=(e.account,e.onCancel),i=void 0===r?function(){}:r,a=e.dispatch,l=(0,f.useState)(),s=u()(l,2),d=s[0],p=s[1],m=(0,f.useState)([]),g=u()(m,2),v=g[0],b=g[1],C=(0,f.useState)(!1),S=u()(C,2),$=S[0],E=S[1],k=(0,f.useState)(!1),I=u()(k,2),Z=I[0],N=I[1],O=(0,f.useState)(),j=u()(O,2),M=j[0],R=j[1],z=(0,f.useState)(!1),T=u()(z,2);T[0],T[1];(0,f.useEffect)((function(){var e,t;null!=n&&null!==(e=n.userInfo)&&void 0!==e&&e.identity&&b(["student"===(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[n]);var D=function(e){var t=function(){window.location.href=(null==e?void 0:e.jump_url)||"/classrooms/".concat(null==e?void 0:e.course_id,"/students")};v.includes(rt.Professor)?h.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,P.jsx)("div",{className:"tc",children:(null==e?void 0:e.message)||"申请已提交,请等待审核"}),onOk:function(){t()}}):t()},B=function(){var e=c()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return y.ZP.info("邀请码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,Le.ZP)("/api/courses/get_pro_info.json",{method:"get",params:{invite_code:d}});case 5:if(null==(t=e.sent)||!t.need_pro_auth||v.includes(1)||v.includes(2)){e.next=10;break}return a({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth",code:d,checkedList:v}}),A(),e.abrupt("return");case 10:return E(!0),e.next=13,(0,_e.cR)({invite_code:d,professor:v.includes(rt.Professor)?1:null,assistant_professor:v.includes(rt.AssistantProfessor)?1:null,student:v.includes(rt.Student)?1:null});case 13:if(n=e.sent,E(!1),-4===(null==n?void 0:n.status)&&(i(),a({type:"classroomList/setActionTabs",payload:{key:"到期提示"}})),-12===(null==n?void 0:n.status)&&y.ZP.warning(null==n?void 0:n.message),-2!==(null==n?void 0:n.status)){e.next=31;break}if(A(),"该课堂要求成员完成实名认证"!==n.message){e.next=23;break}return N(!0),R(1),e.abrupt("return");case 23:if("该课堂要求成员完成职业认证"!==n.message){e.next=27;break}return N(!0),R(2),e.abrupt("return");case 27:if("该课堂要求成员完成实名和职业认证"!==n.message){e.next=31;break}return N(!0),R(3),e.abrupt("return");case 31:if(0!==(null==n?void 0:n.status)){e.next=36;break}return(0,L.L9)(["教学课堂","首页","加入课堂"]),A(),null!=n&&n.course_id?D(n):y.ZP.success(n.message),e.abrupt("return");case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.Z,{centered:!0,keyboard:!1,closable:!1,title:"加入课堂",open:t,confirmLoading:$,onOk:B,onCancel:A,children:(0,P.jsxs)("div",{className:"tc",children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"课堂邀请码:"}),(0,P.jsx)(x.Z,{placeholder:"请输入5位课堂邀请码或6位分班邀请码",style:{width:270},value:d,onChange:function(e){e.target.value.length>=7?y.ZP.info("请输入5位课堂邀请码或6位分班邀请码!"):p(e.target.value)}})]}),(0,P.jsxs)("div",{className:"mt10 font14",children:[(0,P.jsx)("span",{children:"身份:"}),(0,P.jsxs)(w.Z.Group,{value:v,onChange:function(e){return b(e)},children:[(0,P.jsx)(w.Z,{value:rt.Professor,disabled:v.includes(2),children:"教师"}),(0,P.jsx)(w.Z,{value:rt.AssistantProfessor,disabled:v.includes(1),children:"助教"}),(0,P.jsx)(w.Z,{value:rt.Student,children:"学生/参赛者"})]})]})]})}),(0,P.jsx)(nt,{}),(0,P.jsx)(Xe,{visible:Z,onCancel:function(){return N(!1)},occupationValue:M})]})})),it=(0,v.connect)((function(e){var t=e.user,n=e.account,r=e.loading;return{user:t,account:n,globalSetting:e.globalSetting,loading:r.models.index}}))((function(e){var t=e.user,n=e.account,r=e.globalSetting,i=(e.loading,e.dispatch),l=b.Z.useForm(),s=u()(l,1)[0],d=Se.default.Option,p=(0,f.useState)({}),m=u()(p,2),g=m[0],w=m[1],C=(0,f.useState)(""),S=u()(C,2),$=S[0],E=S[1],k=(0,f.useState)(!0),I=u()(k,2),Z=I[0],N=I[1],O=(0,f.useState)([]),j=u()(O,2),M=j[0],R=j[1],z=(0,f.useState)(!1),T=u()(z,2),D=T[0],B=T[1],A=(0,f.useState)(!1),_=u()(A,2),H=_[0],K=_[1],F=b.Z.useForm(),W=u()(F,1)[0],X=(0,f.useState)(!1),G=u()(X,2),Y=G[0],q=G[1],U=(0,f.useState)(!1),Q=u()(U,2),J=Q[0],ee=Q[1],te=(0,f.useRef)((0,V.throttle)((function(e){return oe(e)}),1200,{leading:!0,trailing:!0})).current,ne=function(){var e={identity:"",name:"",school_id:"",staff_id:"",student_id:"",technical_title:""};s.setFieldsValue(a()({},e)),w(a()({},e))};(0,f.useEffect)((function(){Z||!g.school||M.find((function(e){return e.name===g.school}))?E(""):E("error")}),[Z,g.school,M]);var re,oe=function(){var e=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),e.next=3,i({type:"account/getSchoolOption",payload:{keyword:t,limit:99999,display_aliases:!0}});case 3:n=e.sent,R(null==n?void 0:n.schools),N(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=function(e){var t,n,o,i;return"number"===e?"teacher"===g.identity?"".concat(null==r||null===(t=r.setting)||void 0===t?void 0:t.homepage_tea_qq_number):"".concat(null==r||null===(n=r.setting)||void 0===n?void 0:n.homepage_stu_qq_number):"code"===e?"teacher"===g.identity?"".concat(ie.Z.IMG_SERVER,"/").concat(null==r||null===(o=r.setting)||void 0===o?void 0:o.homepage_tea_qq_qrcode_url):"".concat(ie.Z.IMG_SERVER,"/").concat(null==r||null===(i=r.setting)||void 0===i?void 0:i.homepage_stu_qq_qrcode_url):void 0},le=function(){var e=c()(o()().mark((function e(r){var a,l,c,s,u,d,p,f,m,g,v,b;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B(!0),c=r.name,s=r.identity,u=r.studentNo,d=r.jobTitle,p=r.manager,f=r.staff_id,m=r.school,g=null===(a=M.find((function(e){return e.name===m})))||void 0===a?void 0:a.id){e.next=6;break}return h.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,P.jsxs)("div",{style:{textAlign:"center"},children:[(0,P.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入 官方交流QQ群:",ae("number"),",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,P.jsx)("img",{src:ae("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 6:return e.next=8,i({type:"account/updateAccount",payload:{id:null==t||null===(l=t.userInfo)||void 0===l?void 0:l.user_id,identity:s,name:c,school_id:g,staff_id:f,student_id:"student"===s?u:null,technical_title:d||p}});case 8:if(-1!==(null==(v=e.sent)?void 0:v.status)){e.next=11;break}return e.abrupt("return");case 11:v&&(y.ZP.info("保存成功"),null!==(b=n.basicInfo)&&void 0!==b&&b.base_info_completed||i({type:"user/getUserInfo"})),B(!1),ne(),v&&(console.log("user.backurl--",t),t.backurl||t.isCurrentPage?(0,L.xg)(t.backurl):ee(!0)),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.Z,{centered:!0,open:t.showUpdateProfilePanel,title:"完善个人资料",width:800,keyboard:!1,maskClosable:!1,wrapClassName:De.modalWrap,closable:t.showClosable,onCancel:function(){ne(),t.backurl&&!t.isCurrentPage&&v.history.replace(t.backurl),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}})},onOk:c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(!0),e.next=3,s.submit();case 3:case"end":return e.stop()}}),e)}))),okButtonProps:{loading:D},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:"mb30",children:"您还未完善个人资料,完善后即可使用此功能。"}),(0,P.jsxs)(b.Z,{form:s,className:De.formWrap,layout:"horizontal",onValuesChange:function(e){w(a()({},s.getFieldsValue()))},onFinish:le,scrollToFirstError:!0,size:"large",labelAlign:"right",children:[(0,P.jsx)(b.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:L.HJ}],children:(0,P.jsx)(x.Z,{placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,showCount:!0})}),(0,P.jsxs)(ve.Z,{gutter:[10,0],children:[(0,P.jsx)(be.Z,{children:(0,P.jsx)(b.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,P.jsxs)(Se.default,{style:{width:120},placeholder:"请选择职业",children:[(0,P.jsx)(d,{value:"teacher",children:"教师"}),(0,P.jsx)(d,{value:"student",children:"学生"}),(0,P.jsx)(d,{value:"professional",children:"专业人士"})]})})}),"student"===g.identity&&(0,P.jsx)(be.Z,{flex:1,children:(0,P.jsx)(b.Z.Item,{name:"studentNo",validateTrigger:"onBlur",dependencies:["school"],rules:[{whitespace:!0,message:"不能全为空"},{required:!0,validator:(re=c()(o()().mark((function e(n,r){var i,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/users/accounts/".concat(null==t||null===(i=t.userInfo)||void 0===i?void 0:i.user_id,"/valid_student_id"),{method:"get",params:{school_id:(null==M||null===(a=M.find((function(e){return e.name===g.school})))||void 0===a?void 0:a.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),student_id:r}});case 2:return(null==(c=e.sent)?void 0:c.status)<-1&&Y&&(K(!0),q(!1)),e.abrupt("return",(null==c?void 0:c.status)<-1?Promise.reject((0,P.jsxs)("span",{children:["该学号已被使用,如需继续使用该学号,请先",(0,P.jsx)("a",{onClick:function(){K(!0)},children:"解绑学号"})]})):Promise.resolve());case 5:case"end":return e.stop()}}),e)}))),function(e,t){return re.apply(this,arguments)})}],children:(0,P.jsx)(x.Z,{size:"large",type:"text",placeholder:"请输入学号",showCount:!0,maxLength:20})})}),"teacher"===g.identity&&(0,P.jsx)(be.Z,{children:(0,P.jsx)(b.Z.Item,{initialValue:g.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,P.jsxs)(Se.default,{style:{width:120},size:"large",placeholder:"请选择职称",children:[(0,P.jsx)(d,{value:"教授",children:"教授"}),(0,P.jsx)(d,{value:"研究员",children:"研究员"}),(0,P.jsx)(d,{value:"副教授",children:"副教授"}),(0,P.jsx)(d,{value:"副研究员",children:"副研究员"}),(0,P.jsx)(d,{value:"讲师",children:"讲师"}),(0,P.jsx)(d,{value:"助理研究员",children:"助理研究员"}),(0,P.jsx)(d,{value:"助理教授",children:"助理教授"})]})})}),"professional"===g.identity&&(0,P.jsx)(be.Z,{children:(0,P.jsx)(b.Z.Item,{initialValue:g.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,P.jsxs)(Se.default,{style:{width:180},size:"large",placeholder:"请选择职称",children:[(0,P.jsx)(d,{value:"企业管理者",children:"企业管理者"}),(0,P.jsx)(d,{value:"部门管理者",children:"部门管理者"}),(0,P.jsx)(d,{value:"高级工程师",children:"高级工程师"}),(0,P.jsx)(d,{value:"工程师",children:"工程师"}),(0,P.jsx)(d,{value:"助理工程师",children:"助理工程师"})]})})}),("teacher"===g.identity||"professional"===g.identity)&&(0,P.jsx)(be.Z,{flex:1,className:De.staffWrap,children:(0,P.jsx)(b.Z.Item,{label:"工号",name:"staff_id",rules:[{validator:function(e,t){if(null===t||""===t)return Promise.resolve();return/[\u4E00-\u9FA5]/g.test(t)?Promise.reject("请勿输入中文字符"):t.length>20?Promise.reject("最大限制20个字符"):Promise.resolve()}}],children:(0,P.jsx)(x.Z,{placeholder:"请输入工号",className:De.staffidInput,suffix:" ",showCount:!0,maxLength:20})})})]}),(0,P.jsx)(b.Z.Item,{label:"学校/单位",name:"school",extra:!Z&&g.school&&!(null!=M&&M.find((function(e){return e.name===g.school})))&&(0,P.jsx)("div",{className:De.schoolHintWrap,children:(0,P.jsxs)("span",{className:De.colorCDCDCD,children:["未找到包含“",g.school,"”的高校,如有需要,请",(0,P.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){h.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,P.jsxs)("div",{style:{textAlign:"center"},children:[(0,P.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入 官方交流QQ群:","teacher"===g.identity?"727685969":"816055138",",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,P.jsx)("img",{src:"teacher"===g.identity?Be:Ae,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,P.jsx)(Te,{status:$,size:"large",showSearch:!0,onChange:te,placeholder:"请输入单位名称",suffixIcon:(0,P.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})}),children:M.map((function(e,t){return(0,P.jsx)(d,{value:e.name,children:e.name},t)}))})})]})]})}),(0,P.jsx)(h.Z,{title:"解绑学号",open:H,centered:!0,destroyOnClose:!0,onCancel:function(){K(!1),W.resetFields()},onOk:function(){W.submit()},children:(0,P.jsxs)(b.Z,{form:W,size:"large",onFinish:function(){var e=c()(o()().mark((function e(n){var r,i,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/users/accounts/".concat(null==t||null===(r=t.userInfo)||void 0===r?void 0:r.user_id,"/unbind_student_id.json"),{method:"post",body:a()({student_id:g.studentNo||s.getFieldValue("studentNo"),school_id:(null==M||null===(i=M.find((function(e){return e.name===g.school})))||void 0===i?void 0:i.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),check_type:4},n)});case 2:0==e.sent.status&&(y.ZP.success("解绑成功"),s.validateFields(),W.resetFields(),K(!1));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsxs)("div",{className:"mb20",children:["很抱歉,该学号(",g.studentNo||s.getFieldValue("studentNo"),")在",g.school,"内已被使用,您可以提供",(0,P.jsx)("span",{style:{color:"#3061d0"},children:"当前账号所在学校中任意一位已职业认证的教师姓名"}),"进行解绑:"]}),(0,P.jsx)(b.Z.Item,{name:"check_value",rules:[{required:!0,message:"请填写".concat(null==g?void 0:g.school,"中任意一位已职业认证的教师姓名")}],style:{marginBottom:"10px"},children:(0,P.jsx)(x.Z,{type:"text",placeholder:"请填写".concat(null==g?void 0:g.school,"中任意一位已职业认证的教师姓名")})}),(0,P.jsxs)("div",{children:["请注意,每位学生每天仅有 ",(0,P.jsx)("span",{style:{color:"#FA6400"},children:"2"})," 次成功解绑学号的机会,请谨慎操作"]})]})}),(0,P.jsx)(ot,{visible:J,onCancel:function(){return ee(!1)}})]})})),at="popLogin___u08I8",lt="tips___U2xQw",ct=/^1\d{10}$/,st=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,ut=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,dt=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.user,n=(e.globalSetting,e.dispatch),r=(0,v.useSearchParams)(),i=u()(r,1)[0],a={height:48,borderRadius:4},l=b.Z.useForm(),s=u()(l,1)[0],d=(0,f.useState)(60),p=u()(d,2),m=p[0],g=p[1],w=(0,f.useMemo)((function(){return m<60&&m>0}),[m]),$=(0,f.useRef)(),E=function(){var e=c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:clearInterval($.current),g(60),$.current=setInterval(function e(){return g((function(e){return e-1})),e}(),1e3);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=(0,f.useState)(!1),I=u()(k,2),Z=I[0],N=I[1],O=(0,f.useState)(!1),j=u()(O,2),M=j[0],R=j[1];(0,f.useEffect)((function(){t.bindAccountModalVisible?R(!0):R(!1)}),[t]);var z=function(){var e=c()(o()().mark((function e(){var r,i,a,l,c,u,d,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.getFieldValue("userInput"),i=ct.test(r),a=st.test(r),i||a){e.next=6;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 6:if(N(!0),!i){e.next=20;break}return e.next=10,(0,Le.ZP)("/api/users/accounts/".concat(null===(l=t.userInfoForBindAccountModal)||void 0===l?void 0:l.login,"/valid_phone.json"),{method:"get",params:{phone:r}});case 10:if(-1!==(null==(c=e.sent)?void 0:c.status)){e.next=14;break}return N(!1),e.abrupt("return");case 14:if(null==c||!c.is_exists){e.next=18;break}return y.ZP.info("该手机号已被其它账号绑定"),N(!1),e.abrupt("return");case 18:e.next=27;break;case 20:return e.next=22,(0,Le.ZP)("/api/accounts/valid_email_and_phone",{method:"get",params:{login:r,type:1}});case 22:if(-3!==(null==(u=e.sent)?void 0:u.status)){e.next=27;break}return y.ZP.info("该邮箱已被注册"),N(!1),e.abrupt("return");case 27:return d=(0,L.M)(r),e.next=30,n({type:"account/getCode",payload:{login:r,type:i?3:4,smscode:d}});case 30:p=e.sent,N(!1),1===p.status&&(y.ZP.info("验证码已发送,请注意查收"),E());case 33:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c()(o()().mark((function e(){var r,i,a,l,c,u,d,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(r=s.getFieldValue("userInput"),i=s.getFieldValue("code"),a=ct.test(r),l=st.test(r),a||l){e.next=9;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 9:if(!a){e.next=16;break}return e.next=12,n({type:"account/bindPhone",payload:{login:null===(c=t.userInfoForBindAccountModal)||void 0===c?void 0:c.login,phone:r,code:i}});case 12:return u=e.sent,e.abrupt("return",0===u.status);case 16:return e.next=18,n({type:"account/bindEmail",payload:{login:null===(d=t.userInfoForBindAccountModal)||void 0===d?void 0:d.login,email:r,code:i}});case 18:return p=e.sent,e.abrupt("return",0===p.status);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=c()(o()().mark((function e(){var r,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.loginInfo,ut.test(r.password)||y.ZP.error("系统检测您的密码强度过低,请及时修改"),e.next=4,(0,S.Es)(r);case 4:if(!(a=e.sent).status){e.next=8;break}return y.ZP.error(null==a?void 0:a.message),e.abrupt("return");case 8:null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),"/user/login"===location.pathname||"/login"===location.pathname?(l=i.get("from")||i.get("back_url"))?window.location.href=decodeURIComponent(l):ut.test(r.password)?window.location.reload():(y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure"):ut.test(r.password)?window.location.reload():(y.ZP.info("系统检测您的密码强度过低,请及时修改"),v.history.replace("/account/secure?active=3"),n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}})),s.resetFields();case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:if(!e.sent){e.next=6;break}return e.next=6,D();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)(h.Z,{centered:!0,open:M,footer:null,width:596,keyboard:!1,maskClosable:!0,wrapClassName:at,closable:!0,onCancel:function(){n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}}),s.resetFields()},children:[(0,P.jsx)("h1",{className:"font18 mb20",children:"手机号/邮箱绑定"}),(0,P.jsxs)(b.Z,{layout:"vertical",form:s,autoComplete:"off",preserve:!1,children:[(0,P.jsx)(b.Z.Item,{name:"userInput",rules:[{required:!0,message:"请输入正确的手机号/邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):ct.test(t)||st.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,P.jsx)(x.Z,{style:a,size:"middle",placeholder:"请输入有效的手机号/邮箱号"})}),(0,P.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,P.jsx)(x.Z,{suffix:(0,P.jsx)(C.ZP,{loading:Z,type:"link",onClick:z,disabled:w,children:w?"".concat(m,"秒可重新获取"):"获取验证码"}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})})]}),(0,P.jsx)("div",{className:lt,children:"为了账号安全性,绑定后可通过该手机号或邮箱找回密码"}),(0,P.jsx)(C.ZP,{size:"middle",type:"primary",block:!0,style:a,className:"font16",onClick:B,children:"绑定并登录"}),(0,P.jsxs)("div",{className:lt,children:["登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})})),pt=n(71418),ft=n(37205),mt=n.n(ft),gt=n(70236),ht=n.n(gt),vt="wrap___q9xAc",bt="list___qjgdz",yt="name___ncYhC",xt="tag___Paafn",wt=n(1499),Ct=function(e){ht()(e);var t=(0,f.useState)(!1),n=u()(t,2),r=n[0],i=n[1],a=(0,f.useState)([]),l=u()(a,2),s=l[0],d=l[1],p=(0,f.useState)([]),m=u()(p,2),g=m[0],b=m[1],y=(0,f.useState)(!1),x=u()(y,2),S=x[0],$=x[1],E=(0,f.useState)(!1),k=u()(E,2),I=k[0],Z=k[1],N=(0,v.useLocation)(),O=(0,v.useSearchParams)(),j=u()(O,1)[0];(0,f.useEffect)((function(){wt.Z.subscribe("pod-restrict-data",(function(e){console.log(e,"data"),i(e.identifier||!1),d(e.data_list||[]),b([]),$(!1)}))}),[]);var M=function(){var e=c()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),t=s.filter((function(e){return g.includes(e.tpi_id)})),e.next=4,(0,Le.ZP)("/api/myshixuns/batch_del_pods.json",{method:"delete",body:{del_pods:t}});case 4:0===e.sent.status&&window.location.reload(),Z(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e;if(console.log(N,"location"),null===(e=N.pathname)||void 0===e||!e.includes("/challenges"))return"exercises"===j.get("type")?(window.parent.postMessage("backExercise","*"),void wt.Z.publish("pod-restrict-data",{identifier:!1,data_list:[]})):void(window.location.href="/shixuns/".concat(r,"/challenges"));window.location.href="/shixuns"};return(0,P.jsx)(h.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:r,title:"通知",width:"600px",footer:(0,P.jsxs)(ve.Z,{align:"middle",justify:"center",children:[(0,P.jsx)(w.Z,{onChange:function(e){var t;(console.log(e,222),$(e.target.checked),e.target.checked)?b(null==s||null===(t=s.filter((function(e){return!e.is_current_shixun})))||void 0===t?void 0:t.map((function(e){return e.tpi_id}))):b([])},checked:S,children:"全选"}),(0,P.jsx)(C.ZP,{style:{marginLeft:"auto"},onClick:R,children:"取消"}),(0,P.jsx)(C.ZP,{disabled:!g.length,loading:I,type:"primary",onClick:M,children:"关闭实训"})]}),onCancel:R,children:(0,P.jsx)(pt.Z,{spinning:I,children:(0,P.jsxs)("div",{className:vt,children:[(0,P.jsx)("p",{children:"单个账号最多可同时开启10个实验环境,若想开启该实训请关闭其他实训。"}),null==s?void 0:s.map((function(e){return(0,P.jsxs)("div",{className:bt,children:[(0,P.jsx)(w.Z,{disabled:e.is_current_shixun,onChange:function(t){var n=mt()(g);t.target.checked?n.push(e.tpi_id):n=g.filter((function(t){return t!==e.tpi_id})),b(n),$(n.length===s.length)},checked:null==g?void 0:g.includes(e.tpi_id)}),(0,P.jsxs)("span",{className:yt,onClick:function(){return(0,L.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges"))},title:e.shixun_name,children:[(0,P.jsx)("b",{children:e.shixun_name}),e.is_current_shixun&&(0,P.jsx)("span",{className:xt,children:"当前实训"})]}),(0,P.jsxs)("span",{style:{color:"#53d1a3"},children:["运行中的环境:",e.pod_num,"个"]})]},e.tpi_id)}))]})})})},St=n(61186),$t=n.n(St),Et={token:{colorPrimary:"#3061D0",colorInfo:"#3061D0",colorLink:"#3061D0",borderRadius:2,fontSizeLG:14},components:{Radio:{radioSize:16,dotSize:6},Modal:{titleFontSize:16,titleColor:"#000"}}},kt=["loading","globalSetting","dispatch"],It=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting}}))((function(e){e.loading;var t=e.globalSetting,n=e.dispatch,r=(p()(e,kt),"https://educoder-public.oss-cn-hangzhou.aliyuncs.com/Cover/logo_simple?x-oss-process=image/resize,h_200,w_200,m_pad");(0,f.useEffect)((function(){(0,L.IS)()&&function(){a.apply(this,arguments)}()}),[]),(0,f.useEffect)((function(){n({type:"globalSetting/setShareData",payload:{desc:" ,全称“ 实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",title:document.title,imgUrl:r}})}),[location.pathname]),(0,f.useEffect)((function(){i()}),[null==t?void 0:t.shareData]);var i=function(){var e;null===(e=window.wx)||void 0===e||e.ready((function(){var e,n,o,i,a,l={title:(null==t||null===(e=t.shareData)||void 0===e?void 0:e.title)||document.title,desc:(null==t||null===(n=t.shareData)||void 0===n?void 0:n.desc)||" ,全称“ 实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",link:window.location.href,imgUrl:(null==t||null===(o=t.shareData)||void 0===o||null===(o=o.imgUrl)||void 0===o?void 0:o.replace("https://public.educoder.net","https://educoder-public.oss-cn-hangzhou.aliyuncs.com/"))||r};null===(i=window.wx)||void 0===i||i.onMenuShareAppMessage(l),null===(a=window.wx)||void 0===a||a.onMenuShareTimeline(l)}))};function a(){return(a=c()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/users/js_sdk_data.json?url=".concat(encodeURIComponent(location.href)),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&l(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){window.wx.config({debug:!1,appId:(null==e?void 0:e.appid)||"wx2402d86a6b534f77",timestamp:(null==e?void 0:e.timestamp)||1716781260,nonceStr:(null==e?void 0:e.noncestr)||"WjRUMvS[",signature:(null==e?void 0:e.signature)||"0e182307b372cf71796c33e01b462cbfca0b9930",jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"]})}return(0,P.jsx)(P.Fragment,{})})),Zt=(n(65517),n(66604)),Nt=["loading","globalSetting","user","dispatch"];$t().locale("zh-cn");var Ot=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting,user:e.user}}))((function(e){e.loading;var t=e.globalSetting,n=(e.user,e.dispatch),r=(p()(e,Nt),(0,v.useLocation)()),i=(0,v.useSearchParams)(),l=(u()(i,1)[0],t.globalLoading),s=function(){var e=c()(o()().mark((function e(){var t,i,l,c,s,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r.pathname.split("/"),null==r||!r.search){e.next=9;break}return c.includes("paths")?s=c[2]:c.includes("tasks")&&(u=c[2]),e.next=6,n({type:"user/getUserInfo",payload:a()(a()({},(0,L.oP)()),{},{subject_id:s,game_id:u,websiteName:"educoder"})});case 6:i=e.sent,e.next=14;break;case 9:return c.includes("tasks")&&(l=c[2]),e.next=13,n({type:"user/getUserInfo",payload:{game_id:l}});case 13:i=e.sent;case 14:"游客"!==(null===(t=i)||void 0===t?void 0:t.username)&&("/login"===r.pathname&&(window.location.href="/"),"/user/login"!==r.pathname&&"/login"!==r.pathname&&window.sessionStorage.getItem("download_url")&&((0,L.Nd)("educoder",window.sessionStorage.getItem("download_url")),window.sessionStorage.removeItem("download_url")));case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){m.ZP.config({prefixCls:"ant",iconPrefixCls:"anticon",theme:a()({},Et)})}),[t.theme]),(0,f.useEffect)((function(){s(),n({type:"globalSetting/getBishengToken",payload:{}}),setInterval((function(){n({type:"globalSetting/getBishengToken",payload:{}})}),36e5),function(){function e(){var e=document.documentElement,t=e.clientWidth/1920;t=t>2?2:t<.6?.6:t,e.style.fontSize=t+"px"}window.addEventListener("resize",e),e()}()}),[]),(0,P.jsx)(Zt.V9,{transformers:[Zt.IJ],hashPriority:"high",children:(0,P.jsxs)(m.ZP,{locale:g.Z,autoInsertSpaceInButton:!1,componentSize:"middle",theme:Et,children:[(0,P.jsx)(Ce,{}),(0,P.jsx)(it,{}),(0,P.jsx)(dt,{}),(0,P.jsx)(It,{}),(0,P.jsx)(Ct,{}),(0,P.jsx)(pt.Z,{size:"middle",spinning:l.show,tip:l.text,className:"ant-spin-nested-loading-black",children:(0,P.jsx)(v.Outlet,{})})]})})}))},36785:function(e,t,n){n.d(t,{o2:function(){return l},yT:function(){return c}});var r=n(95190),o=n(33166);const i=o.i.map((e=>`${e}-inverse`)),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function c(e){return a.includes(e)}},56762:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(59301);function o(){const[,e]=r.useReducer((e=>e+1),0);return e}},79676:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(60293);const o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:c,borderRadius:s,visibleFirst:u}=e,d=t/2,p={};return Object.keys(o).forEach((e=>{const f=l&&i[e]||o[e],m=Object.assign(Object.assign({},f),{offset:[0,0]});switch(p[e]=m,a.has(e)&&(m.autoArrow=!1),e){case"top":case"topLeft":case"topRight":m.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=d+c}const g=(0,r.fS)({contentRadius:s,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":m.offset[0]=-g.dropdownArrowOffset-d;break;case"topRight":case"bottomRight":m.offset[0]=g.dropdownArrowOffset+d;break;case"leftTop":case"rightTop":m.offset[1]=-g.dropdownArrowOffset-d;break;case"leftBottom":case"rightBottom":m.offset[1]=g.dropdownArrowOffset+d}m.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),u&&(m.htmlRegion="visibleFirst")})),p}},69507:function(e,t,n){n.d(t,{ZP:function(){return a},c4:function(){return i}});var r=n(59301),o=n(88088);const i=["xxl","xl","lg","md","sm","xs"];function a(){const[,e]=(0,o.Z)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch(t){return r=t,e.forEach((e=>e(r))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}},19080:function(e,t,n){n.d(t,{F:function(){return a},Z:function(){return i}});var r=n(92310),o=n.n(r);function i(e,t,n){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},24905:function(e,t,n){n.d(t,{Z:function(){return $}});var r=n(92310),o=n.n(r),i=n(5630),a=n(59301),l=n(36355),c=n(1684),s=n(32441);var u=a.createContext(null),d=n(98447),p=n(14088),f=n(4572),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:g,rootClassName:h,children:v,indeterminate:b=!1,style:y,onMouseEnter:x,onMouseLeave:w,skipGroup:C=!1,disabled:S}=e,$=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:E,direction:k,checkbox:I}=a.useContext(l.E_),Z=a.useContext(u),{isFormItemInput:N}=a.useContext(s.aM),O=a.useContext(c.Z),j=null!==(n=(null==Z?void 0:Z.disabled)||S)&&void 0!==n?n:O,M=a.useRef($.value);a.useEffect((()=>{null==Z||Z.registerValue($.value)}),[]),a.useEffect((()=>{if(!C)return $.value!==M.current&&(null==Z||Z.cancelValue(M.current),null==Z||Z.registerValue($.value),M.current=$.value),()=>null==Z?void 0:Z.cancelValue($.value)}),[$.value]);const P=E("checkbox",r),[R,z]=(0,d.ZP)(P),T=Object.assign({},$);Z&&!C&&(T.onChange=function(){$.onChange&&$.onChange.apply($,arguments),Z.toggleOption&&Z.toggleOption({label:v,value:$.value})},T.name=Z.name,T.checked=Z.value.includes($.value));const L=o()(`${P}-wrapper`,{[`${P}-rtl`]:"rtl"===k,[`${P}-wrapper-checked`]:T.checked,[`${P}-wrapper-disabled`]:j,[`${P}-wrapper-in-form-item`]:N},null==I?void 0:I.className,g,h,z),D=o()({[`${P}-indeterminate`]:b},f.A,z),B=b?"mixed":void 0;return R(a.createElement(p.Z,{component:"Checkbox",disabled:j},a.createElement("label",{className:L,style:Object.assign(Object.assign({},null==I?void 0:I.style),y),onMouseEnter:x,onMouseLeave:w},a.createElement(i.Z,Object.assign({"aria-checked":B},T,{prefixCls:P,className:D,disabled:j,ref:t})),void 0!==v&&a.createElement("span",null,v))))};var h=a.forwardRef(g),v=n(95190),b=n(2738),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:i=[],prefixCls:c,className:s,rootClassName:p,style:f,onChange:m}=e,g=y(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:x,direction:w}=a.useContext(l.E_),[C,S]=a.useState(g.value||n||[]),[$,E]=a.useState([]);a.useEffect((()=>{"value"in g&&S(g.value||[])}),[g.value]);const k=a.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),I=x("checkbox",c),Z=`${I}-group`,[N,O]=(0,d.ZP)(I),j=(0,b.Z)(g,["value","disabled"]),M=i.length?k.map((e=>a.createElement(h,{prefixCls:I,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${Z}-item`,style:e.style,title:e.title},e.label))):r,P={toggleOption:e=>{const t=C.indexOf(e.value),n=(0,v.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in g||S(n),null==m||m(n.filter((e=>$.includes(e))).sort(((e,t)=>k.findIndex((t=>t.value===e))-k.findIndex((e=>e.value===t)))))},value:C,disabled:g.disabled,name:g.name,registerValue:e=>{E((t=>[].concat((0,v.Z)(t),[e])))},cancelValue:e=>{E((t=>t.filter((t=>t!==e))))}},R=o()(Z,{[`${Z}-rtl`]:"rtl"===w},s,p,O);return N(a.createElement("div",Object.assign({className:R,style:f},j,{ref:t}),a.createElement(u.Provider,{value:P},M)))},w=a.forwardRef(x);var C=a.memo(w);const S=h;S.Group=C,S.__ANT_CHECKBOX=!0;var $=S},98447:function(e,t,n){n.d(t,{C2:function(){return l}});var r=n(17313),o=n(37613),i=n(83116);const a=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,r.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function l(e,t){const n=(0,o.TS)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[a(n)]}t.ZP=(0,i.Z)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[l(n,e)]}))},43604:function(e,t,n){var r=n(37028);t.Z=r.Z},93891:function(e,t,n){var r=n(59301),o=n(36355),i=n(64165);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(o.E_),a=n("empty");switch(t){case"Table":case"List":return r.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return r.createElement(i.Z,null)}}},8070:function(e,t,n){n.d(t,{Z:function(){return B}});var r=n(59301),o=n(38819),i=n(92310),a=n.n(i),l=n(31561),c=n(70425),s=n(18929),u=n(2738),d=n(79676),p=n(53487),f=n(92343),m=n(36355),g=n(20834),h=n(40875),v=n(88088),b=n(17313),y=n(13826),x=n(92899),w=n(29878),C=n(60293),S=n(83116),$=n(37613);var E=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}};const k=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,dropdownPaddingVertical:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:i/2-o,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:y.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:y.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:y.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:y.ly}})},(0,C.ZP)(e,{colorBg:g,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,b.Qy)(e)),{[`${n}-item-group-title`]:{padding:`${s}px ${m}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${s}px ${m}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,b.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:m+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[(0,y.oN)(e,"slide-up"),(0,y.oN)(e,"slide-down"),(0,x.Fm)(e,"move-up"),(0,x.Fm)(e,"move-down"),(0,w._y)(e,"zoom-big")]]};var I=(0,S.Z)("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:c,componentCls:s,borderRadiusLG:u}=e,d=(i-a*l)/2,{dropdownArrowOffset:p}=(0,C.fS)({contentRadius:u}),f=(0,$.TS)(e,{menuCls:`${s}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:p,dropdownPaddingVertical:d,dropdownEdgeChildPadding:c});return[k(f),E(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));const Z=e=>{const{menu:t,arrow:n,prefixCls:i,children:p,trigger:b,disabled:y,dropdownRender:x,getPopupContainer:w,overlayClassName:C,rootClassName:S,open:$,onOpenChange:E,visible:k,onVisibleChange:Z,mouseEnterDelay:N=.15,mouseLeaveDelay:O=.1,autoAdjustOverflow:j=!0,placement:M="",overlay:P,transitionName:R}=e,{getPopupContainer:z,getPrefixCls:T,direction:L}=r.useContext(m.E_);const D=r.useMemo((()=>{const e=T();return void 0!==R?R:M.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[T,M,R]),B=r.useMemo((()=>{if(!M)return"rtl"===L?"bottomRight":"bottomLeft";if(M.includes("Center")){return M.slice(0,M.indexOf("Center"))}return M}),[M,L]);const A=T("dropdown",i),[_,H]=I(A),[,K]=(0,v.Z)(),F=r.Children.only(p),W=(0,f.Tm)(F,{className:a()(`${A}-trigger`,{[`${A}-rtl`]:"rtl"===L},F.props.className),disabled:y}),V=y?[]:b;let X;V&&V.includes("contextMenu")&&(X=!0);const[G,Y]=(0,s.Z)(!1,{value:null!=$?$:k}),q=(0,c.zX)((e=>{null==E||E(e),null==Z||Z(e),Y(e)})),U=a()(C,S,H,{[`${A}-rtl`]:"rtl"===L}),Q=(0,d.Z)({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:j,offset:K.marginXXS,arrowWidth:n?K.sizePopupArrow:0,borderRadius:K.borderRadius}),J=r.useCallback((()=>{Y(!1)}),[]);return _(r.createElement(l.Z,Object.assign({alignPoint:X},(0,u.Z)(e,["rootClassName"]),{mouseEnterDelay:N,mouseLeaveDelay:O,visible:G,builtinPlacements:Q,arrow:!!n,overlayClassName:U,prefixCls:A,getPopupContainer:w||z,transitionName:D,trigger:V,overlay:()=>{let e;return e=(null==t?void 0:t.items)?r.createElement(g.Z,Object.assign({},t)):"function"==typeof P?P():P,x&&(e=x(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(h.J,{prefixCls:`${A}-menu`,expandIcon:r.createElement("span",{className:`${A}-menu-submenu-arrow`},r.createElement(o.Z,{className:`${A}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:e=>{let{mode:t}=e}},e)},placement:B,onVisibleChange:q}),W))};const N=(0,p.Z)(Z,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Z._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(N,Object.assign({},e),r.createElement("span",null));var O=Z,j=n(18785),M=n(3113),P=n(81327),R=n(33234),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(m.E_),{prefixCls:i,type:l="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:p,children:f,className:g,menu:h,arrow:v,autoFocus:b,overlay:y,trigger:x,align:w,open:C,onOpenChange:S,placement:$,getPopupContainer:E,href:k,icon:Z=r.createElement(j.Z,null),title:N,buttonsRender:T=(e=>e),mouseEnterDelay:L,mouseLeaveDelay:D,overlayClassName:B,overlayStyle:A,destroyPopupOnHide:_,dropdownRender:H}=e,K=z(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),W=`${F}-button`,[V,X]=I(F),G={menu:h,arrow:v,autoFocus:b,align:w,disabled:s,trigger:s?[]:x,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:L,mouseLeaveDelay:D,overlayClassName:B,overlayStyle:A,destroyPopupOnHide:_,dropdownRender:H},{compactSize:Y,compactItemClassnames:q}=(0,R.ri)(F,o),U=a()(W,q,g,X);"overlay"in e&&(G.overlay=y),"open"in e&&(G.open=C),G.placement="placement"in e?$:"rtl"===o?"bottomLeft":"bottomRight";const Q=r.createElement(M.ZP,{type:l,danger:c,disabled:s,loading:u,onClick:d,htmlType:p,href:k,title:N},f),J=r.createElement(M.ZP,{type:l,danger:c,icon:Z}),[ee,te]=T([Q,J]);return V(r.createElement(P.Z.Compact,Object.assign({className:U,size:Y,block:!0},K),ee,r.createElement(O,Object.assign({},G),te)))};T.__ANT_BUTTON=!0;var L=T;const D=O;D.Button=L;var B=D},64165:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(92310),o=n.n(r),i=n(59301),a=n(36355),l=n(9763),c=n(60654),s=n(88088);var u=()=>{const[,e]=(0,s.Z)(),t=new c.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var d=()=>{const[,e]=(0,s.Z)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:l,contentColor:u}=(0,i.useMemo)((()=>({borderColor:new c.C(t).onBackground(o).toHexShortString(),shadowColor:new c.C(n).onBackground(o).toHexShortString(),contentColor:new c.C(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:a},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))},p=n(83116),f=n(37613);const m=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var g=(0,p.Z)("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=(0,f.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[m(r)]})),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:c=v,description:s,children:u,imageStyle:d,style:p}=e,f=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:y,empty:x}=i.useContext(a.E_),w=m("empty",r),[C,S]=g(w),[$]=(0,l.Z)("Empty"),E=void 0!==s?s:null==$?void 0:$.description,k="string"==typeof E?E:"empty";let I=null;return I="string"==typeof c?i.createElement("img",{alt:k,src:c}):c,C(i.createElement("div",Object.assign({className:o()(S,w,null==x?void 0:x.className,{[`${w}-normal`]:c===b,[`${w}-rtl`]:"rtl"===y},t,n),style:Object.assign(Object.assign({},null==x?void 0:x.style),p)},f),i.createElement("div",{className:`${w}-image`,style:d},I),E&&i.createElement("div",{className:`${w}-description`},E),u&&i.createElement("div",{className:`${w}-footer`},u)))};y.PRESENTED_IMAGE_DEFAULT=v,y.PRESENTED_IMAGE_SIMPLE=b;var x=y},83447:function(e,t,n){n.d(t,{Z:function(){return De}});var r=n(95190),o=n(92310),i=n.n(o),a=n(77900),l=n(59301),c=n(62892),s=n(32441);function u(e){const[t,n]=l.useState(e);return l.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var d=n(17313),p=n(29878),f=n(8378),m=n(37613),g=n(83116);var h=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),b=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},y=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,d.Wf)(e)),v(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},b(e,e.controlHeightSM)),"&-large":Object.assign({},b(e,e.controlHeightLG))})}},x=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},(0,d.Wf)(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:p.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},w=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},C=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},S=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:S(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},E=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:S(e),[`@media (max-width: ${e.screenXSMax}px)`]:[$(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:S(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:S(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:S(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:S(e)}}}},k=(e,t)=>(0,m.TS)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var I=(0,g.Z)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=k(e,n);return[y(r),x(r),h(r),w(r),C(r),E(r),(0,f.Z)(r),p.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3});const Z=[];function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}var O=e=>{let{help:t,helpStatus:n,errors:o=Z,warnings:d=Z,className:p,fieldId:f,onVisibleChanged:m}=e;const{prefixCls:g}=l.useContext(s.Rk),h=`${g}-item-explain`,[,v]=I(g),b=(0,l.useMemo)((()=>(0,c.Z)(g)),[g]),y=u(o),x=u(d),w=l.useMemo((()=>null!=t?[N(t,"help",n)]:[].concat((0,r.Z)(y.map(((e,t)=>N(e,"error","error",t)))),(0,r.Z)(x.map(((e,t)=>N(e,"warning","warning",t)))))),[t,n,y,x]),C={};return f&&(C.id=`${f}_help`),l.createElement(a.ZP,{motionDeadline:b.motionDeadline,motionName:`${g}-show-help`,visible:!!w.length,onVisibleChanged:m},(e=>{const{className:t,style:n}=e;return l.createElement("div",Object.assign({},C,{className:i()(h,t,p,v),style:n,role:"alert"}),l.createElement(a.V4,Object.assign({keys:w},(0,c.Z)(g),{motionName:`${g}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return l.createElement("div",{key:t,className:i()(o,{[`${h}-${r}`]:r}),style:a},n)})))}))},j=n(95013),M=n(36355),P=n(1684),R=n(52946),z=n(19716);const T=e=>"object"==typeof e&&null!=e&&1===e.nodeType,L=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,D=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,A=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},_=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!T(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;T(m)&&d(m);){if(m=A(m),m===p){f.push(m);break}null!=m&&m===document.body&&D(m)&&!D(document.documentElement)||null!=m&&D(m,u)&&f.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:w,right:C,bottom:S,left:$}=e.getBoundingClientRect(),{top:E,right:k,bottom:I,left:Z}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===l||"nearest"===l?w-E:"end"===l?S+I:w+y/2-E+I,O="center"===c?$+x/2-Z+k:"end"===c?C+k:$-Z;const j=[];for(let e=0;e=0&&$>=0&&S<=h&&C<=g&&(t===p&&!D(t)||w>=o&&S<=s&&$>=u&&C<=i))return j;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),I=parseInt(d.borderBottomWidth,10);let Z=0,M=0;const P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-k:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-I:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,T="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)Z="start"===l?N:"end"===l?N-h:"nearest"===l?B(b,b+h,h,E,I,b+N,b+N+y,y):N-h/2,M="start"===c?O:"center"===c?O-g/2:"end"===c?O-g:B(v,v+g,g,m,k,v+O,v+O+x,x),Z=Math.max(0,Z+b),M=Math.max(0,M+v);else{Z="start"===l?N-o-E:"end"===l?N-s+I+R:"nearest"===l?B(o,s,n,E,I+R,N,N+y,y):N-(o+n/2)+R/2,M="start"===c?O-u-m:"center"===c?O-(u+r/2)+P/2:"end"===c?O-i+k+P:B(u,i,r,m,k+P,O,O+x,x);const{scrollLeft:e,scrollTop:a}=t;Z=0===T?0:Math.max(0,Math.min(a+Z/T,t.scrollHeight-n/T+R)),M=0===z?0:Math.max(0,Math.min(e+M/z,t.scrollWidth-r/z+P)),N+=a-Z,O+=e-M}j.push({el:t,top:Z,left:M})}return j};function H(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(_(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of _(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}const K=["parentNode"];function F(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function W(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return K.includes(n)?`form_item_${n}`:n}function V(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function X(e){return F(e).join("_")}function G(e){const[t]=(0,j.cI)(),n=l.useRef({}),r=l.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=X(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=F(e),o=W(n,r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&H(i,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=X(e);return n.current[t]}})),[e,t]);return[r]}var Y=n(28726),q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=l.useContext(P.Z),{getPrefixCls:r,direction:o,form:a}=l.useContext(M.E_),{prefixCls:c,className:u,rootClassName:d,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:v,labelCol:b,wrapperCol:y,hideRequiredMark:x,layout:w="horizontal",scrollToFirstError:C,requiredMark:S,onFinishFailed:$,name:E,style:k,feedbackIcons:Z}=e,N=q(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),O=(0,z.Z)(p),T=l.useContext(Y.Z);const L=(0,l.useMemo)((()=>void 0!==S?S:a&&void 0!==a.requiredMark?a.requiredMark:!x),[x,S,a]),D=null!=g?g:null==a?void 0:a.colon,B=r("form",c),[A,_]=I(B),H=i()(B,`${B}-${w}`,{[`${B}-hide-required-mark`]:!1===L,[`${B}-rtl`]:"rtl"===o,[`${B}-${O}`]:O},_,null==a?void 0:a.className,u,d),[K]=G(m),{__INTERNAL__:F}=K;F.name=E;const W=(0,l.useMemo)((()=>({name:E,labelAlign:h,labelCol:b,labelWrap:v,wrapperCol:y,vertical:"vertical"===w,colon:D,requiredMark:L,itemRef:F.itemRef,form:K,feedbackIcons:Z})),[E,h,b,y,w,D,L,K,Z]);l.useImperativeHandle(t,(()=>K));const V=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),K.scrollToField(t,n)}};return A(l.createElement(P.n,{disabled:f},l.createElement(R.q,{size:O},l.createElement(s.RV,Object.assign({},{validateMessages:T}),l.createElement(s.q3.Provider,{value:W},l.createElement(j.ZP,Object.assign({id:E},N,{name:E,onFinishFailed:e=>{if(null==$||$(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==C)return void V(C,t);a&&void 0!==a.scrollToFirstError&&V(a.scrollToFirstError,t)}},form:K,style:Object.assign(Object.assign({},null==a?void 0:a.style),k),className:H})))))))};var Q=l.forwardRef(U),J=n(41799),ee=n(8654),te=n(92343),ne=n(11592);const re=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(s.aM);return{status:e,errors:t,warnings:n}};re.Context=s.aM;var oe=re,ie=n(16089);var ae=n(29194),le=n(34280),ce=n(2738),se=n(27382),ue=n(37028);const de=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var pe=(0,g.b)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=k(e,n);return[de(r)]}));var fe=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:c,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h=`${t}-item`,v=l.useContext(s.q3),b=r||v.wrapperCol||{},y=i()(`${h}-control`,b.className),x=l.useMemo((()=>Object.assign({},v)),[v]);delete x.labelCol,delete x.wrapperCol;const w=l.createElement("div",{className:`${h}-control-input`},l.createElement("div",{className:`${h}-control-input-content`},o)),C=l.useMemo((()=>({prefixCls:t,status:n})),[t,n]),S=null!==m||a.length||c.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(s.Rk.Provider,{value:C},l.createElement(O,{fieldId:f,errors:a,warnings:c,help:p,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,$={};f&&($.id=`${f}_extra`);const E=d?l.createElement("div",Object.assign({},$,{className:`${h}-extra`}),d):null,k=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:w,errorList:S,extra:E}):l.createElement(l.Fragment,null,w,S,E);return l.createElement(s.q3.Provider,{value:x},l.createElement(ue.Z,Object.assign({},b,{className:y}),k),l.createElement(pe,{prefixCls:t}))},me=n(14809),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},he=n(7657),ve=function(e,t){return l.createElement(he.Z,(0,me.Z)({},e,{ref:t,icon:ge}))};var be=l.forwardRef(ve),ye=n(41412),xe=n(9763),we=n(6848),Ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:c,required:u,requiredMark:d,tooltip:p}=e;var f;const[m]=(0,xe.Z)("Form"),{vertical:g,labelAlign:h,labelCol:v,labelWrap:b,colon:y}=l.useContext(s.q3);if(!n)return null;const x=o||v||{},w=a||h,C=`${t}-item-label`,S=i()(C,"left"===w&&`${C}-left`,x.className,{[`${C}-wrap`]:!!b});let $=n;const E=!0===c||!1!==y&&!1!==c;E&&!g&&"string"==typeof n&&""!==n.trim()&&($=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||l.isValidElement(e)?{title:e}:e:null}(p);if(k){const{icon:e=l.createElement(be,null)}=k,n=Ce(k,["icon"]),r=l.createElement(we.Z,Object.assign({},n),l.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));$=l.createElement(l.Fragment,null,$,r)}const I="optional"===d,Z="function"==typeof d;Z?$=d($,{required:!!u}):I&&!u&&($=l.createElement(l.Fragment,null,$,l.createElement("span",{className:`${t}-item-optional`,title:""},(null==m?void 0:m.optional)||(null===(f=ye.Z.Form)||void 0===f?void 0:f.optional))));const N=i()({[`${t}-item-required`]:u,[`${t}-item-required-mark-optional`]:I||Z,[`${t}-item-no-colon`]:!E});return l.createElement(ue.Z,Object.assign({},x,{className:S}),l.createElement("label",{htmlFor:r,className:N,title:"string"==typeof n?n:""},$))},$e=n(29679),Ee=n(19248),ke=n(96512),Ie=n(58617);const Ze={success:$e.Z,warning:ke.Z,error:Ee.Z,validating:Ie.Z};function Ne(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:c,meta:u,noStyle:d}=e;const p=`${c}-item`,{feedbackIcons:f}=l.useContext(s.q3),m=V(n,r,u,null,!!o,a),{isFormItemInput:g,status:h}=l.useContext(s.aM),v=l.useMemo((()=>{var e;let t;if(o){const a=!0!==o&&o.icons||f,c=m&&(null===(e=null==a?void 0:a({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),s=m&&Ze[m];t=!1!==c&&s?l.createElement("span",{className:i()(`${p}-feedback-icon`,`${p}-feedback-icon-${m}`)},c||l.createElement(s,null)):null}let a=!0,c=m||"";return d&&(a=g,c=(null!=m?m:h)||""),{status:c,errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:a}}),[m,o,d,g,h]);return l.createElement(s.aM.Provider,{value:v},t)}var Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(Z&&$.current){const e=getComputedStyle($.current);j(parseInt(e.marginBottom,10))}}),[Z,N]);const M=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?E:f.errors,n=e?k:f.warnings;return V(t,n,f,"",!!m,p)}(),P=i()(C,n,r,{[`${C}-with-help`]:I||E.length||k.length,[`${C}-has-feedback`]:M&&m,[`${C}-has-success`]:"success"===M,[`${C}-has-warning`]:"warning"===M,[`${C}-has-error`]:"error"===M,[`${C}-is-validating`]:"validating"===M,[`${C}-hidden`]:g});return l.createElement("div",{className:P,style:o,ref:$},l.createElement(se.Z,Object.assign({className:`${C}-row`},(0,ce.Z)(w,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(Se,Object.assign({htmlFor:v},e,{requiredMark:S,required:null!=b?b:y,prefixCls:t})),l.createElement(fe,Object.assign({},e,f,{errors:E,warnings:k,prefixCls:t,status:M,help:a,marginBottom:O,onErrorVisibleChanged:e=>{e||j(null)}}),l.createElement(s.qI.Provider,{value:x},l.createElement(Ne,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:M},h)))),!!O&&l.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-O}}))}const Me=l.memo((e=>{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const Pe=function(e){const{name:t,noStyle:n,className:o,dependencies:a,prefixCls:c,shouldUpdate:u,rules:d,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:v,hidden:b,help:y}=e,{getPrefixCls:x}=l.useContext(M.E_),{name:w}=l.useContext(s.q3),C=function(e){if("function"==typeof e)return e;const t=(0,ne.Z)(e);return t.length<=1?t[0]:t}(p),S="function"==typeof C,$=l.useContext(s.qI),{validateTrigger:E}=l.useContext(j.zb),k=void 0!==v?v:E,Z=function(e){return!(null==e)}(t),N=x("form",c),[O,P]=I(N),R=l.useContext(j.ZM),z=l.useRef(),[T,L]=function(e){const[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),i=(0,l.useRef)(!1);return l.useEffect((()=>(i.current=!1,()=>{i.current=!0,ie.Z.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=(0,ie.Z)((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[D,B]=(0,J.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),A=(e,t)=>{L((n=>{const o=Object.assign({},n),i=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[i]:o[i]=e,o}))},[_,H]=l.useMemo((()=>{const e=(0,r.Z)(D.errors),t=(0,r.Z)(D.warnings);return Object.values(T).forEach((n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))})),[e,t]}),[T,D.errors,D.warnings]),K=function(){const{itemRef:e}=l.useContext(s.q3),t=l.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=(0,ee.sQ)(e(n),o)),t.current.ref}}();function V(t,r,a){return n&&!b?l.createElement(Ne,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:_,warnings:H,noStyle:!0},t):l.createElement(je,Object.assign({key:"row"},e,{className:i()(o,P),prefixCls:N,fieldId:r,isRequired:a,errors:_,warnings:H,meta:D,onSubItemMetaChange:A}),t)}if(!Z&&!S&&!a)return O(V(C));let X={};return"string"==typeof m?X.label=m:t&&(X.label=String(t)),g&&(X=Object.assign(Object.assign({},X),g)),O(l.createElement(j.gN,Object.assign({},e,{messageVariables:X,trigger:h,validateTrigger:k,onMetaChange:e=>{const t=null==R?void 0:R.getKey(e.name);if(B(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==y&&$){let n=e.name;if(e.destroy)n=z.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat((0,r.Z)(o)),z.current=n}$(e,n)}}}),((n,o,i)=>{const c=F(t).length&&o?o.name:[],s=W(c,w),p=void 0!==f?f:!(!d||!d.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},n);let g=null;if(Array.isArray(C)&&Z)g=C;else if(S&&(!u&&!a||Z));else if(!a||S||Z)if((0,te.l$)(C)){const t=Object.assign(Object.assign({},C.props),m);if(t.id||(t.id=s),y||_.length>0||H.length>0||e.extra){const n=[];(y||_.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}_.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,ee.Yr)(C)&&(t.ref=K(c,C));new Set([].concat((0,r.Z)(F(h)),(0,r.Z)(F(k)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),c=0;c{var{prefixCls:t,children:n}=e,r=ze(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(M.E_),i=o("form",t),a=l.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return l.createElement(j.aV,Object.assign({},r),((e,t,r)=>l.createElement(s.Rk.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const Le=Q;Le.Item=Re,Le.List=Te,Le.ErrorList=O,Le.useForm=G,Le.useFormInstance=function(){const{form:e}=(0,l.useContext)(s.q3);return e},Le.useWatch=j.qo,Le.Provider=s.RV,Le.create=()=>{};var De=Le},6700:function(e,t,n){const r=(0,n(59301).createContext)({});t.Z=r},37028:function(e,t,n){var r=n(59301),o=n(92310),i=n.n(o),a=n(36355),l=n(6700),c=n(98242),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:o}=r.useContext(a.E_),{gutter:d,wrap:p}=r.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:v,pull:b,className:y,children:x,flex:w,style:C}=e,S=s(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",f),[E,k]=(0,c.c)($);let I={};u.forEach((t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete S[t],I=Object.assign(Object.assign({},I),{[`${$}-${t}-${n.span}`]:void 0!==n.span,[`${$}-${t}-order-${n.order}`]:n.order||0===n.order,[`${$}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${$}-${t}-push-${n.push}`]:n.push||0===n.push,[`${$}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${$}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${$}-rtl`]:"rtl"===o})}));const Z=i()($,{[`${$}-${m}`]:void 0!==m,[`${$}-order-${g}`]:g,[`${$}-offset-${h}`]:h,[`${$}-push-${v}`]:v,[`${$}-pull-${b}`]:b},y,I,k),N={};if(d&&d[0]>0){const e=d[0]/2;N.paddingLeft=e,N.paddingRight=e}return w&&(N.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(w),!1!==p||N.minWidth||(N.minWidth=0)),E(r.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign({},N),C),className:Z,ref:t}),x))}));t.Z=d},8628:function(e,t,n){var r=n(59301),o=n(34280),i=n(56762),a=n(69507);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=(0,i.Z)(),l=(0,a.ZP)();return(0,o.Z)((()=>{const r=l.subscribe((r=>{t.current=r,e&&n()}));return()=>l.unsubscribe(r)}),[]),t.current}},27382:function(e,t,n){var r=n(59301),o=n(92310),i=n.n(o),a=n(69507),l=n(36355),c=n(6700),s=n(98242),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:p,className:f,style:m,children:g,gutter:h=0,wrap:v}=e,b=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:y,direction:x}=r.useContext(l.E_),[w,C]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[S,$]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=d(p,S),k=d(o,S),I=r.useRef(h),Z=(0,a.ZP)();r.useEffect((()=>{const e=Z.subscribe((e=>{$(e);const t=I.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&C(e)}));return()=>Z.unsubscribe(e)}),[]);const N=y("row",n),[O,j]=(0,s.V)(N),M=(()=>{const e=[void 0,void 0];return(Array.isArray(h)?h:[h,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?M[0]/-2:void 0;z&&(R.marginLeft=z,R.marginRight=z),[,R.rowGap]=M;const[T,L]=M,D=r.useMemo((()=>({gutter:[T,L],wrap:v})),[T,L,v]);return O(r.createElement(c.Z.Provider,{value:D},r.createElement("div",Object.assign({},b,{className:P,style:Object.assign(Object.assign({},R),m),ref:t}),g)))}));t.Z=p},98242:function(e,t,n){n.d(t,{V:function(){return c},c:function(){return s}});var r=n(83116),o=n(37613);const i=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let e=r;e>=0;e--)0===e?(o[`${n}${t}-${e}`]={display:"none"},o[`${n}-push-${e}`]={insetInlineStart:"auto"},o[`${n}-pull-${e}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${e}`]={marginInlineStart:0},o[`${n}${t}-order-${e}`]={order:0}):(o[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],o[`${n}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},o[`${n}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},o[`${n}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},o[`${n}${t}-order-${e}`]={order:e});return o})(e,t),c=(0,r.Z)("Grid",(e=>[i(e)])),s=(0,r.Z)("Grid",(e=>{const t=(0,o.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[a(t),l(t,""),l(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},l(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}))},9432:function(e,t,n){n.d(t,{Z:function(){return y},n:function(){return b}});var r=n(19248),o=n(92310),i=n.n(o),a=n(93681),l=n(8654),c=n(59301),s=n(19080),u=n(36355),d=n(1684),p=n(19716),f=n(32441),m=n(33234),g=n(59412),h=n(9937);var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,bordered:b=!0,status:y,size:x,disabled:w,onBlur:C,onFocus:S,suffix:$,allowClear:E,addonAfter:k,addonBefore:I,className:Z,style:N,styles:O,rootClassName:j,onChange:M,classNames:P}=e,R=v(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:z,direction:T,input:L}=c.useContext(u.E_),D=z("input",o),B=(0,c.useRef)(null),[A,_]=(0,h.ZP)(D),{compactSize:H,compactItemClassnames:K}=(0,m.ri)(D,T),F=(0,p.Z)((e=>{var t;return null!==(t=null!=x?x:H)&&void 0!==t?t:e})),W=c.useContext(d.Z),V=null!=w?w:W,{status:X,hasFeedback:G,feedbackIcon:Y}=(0,c.useContext)(f.aM),q=(0,s.F)(X,y),U=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!G,Q=(0,c.useRef)(U);(0,c.useEffect)((()=>{U&&Q.current,Q.current=U}),[U]);const J=(0,g.Z)(B,!0),ee=(G||$)&&c.createElement(c.Fragment,null,$,G&&Y);let te;return"object"==typeof E&&(null==E?void 0:E.clearIcon)?te=E:E&&(te={clearIcon:c.createElement(r.Z,null)}),A(c.createElement(a.Z,Object.assign({ref:(0,l.sQ)(t,B),prefixCls:D,autoComplete:null==L?void 0:L.autoComplete},R,{disabled:V,onBlur:e=>{J(),null==C||C(e)},onFocus:e=>{J(),null==S||S(e)},style:Object.assign(Object.assign({},null==L?void 0:L.style),N),styles:Object.assign(Object.assign({},null==L?void 0:L.styles),O),suffix:ee,allowClear:te,className:i()(Z,j,K,null==L?void 0:L.className),onChange:e=>{J(),null==M||M(e)},addonAfter:k&&c.createElement(m.BR,null,c.createElement(f.Ux,{override:!0,status:!0},k)),addonBefore:I&&c.createElement(m.BR,null,c.createElement(f.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},P),null==L?void 0:L.classNames),{input:i()({[`${D}-sm`]:"small"===F,[`${D}-lg`]:"large"===F,[`${D}-rtl`]:"rtl"===T,[`${D}-borderless`]:!b},!U&&(0,s.Z)(D,q),null==P?void 0:P.input,null===(n=null==L?void 0:L.classNames)||void 0===n?void 0:n.input,_)}),classes:{affixWrapper:i()({[`${D}-affix-wrapper-sm`]:"small"===F,[`${D}-affix-wrapper-lg`]:"large"===F,[`${D}-affix-wrapper-rtl`]:"rtl"===T,[`${D}-affix-wrapper-borderless`]:!b},(0,s.Z)(`${D}-affix-wrapper`,q,G),_),wrapper:i()({[`${D}-group-rtl`]:"rtl"===T},_),group:i()({[`${D}-group-wrapper-sm`]:"small"===F,[`${D}-group-wrapper-lg`]:"large"===F,[`${D}-group-wrapper-rtl`]:"rtl"===T,[`${D}-group-wrapper-disabled`]:V},(0,s.Z)(`${D}-group-wrapper`,q,G),_)}})))}))},6121:function(e,t,n){n.d(t,{Z:function(){return _}});var r,o=n(19248),i=n(92310),a=n.n(i),l=n(14809),c=n(20439),s=n(4635),u=n(93664),d=n(50298),p=n(62646),f=n(95190),m=n(93681),g=n(5643),h=n(18929),v=n(59301),b=n(29301),y=n(34280),x=n(16089),w="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",C=["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","white-space"],S={};function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&S[n])return S[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=C.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(S[n]=c),c}var E=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=v.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=(n.onPressEnter,n.defaultValue),f=n.value,m=n.autoSize,g=n.onResize,C=n.className,S=n.style,k=n.disabled,I=n.onChange,Z=(n.onInternalAutoSize,(0,p.Z)(n,E)),N=(0,h.Z)(i,{value:f,postState:function(e){return null!=e?e:""}}),O=(0,d.Z)(N,2),j=O[0],M=O[1],P=v.useRef();v.useImperativeHandle(t,(function(){return{textArea:P.current}}));var R=v.useMemo((function(){return m&&"object"===(0,u.Z)(m)?[m.minRows,m.maxRows]:[]}),[m]),z=(0,d.Z)(R,2),T=z[0],L=z[1],D=!!m,B=v.useState(2),A=(0,d.Z)(B,2),_=A[0],H=A[1],K=v.useState(),F=(0,d.Z)(K,2),W=F[0],V=F[1],X=function(){H(0)};(0,y.Z)((function(){D&&X()}),[f,T,L,D]),(0,y.Z)((function(){if(0===_)H(1);else if(1===_){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=$(e,t),a=i.paddingSize,l=i.borderSize,c=i.boxSizing,s=i.sizingStyle;r.setAttribute("style","".concat(s,";").concat(w)),r.value=e.value||e.placeholder||"";var u,d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===c?f+=l:"content-box"===c&&(f-=a),null!==n||null!==o){r.value=" ";var m=r.scrollHeight-a;null!==n&&(d=m*n,"border-box"===c&&(d=d+a+l),f=Math.max(d,f)),null!==o&&(p=m*o,"border-box"===c&&(p=p+a+l),u=f>p?"":"hidden",f=Math.min(p,f))}var g={height:f,overflowY:u,resize:"none"};return d&&(g.minHeight=d),p&&(g.maxHeight=p),g}(P.current,!1,T,L);H(2),V(e)}else!function(){try{if(document.activeElement===P.current){var e=P.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;P.current.setSelectionRange(t,n),P.current.scrollTop=r}}catch(e){}}()}),[_]);var G=v.useRef(),Y=function(){x.Z.cancel(G.current)};v.useEffect((function(){return Y}),[]);var q=D?W:null,U=(0,c.Z)((0,c.Z)({},S),q);return 0!==_&&1!==_||(U.overflowY="hidden",U.overflowX="hidden"),v.createElement(b.Z,{onResize:function(e){2===_&&(null==g||g(e),m&&(Y(),G.current=(0,x.Z)((function(){X()}))))},disabled:!(m||g)},v.createElement("textarea",(0,l.Z)({},Z,{ref:P,style:U,className:a()(o,C,(0,s.Z)({},"".concat(o,"-disabled"),k)),disabled:k,value:j,onChange:function(e){M(e.target.value),null==I||I(e)}})))})),I=k,Z=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function N(e,t){return(0,f.Z)(e||"").slice(0,t).join("")}function O(e,t,n,r){var o=n;return e?o=N(n,r):(0,f.Z)(t||"").lengthr&&(o=t),o}var j=v.forwardRef((function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,b=e.onBlur,y=e.onChange,x=e.allowClear,w=e.maxLength,C=e.onCompositionStart,S=e.onCompositionEnd,$=e.suffix,E=e.prefixCls,k=void 0===E?"rc-textarea":E,j=e.classes,M=e.showCount,P=e.className,R=e.style,z=e.disabled,T=e.hidden,L=e.classNames,D=e.styles,B=e.onResize,A=(0,p.Z)(e,Z),_=(0,h.Z)(r,{value:o,defaultValue:r}),H=(0,d.Z)(_,2),K=H[0],F=H[1],W=(0,v.useRef)(null),V=v.useState(!1),X=(0,d.Z)(V,2),G=X[0],Y=X[1],q=v.useState(!1),U=(0,d.Z)(q,2),Q=U[0],J=U[1],ee=v.useRef(),te=v.useRef(0),ne=v.useState(null),re=(0,d.Z)(ne,2),oe=re[0],ie=re[1],ae=function(){var e;null===(e=W.current)||void 0===e||e.textArea.focus()};(0,v.useImperativeHandle)(t,(function(){return{resizableTextArea:W.current,focus:ae,blur:function(){var e;null===(e=W.current)||void 0===e||e.textArea.blur()}}})),(0,v.useEffect)((function(){Y((function(e){return!z&&e}))}),[z]);var le=Number(w)>0,ce=(0,g.D7)(K);!Q&&le&&null==o&&(ce=N(ce,w));var se,ue=$;if(M){var de=(0,f.Z)(ce).length;se="object"===(0,u.Z)(M)?M.formatter({value:ce,count:de,maxLength:w}):"".concat(de).concat(le?" / ".concat(w):""),ue=v.createElement(v.Fragment,null,ue,v.createElement("span",{className:a()("".concat(k,"-data-count"),null==L?void 0:L.count),style:null==D?void 0:D.count},se))}var pe=!A.autoSize&&!M&&!x;return v.createElement(m.Q,{value:ce,allowClear:x,handleReset:function(e){var t;F(""),ae(),(0,g.rJ)(null===(t=W.current)||void 0===t?void 0:t.textArea,e,y)},suffix:ue,prefixCls:k,classes:{affixWrapper:a()(null==j?void 0:j.affixWrapper,(n={},(0,s.Z)(n,"".concat(k,"-show-count"),M),(0,s.Z)(n,"".concat(k,"-textarea-allow-clear"),x),n))},disabled:z,focused:G,className:P,style:(0,c.Z)((0,c.Z)({},R),oe&&!pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof se?se:void 0}},hidden:T,inputElement:v.createElement(I,(0,l.Z)({},A,{onKeyDown:function(e){var t=A.onPressEnter,n=A.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){var t=e.target.value;!Q&&le&&(t=O(e.target.selectionStart>=w+1||e.target.selectionStart===t.length||!e.target.selectionStart,K,t,w));F(t),(0,g.rJ)(e.currentTarget,e,y,t)},onFocus:function(e){Y(!0),null==i||i(e)},onBlur:function(e){Y(!1),null==b||b(e)},onCompositionStart:function(e){J(!0),ee.current=K,te.current=e.currentTarget.selectionStart,null==C||C(e)},onCompositionEnd:function(e){J(!1);var t,n=e.currentTarget.value;le&&(n=O(te.current>=w+1||te.current===(null===(t=ee.current)||void 0===t?void 0:t.length),ee.current,n,w));n!==K&&(F(n),(0,g.rJ)(e.currentTarget,e,y,n)),null==S||S(e)},className:null==L?void 0:L.textarea,style:(0,c.Z)((0,c.Z)({},null==D?void 0:D.textarea),{},{resize:null==R?void 0:R.resize}),disabled:z,prefixCls:k,onResize:function(e){var t;null==B||B(e),null!==(t=W.current)&&void 0!==t&&t.textArea.style.height&&ie(!0)},ref:W}))})})),M=j,P=n(19080),R=n(36355),z=n(1684),T=n(19716),L=n(32441),D=n(9432),B=n(9937),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,bordered:r=!0,size:i,disabled:l,status:c,allowClear:s,showCount:u,classNames:d,rootClassName:p,className:f}=e,m=A(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:g,direction:h}=v.useContext(R.E_),b=(0,T.Z)(i),y=v.useContext(z.Z),x=null!=l?l:y,{status:w,hasFeedback:C,feedbackIcon:S}=v.useContext(L.aM),$=(0,P.F)(w,c),E=v.useRef(null);v.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=E.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,D.n)(null===(n=null===(t=E.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.blur()}}}));const k=g("input",n);let I;"object"==typeof s&&(null==s?void 0:s.clearIcon)?I=s:s&&(I={clearIcon:v.createElement(o.Z,null)});const[Z,N]=(0,B.ZP)(k);return Z(v.createElement(M,Object.assign({},m,{disabled:x,allowClear:I,className:a()(f,p),classes:{affixWrapper:a()(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===h,[`${k}-affix-wrapper-borderless`]:!r,[`${k}-affix-wrapper-sm`]:"small"===b,[`${k}-affix-wrapper-lg`]:"large"===b,[`${k}-textarea-show-count`]:u},(0,P.Z)(`${k}-affix-wrapper`,$),N)},classNames:Object.assign(Object.assign({},d),{textarea:a()({[`${k}-borderless`]:!r,[`${k}-sm`]:"small"===b,[`${k}-lg`]:"large"===b},(0,P.Z)(k,$),N,null==d?void 0:d.textarea)}),prefixCls:k,suffix:C&&v.createElement("span",{className:`${k}-textarea-suffix`},S),showCount:u,ref:E})))}))},59412:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(59301);function o(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,r.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}},10249:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(92310),o=n.n(r),i=n(59301),a=n(36355),l=n(32441),c=n(9937);var s=e=>{const{getPrefixCls:t,direction:n}=(0,i.useContext)(a.E_),{prefixCls:r,className:s}=e,u=t("input-group",r),d=t("input"),[p,f]=(0,c.ZP)(d),m=o()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},f,s),g=(0,i.useContext)(l.aM),h=(0,i.useMemo)((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return p(i.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(l.aM.Provider,{value:h},e.children)))},u=n(9432),d=n(14809),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},f=n(7657),m=function(e,t){return i.createElement(f.Z,(0,d.Z)({},e,{ref:t,icon:p}))};var g=i.forwardRef(m),h=n(15277),v=n(2738),b=n(8654),y=n(59412),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe?i.createElement(h.Z,null):i.createElement(g,null),C={click:"onClick",hover:"onMouseOver"};var S=i.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[l,c]=(0,i.useState)((()=>!!r&&n.visible)),s=(0,i.useRef)(null);i.useEffect((()=>{r&&c(n.visible)}),[r,n]);const d=(0,y.Z)(s),p=()=>{const{disabled:t}=e;t||(l&&d(),c((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:f,prefixCls:m,inputPrefixCls:g,size:h}=e,S=x(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=i.useContext(a.E_),E=$("input",g),k=$("input-password",m),I=n&&(t=>{const{action:n="click",iconRender:r=w}=e,o=C[n]||"",a=r(l),c={[o]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(a)?a:i.createElement("span",null,a),c)})(k),Z=o()(k,f,{[`${k}-${h}`]:!!h}),N=Object.assign(Object.assign({},(0,v.Z)(S,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:Z,prefixCls:E,suffix:I});return h&&(N.size=h),i.createElement(u.Z,Object.assign({ref:(0,b.sQ)(t,s)},N))})),$=n(47472),E=n(92343),k=n(3113),I=n(19716),Z=n(33234),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:l,size:c,suffix:s,enterButton:d=!1,addonAfter:p,loading:f,disabled:m,onSearch:g,onChange:h,onCompositionStart:v,onCompositionEnd:y}=e,x=N(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:C}=i.useContext(a.E_),S=i.useRef(!1),O=w("input-search",n),j=w("input",r),{compactSize:M}=(0,Z.ri)(O,C),P=(0,I.Z)((e=>{var t;return null!==(t=null!=c?c:M)&&void 0!==t?t:e})),R=i.useRef(null),z=e=>{var t;document.activeElement===(null===(t=R.current)||void 0===t?void 0:t.input)&&e.preventDefault()},T=e=>{var t,n;g&&g(null===(n=null===(t=R.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},L="boolean"==typeof d?i.createElement($.Z,null):null,D=`${O}-button`;let B;const A=d||{},_=A.type&&!0===A.type.__ANT_BUTTON;B=_||"button"===A.type?(0,E.Tm)(A,Object.assign({onMouseDown:z,onClick:e=>{var t,n;null===(n=null===(t=null==A?void 0:A.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),T(e)},key:"enterButton"},_?{className:D,size:P}:{})):i.createElement(k.ZP,{className:D,type:d?"primary":void 0,size:P,disabled:m,key:"enterButton",onMouseDown:z,onClick:T,loading:f,icon:L},d),p&&(B=[B,(0,E.Tm)(p,{key:"addonAfter"})]);const H=o()(O,{[`${O}-rtl`]:"rtl"===C,[`${O}-${P}`]:!!P,[`${O}-with-button`]:!!d},l);return i.createElement(u.Z,Object.assign({ref:(0,b.sQ)(R,t),onPressEnter:e=>{S.current||f||T(e)}},x,{size:P,onCompositionStart:e=>{S.current=!0,null==v||v(e)},onCompositionEnd:e=>{S.current=!1,null==y||y(e)},prefixCls:j,addonAfter:B,suffix:s,onChange:e=>{e&&e.target&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),h&&h(e)},className:H,disabled:m}))})),j=n(6121);const M=u.Z;M.Group=s,M.Search=O,M.TextArea=j.Z,M.Password=S;var P=M},9937:function(e,t,n){n.d(t,{M1:function(){return s},TM:function(){return S},Xy:function(){return u},bi:function(){return f},e5:function(){return C},ik:function(){return m},nz:function(){return l},pU:function(){return c},s7:function(){return g},x0:function(){return p}});var r=n(17313),o=n(74207),i=n(37613),a=n(83116);const l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),c=e=>({borderColor:e.hoverBorderColor}),s=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0}),u=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},c((0,i.TS)(e,{hoverBorderColor:e.colorBorder})))}),d=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},p=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:l,colorErrorBorderHover:c,colorWarningBorderHover:u}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},s((0,i.TS)(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:u},"&:focus, &-focused":Object.assign({},s((0,i.TS)(e,{activeBorderColor:o,activeShadow:l}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},m=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":Object.assign({},c(e)),"&:focus, &-focused":Object.assign({},s(e)),"&-disabled, &[disabled]":Object.assign({},u(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),g=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},h=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,i=(n-2*o-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),m(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},b=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},c(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),v(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),f(e,`${t}-affix-wrapper`))}},y=e=>{const{componentCls:t,colorError:n,colorWarning:o,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),g(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:i,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:o,borderColor:o}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},u(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},x=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},w=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function C(e){return(0,i.TS)(e,{inputAffixPadding:e.paddingXXS})}const S=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:h,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,3),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:f,hoverBorderColor:f,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${h}`,warningActiveShadow:`0 0 0 ${m}px ${v}`}};t.ZP=(0,a.Z)("Input",(e=>{const t=(0,i.TS)(e,C(e));return[h(t),w(t),b(t),y(t),x(t),(0,o.c)(t)]}),S)},45818:function(e,t,n){n.d(t,{D:function(){return y},Z:function(){return w}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s=n(33853),u=n(38819),d=n(92310),p=n.n(d),f=n(2738);var m=e=>!isNaN(parseFloat(e))&&isFinite(e),g=n(36355),h=n(84966),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})();var w=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:d="dark",style:w={},collapsible:C=!1,reverseArrow:S=!1,width:$=200,collapsedWidth:E=80,zeroWidthTriggerStyle:k,breakpoint:I,onCollapse:Z,onBreakpoint:N}=e,O=v(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:j}=(0,o.useContext)(h.Gs),[M,P]=(0,o.useState)("collapsed"in e?e.collapsed:l),[R,z]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&P(e.collapsed)}),[e.collapsed]);const T=(t,n)=>{"collapsed"in e||P(t),null==Z||Z(t,n)},L=(0,o.useRef)();L.current=e=>{z(e.matches),null==N||N(e.matches),M!==e.matches&&T(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return L.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&I&&I in b){t=n(`(max-width: ${b[I]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[I]),(0,o.useEffect)((()=>{const e=x("ant-sider-");return j.addSider(e),()=>j.removeSider(e)}),[]);const D=()=>{T(!M,"clickTrigger")},{getPrefixCls:B}=(0,o.useContext)(g.E_),A=o.useMemo((()=>({siderCollapsed:M})),[M]);return o.createElement(y.Provider,{value:A},(()=>{const e=B("layout-sider",n),l=(0,f.Z)(O,["collapsed"]),g=M?E:$,h=m(g)?`${g}px`:String(g),v=0===parseFloat(String(E||0))?o.createElement("span",{onClick:D,className:p()(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${S?"right":"left"}`),style:k},i||o.createElement(c,null)):null,b={expanded:S?o.createElement(u.Z,null):o.createElement(s.Z,null),collapsed:S?o.createElement(s.Z,null):o.createElement(u.Z,null)}[M?"collapsed":"expanded"],y=null!==i?v||o.createElement("div",{className:`${e}-trigger`,onClick:D,style:{width:h}},i||b):null,x=Object.assign(Object.assign({},w),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),I=p()(e,`${e}-${d}`,{[`${e}-collapsed`]:!!M,[`${e}-has-trigger`]:C&&null!==i&&!v,[`${e}-below`]:!!R,[`${e}-zero-width`]:0===parseFloat(h)},r);return o.createElement("aside",Object.assign({className:I},l,{style:x,ref:t}),o.createElement("div",{className:`${e}-children`},a),C||R&&v?y:null)})())}))},84966:function(e,t,n){n.d(t,{VY:function(){return w},$_:function(){return x},h4:function(){return y},Gs:function(){return m},ZP:function(){return C}});var r=n(95190),o=n(92310),i=n.n(o),a=n(2738),l=n(59301),c=n(36355),s=n(83116);var u=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}};const d=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:d,triggerHeight:p,zeroTriggerHeight:f,zeroTriggerWidth:m,motionDurationMid:g,motionDurationSlow:h,fontSize:v,borderRadius:b,bodyBg:y,headerBg:x,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:o,lineHeight:`${p}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:-m,zIndex:1,width:m,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-m,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},u(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:`${l}px`,background:x,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:v,background:i},[`${n}-content`]:{flex:"auto",minHeight:0}}};var p=(0,s.Z)("Layout",(e=>[d(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull,removeSider:()=>null}});function g(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>l.forwardRef(((r,o)=>l.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},r))))}const h=l.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,s=f(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=l.useContext(c.E_),d=u("layout",n),[m,g]=p(d),h=r?`${d}-${r}`:d;return m(l.createElement(a,Object.assign({className:i()(n||h,o,g),ref:t},s)))})),v=l.forwardRef(((e,t)=>{const{direction:n}=l.useContext(c.E_),[o,s]=l.useState([]),{prefixCls:u,className:d,rootClassName:g,children:h,hasSider:v,tagName:b,style:y}=e,x=f(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),w=(0,a.Z)(x,["suffixCls"]),{getPrefixCls:C,layout:S}=l.useContext(c.E_),$=C("layout",u),[E,k]=p($),I=i()($,{[`${$}-has-sider`]:"boolean"==typeof v?v:o.length>0,[`${$}-rtl`]:"rtl"===n},null==S?void 0:S.className,d,g,k),Z=l.useMemo((()=>({siderHook:{addSider:e=>{s((t=>[].concat((0,r.Z)(t),[e])))},removeSider:e=>{s((t=>t.filter((t=>t!==e))))}}})),[]);return E(l.createElement(m.Provider,{value:Z},l.createElement(b,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},null==S?void 0:S.style),y)},w),h)))})),b=g({tagName:"div",displayName:"Layout"})(v),y=g({suffixCls:"header",tagName:"header",displayName:"Header"})(h),x=g({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(h),w=g({suffixCls:"content",tagName:"main",displayName:"Content"})(h);var C=b},40875:function(e,t,n){n.d(t,{J:function(){return c}});var r=n(59301),o=n(33234),i=n(70425),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,c=a(e,["children"]),s=r.useContext(l),u=r.useMemo((()=>Object.assign(Object.assign({},s),c)),[s,c.prefixCls,c.mode,c.selectable]);return r.createElement(l.Provider,{value:u},r.createElement(o.BR,null,(0,i.t4)(n)?r.cloneElement(n,{ref:t}):n))}));t.Z=l},20834:function(e,t,n){n.d(t,{Z:function(){return V}});var r=n(15285),o=n(59301),i=n(45818),a=n(92310),l=n.n(a),c=n(36355),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:i}=e,a=s(e,["prefixCls","className","dashed"]),{getPrefixCls:u}=o.useContext(c.E_),d=u("menu",t),p=l()({[`${d}-item-divider-dashed`]:!!i},n);return o.createElement(r.iz,Object.assign({className:p},a))},d=n(11592),p=n(2738),f=n(6848),m=n(92343);var g=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var h=e=>{var t;const{className:n,children:a,icon:c,title:s,danger:u}=e,{prefixCls:h,firstLevel:v,direction:b,disableMenuItemTitleTooltip:y,inlineCollapsed:x}=o.useContext(g),{siderCollapsed:w}=o.useContext(i.D);let C=s;void 0===s?C=v?a:"":!1===s&&(C="");const S={title:C};w||x||(S.title=null,S.open=!1);const $=(0,d.Z)(a).length;let E=o.createElement(r.ck,Object.assign({},(0,p.Z)(e,["title","icon","danger"]),{className:l()({[`${h}-item-danger`]:u,[`${h}-item-only-child`]:1===(c?$+1:$)},n),title:"string"==typeof s?s:void 0}),(0,m.Tm)(c,{className:l()((0,m.l$)(c)?null===(t=c.props)||void 0===t?void 0:t.className:"",`${h}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${h}-title-content`},a);return(!c||(0,m.l$)(a)&&"span"===a.type)&&a&&e&&v&&"string"==typeof a?o.createElement("div",{className:`${h}-inline-collapsed-noicon`},a.charAt(0)):t})(x));return y||(E=o.createElement(f.Z,Object.assign({},S,{placement:"rtl"===b?"left":"right",overlayClassName:`${h}-inline-collapsed-tooltip`}),E)),E};var v=e=>{var t;const{popupClassName:n,icon:i,title:a,theme:c}=e,s=o.useContext(g),{prefixCls:u,inlineCollapsed:d,theme:f}=s,h=(0,r.Xl)();let v;if(i){const e=(0,m.l$)(a)&&"span"===a.type;v=o.createElement(o.Fragment,null,(0,m.Tm)(i,{className:l()((0,m.l$)(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${u}-item-icon`)}),e?a:o.createElement("span",{className:`${u}-title-content`},a))}else v=d&&!h.length&&a&&"string"==typeof a?o.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):o.createElement("span",{className:`${u}-title-content`},a);const b=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]);return o.createElement(g.Provider,{value:b},o.createElement(r.Wd,Object.assign({},(0,p.Z)(e,["icon"]),{title:v,popupClassName:l()(u,n,`${u}-${c||f}`)})))},b=n(18785),y=n(70425),x=n(62892),w=n(40875),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(e&&"object"==typeof e){const n=e,{label:i,children:a,key:l,type:c}=n,s=C(n,["label","children","key","type"]),d=null!=l?l:`tmp-${t}`;return a||"group"===c?"group"===c?o.createElement(r.BW,Object.assign({key:d},s,{title:i}),S(a)):o.createElement(v,Object.assign({key:d},s,{title:i}),S(a)):"divider"===c?o.createElement(u,Object.assign({key:d},s)):o.createElement(h,Object.assign({key:d},s),i)}return null})).filter((e=>e))}function $(e){return o.useMemo((()=>e?S(e):e),[e])}var E=n(60654),k=n(17313),I=n(8378),Z=n(13826),N=n(29878),O=n(83116),j=n(37613);var M=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var P=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};const R=e=>Object.assign({},(0,k.oN)(e));var z=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:E,itemHoverBg:k,itemActiveBg:I,menuSubMenuBg:Z,horizontalItemSelectedColor:N,horizontalItemSelectedBg:O,horizontalItemBorderRadius:j,horizontalItemHoverBg:M,popupBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},R(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},R(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:Z},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${s}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:s,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:s,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}};const T=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}};var L=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},T(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},T(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},k.vS),{paddingInline:f})}}]};const D=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,k.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},B=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},A=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},(0,k.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.Wf)(e)),(0,k.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),D(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${v}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},D(e)),B(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),B(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var _=(e,t)=>(0,O.Z)("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:l,darkDangerItemColor:c,darkItemBg:s,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:m,darkGroupTitleColor:g,darkItemHoverColor:h,darkItemDisabledColor:v,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:x}=e,w=a/7*5,C=(0,j.TS)(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*w+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),S=(0,j.TS)(C,{itemColor:l,itemHoverColor:h,groupTitleColor:g,itemSelectedColor:d,itemBg:s,popupBg:s,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:v,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:y,dangerItemActiveBg:x,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[A(C),M(C),L(C),z(C,"light"),z(S,"dark"),P(C),(0,I.Z)(C),(0,Z.oN)(C,"slide-up"),(0,Z.oN)(C,"slide-down"),(0,N._y)(C,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:c,colorFillContent:s,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:m,lineHeight:g,colorBgElevated:h,marginXXS:v,padding:b,fontSize:y,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:S}=e,$=new E.C(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:s,itemActiveBg:p,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:g,collapsedWidth:2*m,popupBg:h,itemMarginBlock:v,itemPaddingInline:b,horizontalLineHeight:1.15*m+"px",iconSize:y,iconMarginInlineEnd:x-y,collapsedIconSize:w,groupTitleFontSize:y,darkItemDisabledColor:new E.C(C).setAlpha(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:C,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,i;const a=o.useContext(w.Z),s=a||{},{getPrefixCls:u,getPopupContainer:d,direction:f,menu:h}=o.useContext(c.E_),v=u(),{prefixCls:C,className:S,style:E,theme:k="light",expandIcon:I,_internalDisableMenuItemTitleTooltip:Z,inlineCollapsed:N,siderCollapsed:O,items:j,children:M,rootClassName:P,mode:R,selectable:z,onClick:T,overflowedIndicatorPopupClassName:L}=e,D=H(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),B=(0,p.Z)(D,["collapsedWidth"]),A=$(j)||M;null===(n=s.validator)||void 0===n||n.call(s,{mode:R});const K=(0,y.zX)((function(){var e;null==T||T.apply(void 0,arguments),null===(e=s.onClick)||void 0===e||e.call(s)})),F=s.mode||R,W=null!=z?z:s.selectable,V=o.useMemo((()=>void 0!==O?O:N),[N,O]),X={horizontal:{motionName:`${v}-slide-up`},inline:(0,x.Z)(v),other:{motionName:`${v}-zoom-big`}},G=u("menu",C||s.prefixCls),[Y,q]=_(G,!a),U=l()(`${G}-${k}`,null==h?void 0:h.className,S);let Q;if("function"==typeof I)Q=I;else if(null===I||!1===I)Q=null;else if(null===s.expandIcon||!1===s.expandIcon)Q=null;else{const e=null!=I?I:s.expandIcon;Q=(0,m.Tm)(e,{className:l()(`${G}-submenu-expand-icon`,(0,m.l$)(e)?null===(i=e.props)||void 0===i?void 0:i.className:"")})}const J=o.useMemo((()=>({prefixCls:G,inlineCollapsed:V||!1,direction:f,firstLevel:!0,theme:k,mode:F,disableMenuItemTitleTooltip:Z})),[G,V,f,Z,k]);return Y(o.createElement(w.Z.Provider,{value:null},o.createElement(g.Provider,{value:J},o.createElement(r.ZP,Object.assign({getPopupContainer:d,overflowedIndicator:o.createElement(b.Z,null),overflowedIndicatorPopupClassName:l()(G,`${G}-${k}`,L),mode:F,selectable:W,onClick:K},B,{inlineCollapsed:V,style:Object.assign(Object.assign({},null==h?void 0:h.style),E),className:U,prefixCls:G,direction:f,defaultMotions:X,expandIcon:Q,ref:t,rootClassName:l()(P,q)}),A))))}));var F=K;const W=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(i.D);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(F,Object.assign({ref:n},e,r))}));W.Item=h,W.SubMenu=v,W.Divider=u,W.ItemGroup=r.BW;var V=W},58421:function(e,t,n){n.d(t,{Z:function(){return ee}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s=n(49198),u=n(33853),d=n(38819),p=n(92310),f=n.n(p),m=n(4635),g=n(20439),h=n(99153),v=n(84851),b=n(19257),y=n(54941),x=n(26112),w={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},C=n(91735),S=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(){var e;(0,h.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==w.ENTER&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,v.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,i=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,p=t.disabled,f=this.state.goInputText,m="".concat(i,"-options"),g=s,h=null,v=null,b=null;if(!a&&!l)return null;var y=this.getPageSizeOptions();if(a&&g){var x=y.map((function(t,n){return o.createElement(g.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));h=o.createElement(g,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(m,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return l&&(c&&(b="boolean"==typeof c?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(m,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=o.createElement("div",{className:"".concat(m,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:p,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,b)),o.createElement("li",{className:"".concat(m)},h,v)}}]),n}(o.Component);S.defaultProps={pageSizeOptions:["10","20","50","100"]};var $=S,E=function(e){var t,n=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=f()(d,"".concat(d,"-").concat(r),(t={},(0,m.Z)(t,"".concat(d,"-active"),i),(0,m.Z)(t,"".concat(d,"-disabled"),!r),(0,m.Z)(t,e.className,a),t)),g=u(r,"page",o.createElement("a",{rel:"nofollow"},r));return g?o.createElement("li",{title:l?r.toString():null,className:p,onClick:function(){c(r)},onKeyPress:function(e){s(e,c,r)},tabIndex:0},g):null};function k(){}function I(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var N=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(e){var r;(0,h.Z)(this,n),(r=t.call(this,e)).paginationNode=o.createRef(),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(Z(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=o.createElement(e,(0,g.Z)({},r.props))),i},r.isValid=function(e){var t=r.props.total;return I(e)&&e!==r.state.current&&I(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){e.keyCode!==w.ARROW_UP&&e.keyCode!==w.ARROW_DOWN||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===w.ENTER?r.handleChange(t):e.keyCode===w.ARROW_UP?r.handleChange(t-1):e.keyCode===w.ARROW_DOWN&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=Z(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,l=i.current,c=i.currentInputValue;if(r.isValid(e)&&!n){var s=Z(void 0,r.state,r.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==c&&r.setState({currentInputValue:u}),o(u,a),u}return l},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,i=e.style,a=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,g=e.showTotal,h=e.simple,v=e.itemRender,b=e.showPrevNextJumpers,y=e.jumpPrevIcon,w=e.jumpNextIcon,C=e.selectComponentClass,S=e.selectPrefixCls,k=e.pageSizeOptions,I=this.state,N=I.current,O=I.pageSize,j=I.currentInputValue;if(!0===l&&c<=O)return null;var M=Z(void 0,this.state,this.props),P=[],R=null,z=null,T=null,L=null,D=null,B=u&&u.goButton,A=d?1:2,_=N-1>0?N-1:0,H=N+1c?c:N*O]));if(h){B&&(D="boolean"==typeof B?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),D=o.createElement("li",{title:p?"".concat(s.jump_to).concat(N,"/").concat(M):null,className:"".concat(t,"-simple-pager")},D));var W=this.renderPrev(_);return o.createElement("ul",(0,r.Z)({className:f()(t,"".concat(t,"-simple"),(0,m.Z)({},"".concat(t,"-disabled"),a),n),style:i,ref:this.paginationNode},K),F,W?o.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:f()("".concat(t,"-prev"),(0,m.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,o.createElement("li",{title:p?"".concat(N,"/").concat(M):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:j,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),M),o.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:f()("".concat(t,"-next"),(0,m.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),D)}if(M<=3+2*A){var V={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:v};M||P.push(o.createElement(E,(0,r.Z)({},V,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=M;X+=1){var G=N===X;P.push(o.createElement(E,(0,r.Z)({},V,{key:X,page:X,active:G})))}}else{var Y=d?s.prev_3:s.prev_5,q=d?s.next_3:s.next_5,U=v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(y,"prev page")),Q=v(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page"));b&&(R=U?o.createElement("li",{title:p?Y:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:f()("".concat(t,"-jump-prev"),(0,m.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!y))},U):null,z=Q?o.createElement("li",{title:p?q:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:f()("".concat(t,"-jump-next"),(0,m.Z)({},"".concat(t,"-jump-next-custom-icon"),!!w))},Q):null),L=o.createElement(E,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:p,itemRender:v}),T=o.createElement(E,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:v});var J=Math.max(1,N-A),ee=Math.min(N+A,M);N-1<=A&&(ee=1+2*A),M-N<=A&&(J=M-2*A);for(var te=J;te<=ee;te+=1){var ne=N===te;P.push(o.createElement(E,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:te,page:te,active:ne,showTitle:p,itemRender:v}))}N-1>=2*A&&3!==N&&(P[0]=(0,o.cloneElement)(P[0],{className:"".concat(t,"-item-after-jump-prev")}),P.unshift(R)),M-N>=2*A&&N!==M-2&&(P[P.length-1]=(0,o.cloneElement)(P[P.length-1],{className:"".concat(t,"-item-before-jump-next")}),P.push(z)),1!==J&&P.unshift(T),ee!==M&&P.push(L)}var re=!this.hasPrev()||!M,oe=!this.hasNext()||!M,ie=this.renderPrev(_),ae=this.renderNext(H);return o.createElement("ul",(0,r.Z)({className:f()(t,n,(0,m.Z)({},"".concat(t,"-disabled"),a)),style:i,ref:this.paginationNode},K),F,ie?o.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:re?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(t,"-prev"),(0,m.Z)({},"".concat(t,"-disabled"),re)),"aria-disabled":re},ie):null,P,ae?o.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:oe?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(t,"-next"),(0,m.Z)({},"".concat(t,"-disabled"),oe)),"aria-disabled":oe},ae):null,o.createElement($,{disabled:a,locale:s,rootPrefixCls:t,selectComponentClass:C,selectPrefixCls:S,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:N,pageSize:O,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=Z(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(o.Component);N.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:C.Z,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var O=N,j=n(22075),M=n(36355),P=n(19716),R=n(8628),z=n(9763),T=n(57809);const L=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"small"})),D=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"middle"}));L.Option=T.default.Option,D.Option=T.default.Option;var B=n(9937),A=n(17313),_=n(83116),H=n(37613);const K=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},F=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:e.itemSizeSM-2+"px"},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,B.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},W=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},V=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,B.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},X=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:e.itemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},G=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:e.itemSize-2+"px",verticalAlign:"middle"}}),X(e)),V(e)),W(e)),F(e)),K(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},q=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,A.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,A.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,A.oN)(e))}}}};var U=(0,_.Z)("Pagination",(e=>{const t=(0,H.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,B.e5)(e),(0,B.TM)(e));return[G(t),q(t),e.wireframe&&Y(t)]}),(e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}))),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,style:a,size:l,locale:p,selectComponentClass:m,responsive:g,showSizeChanger:h}=e,v=Q(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:b}=(0,R.Z)(g),{getPrefixCls:y,direction:x,pagination:w={}}=o.useContext(M.E_),C=y("pagination",t),[S,$]=U(C),E=null!=h?h:w.showSizeChanger,k=o.useMemo((()=>{const e=o.createElement("span",{className:`${C}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(d.Z,null):o.createElement(u.Z,null)),nextIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(u.Z,null):o.createElement(d.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===x?o.createElement(s.Z,{className:`${C}-item-link-icon`}):o.createElement(c,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===x?o.createElement(c,{className:`${C}-item-link-icon`}):o.createElement(s.Z,{className:`${C}-item-link-icon`}),e))}}),[x,C]),[I]=(0,z.Z)("Pagination",j.Z),Z=Object.assign(Object.assign({},I),p),N=(0,P.Z)(l),T="small"===N||!(!b||N||!g),B=y("select",n),A=f()({[`${C}-mini`]:T,[`${C}-rtl`]:"rtl"===x},null==w?void 0:w.className,r,i,$),_=Object.assign(Object.assign({},null==w?void 0:w.style),a);return S(o.createElement(O,Object.assign({},k,v,{style:_,prefixCls:C,selectPrefixCls:B,className:A,selectComponentClass:m||(T?L:D),locale:Z,showSizeChanger:E})))},ee=J},5112:function(e,t,n){n.d(t,{ZP:function(){return D}});var r=n(92310),o=n.n(r),i=n(18929),a=n(26112),l=n(59301),c=n(36355),s=n(19716);const u=l.createContext(null),d=u.Provider;var p=u;const f=l.createContext(null),m=f.Provider;var g=n(5630),h=n(8654),v=n(1684),b=n(32441),y=n(17313),x=n(83116),w=n(37613);const C=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},S=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,dotSize:d,colorBgContainerDisabled:p,colorTextDisabled:f,paddingXS:m,dotColorDisabled:g,lineType:h,radioDotDisabledSize:v,wireframe:b,colorWhite:x}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${h} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},(0,y.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},(0,y.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:b?r:x,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:b?c:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:p,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${v/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},$=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:E,colorPrimary:k,colorPrimaryHover:I,colorPrimaryActive:Z,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:j}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*o+"px",background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:p,lineHeight:f-2*o+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:g-o,paddingBlock:0,lineHeight:m-2*o+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},(0,y.oN)(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:x,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:Z,borderColor:Z,"&::before":{backgroundColor:Z}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:N,borderColor:N,"&:hover":{color:w,background:O,borderColor:O},"&:active":{color:w,background:j,borderColor:j}},"&-disabled":{color:C,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:$,borderColor:a,boxShadow:"none"}}}},E=e=>e-8;var k=(0,x.Z)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=E(r),l=(0,w.TS)(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return[C(l),S(l),$(l)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f}=e,m=i;return{radioSize:m,dotSize:t?E(m):m-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}})),I=n(14088),Z=n(4572),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const i=l.useContext(p),a=l.useContext(f),{getPrefixCls:s,direction:u,radio:d}=l.useContext(c.E_),m=l.useRef(null),y=(0,h.sQ)(t,m),{isFormItemInput:x}=l.useContext(b.aM),w=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:C,className:S,rootClassName:$,children:E,style:O}=e,j=N(e,["prefixCls","className","rootClassName","children","style"]),M=s("radio",C),P="button"===((null==i?void 0:i.optionType)||a),R=P?`${M}-button`:M,[z,T]=k(M),L=Object.assign({},j),D=l.useContext(v.Z);i&&(L.name=i.name,L.onChange=w,L.checked=e.value===i.value,L.disabled=null!==(n=L.disabled)&&void 0!==n?n:i.disabled),L.disabled=null!==(r=L.disabled)&&void 0!==r?r:D;const B=o()(`${R}-wrapper`,{[`${R}-wrapper-checked`]:L.checked,[`${R}-wrapper-disabled`]:L.disabled,[`${R}-wrapper-rtl`]:"rtl"===u,[`${R}-wrapper-in-form-item`]:x},null==d?void 0:d.className,S,$,T);return z(l.createElement(I.Z,{component:"Radio",disabled:L.disabled},l.createElement("label",{className:B,style:Object.assign(Object.assign({},null==d?void 0:d.style),O),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},l.createElement(g.Z,Object.assign({},L,{className:o()(L.className,!P&&Z.A),type:"radio",prefixCls:R,ref:y})),void 0!==E?l.createElement("span",null,E):null)))};var j=l.forwardRef(O);const M=l.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(c.E_),[u,p]=(0,i.Z)(e.defaultValue,{value:e.value}),{prefixCls:f,className:m,rootClassName:g,options:h,buttonStyle:v="outline",disabled:b,children:y,size:x,style:w,id:C,onMouseEnter:S,onMouseLeave:$,onFocus:E,onBlur:I}=e,Z=n("radio",f),N=`${Z}-group`,[O,M]=k(Z);let P=y;h&&h.length>0&&(P=h.map((e=>"string"==typeof e||"number"==typeof e?l.createElement(j,{key:e.toString(),prefixCls:Z,disabled:b,value:e,checked:u===e},e):l.createElement(j,{key:`radio-group-value-options-${e.value}`,prefixCls:Z,disabled:e.disabled||b,value:e.value,checked:u===e.value,title:e.title,style:e.style},e.label))));const R=(0,s.Z)(x),z=o()(N,`${N}-${v}`,{[`${N}-${R}`]:R,[`${N}-rtl`]:"rtl"===r},m,g,M);return O(l.createElement("div",Object.assign({},(0,a.Z)(e,{aria:!0,data:!0}),{className:z,style:w,onMouseEnter:S,onMouseLeave:$,onFocus:E,onBlur:I,id:C,ref:t}),l.createElement(d,{value:{onChange:t=>{const n=u,r=t.target.value;"value"in e||p(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:u,disabled:e.disabled,name:e.name,optionType:e.optionType}},P)))}));var P=l.memo(M),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=l.useContext(c.E_),{prefixCls:r}=e,o=R(e,["prefixCls"]),i=n("radio",r);return l.createElement(m,{value:"button"},l.createElement(j,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))};var T=l.forwardRef(z);const L=j;L.Button=T,L.Group=P,L.__ANT_RADIO=!0;var D=L},95237:function(e,t,n){var r=n(27382);t.Z=r.Z},57809:function(e,t,n){var r=n(92310),o=n.n(r),i=n(77861),a=n(2738),l=n(59301),c=n(53487),s=n(62892),u=n(19080),d=n(36355),p=n(1684),f=n(93891),m=n(19716),g=n(32441),h=n(33234),v=n(14154),b=n(58582),y=n(84443),x=n(66339),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,bordered:c=!0,className:S,rootClassName:$,getPopupContainer:E,popupClassName:k,dropdownClassName:I,listHeight:Z=256,placement:N,listItemHeight:O=24,size:j,disabled:M,notFoundContent:P,status:R,builtinPlacements:z,dropdownMatchSelectWidth:T,popupMatchSelectWidth:L,direction:D,style:B,allowClear:A}=e,_=w(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:H,getPrefixCls:K,renderEmpty:F,direction:W,virtual:V,popupMatchSelectWidth:X,popupOverflow:G,select:Y}=l.useContext(d.E_),q=K("select",r),U=K(),Q=null!=D?D:W,{compactSize:J,compactItemClassnames:ee}=(0,h.ri)(q,Q),[te,ne]=(0,v.Z)(q),re=l.useMemo((()=>{const{mode:e}=_;if("combobox"!==e)return e===C?"combobox":e}),[_.mode]),oe="multiple"===re||"tags"===re,ie=(0,y.Z)(_.suffixIcon,_.showArrow),ae=null!==(n=null!=L?L:T)&&void 0!==n?n:X,{status:le,hasFeedback:ce,isFormItemInput:se,feedbackIcon:ue}=l.useContext(g.aM),de=(0,u.F)(le,R);let pe;pe=void 0!==P?P:"combobox"===re?null:(null==F?void 0:F("Select"))||l.createElement(f.Z,{componentName:"Select"});const{suffixIcon:fe,itemIcon:me,removeIcon:ge,clearIcon:he}=(0,x.Z)(Object.assign(Object.assign({},_),{multiple:oe,hasFeedback:ce,feedbackIcon:ue,showSuffixIcon:ie,prefixCls:q,showArrow:_.showArrow,componentName:"Select"})),ve=!0===A?{clearIcon:he}:A,be=(0,a.Z)(_,["suffixIcon","itemIcon"]),ye=o()(k||I,{[`${q}-dropdown-${Q}`]:"rtl"===Q},$,ne),xe=(0,m.Z)((e=>{var t;return null!==(t=null!=j?j:J)&&void 0!==t?t:e})),we=l.useContext(p.Z),Ce=null!=M?M:we,Se=o()({[`${q}-lg`]:"large"===xe,[`${q}-sm`]:"small"===xe,[`${q}-rtl`]:"rtl"===Q,[`${q}-borderless`]:!c,[`${q}-in-form-item`]:se},(0,u.Z)(q,de,ce),ee,null==Y?void 0:Y.className,S,$,ne),$e=l.useMemo((()=>void 0!==N?N:"rtl"===Q?"bottomRight":"bottomLeft"),[N,Q]),Ee=(0,b.Z)(z,G);return te(l.createElement(i.ZP,Object.assign({ref:t,virtual:V,showSearch:null==Y?void 0:Y.showSearch},be,{style:Object.assign(Object.assign({},null==Y?void 0:Y.style),B),dropdownMatchSelectWidth:ae,builtinPlacements:Ee,transitionName:(0,s.m)(U,"slide-up",_.transitionName),listHeight:Z,listItemHeight:O,mode:re,prefixCls:q,placement:$e,direction:Q,suffixIcon:fe,menuItemSelectedIcon:me,removeIcon:ge,allowClear:ve,notFoundContent:pe,className:Se,getPopupContainer:E||H,dropdownClassName:ye,disabled:Ce})))};const $=l.forwardRef(S),E=(0,c.Z)($);$.SECRET_COMBOBOX_MODE_DO_NOT_USE=C,$.Option=i.Wx,$.OptGroup=i.Xo,$._InternalPanelDoNotUseOrYouWillBeFired=E,t.default=$},14154:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(17313),o=n(74207),i=n(37613),a=n(83116),l=n(13826),c=n(92899);const s=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var u=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,u=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${i}${d}bottomLeft,\n ${a}${d}bottomLeft\n `]:{animationName:l.fJ},[`\n ${i}${d}topLeft,\n ${a}${d}topLeft,\n ${i}${d}topRight,\n ${a}${d}topRight\n `]:{animationName:l.Qt},[`${u}${d}bottomLeft`]:{animationName:l.Uw},[`\n ${u}${d}topLeft,\n ${u}${d}topRight\n `]:{animationName:l.ly},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},s(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},r.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,l.oN)(e,"slide-up"),(0,l.oN)(e,"slide-down"),(0,c.Fm)(e,"move-up"),(0,c.Fm)(e,"move-down")]};const d=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function p(e,t){const{componentCls:n,iconCls:o}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[l]=d(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:l-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var f=e=>{const{componentCls:t}=e,n=(0,i.TS)(e,{controlHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,i.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=d(e);return[p(e),p(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},p(r,"lg")]};function m(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:i}=e,a=e.controlHeight-2*e.lineWidth,l=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function g(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[m(e),m((0,i.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},m((0,i.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const h=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},v=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},b=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},y=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},h(e)),b(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},r.vS),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},r.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,r.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},x=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},y(e),g(e),f(e),u(e),{[`${t}-rtl`]:{direction:"rtl"}},v(t,(0,i.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),v(`${t}-status-error`,(0,i.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),v(`${t}-status-warning`,(0,i.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,o.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var w=(0,a.Z)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,i.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight});return[x(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:s,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:m,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:s,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}))},58582:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}},84443:function(e,t,n){function r(e,t){return void 0!==t?t:null!==e}n.d(t,{Z:function(){return r}})},66339:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(40001),o=n(19248),i=n(99267),a=n(84105),l=n(58617),c=n(47472),s=n(59301);function u(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:u,removeIcon:d,loading:p,multiple:f,hasFeedback:m,prefixCls:g,showSuffixIcon:h,feedbackIcon:v,showArrow:b,componentName:y}=e;const x=null!=n?n:s.createElement(o.Z,null),w=e=>null!==t||m||b?s.createElement(s.Fragment,null,!1!==h&&e,m&&v):null;let C=null;if(void 0!==t)C=w(t);else if(p)C=w(s.createElement(l.Z,{spin:!0}));else{const e=`${g}-suffix`;C=t=>{let{open:n,showSearch:r}=t;return w(n&&r?s.createElement(c.Z,{className:e}):s.createElement(a.Z,{className:e}))}}let S=null;S=void 0!==u?u:f?s.createElement(r.Z,null):null;let $=null;return $=void 0!==d?d:s.createElement(i.Z,null),{clearIcon:x,suffixIcon:C,itemIcon:S,removeIcon:$}}},81327:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(59301),o=n(92310),i=n.n(o),a=n(11592),l=n(36355),c=n(33234);const s=r.createContext({latestIndex:0}),u=s.Provider;var d=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:l}=r.useContext(s);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n{var n,o;const{getPrefixCls:c,space:s,direction:h}=r.useContext(l.E_),{size:v=(null==s?void 0:s.size)||"small",align:b,className:y,rootClassName:x,children:w,direction:C="horizontal",prefixCls:S,split:$,style:E,wrap:k=!1,classNames:I,styles:Z}=e,N=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,j]=Array.isArray(v)?v:[v,v],M=f(j),P=f(O),R=m(j),z=m(O),T=(0,a.Z)(w,{keepEmpty:!0}),L=void 0===b&&"horizontal"===C?"center":b,D=c("space",S),[B,A]=(0,p.Z)(D),_=i()(D,null==s?void 0:s.className,A,`${D}-${C}`,{[`${D}-rtl`]:"rtl"===h,[`${D}-align-${L}`]:L,[`${D}-gap-row-${j}`]:M,[`${D}-gap-col-${O}`]:P},y,x),H=i()(`${D}-item`,null!==(n=null==I?void 0:I.item)&&void 0!==n?n:null===(o=null==s?void 0:s.classNames)||void 0===o?void 0:o.item);let K=0;const F=T.map(((e,t)=>{var n,o;null!=e&&(K=t);const i=e&&e.key||`${H}-${t}`;return r.createElement(d,{className:H,key:i,index:t,split:$,style:null!==(n=null==Z?void 0:Z.item)&&void 0!==n?n:null===(o=null==s?void 0:s.styles)||void 0===o?void 0:o.item},e)})),W=r.useMemo((()=>({latestIndex:K})),[K]);if(0===T.length)return null;const V={};return k&&(V.flexWrap="wrap"),!P&&z&&(V.columnGap=O),!M&&R&&(V.rowGap=j),B(r.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},V),null==s?void 0:s.style),E)},N),r.createElement(u,{value:W},F)))}));const v=h;v.Compact=c.ZP;var b=v},8378:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},92899:function(e,t,n){n.d(t,{Fm:function(){return p}});var r=n(66604),o=n(95406);const i=new r.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new r.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new r.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new r.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new r.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new r.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:s,outKeyframes:u}},p=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=d[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},13826:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return a},fJ:function(){return i},ly:function(){return c},oN:function(){return m}});var r=n(66604),o=n(95406);const i=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),f={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:p}},m=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=f[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},15969:function(e,t,n){n.d(t,{N:function(){return r}});const r=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},60293:function(e,t,n){n.d(t,{qN:function(){return o},ZP:function(){return l},fS:function(){return i}});const r=(e,t,n,r,o)=>{const i=e/2,a=i,l=1*n/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),s=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-s,p=u,f=2*i-l,m=c,g=2*i-0,h=a,v=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${l} ${c} L ${s} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${m} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},o=8;function i(e){const t=o,{contentRadius:n,limitVerticalRadius:r}=e,i=n>12?n+2:12;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:r?t:i}}function a(e,t){return e?t:{}}function l(e,t){const{componentCls:n,sizePopupArrow:o,borderRadiusXS:l,borderRadiusOuter:c,boxShadowPopoverArrow:s}=e,{colorBg:u,contentRadius:d=e.borderRadiusLG,limitVerticalRadius:p,arrowDistance:f=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:h}=i({contentRadius:d,limitVerticalRadius:p});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},r(o,l,c,u,s)),{"&:before":{background:u}})]},a(!!m.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),a(!!m.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),a(!!m.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:g},[`&-placement-leftBottom ${n}-arrow`]:{bottom:g}})),a(!!m.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:g},[`&-placement-rightBottom ${n}-arrow`]:{bottom:g}}))}}},32418:function(e,t,n){n.d(t,{Z:function(){return ir}});var r={},o="rc-table-internal-hook",i=n(50298),a=n(6089),l=n(34280),c=n(13697),s=n(59301),u=n(4676);function d(e){var t=s.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=s.useRef(n);o.current=n;var a=s.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),c=(0,i.Z)(a,1)[0];return(0,l.Z)((function(){(0,u.unstable_batchedUpdates)((function(){c.listeners.forEach((function(e){e(n)}))}))}),[n]),s.createElement(t.Provider,{value:c},r)},defaultValue:e}}function p(e,t){var n=(0,a.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=s.useContext(null==e?void 0:e.Context),o=r||{},u=o.listeners,d=o.getValue,p=s.useRef();p.current=n(r?d():null==e?void 0:e.defaultValue);var f=s.useState({}),m=(0,i.Z)(f,2)[1];return(0,l.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,c.Z)(p.current,t,!0)||m({})}}),[r]),p.current}var f=n(14809),m=n(8654);function g(){var e=s.createContext(null);function t(){return s.useContext(e)}return{makeImmutable:function(n,r){var o=(0,m.Yr)(n),i=function(i,a){var l=o?{ref:a}:{},c=s.useRef(0),u=s.useRef(i);return null!==t()?s.createElement(n,(0,f.Z)({},i,l)):(r&&!r(u.current,i)||(c.current+=1),u.current=i,s.createElement(e.Provider,{value:c.current},s.createElement(n,(0,f.Z)({},i,l))))};return o?s.forwardRef(i):i},responseImmutable:function(e,n){var r=(0,m.Yr)(e),o=function(n,o){var i=r?{ref:o}:{};return t(),s.createElement(e,(0,f.Z)({},n,i))};return r?s.memo(s.forwardRef(o),n):s.memo(o,n)},useImmutableMark:t}}var h=g(),v=(h.makeImmutable,h.responseImmutable,h.useImmutableMark,g()),b=v.makeImmutable,y=v.responseImmutable,x=v.useImmutableMark,w=d();s.memo((function(){var e=function(e,t){var n=s.useRef(0);n.current+=1;var r=s.useRef(e),o=[];Object.keys(e||{}).map((function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&o.push(t)})),r.current=e;var i=s.useRef([]);return o.length&&(i.current=o),s.useDebugValue(n.current),s.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}();return s.createElement("h1",null,"Render Times: ",e)})).displayName="RenderBlock";var C=n(93664),S=n(20439),$=n(4635),E=n(92310),k=n.n(E),I=n(80547),Z=n(97938),N=(n(48736),s.createContext({renderWithProps:!1}));function O(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function j(e){return null!=e}function M(e,t,n,r,o,a){var l=s.useContext(N),u=x();return(0,I.Z)((function(){if(j(r))return[r];var i,a=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,Z.Z)(e,a),u=c,d=void 0;if(o){var p=o(c,e,n);!(i=p)||"object"!==(0,C.Z)(i)||Array.isArray(i)||s.isValidElement(i)?u=p:(u=p.children,d=p.props,l.renderWithProps=!0)}return[u,d]}),[u,e,r,t,o,n],(function(e,t){if(a){var n=(0,i.Z)(e,2)[1],r=(0,i.Z)(t,2)[1];return a(r,n)}return!!l.renderWithProps||!(0,c.Z)(e,t,!0)}))}function P(e){var t,n,r,o,a,l,c,u;var d=e.component,m=e.children,g=e.ellipsis,h=e.scope,v=e.prefixCls,b=e.className,y=e.align,x=e.record,E=e.render,I=e.dataIndex,Z=e.renderIndex,N=e.shouldCellUpdate,O=e.index,j=e.rowType,P=e.colSpan,R=e.rowSpan,z=e.fixLeft,T=e.fixRight,L=e.firstFixLeft,D=e.lastFixLeft,B=e.firstFixRight,A=e.lastFixRight,_=e.appendNode,H=e.additionalProps,K=void 0===H?{}:H,F=e.isSticky,W="".concat(v,"-cell"),V=p(w,["supportSticky","allColumnsFixedLeft"]),X=V.supportSticky,G=V.allColumnsFixedLeft,Y=M(x,I,Z,m,E,N),q=(0,i.Z)(Y,2),U=q[0],Q=q[1],J={},ee="number"==typeof z&&X,te="number"==typeof T&&X;ee&&(J.position="sticky",J.left=z),te&&(J.position="sticky",J.right=T);var ne=null!==(t=null!==(n=null!==(r=null==Q?void 0:Q.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:P)&&void 0!==t?t:1,re=null!==(o=null!==(a=null!==(l=null==Q?void 0:Q.rowSpan)&&void 0!==l?l:K.rowSpan)&&void 0!==a?a:R)&&void 0!==o?o:1,oe=function(e,t){return p(w,(function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]}))}(O,re),ie=(0,i.Z)(oe,2),ae=ie[0],le=ie[1];if(0===ne||0===re)return null;var ce=null!==(c=K.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():s.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:j,ellipsis:g,children:U}),se=k()(W,b,(u={},(0,$.Z)(u,"".concat(W,"-fix-left"),ee&&X),(0,$.Z)(u,"".concat(W,"-fix-left-first"),L&&X),(0,$.Z)(u,"".concat(W,"-fix-left-last"),D&&X),(0,$.Z)(u,"".concat(W,"-fix-left-all"),D&&G&&X),(0,$.Z)(u,"".concat(W,"-fix-right"),te&&X),(0,$.Z)(u,"".concat(W,"-fix-right-first"),B&&X),(0,$.Z)(u,"".concat(W,"-fix-right-last"),A&&X),(0,$.Z)(u,"".concat(W,"-ellipsis"),g),(0,$.Z)(u,"".concat(W,"-with-append"),_),(0,$.Z)(u,"".concat(W,"-fix-sticky"),(ee||te)&&F&&X),(0,$.Z)(u,"".concat(W,"-row-hover"),!Q&&ae),u),K.className,null==Q?void 0:Q.className),ue={};y&&(ue.textAlign=y);var de=(0,S.Z)((0,S.Z)((0,S.Z)((0,S.Z)({},J),K.style),ue),null==Q?void 0:Q.style),pe=U;return"object"!==(0,C.Z)(pe)||Array.isArray(pe)||s.isValidElement(pe)||(pe=null),g&&(D||B)&&(pe=s.createElement("span",{className:"".concat(W,"-content")},pe)),s.createElement(d,(0,f.Z)({},Q,K,{className:se,style:de,title:ce,scope:h,onMouseEnter:function(e){var t;x&&le(O,O+re-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)},onMouseLeave:function(e){var t;x&&le(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)},colSpan:1!==ne?ne:null,rowSpan:1!==re?re:null}),_,pe)}var R=s.memo(P);function z(e,t,n,r,o,i){var a,l,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===o?t:e]:"right"===s.fixed&&(l=r.right["rtl"===o?e:t]);var u=!1,d=!1,p=!1,f=!1,m=n[t+1],g=n[e-1],h=!(null!=i&&i.children);if("rtl"===o){if(void 0!==a)f=!(g&&"left"===g.fixed)&&h;else if(void 0!==l){p=!(m&&"right"===m.fixed)&&h}}else if(void 0!==a){u=!(m&&"left"===m.fixed)&&h}else if(void 0!==l){d=!(g&&"right"===g.fixed)&&h}return{fixLeft:a,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:p,firstFixLeft:f,isSticky:r.isSticky}}var T=s.createContext({});var L=n(62646),D=["children"];function B(e){return e.children}B.Row=function(e){var t=e.children,n=(0,L.Z)(e,D);return s.createElement("tr",n,t)},B.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,a=e.rowSpan,l=e.align,c=p(w,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,m=s.useContext(T),g=m.scrollColumnIndex,h=m.stickyOffsets,v=m.flattenColumns,b=m.columns,y=n+i-1+1===g?i+1:i,x=z(n,n+y-1,v,h,d,null==b?void 0:b[n]);return s.createElement(R,(0,f.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:y,rowSpan:a,render:function(){return r}},x))};var A=B;var _=y((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=p(w,"prefixCls"),a=r.length-1,l=r[a],c=s.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null,columns:o}}),[l,r,a,n,o]);return s.createElement(T.Provider,{value:c},s.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),H=A,K=n(70425),F=n(29301),W=n(29194),V=n(24514),X=n(75152),G=n(26112);function Y(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=0;i-=1){var a=t[i],l=n&&n[i],c=l&&l[le];if(a||c||o){var u=c||{},d=(u.columnType,(0,L.Z)(u,ce));r.unshift(s.createElement("col",(0,f.Z)({key:i,style:{width:a}},d))),o=!0}}return s.createElement("colgroup",null,r)},ue=n(95190),de=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var pe=s.forwardRef((function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,g=e.stickyBottomOffset,h=e.stickyClassName,v=e.onScroll,b=e.maxContentScroll,y=e.children,x=(0,L.Z)(e,de),C=p(w,["prefixCls","scrollbarSize","isSticky"]),E=C.prefixCls,I=C.scrollbarSize,Z=C.isSticky,N=Z&&!d?0:I,O=s.useRef(null),j=s.useCallback((function(e){(0,m.mH)(t,e),(0,m.mH)(O,e)}),[]);s.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(v({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var M=s.useMemo((function(){return i.every((function(e){return e.width}))}),[i]),P=i[i.length-1],R={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},z=(0,s.useMemo)((function(){return N?[].concat((0,ue.Z)(o),[R]):o}),[N,o]),T=(0,s.useMemo)((function(){return N?[].concat((0,ue.Z)(i),[R]):i}),[N,i]),D=(0,s.useMemo)((function(){var e=c.right,t=c.left;return(0,S.Z)((0,S.Z)({},c),{},{left:"rtl"===u?[].concat((0,ue.Z)(t.map((function(e){return e+N}))),[0]):t,right:"rtl"===u?e:[].concat((0,ue.Z)(e.map((function(e){return e+N}))),[0]),isSticky:Z})}),[N,c,Z]),B=function(e,t){return(0,s.useMemo)((function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:i.title?a:l,prefixCls:m,key:h[t]},c,{additionalProps:n,rowType:"header"}))})))}me.displayName="HeaderRow";var ge=me;var he=y((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=p(w,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,c=s.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var ye=["children"],xe=["fixed"];function we(e){return(0,ve.Z)(e).filter((function(e){return s.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=(0,L.Z)(n,ye),i=(0,S.Z)({key:t},o);return r&&(i.children=we(r)),i}))}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,C.Z)(e)})).reduce((function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat((0,ue.Z)(e),(0,ue.Z)(Ce(l,a).map((function(e){return(0,S.Z)({fixed:i},e)})))):[].concat((0,ue.Z)(e),[(0,S.Z)((0,S.Z)({key:a},n),{},{fixed:i})])}),[])}var Se=function(e,t){var n=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,p=e.onTriggerExpand,f=e.expandIcon,m=e.rowExpandable,g=e.expandIconColumnIndex,h=e.direction,v=e.expandRowByClick,b=e.columnWidth,y=e.fixed,x=e.scrollWidth,w=s.useMemo((function(){return o||we(a)}),[o,a]),C=s.useMemo((function(){if(l){var e,t=w.slice();if(!t.includes(r)){var o=g||0;o>=0&&t.splice(o,0,r)}0;var i=t.indexOf(r);t=t.filter((function(e,t){return e!==r||t===i}));var a,h=w[i];a="left"!==y&&!y||g?"right"!==y&&!y||g!==w.length?h?h.fixed:null:"right":"left";var x=(e={},(0,$.Z)(e,le,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,$.Z)(e,"title",u),(0,$.Z)(e,"fixed",a),(0,$.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,$.Z)(e,"width",b),(0,$.Z)(e,"render",(function(e,t,r){var o=d(t,r),i=c.has(o),a=!m||m(t),l=f({prefixCls:n,expanded:i,expandable:a,record:t,onExpand:p});return v?s.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l})),e);return t.map((function(e){return e===r?x:e}))}return w.filter((function(e){return e!==r}))}),[l,w,d,c,f,h]),E=s.useMemo((function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,C,h]),k=s.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=(0,L.Z)(e,xe),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,S.Z)({fixed:r},n)}))}(Ce(E)):Ce(E)}),[E,h,x]),I=function(e,t){return s.useMemo((function(){if(t&&t>0){var n=0,r=0;e.forEach((function(e){var o=be(t,e.width);o?n+=o:r+=1}));var o=t-n,i=r,a=o/r,l=0;return[e.map((function(e){var n=(0,S.Z)({},e),r=be(t,n.width);if(r)n.width=r;else{var c=Math.floor(a);n.width=1===i?o:c,o-=c,i-=1}return l+=n.width,n})),l]}return[e,t]}),[e,t])}(k,x),Z=(0,i.Z)(I,2),N=Z[0],O=Z[1];return[E,N,O]};function $e(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");if(!a)return s.createElement("span",{className:k()(l,"".concat(n,"-row-spaced"))});return s.createElement("span",{className:k()(l,(t={},(0,$.Z)(t,"".concat(n,"-row-expanded"),i),(0,$.Z)(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:function(e){o(r,e),e.stopPropagation()}})}function Ee(e,t,n){var r=function(e){var t,n=e.expandable,r=(0,L.Z)(e,ae);return!1===(t="expandable"in e?(0,S.Z)((0,S.Z)({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),a=r.expandIcon,l=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,p=r.onExpand,f=r.onExpandedRowsChange,m=a||$e,g=r.childrenColumnName||"children",h=s.useMemo((function(){return d?"row":!!(e.expandable&&e.internalHooks===o&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,C.Z)(e)&&e[g]})))&&"nest"}),[!!d,t]),v=s.useState((function(){return c||(u?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(t,n,g):[])})),b=(0,i.Z)(v,2),y=b[0],x=b[1],w=s.useMemo((function(){return new Set(l||y||[])}),[l,y]),$=s.useCallback((function(e){var r,o=n(e,t.indexOf(e)),i=w.has(o);i?(w.delete(o),r=(0,ue.Z)(w)):r=[].concat((0,ue.Z)(w),[o]),x(r),p&&p(!i,e),f&&f(r)}),[n,w,t,p,f]);return[r,h,w,m,g,$]}function ke(e){var t=(0,s.useRef)(e),n=(0,s.useState)({}),r=(0,i.Z)(n,2)[1],o=(0,s.useRef)(null),a=(0,s.useRef)([]);return(0,s.useEffect)((function(){return function(){o.current=null}}),[]),[t.current,function(e){a.current.push(e);var n=Promise.resolve();o.current=n,n.then((function(){if(o.current===n){var e=a.current,i=t.current;a.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,i!==t.current&&r({})}}))}]}var Ie=(0,n(47273).Z)()?window:null;var Ze=function(e,t,n){return(0,s.useMemo)((function(){for(var r=[],o=[],i=0,a=0,l=0;l=f&&(r=f-m),a({scrollLeft:r/f*(d+2)}),x.current.x=e.pageX}else I&&Z(!1)},j=function(){if(o.current){var e=(0,je.os)(o.current).top,t=e+o.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,je.os)(c).top+c.clientHeight;t-(0,X.Z)()<=n||e>=n-l?y((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!0})})):y((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!1})}))}},M=function(e){y((function(t){return(0,S.Z)((0,S.Z)({},t),{},{scrollLeft:e/d*f||0})}))};return s.useImperativeHandle(t,(function(){return{setScrollLeft:M}})),s.useEffect((function(){var e=(0,Oe.Z)(document.body,"mouseup",N,!1),t=(0,Oe.Z)(document.body,"mousemove",O,!1);return j(),function(){e.remove(),t.remove()}}),[m,I]),s.useEffect((function(){var e=(0,Oe.Z)(c,"scroll",j,!1),t=(0,Oe.Z)(window,"resize",j,!1);return function(){e.remove(),t.remove()}}),[c]),s.useEffect((function(){b.isHiddenScrollBar||y((function(e){var t=o.current;return t?(0,S.Z)((0,S.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[b.isHiddenScrollBar]),d<=f||!m||b.isHiddenScrollBar?null:s.createElement("div",{style:{height:(0,X.Z)(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},s.createElement("div",{onMouseDown:function(e){e.persist(),x.current.delta=e.pageX-b.scrollLeft,x.current.x=0,Z(!0),e.preventDefault()},ref:g,className:k()("".concat(u,"-sticky-scroll-bar"),(0,$.Z)({},"".concat(u,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))},Pe=s.forwardRef(Me);var Re=function(e){return null};var ze=function(e){return null},Te="rc-table",Le=[],De={};function Be(){return"No Data"}function Ae(e){var t,n=(0,S.Z)({rowKey:"key",prefixCls:Te,emptyText:Be},e),r=n.prefixCls,l=n.className,u=n.rowClassName,d=n.style,p=n.data,m=n.rowKey,g=n.scroll,h=n.tableLayout,v=n.direction,b=n.title,y=n.footer,x=n.summary,E=n.caption,N=n.id,M=n.showHeader,P=n.components,R=n.emptyText,T=n.onRow,L=n.onHeaderRow,D=n.internalHooks,B=n.transformColumns,H=n.internalRefs,K=n.tailor,Y=n.sticky,q=p||Le,U=!!q.length,Q=D===o;var J,ee,te,ne=s.useCallback((function(e,t){return(0,Z.Z)(P,e)||t}),[P]),re=s.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),oe=ne(["body"]),ae=function(){var e=s.useState(-1),t=(0,i.Z)(e,2),n=t[0],r=t[1],o=s.useState(-1),a=(0,i.Z)(o,2),l=a[0],c=a[1];return[n,l,s.useCallback((function(e,t){r(e),c(t)}),[])]}(),le=(0,i.Z)(ae,3),ce=le[0],ue=le[1],de=le[2],pe=Ee(n,q,re),me=(0,i.Z)(pe,6),ge=me[0],ve=me[1],be=me[2],ye=me[3],xe=me[4],we=me[5],Ce=null==g?void 0:g.x,$e=s.useState(0),Oe=(0,i.Z)($e,2),je=Oe[0],Me=Oe[1],Re=Se((0,S.Z)((0,S.Z)((0,S.Z)({},n),ge),{},{expandable:!!ge.expandedRowRender,columnTitle:ge.columnTitle,expandedKeys:be,getRowKey:re,onTriggerExpand:we,expandIcon:ye,expandIconColumnIndex:ge.expandIconColumnIndex,direction:v,scrollWidth:Q&&K&&"number"==typeof Ce?Ce:null}),Q?B:null),ze=(0,i.Z)(Re,3),Ae=ze[0],_e=ze[1],He=ze[2],Ke=null!=He?He:Ce,Fe=s.useMemo((function(){return{columns:Ae,flattenColumns:_e}}),[Ae,_e]),We=s.useRef(),Ve=s.useRef(),Xe=s.useRef(),Ge=s.useRef(),Ye=s.useRef(),qe=s.useState(!1),Ue=(0,i.Z)(qe,2),Qe=Ue[0],Je=Ue[1],et=s.useState(!1),tt=(0,i.Z)(et,2),nt=tt[0],rt=tt[1],ot=ke(new Map),it=(0,i.Z)(ot,2),at=it[0],lt=it[1],ct=O(_e).map((function(e){return at.get(e)})),st=s.useMemo((function(){return ct}),[ct.join("_")]),ut=Ze(st,_e.length,v),dt=g&&j(g.y),pt=g&&j(Ke)||Boolean(ge.fixed),ft=pt&&_e.some((function(e){return e.fixed})),mt=s.useRef(),gt=function(e,t){var n="object"===(0,C.Z)(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,l=n.offsetScroll,c=void 0===l?0:l,u=n.getContainer,d=(void 0===u?function(){return Ie}:u)()||Ie;return s.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:d}}),[c,o,a,t,d])}(Y,r),ht=gt.isSticky,vt=gt.offsetHeader,bt=gt.offsetSummary,yt=gt.offsetScroll,xt=gt.stickyClassName,wt=gt.container,Ct=s.useMemo((function(){return null==x?void 0:x(q)}),[x,q]),St=(dt||ht)&&s.isValidElement(Ct)&&Ct.type===A&&Ct.props.fixed;dt&&(ee={overflowY:"scroll",maxHeight:g.y}),pt&&(J={overflowX:"auto"},dt||(ee={overflowY:"hidden"}),te={width:!0===Ke?"auto":Ke,minWidth:"100%"});var $t=s.useCallback((function(e,t){(0,W.Z)(We.current)&<((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Et=function(e){var t=(0,s.useRef)(e||null),n=(0,s.useRef)();function r(){window.clearTimeout(n.current)}return(0,s.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),kt=(0,i.Z)(Et,2),It=kt[0],Zt=kt[1];function Nt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Ot=(0,a.Z)((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===v,i="number"==typeof r?r:n.scrollLeft,a=n||De;Zt()&&Zt()!==a||(It(a),Nt(i,Ve.current),Nt(i,Xe.current),Nt(i,Ye.current),Nt(i,null===(t=mt.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Ve.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return Je(!1),void rt(!1);o?(Je(-i0)):(Je(i>0),rt(i1?b-M:0,z=(0,S.Z)((0,S.Z)((0,S.Z)({},I),c),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:P,pointerEvents:"auto"}),T=s.useMemo((function(){return d?j<=1:0===N||0===j||j>1}),[j,N,d]);T?z.visibility="hidden":d&&(z.height=null==m?void 0:m(j));var L=T?function(){return null}:g,D={};return 0!==j&&0!==N||(D.rowSpan=1,D.colSpan=1),s.createElement(R,(0,f.Z)({className:k()(v,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:t.prefixCls,key:w,record:l,index:i,renderIndex:a,dataIndex:h,render:L,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:$,additionalProps:(0,S.Z)((0,S.Z)({},E),{},{style:z},D)}))},Ge=["data","index","className","rowKey","style","extra","getHeight"],Ye=s.forwardRef((function(e,t){var n,r=e.data,o=e.index,i=e.className,a=e.rowKey,l=e.style,c=e.extra,u=e.getHeight,d=(0,L.Z)(e,Ge),m=r.record,g=r.indent,h=r.index,v=p(w,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=v.scrollX,y=v.flattenColumns,x=v.prefixCls,C=v.fixColumn,E=v.componentWidth,I=Q(m,a,o,g),Z=I.rowSupportExpand,N=I.expanded,O=I.rowProps,j=I.expandedRowRender,M=I.expandedRowClassName;if(Z&&N){var P=j(m,o,g+1,N),z=null==M?void 0:M(m,o,g),T={};C&&(T={style:(0,$.Z)({},"--virtual-width","".concat(E,"px"))});var D="".concat(x,"-expanded-row-cell");n=s.createElement("div",{className:k()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(g+1),z)},s.createElement(R,{component:"div",prefixCls:x,className:k()(D,(0,$.Z)({},"".concat(D,"-fixed"),C)),additionalProps:T},P))}var B=(0,S.Z)((0,S.Z)({},l),{},{width:b});c&&(B.position="absolute",B.pointerEvents="none");var A=s.createElement("div",(0,f.Z)({},O,d,{ref:Z?null:t,className:k()(i,"".concat(x,"-row"),null==O?void 0:O.className,(0,$.Z)({},"".concat(x,"-row-extra"),c)),style:(0,S.Z)((0,S.Z)({},B),null==O?void 0:O.style)}),y.map((function(e,t){return s.createElement(Xe,{key:t,rowInfo:I,column:e,colIndex:t,indent:g,index:o,renderIndex:h,record:m,inverse:c,getHeight:u})})));return Z?s.createElement("div",{ref:t},A,n):A}));var qe=y(Ye),Ue=s.forwardRef((function(e,t){var n=e.data,r=e.onScroll,o=p(w,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=o.flattenColumns,l=o.onColumnResize,c=o.getRowKey,u=o.expandedKeys,d=o.prefixCls,m=o.childrenColumnName,g=o.emptyNode,h=o.scrollX,v=p(We),b=v.scrollY,y=v.listItemHeight,x=s.useRef(),C=q(n,m,u,c),S=s.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),$=s.useMemo((function(){return S.map((function(e){return e[2]}))}),[S]);s.useEffect((function(){S.forEach((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];l(n,r)}))}),[S]),s.useImperativeHandle(t,(function(){var e={};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),e}));var E,I=function(e,t){var n,r=null===(n=C[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},Z=s.useMemo((function(){return{columnsOffset:$}}),[$]),N="".concat(d,"-tbody");return E=C.length?s.createElement(Fe.Z,{fullHeight:!1,ref:x,className:k()(N,"".concat(N,"-virtual")),height:b,itemHeight:y||24,data:C,itemKey:function(e){return c(e.record)},scrollWidth:h,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var i=a.filter((function(e){return 0===I(e,t)})),l=t,u=function(e){if(!(i=i.filter((function(t){return 0===I(t,e)}))).length)return l=e,"break"},d=t;d>=0&&"break"!==u(d);d-=1);for(var p=a.filter((function(e){return 1!==I(e,n)})),f=n,m=function(e){if(!(p=p.filter((function(t){return 1!==I(t,e)}))).length)return f=Math.max(e-1,n),"break"},g=n;g1}))&&h.push(e)},b=l;b<=f;b+=1)v(b);return h.map((function(e){var t=C[e],n=c(t.record,e),i=r(n);return s.createElement(qe,{key:e,data:t,rowKey:n,index:e,style:{top:-o+i.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c(C[o].record,o),a=r(n,i);return a.bottom-a.top}})}))}},(function(e,t,n){var r=c(e.record,t);return s.createElement(qe,(0,f.Z)({data:e,rowKey:r,index:t},n))})):s.createElement("div",{className:k()("".concat(d,"-placeholder"))},s.createElement(R,{component:"div",prefixCls:d},g)),s.createElement(Ve.Provider,{value:Z},E)}));var Qe=y(Ue),Je=function(e,t){var n=t.ref,r=t.onScroll;return s.createElement(Qe,{ref:n,data:e,onScroll:r})};function et(e){var t=e.columns,n=e.scroll,r=e.prefixCls,i=void 0===r?Te:r,a=e.className,l=e.listItemHeight,c=n||{},u=c.x,d=c.y;"number"!=typeof u&&(u=100*((t||[]).length+1)),"number"!=typeof d&&(d=500);var p=s.useMemo((function(){return{scrollY:d,listItemHeight:l}}),[d,l]);return s.createElement(We.Provider,{value:p},s.createElement(Ke,(0,f.Z)({},e,{className:k()(a,"".concat(i,"-virtual")),scroll:(0,S.Z)((0,S.Z)({},n),{},{x:u}),components:{body:Je},columns:t,internalHooks:o,tailor:!0})))}function tt(e){return b(et,e)}tt();var nt=function(e){return null};var rt=function(e){return null},ot=n(2738),it=n(16089);function at(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function lt(e){return null!=e&&e===e.window}function ct(e,t){var n,r;if("undefined"==typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return lt(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!lt(e)&&"number"!=typeof i&&(i=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),i}function st(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:r,duration:o=450}=t,i=n(),a=ct(i,!0),l=Date.now(),c=()=>{const t=Date.now()-l,n=at(t>o?o:t,a,e,o);lt(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{r(o,e),e.stopPropagation()},className:k()(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}};function yt(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function xt(e,t){return t?`${t}-${e}`:`${e}`}function wt(e,t){return"function"==typeof e?e(t):e}var Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},St=n(7657),$t=function(e,t){return s.createElement(St.Z,(0,f.Z)({},e,{ref:t,icon:Ct}))};var Et=s.forwardRef($t),kt=n(56762);var It=n(3113),Zt=n(24905),Nt=n(8070),Ot=n(64165),jt=n(20834),Mt=n(40875),Pt=n(5112),Rt=n(177),zt=n(47472),Tt=n(10249);var Lt=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(Tt.Z,{prefix:s.createElement(zt.Z,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},Dt=n(10228);const Bt=e=>{const{keyCode:t}=e;t===Dt.Z.ENTER&&e.stopPropagation()};var At=s.forwardRef(((e,t)=>s.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Bt,ref:t},e.children)));function _t(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,ue.Z)(t),(0,ue.Z)(_t(r))))})),t}function Ht(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Kt(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map(((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:Kt({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const c=o?Zt.Z:Pt.ZP,u={key:void 0!==e.value?l:t,label:s.createElement(s.Fragment,null,s.createElement(c,{checked:r.includes(l)}),s.createElement("span",null,e.text))};return i.trim()?"function"==typeof a?a(i,e)?u:null:Ht(i,e.text)?u:null:u}))}var Ft=function(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:f,triggerFilter:m,locale:g,children:h,getPopupContainer:v}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:x,defaultFilteredValue:w,filterDropdownVisible:C,onFilterDropdownVisibleChange:S}=i,[$,E]=s.useState(!1),I=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),Z=e=>{E(e),null==y||y(e),null==S||S(e)},N=null!==(n=null!=b?b:C)&&void 0!==n?n:$,O=null==f?void 0:f.filteredKeys,[j,M]=function(e){const t=s.useRef(e),n=(0,kt.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(O||[]),P=e=>{let{selectedKeys:t}=e;M(t)},R=(e,t)=>{let{node:n,checked:r}=t;P(u?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};s.useEffect((()=>{$&&P({selectedKeys:O||[]})}),[O]);const[z,T]=s.useState([]),L=e=>{T(e)},[D,B]=s.useState(""),A=e=>{const{value:t}=e.target;B(t)};s.useEffect((()=>{$||B("")}),[$]);const _=e=>{const t=e&&e.length?e:null;return null!==t||f&&f.filteredKeys?(0,c.Z)(t,null==f?void 0:f.filteredKeys,!0)?null:void m({column:i,key:l,filteredKeys:t}):null},H=()=>{Z(!1),_(j())},K=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&Z(!1),B(""),M(x?(w||[]).map((e=>String(e))):[])},F=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&Z(!1),_(j())},W=k()({[`${a}-menu-without-submenu`]:(V=i.filters||[],!V.some((e=>{let{children:t}=e;return t})))});var V;const X=e=>{if(e.target.checked){const e=_t(null==i?void 0:i.filters).map((e=>String(e)));M(e)}else M([])},G=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=G({filters:e.children})),r}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let q,U;if("function"==typeof i.filterDropdown)q=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:e=>P({selectedKeys:e}),selectedKeys:j(),confirm:F,clearFilters:K,filters:i.filters,visible:N,close:()=>{Z(!1)}});else if(i.filterDropdown)q=i.filterDropdown;else{const e=j()||[],t=()=>0===(i.filters||[]).length?s.createElement(Ot.Z,{image:Ot.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?s.createElement(s.Fragment,null,s.createElement(Lt,{filterSearch:p,value:D,onChange:A,tablePrefixCls:r,locale:g}),s.createElement("div",{className:`${r}-filter-dropdown-tree`},u?s.createElement(Zt.Z,{checked:e.length===_t(i.filters).length,indeterminate:e.length>0&&e.length<_t(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:X},g.filterCheckall):null,s.createElement(Rt.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${a}-menu`,onCheck:R,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:G({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:D.trim()?e=>"function"==typeof p?p(D,Y(e)):Ht(D,e.title):void 0}))):s.createElement(s.Fragment,null,s.createElement(Lt,{filterSearch:p,value:D,onChange:A,tablePrefixCls:r,locale:g}),s.createElement(jt.Z,{selectable:!0,multiple:u,prefixCls:`${a}-menu`,className:W,onSelect:P,onDeselect:P,selectedKeys:e,getPopupContainer:v,openKeys:z,onOpenChange:L,items:Kt({filters:i.filters||[],filterSearch:p,prefixCls:o,filteredKeys:j(),filterMultiple:u,searchValue:D})})),n=()=>x?(0,c.Z)((w||[]).map((e=>String(e))),e,!0):0===e.length;q=s.createElement(s.Fragment,null,t(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(It.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>K()},g.filterReset),s.createElement(It.ZP,{type:"primary",size:"small",onClick:H},g.filterConfirm)))}i.filterDropdown&&(q=s.createElement(Mt.J,{selectable:void 0},q)),U="function"==typeof i.filterIcon?i.filterIcon(I):i.filterIcon?i.filterIcon:s.createElement(Et,null);const{direction:Q}=s.useContext(ut.E_);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${r}-column-title`},h),s.createElement(Nt.Z,{dropdownRender:()=>s.createElement(At,{className:`${o}-dropdown`},q),trigger:["click"],open:N,onOpenChange:e=>{e&&void 0!==O&&M(O||[]),Z(e),e||i.filterDropdown||H()},getPopupContainer:v,placement:"rtl"===Q?"bottomLeft":"bottomRight"},s.createElement("span",{role:"button",tabIndex:-1,className:k()(`${o}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},U)))};function Wt(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=xt(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:yt(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:yt(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,ue.Z)(r),(0,ue.Z)(Wt(e.children,t,a))))})),r}function Vt(e,t,n,r,o,i,a,l){return n.map(((n,c)=>{const u=xt(c,l),{filterMultiple:d=!0,filterMode:p,filterSearch:f}=n;let m=n;if(m.filters||m.filterDropdown){const l=yt(m,u),c=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>s.createElement(Ft,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:c,filterMultiple:d,filterMode:p,filterSearch:f,triggerFilter:i,locale:o,getPopupContainer:a},wt(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Vt(e,t,m.children,r,o,i,a,u)})),m}))}function Xt(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const{filters:i,filterDropdown:a}=o;if(a)t[n]=r||null;else if(Array.isArray(r)){const e=_t(i);t[n]=e.filter((e=>r.includes(String(e))))}else t[n]=null})),t}function Gt(e,t){return t.reduce(((e,t)=>{const{column:{onFilter:n,filters:r},filteredKeys:o}=t;return n&&o&&o.length?e.filter((e=>o.some((t=>{const o=_t(r),i=o.findIndex((e=>String(e)===String(t))),a=-1!==i?o[i]:t;return n(a,e)})))):e}),e)}const Yt=e=>e.flatMap((e=>"children"in e?[e].concat((0,ue.Z)(Yt(e.children||[]))):[e]));var qt=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a}=e;const l=s.useMemo((()=>Yt(r||[])),[r]),[c,u]=s.useState((()=>Wt(l,!0))),d=s.useMemo((()=>{const e=Wt(l,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(l||[]).map(((e,t)=>yt(e,xt(t))));return c.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=l[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[l,c]),p=s.useMemo((()=>Xt(d)),[d]),f=e=>{const t=d.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),u(t),o(Xt(t),t)};return[e=>Vt(t,n,e,d,a,f,i),d,p]};var Ut=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e},Qt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Jt}))),c=Ut(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(e,t)=>{l({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tn=n(84105),nn=n(35654),rn=n(90782),on=n(71430),an=n(18929);const ln={},cn="SELECT_ALL",sn="SELECT_INVERT",un="SELECT_NONE",dn=[],pn=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,ue.Z)(n),(0,ue.Z)(pn(e,t[e]))))})),n};var fn=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:f,type:m,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:x,data:w,pageData:C,getRecordByKey:S,getRowKey:$,expandType:E,childrenColumnName:I,locale:Z,getPopupContainer:N}=e,[O,j]=(0,an.Z)(r||o||dn,{value:r}),M=s.useRef(new Map),P=(0,s.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&M.current.has(e)&&(n=M.current.get(e)),t.set(e,n)})),M.current=t}}),[S,n]);s.useEffect((()=>{P(O)}),[O]);const{keyEntities:R}=(0,s.useMemo)((()=>{if(y)return{keyEntities:null};let e=w;if(n){const t=new Set(w.map(((e,t)=>$(e,t)))),n=Array.from(M.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat((0,ue.Z)(e),(0,ue.Z)(n))}return(0,on.I8)(e,{externalGetKey:$,childrenPropName:I})}),[w,$,y,I,n]),z=(0,s.useMemo)((()=>pn(I,C)),[I,C]),T=(0,s.useMemo)((()=>{const e=new Map;return z.forEach(((t,n)=>{const r=$(t,n),o=(i?i(t):null)||{};e.set(r,o)})),e}),[z,$,i]),L=(0,s.useCallback)((e=>{var t;return!!(null===(t=T.get($(e)))||void 0===t?void 0:t.disabled)}),[T,$]),[D,B]=(0,s.useMemo)((()=>{if(y)return[O||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=(0,rn.S)(O,!0,R,L);return[e||[],t]}),[O,y,R,L]),A=(0,s.useMemo)((()=>{const e="radio"===m?D.slice(0,1):D;return new Set(e)}),[D,m]),_=(0,s.useMemo)((()=>"radio"===m?new Set:new Set(B)),[B,m]),[H,K]=(0,s.useState)(null);s.useEffect((()=>{t||j(dn)}),[!!t]);const F=(0,s.useCallback)(((e,t)=>{let r,o;P(e),n?(r=e,o=e.map((e=>M.current.get(e)))):(r=[],o=[],e.forEach((e=>{const t=S(e);void 0!==t&&(r.push(e),o.push(t))}))),j(r),null==a||a(r,o,{type:t})}),[j,S,a,n]),W=(0,s.useCallback)(((e,t,n,r)=>{if(l){const o=n.map((e=>S(e)));l(S(e),t,o,r)}F(n,"single")}),[l,S,F]),V=(0,s.useMemo)((()=>{if(!g||b)return null;return(!0===g?[cn,sn,un]:g).map((e=>e===cn?{key:"all",text:Z.selectionAll,onSelect(){F(w.map(((e,t)=>$(e,t))).filter((e=>{const t=T.get(e);return!(null==t?void 0:t.disabled)||A.has(e)})),"all")}}:e===sn?{key:"invert",text:Z.selectInvert,onSelect(){const e=new Set(A);C.forEach(((t,n)=>{const r=$(t,n),o=T.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);u&&u(t),F(t,"invert")}}:e===un?{key:"none",text:Z.selectNone,onSelect(){null==d||d(),F(Array.from(A).filter((e=>{const t=T.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i{var n;if(!t)return e.filter((e=>e!==ln));let r=(0,ue.Z)(e);const o=new Set(A),i=z.map($).filter((e=>!T.get(e).disabled)),a=i.every((e=>o.has(e))),l=i.some((e=>o.has(e))),u=()=>{const e=[];a?i.forEach((t=>{o.delete(t),e.push(t)})):i.forEach((t=>{o.has(t)||(o.add(t),e.push(t))}));const t=Array.from(o);null==c||c(!a,t.map((e=>S(e))),e.map((e=>S(e)))),F(t,"all"),K(null)};let d,w;if("radio"!==m){let e;if(V){const t={getPopupContainer:N,items:V.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(i)},label:r}}))};e=s.createElement("div",{className:`${x}-selection-extra`},s.createElement(Nt.Z,{menu:t,getPopupContainer:N},s.createElement("span",null,s.createElement(tn.Z,null))))}const t=z.map(((e,t)=>{const n=$(e,t),r=T.get(n)||{};return Object.assign({checked:o.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===z.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));d=!b&&s.createElement("div",{className:`${x}-selection`},s.createElement(Zt.Z,{checked:n?r:!!z.length&&a,indeterminate:n?!r&&c:!a&&l,onChange:u,disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}w="radio"===m?(e,t,n)=>{const r=$(t,n),i=o.has(r);return{node:s.createElement(Pt.ZP,Object.assign({},T.get(r),{checked:i,onClick:e=>e.stopPropagation(),onChange:e=>{o.has(r)||W(r,!0,[r],e.nativeEvent)}})),checked:i}}:(e,t,n)=>{var r;const a=$(t,n),l=o.has(a),c=_.has(a),u=T.get(a);let d;return d="nest"===E?c:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:s.createElement(Zt.Z,Object.assign({},u,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let r=-1,c=-1;if(n&&y){const e=new Set([H,a]);i.some(((t,n)=>{if(e.has(t)){if(-1!==r)return c=n,!0;r=n}return!1}))}if(-1!==c&&r!==c&&y){const e=i.slice(r,c+1),t=[];l?e.forEach((e=>{o.has(e)&&(t.push(e),o.delete(e))})):e.forEach((e=>{o.has(e)||(t.push(e),o.add(e))}));const n=Array.from(o);null==p||p(!l,n.map((e=>S(e))),t.map((e=>S(e)))),F(n,"multiple")}else{const e=D;if(y){const n=l?(0,nn._5)(e,a):(0,nn.L0)(e,a);W(a,!l,n,t)}else{const n=(0,rn.S)([].concat((0,ue.Z)(e),[a]),!0,R,L),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(l){const e=new Set(r);e.delete(a),i=(0,rn.S)(Array.from(e),{checked:!1,halfCheckedKeys:o},R,L).checkedKeys}W(a,!l,i,t)}}K(l?null:a)}})),checked:l}};if(!r.includes(ln))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[le])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,ln].concat((0,ue.Z)(t))}else r=[ln].concat((0,ue.Z)(r));const C=r.indexOf(ln);r=r.filter(((e,t)=>e!==ln||t===C));const I=r[C-1],Z=r[C+1];let O=h;void 0===O&&(void 0!==(null==Z?void 0:Z.fixed)?O=Z.fixed:void 0!==(null==I?void 0:I.fixed)&&(O=I.fixed)),O&&I&&"EXPAND_COLUMN"===(null===(n=I[le])||void 0===n?void 0:n.columnType)&&void 0===I.fixed&&(I.fixed=O);const j=k()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&"checkbox"===m}),M={fixed:O,width:f,className:`${x}-selection-column`,title:t.columnTitle||d,render:(e,t,n)=>{const{node:r,checked:o}=w(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,[le]:{className:j}};return r.map((e=>e===ln?M:e))}),[$,z,t,D,A,_,f,V,E,H,T,p,W,L]);return[X,A]},mn=n(89489),gn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},hn=function(e,t){return s.createElement(St.Z,(0,f.Z)({},e,{ref:t,icon:gn}))};var vn=s.forwardRef(hn),bn=n(6848);const yn="ascend",xn="descend";function wn(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function Cn(e){return"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare}function Sn(e,t,n){let r=[];function o(e,t){r.push({column:e,key:yt(e,t),multiplePriority:wn(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,i)=>{const a=xt(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat((0,ue.Z)(r),(0,ue.Z)(Sn(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:yt(e,a),multiplePriority:wn(e),sortOrder:e.defaultSortOrder}))})),r}function $n(e,t,n,r,o,i,a,l){return(t||[]).map(((t,c)=>{const u=xt(c,l);let d=t;if(d.sorter){const l=d.sortDirections||o,c=void 0===d.showSorterTooltip?a:d.showSorterTooltip,p=yt(d,u),f=n.find((e=>{let{key:t}=e;return t===p})),m=f?f.sortOrder:null,g=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(l,m);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:m});else{const t=l.includes(yn)&&s.createElement(vn,{className:k()(`${e}-column-sorter-up`,{active:m===yn})}),n=l.includes(xn)&&s.createElement(mn.Z,{className:k()(`${e}-column-sorter-down`,{active:m===xn})});h=s.createElement("span",{className:k()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=i||{};let x=v;g===xn?x=y:g===yn&&(x=b);const w="object"==typeof c?c:{title:x};d=Object.assign(Object.assign({},d),{className:k()(d.className,{[`${e}-column-sort`]:m}),title:n=>{const r=s.createElement("div",{className:`${e}-column-sorters`},s.createElement("span",{className:`${e}-column-title`},wt(t.title,n)),h);return c?s.createElement(bn.Z,Object.assign({},w),r):r},onHeaderCell:n=>{const o=t.onHeaderCell&&t.onHeaderCell(n)||{},i=o.onClick,a=o.onKeyDown;o.onClick=e=>{r({column:t,key:p,sortOrder:g,multiplePriority:wn(t)}),null==i||i(e)},o.onKeyDown=e=>{e.keyCode===Dt.Z.ENTER&&(r({column:t,key:p,sortOrder:g,multiplePriority:wn(t)}),null==a||a(e))};const l=function(e,t){const n=wt(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title,{}),c=null==l?void 0:l.toString();return m?o["aria-sort"]="ascend"===m?"ascending":"descending":o["aria-label"]=c||"",o.className=k()(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(null!=l?l:"").toString()),o}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:$n(e,d.children,n,r,o,i,a,u)})),d}))}function En(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function kn(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(En);return 0===t.length&&e.length?Object.assign(Object.assign({},En(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function In(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Cn(t)&&n}));return i.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:In(r,t,n)}):e})):o}function Zn(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=wt(e.title,t),"children"in n&&(n.children=Zn(n.children,t)),n}))}function Nn(e){return[s.useCallback((t=>Zn(t,e)),[e])]}var On=_e(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),jn=tt(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Mn=n(60654),Pn=n(17313),Rn=n(83116),zn=n(37613);var Tn=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,o)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${o+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}};var Ln=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Pn.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Dn=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Bn=n(15969);var An=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:f,lineHeight:m,tablePaddingVertical:g,tablePaddingHorizontal:h,tableExpandedRowBg:v,paddingXXS:b}=e,y=r/2-i,x=2*y+3*i,w=`${i}px ${l} ${c}`,C=b-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,Bn.N)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/x})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*m-3*i)/2-Math.ceil((1.4*f-3*i)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${g}px -${h}px`,padding:`${g}px ${h}px`}}}};var _n=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:f,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:S,controlItemBgActive:$,boxShadowSecondary:E,filterDropdownMenuBg:k}=e,I=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,Pn.Wf)(e)),{minWidth:o,backgroundColor:w,borderRadius:g,boxShadow:E,overflow:"hidden",[`${I}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${l}px 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:S},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${Z}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-s}px ${l}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Hn=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${r}`}},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${r}`}},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}}}}};var Kn=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var Fn=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}};var Wn=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};var Vn=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,tableHeaderIconColor:l,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+o+i/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+o+i/4+2*a}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}}}}};var Xn=e=>{const{componentCls:t}=e,n=(n,r,o,i)=>({[`${t}${t}-${n}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${r}px ${o}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${o/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${o}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`}},[`${t}-selection-column`]:{paddingInlineStart:o/4+"px"}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var Gn=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}};var Yn=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}};var qn=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};var Un=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:n},[`${t}-expanded-row`]:{[`${r}${r}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${e.lineWidth}px)`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:n,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:n,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-e.lineWidth,borderInlineStart:n}}}}}}};const Qn=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:i,lineType:a,tableBorderColor:l,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:m,tableRowHoverBg:g,tableSelectedRowBg:h,tableSelectedRowHoverBg:v,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:x}=e,w=`${i}px ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Pn.dF)()),{[t]:Object.assign(Object.assign({},(0,Pn.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${x}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:w,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:w,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:w,transition:`background ${p} ease`},[`\n &${t}-row:hover > th,\n &${t}-row:hover > td,\n > th${t}-cell-row-hover,\n > td${t}-cell-row-hover\n `]:{background:g},[`&${t}-row-selected`]:{"> th, > td":{background:h},"&:hover > th, &:hover > td":{background:v}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:b,background:y}})}};var Jn=(0,Rn.Z)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorIcon:r,colorIconHover:o,opacityLoading:i,colorBgContainer:a,controlInteractiveSize:l,headerBg:c,headerColor:s,headerSortActiveBg:u,headerSortHoverBg:d,bodySortBg:p,rowHoverBg:f,rowSelectedBg:m,rowSelectedHoverBg:g,rowExpandedBg:h,cellPaddingBlock:v,cellPaddingInline:b,cellPaddingBlockMD:y,cellPaddingInlineMD:x,cellPaddingBlockSM:w,cellPaddingInlineSM:C,borderColor:S,footerBg:$,footerColor:E,headerBorderRadius:k,cellFontSize:I,cellFontSizeMD:Z,cellFontSizeSM:N,headerSplitColor:O,fixedHeaderSortActiveBg:j,headerFilterHoverBg:M,filterDropdownBg:P,expandIconBg:R,selectionColumnWidth:z,stickyScrollBarBg:T}=e,L=new Mn.C(r),D=new Mn.C(o),B=(0,zn.TS)(e,{tableFontSize:I,tableBg:a,tableRadius:k,tablePaddingVertical:v,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:s,tableHeaderBg:c,tableFooterTextColor:E,tableFooterBg:$,tableHeaderCellSplitColor:O,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableHeaderIconColor:L.clone().setAlpha(L.getAlpha()*i).toRgbString(),tableHeaderIconColorHover:D.clone().setAlpha(D.getAlpha()*i).toRgbString(),tableBodySortBg:p,tableFixedHeaderSortActiveBg:j,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:P,tableRowHoverBg:f,tableSelectedRowBg:m,tableSelectedRowHoverBg:g,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:Z,tableFontSizeSmall:N,tableSelectionColumnWidth:z,tableExpandIconBg:R,tableExpandColumnWidth:l+2*e.padding,tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[Qn(B),Kn(B),qn(B),Gn(B),_n(B),Tn(B),Fn(B),An(B),qn(B),Dn(B),Vn(B),Hn(B),Yn(B),Ln(B),Xn(B),Wn(B),Un(B)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,fontSize:f,controlHeight:m,colorTextPlaceholder:g}=e,h=new Mn.C(o).onBackground(n).toHexShortString(),v=new Mn.C(i).onBackground(n).toHexShortString(),b=new Mn.C(t).onBackground(n).toHexShortString();return{headerBg:b,headerColor:r,headerSortActiveBg:h,headerSortHoverBg:v,bodySortBg:b,rowHoverBg:b,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:b,footerColor:r,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:d,fixedHeaderSortActiveBg:h,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100}}));const er=[],tr=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:p,rowSelection:f,rowKey:m="key",rowClassName:g,columns:h,children:v,childrenColumnName:b,onChange:y,getPopupContainer:x,loading:w,expandIcon:C,expandable:S,expandedRowRender:$,expandIconColumnIndex:E,indentSize:I,scroll:Z,sortDirections:N,locale:O,showSorterTooltip:j=!0,virtual:M}=e;const P=s.useMemo((()=>h||we(v)),[h,v]),R=s.useMemo((()=>P.some((e=>e.responsive))),[P]),z=(0,ft.Z)(R),T=s.useMemo((()=>{const e=new Set(Object.keys(z).filter((e=>z[e])));return P.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[P,z]),L=(0,ot.Z)(e,["className","style","columns"]),{locale:D=mt.Z,direction:B,table:A,renderEmpty:_,getPrefixCls:H,getPopupContainer:K}=s.useContext(ut.E_),F=(0,pt.Z)(l),W=Object.assign(Object.assign({},D.Table),O),V=d||er,X=H("table",n),G=H("dropdown",u),Y=Object.assign({childrenColumnName:b,expandIconColumnIndex:E},S),{childrenColumnName:q="children"}=Y,U=s.useMemo((()=>V.some((e=>null==e?void 0:e[q]))?"nest":$||S&&S.expandedRowRender?"row":null),[V]),Q={body:s.useRef()},J=s.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ee]=function(e,t,n){const r=s.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const i=new Map;function a(e){e.forEach(((e,r)=>{const o=n(e,r);i.set(o,e),e&&"object"==typeof e&&t in e&&a(e[t]||[])}))}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(V,q,J),te={},ne=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i;const a=Object.assign(Object.assign({},te),e);n&&(null===(r=te.resetPagination)||void 0===r||r.call(te),(null===(o=a.pagination)||void 0===o?void 0:o.current)&&(a.pagination.current=1),p&&p.onChange&&p.onChange(1,null===(i=a.pagination)||void 0===i?void 0:i.pageSize)),Z&&!1!==Z.scrollToFirstRowOnChange&&Q.body.current&&st(0,{getContainer:()=>Q.body.current}),null==y||y(a.pagination,a.filters,a.sorter,{currentDataSource:Gt(In(V,a.sorterStates,q),a.filterStates),action:t})},[re,oe,ie,ae]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,c]=s.useState(Sn(n,!0)),u=s.useMemo((()=>{let e=!0;const t=Sn(n,!1);if(!t.length)return l;const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,l]),d=s.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]);function p(e){let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,ue.Z)(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),r(kn(t),t)}return[e=>$n(t,e,u,p,o,i,a),u,d,()=>kn(u)]}({prefixCls:X,mergedColumns:T,onSorterChange:(e,t)=>{ne({sorter:e,sorterStates:t},"sort",!1)},sortDirections:N||["ascend","descend"],tableLocale:W,showSorterTooltip:j}),le=s.useMemo((()=>In(V,oe,q)),[V,oe]);te.sorter=ae(),te.sorterStates=oe;const[ce,se,de]=qt({prefixCls:X,locale:W,dropdownPrefixCls:G,mergedColumns:T,onFilterChange:(e,t)=>{ne({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||K}),pe=Gt(le,se);te.filters=de,te.filterStates=se;const fe=s.useMemo((()=>{const e={};return Object.keys(de).forEach((t=>{null!==de[t]&&(e[t]=de[t])})),Object.assign(Object.assign({},ie),{filters:e})}),[ie,de]),[me]=Nn(fe),[ge,he]=en(pe.length,((e,t)=>{ne({pagination:Object.assign(Object.assign({},te.pagination),{current:e,pageSize:t})},"paginate")}),p);te.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(ge,p),te.resetPagination=he;const ve=s.useMemo((()=>{if(!1===p||!ge.pageSize)return pe;const{current:e=1,total:t,pageSize:n=Jt}=ge;return pe.lengthn?pe.slice((e-1)*n,e*n):pe:pe.slice((e-1)*n,e*n)}),[!!p,pe,ge&&ge.current,ge&&ge.pageSize,ge&&ge.total]),[be,ye]=fn({prefixCls:X,data:pe,pageData:ve,getRowKey:J,getRecordByKey:ee,expandType:U,childrenColumnName:q,locale:W,getPopupContainer:x||K},f);Y.__PARENT_RENDER_ICON__=Y.expandIcon,Y.expandIcon=Y.expandIcon||C||bt(W),"nest"===U&&void 0===Y.expandIconColumnIndex?Y.expandIconColumnIndex=f?1:0:Y.expandIconColumnIndex>0&&f&&(Y.expandIconColumnIndex-=1),"number"!=typeof Y.indentSize&&(Y.indentSize="number"==typeof I?I:15);const xe=s.useCallback((e=>me(be(ce(re(e))))),[re,ce,be]);let Ce,Se,$e;if(!1!==p&&(null==ge?void 0:ge.total)){let e;e=ge.size?ge.size:"small"===F||"middle"===F?"small":void 0;const t=t=>s.createElement(gt.Z,Object.assign({},ge,{className:k()(`${X}-pagination ${X}-pagination-${t}`,ge.className),size:e})),n="rtl"===B?"left":"right",{position:r}=ge;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||(Se=t(n)),e&&(Ce=t(e.toLowerCase().replace("top",""))),o&&(Se=t(o.toLowerCase().replace("bottom","")))}else Se=t(n)}"boolean"==typeof w?$e={spinning:w}:"object"==typeof w&&($e=Object.assign({spinning:!0},w));const[Ee,ke]=Jn(X),[,Ie]=(0,vt.Z)(),Ze=k()(`${X}-wrapper`,null==A?void 0:A.className,{[`${X}-wrapper-rtl`]:"rtl"===B},r,i,ke),Ne=Object.assign(Object.assign({},null==A?void 0:A.style),a),Oe=O&&O.emptyText||(null==_?void 0:_("Table"))||s.createElement(dt.Z,{componentName:"Table"}),je=M?jn:On,Me={},Pe=s.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=Ie,i=Math.floor(e*t);switch(F){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[Ie,F]);return M&&(Me.listItemHeight=Pe),Ee(s.createElement("div",{ref:t,className:Ze,style:Ne},s.createElement(ht.Z,Object.assign({spinning:!1},$e),Ce,s.createElement(je,Object.assign({},Me,L,{columns:T,direction:B,expandable:Y,prefixCls:X,className:k()({[`${X}-middle`]:"middle"===F,[`${X}-small`]:"small"===F,[`${X}-bordered`]:c,[`${X}-empty`]:0===V.length}),data:ve,rowKey:J,rowClassName:(e,t,n)=>{let r;return r="function"==typeof g?k()(g(e,t,n)):k()(g),k()({[`${X}-row-selected`]:ye.has(J(e,t))},r)},emptyText:Oe,internalHooks:o,internalRefs:Q,transformColumns:xe})),Se)))};var nr=s.forwardRef(tr);const rr=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(nr,Object.assign({},e,{ref:t,_renderTimes:n.current}))},or=s.forwardRef(rr);or.SELECTION_COLUMN=ln,or.EXPAND_COLUMN=r,or.SELECTION_ALL=cn,or.SELECTION_INVERT=sn,or.SELECTION_NONE=un,or.Column=nt,or.ColumnGroup=rt,or.Summary=H;var ir=or},99313:function(e,t,n){n.d(t,{Z:function(){return ke}});var r=n(99267),o=n(18785),i=n(62772),a=n(92310),l=n.n(a),c=n(14809),s=n(4635),u=n(20439),d=n(50298),p=n(93664),f=n(62646),m=n(59301),g=n(49658),h=n(18929),v=n(77900),b=(0,m.createContext)(null),y=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,c=e.tabKey,s=e.children;return m.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!a,style:o,className:l()(n,a&&"".concat(n,"-active"),r),ref:t},s)}));var x=y,w=["key","forceRender","style","className"];function C(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=m.useContext(b),d=a.prefixCls,p=a.tabs,g=r.tabPane,h="".concat(d,"-tabpane");return m.createElement("div",{className:l()("".concat(d,"-content-holder"))},m.createElement("div",{className:l()("".concat(d,"-content"),"".concat(d,"-content-").concat(o),(0,s.Z)({},"".concat(d,"-content-animated"),g))},p.map((function(e){var o=e.key,a=e.forceRender,s=e.style,d=e.className,p=(0,f.Z)(e,w),b=o===n;return m.createElement(v.ZP,(0,c.Z)({key:o,visible:b,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(h,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return m.createElement(x,(0,c.Z)({},p,{prefixCls:h,id:t,tabKey:o,animated:g,active:b,style:(0,u.Z)((0,u.Z)({},s),r),className:l()(d,i),ref:n}))}))}))))}var S=n(95190),$=n(29301),E=n(6089),k=n(8654),I={width:0,height:0,left:0,top:0};function Z(e,t){var n=m.useRef(e),r=m.useState({}),o=(0,d.Z)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var N=Math.pow(.995,20);var O=n(34280);function j(e){var t=(0,m.useState)(0),n=(0,d.Z)(t,2),r=n[0],o=n[1],i=(0,m.useRef)(0),a=(0,m.useRef)();return a.current=e,(0,O.o)((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var M={width:0,height:0,left:0,top:0,right:0};function P(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function R(e){return String(e).replace(/"/g,"TABS_DQ")}function z(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function T(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?m.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var L=m.forwardRef(T);var D=m.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==(0,p.Z)(i)||m.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?m.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),B=n(31561),A=n(15285),_=n(10228);function H(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,p=e.moreTransitionName,f=e.style,g=e.className,h=e.editable,v=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,x=e.onTabClick,w=e.getPopupContainer,C=e.popupClassName,S=(0,m.useState)(!1),$=(0,d.Z)(S,2),E=$[0],k=$[1],I=(0,m.useState)(null),Z=(0,d.Z)(I,2),N=Z[0],O=Z[1],j="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),P=null!==N?"".concat(j,"-").concat(N):null,R=null==i?void 0:i.dropdownAriaLabel;var T=m.createElement(A.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),k(!1)},prefixCls:"".concat(M,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[N],"aria-label":void 0!==R?R:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=z(t,o,h,n);return m.createElement(A.sN,{key:i,id:"".concat(j,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},m.createElement("span",null,a),l&&m.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,i)}},o||h.removeIcon||"×"))})));function D(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===N}))||0,r=t.length,i=0;it?"left":"right"})})),te=(0,d.Z)(ee,2),ne=te[0],re=te[1],oe=Z(0,(function(e,t){!J&&B&&B({direction:e>t?"top":"bottom"})})),ie=(0,d.Z)(oe,2),ae=ie[0],le=ie[1],ce=(0,m.useState)([0,0]),se=(0,d.Z)(ce,2),ue=se[0],de=se[1],pe=(0,m.useState)([0,0]),fe=(0,d.Z)(pe,2),me=fe[0],ge=fe[1],he=(0,m.useState)([0,0]),ve=(0,d.Z)(he,2),be=ve[0],ye=ve[1],xe=(0,m.useState)([0,0]),we=(0,d.Z)(xe,2),Ce=we[0],Se=we[1],$e=function(e){var t=(0,m.useRef)([]),n=(0,m.useState)({}),r=(0,d.Z)(n,2)[1],o=(0,m.useRef)("function"==typeof e?e():e),i=j((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),i()}]}(new Map),Ee=(0,d.Z)($e,2),ke=Ee[0],Ie=Ee[1],Ze=function(e,t,n){return(0,m.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||I,i=o.left+o.width,a=0;aLe?Le:e}J&&v?(Te=0,Le=Math.max(0,Oe-Re)):(Te=Math.min(0,Re-Oe),Le=0);var Be=(0,m.useRef)(),Ae=(0,m.useState)(),_e=(0,d.Z)(Ae,2),He=_e[0],Ke=_e[1];function Fe(){Ke(Date.now())}function We(){window.clearTimeout(Be.current)}!function(e,t){var n=(0,m.useState)(),r=(0,d.Z)(n,2),o=r[0],i=r[1],a=(0,m.useState)(0),l=(0,d.Z)(a,2),c=l[0],s=l[1],u=(0,m.useState)(0),p=(0,d.Z)(u,2),f=p[0],g=p[1],h=(0,m.useState)(),v=(0,d.Z)(h,2),b=v[0],y=v[1],x=(0,m.useRef)(),w=(0,m.useRef)(),C=(0,m.useRef)(null);C.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(x.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var l=r-o.x,u=a-o.y;t(l,u);var d=Date.now();s(d),g(d-c),y({x:l,y:u})}},onTouchEnd:function(){if(o&&(i(null),y(null),b)){var e=b.x/f,n=b.y/f,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var l=e,c=n;x.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(x.current):t(20*(l*=N),20*(c*=N))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===w.current?n:r:i>a?(o=n,w.current="x"):(o=r,w.current="y"),t(-o,-o)&&e.preventDefault()}},m.useEffect((function(){function t(e){C.current.onTouchMove(e)}function n(e){C.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){C.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){C.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(Y,(function(e,t){function n(e,t){e((function(e){return De(e+t)}))}return!!Pe&&(J?n(re,e):n(le,t),We(),Fe(),!0)})),(0,m.useEffect)((function(){return We(),He&&(Be.current=window.setTimeout((function(){Ke(0)}),100)),We}),[He]);var Ve=function(e,t,n,r,o,i,a){var l,c,s,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(l="width",c=p?"right":"left",s=Math.abs(n)):(l="height",c="top",s=-n),(0,m.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;os+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||M)[c]=r?[0,0]:[a,r]}),[e,t,r,o,i,s,d,u.map((function(e){return e.key})).join("_"),p])}(Ze,Re,J?ne:ae,Oe,je,Me,(0,u.Z)((0,u.Z)({},e),{},{tabs:i})),Xe=(0,d.Z)(Ve,2),Ge=Xe[0],Ye=Xe[1],qe=(0,E.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Ze.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=ne;v?t.rightne+Re&&(n=t.right+t.width-Re):t.left<-ne?n=-t.left:t.left+t.width>-ne+Re&&(n=-(t.left+t.width-Re)),le(0),re(De(n))}else{var r=ae;t.top<-ae?r=-t.top:t.top+t.height>-ae+Re&&(r=-(t.top+t.height-Re)),re(0),le(De(r))}})),Ue={};"top"===C||"bottom"===C?Ue[v?"marginRight":"marginLeft"]=O:Ue.marginTop=O;var Qe=i.map((function(e,t){var n=e.key;return m.createElement(F,{id:f,prefixCls:o,key:n,tab:e,style:0===t?void 0:Ue,closable:e.closable,editable:x,active:n===h,renderWrapper:z,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){T(n,e)},onFocus:function(){qe(n),Fe(),Y.current&&(v||(Y.current.scrollLeft=0),Y.current.scrollTop=0)}})})),Je=function(){return Ie((function(){var e=new Map;return i.forEach((function(t){var n,r=t.key,o=null===(n=q.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(R(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))};(0,m.useEffect)((function(){Je()}),[i.map((function(e){return e.key})).join("_")]);var et=j((function(){var e=X(_),t=X(H),n=X(W);de([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=X(Q);ye(r);var o=X(U);Se(o);var i=X(q);ge([i[0]-r[0],i[1]-r[1]]),Je()})),tt=i.slice(0,Ge),nt=i.slice(Ye+1),rt=[].concat((0,S.Z)(tt),(0,S.Z)(nt)),ot=Ze.get(h),it=V({activeTabOffset:ot,horizontal:J,rtl:v,indicatorSize:A}).style;(0,m.useEffect)((function(){qe()}),[h,Te,Le,P(ot),P(Ze),J]),(0,m.useEffect)((function(){et()}),[v]);var at,lt,ct,st,ut=!!rt.length,dt="".concat(o,"-nav-wrap");return J?v?(lt=ne>0,at=ne!==Le):(at=ne<0,lt=ne!==Te):(ct=ae<0,st=ae!==Te),m.createElement($.Z,{onResize:et},m.createElement("div",{ref:(0,k.x1)(t,_),role:"tablist",className:l()("".concat(o,"-nav"),a),style:p,onKeyDown:function(){Fe()}},m.createElement(D,{ref:H,position:"left",extra:y,prefixCls:o}),m.createElement($.Z,{onResize:et},m.createElement("div",{className:l()(dt,(n={},(0,s.Z)(n,"".concat(dt,"-ping-left"),at),(0,s.Z)(n,"".concat(dt,"-ping-right"),lt),(0,s.Z)(n,"".concat(dt,"-ping-top"),ct),(0,s.Z)(n,"".concat(dt,"-ping-bottom"),st),n)),ref:Y},m.createElement($.Z,{onResize:et},m.createElement("div",{ref:q,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:He?"none":void 0}},Qe,m.createElement(L,{ref:Q,prefixCls:o,locale:w,editable:x,style:(0,u.Z)((0,u.Z)({},0===Qe.length?void 0:Ue),{},{visibility:ut?"hidden":null})}),m.createElement("div",{className:l()("".concat(o,"-ink-bar"),(0,s.Z)({},"".concat(o,"-ink-bar-animated"),g.inkBar)),style:it}))))),m.createElement(K,(0,c.Z)({},e,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:U,prefixCls:o,tabs:rt,className:!ut&&ze,tabMoving:!!He})),m.createElement(D,{ref:W,position:"right",extra:y,prefixCls:o})))}var q=m.forwardRef(Y),U=["renderTabBar"],Q=["label","key"];function J(e){var t=e.renderTabBar,n=(0,f.Z)(e,U),r=m.useContext(b).tabs;return t?t((0,u.Z)((0,u.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,f.Z)(e,Q);return m.createElement(x,(0,c.Z)({tab:t,key:n,tabKey:n},r))}))}),q):m.createElement(q,n)}n(48736);var ee=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],te=0;function ne(e,t){var n,r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,v=e.items,y=e.direction,x=e.activeKey,w=e.defaultActiveKey,S=e.editable,$=e.animated,E=e.tabPosition,k=void 0===E?"top":E,I=e.tabBarGutter,Z=e.tabBarStyle,N=e.tabBarExtraContent,O=e.locale,j=e.moreIcon,M=e.moreTransitionName,P=e.destroyInactiveTabPane,R=e.renderTabBar,z=e.onChange,T=e.onTabClick,L=e.onTabScroll,D=e.getPopupContainer,B=e.popupClassName,A=e.indicatorSize,_=(0,f.Z)(e,ee),H=m.useMemo((function(){return(v||[]).filter((function(e){return e&&"object"===(0,p.Z)(e)&&"key"in e}))}),[v]),K="rtl"===y,F=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,u.Z)({inkBar:!0},"object"===(0,p.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}($),W=(0,m.useState)(!1),V=(0,d.Z)(W,2),X=V[0],G=V[1];(0,m.useEffect)((function(){G((0,g.Z)())}),[]);var Y=(0,h.Z)((function(){var e;return null===(e=H[0])||void 0===e?void 0:e.key}),{value:x,defaultValue:w}),q=(0,d.Z)(Y,2),U=q[0],Q=q[1],ne=(0,m.useState)((function(){return H.findIndex((function(e){return e.key===U}))})),re=(0,d.Z)(ne,2),oe=re[0],ie=re[1];(0,m.useEffect)((function(){var e,t=H.findIndex((function(e){return e.key===U}));-1===t&&(t=Math.max(0,Math.min(oe,H.length-1)),Q(null===(e=H[t])||void 0===e?void 0:e.key));ie(t)}),[H.map((function(e){return e.key})).join("_"),U,oe]);var ae=(0,h.Z)(null,{value:r}),le=(0,d.Z)(ae,2),ce=le[0],se=le[1];(0,m.useEffect)((function(){r||(se("rc-tabs-".concat(te)),te+=1)}),[]);var ue={id:ce,activeKey:U,animated:F,tabPosition:k,rtl:K,mobile:X},de=(0,u.Z)((0,u.Z)({},ue),{},{editable:S,locale:O,moreIcon:j,moreTransitionName:M,tabBarGutter:I,onTabClick:function(e,t){null==T||T(e,t);var n=e!==U;Q(e),n&&(null==z||z(e))},onTabScroll:L,extra:N,style:Z,panes:null,getPopupContainer:D,popupClassName:B,indicatorSize:A});return m.createElement(b.Provider,{value:{tabs:H,prefixCls:i}},m.createElement("div",(0,c.Z)({ref:t,id:r,className:l()(i,"".concat(i,"-").concat(k),(n={},(0,s.Z)(n,"".concat(i,"-mobile"),X),(0,s.Z)(n,"".concat(i,"-editable"),S),(0,s.Z)(n,"".concat(i,"-rtl"),K),n),a)},_),m.createElement(J,(0,c.Z)({},de,{renderTabBar:R})),m.createElement(C,(0,c.Z)({destroyInactiveTabPane:P},ue,{animated:F}))))}var re=m.forwardRef(ne),oe=n(36355),ie=n(19716);var ae=()=>null,le=n(62892);const ce={motionAppear:!1,motionEnter:!0,motionLeave:!0};var se=n(11592),ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,me.oN)(e,"slide-up"),(0,me.oN)(e,"slide-down")]]};const he=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ve=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,de.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},de.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},be=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ye=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},xe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,de.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},we=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ce=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,de.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Se=(0,pe.Z)("Tabs",(e=>{const t=(0,fe.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[ye(t),we(t),be(t),ve(t),he(t),Ce(t),ge(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{type:t,className:n,rootClassName:a,size:c,onEdit:s,hideAdd:u,centered:d,addIcon:p,popupClassName:f,children:g,items:h,animated:v,style:b,indicatorSize:y}=e,x=$e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:w,moreIcon:C=m.createElement(o.Z,null)}=x,{direction:S,tabs:$,getPrefixCls:E,getPopupContainer:k}=m.useContext(oe.E_),I=E("tabs",w),[Z,N]=Se(I);let O;"editable-card"===t&&(O={onEdit:(e,t)=>{let{key:n,event:r}=t;null==s||s("add"===e?r:n,e)},removeIcon:m.createElement(r.Z,null),addIcon:p||m.createElement(i.Z,null),showAdd:!0!==u});const j=E(),M=function(e,t){return e||function(e){return e.filter((e=>e))}((0,se.Z)(t).map((e=>{if(m.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=ue(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(h,g),P=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},ce),{motionName:(0,le.m)(e,"switch")})),t}(I,v),R=(0,ie.Z)(c),z=Object.assign(Object.assign({},null==$?void 0:$.style),b);return Z(m.createElement(re,Object.assign({direction:S,getPopupContainer:k,moreTransitionName:`${j}-slide-up`},x,{items:M,className:l()({[`${I}-${R}`]:R,[`${I}-card`]:["card","editable-card"].includes(t),[`${I}-editable-card`]:"editable-card"===t,[`${I}-centered`]:d},null==$?void 0:$.className,n,a,N),popupClassName:l()(f,N),style:z,editable:O,moreIcon:C,prefixCls:I,animated:P,indicatorSize:null!=y?y:null==$?void 0:$.indicatorSize})))};Ee.TabPane=ae;var ke=Ee},33166:function(e,t,n){n.d(t,{i:function(){return r}});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(33166);function o(e,t){return r.i.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}},6848:function(e,t,n){n.d(t,{Z:function(){return Z}});var r=n(59301),o=n(92310),i=n.n(o),a=n(55477),l=n(18929),c=n(62892),s=n(79676),u=n(92343),d=n(36355),p=n(33234),f=n(88088),m=n(17313),g=n(29878),h=n(60293),v=n(45157),b=n(37613),y=n(83116);const x=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${s/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,h.qN)}},[`${t}-content`]:{position:"relative"}}),(0,v.Z)(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},(0,h.ZP)((0,b.TS)(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var w=(e,t)=>(0,y.Z)("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=(0,b.TS)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[x(a),(0,g._y)(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),C=n(36785);function S(e,t){const n=(0,C.o2)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var $=e=>{const{prefixCls:t,className:n,placement:o="top",title:l,color:c,overlayInnerStyle:s}=e,{getPrefixCls:u}=r.useContext(d.E_),p=u("tooltip",t),[f,m]=w(p,!0),g=S(p,c),h=g.arrowStyle,v=Object.assign(Object.assign({},s),g.overlayStyle),b=i()(m,p,`${p}-pure`,`${p}-placement-${o}`,n,g.className);return f(r.createElement("div",{className:b,style:h},r.createElement("div",{className:`${p}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:m,prefixCls:p,overlayInnerStyle:v}),l)))},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n={},r=Object.assign({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}})(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),l=Object.assign(Object.assign({},o),{pointerEvents:"none"}),c=(0,u.Tm)(e,{style:l,className:null});return r.createElement("span",{style:a,className:i()(e.props.className,`${t}-disabled-compatible-wrapper`)},c)}return e}const I=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:m,openClassName:g,getTooltipContainer:h,overlayClassName:v,color:b,overlayInnerStyle:y,children:x,afterOpenChange:C,afterVisibleChange:$,destroyTooltipOnHide:I,arrow:Z=!0,title:N,overlay:O,builtinPlacements:j,arrowPointAtCenter:M=!1,autoAdjustOverflow:P=!0}=e,R=!!Z,[,z]=(0,f.Z)(),{getPopupContainer:T,getPrefixCls:L,direction:D}=r.useContext(d.E_),B=r.useRef(null),A=()=>{var e;null===(e=B.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>({forceAlign:A,forcePopupAlign:()=>{A()}})));const[_,H]=(0,l.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),K=!N&&!O&&0!==N,F=r.useMemo((()=>{var e,t;let n=M;return"object"==typeof Z&&(n=null!==(t=null!==(e=Z.pointAtCenter)&&void 0!==e?e:Z.arrowPointAtCenter)&&void 0!==t?t:M),j||(0,s.Z)({arrowPointAtCenter:n,autoAdjustOverflow:P,arrowWidth:R?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})}),[M,Z,j,z]),W=r.useMemo((()=>0===N?N:O||N||""),[O,N]),V=r.createElement(p.BR,null,"function"==typeof W?W():W),{getPopupContainer:X,placement:G="top",mouseEnterDelay:Y=.1,mouseLeaveDelay:q=.1,overlayStyle:U,rootClassName:Q}=e,J=E(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=L("tooltip",m),te=L(),ne=e["data-popover-inject"];let re=_;"open"in e||"visible"in e||!K||(re=!1);const oe=k((0,u.l$)(x)&&!(0,u.M2)(x)?x:r.createElement("span",null,x),ee),ie=oe.props,ae=ie.className&&"string"!=typeof ie.className?ie.className:i()(ie.className,g||`${ee}-open`),[le,ce]=w(ee,!ne),se=S(ee,b),ue=se.arrowStyle,de=Object.assign(Object.assign({},y),se.overlayStyle),pe=i()(v,{[`${ee}-rtl`]:"rtl"===D},se.className,Q,ce);return le(r.createElement(a.Z,Object.assign({},J,{showArrow:R,placement:G,mouseEnterDelay:Y,mouseLeaveDelay:q,prefixCls:ee,overlayClassName:pe,overlayStyle:Object.assign(Object.assign({},ue),U),getTooltipContainer:X||h||T,ref:B,builtinPlacements:F,overlay:V,visible:re,onVisibleChange:t=>{var n,r;H(!K&&t),K||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=C?C:$,overlayInnerStyle:de,arrowContent:r.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:(0,c.m)(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!I}),re?(0,u.Tm)(oe,{className:ae}):oe))}));I._InternalPanelDoNotUseOrYouWillBeFired=$;var Z=I},177:function(e,t,n){n.d(t,{Z:function(){return Xe}});var r=n(14809),o=n(4635),i=n(93664),a=n(20439),l=n(95190),c=n(99153),s=n(84851),u=n(13028),d=n(19257),p=n(54941),f=n(92310),m=n.n(f),g=n(10228),h=n(26112),v=n(48736),b=n(59301),y=n(39378);function x(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var w=n(50298),C=n(62646),S=n(34280),$=n(65283),E=n(77900),k=n(39417);var I=n(71430),Z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],N=function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,s=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,p=(0,C.Z)(e,Z),f=b.useState(!0),g=(0,w.Z)(f,2),h=g[0],v=g[1],$=b.useContext(y.k).prefixCls,N=a&&"hide"!==l;(0,S.Z)((function(){a&&N!==h&&v(N)}),[a]);var O=b.useRef(!1),j=function(){a&&!O.current&&(O.current=!0,s())};!function(e,t){var n=b.useState(!1),r=(0,w.Z)(n,2),o=r[0],i=r[1];b.useLayoutEffect((function(){if(o)return e(),function(){t()}}),[o]),b.useLayoutEffect((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&c()}),j);return a?b.createElement(E.ZP,(0,r.Z)({ref:t,visible:h},i,{motionAppear:"show"===l,onVisibleChanged:function(e){N===e&&j()}}),(function(e,t){var n=e.className,o=e.style;return b.createElement("div",{ref:t,className:m()("".concat($,"-treenode-motion"),n),style:o},a.map((function(e){var t=(0,r.Z)({},(x(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=(0,I.H8)(o,d);return b.createElement(k.Z,(0,r.Z)({},t,l,{title:n,active:u,data:e.data,key:o,isStart:i,isEnd:a}))})))})):b.createElement(k.Z,(0,r.Z)({domRef:t,className:n,style:o},p,{active:u}))};N.displayName="MotionTreeNode";var O=b.forwardRef(N);function j(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var M=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],P={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},z="RC_TREE_MOTION_".concat(Math.random()),T={key:z},L={key:z,level:0,index:0,pos:"0",node:T,nodes:[T]},D={parent:null,children:[],pos:L.pos,data:T,title:null,key:z,isStart:[],isEnd:[]};function B(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function A(e){var t=e.key,n=e.pos;return(0,I.km)(t,n)}var _=b.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,p=e.disabled,f=e.dragging,m=e.dragOverNodeKey,g=e.dropPosition,h=e.motion,v=e.height,y=e.itemHeight,E=e.virtual,k=e.focusable,Z=e.activeItem,N=e.focused,T=e.tabIndex,L=e.onKeyDown,_=e.onFocus,H=e.onBlur,K=e.onActiveChange,F=e.onListChangeStart,W=e.onListChangeEnd,V=(0,C.Z)(e,M),X=b.useRef(null),G=b.useRef(null);b.useImperativeHandle(t,(function(){return{scrollTo:function(e){X.current.scrollTo(e)},getIndentWidth:function(){return G.current.offsetWidth}}}));var Y=b.useState(i),q=(0,w.Z)(Y,2),U=q[0],Q=q[1],J=b.useState(o),ee=(0,w.Z)(J,2),te=ee[0],ne=ee[1],re=b.useState(o),oe=(0,w.Z)(re,2),ie=oe[0],ae=oe[1],le=b.useState([]),ce=(0,w.Z)(le,2),se=ce[0],ue=ce[1],de=b.useState(null),pe=(0,w.Z)(de,2),fe=pe[0],me=pe[1],ge=b.useRef(o);function he(){var e=ge.current;ne(e),ae(e),ue([]),me(null),W()}ge.current=o,(0,S.Z)((function(){Q(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}(Z)),b.createElement("div",null,b.createElement("input",{style:P,disabled:!1===k||p,tabIndex:!1!==k?T:null,onKeyDown:L,onFocus:_,onBlur:H,value:"",onChange:R,"aria-label":"for screen reader"})),b.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},b.createElement("div",{className:"".concat(n,"-indent")},b.createElement("div",{ref:G,className:"".concat(n,"-indent-unit")}))),b.createElement($.Z,(0,r.Z)({},V,{data:ve,itemKey:A,height:v,fullHeight:!1,virtual:E,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:X,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return A(e)===z}))&&he()}}),(function(e){var t=e.pos,n=(0,r.Z)({},(x(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=(0,I.km)(i,t);delete n.key,delete n.children;var s=(0,I.H8)(c,be);return b.createElement(O,(0,r.Z)({},n,s,{title:o,active:!!Z&&i===Z.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:h,motionNodes:i===z?se:null,motionType:fe,onMotionStart:F,onMotionEnd:he,treeNodeRequiredProps:be,onMouseMove:function(){K(null)}}))})))}));_.displayName="NodeList";var H=_,K=n(35654),F=n(90782),W=n(67841),V=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i2&&void 0!==arguments[2]&&arguments[2],i=e.state,l=i.dragChildrenKeys,c=i.dropPosition,s=i.dropTargetKey,u=i.dropTargetPos,d=i.dropAllowed;if(d){var p=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var f=(0,a.Z)((0,a.Z)({},(0,I.H8)(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:(0,W.Z)(e.state.keyEntities,s).node}),m=-1!==l.indexOf(s);(0,v.ZP)(!m,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var g=(0,K.yx)(u),h={event:t,node:(0,I.F)(f),dragNode:e.dragNode?(0,I.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(l),dropToGap:0!==c,dropPosition:c+Number(g[g.length-1])};o||null==p||p(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,l=n.expanded,c=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter((function(e){return e.key===c}))[0],u=(0,I.F)((0,a.Z)((0,a.Z)({},(0,I.H8)(c,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(l?(0,K._5)(o,c):(0,K.L0)(o,c)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],p=!u,f=(r=p?s?(0,K.L0)(r,d):[d]:(0,K._5)(r,d)).map((function(e){var t=(0,W.Z)(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,c=i.checkedKeys,s=i.halfCheckedKeys,u=e.props,d=u.checkStrictly,p=u.onCheck,f=n.key,m={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var g=r?(0,K.L0)(c,f):(0,K._5)(c,f);o={checked:g,halfChecked:(0,K._5)(s,f)},m.checkedNodes=g.map((function(e){return(0,W.Z)(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:g})}else{var h=(0,F.S)([].concat((0,l.Z)(c),[f]),!0,a),v=h.checkedKeys,b=h.halfCheckedKeys;if(!r){var y=new Set(v);y.delete(f);var x=(0,F.S)(Array.from(y),{checked:!1,halfCheckedKeys:b},a);v=x.checkedKeys,b=x.halfCheckedKeys}o=v,m.checkedNodes=[],m.checkedNodesPositions=[],m.halfCheckedKeys=b,v.forEach((function(e){var t=(0,W.Z)(a,e);if(t){var n=t.node,r=t.pos;m.checkedNodes.push(n),m.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:b})}null==p||p(o,m)},e.onNodeLoad=function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,p=u.onLoad;return d&&-1===l.indexOf(n)&&-1===s.indexOf(n)?(d(t).then((function(){var o=e.state.loadedKeys,i=(0,K.L0)(o,n);null==p||p(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState((function(e){return{loadingKeys:(0,K._5)(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,K._5)(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;(0,v.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,K.L0)(i,n)}),r()}o(t)})),{loadingKeys:(0,K.L0)(s,n)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,l={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,l[n]=t[n])})),!o||n&&!i||e.setState((0,a.Z)((0,a.Z)({},l),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,a=n.focused,l=n.flattenNodes,c=n.keyEntities,s=n.draggingNodeKey,u=n.activeKey,d=n.dropLevelOffset,p=n.dropContainerKey,f=n.dropTargetKey,g=n.dropPosition,v=n.dragOverNodeKey,x=n.indent,w=this.props,C=w.prefixCls,S=w.className,$=w.style,E=w.showLine,k=w.focusable,I=w.tabIndex,Z=void 0===I?0:I,N=w.selectable,O=w.showIcon,j=w.icon,M=w.switcherIcon,P=w.draggable,R=w.checkable,z=w.checkStrictly,T=w.disabled,L=w.motion,D=w.loadData,B=w.filterTreeNode,A=w.height,_=w.itemHeight,K=w.virtual,F=w.titleRender,W=w.dropIndicatorRender,V=w.onContextMenu,X=w.onScroll,G=w.direction,Y=w.rootClassName,q=w.rootStyle,U=(0,h.Z)(this.props,{aria:!0,data:!0});return P&&(t="object"===(0,i.Z)(P)?P:"function"==typeof P?{nodeDraggable:P}:{}),b.createElement(y.k.Provider,{value:{prefixCls:C,selectable:N,showIcon:O,icon:j,switcherIcon:M,draggable:t,draggingNodeKey:s,checkable:R,checkStrictly:z,disabled:T,keyEntities:c,dropLevelOffset:d,dropContainerKey:p,dropTargetKey:f,dropPosition:g,dragOverNodeKey:v,indent:x,direction:G,dropIndicatorRender:W,loadData:D,filterTreeNode:B,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},b.createElement("div",{role:"tree",className:m()(C,S,Y,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),E),(0,o.Z)(e,"".concat(C,"-focused"),a),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==u),e)),style:q},b.createElement(H,(0,r.Z)({ref:this.listRef,prefixCls:C,style:$,data:l,disabled:T,selectable:N,checkable:!!R,motion:L,dragging:null!==s,height:A,itemHeight:_,virtual:K,focusable:k,focused:a,tabIndex:Z,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:X},this.getTreeNodeRequiredProps(),U))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function l(t){return!r&&t in e||r&&r[t]!==e[t]}var c=t.fieldNames;if(l("fieldNames")&&(c=(0,I.w$)(e.fieldNames),i.fieldNames=c),l("treeData")?n=e.treeData:l("children")&&((0,v.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,I.zn)(e.children)),n){i.treeData=n;var s=(0,I.I8)(n,{fieldNames:c});i.keyEntities=(0,a.Z)((0,o.Z)({},z,L),s.keyEntities)}var u,d=i.keyEntities||t.keyEntities;if(l("expandedKeys")||r&&l("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,K.r7)(e.expandedKeys,d):e.expandedKeys;else if(!r&&e.defaultExpandAll){var p=(0,a.Z)({},d);delete p[z],i.expandedKeys=Object.keys(p).map((function(e){return p[e].key}))}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,K.r7)(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var f=(0,I.oH)(n||t.treeData,i.expandedKeys||t.expandedKeys,c);i.flattenNodes=f}if((e.selectable&&(l("selectedKeys")?i.selectedKeys=(0,K.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=(0,K.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(l("checkedKeys")?u=(0,K.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=(0,K.E6)(e.defaultCheckedKeys)||{}:n&&(u=(0,K.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var m=u,g=m.checkedKeys,h=void 0===g?[]:g,b=m.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var x=(0,F.S)(h,!0,d);h=x.checkedKeys,y=x.halfCheckedKeys}i.checkedKeys=h,i.halfCheckedKeys=y}return l("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(b.Component);V.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return b.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},V.TreeNode=k.Z;var X=V,G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Y=n(7657),q=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:G}))};var U=b.forwardRef(q),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},J=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Q}))};var ee=b.forwardRef(J),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ne=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:te}))};var re=b.forwardRef(ne),oe=n(36355),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ae=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:ie}))};var le=b.forwardRef(ae),ce=n(62892),se=n(66604),ue=n(98447),de=n(17313),pe=n(8378),fe=n(37613),me=n(83116);const ge=new se.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),he=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ve=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),be=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,de.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,de.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:ge,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,de.oN)(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},he(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${i}px`,userSelect:"none"},ve(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},ye=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},xe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,i=(0,fe.TS)(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[be(e,i),ye(i)]};var we=(0,me.Z)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,ue.C2)(`${n}-checkbox`,e)},xe(n,e),(0,pe.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function Ce(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a="ltr"===i?"left":"right",l={[a]:-n*o+4,["ltr"===i?"right":"left"]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+4}return b.createElement("div",{style:l,className:`${r}-drop-indicator`})}var Se={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},$e=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Se}))};var Ee=b.forwardRef($e),ke=n(58617),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ze=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Ie}))};var Ne=b.forwardRef(Ze),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},je=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Oe}))};var Me=b.forwardRef(je),Pe=n(92343);var Re=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return b.createElement(ke.Z,{className:`${t}-switcher-loading-icon`});let c;if(o&&"object"==typeof o&&(c=o.showLeafIcon),i){if(!o)return null;if("boolean"!=typeof c&&c){const e="function"==typeof c?c(r):c,n=`${t}-switcher-line-custom-icon`;return(0,Pe.l$)(e)?(0,Pe.Tm)(e,{className:m()(e.props.className||"",n)}):e}return c?b.createElement(U,{className:`${t}-switcher-line-icon`}):b.createElement("span",{className:`${t}-switcher-leaf-line`})}const s=`${t}-switcher-icon`,u="function"==typeof n?n(r):n;return(0,Pe.l$)(u)?(0,Pe.Tm)(u,{className:m()(u.props.className||"",s)}):void 0!==u?u:o?a?b.createElement(Ne,{className:`${t}-switcher-line-icon`}):b.createElement(Me,{className:`${t}-switcher-line-icon`}):b.createElement(Ee,{className:s})};const ze=b.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,virtual:o,tree:i}=b.useContext(oe.E_),{prefixCls:a,className:l,showIcon:c=!1,showLine:s,switcherIcon:u,blockNode:d=!1,children:p,checkable:f=!1,selectable:g=!0,draggable:h,motion:v,style:y}=e,x=n("tree",a),w=n(),C=null!=v?v:Object.assign(Object.assign({},(0,ce.Z)(w)),{motionAppear:!1}),S=Object.assign(Object.assign({},e),{checkable:f,selectable:g,showIcon:c,motion:C,blockNode:d,showLine:Boolean(s),dropIndicatorRender:Ce}),[$,E]=we(x),k=b.useMemo((()=>{if(!h)return!1;let e={};switch(typeof h){case"function":e.nodeDraggable=h;break;case"object":e=Object.assign({},h)}return!1!==e.icon&&(e.icon=e.icon||b.createElement(le,null)),e}),[h]);return $(b.createElement(X,Object.assign({itemHeight:20,ref:t,virtual:o},S,{style:Object.assign(Object.assign({},null==i?void 0:i.style),y),prefixCls:x,className:m()({[`${x}-icon-hide`]:!c,[`${x}-block-node`]:d,[`${x}-unselectable`]:!g,[`${x}-rtl`]:"rtl"===r},null==i?void 0:i.className,l,E),direction:r,checkable:f?b.createElement("span",{className:`${x}-checkbox-inner`}):f,selectable:g,switcherIcon:e=>b.createElement(Re,{prefixCls:x,switcherIcon:u,treeNodeProps:e,showLine:s}),draggable:k}),p))}));var Te,Le=ze;function De(e,t){e.forEach((function(e){const{key:n,children:r}=e;!1!==t(n,e)&&De(r||[],t)}))}function Be(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o}=e;const i=[];let a=Te.None;if(r&&r===o)return[r];if(!r||!o)return[];return De(t,(e=>{if(a===Te.End)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),a===Te.None)a=Te.Start;else if(a===Te.Start)return a=Te.End,!1}else a===Te.Start&&i.push(e);return n.includes(e)})),i}function Ae(e,t){const n=(0,l.Z)(t),r=[];return De(e,((e,t)=>{const o=n.indexOf(e);return-1!==o&&(r.push(t),n.splice(o,1)),!!n.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(Te||(Te={}));var _e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=_e(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=b.useRef(),c=b.useRef(),[s,u]=b.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,p]=b.useState((()=>(()=>{const{keyEntities:e}=(0,I.I8)(Ke(i));let t;return t=n?Object.keys(e):r?(0,K.r7)(i.expandedKeys||o||[],e):i.expandedKeys||o,t})()));b.useEffect((()=>{"selectedKeys"in i&&u(i.selectedKeys)}),[i.selectedKeys]),b.useEffect((()=>{"expandedKeys"in i&&p(i.expandedKeys)}),[i.expandedKeys]);const{getPrefixCls:f,direction:g}=b.useContext(oe.E_),{prefixCls:h,className:v,showIcon:y=!0,expandAction:x="click"}=i,w=_e(i,["prefixCls","className","showIcon","expandAction"]),C=f("tree",h),S=m()(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===g},v);return b.createElement(Le,Object.assign({icon:He,ref:t,blockNode:!0},w,{showIcon:y,expandAction:x,prefixCls:C,className:S,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r}=i,{node:o,nativeEvent:s}=t,{key:p=""}=o,f=Ke(i),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),h=null==s?void 0:s.shiftKey;let v;r&&g?(v=e,a.current=p,c.current=v,m.selectedNodes=Ae(f,v)):r&&h?(v=Array.from(new Set([].concat((0,l.Z)(c.current||[]),(0,l.Z)(Be({treeData:f,expandedKeys:d,startKey:p,endKey:a.current}))))),m.selectedNodes=Ae(f,v)):(v=[p],a.current=p,c.current=v,m.selectedNodes=Ae(f,v)),null===(n=i.onSelect)||void 0===n||n.call(i,v,m),"selectedKeys"in i||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||p(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))};var We=b.forwardRef(Fe);const Ve=Le;Ve.DirectoryTree=We,Ve.TreeNode=k.Z;var Xe=Ve},5630:function(e,t,n){var r=n(14809),o=n(20439),i=n(4635),a=n(50298),l=n(62646),c=n(92310),s=n.n(c),u=n(18929),d=n(59301),p=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f=(0,d.forwardRef)((function(e,t){var n,c=e.prefixCls,f=void 0===c?"rc-checkbox":c,m=e.className,g=e.style,h=e.checked,v=e.disabled,b=e.defaultChecked,y=void 0!==b&&b,x=e.type,w=void 0===x?"checkbox":x,C=e.title,S=e.onChange,$=(0,l.Z)(e,p),E=(0,d.useRef)(null),k=(0,u.Z)(y,{value:h}),I=(0,a.Z)(k,2),Z=I[0],N=I[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=E.current)||void 0===e||e.blur()},input:E.current}}));var O=s()(f,m,(n={},(0,i.Z)(n,"".concat(f,"-checked"),Z),(0,i.Z)(n,"".concat(f,"-disabled"),v),n));return d.createElement("span",{className:O,title:C,style:g},d.createElement("input",(0,r.Z)({},$,{className:"".concat(f,"-input"),ref:E,onChange:function(t){v||("checked"in e||N(t.target.checked),null==S||S({target:(0,o.Z)((0,o.Z)({},e),{},{type:w,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:v,checked:!!Z,type:w})),d.createElement("span",{className:"".concat(f,"-inner")}))}));t.Z=f},31561:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(14809),o=n(4635),i=n(50298),a=n(62646),l=n(35593),c=n(92310),s=n.n(c),u=n(8654),d=n(59301),p=n(10228),f=n(16089),m=p.Z.ESC,g=p.Z.TAB;var h=(0,d.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,d.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,null==i?void 0:i.ref);return d.createElement(d.Fragment,null,r&&d.createElement("div",{className:"".concat(o,"-arrow")}),d.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))})),v={adjustX:1,adjustY:1},b=[0,0],y={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:b},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:b},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:b},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:b},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:b}},x=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,c=e.arrow,p=void 0!==c&&c,v=e.prefixCls,b=void 0===v?"rc-dropdown":v,w=e.transitionName,C=e.animation,S=e.align,$=e.placement,E=void 0===$?"bottomLeft":$,k=e.placements,I=void 0===k?y:k,Z=e.getPopupContainer,N=e.showAction,O=e.hideAction,j=e.overlayClassName,M=e.overlayStyle,P=e.visible,R=e.trigger,z=void 0===R?["hover"]:R,T=e.autoFocus,L=e.overlay,D=e.children,B=e.onVisibleChange,A=(0,a.Z)(e,x),_=d.useState(),H=(0,i.Z)(_,2),K=H[0],F=H[1],W="visible"in e?P:K,V=d.useRef(null),X=d.useRef(null),G=d.useRef(null);d.useImperativeHandle(t,(function(){return V.current}));var Y=function(e){F(e),null==B||B(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case m:l();break;case g:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};d.useEffect((function(){return t?(window.addEventListener("keydown",s),o&&(0,f.Z)(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:W,triggerRef:G,onVisibleChange:Y,autoFocus:T,overlayRef:X});var q,U,Q,J=function(){return d.createElement(h,{ref:X,overlay:L,prefixCls:b,arrow:p})},ee=d.cloneElement(D,{className:s()(null===(n=D.props)||void 0===n?void 0:n.className,W&&(q=e.openClassName,void 0!==q?q:"".concat(b,"-open"))),ref:(0,u.Yr)(D)?(0,u.sQ)(G,D.ref):void 0}),te=O;return te||-1===z.indexOf("contextMenu")||(te=["click"]),d.createElement(l.Z,(0,r.Z)({builtinPlacements:I},A,{prefixCls:b,ref:V,popupClassName:s()(j,(0,o.Z)({},"".concat(b,"-show-arrow"),p)),popupStyle:M,action:z,showAction:N,hideAction:te,popupPlacement:E,popupAlign:S,popupTransitionName:w,popupAnimation:C,popupVisible:W,stretch:(U=e.minOverlayWidthMatchTrigger,Q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?U:!Q)?"minWidth":""),popup:"function"==typeof L?J:J(),onPopupVisibleChange:Y,onPopupClick:function(t){var n=e.onOverlayClick;F(!1),n&&n(t)},getPopupContainer:Z}),ee)}var C=d.forwardRef(w)},93681:function(e,t,n){n.d(t,{Q:function(){return d},Z:function(){return b}});var r=n(14809),o=n(20439),i=n(4635),a=n(93664),l=n(92310),c=n.n(l),s=n(59301),u=n(5643),d=function(e){var t,n,l=e.inputElement,d=e.prefixCls,p=e.prefix,f=e.suffix,m=e.addonBefore,g=e.addonAfter,h=e.className,v=e.style,b=e.disabled,y=e.readOnly,x=e.focused,w=e.triggerFocus,C=e.allowClear,S=e.value,$=e.handleReset,E=e.hidden,k=e.classes,I=e.classNames,Z=e.dataAttrs,N=e.styles,O=e.components,j=(null==O?void 0:O.affixWrapper)||"span",M=(null==O?void 0:O.groupWrapper)||"span",P=(null==O?void 0:O.wrapper)||"span",R=(null==O?void 0:O.groupAddon)||"span",z=(0,s.useRef)(null),T=(0,s.cloneElement)(l,{value:S,hidden:E,className:c()(null===(t=l.props)||void 0===t?void 0:t.className,!(0,u.X3)(e)&&!(0,u.He)(e)&&h)||null,style:(0,o.Z)((0,o.Z)({},null===(n=l.props)||void 0===n?void 0:n.style),(0,u.X3)(e)||(0,u.He)(e)?{}:v)});if((0,u.X3)(e)){var L,D="".concat(d,"-affix-wrapper"),B=c()(D,(L={},(0,i.Z)(L,"".concat(D,"-disabled"),b),(0,i.Z)(L,"".concat(D,"-focused"),x),(0,i.Z)(L,"".concat(D,"-readonly"),y),(0,i.Z)(L,"".concat(D,"-input-with-clear-btn"),f&&C&&S),L),!(0,u.He)(e)&&h,null==k?void 0:k.affixWrapper,null==I?void 0:I.affixWrapper),A=(f||C)&&s.createElement("span",{className:c()("".concat(d,"-suffix"),null==I?void 0:I.suffix),style:null==N?void 0:N.suffix},function(){var e;if(!C)return null;var t=!b&&!y&&S,n="".concat(d,"-clear-icon"),r="object"===(0,a.Z)(C)&&null!=C&&C.clearIcon?C.clearIcon:"✖";return s.createElement("span",{onClick:$,onMouseDown:function(e){return e.preventDefault()},className:c()(n,(e={},(0,i.Z)(e,"".concat(n,"-hidden"),!t),(0,i.Z)(e,"".concat(n,"-has-suffix"),!!f),e)),role:"button",tabIndex:-1},r)}(),f);T=s.createElement(j,(0,r.Z)({className:B,style:(0,o.Z)((0,o.Z)({},(0,u.He)(e)?void 0:v),null==N?void 0:N.affixWrapper),hidden:!(0,u.He)(e)&&E,onClick:function(e){var t;null!==(t=z.current)&&void 0!==t&&t.contains(e.target)&&(null==w||w())}},null==Z?void 0:Z.affixWrapper,{ref:z}),p&&s.createElement("span",{className:c()("".concat(d,"-prefix"),null==I?void 0:I.prefix),style:null==N?void 0:N.prefix},p),(0,s.cloneElement)(l,{value:S,hidden:null}),A)}if((0,u.He)(e)){var _="".concat(d,"-group"),H="".concat(_,"-addon"),K=c()("".concat(d,"-wrapper"),_,null==k?void 0:k.wrapper),F=c()("".concat(d,"-group-wrapper"),h,null==k?void 0:k.group);return s.createElement(M,{className:F,style:v,hidden:E},s.createElement(P,{className:K},m&&s.createElement(R,{className:H},m),(0,s.cloneElement)(T,{hidden:null}),g&&s.createElement(R,{className:H},g)))}return T},p=n(95190),f=n(50298),m=n(62646),g=n(18929),h=n(2738),v=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],b=(0,s.forwardRef)((function(e,t){var n=e.autoComplete,l=e.onChange,b=e.onFocus,y=e.onBlur,x=e.onPressEnter,w=e.onKeyDown,C=e.prefixCls,S=void 0===C?"rc-input":C,$=e.disabled,E=e.htmlSize,k=e.className,I=e.maxLength,Z=e.suffix,N=e.showCount,O=e.type,j=void 0===O?"text":O,M=e.classes,P=e.classNames,R=e.styles,z=(0,m.Z)(e,v),T=(0,g.Z)(e.defaultValue,{value:e.value}),L=(0,f.Z)(T,2),D=L[0],B=L[1],A=(0,s.useState)(!1),_=(0,f.Z)(A,2),H=_[0],K=_[1],F=(0,s.useRef)(null),W=function(e){F.current&&(0,u.nH)(F.current,e)};(0,s.useImperativeHandle)(t,(function(){return{focus:W,blur:function(){var e;null===(e=F.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=F.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=F.current)||void 0===e||e.select()},input:F.current}})),(0,s.useEffect)((function(){K((function(e){return(!e||!$)&&e}))}),[$]);var V,X=function(t){void 0===e.value&&B(t.target.value),F.current&&(0,u.rJ)(F.current,t,l)},G=function(e){x&&"Enter"===e.key&&x(e),null==w||w(e)},Y=function(e){K(!0),null==b||b(e)},q=function(e){K(!1),null==y||y(e)};return s.createElement(d,(0,r.Z)({},z,{prefixCls:S,className:k,inputElement:(V=(0,h.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),s.createElement("input",(0,r.Z)({autoComplete:n},V,{onChange:X,onFocus:Y,onBlur:q,onKeyDown:G,className:c()(S,(0,i.Z)({},"".concat(S,"-disabled"),$),null==P?void 0:P.input),style:null==R?void 0:R.input,ref:F,size:E,type:j}))),handleReset:function(e){B(""),W(),F.current&&(0,u.rJ)(F.current,e,l)},value:(0,u.D7)(D),focused:H,triggerFocus:W,suffix:function(){var e=Number(I)>0;if(Z||N){var t=(0,u.D7)(D),n=(0,p.Z)(t).length,r="object"===(0,a.Z)(N)?N.formatter({value:t,count:n,maxLength:I}):"".concat(n).concat(e?" / ".concat(I):"");return s.createElement(s.Fragment,null,!!N&&s.createElement("span",{className:c()("".concat(S,"-show-count-suffix"),(0,i.Z)({},"".concat(S,"-show-count-has-suffix"),!!Z),null==P?void 0:P.count),style:(0,o.Z)({},null==R?void 0:R.count)},r),Z)}return null}(),disabled:$,classes:M,classNames:P,styles:R}))}))},5643:function(e,t,n){function r(e){return!(!e.addonBefore&&!e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function i(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function a(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}function l(e){return null==e?"":String(e)}n.d(t,{D7:function(){return l},He:function(){return r},X3:function(){return o},nH:function(){return a},rJ:function(){return i}})},15285:function(e,t,n){n.d(t,{iz:function(){return Fe},ck:function(){return ye},BW:function(){return Ke},sN:function(){return ye},Wd:function(){return De},ZP:function(){return Qe},Xl:function(){return Z}});var r=n(14809),o=n(4635),i=n(20439),a=n(95190),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(11780),p=n(18929),f=n(13697),m=n(48736),g=n(59301),h=n(4676),v=g.createContext(null);function b(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return b(g.useContext(v),e)}var x=n(80547),w=["children","locked"],C=g.createContext(null);function S(e){var t=e.children,n=e.locked,r=(0,c.Z)(e,w),o=g.useContext(C),a=(0,x.Z)((function(){return e=o,t=r,n=(0,i.Z)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&(0,f.Z)(e[1],t[1],!0))}));return g.createElement(C.Provider,{value:a},t)}var $=[],E=g.createContext(null);function k(){return g.useContext(E)}var I=g.createContext($);function Z(e){var t=g.useContext(I);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var N=g.createContext(null),O=g.createContext({}),j=n(29194);function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,j.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return M(e,t)}));return M(e,t)&&n.unshift(e),n}var R=n(10228),z=n(16089),T=R.Z.LEFT,L=R.Z.RIGHT,D=R.Z.UP,B=R.Z.DOWN,A=R.Z.ENTER,_=R.Z.ESC,H=R.Z.HOME,K=R.Z.END,F=[D,B,T,L];function W(e,t){return P(e,!0).filter((function(e){return t.has(e)}))}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=W(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var X=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(b(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function G(e,t,n,r,i,a,l,c,s,u){var d=g.useRef(),p=g.useRef();p.current=t;var f=function(){z.Z.cancel(d.current)};return g.useEffect((function(){return function(){f()}}),[]),function(m){var g=m.which;if([].concat(F,[A,_,H,K]).includes(g)){var h=a(),v=X(h,r),b=v,y=b.elements,x=b.key2element,w=b.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(x.get(t),y),S=w.get(C),$=function(e,t,n,r){var i,a,l,c,s="prev",u="next",d="children",p="parent";if("inline"===e&&r===A)return{inlineTrigger:!0};var f=(i={},(0,o.Z)(i,D,s),(0,o.Z)(i,B,u),i),m=(a={},(0,o.Z)(a,T,n?u:s),(0,o.Z)(a,L,n?s:u),(0,o.Z)(a,B,d),(0,o.Z)(a,A,d),a),g=(l={},(0,o.Z)(l,D,s),(0,o.Z)(l,B,u),(0,o.Z)(l,A,d),(0,o.Z)(l,_,p),(0,o.Z)(l,T,n?d:p),(0,o.Z)(l,L,n?p:d),l);switch(null===(c={inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,g);if(!$&&g!==H&&g!==K)return;(F.includes(g)||[H,K].includes(g))&&m.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),f(),d.current=(0,z.Z)((function(){p.current===r&&t.focus()}))}};if([H,K].includes(g)||$.sibling||!C){var k,I,Z=W(k=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,y);I=g===H?Z[0]:g===K?Z[Z.length-1]:V(k,y,C,$.offset),E(I)}else if($.inlineTrigger)s(S);else if($.offset>0)s(S,!0),f(),d.current=(0,z.Z)((function(){v=X(h,r);var e=C.getAttribute("aria-controls"),t=V(document.getElementById(e),v.elements);E(t)}),5);else if($.offset<0){var N=l(S,!0),O=N[N.length-2],j=x.get(O);s(O,!1),E(j)}}null==u||u(m)}}var Y="__RC_UTIL_PATH_SPLIT__",q=function(e){return e.join(Y)},U="rc-menu-more";function Q(){var e=g.useState({}),t=(0,l.Z)(e,2)[1],n=(0,g.useRef)(new Map),r=(0,g.useRef)(new Map),o=g.useState([]),i=(0,l.Z)(o,2),c=i[0],s=i[1],u=(0,g.useRef)(0),d=(0,g.useRef)(!1),p=(0,g.useCallback)((function(e,o){var i=q(o);r.current.set(i,e),n.current.set(e,i),u.current+=1;var a,l=u.current;a=function(){l===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,g.useCallback)((function(e,t){var o=q(t);r.current.delete(o),n.current.delete(e)}),[]),m=(0,g.useCallback)((function(e){s(e)}),[]),h=(0,g.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Y);return t&&c.includes(o[0])&&o.unshift(U),o}),[c]),v=(0,g.useCallback)((function(e,t){return e.some((function(e){return h(e,!0).includes(t)}))}),[h]),b=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Y),o=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return g.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:f,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return c.length&&e.push(U),e},getSubPathKeys:b}}function J(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&($.motionAppear=!1);var E=$.onVisibleChanged;return $.onVisibleChanged=function(e){return h.current||e||x(!0),null==E?void 0:E(e)},y?null:g.createElement(S,{mode:c,locked:!h.current},g.createElement(Pe.ZP,(0,r.Z)({visible:w},$,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,r=e.style;return g.createElement(Se,{id:t,className:n,style:r},a)})))}var ze=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Te=["active"],Le=function(e){var t,n=e.style,a=e.className,s=e.title,p=e.eventKey,f=(e.warnKey,e.disabled),m=e.internalPopupClose,h=e.children,v=e.itemIcon,b=e.expandIcon,x=e.popupClassName,w=e.popupOffset,$=e.popupStyle,E=e.onClick,k=e.onMouseEnter,I=e.onMouseLeave,j=e.onTitleClick,M=e.onTitleMouseEnter,P=e.onTitleMouseLeave,R=(0,c.Z)(e,ze),z=y(p),T=g.useContext(C),L=T.prefixCls,D=T.mode,B=T.openKeys,A=T.disabled,_=T.overflowDisabled,H=T.activeKey,K=T.selectedKeys,F=T.itemIcon,W=T.expandIcon,V=T.onItemClick,X=T.onOpenChange,G=T.onActive,Y=g.useContext(O)._internalRenderSubMenuItem,q=g.useContext(N).isSubPathKey,U=Z(),Q="".concat(L,"-submenu"),ee=A||f,te=g.useRef(),ne=g.useRef();var re=null!=v?v:F,oe=null!=b?b:W,ie=B.includes(p),ae=!_&&ie,le=q(K,p),de=ce(p,ee,M,P),fe=de.active,me=(0,c.Z)(de,Te),ge=g.useState(!1),he=(0,l.Z)(ge,2),ve=he[0],be=he[1],ye=function(e){ee||be(e)},xe=g.useMemo((function(){return fe||"inline"!==D&&(ve||q([H],p))}),[D,fe,H,ve,p,q]),we=se(U.length),Ce=J((function(e){null==E||E(pe(e)),V(e)})),$e=z&&"".concat(z,"-popup"),Ee=g.createElement("div",(0,r.Z)({role:"menuitem",style:we,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof s?s:null,"data-menu-id":_&&z?null:z,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":ee,onClick:function(e){ee||(null==j||j({key:p,domEvent:e}),"inline"===D&&X(p,!ie))},onFocus:function(){G(p)}},me),s,g.createElement(ue,{icon:"horizontal"!==D?oe:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(Q,"-arrow")}))),ke=g.useRef(D);if("inline"!==D&&U.length>1?ke.current="vertical":ke.current=D,!_){var Ie=ke.current;Ee=g.createElement(Me,{mode:Ie,prefixCls:Q,visible:!m&&ae&&"inline"!==D,popupClassName:x,popupOffset:w,popupStyle:$,popup:g.createElement(S,{mode:"horizontal"===Ie?"vertical":Ie},g.createElement(Se,{id:$e,ref:ne},h)),disabled:ee,onVisibleChange:function(e){"inline"!==D&&X(p,e)}},Ee)}var Ze=g.createElement(d.Z.Item,(0,r.Z)({role:"none"},R,{component:"li",style:n,className:u()(Q,"".concat(Q,"-").concat(D),a,(t={},(0,o.Z)(t,"".concat(Q,"-open"),ae),(0,o.Z)(t,"".concat(Q,"-active"),xe),(0,o.Z)(t,"".concat(Q,"-selected"),le),(0,o.Z)(t,"".concat(Q,"-disabled"),ee),t)),onMouseEnter:function(e){ye(!0),null==k||k({key:p,domEvent:e})},onMouseLeave:function(e){ye(!1),null==I||I({key:p,domEvent:e})}}),Ee,!_&&g.createElement(Re,{id:$e,open:ae,keyPath:U},h));return Y&&(Ze=Y(Ze,e,{selected:le,active:xe,open:ae,disabled:ee})),g.createElement(S,{onItemClick:Ce,mode:"horizontal"===D?"vertical":D,itemIcon:re,expandIcon:oe},Ze)};function De(e){var t,n=e.eventKey,r=e.children,o=Z(n),i=Ee(r,o),a=k();return g.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:g.createElement(Le,e,i),g.createElement(I.Provider,{value:o},t)}var Be=n(93664),Ae=["className","title","eventKey","children"],_e=["children"],He=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,c.Z)(e,Ae),a=g.useContext(C).prefixCls,l="".concat(a,"-item-group");return g.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:u()(l,t)}),g.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),g.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function Ke(e){var t=e.children,n=(0,c.Z)(e,_e),r=Ee(t,Z(n.eventKey));return k()?r:g.createElement(He,(0,ae.Z)(n,["warnKey"]),r)}function Fe(e){var t=e.className,n=e.style,r=g.useContext(C).prefixCls;return k()?null:g.createElement("li",{role:"separator",className:u()("".concat(r,"-item-divider"),t),style:n})}var We=["label","children","key","type"];function Ve(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,Be.Z)(e)){var n=e,o=n.label,i=n.children,a=n.key,l=n.type,s=(0,c.Z)(n,We),u=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?g.createElement(Ke,(0,r.Z)({key:u},s,{title:o}),Ve(i)):g.createElement(De,(0,r.Z)({key:u},s,{title:o}),Ve(i)):"divider"===l?g.createElement(Fe,(0,r.Z)({key:u},s)):g.createElement(ye,(0,r.Z)({key:u},s),o)}return null})).filter((function(e){return e}))}function Xe(e,t,n){var r=e;return t&&(r=Ve(t)),Ee(r,n)}var Ge=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ye=[],qe=g.forwardRef((function(e,t){var n,s,m=e,b=m.prefixCls,y=void 0===b?"rc-menu":b,x=m.rootClassName,w=m.style,C=m.className,$=m.tabIndex,k=void 0===$?0:$,I=m.items,Z=m.children,j=m.direction,M=m.id,P=m.mode,R=void 0===P?"vertical":P,z=m.inlineCollapsed,T=m.disabled,L=m.disabledOverflow,D=m.subMenuOpenDelay,B=void 0===D?.1:D,A=m.subMenuCloseDelay,_=void 0===A?.1:A,H=m.forceSubMenuRender,K=m.defaultOpenKeys,F=m.openKeys,V=m.activeKey,Y=m.defaultActiveFirst,q=m.selectable,ne=void 0===q||q,re=m.multiple,oe=void 0!==re&&re,ie=m.defaultSelectedKeys,ae=m.selectedKeys,le=m.onSelect,ce=m.onDeselect,se=m.inlineIndent,ue=void 0===se?24:se,de=m.motion,fe=m.defaultMotions,me=m.triggerSubMenuAction,ge=void 0===me?"hover":me,he=m.builtinPlacements,ve=m.itemIcon,be=m.expandIcon,xe=m.overflowedIndicator,we=void 0===xe?"...":xe,Ce=m.overflowedIndicatorPopupClassName,Se=m.getPopupContainer,$e=m.onClick,Ee=m.onOpenChange,ke=m.onKeyDown,Ie=(m.openAnimation,m.openTransitionName,m._internalRenderMenuItem),Ze=m._internalRenderSubMenuItem,Ne=(0,c.Z)(m,Ge),Oe=g.useMemo((function(){return Xe(Z,I,Ye)}),[Z,I]),je=g.useState(!1),Me=(0,l.Z)(je,2),Pe=Me[0],Re=Me[1],ze=g.useRef(),Te=function(e){var t=(0,p.Z)(e,{value:e}),n=(0,l.Z)(t,2),r=n[0],o=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);o("rc-menu-uuid-".concat(e))}),[]),r}(M),Le="rtl"===j;var Be=(0,p.Z)(K,{value:F,postState:function(e){return e||Ye}}),Ae=(0,l.Z)(Be,2),_e=Ae[0],He=Ae[1],Ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){He(e),null==Ee||Ee(e)}t?(0,h.flushSync)(n):n()},Fe=g.useState(_e),We=(0,l.Z)(Fe,2),Ve=We[0],qe=We[1],Ue=g.useRef(!1),Qe=g.useMemo((function(){return"inline"!==R&&"vertical"!==R||!z?[R,!1]:["vertical",z]}),[R,z]),Je=(0,l.Z)(Qe,2),et=Je[0],tt=Je[1],nt="inline"===et,rt=g.useState(et),ot=(0,l.Z)(rt,2),it=ot[0],at=ot[1],lt=g.useState(tt),ct=(0,l.Z)(lt,2),st=ct[0],ut=ct[1];g.useEffect((function(){at(et),ut(tt),Ue.current&&(nt?He(Ve):Ke(Ye))}),[et,tt]);var dt=g.useState(0),pt=(0,l.Z)(dt,2),ft=pt[0],mt=pt[1],gt=ft>=Oe.length-1||"horizontal"!==it||L;g.useEffect((function(){nt&&qe(_e)}),[_e]),g.useEffect((function(){return Ue.current=!0,function(){Ue.current=!1}}),[]);var ht=Q(),vt=ht.registerPath,bt=ht.unregisterPath,yt=ht.refreshOverflowKeys,xt=ht.isSubPathKey,wt=ht.getKeyPath,Ct=ht.getKeys,St=ht.getSubPathKeys,$t=g.useMemo((function(){return{registerPath:vt,unregisterPath:bt}}),[vt,bt]),Et=g.useMemo((function(){return{isSubPathKey:xt}}),[xt]);g.useEffect((function(){yt(gt?Ye:Oe.slice(ft+1).map((function(e){return e.key})))}),[ft,gt]);var kt=(0,p.Z)(V||Y&&(null===(n=Oe[0])||void 0===n?void 0:n.key),{value:V}),It=(0,l.Z)(kt,2),Zt=It[0],Nt=It[1],Ot=J((function(e){Nt(e)})),jt=J((function(){Nt(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:ze.current,focus:function(e){var t,n,r=Ct(),o=X(r,Te),i=o.elements,a=o.key2element,l=o.element2key,c=W(ze.current,i),s=null!=Zt?Zt:c[0]?l.get(c[0]):null===(t=Oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Mt=(0,p.Z)(ie||[],{value:ae,postState:function(e){return Array.isArray(e)?e:null==e?Ye:[e]}}),Pt=(0,l.Z)(Mt,2),Rt=Pt[0],zt=Pt[1],Tt=J((function(e){null==$e||$e(pe(e)),function(e){if(ne){var t,n=e.key,r=Rt.includes(n);t=oe?r?Rt.filter((function(e){return e!==n})):[].concat((0,a.Z)(Rt),[n]):[n],zt(t);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==ce||ce(o):null==le||le(o)}!oe&&_e.length&&"inline"!==it&&Ke(Ye)}(e)})),Lt=J((function(e,t){var n=_e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==it){var r=St(e);n=n.filter((function(e){return!r.has(e)}))}(0,f.Z)(_e,n,!0)||Ke(n,!0)})),Dt=G(it,Zt,Le,Te,ze,Ct,wt,Nt,(function(e,t){var n=null!=t?t:!_e.includes(e);Lt(e,n)}),ke);g.useEffect((function(){Re(!0)}),[]);var Bt=g.useMemo((function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:Ze}}),[Ie,Ze]),At="horizontal"!==it||L?Oe:Oe.map((function(e,t){return g.createElement(S,{key:e.key,overflowDisabled:t>ft},e)})),_t=g.createElement(d.Z,(0,r.Z)({id:M,ref:ze,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:ye,className:u()(y,"".concat(y,"-root"),"".concat(y,"-").concat(it),C,(s={},(0,o.Z)(s,"".concat(y,"-inline-collapsed"),st),(0,o.Z)(s,"".concat(y,"-rtl"),Le),s),x),dir:j,style:w,role:"menu",tabIndex:k,data:At,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Oe.slice(-t):null;return g.createElement(De,{eventKey:U,title:we,disabled:gt,internalPopupClose:0===t,popupClassName:Ce},n)},maxCount:"horizontal"!==it||L?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){mt(e)},onKeyDown:Dt},Ne));return g.createElement(O.Provider,{value:Bt},g.createElement(v.Provider,{value:Te},g.createElement(S,{prefixCls:y,rootClassName:x,mode:it,openKeys:_e,rtl:Le,disabled:T,motion:Pe?de:null,defaultMotions:Pe?fe:null,activeKey:Zt,onActive:Ot,onInactive:jt,selectedKeys:Rt,inlineIndent:ue,subMenuOpenDelay:B,subMenuCloseDelay:_,forceSubMenuRender:H,builtinPlacements:he,triggerSubMenuAction:ge,getPopupContainer:Se,itemIcon:ve,expandIcon:be,onItemClick:Tt,onOpenChange:Lt},g.createElement(N.Provider,{value:Et},_t),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(E.Provider,{value:$t},Oe)))))})),Ue=qe;Ue.Item=ye,Ue.SubMenu=De,Ue.ItemGroup=Ke,Ue.Divider=Fe;var Qe=Ue},11780:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(14809),o=n(20439),i=n(50298),a=n(62646),l=n(59301),c=n(92310),s=n.n(c),u=n(29301),d=n(34280),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function m(e,t){var n=e.prefixCls,i=e.invalidate,c=e.item,d=e.renderItem,m=e.responsive,g=e.responsiveDisabled,h=e.registerSize,v=e.itemKey,b=e.className,y=e.style,x=e.children,w=e.display,C=e.order,S=e.component,$=void 0===S?"div":S,E=(0,a.Z)(e,p),k=m&&!w;function I(e){h(v,e)}l.useEffect((function(){return function(){I(null)}}),[]);var Z,N=d&&c!==f?d(c,{index:C}):x;i||(Z={opacity:k?0:1,height:k?0:f,overflowY:k?"hidden":f,order:m?C:f,pointerEvents:k?"none":f,position:k?"absolute":f});var O={};k&&(O["aria-hidden"]=!0);var j=l.createElement($,(0,r.Z)({className:s()(!i&&n,b),style:(0,o.Z)((0,o.Z)({},Z),y)},O,E,{ref:t}),N);return m&&(j=l.createElement(u.Z,{onResize:function(e){I(e.offsetWidth)},disabled:g},j)),j}var g=l.forwardRef(m);g.displayName="Item";var h=g,v=n(6089),b=n(4676),y=n(16089);function x(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function w(e,t){var n=l.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var C=l.createContext(null),S=["component"],$=["className"],E=["className"],k=function(e,t){var n=l.useContext(C);if(!n){var o=e.component,i=void 0===o?"div":o,c=(0,a.Z)(e,S);return l.createElement(i,(0,r.Z)({},c,{ref:t}))}var u=n.className,d=(0,a.Z)(n,$),p=e.className,f=(0,a.Z)(e,E);return l.createElement(C.Provider,{value:null},l.createElement(h,(0,r.Z)({ref:t,className:s()(u,p)},d,f)))},I=l.forwardRef(k);I.displayName="RawItem";var Z=I,N=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],O="responsive",j="invalidate";function M(e){return"+ ".concat(e.length," ...")}function P(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,p=e.data,f=void 0===p?[]:p,m=e.renderItem,g=e.renderRawItem,v=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,S=e.ssr,$=e.style,E=e.className,k=e.maxCount,I=e.renderRest,Z=e.renderRawRest,P=e.suffix,R=e.component,z=void 0===R?"div":R,T=e.itemComponent,L=e.onVisibleChange,D=(0,a.Z)(e,N),B="full"===S,A=x(),_=w(A,null),H=(0,i.Z)(_,2),K=H[0],F=H[1],W=K||0,V=w(A,new Map),X=(0,i.Z)(V,2),G=X[0],Y=X[1],q=w(A,0),U=(0,i.Z)(q,2),Q=U[0],J=U[1],ee=w(A,0),te=(0,i.Z)(ee,2),ne=te[0],re=te[1],oe=w(A,0),ie=(0,i.Z)(oe,2),ae=ie[0],le=ie[1],ce=(0,l.useState)(null),se=(0,i.Z)(ce,2),ue=se[0],de=se[1],pe=(0,l.useState)(null),fe=(0,i.Z)(pe,2),me=fe[0],ge=fe[1],he=l.useMemo((function(){return null===me&&B?Number.MAX_SAFE_INTEGER:me||0}),[me,K]),ve=(0,l.useState)(!1),be=(0,i.Z)(ve,2),ye=be[0],xe=be[1],we="".concat(c,"-item"),Ce=Math.max(Q,ne),Se=k===O,$e=f.length&&Se,Ee=k===j,ke=$e||"number"==typeof k&&f.length>k,Ie=(0,l.useMemo)((function(){var e=f;return $e?e=null===K&&B?f:f.slice(0,Math.min(f.length,W/y)):"number"==typeof k&&(e=f.slice(0,k)),e}),[f,y,K,k,$e]),Ze=(0,l.useMemo)((function(){return $e?f.slice(he+1):f.slice(Ie.length)}),[f,Ie,$e,he]),Ne=(0,l.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Oe=(0,l.useCallback)(m||function(e){return e},[m]);function je(e,t,n){(me!==e||void 0!==t&&t!==ue)&&(ge(e),n||(xe(eW){je(r-1,e-o-ae+ne);break}}P&&Pe(0)+ae>W&&de(null)}}),[W,G,ne,ae,Ne,Ie]);var Re=ye&&!!Ze.length,ze={};null!==ue&&$e&&(ze={position:"absolute",left:ue,top:0});var Te={prefixCls:we,responsive:$e,component:T,invalidate:Ee},Le=g?function(e,t){var n=Ne(e,t);return l.createElement(C.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},Te),{},{order:t,item:e,itemKey:n,registerSize:Me,display:t<=he})},g(e,t))}:function(e,t){var n=Ne(e,t);return l.createElement(h,(0,r.Z)({},Te,{order:t,key:n,item:e,renderItem:Oe,itemKey:n,registerSize:Me,display:t<=he}))},De={order:Re?he:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:function(e,t){re(t),J(ne)},display:Re},Be=I||M,Ae=Z?l.createElement(C.Provider,{value:(0,o.Z)((0,o.Z)({},Te),De)},Z(Ze)):l.createElement(h,(0,r.Z)({},Te,De),"function"==typeof Be?Be(Ze):Be),_e=l.createElement(z,(0,r.Z)({className:s()(!Ee&&c,E),style:$,ref:t},D),Ie.map(Le),ke?Ae:null,P&&l.createElement(h,(0,r.Z)({},Te,{responsive:Se,responsiveDisabled:!$e,order:he,className:"".concat(we,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:ze}),P));return Se?l.createElement(u.Z,{onResize:function(e,t){F(t.clientWidth)},disabled:!$e},_e):_e}var R=l.forwardRef(P);R.displayName="Overflow",R.Item=Z,R.RESPONSIVE=O,R.INVALIDATE=j;var z=R},29301:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(14809),o=n(59301),i=n(11592),a=(n(48736),n(20439)),l=n(93664),c=n(76846),s=n(8654),u=o.createContext(null);var d=n(76374),p=new Map;var f=new d.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=p.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var m=n(99153),g=n(84851),h=n(19257),v=n(54941),b=function(e){(0,h.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,m.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function y(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),d=o.useRef(null),m=o.useContext(u),g="function"==typeof n,h=g?n(i):n,v=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!g&&o.isValidElement(h)&&(0,s.Yr)(h),x=y?(0,s.C4)(h):null,w=(0,s.x1)(x,i),C=function(){var e;return(0,c.ZP)(i.current)||(i.current&&"object"===(0,l.Z)(i.current)?(0,c.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,c.ZP)(d.current)};o.useImperativeHandle(t,(function(){return C()}));var S=o.useRef(e);S.current=e;var $=o.useCallback((function(e){var t=S.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,c=e.offsetWidth,s=e.offsetHeight,u=Math.floor(i),d=Math.floor(l);if(v.current.width!==u||v.current.height!==d||v.current.offsetWidth!==c||v.current.offsetHeight!==s){var p={width:u,height:d,offsetWidth:c,offsetHeight:s};v.current=p;var f=c===Math.round(i)?i:c,g=s===Math.round(l)?l:s,h=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:f,offsetHeight:g});null==m||m(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return o.useEffect((function(){var e,t,n=C();return n&&!r&&(e=n,t=$,p.has(e)||(p.set(e,new Set),f.observe(e)),p.get(e).add(t)),function(){return function(e,t){p.has(e)&&(p.get(e).delete(t),p.get(e).size||(f.unobserve(e),p.delete(e)))}(n,$)}}),[i.current,r]),o.createElement(b,{ref:d},y?o.cloneElement(h,{ref:w}):h)}var x=o.forwardRef(y);function w(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(x,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var C=o.forwardRef(w);C.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(u),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(u.Provider,{value:l},t)};var S=C},17115:function(e,t,n){n.d(t,{ZP:function(){return c}});var r=n(50298),o=n(59301),i=n(47273),a=0,l=(0,i.Z)();function c(e){var t=o.useState(),n=(0,r.Z)(t,2),i=n[0],c=n[1];return o.useEffect((function(){var e;c("rc_select_".concat((l?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},77861:function(e,t,n){n.d(t,{Ac:function(){return Q},Xo:function(){return se},Wx:function(){return de},ZP:function(){return Ee},lk:function(){return w}});var r=n(14809),o=n(95190),i=n(4635),a=n(20439),l=n(50298),c=n(62646),s=n(93664),u=n(18929),d=n(48736),p=n(59301),f=n(92310),m=n.n(f),g=n(34280),h=n(49658),v=n(10228),b=n(8654),y=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,l=e.children;return t="function"==typeof r?r(o):r,p.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:p.createElement("span",{className:m()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))};var x=p.createContext(null);function w(){return p.useContext(x)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return p.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var S=n(26112),$=n(11780),E=function(e,t){var n,r,o=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,f=e.autoComplete,g=e.editable,h=e.activeDescendantId,v=e.value,y=e.maxLength,x=e.onKeyDown,w=e.onMouseDown,C=e.onChange,S=e.onPaste,$=e.onCompositionStart,E=e.onCompositionEnd,k=e.open,I=e.attrs,Z=l||p.createElement("input",null),N=Z,O=N.ref,j=N.props,M=j.onKeyDown,P=j.onChange,R=j.onMouseDown,z=j.onCompositionStart,T=j.onCompositionEnd,L=j.style;return(0,d.Kp)(!("maxLength"in Z.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Z=p.cloneElement(Z,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},j),{},{id:i,ref:(0,b.sQ)(t,O),disabled:c,tabIndex:s,autoComplete:f||"off",autoFocus:u,className:m()("".concat(o,"-selection-search-input"),null===(n=Z)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-label":"Search","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":k?h:void 0},I),{},{value:g?v:"",maxLength:y,readOnly:!g,unselectable:g?null:"on",style:(0,a.Z)((0,a.Z)({},L),{},{opacity:g?null:0}),onKeyDown:function(e){x(e),M&&M(e)},onMouseDown:function(e){w(e),R&&R(e)},onChange:function(e){C(e),P&&P(e)},onCompositionStart:function(e){$(e),z&&z(e)},onCompositionEnd:function(e){E(e),T&&T(e)},onPaste:S}))},k=p.forwardRef(E);k.displayName="Input";var I=k;function Z(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var N="undefined"!=typeof window&&window.document&&window.document.documentElement;function O(e){return["string","number"].includes((0,s.Z)(e))}function j(e){var t=void 0;return e&&(O(e.title)?t=e.title.toString():O(e.label)&&(t=e.label.toString())),t}function M(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()},R=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,g=e.disabled,h=e.mode,v=e.showSearch,b=e.autoFocus,x=e.autoComplete,w=e.activeDescendantId,C=e.tabIndex,E=e.removeIcon,k=e.maxTagCount,Z=e.maxTagTextLength,O=e.maxTagPlaceholder,R=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,z=e.tagRender,T=e.onToggleOpen,L=e.onRemove,D=e.onInputChange,B=e.onInputPaste,A=e.onInputKeyDown,_=e.onInputMouseDown,H=e.onInputCompositionStart,K=e.onInputCompositionEnd,F=p.useRef(null),W=(0,p.useState)(0),V=(0,l.Z)(W,2),X=V[0],G=V[1],Y=(0,p.useState)(!1),q=(0,l.Z)(Y,2),U=q[0],Q=q[1],J="".concat(o,"-selection"),ee=c||"multiple"===h&&!1===u||"tags"===h?s:"",te="tags"===h||"multiple"===h&&!1===u||v&&(c||U);function ne(e,t,n,r,o){return p.createElement("span",{className:m()("".concat(J,"-item"),(0,i.Z)({},"".concat(J,"-item-disabled"),n)),title:j(e)},p.createElement("span",{className:"".concat(J,"-item-content")},t),r&&p.createElement(y,{className:"".concat(J,"-item-remove"),onMouseDown:P,onClick:o,customizeIcon:E},"×"))}t=function(){G(F.current.scrollWidth)},n=[ee],N?p.useLayoutEffect(t,n):p.useEffect(t,n);var re=p.createElement("div",{className:"".concat(J,"-search"),style:{width:X},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},p.createElement(I,{ref:d,open:c,prefixCls:o,id:r,inputElement:null,disabled:g,autoFocus:b,autoComplete:x,editable:te,activeDescendantId:w,value:ee,onKeyDown:A,onMouseDown:_,onChange:D,onPaste:B,onCompositionStart:H,onCompositionEnd:K,tabIndex:C,attrs:(0,S.Z)(e,!0)}),p.createElement("span",{ref:F,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee," ")),oe=p.createElement($.Z,{prefixCls:"".concat(J,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!g&&!t,i=n;if("number"==typeof Z&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>Z&&(i="".concat(a.slice(0,Z),"..."))}var l=function(t){t&&t.stopPropagation(),L(e)};return"function"==typeof z?function(e,t,n,r,o){return p.createElement("span",{onMouseDown:function(e){P(e),T(!c)}},z({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,l):ne(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof R?R(e):R;return ne({title:t},t,!1)},suffix:re,itemKey:M,maxCount:k});return p.createElement(p.Fragment,null,oe,!a.length&&!ee&&p.createElement("span",{className:"".concat(J,"-placeholder")},f))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,v=e.searchValue,b=e.activeValue,y=e.maxLength,x=e.onInputKeyDown,w=e.onInputMouseDown,C=e.onInputChange,$=e.onInputPaste,E=e.onInputCompositionStart,k=e.onInputCompositionEnd,Z=e.title,N=p.useState(!1),O=(0,l.Z)(N,2),M=O[0],P=O[1],R="combobox"===u,z=R||h,T=f[0],L=v||"";R&&b&&!M&&(L=b),p.useEffect((function(){R&&P(!1)}),[R,b]);var D=!("combobox"!==u&&!d&&!h)&&!!L,B=void 0===Z?j(T):Z;return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(I,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:c,editable:z,activeDescendantId:s,value:L,onKeyDown:x,onMouseDown:w,onChange:function(e){P(!0),C(e)},onPaste:$,onCompositionStart:E,onCompositionEnd:k,tabIndex:g,attrs:(0,S.Z)(e,!0),maxLength:R?y:void 0})),!R&&T?p.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:D?{visibility:"hidden"}:void 0},T.label):null,function(){if(T)return null;var e=D?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},m)}())};var T=function(e,t){var n=(0,p.useRef)(null),o=(0,p.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,f=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;p.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var y=C(0),x=(0,l.Z)(y,2),w=x[0],S=x[1],$=(0,p.useRef)(null),E=function(e){!1!==f(e,!0,o.current)&&g(!0)},k={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==v.Z.UP&&n!==v.Z.DOWN||e.preventDefault(),h&&h(e),n!==v.Z.ENTER||"tags"!==c||o.current||a||null==m||m(e.target.value),t=n,[v.Z.ESC,v.Z.SHIFT,v.Z.BACKSPACE,v.Z.TAB,v.Z.WIN_KEY,v.Z.ALT,v.Z.META,v.Z.WIN_KEY_RIGHT,v.Z.CTRL,v.Z.SEMICOLON,v.Z.EQUALS,v.Z.CAPS_LOCK,v.Z.CONTEXT_MENU,v.Z.F1,v.Z.F2,v.Z.F3,v.Z.F4,v.Z.F5,v.Z.F6,v.Z.F7,v.Z.F8,v.Z.F9,v.Z.F10,v.Z.F11,v.Z.F12].includes(t)||g(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var n=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,$.current)}$.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");$.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==c&&E(e.target.value)}},I="multiple"===c||"tags"===c?p.createElement(R,(0,r.Z)({},e,k)):p.createElement(z,(0,r.Z)({},e,k));return p.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===c||e.preventDefault(),("combobox"===c||s&&t)&&a||(a&&!1!==d&&f("",!0,!1),g())}},I)},L=p.forwardRef(T);L.displayName="Selector";var D=L,B=n(35593),A=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,s=e.popupElement,u=e.animation,d=e.transitionName,f=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,v=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,x=e.dropdownMatchSelectWidth,w=e.dropdownRender,C=e.dropdownAlign,S=e.getPopupContainer,$=e.empty,E=e.getTriggerDOMNode,k=e.onPopupVisibleChange,I=e.onPopupMouseEnter,Z=(0,c.Z)(e,A),N="".concat(n,"-dropdown"),O=s;w&&(O=w(s));var j=p.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(x)}),[y,x]),M=u?"".concat(N,"-").concat(u):d,P="number"==typeof x,R=p.useMemo((function(){return P?null:!1===x?"minWidth":"width"}),[x,P]),z=f;P&&(z=(0,a.Z)((0,a.Z)({},z),{},{width:x}));var T=p.useRef(null);return p.useImperativeHandle(t,(function(){return{getPopupElement:function(){return T.current}}})),p.createElement(B.Z,(0,r.Z)({},Z,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:N,popupTransitionName:M,popup:p.createElement("div",{ref:T,onMouseEnter:I},O),stretch:R,popupAlign:C,popupVisible:o,getPopupContainer:S,popupClassName:m()(g,(0,i.Z)({},"".concat(N,"-empty"),$)),popupStyle:z,getTriggerDOMNode:E,onPopupVisibleChange:k}),l)},H=p.forwardRef(_);H.displayName="SelectTrigger";var K=H,F=n(21696);function W(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function V(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function X(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,d.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var G=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function q(e){return"tags"===e||"multiple"===e}var U=p.forwardRef((function(e,t){var n,d,f=e.id,w=e.prefixCls,S=e.className,$=e.showSearch,E=e.tagRender,k=e.direction,I=e.omitDomProps,Z=e.displayValues,N=e.onDisplayValuesChange,O=e.emptyOptions,j=e.notFoundContent,M=void 0===j?"Not Found":j,P=e.onClear,R=e.mode,z=e.disabled,T=e.loading,L=e.getInputElement,B=e.getRawInputElement,A=e.open,_=e.defaultOpen,H=e.onDropdownVisibleChange,W=e.activeValue,V=e.onActiveValueChange,X=e.activeDescendantId,U=e.searchValue,Q=e.autoClearSearchValue,J=e.onSearch,ee=e.onSearchSplit,te=e.tokenSeparators,ne=e.allowClear,re=e.suffixIcon,oe=e.clearIcon,ie=e.OptionList,ae=e.animation,le=e.transitionName,ce=e.dropdownStyle,se=e.dropdownClassName,ue=e.dropdownMatchSelectWidth,de=e.dropdownRender,pe=e.dropdownAlign,fe=e.placement,me=e.builtinPlacements,ge=e.getPopupContainer,he=e.showAction,ve=void 0===he?[]:he,be=e.onFocus,ye=e.onBlur,xe=e.onKeyUp,we=e.onKeyDown,Ce=e.onMouseDown,Se=(0,c.Z)(e,G),$e=q(R),Ee=(void 0!==$?$:$e)||"combobox"===R,ke=(0,a.Z)({},Se);Y.forEach((function(e){delete ke[e]})),null==I||I.forEach((function(e){delete ke[e]}));var Ie=p.useState(!1),Ze=(0,l.Z)(Ie,2),Ne=Ze[0],Oe=Ze[1];p.useEffect((function(){Oe((0,h.Z)())}),[]);var je=p.useRef(null),Me=p.useRef(null),Pe=p.useRef(null),Re=p.useRef(null),ze=p.useRef(null),Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=p.useState(!1),n=(0,l.Z)(t,2),r=n[0],o=n[1],i=p.useRef(null),a=function(){window.clearTimeout(i.current)};return p.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),Le=(0,l.Z)(Te,3),De=Le[0],Be=Le[1],Ae=Le[2];p.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(t=Re.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ze.current)||void 0===t?void 0:t.scrollTo(e)}}}));var _e=p.useMemo((function(){var e;if("combobox"!==R)return U;var t=null===(e=Z[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[U,R,Z]),He="combobox"===R&&"function"==typeof L&&L()||null,Ke="function"==typeof B&&B(),Fe=(0,b.x1)(Me,null==Ke||null===(n=Ke.props)||void 0===n?void 0:n.ref),We=p.useState(!1),Ve=(0,l.Z)(We,2),Xe=Ve[0],Ge=Ve[1];(0,g.Z)((function(){Ge(!0)}),[]);var Ye=(0,u.Z)(!1,{defaultValue:_,value:A}),qe=(0,l.Z)(Ye,2),Ue=qe[0],Qe=qe[1],Je=!!Xe&&Ue,et=!M&&O;(z||et&&Je&&"combobox"===R)&&(Je=!1);var tt=!et&&Je,nt=p.useCallback((function(e){var t=void 0!==e?e:!Je;z||(Qe(t),Je!==t&&(null==H||H(t)))}),[z,Je,Qe,H]),rt=p.useMemo((function(){return(te||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[te]),ot=function(e,t,n){var r=!0,i=e;null==V||V(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var i=(0,F.Z)(r),a=i[0],l=i.slice(1);if(!a)return[t];var c=t.split(a);return n=n||c.length>1,c.reduce((function(t,n){return[].concat((0,o.Z)(t),(0,o.Z)(e(n,l)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,te);return"combobox"!==R&&a&&(i="",null==ee||ee(a),nt(!1),r=!1),J&&_e!==i&&J(i,{source:t?"typing":"effect"}),r};p.useEffect((function(){Je||$e||"combobox"===R||ot("",!1,!1)}),[Je]),p.useEffect((function(){Ue&&z&&Qe(!1),z&&Be(!1)}),[z]);var it=C(),at=(0,l.Z)(it,2),lt=at[0],ct=at[1],st=p.useRef(!1),ut=[];p.useEffect((function(){return function(){ut.forEach((function(e){return clearTimeout(e)})),ut.splice(0,ut.length)}}),[]);var dt,pt=p.useState({}),ft=(0,l.Z)(pt,2)[1];Ke&&(dt=function(e){nt(e)}),function(e,t,n,r){var o=p.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},p.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[je.current,null===(e=Pe.current)||void 0===e?void 0:e.getPopupElement()]}),tt,nt,!!Ke);var mt,gt=p.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:M,open:Je,triggerOpen:tt,id:f,showSearch:Ee,multiple:$e,toggleOpen:nt})}),[e,M,tt,Je,f,Ee,$e,nt]),ht=!!re||T;ht&&(mt=p.createElement(y,{className:m()("".concat(w,"-arrow"),(0,i.Z)({},"".concat(w,"-arrow-loading"),T)),customizeIcon:re,customizeIconProps:{loading:T,searchValue:_e,open:Je,focused:De,showSearch:Ee}}));var vt,bt=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=p.useMemo((function(){return"object"===(0,s.Z)(r)?r.clearIcon:o||void 0}),[r,o]),u=p.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]);return{allowClear:u,clearIcon:p.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(w,(function(){var e;null==P||P(),null===(e=Re.current)||void 0===e||e.focus(),N([],{type:"clear",values:Z}),ot("",!1,!1)}),Z,ne,oe,z,_e,R),yt=bt.allowClear,xt=bt.clearIcon,wt=p.createElement(ie,{ref:ze}),Ct=m()(w,S,(d={},(0,i.Z)(d,"".concat(w,"-focused"),De),(0,i.Z)(d,"".concat(w,"-multiple"),$e),(0,i.Z)(d,"".concat(w,"-single"),!$e),(0,i.Z)(d,"".concat(w,"-allow-clear"),ne),(0,i.Z)(d,"".concat(w,"-show-arrow"),ht),(0,i.Z)(d,"".concat(w,"-disabled"),z),(0,i.Z)(d,"".concat(w,"-loading"),T),(0,i.Z)(d,"".concat(w,"-open"),Je),(0,i.Z)(d,"".concat(w,"-customize-input"),He),(0,i.Z)(d,"".concat(w,"-show-search"),Ee),d)),St=p.createElement(K,{ref:Pe,disabled:z,prefixCls:w,visible:tt,popupElement:wt,animation:ae,transitionName:le,dropdownStyle:ce,dropdownClassName:se,direction:k,dropdownMatchSelectWidth:ue,dropdownRender:de,dropdownAlign:pe,placement:fe,builtinPlacements:me,getPopupContainer:ge,empty:O,getTriggerDOMNode:function(){return Me.current},onPopupVisibleChange:dt,onPopupMouseEnter:function(){ft({})}},Ke?p.cloneElement(Ke,{ref:Fe}):p.createElement(D,(0,r.Z)({},e,{domRef:Me,prefixCls:w,inputElement:He,ref:Re,id:f,showSearch:Ee,autoClearSearchValue:Q,mode:R,activeDescendantId:X,tagRender:E,values:Z,open:Je,onToggleOpen:nt,activeValue:W,searchValue:_e,onSearch:ot,onSearchSubmit:function(e){e&&e.trim()&&J(e,{source:"submit"})},onRemove:function(e){var t=Z.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:rt})));return vt=Ke?St:p.createElement("div",(0,r.Z)({className:Ct},ke,{ref:je,onMouseDown:function(e){var t,n=e.target,r=null===(t=Pe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=ut.indexOf(o);-1!==t&&ut.splice(t,1),Ae(),Ne||r.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));ut.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&N(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1];return(0,te.Z)(e).map((function(e,n){if(!p.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,l=r.props,s=l.children,u=(0,c.Z)(l,re);return t||!o?oe(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},u),{},{options:ie(s)})})).filter((function(e){return e}))}function ae(e,t,n,r,o){return p.useMemo((function(){var i=e;!e&&(i=ie(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];F(e);var n={source:t?"keyboard":"mouse"},r=T[e];r?E(r.value,e,n):E(null,-1,n)};(0,p.useEffect)((function(){W(!1!==k?A(0):-1)}),[T.length,g]);var V=p.useCallback((function(e){return N.has(e)&&"combobox"!==f}),[f,(0,o.Z)(N).toString(),N.size]);(0,p.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&u&&1===N.size){var e=Array.from(N)[0],t=T.findIndex((function(t){return t.data.value===e}));-1!==t&&(W(t),B(t))}}));u&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[u,g,$.length]);var X=function(e){void 0!==e&&I(e,{selected:!N.has(e)}),d||h(!1)};if(p.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case v.Z.N:case v.Z.P:case v.Z.UP:case v.Z.DOWN:var r=0;if(t===v.Z.UP?r=-1:t===v.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===v.Z.N?r=1:t===v.Z.P&&(r=-1)),0!==r){var o=A(K+r,r);B(o),W(o,!0)}break;case v.Z.ENTER:var i=T[K];i&&!i.data.disabled?X(i.value):X(void 0),u&&e.preventDefault();break;case v.Z.ESC:h(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){B(e)}}})),0===T.length)return p.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(z,"-empty"),onMouseDown:D},b);var G=Object.keys(O).map((function(e){return O[e]})),Y=function(e){return e.label};function q(e,t){return{role:e.group?"presentation":"option",id:"".concat(s,"_list_").concat(t)}}var U=function(e){var t=T[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=(0,S.Z)(n,!0),l=Y(t);return t?p.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},q(t,e),{"aria-selected":V(o)}),o):null},Q={role:"listbox",id:"".concat(s,"_list")};return p.createElement(p.Fragment,null,j&&p.createElement("div",(0,r.Z)({},Q,{style:{height:0,width:0,overflow:"hidden"}}),U(K-1),U(K),U(K+1)),p.createElement(me.Z,{itemKey:"key",ref:L,data:T,height:P,itemHeight:R,fullHeight:!1,onMouseDown:D,onScroll:x,virtual:j,direction:M,innerProps:j?null:Q},(function(e,t){var n,o=e.group,a=e.groupOption,l=e.data,s=e.label,u=e.value,d=l.key;if(o){var f,g=null!==(f=l.title)&&void 0!==f?f:ve(s)?s.toString():void 0;return p.createElement("div",{className:m()(z,"".concat(z,"-group")),title:g},void 0!==s?s:d)}var h=l.disabled,v=l.title,b=(l.children,l.style),x=l.className,w=(0,c.Z)(l,he),C=(0,fe.Z)(w,G),$=V(u),E="".concat(z,"-option"),k=m()(z,E,x,(n={},(0,i.Z)(n,"".concat(E,"-grouped"),a),(0,i.Z)(n,"".concat(E,"-active"),K===t&&!h),(0,i.Z)(n,"".concat(E,"-disabled"),h),(0,i.Z)(n,"".concat(E,"-selected"),$),n)),I=Y(e),N=!Z||"function"==typeof Z||$,O="number"==typeof I?I:I||u,M=ve(O)?O.toString():void 0;return void 0!==v&&(M=v),p.createElement("div",(0,r.Z)({},(0,S.Z)(C),j?{}:q(e,t),{"aria-selected":$,className:k,title:M,onMouseMove:function(){K===t||h||W(t)},onClick:function(){h||X(u)},style:b}),p.createElement("div",{className:"".concat(E,"-content")},O),p.isValidElement(Z)||$,N&&p.createElement(y,{className:"".concat(z,"-option-state"),customizeIcon:Z,customizeIconProps:{isSelected:$}},$?"✓":null))})))},ye=p.forwardRef(be);ye.displayName="OptionList";var xe=ye;var we=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];var Se=p.forwardRef((function(e,t){var n=e.id,d=e.mode,f=e.prefixCls,m=void 0===f?"rc-select":f,g=e.backfill,h=e.fieldNames,v=e.inputValue,b=e.searchValue,y=e.onSearch,x=e.autoClearSearchValue,w=void 0===x||x,C=e.onSelect,S=e.onDeselect,$=e.dropdownMatchSelectWidth,E=void 0===$||$,k=e.filterOption,I=e.filterSort,N=e.optionFilterProp,O=e.optionLabelProp,j=e.options,M=e.children,P=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,z=e.virtual,T=e.direction,L=e.listHeight,D=void 0===L?200:L,B=e.listItemHeight,A=void 0===B?20:B,_=e.value,H=e.defaultValue,K=e.labelInValue,F=e.onChange,G=(0,c.Z)(e,we),Y=(0,ee.ZP)(n),U=q(d),te=!(j||!M),ne=p.useMemo((function(){return(void 0!==k||"combobox"!==d)&&k}),[k,d]),re=p.useMemo((function(){return V(h,te)}),[JSON.stringify(h),te]),oe=(0,u.Z)("",{value:void 0!==b?b:v,postState:function(e){return e||""}}),ie=(0,l.Z)(oe,2),ce=ie[0],se=ie[1],ue=ae(j,M,re,N,O),de=ue.valueOptions,pe=ue.labelOptions,fe=ue.options,me=p.useCallback((function(e){return Z(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==(0,s.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=de.get(t);c&&(void 0===n&&(n=null==c?void 0:c[O||re.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[re,O,de]),he=(0,u.Z)(H,{value:_}),ve=(0,l.Z)(he,2),be=ve[0],ye=ve[1],Se=p.useMemo((function(){var e,t=me(be);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[be,me,d]),$e=function(e,t){var n=p.useRef({values:new Map,options:new Map});return[p.useMemo((function(){var r=n.current,o=r.values,i=r.options,l=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),c=new Map,s=new Map;return l.forEach((function(e){c.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=c,n.current.options=s,l}),[e,t]),p.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Se,de),Ee=(0,l.Z)($e,2),ke=Ee[0],Ie=Ee[1],Ze=p.useMemo((function(){if(!d&&1===ke.length){var e=ke[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ke.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[d,ke]),Ne=p.useMemo((function(){return new Set(ke.map((function(e){return e.value})))}),[ke]);p.useEffect((function(){if("combobox"===d){var e,t=null===(e=ke[0])||void 0===e?void 0:e.value;se(function(e){return null!=e}(t)?String(t):"")}}),[ke]);var Oe=le((function(e,t){var n,r=null!=t?t:e;return n={},(0,i.Z)(n,re.value,e),(0,i.Z)(n,re.label,r),n})),je=function(e,t,n,r,o){return p.useMemo((function(){if(!n||!1===r)return e;var l=t.options,c=t.label,s=t.value,u=[],d="function"==typeof r,p=n.toUpperCase(),f=d?r:function(e,t){return o?J(t[o],p):t[l]?J(t["children"!==c?c:"label"],p):J(t[s],p)},m=d?function(e){return X(e)}:function(e){return e};return e.forEach((function(e){if(e[l])if(f(n,m(e)))u.push(e);else{var t=e[l].filter((function(e){return f(n,m(e))}));t.length&&u.push((0,a.Z)((0,a.Z)({},e),{},(0,i.Z)({},l,t)))}else f(n,m(e))&&u.push(e)})),u}),[e,r,o,n,t])}(p.useMemo((function(){if("tags"!==d)return fe;var e=(0,o.Z)(fe);return(0,o.Z)(ke).sort((function(e,t){return e.value1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=V(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;function u(e,t){e.forEach((function(e){if(t||!(c in e)){var n=e[l];o.push({key:W(e,o.length),groupOption:t,data:e,label:e[a],value:n})}else{var i=e[s];void 0===i&&r&&(i=e.label),o.push({key:W(e,o.length),group:!0,data:e,label:i}),u(e[c],!0)}}))}return u(e,!1),o}(Pe,{fieldNames:re,childrenAsData:te})}),[Pe,re,te]),ze=function(e){var t=me(e);if(ye(t),F&&(t.length!==ke.length||t.some((function(e,t){var n;return(null===(n=ke[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=K?t:t.map((function(e){return e.value})),r=t.map((function(e){return X(Ie(e.value))}));F(U?n:n[0],U?r:r[0])}},Te=p.useState(null),Le=(0,l.Z)(Te,2),De=Le[0],Be=Le[1],Ae=p.useState(0),_e=(0,l.Z)(Ae,2),He=_e[0],Ke=_e[1],Fe=void 0!==P?P:"combobox"!==d,We=p.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Ke(t),g&&"combobox"===d&&null!==e&&"keyboard"===o&&Be(String(e))}),[g,d]),Ve=function(e,t,n){var r=function(){var t,n=Ie(e);return[K?{label:null==n?void 0:n[re.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,X(n)]};if(t&&C){var o=r(),i=(0,l.Z)(o,2),a=i[0],c=i[1];C(a,c)}else if(!t&&S&&"clear"!==n){var s=r(),u=(0,l.Z)(s,2),d=u[0],p=u[1];S(d,p)}},Xe=le((function(e,t){var n,r=!U||t.selected;n=r?U?[].concat((0,o.Z)(ke),[e]):[e]:ke.filter((function(t){return t.value!==e})),ze(n),Ve(e,r),"combobox"===d?Be(""):q&&!w||(se(""),Be(""))})),Ge=p.useMemo((function(){var e=!1!==z&&!1!==E;return(0,a.Z)((0,a.Z)({},ue),{},{flattenOptions:Re,onActiveValue:We,defaultActiveFirstOption:Fe,onSelect:Xe,menuItemSelectedIcon:R,rawValues:Ne,fieldNames:re,virtual:e,direction:T,listHeight:D,listItemHeight:A,childrenAsData:te})}),[ue,Re,We,Fe,Xe,R,Ne,re,z,E,D,A,te]);return p.createElement(ge.Provider,{value:Ge},p.createElement(Q,(0,r.Z)({},G,{id:Y,prefixCls:m,ref:t,omitDomProps:Ce,mode:d,displayValues:Ze,onDisplayValuesChange:function(e,t){ze(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ve(e.value,!1,n)}))},direction:T,searchValue:ce,onSearch:function(e,t){if(se(e),Be(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&ze(e),null==y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,o.Z)(Ne),[n])));ze(r),Ve(n,!0),se("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=pe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,o.Z)(Ne),(0,o.Z)(t))));ze(n),n.forEach((function(e){Ve(e,!0)}))},dropdownMatchSelectWidth:E,OptionList:xe,emptyOptions:!Re.length,activeValue:De,activeDescendantId:"".concat(Y,"_list_").concat(He)})))}));var $e=Se;$e.Option=de,$e.OptGroup=se;var Ee=$e},55477:function(e,t,n){n.d(t,{G:function(){return m},Z:function(){return v}});var r=n(14809),o=n(20439),i=n(62646),a=n(35593),l=n(59301),c={shiftX:64,adjustY:1},s={adjustX:1,shiftY:!0},u=[0,0],d={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:c,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:c,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:c,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:c,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:c,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:c,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:u}},p=n(92310),f=n.n(p);function m(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return l.createElement("div",{className:f()("".concat(n,"-content"),i),style:a},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=function(e,t){var n=e.overlayClassName,c=e.trigger,s=void 0===c?["hover"]:c,u=e.mouseEnterDelay,p=void 0===u?0:u,f=e.mouseLeaveDelay,h=void 0===f?.1:f,v=e.overlayStyle,b=e.prefixCls,y=void 0===b?"rc-tooltip":b,x=e.children,w=e.onVisibleChange,C=e.afterVisibleChange,S=e.transitionName,$=e.animation,E=e.motion,k=e.placement,I=void 0===k?"right":k,Z=e.align,N=void 0===Z?{}:Z,O=e.destroyTooltipOnHide,j=void 0!==O&&O,M=e.defaultVisible,P=e.getTooltipContainer,R=e.overlayInnerStyle,z=(e.arrowContent,e.overlay),T=e.id,L=e.showArrow,D=void 0===L||L,B=(0,i.Z)(e,g),A=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,(function(){return A.current}));var _=(0,o.Z)({},B);"visible"in e&&(_.popupVisible=e.visible);return l.createElement(a.Z,(0,r.Z)({popupClassName:n,prefixCls:y,popup:function(){return l.createElement(m,{key:"content",prefixCls:y,id:T,overlayInnerStyle:R},z)},action:s,builtinPlacements:d,popupPlacement:I,ref:A,popupAlign:N,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:$,popupMotion:E,defaultPopupVisible:M,autoDestroy:j,mouseLeaveDelay:h,popupStyle:v,mouseEnterDelay:p,arrow:D},_),x)},v=(0,l.forwardRef)(h)},39417:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(14809),o=n(4635),i=n(62646),a=n(20439),l=n(99153),c=n(84851),s=n(13028),u=n(19257),d=n(54941),p=n(92310),f=n.n(p),m=n(26112),g=n(59301),h=n(39378),v=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function c(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function s(e){return e.split("-")}function u(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}((0,a.Z)(t,e).children),n}function d(e){if(e.parent){var t=s(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function p(e,t,n,r,o,i,l,c,u,p){var f,m=e.clientX,g=e.clientY,h=e.target.getBoundingClientRect(),v=h.top,b=h.height,y=(("rtl"===p?-1:1)*(((null==o?void 0:o.x)||0)-m)-12)/r,x=(0,a.Z)(c,n.props.eventKey);if(g-1.5?i({dragNode:O,dropNode:j,dropPosition:1})?k=1:M=!1:i({dragNode:O,dropNode:j,dropPosition:0})?k=0:i({dragNode:O,dropNode:j,dropPosition:1})?k=1:M=!1:i({dragNode:O,dropNode:j,dropPosition:1})?k=1:M=!1,{dropPosition:k,dropLevelOffset:I,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:E,dropContainerKey:0===k?null:(null===(f=x.parent)||void 0===f?void 0:f.key)||null,dropAllowed:M}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function m(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.Z)(e))return(0,i.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function g(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=(0,a.Z)(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,r.Z)(n)}},90782:function(e,t,n){n.d(t,{S:function(){return l}});var r=n(48736),o=n(67841);function i(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function l(e,t,n,l){var c,s=[];c=l||a;var u,d=new Set(e.filter((function(e){var t=!!(0,o.Z)(n,e);return t||s.push(e),t}))),p=new Map,f=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=p.get(r);o||(o=new Set,p.set(r,o)),o.add(t),f=Math.max(f,r)})),(0,r.ZP)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),u=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,l=0;l<=n;l+=1)(t.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var c=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var i=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),l||!n&&!a.has(t)||(l=!0)})),i&&o.add(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(d,p,f,c):function(e,t,n,r,o){for(var a=new Set(e),l=new Set(t),c=0;c<=r;c+=1)(n.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)||l.has(t)||o(n)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));l=new Set;for(var s=new Set,u=r;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var r=!0,i=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),i||!n&&!l.has(t)||(i=!0)})),r||a.delete(t.key),i&&l.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(l,a))}}(d,t.halfCheckedKeys,p,f,c),u}},67841:function(e,t,n){function r(e,t){return e[t]}n.d(t,{Z:function(){return r}})},71430:function(e,t,n){n.d(t,{F:function(){return x},H8:function(){return y},I8:function(){return b},km:function(){return f},oH:function(){return h},w$:function(){return m},zn:function(){return g}});var r=n(93664),o=n(95190),i=n(20439),a=n(62646),l=n(11592),c=n(2738),s=n(48736),u=n(67841),d=["children"];function p(e,t){return"".concat(e,"-").concat(t)}function f(e,t){return null!=e?e:t}function m(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function g(e){return function e(t){return(0,l.Z)(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,s.ZP)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,l=(0,a.Z)(r,d),c=(0,i.Z)({key:n},l),u=e(o);return u.length&&(c.children=u),c})).filter((function(e){return e}))}(e)}function h(e,t,n){var r=m(n),a=r._title,l=r.key,s=r.children,u=new Set(!0===t?[]:t),d=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(m,g){for(var h,v=p(r?r.pos:"0",g),b=f(m[l],v),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,s=i||c,u={},d={},p={posEntities:u,keyEntities:d};return n&&(p=n(p)||p),v(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},s=f(i,o);u[o]=c,d[s]=c,c.parent=u[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,p)}),{externalGetKey:s,childrenPropName:a,fieldNames:l}),o&&o(p),p}function y(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,d=t.keyEntities,p=(0,u.Z)(d,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(p?p.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function x(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,c=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,p=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,h=(0,i.Z)((0,i.Z)({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:l,halfChecked:c,dragOver:u,dragOverGapTop:d,dragOverGapBottom:p,pos:f,active:m,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,s.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}},8224:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(4676);function o(e,t,n,o){var i=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}},55468:function(e,t,n){n.d(t,{g1:function(){return r},os:function(){return o}});function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},24514:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(47273),o=function(e){if((0,r.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function i(e,t){return Array.isArray(e)||void 0===t?o(e):function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},49658:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=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(e)||/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(null==e?void 0:e.substr(0,4))}},65283:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(14809),o=n(93664),i=n(20439),a=n(4635),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(29301),p=n(70425),f=n(34280),m=n(59301),g=n(4676),h=m.forwardRef((function(e,t){var n=e.height,o=e.offsetY,l=e.offsetX,c=e.children,s=e.prefixCls,p=e.onInnerResize,f=e.innerProps,g=e.rtl,h=e.extra,v={},b={display:"flex",flexDirection:"column"};return void 0!==o&&(v={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(o,"px)")},g?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:v},m.createElement(d.Z,{onResize:function(e){e.offsetHeight&&p&&p()}},m.createElement("div",(0,r.Z)({style:b,className:u()((0,a.Z)({},"".concat(s,"-holder-inner"),s)),ref:t},f),c,h)))}));h.displayName="Filler";var v=h;function b(e){var t=e.children,n=e.setRef,r=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:r})}function y(e,t,n){var r=m.useState(e),o=(0,l.Z)(r,2),i=o[0],a=o[1],c=m.useState(null),s=(0,l.Z)(c,2),u=s[0],d=s[1];return m.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||a(),!o.current&&r}};function S(e,t,n,r,o,i,a){var l=(0,m.useRef)(0),c=(0,m.useRef)(null),s=(0,m.useRef)(null),u=(0,m.useRef)(!1),d=C(t,n,r,o);var p=(0,m.useRef)(null),f=(0,m.useRef)(null);return[function(t){if(e){x.Z.cancel(f.current),f.current=(0,x.Z)((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,m=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(m=r,g=0,p.current="sx");var h=Math.abs(m),v=Math.abs(g);null===p.current&&(p.current=i&&h>v?"x":"y"),"y"===p.current?function(e,t){if(x.Z.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,s.current=t,w||n.preventDefault(),c.current=(0,x.Z)((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){a(t,!0),w||e.preventDefault()}(t,m)}},function(t){e&&(u.current=t.detail===s.current)}]}var $=n(99153),E=n(84851),k=function(){function e(){(0,$.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,E.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function I(e){var t=parseFloat(e);return isNaN(t)?0:t}var Z=14/15;function N(e){return Math.floor(Math.pow(e,.5))}function O(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var j=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,c=e.scrollRange,s=e.onStartMove,d=e.onStopMove,p=e.onScroll,f=e.horizontal,g=e.spinSize,h=e.containerSize,v=e.style,b=e.thumbStyle,y=e.showScrollBar,w=m.useState(!1),C=(0,l.Z)(w,2),S=C[0],$=C[1],E=m.useState(null),k=(0,l.Z)(E,2),I=k[0],Z=k[1],N=m.useState(null),j=(0,l.Z)(N,2),M=j[0],P=j[1],R=!r,z=m.useRef(),T=m.useRef(),L=m.useState(y),D=(0,l.Z)(L,2),B=D[0],A=D[1],_=m.useRef(),H=function(){!0!==y&&!1!==y&&(clearTimeout(_.current),A(!0),_.current=setTimeout((function(){A(!1)}),3e3))},K=c-h||0,F=h-g||0,W=m.useMemo((function(){return 0===o||0===K?0:o/K*F}),[o,K,F]),V=m.useRef({top:W,dragging:S,pageY:I,startTop:M});V.current={top:W,dragging:S,pageY:I,startTop:M};var X=function(e){$(!0),Z(O(e,f)),P(V.current.top),s(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=z.current,n=T.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",X,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",X)}}),[]);var G=m.useRef();G.current=K;var Y=m.useRef();Y.current=F,m.useEffect((function(){if(S){var e,t=function(t){var n=V.current,r=n.dragging,o=n.pageY,i=n.startTop;x.Z.cancel(e);var a=z.current.getBoundingClientRect(),l=h/(f?a.width:a.height);if(r){var c=(O(t,f)-o)*l,s=i;!R&&f?s-=c:s+=c;var u=G.current,d=Y.current,m=d?s/d:0,g=Math.ceil(m*u);g=Math.max(g,0),g=Math.min(g,u),e=(0,x.Z)((function(){p(g,f)}))}},n=function(){$(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),x.Z.cancel(e)}}}),[S]),m.useEffect((function(){return H(),function(){clearTimeout(_.current)}}),[o]),m.useImperativeHandle(t,(function(){return{delayHidden:H}}));var q="".concat(n,"-scrollbar"),U={position:"absolute",visibility:B?null:"hidden"},Q={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(U.height=8,U.left=0,U.right=0,U.bottom=0,Q.height="100%",Q.width=g,R?Q.left=W:Q.right=W):(U.width=8,U.top=0,U.bottom=0,R?U.right=0:U.left=0,Q.width="100%",Q.height=g,Q.top=W),m.createElement("div",{ref:z,className:u()(q,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(q,"-horizontal"),f),"".concat(q,"-vertical"),!f),"".concat(q,"-visible"),B)),style:(0,i.Z)((0,i.Z)({},U),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},m.createElement("div",{ref:T,className:u()("".concat(q,"-thumb"),(0,a.Z)({},"".concat(q,"-thumb-moving"),S)),style:(0,i.Z)((0,i.Z)({},Q),b),onMouseDown:X}))}));function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var P=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],R=[],z={overflowY:"auto",overflowAnchor:"none"};function T(e,t){var n=e.prefixCls,s=void 0===n?"rc-virtual-list":n,h=e.className,w=e.height,$=e.itemHeight,E=e.fullHeight,T=void 0===E||E,L=e.style,D=e.data,B=e.children,A=e.itemKey,_=e.virtual,H=e.direction,K=e.scrollWidth,F=e.component,W=void 0===F?"div":F,V=e.onScroll,X=e.onVirtualScroll,G=e.onVisibleChange,Y=e.innerProps,q=e.extraRender,U=e.styles,Q=e.showScrollBar,J=void 0===Q?"optional":Q,ee=(0,c.Z)(e,P),te=m.useCallback((function(e){return"function"==typeof A?A(e):null==e?void 0:e[A]}),[A]),ne=function(e,t,n){var r=m.useState(0),o=(0,l.Z)(r,2),i=o[0],a=o[1],c=(0,m.useRef)(new Map),s=(0,m.useRef)(new k),u=(0,m.useRef)(0);function d(){u.current+=1}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,l=r+I(i)+I(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,m.useEffect)((function(){return d}),[]),[function(r,o){var i=e(r),a=c.current.get(i);o?(c.current.set(i,o),p()):c.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},p,s.current,i]}(te,null,null),re=(0,l.Z)(ne,4),oe=re[0],ie=re[1],ae=re[2],le=re[3],ce=!(!1===_||!w||!$),se=m.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=ce&&D&&(Math.max($*D.length,se)>w||!!K),de="rtl"===H,pe=u()(s,(0,a.Z)({},"".concat(s,"-rtl"),de),h),fe=D||R,me=(0,m.useRef)(),ge=(0,m.useRef)(),he=(0,m.useRef)(),ve=(0,m.useState)(0),be=(0,l.Z)(ve,2),ye=be[0],xe=be[1],we=(0,m.useState)(0),Ce=(0,l.Z)(we,2),Se=Ce[0],$e=Ce[1],Ee=(0,m.useState)(!1),ke=(0,l.Z)(Ee,2),Ie=ke[0],Ze=ke[1],Ne=function(){Ze(!0)},Oe=function(){Ze(!1)},je={getKey:te};function Me(e){xe((function(t){var n=function(e){var t=e;Number.isNaN(Ue.current)||(t=Math.min(t,Ue.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return me.current.scrollTop=n,n}))}var Pe=(0,m.useRef)({start:0,end:fe.length}),Re=(0,m.useRef)(),ze=y(fe,te),Te=(0,l.Z)(ze,1)[0];Re.current=Te;var Le=m.useMemo((function(){if(!ce)return{scrollHeight:void 0,start:0,end:fe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:fe.length-1,offset:void 0};for(var t,n,r,o=0,i=fe.length,a=0;a=ye&&void 0===t&&(t=a,n=o),u>ye+w&&void 0===r&&(r=a),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(w/$)),void 0===r&&(r=fe.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,fe.length-1),offset:n}}),[ue,ce,ye,fe,le,w]),De=Le.scrollHeight,Be=Le.start,Ae=Le.end,_e=Le.offset;Pe.current.start=Be,Pe.current.end=Ae,m.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=fe[Be];if(r&&void 0===n)if(te(r)===t){var o=ae.get(t)-$;Me((function(e){return e+o}))}}ae.resetRecord()}),[De]);var He=m.useState({width:0,height:w}),Ke=(0,l.Z)(He,2),Fe=Ke[0],We=Ke[1],Ve=(0,m.useRef)(),Xe=(0,m.useRef)(),Ge=m.useMemo((function(){return M(Fe.width,K)}),[Fe.width,K]),Ye=m.useMemo((function(){return M(Fe.height,De)}),[Fe.height,De]),qe=De-w,Ue=(0,m.useRef)(qe);Ue.current=qe;var Qe=ye<=0,Je=ye>=qe,et=Se<=0,tt=Se>=K,nt=C(Qe,Je,et,tt),rt=function(){return{x:de?-Se:Se,y:ye}},ot=(0,m.useRef)(rt()),it=(0,p.zX)((function(e){if(X){var t=(0,i.Z)((0,i.Z)({},rt()),e);ot.current.x===t.x&&ot.current.y===t.y||(X(t),ot.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){$e(n)})),it()):Me(n)}var lt=function(e){var t=e,n=K?K-Fe.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ct=(0,p.zX)((function(e,t){t?((0,g.flushSync)((function(){$e((function(t){return lt(t+(de?-e:e))}))})),it()):Me((function(t){return t+e}))})),st=S(ce,Qe,Je,et,tt,!!K,ct),ut=(0,l.Z)(st,2),dt=ut[0],pt=ut[1];!function(e,t,n){var r,o=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),l=(0,m.useRef)(null),c=(0,m.useRef)(null),s=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=i.current-t,s=a.current-r,u=Math.abs(l)>Math.abs(s);u?i.current=t:a.current=r;var d=n(u,u?l:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?l*=Z:s*=Z;var e=Math.floor(u?l:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},u=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},(0,f.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(c.current)}}),[e])}(ce,me,(function(e,t,n,r){var o=r;return!nt(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){m.useEffect((function(){var r=t.current;if(e&&r){var o,i,a=!1,l=function(){x.Z.cancel(o)},c=function e(){l(),o=(0,x.Z)((function(){n(i),e()}))},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=O(e,!1),n=r.getBoundingClientRect(),o=n.top,s=n.bottom;t<=o?(i=-N(o-t),c()):t>=s?(i=N(t-s),c()):l()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),l()}}}),[e])}(ue,me,(function(e){Me((function(t){return t+e}))})),(0,f.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=Je&&e.detail>0;!ce||t||n||e.preventDefault()}var t=me.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",pt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",pt),t.removeEventListener("MozMousePixelScroll",e)}}),[ce,Qe,Je]),(0,f.Z)((function(){if(K){var e=lt(Se);$e(e),it({x:e})}}),[Fe.width,K]);var ft=function(){var e,t;null===(e=Ve.current)||void 0===e||e.delayHidden(),null===(t=Xe.current)||void 0===t||t.delayHidden()},mt=function(e,t,n,r,a,c,s,u){var d=m.useRef(),p=m.useState(null),g=(0,l.Z)(p,2),h=g[0],v=g[1];return(0,f.Z)((function(){if(h&&h.times<10){if(!e.current)return void v((function(e){return(0,i.Z)({},e)}));c();var o=h.targetAlign,l=h.originAlign,u=h.index,d=h.offset,p=e.current.clientHeight,f=!1,m=o,g=null;if(p){for(var b=o||l,y=0,x=0,w=0,C=Math.min(t.length-1,u),S=0;S<=C;S+=1){var $=a(t[S]);x=y;var E=n.get($);y=w=x+(void 0===E?r:E)}for(var k="top"===b?d:p-d,I=C;I>=0;I-=1){var Z=a(t[I]),N=n.get(Z);if(void 0===N){f=!0;break}if((k-=N)<=0)break}switch(b){case"top":g=x-d;break;case"bottom":g=w-p+d;break;default:var O=e.current.scrollTop;xO+p&&(m="bottom")}null!==g&&s(g),g!==h.lastTop&&(f=!0)}f&&v((0,i.Z)((0,i.Z)({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,e.current]),function(e){if(null!=e){if(x.Z.cancel(d.current),"number"==typeof e)s(e);else if(e&&"object"===(0,o.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else u()}}(me,fe,ae,$,te,(function(){return ie(!0)}),Me,ft);m.useImperativeHandle(t,(function(){return{nativeElement:he.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,o.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&$e(lt(e.left)),mt(e.top)):mt(e)}}})),(0,f.Z)((function(){if(G){var e=fe.slice(Be,Ae+1);G(e,fe)}}),[Be,Ae,fe]);var gt=function(e,t,n,r){var o=m.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=(0,l.Z)(o,2),a=i[0],c=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=a.get(o),s=a.get(i);if(void 0===l||void 0===s)for(var u=e.length,d=c.length;dw&&m.createElement(j,{ref:Ve,prefixCls:s,scrollOffset:ye,scrollRange:De,rtl:de,onScroll:at,onStartMove:Ne,onStopMove:Oe,spinSize:Ye,containerSize:Fe.height,style:null==U?void 0:U.verticalScrollBar,thumbStyle:null==U?void 0:U.verticalScrollBarThumb,showScrollBar:J}),ue&&K>Fe.width&&m.createElement(j,{ref:Xe,prefixCls:s,scrollOffset:Se,scrollRange:K,rtl:de,onScroll:at,onStartMove:Ne,onStopMove:Oe,spinSize:Ge,containerSize:Fe.width,horizontal:!0,style:null==U?void 0:U.horizontalScrollBar,thumbStyle:null==U?void 0:U.horizontalScrollBarThumb,showScrollBar:J}))}var L=m.forwardRef(T);L.displayName="List";var D=L},76374:function(e,t,n){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var $=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.Z=$},32637:function(e,t,n){e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/layouts__index.249d1868.async.js b/layouts__index.249d1868.async.js deleted file mode 100644 index 1880adae90..0000000000 --- a/layouts__index.249d1868.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1717],{89489:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},40001:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},49198:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},84105:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},18785:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},15277:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},33853:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},62772:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},38819:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},47472:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},35593:function(e,t,n){n.d(t,{Z:function(){return G}});var r=n(20439),o=n(50298),i=n(62646),a=n(43403),l=n(92310),c=n.n(l),s=n(29301),u=n(76846),d=n(96452),p=n(6089),f=n(80402),m=n(34280),g=n(49658),h=n(59301),v=n(14809),b=n(77900),y=n(8654);function x(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,u=void 0===s?0:s,d=o.y,p=void 0===d?0:d,f=h.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],x=v[0],w=v[1];b!==x&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=u}return h.createElement("div",{ref:f,className:c()("".concat(t,"-arrow"),a),style:m},l)}function w(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:c()("".concat(t,"-mask"),n)})})):null}var C=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var S=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,S=e.onClick,$=e.mask,E=e.arrow,k=e.arrowPos,I=e.align,Z=e.motion,N=e.maskMotion,O=e.forceRender,j=e.getPopupContainer,M=e.autoDestroy,P=e.portal,R=e.zIndex,z=e.onMouseEnter,T=e.onMouseLeave,L=e.onPointerEnter,D=e.ready,B=e.offsetX,A=e.offsetY,_=e.offsetR,H=e.offsetB,K=e.onAlign,F=e.onPrepare,W=e.stretch,V=e.targetWidth,X=e.targetHeight,G="function"==typeof n?n():n,Y=p||f,q=(null==j?void 0:j.length)>0,U=h.useState(!j||!q),Q=(0,o.Z)(U,2),J=Q[0],ee=Q[1];if((0,m.Z)((function(){!J&&q&&u&&ee(!0)}),[J,q,u]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(D||!p){var re,oe=I.points,ie=I.dynamicInset||(null===(re=I._experimental)||void 0===re?void 0:re.dynamicInset),ae=ie&&"r"===oe[0][1],le=ie&&"b"===oe[0][0];ae?(ne.right=_,ne.left=te):(ne.left=B,ne.right=te),le?(ne.bottom=H,ne.top=te):(ne.top=A,ne.bottom=te)}var ce={};return W&&(W.includes("height")&&X?ce.height=X:W.includes("minHeight")&&X&&(ce.minHeight=X),W.includes("width")&&V?ce.width=V:W.includes("minWidth")&&V&&(ce.minWidth=V)),p||(ce.pointerEvents="none"),h.createElement(P,{open:O||Y,getContainer:j&&function(){return j(u)},autoDestroy:M},h.createElement(w,{prefixCls:a,open:p,zIndex:R,mask:$,motion:N}),h.createElement(s.Z,{onResize:K,disabled:!p},(function(e){return h.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(a,"-hidden")},Z,{onAppearPrepare:F,onEnterPrepare:F,visible:p,onVisibleChanged:function(e){var t;null==Z||null===(t=Z.onVisibleChanged)||void 0===t||t.call(Z,e),d(e)}}),(function(n,o){var s=n.className,u=n.style,d=c()(a,s,i);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(k.x||0,"px"),"--arrow-y":"".concat(k.y||0,"px")},ne),ce),u),{},{boxSizing:"border-box",zIndex:R},l),onMouseEnter:z,onMouseLeave:T,onPointerEnter:L,onClick:S},E&&h.createElement(x,{prefixCls:a,arrow:E,arrowPos:k,align:I}),h.createElement(C,{cache:!p&&!g},G))}))})))}));var $=h.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=h.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,n.ref);return o?h.cloneElement(n,{ref:a}):n})),E=h.createContext(null);function k(e){return e?Array.isArray(e)?e:[e]:[]}function I(e,t,n,r){return h.useMemo((function(){var o=k(null!=n?n:t),i=k(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}var Z=n(29194);function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function O(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function z(e){return R(parseFloat(e),0)}function T(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=M(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=z(i),g=z(a),h=z(l),v=z(c),b=R(Math.round(s.width/p*1e3)/1e3),y=R(Math.round(s.height/u*1e3)/1e3),x=(p-f-h-v)*b,w=(u-d-m-g)*y,C=m*y,S=g*y,$=h*b,E=v*b,k=0,I=0;if("clip"===r){var Z=z(o);k=Z*b,I=Z*y}var N=s.x+$-k,O=s.y+C-I,j=N+s.width+2*k-$-E-x,P=O+s.height+2*I-C-S-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,O),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,P)}})),n}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function D(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[L(e.width,i),L(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function A(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function _(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function H(e,t,n,i,a,l,c){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,o.Z)(s,2),f=d[0],g=d[1],v=h.useRef(0),b=h.useMemo((function(){return t?P(t):[]}),[t]),y=h.useRef({});e||(y.current={});var x=(0,p.Z)((function(){if(t&&n&&e){var s,d,p,f=t,m=f.ownerDocument,h=M(f).getComputedStyle(f),v=h.width,x=h.height,w=h.position,C=f.style.left,S=f.style.top,$=f.style.right,E=f.style.bottom,k=f.style.overflow,I=(0,r.Z)((0,r.Z)({},a[i]),l),N=m.createElement("div");if(null===(s=f.parentElement)||void 0===s||s.appendChild(N),N.style.left="".concat(f.offsetLeft,"px"),N.style.top="".concat(f.offsetTop,"px"),N.style.position=w,N.style.height="".concat(f.offsetHeight,"px"),N.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();p={x:O.x,y:O.y,width:O.width,height:O.height}}var j=f.getBoundingClientRect(),P=m.documentElement,z=P.clientWidth,L=P.clientHeight,H=P.scrollWidth,K=P.scrollHeight,F=P.scrollTop,W=P.scrollLeft,V=j.height,X=j.width,G=p.height,Y=p.width,q={left:0,top:0,right:z,bottom:L},U={left:-W,top:-F,right:H-W,bottom:K-F},Q=I.htmlRegion,J="visible",ee="visibleFirst";"scroll"!==Q&&Q!==ee&&(Q=J);var te=Q===ee,ne=T(U,b),re=T(q,b),oe=Q===J?re:ne,ie=te?re:oe;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var ae=f.getBoundingClientRect();f.style.left=C,f.style.top=S,f.style.right=$,f.style.bottom=E,f.style.overflow=k,null===(d=f.parentElement)||void 0===d||d.removeChild(N);var le=R(Math.round(X/parseFloat(v)*1e3)/1e3),ce=R(Math.round(V/parseFloat(x)*1e3)/1e3);if(0===le||0===ce||(0,u.Sh)(n)&&!(0,Z.Z)(n))return;var se=I.offset,ue=I.targetOffset,de=D(j,se),pe=(0,o.Z)(de,2),fe=pe[0],me=pe[1],ge=D(p,ue),he=(0,o.Z)(ge,2),ve=he[0],be=he[1];p.x-=ve,p.y-=be;var ye=I.points||[],xe=(0,o.Z)(ye,2),we=xe[0],Ce=B(xe[1]),Se=B(we),$e=A(p,Ce),Ee=A(j,Se),ke=(0,r.Z)({},I),Ie=$e.x-Ee.x+fe,Ze=$e.y-Ee.y+me;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,r=j.x+e,o=j.y+t,i=r+X,a=o+V,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Ne,Oe,je,Me,Pe=wt(Ie,Ze),Re=wt(Ie,Ze,re),ze=A(p,["t","l"]),Te=A(j,["t","l"]),Le=A(p,["b","r"]),De=A(j,["b","r"]),Be=I.overflow||{},Ae=Be.adjustX,_e=Be.adjustY,He=Be.shiftX,Ke=Be.shiftY,Fe=function(e){return"boolean"==typeof e?e:e>=0};function Ct(){Ne=j.y+Ze,Oe=Ne+V,je=j.x+Ie,Me=je+X}Ct();var We=Fe(_e),Ve=Se[0]===Ce[0];if(We&&"t"===Se[0]&&(Oe>ie.bottom||y.current.bt)){var Xe=Ze;Ve?Xe-=V-G:Xe=ze.y-De.y-me;var Ge=wt(Ie,Xe),Ye=wt(Ie,Xe,re);Ge>Pe||Ge===Pe&&(!te||Ye>=Re)?(y.current.bt=!0,Ze=Xe,me=-me,ke.points=[_(Se,0),_(Ce,0)]):y.current.bt=!1}if(We&&"b"===Se[0]&&(NePe||Ue===Pe&&(!te||Qe>=Re)?(y.current.tb=!0,Ze=qe,me=-me,ke.points=[_(Se,0),_(Ce,0)]):y.current.tb=!1}var Je=Fe(Ae),et=Se[1]===Ce[1];if(Je&&"l"===Se[1]&&(Me>ie.right||y.current.rl)){var tt=Ie;et?tt-=X-Y:tt=ze.x-De.x-fe;var nt=wt(tt,Ze),rt=wt(tt,Ze,re);nt>Pe||nt===Pe&&(!te||rt>=Re)?(y.current.rl=!0,Ie=tt,fe=-fe,ke.points=[_(Se,1),_(Ce,1)]):y.current.rl=!1}if(Je&&"r"===Se[1]&&(jePe||it===Pe&&(!te||at>=Re)?(y.current.lr=!0,Ie=ot,fe=-fe,ke.points=[_(Se,1),_(Ce,1)]):y.current.lr=!1}Ct();var lt=!0===He?0:He;"number"==typeof lt&&(jere.right&&(Ie-=Me-re.right-fe,p.x>re.right-lt&&(Ie+=p.x-re.right+lt)));var ct=!0===Ke?0:Ke;"number"==typeof ct&&(Nere.bottom&&(Ze-=Oe-re.bottom-me,p.y>re.bottom-ct&&(Ze+=p.y-re.bottom+ct)));var st=j.x+Ie,ut=st+X,dt=j.y+Ze,pt=dt+V,ft=p.x,mt=ft+Y,gt=p.y,ht=gt+G,vt=(Math.max(st,ft)+Math.min(ut,mt))/2-st,bt=(Math.max(dt,gt)+Math.min(pt,ht))/2-dt;null==c||c(t,ke);var yt=ae.right-j.x-(Ie+j.width),xt=ae.bottom-j.y-(Ze+j.height);g({ready:!0,offsetX:Ie/le,offsetY:Ze/ce,offsetR:yt/le,offsetB:xt/ce,arrowX:vt/le,arrowY:bt/ce,scaleX:le,scaleY:ce,align:ke})}})),w=function(){g((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,m.Z)(w,[i]),(0,m.Z)((function(){e||w()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&x()}))}]}var K=n(95190);function F(e,t,n,r,o){(0,m.Z)((function(){if(e&&t&&n){var i=n,a=P(t),l=P(i),c=M(i),s=new Set([c].concat((0,K.Z)(a),(0,K.Z)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}n(48736);var W=n(16089);function V(e,t,n,r,i,a,l,c){var s=h.useRef(e),u=h.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),h.useEffect((function(){var e=(0,W.Z)((function(){u.current=!1}));return function(){W.Z.cancel(e)}}),[e]),h.useEffect((function(){if(t&&r&&(!i||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=l(n)},function(t){var n=t.target;u.current||!s.current||e||l(n)||c(!1)}]},p=e(),f=(0,o.Z)(p,2),m=f[0],g=f[1],h=e(),v=(0,o.Z)(h,2),b=v[0],y=v[1],x=M(r);x.addEventListener("mousedown",m,!0),x.addEventListener("click",g,!0),x.addEventListener("contextmenu",g,!0);var w=(0,d.A)(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){x.removeEventListener("mousedown",m,!0),x.removeEventListener("click",g,!0),x.removeEventListener("contextmenu",g,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0))}}}),[t,n,r,i,a])}var X=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,x=t.showAction,w=t.hideAction,C=t.popupVisible,k=t.defaultPopupVisible,Z=t.onPopupVisibleChange,N=t.afterPopupVisibleChange,M=t.mouseEnterDelay,P=t.mouseLeaveDelay,R=void 0===P?.1:P,z=t.focusDelay,T=t.blurDelay,L=t.mask,D=t.maskClosable,B=void 0===D||D,A=t.getPopupContainer,_=t.forceRender,K=t.autoDestroy,W=t.destroyPopupOnHide,G=t.popup,Y=t.popupClassName,q=t.popupStyle,U=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,le=t.onPopupAlign,ce=t.arrow,se=t.popupMotion,ue=t.maskMotion,de=t.popupTransitionName,pe=t.popupAnimation,fe=t.maskTransitionName,me=t.maskAnimation,ge=t.className,he=t.getTriggerDOMNode,ve=(0,i.Z)(t,X),be=K||W||!1,ye=h.useState(!1),xe=(0,o.Z)(ye,2),we=xe[0],Ce=xe[1];(0,m.Z)((function(){Ce((0,g.Z)())}),[]);var Se=h.useRef({}),$e=h.useContext(E),Ee=h.useMemo((function(){return{registerSubPopup:function(e,t){Se.current[e]=t,null==$e||$e.registerSubPopup(e,t)}}}),[$e]),ke=(0,f.Z)(),Ie=h.useState(null),Ze=(0,o.Z)(Ie,2),Ne=Ze[0],Oe=Ze[1],je=(0,p.Z)((function(e){(0,u.Sh)(e)&&Ne!==e&&Oe(e),null==$e||$e.registerSubPopup(ke,e)})),Me=h.useState(null),Pe=(0,o.Z)(Me,2),Re=Pe[0],ze=Pe[1],Te=h.useRef(null),Le=(0,p.Z)((function(e){(0,u.Sh)(e)&&Re!==e&&(ze(e),Te.current=e)})),De=h.Children.only(v),Be=(null==De?void 0:De.props)||{},Ae={},_e=(0,p.Z)((function(e){var t,n,r=Re;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Ne?void 0:Ne.contains(e))||(null===(n=(0,d.A)(Ne))||void 0===n?void 0:n.host)===e||e===Ne||Object.values(Se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),He=j(l,se,pe,de),Ke=j(l,ue,me,fe),Fe=h.useState(k||!1),We=(0,o.Z)(Fe,2),Ve=We[0],Xe=We[1],Ge=null!=C?C:Ve,Ye=(0,p.Z)((function(e){void 0===C&&Xe(e)}));(0,m.Z)((function(){Xe(C||!1)}),[C]);var qe=h.useRef(Ge);qe.current=Ge;var Ue=h.useRef([]);Ue.current=[];var Qe=(0,p.Z)((function(e){var t;Ye(e),(null!==(t=Ue.current[Ue.current.length-1])&&void 0!==t?t:Ge)!==e&&(Ue.current.push(e),null==Z||Z(e))})),Je=h.useRef(),et=function(){clearTimeout(Je.current)},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;et(),0===t?Qe(e):Je.current=setTimeout((function(){Qe(e)}),1e3*t)};h.useEffect((function(){return et}),[]);var nt=h.useState(!1),rt=(0,o.Z)(nt,2),ot=rt[0],it=rt[1];(0,m.Z)((function(e){e&&!Ge||it(!0)}),[Ge]);var at=h.useState(null),lt=(0,o.Z)(at,2),ct=lt[0],st=lt[1],ut=h.useState([0,0]),dt=(0,o.Z)(ut,2),pt=dt[0],ft=dt[1],mt=function(e){ft([e.clientX,e.clientY])},gt=H(Ge,Ne,ie?pt:Re,U,J,ee,le),ht=(0,o.Z)(gt,11),vt=ht[0],bt=ht[1],yt=ht[2],xt=ht[3],wt=ht[4],Ct=ht[5],St=ht[6],$t=ht[7],Et=ht[8],kt=ht[9],It=ht[10],Zt=I(we,y,x,w),Nt=(0,o.Z)(Zt,2),Ot=Nt[0],jt=Nt[1],Mt=Ot.has("click"),Pt=jt.has("click")||jt.has("contextMenu"),Rt=(0,p.Z)((function(){ot||It()}));F(Ge,Re,Ne,Rt,(function(){qe.current&&ie&&Pt&&tt(!1)})),(0,m.Z)((function(){Rt()}),[pt,U]),(0,m.Z)((function(){!Ge||null!=J&&J[U]||Rt()}),[JSON.stringify(ee)]);var zt=h.useMemo((function(){var e=O(J,l,kt,ie);return c()(e,null==re?void 0:re(kt))}),[kt,re,J,l,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Te.current,forceAlign:Rt}}));var Tt=h.useState(0),Lt=(0,o.Z)(Tt,2),Dt=Lt[0],Bt=Lt[1],At=h.useState(0),_t=(0,o.Z)(At,2),Ht=_t[0],Kt=_t[1],Ft=function(){if(ne&&Re){var e=Re.getBoundingClientRect();Bt(e.width),Kt(e.height)}};function Wt(e,t,n,r){Ae[e]=function(o){var i;null==r||r(o),tt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;"function"==typeof SuppressedError&&SuppressedError;var b=n(92310),y=n.n(b),x=n(59301),w=function(){var e=(0,x.useRef)(!1);return(0,x.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var C=function(e){var t=w(),n=v((0,x.useState)(e),2),r=n[0],o=n[1];return[r,(0,x.useCallback)((function(e){t.current||o(e)}),[])]};var S=function(e){var t=(0,x.useRef)(e);return t.current=e,t},$=function(e){(0,x.useEffect)((function(){e()}),[])};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 42px;\n height: var(--rcsc-control-height, 42px);\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-load-failed {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha-load-failed {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: #ccc;\n font-size: 85px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n border-radius: var(--rcsc-panel-border-radius, 2px);\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n");var E="rc-slider-captcha";function k(e){var t=0,n=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,n=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,n=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY),{clientX:t,clientY:n}}function I(e,t){if(void 0===t&&(t={}),e)for(var n in t)e.style[n]=t[n]}var Z="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener,N=Z&&"onpointerdown"in window,O=Z&&"ontouchstart"in window;function j(e,t){return"number"==typeof e&&!Number.isNaN(e)&&"number"==typeof t&&t>0?Number(e.toFixed(t)):e}var M="".concat(E,"-button"),P=function(e){var t,n=e.className,r=e.disabled,o=e.active,i=e.success,a=e.error,l=e.verify,c=e.buttonRef,s=m(e,["className","disabled","active","success","error","verify","buttonRef"]);return x.createElement("span",f({className:y()(M,n,(t={},t["".concat(M,"-disabled")]=r,t["".concat(M,"-active")]=o,t["".concat(M,"-verify")]=l,t["".concat(M,"-success")]=i,t["".concat(M,"-error")]=a,t["".concat(M,"-pc")]=!O,t)),ref:c},s))};P.displayName="SliderButton";var R,z="".concat(E,"-icon"),T=function(e){var t,n=e.className,r=e.spin,o=m(e,["className","spin"]);return x.createElement("span",f({className:y()(z,(t={},t["".concat(z,"-spin")]=r,t),n)},o))},L={arrowRight:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),x.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))}),null),check:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))}),null),loading:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),x.createElement("defs",null,x.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),x.createElement("g",null,x.createElement("use",{xlinkHref:"#l",opacity:".27"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),x.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))}),null),refresh:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))}),null),x:x.createElement((function(e){return x.createElement("svg",f({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),x.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))}),null),imageFill:x.createElement((function(e){return x.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16"},e),x.createElement("path",{d:"M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}))}),null)},D=function(e){var t=e.type,n=m(e,["type"]);return x.createElement(T,f({},n),L[t])};!function(e){e[e.Default=1]="Default",e[e.Loading=2]="Loading",e[e.Moving=3]="Moving",e[e.Verify=4]="Verify",e[e.Success=5]="Success",e[e.Error=6]="Error",e[e.LoadFailed=7]="LoadFailed"}(R||(R={}));var B,A="".concat(E,"-control"),_=function(e){var t,n=e.status,r=void 0===n?R.Default:n,o=e.isLimitErrors,i=e.tipText,a=e.tipIcon,l=e.sliderButtonProps,c=e.indicatorProps,s=e.controlRef,u=m(e,["status","isLimitErrors","tipText","tipIcon","sliderButtonProps","indicatorProps","controlRef"]),d=(0,x.useRef)(null),p=(0,x.useRef)(null),g=(0,x.useRef)(null),h=(0,x.useRef)({}),v=(0,x.useMemo)((function(){return f({default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:x.createElement(x.Fragment,null,x.createElement(D,{type:"x",style:{fontSize:20}})," 失败过多,点击重试"),loadFailed:"加载失败,点击重试"},i)}),[i]),b=(0,x.useMemo)((function(){return f({default:x.createElement(D,{type:"arrowRight"}),loading:x.createElement(D,{type:"loading",spin:!0}),error:x.createElement(D,{type:"x"}),success:x.createElement(D,{type:"check"})},a)}),[a]),w=(0,x.useMemo)((function(){var e;return(e={})[R.Default]=[v.default,b.default],e[R.Loading]=[v.loading,b.default],e[R.Moving]=[v.moving,b.default],e[R.Verify]=[v.verifying,b.loading],e[R.Error]=[v.error,b.error],e[R.Success]=[v.success,b.success],e[R.LoadFailed]=[v.loadFailed,b.default],e}),[v,b]),C=function(e){var t;return(e||"number"!=typeof h.current.sliderButtonWidth)&&(h.current.sliderButtonWidth=(null===(t=p.current)||void 0===t?void 0:t.clientWidth)||40),h.current.sliderButtonWidth},S=function(e){if(e||"number"!=typeof h.current.indicatorBorderWidth)if(g.current){var t=window.getComputedStyle(g.current);h.current.indicatorBorderWidth=parseInt(t.borderLeftWidth)+parseInt(t.borderRightWidth)}else h.current.indicatorBorderWidth=2;return h.current.indicatorBorderWidth},$=function(e){var t;return!e&&h.current.rect||d.current&&(h.current.rect=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect()),h.current.rect};(0,x.useImperativeHandle)(s,(function(){return{getSliderButtonWidth:C,getIndicatorBorderWidth:S,getRect:$,updateLeft:function(e){var t=C(),n=S();I(p.current,{left:e+"px"}),I(g.current,{width:e+t+n+"px"})}}}),[]);var E=r===R.Loading,k=r===R.Moving,Z=r===R.Verify,N=r===R.Success,O=r===R.Error,j=r===R.LoadFailed,M=o?v.errors:w[r][0];return x.createElement("div",f({},u,{className:y()(A,(t={},t["".concat(A,"-loading")]=E,t["".concat(A,"-moving")]=k,t["".concat(A,"-verify")]=Z,t["".concat(A,"-success")]=N,t["".concat(A,"-error")]=O,t["".concat(A,"-errors")]=o,t["".concat(A,"-load-failed")]=j,t),u.className),ref:d}),x.createElement("div",f({},c,{className:y()("".concat(A,"-indicator"),null==c?void 0:c.className),ref:g})),x.createElement(P,f({},l,{className:y()("".concat(A,"-button"),null==l?void 0:l.className),disabled:E,active:k,verify:Z,success:N,error:O,buttonRef:p}),w[r][1]),x.createElement("div",{className:y()("".concat(A,"-tips")),style:M?{}:{display:"none"}},M))},H="".concat(E,"-loading"),K=function(e){var t=e.icon,n=void 0===t?x.createElement(D,{type:"loading",spin:!0}):t,r=e.text,o=void 0===r?"加载中...":r,i=e.className,a=m(e,["icon","text","className"]);return x.createElement("div",f({className:y()(H,i)},a),x.createElement("div",{className:"".concat(H,"-icon")},n),x.createElement("div",{className:"".concat(H,"-text")},o))},F="".concat(E,"-jigsaw"),W={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},loadFailedIcon:x.createElement(D,{type:"imageFill"}),refreshIcon:x.createElement(D,{type:"refresh"})},V=function(e){var t,n,r=e.status,o=e.bgSize,i=void 0===o?W.bgSize:o,a=e.puzzleSize,l=void 0===a?W.puzzleSize:a,c=e.bgUrl,s=e.puzzleUrl,u=e.bgImgProps,d=e.puzzleImgProps,p=e.jigsawRef,g=e.loadingBoxProps,h=e.loadFailedIcon,v=void 0===h?W.loadFailedIcon:h,b=e.showRefreshIcon,w=void 0===b||b,C=e.refreshIcon,S=void 0===C?W.refreshIcon:C,$=e.disabledRefresh,k=e.onRefresh,Z=e.style,N=e.className,O=e.children,j=m(e,["status","bgSize","puzzleSize","bgUrl","puzzleUrl","bgImgProps","puzzleImgProps","jigsawRef","loadingBoxProps","loadFailedIcon","showRefreshIcon","refreshIcon","disabledRefresh","onRefresh","style","className","children"]),M=(0,x.useRef)(null);if((0,x.useImperativeHandle)(p,(function(){return{updateLeft:function(e){I(M.current,{left:e+"px"})}}})),r===R.Loading)return x.createElement(K,f({},g,{style:f(f({},null==g?void 0:g.style),i)}));if(r===R.LoadFailed||!c||!s)return x.createElement("div",{className:"".concat(E,"-load-failed"),style:i},v);var P=r===R.Verify||r===R.Error||r===R.Success;return x.createElement("div",f({className:y()(F,(t={},t["".concat(F,"-stop")]=P,t),N),style:f(f({},Z),i)},j),x.createElement("img",f({src:c,alt:""},u,{className:y()("".concat(F,"-bg"),null==u?void 0:u.className),style:f(f({},null==u?void 0:u.style),i)})),x.createElement("img",f({src:s,alt:""},d,{className:y()("".concat(F,"-puzzle"),null==d?void 0:d.className),style:f(f({},null==d?void 0:d.style),l),ref:M})),w&&r!==R.Success&&S&&x.createElement("div",{className:y()("".concat(F,"-refresh"),(n={},n["".concat(F,"-refresh-disabled")]=r===R.Verify||$,n)),onClick:function(){r===R.Verify||$||null==k||k()}},S),O)},X=N?{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}:O?{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}:{start:"mousedown",move:"mousemove",end:"mouseup",cancel:"touchcancel"},G=N?"onPointerDown":O?"onTouchStart":"onMouseDown";!function(e){e.Puzzle="puzzle",e.Button="button"}(B||(B={}));var Y=function(e){var t,n,r,o=e.mode,i=void 0===o?"embed":o,a=e.limitErrorCount,l=void 0===a?0:a,c=e.tipText,s=e.tipIcon,u=e.refreshIcon,d=e.bgSize,p=e.puzzleSize,m=e.request,v=e.autoRequest,b=void 0===v||v,w=e.onVerify,Z=e.autoRefreshOnError,N=void 0===Z||Z,M=e.actionRef,P=e.showRefreshIcon,z=void 0===P||P,T=e.jigsawContent,L=e.errorHoldDuration,D=void 0===L?500:L,A=e.loadingDelay,H=void 0===A?0:A,K=e.placement,F=void 0===K?"top":K,Y=e.loadingBoxProps,q=e.sliderButtonProps,U=e.precision,Q=void 0===U?7:U,J=e.className,ee=e.style,te=e.styles,ne=C(),re=ne[0],oe=ne[1],ie=C(R.Default),ae=ie[0],le=ie[1],ce=S(ae),se=(0,x.useRef)(null),ue=(0,x.useRef)(null),de=(0,x.useRef)(null),pe=(0,x.useMemo)((function(){return"float"===i||"slider"===i?i:"embed"}),[i]),fe=(0,x.useMemo)((function(){return void 0!==u?u:void 0!==(null==s?void 0:s.refresh)?s.refresh:void 0}),[u,s]),me=(0,x.useMemo)((function(){return f(f({},W.bgSize),d)}),[d]),ge=(0,x.useMemo)((function(){return f(f({},W.puzzleSize),p)}),[p]),he=(0,x.useMemo)((function(){return"bottom"===F?"top":"bottom"}),[F]),ve=(0,x.useRef)({isPressed:!1,trail:[],errorCount:0,startInfo:{x:0,y:0,timestamp:0},currentTargetType:B.Button,floatTransitionTimer:null,floatDelayShowTimer:null,floatDelayHideTimer:null,refreshTimer:null,loadingTimer:null,sliderButtonWidth:40,indicatorBorderWidth:2,ratio:1,buttonMaxDistance:0,puzzleMaxDistance:0}),be="slider"===pe,ye="number"==typeof H&&H>0,xe=ae===R.Error&&l>0&&ve.current.errorCount>=l,we=function(){var e;return(null===(e=se.current)||void 0===e?void 0:e.getRect(!0).height)||42},Ce=function(){return g(void 0,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:if(be)return[2];if(!m)return[3,4];ye?ve.current.loadingTimer=setTimeout((function(){le(R.Loading)}),H):le(R.Loading),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,m()];case 2:return e=t.sent(),ye&&clearTimeout(ve.current.loadingTimer),oe(e),le(R.Default),[3,4];case 3:return t.sent(),ye&&clearTimeout(ve.current.loadingTimer),le(R.LoadFailed),[3,4];case 4:return[2]}}))}))},Se=function(e){void 0===e&&(e=300),"float"===pe&&ce.current!==R.Success&&(clearTimeout(ve.current.floatTransitionTimer),clearTimeout(ve.current.floatDelayHideTimer),clearTimeout(ve.current.floatDelayShowTimer),ve.current.floatDelayShowTimer=setTimeout((function(){var e,t;I(de.current,{display:"block"}),null==(t=de.current)||t.scrollTop;var n=we()+"px";I(de.current,((e={})[he]=n,e.opacity="1",e))}),e))},$e=function(e){void 0===e&&(e=300),"float"===pe&&(clearTimeout(ve.current.floatTransitionTimer),clearTimeout(ve.current.floatDelayHideTimer),clearTimeout(ve.current.floatDelayShowTimer),ve.current.floatDelayHideTimer=setTimeout((function(){var e,t=we()/2+"px";I(de.current,((e={})[he]=t,e.opacity="0",e)),ve.current.floatTransitionTimer=setTimeout((function(){I(de.current,{display:"none"})}),300)}),e))},Ee=function(e){var t;be||null===(t=ue.current)||void 0===t||t.updateLeft(e)},ke=function(){var e;ve.current.isPressed=!1,le(R.Default),null===(e=se.current)||void 0===e||e.updateLeft(0),Ee(ge.left)},Ie=function(e){void 0===e&&(e=!1),e&&(ve.current.errorCount=0),clearTimeout(ve.current.refreshTimer),ce.current!==R.Loading&&(ke(),Ce())},Ze=function(e){if(ce.current===R.Default){e.preventDefault();var t=k(e),n=t.clientX,r=t.clientY;ve.current.startInfo={x:n,y:r,timestamp:(new Date).getTime()},ve.current.trail=[[n,r]],se.current&&(ve.current.sliderButtonWidth=se.current.getSliderButtonWidth(!0),ve.current.indicatorBorderWidth=se.current.getIndicatorBorderWidth(!0)),ve.current.buttonMaxDistance=me.width-ve.current.sliderButtonWidth-ve.current.indicatorBorderWidth,ve.current.puzzleMaxDistance=me.width-ge.width-ge.left,ve.current.ratio=ve.current.puzzleMaxDistance/ve.current.buttonMaxDistance,ve.current.currentTargetType===B.Puzzle&&(ve.current.ratio=1/ve.current.ratio),(O||"pen"===e.pointerType||"touch"===e.pointerType)&&Se(0),ve.current.isPressed=!0,document.addEventListener(X.move,Ne),document.addEventListener(X.end,Oe),document.addEventListener(X.cancel,Oe)}},Ne=function(e){var t;if(ve.current.isPressed){e.preventDefault();var n=k(e),r=n.clientX,o=n.clientY,i=r-ve.current.startInfo.x;ve.current.trail.push([r,o]),ce.current!==R.Moving&&i>0&&le(R.Moving);var a=i,l=i;ve.current.currentTargetType===B.Puzzle?(a=(i=Math.max(0,Math.min(i,ve.current.puzzleMaxDistance)))+ge.left,l=i*ve.current.ratio):(l=i=Math.max(0,Math.min(i,ve.current.buttonMaxDistance)),a=i*ve.current.ratio+ge.left),null===(t=se.current)||void 0===t||t.updateLeft(l),Ee(a)}},Oe=function(e){if(document.removeEventListener(X.move,Ne),document.removeEventListener(X.end,Oe),document.removeEventListener(X.cancel,Oe),ve.current.isPressed){if(ce.current!==R.Moving)return ve.current.isPressed=!1,void(O&&$e());if(w){ve.current.isPressed=!1,le(R.Verify);var t=(new Date).getTime(),n=k(e),r=n.clientX,o=n.clientY-ve.current.startInfo.y,i=r-ve.current.startInfo.x,a=i;ve.current.currentTargetType===B.Puzzle?a=(i=Math.max(0,Math.min(i,ve.current.puzzleMaxDistance)))*ve.current.ratio:(a=i=Math.max(0,Math.min(i,ve.current.buttonMaxDistance)),i*=ve.current.ratio),w({x:j(i,Q),y:j(o,Q),sliderOffsetX:j(a,Q),duration:t-ve.current.startInfo.timestamp,trail:ve.current.trail,targetType:ve.current.currentTargetType,errorCount:ve.current.errorCount}).then((function(){ve.current.errorCount=0,le(R.Success),$e()})).catch((function(){ve.current.errorCount+=1,le(R.Error),(O||"pen"===e.pointerType||"touch"===e.pointerType)&&$e(),(l<=0||ve.current.errorCount0)&&(r.forEach((function(e){e.wrap.apply(e.context,t)})),!0)},e}(),U={},Q=function(){function e(e){void 0===e&&(e="default"),this.scope=e,U[this.scope]||(U[this.scope]={}),this.data=U[this.scope]}return e.prototype.getItem=function(e){return e in this.data?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=t},e.prototype.removeItem=function(e){delete this.data[e]},e.prototype.clear=function(){U[this.scope]={},this.data=U[this.scope]},e}();function J(e){try{var t="object"==typeof e&&null!==e&&!!e.setItem&&!!e.getItem&&!!e.removeItem;if(t){var n=Math.random().toString(16).substring(2,8)+(new Date).getTime();if(e.setItem(n,"1"),"1"!==e.getItem(n))return!1;e.removeItem(n)}return t}catch(t){return console.error("[cache2] ".concat(e," is not supported. The default memory cache will be used.")),!1}}var ee=function(){function e(e,t){void 0===t&&(t={});var n=!!e&&J(e);this.options=f({needParsed:n,prefix:""},t),this.storage=n?e:new Q(this.options.memoryScope)}return e.prototype.getKey=function(e){return this.options.prefix+e},e.prototype.get=function(e){var t=this.storage.getItem(this.getKey(e));return this.options.needParsed?function(e,t){try{return JSON.parse(e,t)}catch(t){return e}}(t,this.options.reviver):t},e.prototype.set=function(e,t){this.storage.setItem(this.getKey(e),this.options.needParsed?function(e,t){return JSON.stringify(e,t)}(t,this.options.replacer):t)},e.prototype.del=function(e){this.storage.removeItem(this.getKey(e))},e.prototype.clear=function(){"function"==typeof this.storage.clear&&this.storage.clear()},e}(),te="default",ne=function(e){function t(t,n){var r,o=e.call(this)||this,i=te;return"string"==typeof t?i=t||te:"object"==typeof t&&(r=t),r||"object"!=typeof n||(r=n),o.options=f({max:-1,stdTTL:0,maxStrategy:"limited",checkperiod:0,prefix:"cache2_"},r),o.storage=new ee(o.options.storage,f({memoryScope:i},o.options)),o.cacheKey=i,o.startCheckperiod(),o}return p(t,e),t.prototype._check=function(e,t){var n=!0;return 0!==t.t&&t.t0?n+r:0,n:n}},t.prototype._isLimited=function(e){return this.options.max>-1&&e>=this.options.max},t.prototype._getReplaceKey=function(e,t){var n=e[0];return e.forEach((function(e){(t[e].t0&&this.setCacheValues(n),r},t.prototype.clear=function(){this.storage.del(this.cacheKey)},t.prototype.keys=function(){var e=this,t=this.cacheValues;return Object.keys(t).filter((function(n){return e._check(n,t[n])}))},t.prototype.has=function(e){var t=this.cacheValues[e];return!(!t||!this._check(e,t))},t.prototype.take=function(e){var t,n=this.cacheValues[e];return n&&this._check(e,n)&&(t=n.v,this.del(e)),t},t.prototype.ttl=function(e,t){var n=this.cacheValues,r=n[e];return!(!r||!this._check(e,r))&&(n[e]=this._wrap(r.v,t),!0)},t.prototype.getTtl=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].t},t.prototype.getLastModified=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].n},t.prototype.startCheckperiod=function(){var e=this;this.keys(),this.options.checkperiod>0&&(clearTimeout(this._checkTimeout),this._checkTimeout=setTimeout((function(){e.startCheckperiod()}),this.options.checkperiod))},t.prototype.stopCheckperiod=function(){clearTimeout(this._checkTimeout)},t}(q),re="undefined",oe="object",ie=Object.prototype,ae=ie.toString,le=(ie.hasOwnProperty,ie.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Function.prototype.toString,typeof Symbol!==re&&Symbol.prototype,Array.prototype.slice,Math.min),ce=Math.max,se=Math.random,ue=Math.floor,de=Math.ceil,pe=(Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,typeof globalThis===oe&&globalThis,typeof n.g===oe&&n.g,typeof self===oe&&self,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,"[object "),fe=pe+"String]",me=pe+"Symbol]",ge=(["Function","AsyncFunction","GeneratorFunction","Proxy"].map((function(e){return pe+e+"]"})),pe+"Blob]");function he(e){return ae.call(e)}var ve=function(){function e(e,t){void 0===t&&(t="uh_async_memo"),this.promiseCache={},this.cache=new ne(t,e)}return e.prototype.run=function(e,t,n){var r,o=this;if(!t||"string"!=typeof(r=t)&&he(r)!==fe)return e();var i=f({persisted:!0},n);if(i.persisted){var a=this.cache.get(t);if(a)return Promise.resolve(a)}return this.promiseCache[t]||(this.promiseCache[t]=e().then((function(e){return delete o.promiseCache[t],o.cache.set(t,e,i.ttl),e})).catch((function(e){return delete o.promiseCache[t],Promise.reject(e)}))),this.promiseCache[t]},e}(),be=typeof Blob!==re;function ye(e){return!!(be&&e instanceof Blob)||he(e)===ge}var xe,we="undefined"!=typeof URL,Ce=Object.keys,Se=(Object.values,we?URL.createObjectURL:(xe="",function(){return xe})),$e=we?URL.revokeObjectURL:function(){};var Ee=[200,304];function ke(e,t){return new Promise((function(n,r){var o,i,a,l,c,s,u,d,p,m,g,h,v,b,y,x,w,C,S,$,E,k,I,Z,N,O;ye(e)?n(e):(o=e,i=f({responseType:"blob"},t),a=i||{},l=a.method,c=void 0===l?"get":l,s=a.data,u=void 0===s?null:s,d=a.timeout,p=a.headers,m=a.withCredentials,g=void 0!==m&&m,h=a.async,v=void 0===h||h,b=a.user,y=void 0===b?null:b,x=a.password,w=void 0===x?null:x,C=a.responseType,S=a.onReadyStateChange,$=a.onLoadStart,E=a.onProgress,k=a.onAbort,I=a.onTimeout,Z=a.onError,N=a.onLoad,O=a.onLoadEnd,new Promise((function(e,t){var n=new XMLHttpRequest;n.open(c.toLowerCase(),o,v,y,w),S&&(n.onreadystatechange=S),"number"==typeof d&&d>0&&(n.timeout=d),n.withCredentials=g,C&&(n.responseType=C),"object"==typeof p&&Ce(p).map((function(e){n.setRequestHeader(e,p[e])}));var r,i=function(e){return function(r){t(r),null==e||e.call(n,r)}},a={loadstart:$,progress:E,abort:i(k),timeout:i(I),error:i(Z),load:(r=N,function(t){e(t),null==r||r.call(n,t)}),loadend:O};Ce(a).forEach((function(e){var t=a[e];t&&n.addEventListener(e,t)})),n.send(u)}))).then((function(t){var o=t.target.status;if(-1!==Ee.indexOf(o))n(t.target.response);else{var i=new Error("The file does not support get requests, responseStatus ".concat(o,", '").concat(e,"'."));console.error(i),r(i)}})).catch((function(e){console.error(new Error("Failed to request file. ".concat(e))),r(e)}))}))}function Ie(e,t){return ke(e,t).then((function(e){return function(e){return new Promise((function(t,n){var r=ye(e),o=r?Se(e):e,i=new Image;r||(i.crossOrigin="anonymous"),i.onload=function(){t(i)},i.onerror=function(t){r&&$e(o),console.error("[loadImage] The image load failed, '".concat(e,"'.")),n(t)},i.src=o}))}(e).then((function(t){return{blob:e,image:t}}))}))}function Ze(e){return"function"==typeof e||function(e){return null!==e&&"object"==typeof e}(e)}var Ne=/^0b[01]+$/i,Oe=/^0o[0-7]+$/i,je=/^[-+]0x[0-9a-f]+$/i;function Me(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||he(e)===me}(e))return NaN;if(Ze(e)&&(e=Number(e)),"string"!=typeof e)return 0===e?e:+e;e=e.trim();var t=Ne.test(e);return t||Oe.test(e)?parseInt(e.slice(2),t?2:8):je.test(e)?NaN:+e}function Pe(e){return e?(e=Me(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Re(e,t){void 0===e&&(e=0),void 0===t&&(t=1),e=Pe(e),t=Pe(t);var n=de(le(e,t)||0),r=ue(ce(e,t)||0);if(n>r){var o=n;n=r,r=o}return ue(n+se()*(r-n+1))}var ze,Te=Math.PI;!function(e){e[e.None=0]="None",e[e.Outer=1]="Outer",e[e.Inner=2]="Inner"}(ze||(ze={}));var Le=[ze.None,ze.Outer,ze.Inner];function De(e){return e[Re(0,e.length-1)]}function Be(e){var t={top:De(Le),right:De(Le),bottom:De(Le),left:De(Le)},n=Object.keys(t),r=["top","bottom"],o=["left","right"];if(t.top===ze.Outer&&t.bottom===ze.Outer?t[De(r)]=ze.Inner:t.top!==ze.Outer&&t.bottom!==ze.Outer&&(t[De(r)]=ze.Outer),t.left===ze.Outer&&t.right===ze.Outer?t[De(o)]=ze.Inner:t.left!==ze.Outer&&t.right!==ze.Outer&&(t[De(o)]=ze.Outer),e){var i=[],a=[];n.forEach((function(e){t[e]===ze.Inner?i.push(e):t[e]===ze.None&&a.push(e)})),2===e?i.forEach((function(e){return t[e]=ze.None})):3===e?0===i.length?t[De(a)]=ze.Inner:2===i.length&&(t[De(i)]=ze.None):4==e&&a.forEach((function(e){return t[e]=ze.Inner}))}return t}function Ae(e,t){void 0===t&&(t={});var n=t.x,r=void 0===n?0:n,o=t.y,i=void 0===o?0:o,a=t.w,l=void 0===a?60:a,c=t.h,s=void 0===c?60:c,u=t.needClosePath,d=void 0===u||u,p=t.points,f=t.margin,m=void 0===f?0:f;m=m<=0?0:m,"number"!=typeof p&&p||(p=Be(p));var g=.15*(Math.min(l,s)-2*m),h=Math.hypot(g,g)/2,v=g+h,b={x:r+m,y:i+m,w:l-v-2*m,h:s-v-2*m},y=b.w/2,x=b.h/2;p.left===ze.Outer&&(b.x+=v),p.top===ze.Outer&&(b.y+=v),e.beginPath(),e.lineWidth=2,e.moveTo(b.x,b.y),p.top!==ze.None&&(e.lineTo(b.x+y-h,b.y),p.top===ze.Inner?e.arc(b.x+y,b.y+h,g,1.25*Te,1.75*Te,!0):e.arc(b.x+y,b.y-h,g,.75*Te,.25*Te)),e.lineTo(b.x+b.w,b.y),p.right!==ze.None&&(e.lineTo(b.x+b.w,b.y+x-h),p.right===ze.Inner?e.arc(b.x+b.w-h,b.y+x,g,1.75*Te,.25*Te,!0):e.arc(b.x+b.w+h,b.y+x,g,1.25*Te,.75*Te)),e.lineTo(b.x+b.w,b.y+b.h),p.bottom!==ze.None&&(e.lineTo(b.x+y+h,b.y+b.h),p.bottom===ze.Inner?e.arc(b.x+y,b.y+b.h-h,g,.25*Te,.75*Te,!0):e.arc(b.x+y,b.y+b.h+h,g,1.75*Te,1.25*Te)),e.lineTo(b.x,b.y+b.h),p.left!==ze.None&&(e.lineTo(b.x,b.y+x+h),p.left===ze.Inner?e.arc(b.x+h,b.y+x,g,.75*Te,1.25*Te,!0):e.arc(b.x-h,b.y+x,g,.25*Te,1.75*Te)),e.lineTo(b.x,b.y),e.stroke(),d&&e.closePath()}function _e(e,t,n,r){return new Promise((function(o){t?e.toBlob((function(t){o(t?URL.createObjectURL(t):e.toDataURL(n,r))}),n,r):o(e.toDataURL(n,r))}))}var He=new ve({max:5,maxStrategy:"replaced"});He.cache.on("del",(function(e,t){try{t.image.src&&URL.revokeObjectURL(t.image.src)}catch(e){}}));var Ke=new WeakMap,Fe="image/jpeg",We="image/png",Ve=[];function Xe(e,t){void 0===t&&(t={});var n=t.borderWidth,r=void 0===n?2:n,o=t.borderColor,i=void 0===o?"rgba(255,255,255,0.7)":o,a=t.fillColor,l=void 0===a?"rgba(255,255,255,0.7)":a,c=t.points,s=t.width,u=void 0===s?60:s,d=t.height,p=void 0===d?60:d,f=t.x,m=t.y,g=t.margin,h=void 0===g?2:g,v=t.equalHeight,b=void 0===v||v,y=t.imageWidth,x=t.imageHeight,w=t.bgWidth,C=t.bgHeight,S=t.bgOffset,$=void 0===S?[0,0]:S,E=t.bgImageType,k=void 0===E?Fe:E,I=t.quality,Z=void 0===I?.8:I,N=t.format,O=void 0===N?"dataURL":N,j=t.cacheImage,M=void 0===j||j,P=t.autoRevokePreviousBlobUrl,R=void 0===P||P,z=t.ajaxOptions;return new Promise((function(t,n){var o=document.createElement("canvas"),a=document.createElement("canvas"),s=o.getContext("2d"),d=a.getContext("2d"),g=M?function(e){if(!Ze(e))return String(e);if(!Ke.get(e)){var t="_"+Date.now();Ke.set(e,t)}return Ke.get(e)}(e):void 0;He.run((function(){return Ie(e,z)}),g).then((function(e){var g=e.image;y&&(g.width=y),x&&(g.height=x);var v="number"==typeof w&&w>0?w>u?w:u:g.width,S="number"==typeof C&&C>0?C>p?C:p:g.height;o.width=v,o.height=S;var E=v-u,I=S-p,N=void 0===f?Re(u,E):f||0,j=void 0===m?Re(0,I):m||0;N<0?N=0:N>E&&(N=E),j<0?j=0:j>I&&(j=I);var M="number"!=typeof c&&c?c:Be(c),P="function"==typeof $?$(g.width,g.height):$;s.strokeStyle=i,s.lineWidth=r,s.fillStyle=l,Ae(s,{x:N,y:j,w:u,h:p,points:M,margin:h}),s.fillStyle=l,s.fill(),s.globalCompositeOperation="destination-over",s.drawImage(g,P[0],P[1],g.width,g.height),a.width=v,a.height=S,d.strokeStyle=i,d.lineWidth=r,Ae(d,{x:N,y:j,w:u,h:p,points:M,margin:h}),d.globalCompositeOperation="destination-over",d.clip(),d.drawImage(g,P[0],P[1],g.width,g.height);var z=d.getImageData(N,j,u,p);d.clearRect(0,0,v,S),a.width=u,a.height=b?S:p,d.putImageData(z,0,b?j:0);var T="blob"===O,L=_e(a,T,We,Z),D=_e(o,T,k,Z);Promise.all([L,D]).then((function(e){var n=e[0],r=e[1];R&&(Ve.length&&(Ve.forEach((function(e){URL.revokeObjectURL(e)})),Ve.length=0),T&&Ve.push(r,n)),t({puzzleUrl:n,bgUrl:r,x:N,y:b?0:j})})).catch(n)})).catch(n)}))}var Ge=n(73677),Ye=n(3113),qe=n(37712),Ue=function(e){var t=e.ModalProps,n=e.onFinish,r=(0,x.useState)(),i=u()(r,2),l=i[0],s=i[1],d=(0,x.useRef)(),p=function(){var e=c()(a()().mark((function e(){var t,n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/images/VerifCodeBg/img".concat(Math.floor(23*Math.random())+1,".jpg"),e.next=3,Xe(t,{imageHeight:180,imageWidth:360});case 3:return n=e.sent,s(n),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!=t&&t.x&&t.x>l.x-5&&t.x({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),O=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},(0,I.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},j=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:f}=e;return{[t]:{"&-success":N(o,r,n,e,t),"&-info":N(f,p,d,e,t),"&-warning":N(l,a,i,e,t),"&-error":Object.assign(Object.assign({},N(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},M=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},P=e=>[O(e),j(e),M(e)];var R=(0,Z.Z)("Alert",(e=>[P(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=T[r]||null;return t?(0,E.wm)(t,d.createElement("span",{className:`${n}-icon`},t),(()=>({className:C()(`${n}-icon`,{[t.props.className]:t.props.className})}))):d.createElement(o,{className:`${n}-icon`})},D=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o}=e,i=!0===r||void 0===r?d.createElement(b.Z,null):r;return t?d.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i):null};var B=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:i,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:s,onClick:u,afterClose:p,showIcon:f,closable:m,closeText:g,closeIcon:h,action:v}=e,b=z(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[y,x]=d.useState(!1);const w=d.useRef(null),{getPrefixCls:E,direction:I,alert:Z}=d.useContext(k.E_),N=E("alert",n),[O,j]=R(N),M=t=>{var n;x(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},P=d.useMemo((()=>void 0!==e.type?e.type:o?"warning":"info"),[e.type,o]),T=d.useMemo((()=>!!g||("boolean"==typeof m?m:!1!==h&&null!=h)),[g,h,m]),B=!(!o||void 0!==f)||f,A=C()(N,`${N}-${P}`,{[`${N}-with-description`]:!!t,[`${N}-no-icon`]:!B,[`${N}-banner`]:!!o,[`${N}-rtl`]:"rtl"===I},null==Z?void 0:Z.className,i,a,j),_=(0,$.Z)(b,{aria:!0,data:!0});return O(d.createElement(S.ZP,{visible:!y,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:p},(n=>{let{className:o,style:i}=n;return d.createElement("div",Object.assign({ref:w,"data-show":!y,className:C()(A,o),style:Object.assign(Object.assign(Object.assign({},null==Z?void 0:Z.style),l),i),onMouseEnter:c,onMouseLeave:s,onClick:u,role:"alert"},_),B?d.createElement(L,{description:t,icon:e.icon,prefixCls:N,type:P}):null,d.createElement("div",{className:`${N}-content`},r?d.createElement("div",{className:`${N}-message`},r):null,t?d.createElement("div",{className:`${N}-description`},t):null),v?d.createElement("div",{className:`${N}-action`},v):null,d.createElement(D,{isClosable:T,prefixCls:N,closeIcon:g||h,handleClose:M}))})))},A=n(99153),_=n(84851),H=n(19257),K=n(54941);let F=function(e){(0,H.Z)(n,e);var t=(0,K.Z)(n);function n(){var e;return(0,A.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,_.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:r,info:o}=this.state,i=o&&o.componentStack?o.componentStack:null,a=void 0===e?(r||"").toString():e,l=void 0===t?i:t;return r?d.createElement(B,{type:"error",message:a,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):n}}]),n}(d.Component);var W=F;const V=B;V.ErrorBoundary=W;var X=V,G=n(10249),Y=n(23003),q=n(94706),U=n(37712),Q=(0,q.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.data),r=e.accountInfo,i=e.open,l=p.Z.useForm(),s=u()(l,1)[0],h=(0,q.useSearchParams)(),v=u()(h,1)[0],b=(0,q.useLocation)(),y=(0,d.useState)(!1),x=u()(y,2),w=x[0],C=x[1],S=(0,d.useState)(""),$=u()(S,2),E=($[0],$[1]),k=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;(0,d.useEffect)((function(){C(i)}),[i]);var I=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,U.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,U.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],Z=function(){var e=c()(o()().mark((function e(){var n,i,l,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(null==r||!r.code){e.next=8;break}return e.next=5,(0,Y.Gq)(a()(a()({},r),{},{phone:null==r?void 0:r.login},s.getFieldValue()));case 5:i=e.sent,e.next=11;break;case 8:return e.next=10,(0,Y.Es)(a()(a()({},r),s.getFieldValue()));case 10:i=e.sent;case 11:if(!i.status){e.next=18;break}if(-4!==i.status){e.next=16;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:i.user,loginInfo:r}}),e.abrupt("return");case 16:return E(null===(l=i)||void 0===l?void 0:l.message),e.abrupt("return");case 18:if(C(!1),null!==(n=i)&&void 0!==n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null===(c=i)||void 0===c?void 0:c.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==b.pathname&&"/login"!==b.pathname){e.next=35;break}if(!(u=v.get("form")||v.get("back_url"))){e.next=26;break}window.location.href=decodeURIComponent(u),e.next=33;break;case 26:if(k.test(r.password)||null!=r&&r.code){e.next=31;break}f.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure",e.next=33;break;case 31:return window.location.href="/",e.abrupt("return");case 33:e.next=43;break;case 35:if(k.test(r.password)||null!=r&&r.code){e.next=41;break}f.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure?active=3",t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=43;break;case 41:return window.location.reload(),e.abrupt("return");case 43:s.resetFields();case 44:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,U.jsxs)(m.Z,{title:"登录提示",width:600,onOk:Z,onCancel:function(){return C(!1)},centered:!0,keyboard:!1,closable:!1,maskClosable:!1,open:w,children:[(0,U.jsx)("p",{className:"tc",children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。"}),(0,U.jsx)("div",{className:"mt20",children:(0,U.jsx)(g.Z,{pagination:{hideOnSinglePage:!0},dataSource:n||[],columns:I})}),(0,U.jsx)("div",{className:"mt20 mb20",children:(0,U.jsx)(X,{message:"请监考老师输入的考试解锁码,授权当前学生登录平台。",type:"warning"})}),(0,U.jsx)(p.Z,{name:"global_state",autoComplete:"off",form:s,children:(0,U.jsx)(p.Z.Item,{name:"unlock_key",label:"考试解锁码",rules:[{required:!0,message:"请输入解锁码"}],children:(0,U.jsx)(G.Z.Password,{autoComplete:"off"})})})]})}))},41741:function(e,t,n){n.r(t),n.d(t,{default:function(){return Ot}});var r=n(7557),o=n.n(r),i=n(82242),a=n.n(i),l=n(41498),c=n.n(l),s=n(79800),u=n.n(s),d=n(39647),p=n.n(d),f=n(59301),m=n(92736),g=n(81863),h=n(73677),v=n(94706),b=n(83447),y=n(8591),x=n(10249),w=n(24905),C=n(3113),S=n(23003),$=n(99267),E=n(87318),k="login-panel-wrapper2___HuMNJ",I="login-panel-right-wrp___vWD_i",Z="res-error-values___hV1lz",N="password___whzyL",O="tabs___EwOAX",j=n(28209),M=n.n(j),P=n(37712),R={height:48,borderRadius:4},z=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.user),r=e.setusername,i=b.Z.useForm(),l=u()(i,1)[0],s=(0,v.useSearchParams)(),d=u()(s,1)[0],p=(0,v.useLocation)(),m=(0,f.useState)(""),g=u()(m,2),h=g[0],k=g[1],I=(0,f.useState)([]),O=u()(I,2),j=O[0],z=O[1],T=(0,f.useState)({}),L=u()(T,2),D=L[0],B=L[1],A=(0,f.useState)(!1),_=u()(A,2),H=_[0],K=_[1],F=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,W=function(){var e=c()(o()().mark((function e(n){var i,c,s,u,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(!1),F.test(n.password)||r(n.login),i=a()({},n),c=M().enc.Utf8.parse("5183666c72eec9e4"),s=M().AES.encrypt(n.password||"",c,{iv:c,mode:M().mode.CBC}),i.password=s.toString(),B(a()({},n)),e.next=9,(0,S.Es)(i);case 9:if(!(u=e.sent).status){e.next=23;break}if(-4!==u.status){e.next=17;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:u.user,loginInfo:i}}),e.abrupt("return");case 17:if(-5!==u.status){e.next=21;break}return z([null==u?void 0:u.message]),K(!0),e.abrupt("return");case 21:return k(null==u?void 0:u.message),e.abrupt("return");case 23:if(null!=u&&u.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==u?void 0:u.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==p.pathname&&"/login"!==p.pathname){e.next=37;break}if(!(f=d.get("form")||d.get("back_url"))){e.next=30;break}window.location.href=decodeURIComponent(f),e.next=35;break;case 30:if(F.test(n.password)){e.next=34;break}return y.ZP.info("系统检测您的密码强度过低,请及时修改"),e.next=34,new Promise((function(e){return setTimeout(e,300)}));case 34:window.location.href="/";case 35:e.next=42;break;case 37:if(F.test(n.password)){e.next=41;break}return y.ZP.info("系统检测您的密码强度过低,请及时修改"),e.next=41,new Promise((function(e){return setTimeout(e,300)}));case 41:window.location.reload();case 42:l.resetFields();case 43:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(b.Z,{layout:"vertical",form:l,initialValues:{autologin:!0,login:n.actionTabs.phone},onFinish:W,onValuesChange:function(e){k("");if("password"in e){var t=e.password.replace(/[\u4e00-\u9fa5]/g,"");l.setFieldsValue({password:t})}},children:[!!h&&(0,P.jsxs)("div",{className:Z,children:[(0,P.jsx)("span",{children:h}),(0,P.jsx)($.Z,{onClick:function(){return k("")}})]}),(0,P.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入用户名、手机号或邮箱"}],children:(0,P.jsx)(x.Z,{style:R,size:"middle",placeholder:"请输入有效的手机号/邮箱号/账号",onBlur:function(){t({type:"user/setActionTabs",payload:{phone:l.getFieldValue("login")}})}})}),(0,P.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"}],children:(0,P.jsx)(x.Z.Password,{className:N,style:R,size:"middle",placeholder:"密码"})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)("div",{className:"flex-container",style:{justifyContent:"space-between"},children:[(0,P.jsx)(b.Z.Item,{name:"autologin",noStyle:!0,valuePropName:"checked",children:(0,P.jsx)(w.Z,{children:"下次自动登录"})}),(0,P.jsx)("div",{})]})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsx)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,className:"font16",style:R,children:"登录"})})]}),(0,P.jsx)(E.Z,{open:H,data:j,accountInfo:a()({},D)})]})})),T=n(6848),L=n(1079),D=n(31138),B={height:48},A=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,_=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,H={timer:0},K=function(e){return e[e.setTimer=0]="setTimer",e}(K||{});function F(e,t){if(t.type===K.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var W=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,n=e.validateName,r=e.getCode,i=e.register,a=e.style,l=void 0===a?{}:a,s=e.buttonText,d=void 0===s?"注册":s,p=e.globalSetting,m=b.Z.useForm(),g=u()(m,1)[0],h=(0,f.useReducer)(F,H),v=u()(h,2),y=v[0],w=v[1],S=(0,f.useState)(!1),$=u()(S,2),E=$[0],k=$[1],I=y.timer,Z=(0,f.useState)(!1),N=u()(Z,2),O=N[0],j=N[1];function M(){return M=c()(o()().mark((function e(t){var n,r,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,r=t.password,a=t.code,e.next=3,i({login:n,password:r,code:a});case 3:if(l=e.sent,c=l.message,!(l.status<0)){e.next=9;break}return g.setFields([{name:"code",errors:[c]}]),e.abrupt("return");case 9:window.location.reload();case 10:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function R(){return z.apply(this,arguments)}function z(){return z=c()(o()().mark((function e(){var t,r,i,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=g.getFieldValue("login"),r=0,A.test(t)&&!(t.indexOf(" ")>-1)){e.next=6;break}return g.setFields([{name:"login",errors:["请输入正确的手机号或邮箱"]}]),r=1,e.abrupt("return",r);case 6:return e.next=8,n({login:t,type:1});case 8:return i=e.sent,a=i.status,l=i.message,a>0?r=2:(g.setFields([{name:"login",errors:[l]}]),r=1),e.abrupt("return",r);case 14:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}var W=function(){var e=c()(o()().mark((function e(){var t,i,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k(!0),g.getFieldValue("verify"),t=g.getFieldValue("login")){e.next=7;break}g.validateFields(["login"]),e.next=20;break;case 7:return e.next=9,n({login:t,type:1});case 9:if(1===(null==(i=e.sent)?void 0:i.status)){e.next=13;break}return g.setFields([{name:"login",errors:[null==i?void 0:i.message]}]),e.abrupt("return");case 13:return e.next=15,r({login:t,type:1,smscode:(0,L.M)(t)});case 15:a=e.sent,l=a.status,c=a.message,l<0&&g.setFields([{name:"code",errors:[c]}]),w({type:K.setTimer,payload:60});case 20:k(!1);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){I>0&&setTimeout((function(){w({type:K.setTimer,payload:I-1})}),1e3)}),[I]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(b.Z,{layout:"vertical",form:g,style:l,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return M.apply(this,arguments)},children:[(0,P.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):A.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,P.jsx)(x.Z,{style:B,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onBlur:function(){return R},onChange:function(){return g.setFieldsValue({verify:0})}})}),!(null!=p&&null!==(t=p.setting)&&void 0!==t&&t.is_local)&&(0,P.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,P.jsx)(x.Z,{suffix:(0,P.jsxs)(C.ZP,{loading:E,type:"link",onClick:function(e){e.stopPropagation(),g.getFieldValue("login")?j(!0):g.validateFields(["login"])},disabled:I>0,children:[" ",0===I?"获取验证码":"".concat(I,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!_.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位密码,区分大小写、不能使用空格")}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:B,size:"middle",placeholder:"请输入8~16位字符,字母、数字和特殊符号至少包含2种"})})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:B,className:"font16",children:[" ",d," "]})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:0,paddingBottom:35},children:["注册并登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]}),(0,P.jsx)(D.Z,{ModalProps:{open:O,onCancel:function(){j(!1)}},onFinish:function(){j(!1),W()}})]})})),V=n(89392),X={height:48},G=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,Y=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,q={timer:0},U=function(e){return e[e.setTimer=0]="setTimer",e}(U||{});function Q(e,t){if(t.type===U.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var J=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,n=e.validateName,r=e.getCode,i=e.register,a=e.style,l=void 0===a?{}:a,s=e.buttonText,d=void 0===s?"注册":s,p=e.globalSetting,m=b.Z.useForm(),g=u()(m,1)[0],h=(0,f.useReducer)(Q,q),v=u()(h,2),y=v[0],w=v[1],S=(0,f.useState)(!1),$=u()(S,2),E=$[0],k=$[1],I=y.timer,Z=(0,f.useState)(!1),N=u()(Z,2),O=N[0],j=N[1];function M(){return M=c()(o()().mark((function e(t){var n,r,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,r=t.new_password,a=t.code,e.next=3,i({login:n,new_password:r,code:a});case 3:if(l=e.sent,c=l.message,!(l.status<0)){e.next=9;break}return g.setFields([{name:"code",errors:[c]}]),e.abrupt("return");case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}var R=function(){var e=c()(o()().mark((function e(){var t,n,i,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g.getFieldValue("verify"),t=g.getFieldValue("login"),e.next=4,g.validateFields(["login"]);case 4:if(t){e.next=8;break}g.validateFields(["login"]),e.next=17;break;case 8:return k(!0),e.next=11,r({login:t,type:2,smscode:(0,L.M)(t)});case 11:n=e.sent,i=n.status,a=n.message,i<0&&g.setFields([{name:"code",errors:[a]}]),w({type:U.setTimer,payload:60}),k(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){I>0&&setTimeout((function(){w({type:U.setTimer,payload:I-1})}),1e3)}),[I]);var z=function(){var e=c()(o()().mark((function e(t,r){var i,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(!(r.indexOf(" ")>-1)){e.next=4;break}return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 4:if(!G.test(r)){e.next=18;break}return e.next=7,n({login:r,type:2});case 7:if(i=e.sent,a=i.status,l=i.message,!(a>0)){e.next=15;break}return e.abrupt("return",Promise.resolve());case 15:return e.abrupt("return",Promise.reject(l));case 16:e.next=19;break;case 18:return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 19:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(b.Z,{layout:"vertical",form:g,style:l,initialValues:{autologin:!0,protool:!1},onFinish:(0,V.throttle)((function(e){return M.apply(this,arguments)}),2e3),children:[(0,P.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:(0,V.throttle)(z,400)}],children:(0,P.jsx)(x.Z,{style:X,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onChange:function(){return g.setFieldsValue({verify:0})}})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"new_password",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!Y.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格")}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:X,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),!(null!=p&&null!==(t=p.setting)&&void 0!==t&&t.is_local)&&(0,P.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,P.jsx)(x.Z,{suffix:(0,P.jsxs)(C.ZP,{loading:E,type:"link",onClick:function(e){e.stopPropagation(),g.getFieldValue("login")?j(!0):g.validateFields(["login"])},disabled:I>0,children:[" ",0===I?"获取验证码":"".concat(I,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:X,className:"font16",children:[" ",d," "]})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:0,paddingBottom:20},children:["修改并登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]}),(0,P.jsx)(D.Z,{ModalProps:{open:O,onCancel:function(){j(!1)}},onFinish:function(){j(!1),R()}})]})}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ee="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIw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NS0uMSAzLS4zIDQuNC0uOGw0IDIuMy0xLTMuOGMyLjgtMi4zIDUtNS41IDUtOC45eiIvPjxwYXRoIGlkPSLlvaLnirYiIGQ9Ik0yMS42IDZjMS0uMSAxLjguNyAxLjkgMS43VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yYy0xLjEuMS0yLjEtLjgtMi4yLTIgMC0xLjIgMS0yLjEgMi4xLTJ6TTExLjIgOS45QzEwLjEgMTAgOS4xIDkuMiA5IDhjLjEtMS4yIDEuMS0yLjEgMi4yLTIgMS0uMSAxLjguNyAxLjggMS44VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yem0xNS4yIDEwLjdjLS44LS4xLTEuNC0uNy0xLjUtMS42LjEtLjguNy0xLjUgMS41LTEuNi45LS4xIDEuNy42IDEuOSAxLjYtLjIgMS0xIDEuNy0xLjkgMS42em04LjIgMGMtLjgtLjEtMS40LS43LTEuNS0xLjYuMS0uOC43LTEuNSAxLjUtMS42LjktLjEgMS43LjYgMS45IDEuNi0uMiAxLTEgMS43LTEuOSAxLjZ6IiBzdHlsZT0iZmlsbDojZmZmIi8+PC9nPjwvZz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var te="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAwQzIyOS4zNTYgMCAwIDIyOS4zNTYgMCA1MTJzMjI5LjM1NiA1MTIgNTEyIDUxMiA1MTItMjI5LjM1NiA1MTItNTEyUzc5NC42NDQgMCA1MTIgMHptMjM1Ljc1IDY0Ny42MDNjLTEwLjcgNS40MTctMjcuNDE3LTYuOTYzLTQzLjM0LTMwLjE1Ny02LjI2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iBmaWxsPSIjMzc4QUZFIi8+PC9zdmc+",ne="other-login___Jd48Z",re="wechat-qrcode___bLWkh",oe="driver___IuicK",ie=n(67390),ae=window.location.host,le=ie.Z.QQLoginCB,ce=function(e){var t=e.onWechatLogin,n=e.setType,r=e.loginType;function o(){return(0,L.b9)()?"https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(le,"%2fotherloginqq&state=null,").concat(ae,"&response_type=code"):"https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(le,"%2fotherloginqq&state=null,").concat(ae,"&response_type=code")}return(0,P.jsxs)(P.Fragment,{children:[(1===r||2===r)&&(0,P.jsxs)("div",{style:{marginTop:(0,L.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["没有账号?",(0,P.jsx)("span",{onClick:function(){return n(3)},className:"c-blue current",children:"免费注册"})]}),(3===r||4===r||5===r)&&(0,P.jsxs)("div",{style:{marginTop:(0,L.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["已有账号?",(0,P.jsx)("span",{onClick:function(){return n(1)},className:"c-blue current",children:"立即登录"})]}),!(0,L.WX)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{className:oe,children:(0,P.jsx)("span",{style:{color:"#444444"},children:"快速登录"})}),(0,P.jsxs)("div",{className:ne,children:[(0,L.s2)()&&(0,L.IS)()&&(0,P.jsx)("a",{title:"微信登录",style:{margin:0},onClick:t,children:(0,P.jsx)("img",{src:ee,alt:"微信",width:66})}),(0,L.s2)()&&!(0,L.IS)()&&(0,P.jsx)("a",{title:"qq登录",rel:"noreferrer noopener nofollow",style:{margin:0},href:o(),children:(0,P.jsx)("img",{src:te,alt:"QQ",width:66})}),(0,L.b9)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("a",{title:"微信登录",style:{marginRight:(0,L.IS)()?0:40},onClick:t,children:(0,P.jsx)("img",{src:ee,alt:"微信",width:66})}),!(0,L.IS)()&&(0,P.jsx)("a",{title:"qq登录",href:o(),children:(0,P.jsx)("img",{src:te,alt:"QQ",width:66})})]})]})]})]})};function se(e){e.onBack;var t=e.setType;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{style:{overflow:"hidden",width:300,height:300,margin:"20px auto 0 auto"},children:(0,P.jsx)("iframe",{className:re,frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(le,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(ae,"#wechat_redirect")})}),(0,P.jsx)("div",{style:{marginTop:17,marginBottom:10},className:"font16 bold tc c-blue current",children:(0,P.jsx)("span",{onClick:function(){return t(1)},style:{borderBottom:"2px solid #0152d9"},children:"返回账号登录"})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:14,paddingBottom:40},children:["登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})}var ue={height:48},de=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,pe={timer:0},fe=function(e){return e[e.setTimer=0]="setTimer",e}(fe||{});function me(e,t){if(t.type===fe.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var ge=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){e.validateName,e.getCode;var t=e.register,n=e.style,r=void 0===n?{}:n,i=e.buttonText,a=void 0===i?"注册":i,l=(e.globalSetting,b.Z.useForm()),s=u()(l,1)[0],d=(0,f.useReducer)(me,pe),p=u()(d,2),m=p[0],g=p[1],h=(0,f.useState)(!1),v=u()(h,2),y=(v[0],v[1],m.timer);function w(){return w=c()(o()().mark((function e(n){var r,i,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.old_password,i=n.newPassword,e.next=3,t({old_password:r,newPassword:i});case 3:if(a=e.sent,l=a.message,!(a.status<0)){e.next=9;break}return s.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}return(0,f.useEffect)((function(){y>0&&setTimeout((function(){g({type:fe.setTimer,payload:y-1})}),1e3)}),[y]),(0,P.jsxs)(b.Z,{layout:"vertical",form:s,style:r,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return w.apply(this,arguments)},children:[(0,P.jsx)(b.Z.Item,{name:"old_password",rules:[{required:!0,message:"请输入8~16位密码,区分大小写"}],children:(0,P.jsx)(x.Z,{style:ue,autoComplete:"new-login",size:"middle",type:"password",placeholder:"请输入旧密码",onChange:function(){return s.setFieldsValue({verify:0})}})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"newPassword",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t,n){t?t.indexOf(" ")>-1?n("请输入8-16位密码,区分大小写、不能使用空格"):t.length<8||t.length>16?n("请输入8-16位字符的新密码,区分大小写!"):de.test(t)?n():n("请输入8~16位字符,字母、数字和特殊符号至少包含2种"):n("请输入8-16位字符的新密码,区分大小写!")}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:ue,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),(0,P.jsx)(T.Z,{title:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"长度为8-16位字符"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,P.jsx)(b.Z.Item,{name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,n){t!=s.getFieldsValue().newPassword?n("两次输入的新密码必须一致!"):n()}}],children:(0,P.jsx)(x.Z.Password,{autoComplete:"new-password",style:ue,size:"middle",placeholder:"请再次输入新密码"})})}),(0,P.jsx)(b.Z.Item,{children:(0,P.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:ue,className:"font16",children:[" ",a," "]})}),(0,P.jsxs)("div",{className:"tc",style:{paddingTop:0,paddingBottom:20},children:["修改并登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})})),he=n(99313),ve=n(95237),be=n(43604),ye=he.Z.TabPane,xe=function(e){e.dispatch,e.is_main_site;var t=e.is_local,n=e.style,r=void 0===n?{}:n,i=(0,f.useState)(!1),l=u()(i,2),s=(l[0],l[1]),d=(0,f.useState)("1"),p=u()(d,2),m=p[0],g=p[1],h=(0,f.useState)(1),v=u()(h,2),b=v[0],x=v[1],w=(0,f.useState)(),C=u()(w,2),$=C[0],E=C[1];function Z(){x(1),s(!1)}function N(e){console.log(e),g(e)}S.Ol,S.o1,j=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Gq)({phone:t.login,code:t.code});case 2:if(0!==(n=e.sent).status){e.next=7;break}return null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),window.location.reload(),e.abrupt("return","/");case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));var j,M,R,T,D={buttonText:"注册并登录",validateName:S.Ol,getCode:S.o1,register:(M=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.z2)(a()({},t));case 2:if(0!==(n=e.sent).status){e.next=9;break}return"1"===localStorage.getItem("addinfo")?localStorage.setItem("addinfo","2"):localStorage.setItem("registeruser","1"),localStorage.removeItem("extension-modal"),y.ZP.info("注册并登陆成功"),e.abrupt("return","/");case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)}))),function(e){return M.apply(this,arguments)})},B={buttonText:"修改密码",validateName:S.Ol,getCode:S.o1,register:(R=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Ex)(a()({login:$},t));case 2:return n=e.sent,y.ZP.info("修改密码成功"),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(e){return R.apply(this,arguments)})},A={buttonText:"修改并登录",validateName:S.Ol,getCode:S.o1,register:(T=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=c()(o()().mark((function e(n){var r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.new_password_confirmation=t.new_password,e.next=3,(0,S.c0)(a()({},t));case 3:if(0!==(r=e.sent).status){e.next=9;break}return null!=r&&r.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==r?void 0:r.start_date)):localStorage.removeItem("extension-modal"),y.ZP.info("修改成功"),n("/"),e.abrupt("return","/");case 9:return n(r),e.abrupt("return",r);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return T.apply(this,arguments)})},_=(0,f.useCallback)((function(){switch(b){case 1:return(0,P.jsx)(he.Z,{defaultActiveKey:m,onChange:N,className:O,style:{marginRight:40},children:(0,P.jsx)(ye,{tab:"账号登录",children:(0,P.jsx)("div",{className:"mt20",children:"1"===m&&(0,P.jsx)(z,{setusername:E,setType:x})})},"1")});case 2:return(0,P.jsx)(se,{setType:x,onBack:Z});case 3:return(0,P.jsxs)("div",{className:"ml40",children:[(0,P.jsx)("h1",{className:"font18 mb20 mt35",children:"新用户注册"}),(0,P.jsx)(W,a()({},D))]});case 4:return(0,P.jsxs)("div",{className:"ml40",children:[(0,P.jsx)("h1",{className:"font18 mb20 mt35",children:"找回密码"}),(0,P.jsx)(J,a()({},A))]});case 5:return(0,P.jsxs)("div",{className:"ml40",children:[(0,P.jsx)("h1",{className:"font18 mb20 mt35",children:"修改密码"}),(0,P.jsx)(ge,a()({},B))]})}}),[b,m]);return(0,P.jsx)("div",{className:k,style:r,children:(0,P.jsxs)(ve.Z,{children:[(0,P.jsx)(be.Z,{flex:"1",children:_()}),(0,P.jsx)(be.Z,{flex:"295px",className:I,children:!t&&(0,P.jsx)(ce,{loginType:b,setType:x,onWechatLogin:function(){(0,L.s2)()||(0,L.IS)()?(0,L.Or)():(x(2),s(!0))}})})]})})},we="popLogin___R8wQQ",Ce=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,n=e.user,r=e.globalSetting,o=(e.loading,e.dispatch),i=null===(t=r.setting)||void 0===t?void 0:t.main_site;return(0,P.jsx)(h.Z,{centered:!0,open:n.showPopLogin,footer:null,width:420,keyboard:!1,maskClosable:!1,wrapClassName:we,closable:n.showClosable,onCancel:function(){o({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})},children:n.showPopLogin&&(0,P.jsx)(xe,{is_main_site:i,is_local:true})})})),Se=n(57809),$e=n(92310),Ee=n.n($e),ke=n(11592),Ie=n(2738),Ze=n(53487),Ne=n(92343),Oe=n(36355);const{Option:je}=Se.default;function Me(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const Pe=(e,t)=>{const{prefixCls:n,className:r,popupClassName:o,dropdownClassName:i,children:a,dataSource:l}=e,c=(0,ke.Z)(a);let s;1===c.length&&(0,Ne.l$)(c[0])&&!Me(c[0])&&([s]=c);const u=s?()=>s:void 0;let d;d=c.length&&Me(c[0])?a:l?l.map((e=>{if((0,Ne.l$)(e))return e;switch(typeof e){case"string":return f.createElement(je,{key:e,value:e},e);case"object":{const{value:t}=e;return f.createElement(je,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:p}=f.useContext(Oe.E_),m=p("select",n);return f.createElement(Se.default,Object.assign({ref:t,suffixIcon:null},(0,Ie.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:m,popupClassName:o||i,className:Ee()(`${m}-auto-complete`,r),mode:Se.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:u}),d)},Re=f.forwardRef(Pe),ze=(0,Ze.Z)(Re);Re.Option=je,Re._InternalPanelDoNotUseOrYouWillBeFired=ze;var Te=Re,Le=n(24530),De={modalWrap:"modalWrap___bBTZj",formWrap:"formWrap___aTC2c",staffWrap:"staffWrap___Vt2Lh"},Be=n.p+"static/touge_code.728ce351.jpg",Ae=n.p+"static/touge_code6.e67b4cee.jpg",_e=n(56007),He="tilte___IfiMG",Ke="flexRow___pQP78",Fe="flexColumn___xrBZQ",We="img___GoWZu",Ve="content___pumTK",Xe=(0,v.connect)((function(e){var t=e.paperlibrary,n=e.loading;return{paperlibrary:t,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t=e.visible,n=e.occupationValue,r=e.onCancel,o=void 0===r?function(){}:r,i=function(){return(0,P.jsxs)("div",{className:Fe,children:[(0,P.jsx)("img",{className:We,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79P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s)("div",{className:Fe,children:[(0,P.jsx)("img",{className:We,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem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LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"}),(0,P.jsx)("span",{className:Ve,children:"未实名认证"})]})};return(0,P.jsxs)(h.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:t,title:"因为以下原因,您暂时不能进行操作",okText:"立即认证",cancelText:"取消",width:"600px",onOk:function(){o(),v.history.push("/account/certification")},onCancel:function(){o()},children:[(0,P.jsx)("div",{className:He,children:"请在完成条件后重试"}),(0,P.jsx)("div",{className:Ke,children:3===n?(0,P.jsxs)(P.Fragment,{children:[a(),i()]}):2===n?i():a()})]})})),Ge=n(14809),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},qe=n(7657),Ue=function(e,t){return f.createElement(qe.Z,(0,Ge.Z)({},e,{ref:t,icon:Ye}))};var Qe=f.forwardRef(Ue),Je="bottom___z0ujX",et="yes___hodnN",tt=n(32637),nt=(0,v.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t=e.classroomList,n=e.dispatch;e.user;return(0,P.jsxs)(h.Z,{open:"到期提示"===t.actionTabs.key,width:464,centered:!0,title:(0,P.jsxs)("span",{children:[(0,P.jsx)(Qe,{style:{color:"#faad14",fontSize:"18px"}})," 提示"]}),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},footer:null,children:[(0,P.jsxs)("div",{style:{textAlign:"center",marginBottom:30},children:[(0,P.jsxs)("div",{style:{marginBottom:20,textAlign:"left"},children:["该教学课堂的试用已到期,目前无法支持",(0,P.jsx)("span",{style:{color:"#FF9D18"},children:"超过50"}),"人的教学活动。如有任何疑问,请随时联系我们。感谢您的理解与支持!"]}),(0,P.jsx)("img",{style:{width:130,height:130},src:tt})]}),(0,P.jsx)("div",{className:Je,children:(0,P.jsx)(C.ZP,{className:et,onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},children:"我知道了"})})]})})),rt=function(e){return e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student",e}(rt||{}),ot=(0,v.connect)((function(e){return{user:e.user,account:e.account}}))((function(e){var t=e.visible,n=e.user,r=(e.account,e.onCancel),i=void 0===r?function(){}:r,a=e.dispatch,l=(0,f.useState)(),s=u()(l,2),d=s[0],p=s[1],m=(0,f.useState)([]),g=u()(m,2),v=g[0],b=g[1],C=(0,f.useState)(!1),S=u()(C,2),$=S[0],E=S[1],k=(0,f.useState)(!1),I=u()(k,2),Z=I[0],N=I[1],O=(0,f.useState)(),j=u()(O,2),M=j[0],R=j[1],z=(0,f.useState)(!1),T=u()(z,2);T[0],T[1];(0,f.useEffect)((function(){var e,t;null!=n&&null!==(e=n.userInfo)&&void 0!==e&&e.identity&&b(["student"===(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[n]);var D=function(e){var t=function(){window.location.href=(null==e?void 0:e.jump_url)||"/classrooms/".concat(null==e?void 0:e.course_id,"/students")};v.includes(rt.Professor)?h.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,P.jsx)("div",{className:"tc",children:(null==e?void 0:e.message)||"申请已提交,请等待审核"}),onOk:function(){t()}}):t()},B=function(){var e=c()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return y.ZP.info("邀请码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,Le.ZP)("/api/courses/get_pro_info.json",{method:"get",params:{invite_code:d}});case 5:if(null==(t=e.sent)||!t.need_pro_auth||v.includes(1)||v.includes(2)){e.next=10;break}return a({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth",code:d,checkedList:v}}),A(),e.abrupt("return");case 10:return E(!0),e.next=13,(0,_e.cR)({invite_code:d,professor:v.includes(rt.Professor)?1:null,assistant_professor:v.includes(rt.AssistantProfessor)?1:null,student:v.includes(rt.Student)?1:null});case 13:if(n=e.sent,E(!1),-4===(null==n?void 0:n.status)&&(i(),a({type:"classroomList/setActionTabs",payload:{key:"到期提示"}})),-12===(null==n?void 0:n.status)&&y.ZP.warning(null==n?void 0:n.message),-2!==(null==n?void 0:n.status)){e.next=31;break}if(A(),"该课堂要求成员完成实名认证"!==n.message){e.next=23;break}return N(!0),R(1),e.abrupt("return");case 23:if("该课堂要求成员完成职业认证"!==n.message){e.next=27;break}return N(!0),R(2),e.abrupt("return");case 27:if("该课堂要求成员完成实名和职业认证"!==n.message){e.next=31;break}return N(!0),R(3),e.abrupt("return");case 31:if(0!==(null==n?void 0:n.status)){e.next=36;break}return(0,L.L9)(["教学课堂","首页","加入课堂"]),A(),null!=n&&n.course_id?D(n):y.ZP.success(n.message),e.abrupt("return");case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.Z,{centered:!0,keyboard:!1,closable:!1,title:"加入课堂",open:t,confirmLoading:$,onOk:B,onCancel:A,children:(0,P.jsxs)("div",{className:"tc",children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{children:"课堂邀请码:"}),(0,P.jsx)(x.Z,{placeholder:"请输入5位课堂邀请码或6位分班邀请码",style:{width:270},value:d,onChange:function(e){e.target.value.length>=7?y.ZP.info("请输入5位课堂邀请码或6位分班邀请码!"):p(e.target.value)}})]}),(0,P.jsxs)("div",{className:"mt10 font14",children:[(0,P.jsx)("span",{children:"身份:"}),(0,P.jsxs)(w.Z.Group,{value:v,onChange:function(e){return b(e)},children:[(0,P.jsx)(w.Z,{value:rt.Professor,disabled:v.includes(2),children:"教师"}),(0,P.jsx)(w.Z,{value:rt.AssistantProfessor,disabled:v.includes(1),children:"助教"}),(0,P.jsx)(w.Z,{value:rt.Student,children:"学生/参赛者"})]})]})]})}),(0,P.jsx)(nt,{}),(0,P.jsx)(Xe,{visible:Z,onCancel:function(){return N(!1)},occupationValue:M})]})})),it=(0,v.connect)((function(e){var t=e.user,n=e.account,r=e.loading;return{user:t,account:n,globalSetting:e.globalSetting,loading:r.models.index}}))((function(e){var t=e.user,n=e.account,r=e.globalSetting,i=(e.loading,e.dispatch),l=b.Z.useForm(),s=u()(l,1)[0],d=Se.default.Option,p=(0,f.useState)({}),m=u()(p,2),g=m[0],w=m[1],C=(0,f.useState)(""),S=u()(C,2),$=S[0],E=S[1],k=(0,f.useState)(!0),I=u()(k,2),Z=I[0],N=I[1],O=(0,f.useState)([]),j=u()(O,2),M=j[0],R=j[1],z=(0,f.useState)(!1),T=u()(z,2),D=T[0],B=T[1],A=(0,f.useState)(!1),_=u()(A,2),H=_[0],K=_[1],F=b.Z.useForm(),W=u()(F,1)[0],X=(0,f.useState)(!1),G=u()(X,2),Y=G[0],q=G[1],U=(0,f.useState)(!1),Q=u()(U,2),J=Q[0],ee=Q[1],te=(0,f.useRef)((0,V.throttle)((function(e){return oe(e)}),1200,{leading:!0,trailing:!0})).current,ne=function(){var e={identity:"",name:"",school_id:"",staff_id:"",student_id:"",technical_title:""};s.setFieldsValue(a()({},e)),w(a()({},e))};(0,f.useEffect)((function(){Z||!g.school||M.find((function(e){return e.name===g.school}))?E(""):E("error")}),[Z,g.school,M]);var re,oe=function(){var e=c()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),e.next=3,i({type:"account/getSchoolOption",payload:{keyword:t,limit:99999,display_aliases:!0}});case 3:n=e.sent,R(null==n?void 0:n.schools),N(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=function(e){var t,n,o,i;return"number"===e?"teacher"===g.identity?"".concat(null==r||null===(t=r.setting)||void 0===t?void 0:t.homepage_tea_qq_number):"".concat(null==r||null===(n=r.setting)||void 0===n?void 0:n.homepage_stu_qq_number):"code"===e?"teacher"===g.identity?"".concat(ie.Z.IMG_SERVER,"/").concat(null==r||null===(o=r.setting)||void 0===o?void 0:o.homepage_tea_qq_qrcode_url):"".concat(ie.Z.IMG_SERVER,"/").concat(null==r||null===(i=r.setting)||void 0===i?void 0:i.homepage_stu_qq_qrcode_url):void 0},le=function(){var e=c()(o()().mark((function e(r){var a,l,c,s,u,d,p,f,m,g,v,b;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B(!0),c=r.name,s=r.identity,u=r.studentNo,d=r.jobTitle,p=r.manager,f=r.staff_id,m=r.school,g=null===(a=M.find((function(e){return e.name===m})))||void 0===a?void 0:a.id){e.next=6;break}return h.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,P.jsxs)("div",{style:{textAlign:"center"},children:[(0,P.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:",ae("number"),",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,P.jsx)("img",{src:ae("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 6:return e.next=8,i({type:"account/updateAccount",payload:{id:null==t||null===(l=t.userInfo)||void 0===l?void 0:l.user_id,identity:s,name:c,school_id:g,staff_id:f,student_id:"student"===s?u:null,technical_title:d||p}});case 8:if(-1!==(null==(v=e.sent)?void 0:v.status)){e.next=11;break}return e.abrupt("return");case 11:v&&(y.ZP.info("保存成功"),null!==(b=n.basicInfo)&&void 0!==b&&b.base_info_completed||i({type:"user/getUserInfo"})),B(!1),ne(),v&&(console.log("user.backurl--",t),t.backurl||t.isCurrentPage?(0,L.xg)(t.backurl):ee(!0)),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.Z,{centered:!0,open:t.showUpdateProfilePanel,title:"完善个人资料",width:800,keyboard:!1,maskClosable:!1,wrapClassName:De.modalWrap,closable:t.showClosable,onCancel:function(){ne(),t.backurl&&!t.isCurrentPage&&v.history.replace(t.backurl),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}})},onOk:c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(!0),e.next=3,s.submit();case 3:case"end":return e.stop()}}),e)}))),okButtonProps:{loading:D},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:"mb30",children:"您还未完善个人资料,完善后即可使用此功能。"}),(0,P.jsxs)(b.Z,{form:s,className:De.formWrap,layout:"horizontal",onValuesChange:function(e){w(a()({},s.getFieldsValue()))},onFinish:le,scrollToFirstError:!0,size:"large",labelAlign:"right",children:[(0,P.jsx)(b.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:L.HJ}],children:(0,P.jsx)(x.Z,{placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,showCount:!0})}),(0,P.jsxs)(ve.Z,{gutter:[10,0],children:[(0,P.jsx)(be.Z,{children:(0,P.jsx)(b.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,P.jsxs)(Se.default,{style:{width:120},placeholder:"请选择职业",children:[(0,P.jsx)(d,{value:"teacher",children:"教师"}),(0,P.jsx)(d,{value:"student",children:"学生"}),(0,P.jsx)(d,{value:"professional",children:"专业人士"})]})})}),"student"===g.identity&&(0,P.jsx)(be.Z,{flex:1,children:(0,P.jsx)(b.Z.Item,{name:"studentNo",validateTrigger:"onBlur",dependencies:["school"],rules:[{whitespace:!0,message:"不能全为空"},{required:!0,validator:(re=c()(o()().mark((function e(n,r){var i,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/users/accounts/".concat(null==t||null===(i=t.userInfo)||void 0===i?void 0:i.user_id,"/valid_student_id"),{method:"get",params:{school_id:(null==M||null===(a=M.find((function(e){return e.name===g.school})))||void 0===a?void 0:a.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),student_id:r}});case 2:return(null==(c=e.sent)?void 0:c.status)<-1&&Y&&(K(!0),q(!1)),e.abrupt("return",(null==c?void 0:c.status)<-1?Promise.reject((0,P.jsxs)("span",{children:["该学号已被使用,如需继续使用该学号,请先",(0,P.jsx)("a",{onClick:function(){K(!0)},children:"解绑学号"})]})):Promise.resolve());case 5:case"end":return e.stop()}}),e)}))),function(e,t){return re.apply(this,arguments)})}],children:(0,P.jsx)(x.Z,{size:"large",type:"text",placeholder:"请输入学号",showCount:!0,maxLength:20})})}),"teacher"===g.identity&&(0,P.jsx)(be.Z,{children:(0,P.jsx)(b.Z.Item,{initialValue:g.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,P.jsxs)(Se.default,{style:{width:120},size:"large",placeholder:"请选择职称",children:[(0,P.jsx)(d,{value:"教授",children:"教授"}),(0,P.jsx)(d,{value:"研究员",children:"研究员"}),(0,P.jsx)(d,{value:"副教授",children:"副教授"}),(0,P.jsx)(d,{value:"副研究员",children:"副研究员"}),(0,P.jsx)(d,{value:"讲师",children:"讲师"}),(0,P.jsx)(d,{value:"助理研究员",children:"助理研究员"}),(0,P.jsx)(d,{value:"助理教授",children:"助理教授"})]})})}),"professional"===g.identity&&(0,P.jsx)(be.Z,{children:(0,P.jsx)(b.Z.Item,{initialValue:g.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,P.jsxs)(Se.default,{style:{width:180},size:"large",placeholder:"请选择职称",children:[(0,P.jsx)(d,{value:"企业管理者",children:"企业管理者"}),(0,P.jsx)(d,{value:"部门管理者",children:"部门管理者"}),(0,P.jsx)(d,{value:"高级工程师",children:"高级工程师"}),(0,P.jsx)(d,{value:"工程师",children:"工程师"}),(0,P.jsx)(d,{value:"助理工程师",children:"助理工程师"})]})})}),("teacher"===g.identity||"professional"===g.identity)&&(0,P.jsx)(be.Z,{flex:1,className:De.staffWrap,children:(0,P.jsx)(b.Z.Item,{label:"工号",name:"staff_id",rules:[{validator:function(e,t){if(null===t||""===t)return Promise.resolve();return/[\u4E00-\u9FA5]/g.test(t)?Promise.reject("请勿输入中文字符"):t.length>20?Promise.reject("最大限制20个字符"):Promise.resolve()}}],children:(0,P.jsx)(x.Z,{placeholder:"请输入工号",className:De.staffidInput,suffix:" ",showCount:!0,maxLength:20})})})]}),(0,P.jsx)(b.Z.Item,{label:"学校/单位",name:"school",extra:!Z&&g.school&&!(null!=M&&M.find((function(e){return e.name===g.school})))&&(0,P.jsx)("div",{className:De.schoolHintWrap,children:(0,P.jsxs)("span",{className:De.colorCDCDCD,children:["未找到包含“",g.school,"”的高校,如有需要,请",(0,P.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){h.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,P.jsxs)("div",{style:{textAlign:"center"},children:[(0,P.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:","teacher"===g.identity?"727685969":"816055138",",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,P.jsx)("img",{src:"teacher"===g.identity?Be:Ae,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,P.jsx)(Te,{status:$,size:"large",showSearch:!0,onChange:te,placeholder:"请输入单位名称",suffixIcon:(0,P.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})}),children:M.map((function(e,t){return(0,P.jsx)(d,{value:e.name,children:e.name},t)}))})})]})]})}),(0,P.jsx)(h.Z,{title:"解绑学号",open:H,centered:!0,destroyOnClose:!0,onCancel:function(){K(!1),W.resetFields()},onOk:function(){W.submit()},children:(0,P.jsxs)(b.Z,{form:W,size:"large",onFinish:function(){var e=c()(o()().mark((function e(n){var r,i,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/users/accounts/".concat(null==t||null===(r=t.userInfo)||void 0===r?void 0:r.user_id,"/unbind_student_id.json"),{method:"post",body:a()({student_id:g.studentNo||s.getFieldValue("studentNo"),school_id:(null==M||null===(i=M.find((function(e){return e.name===g.school})))||void 0===i?void 0:i.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),check_type:4},n)});case 2:0==e.sent.status&&(y.ZP.success("解绑成功"),s.validateFields(),W.resetFields(),K(!1));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsxs)("div",{className:"mb20",children:["很抱歉,该学号(",g.studentNo||s.getFieldValue("studentNo"),")在",g.school,"内已被使用,您可以提供",(0,P.jsx)("span",{style:{color:"#3061d0"},children:"当前账号所在学校中任意一位已职业认证的教师姓名"}),"进行解绑:"]}),(0,P.jsx)(b.Z.Item,{name:"check_value",rules:[{required:!0,message:"请填写".concat(null==g?void 0:g.school,"中任意一位已职业认证的教师姓名")}],style:{marginBottom:"10px"},children:(0,P.jsx)(x.Z,{type:"text",placeholder:"请填写".concat(null==g?void 0:g.school,"中任意一位已职业认证的教师姓名")})}),(0,P.jsxs)("div",{children:["请注意,每位学生每天仅有 ",(0,P.jsx)("span",{style:{color:"#FA6400"},children:"2"})," 次成功解绑学号的机会,请谨慎操作"]})]})}),(0,P.jsx)(ot,{visible:J,onCancel:function(){return ee(!1)}})]})})),at="popLogin___u08I8",lt="tips___U2xQw",ct=/^1\d{10}$/,st=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,ut=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,dt=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.user,n=(e.globalSetting,e.dispatch),r=(0,v.useSearchParams)(),i=u()(r,1)[0],a={height:48,borderRadius:4},l=b.Z.useForm(),s=u()(l,1)[0],d=(0,f.useState)(60),p=u()(d,2),m=p[0],g=p[1],w=(0,f.useMemo)((function(){return m<60&&m>0}),[m]),$=(0,f.useRef)(),E=function(){var e=c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:clearInterval($.current),g(60),$.current=setInterval(function e(){return g((function(e){return e-1})),e}(),1e3);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=(0,f.useState)(!1),I=u()(k,2),Z=I[0],N=I[1],O=(0,f.useState)(!1),j=u()(O,2),M=j[0],R=j[1];(0,f.useEffect)((function(){t.bindAccountModalVisible?R(!0):R(!1)}),[t]);var z=function(){var e=c()(o()().mark((function e(){var r,i,a,l,c,u,d,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.getFieldValue("userInput"),i=ct.test(r),a=st.test(r),i||a){e.next=6;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 6:if(N(!0),!i){e.next=20;break}return e.next=10,(0,Le.ZP)("/api/users/accounts/".concat(null===(l=t.userInfoForBindAccountModal)||void 0===l?void 0:l.login,"/valid_phone.json"),{method:"get",params:{phone:r}});case 10:if(-1!==(null==(c=e.sent)?void 0:c.status)){e.next=14;break}return N(!1),e.abrupt("return");case 14:if(null==c||!c.is_exists){e.next=18;break}return y.ZP.info("该手机号已被其它账号绑定"),N(!1),e.abrupt("return");case 18:e.next=27;break;case 20:return e.next=22,(0,Le.ZP)("/api/accounts/valid_email_and_phone",{method:"get",params:{login:r,type:1}});case 22:if(-3!==(null==(u=e.sent)?void 0:u.status)){e.next=27;break}return y.ZP.info("该邮箱已被注册"),N(!1),e.abrupt("return");case 27:return d=(0,L.M)(r),e.next=30,n({type:"account/getCode",payload:{login:r,type:i?3:4,smscode:d}});case 30:p=e.sent,N(!1),1===p.status&&(y.ZP.info("验证码已发送,请注意查收"),E());case 33:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c()(o()().mark((function e(){var r,i,a,l,c,u,d,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(r=s.getFieldValue("userInput"),i=s.getFieldValue("code"),a=ct.test(r),l=st.test(r),a||l){e.next=9;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 9:if(!a){e.next=16;break}return e.next=12,n({type:"account/bindPhone",payload:{login:null===(c=t.userInfoForBindAccountModal)||void 0===c?void 0:c.login,phone:r,code:i}});case 12:return u=e.sent,e.abrupt("return",0===u.status);case 16:return e.next=18,n({type:"account/bindEmail",payload:{login:null===(d=t.userInfoForBindAccountModal)||void 0===d?void 0:d.login,email:r,code:i}});case 18:return p=e.sent,e.abrupt("return",0===p.status);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=c()(o()().mark((function e(){var r,a,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.loginInfo,ut.test(r.password)||y.ZP.error("系统检测您的密码强度过低,请及时修改"),e.next=4,(0,S.Es)(r);case 4:if(!(a=e.sent).status){e.next=8;break}return y.ZP.error(null==a?void 0:a.message),e.abrupt("return");case 8:null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),"/user/login"===location.pathname||"/login"===location.pathname?(l=i.get("from")||i.get("back_url"))?window.location.href=decodeURIComponent(l):ut.test(r.password)?window.location.reload():(y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure"):ut.test(r.password)?window.location.reload():(y.ZP.info("系统检测您的密码强度过低,请及时修改"),v.history.replace("/account/secure?active=3"),n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}})),s.resetFields();case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:if(!e.sent){e.next=6;break}return e.next=6,D();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)(h.Z,{centered:!0,open:M,footer:null,width:596,keyboard:!1,maskClosable:!0,wrapClassName:at,closable:!0,onCancel:function(){n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}}),s.resetFields()},children:[(0,P.jsx)("h1",{className:"font18 mb20",children:"手机号/邮箱绑定"}),(0,P.jsxs)(b.Z,{layout:"vertical",form:s,autoComplete:"off",preserve:!1,children:[(0,P.jsx)(b.Z.Item,{name:"userInput",rules:[{required:!0,message:"请输入正确的手机号/邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):ct.test(t)||st.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,P.jsx)(x.Z,{style:a,size:"middle",placeholder:"请输入有效的手机号/邮箱号"})}),(0,P.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,P.jsx)(x.Z,{suffix:(0,P.jsx)(C.ZP,{loading:Z,type:"link",onClick:z,disabled:w,children:w?"".concat(m,"秒可重新获取"):"获取验证码"}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})})]}),(0,P.jsx)("div",{className:lt,children:"为了账号安全性,绑定后可通过该手机号或邮箱找回密码"}),(0,P.jsx)(C.ZP,{size:"middle",type:"primary",block:!0,style:a,className:"font16",onClick:B,children:"绑定并登录"}),(0,P.jsxs)("div",{className:lt,children:["登录即代表您已阅读并同意",(0,P.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})})),pt=n(71418),ft=n(37205),mt=n.n(ft),gt=n(70236),ht=n.n(gt),vt="wrap___q9xAc",bt="list___qjgdz",yt="name___ncYhC",xt="tag___Paafn",wt=n(1499),Ct=function(e){ht()(e);var t=(0,f.useState)(!1),n=u()(t,2),r=n[0],i=n[1],a=(0,f.useState)([]),l=u()(a,2),s=l[0],d=l[1],p=(0,f.useState)([]),m=u()(p,2),g=m[0],b=m[1],y=(0,f.useState)(!1),x=u()(y,2),S=x[0],$=x[1],E=(0,f.useState)(!1),k=u()(E,2),I=k[0],Z=k[1],N=(0,v.useLocation)(),O=(0,v.useSearchParams)(),j=u()(O,1)[0];(0,f.useEffect)((function(){wt.Z.subscribe("pod-restrict-data",(function(e){console.log(e,"data"),i(e.identifier||!1),d(e.data_list||[]),b([]),$(!1)}))}),[]);var M=function(){var e=c()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),t=s.filter((function(e){return g.includes(e.tpi_id)})),e.next=4,(0,Le.ZP)("/api/myshixuns/batch_del_pods.json",{method:"delete",body:{del_pods:t}});case 4:0===e.sent.status&&window.location.reload(),Z(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e;if(console.log(N,"location"),null===(e=N.pathname)||void 0===e||!e.includes("/challenges"))return"exercises"===j.get("type")?(window.parent.postMessage("backExercise","*"),void wt.Z.publish("pod-restrict-data",{identifier:!1,data_list:[]})):void(window.location.href="/shixuns/".concat(r,"/challenges"));window.location.href="/shixuns"};return(0,P.jsx)(h.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:r,title:"通知",width:"600px",footer:(0,P.jsxs)(ve.Z,{align:"middle",justify:"center",children:[(0,P.jsx)(w.Z,{onChange:function(e){var t;(console.log(e,222),$(e.target.checked),e.target.checked)?b(null==s||null===(t=s.filter((function(e){return!e.is_current_shixun})))||void 0===t?void 0:t.map((function(e){return e.tpi_id}))):b([])},checked:S,children:"全选"}),(0,P.jsx)(C.ZP,{style:{marginLeft:"auto"},onClick:R,children:"取消"}),(0,P.jsx)(C.ZP,{disabled:!g.length,loading:I,type:"primary",onClick:M,children:"关闭实训"})]}),onCancel:R,children:(0,P.jsx)(pt.Z,{spinning:I,children:(0,P.jsxs)("div",{className:vt,children:[(0,P.jsx)("p",{children:"单个账号最多可同时开启10个实验环境,若想开启该实训请关闭其他实训。"}),null==s?void 0:s.map((function(e){return(0,P.jsxs)("div",{className:bt,children:[(0,P.jsx)(w.Z,{disabled:e.is_current_shixun,onChange:function(t){var n=mt()(g);t.target.checked?n.push(e.tpi_id):n=g.filter((function(t){return t!==e.tpi_id})),b(n),$(n.length===s.length)},checked:null==g?void 0:g.includes(e.tpi_id)}),(0,P.jsxs)("span",{className:yt,onClick:function(){return(0,L.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges"))},title:e.shixun_name,children:[(0,P.jsx)("b",{children:e.shixun_name}),e.is_current_shixun&&(0,P.jsx)("span",{className:xt,children:"当前实训"})]}),(0,P.jsxs)("span",{style:{color:"#53d1a3"},children:["运行中的环境:",e.pod_num,"个"]})]},e.tpi_id)}))]})})})},St=n(61186),$t=n.n(St),Et={token:{colorPrimary:"#3061D0",colorInfo:"#3061D0",colorLink:"#3061D0",borderRadius:2,fontSizeLG:14},components:{Radio:{radioSize:16,dotSize:6},Modal:{titleFontSize:16,titleColor:"#000"}}},kt=["loading","globalSetting","dispatch"],It=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting}}))((function(e){e.loading;var t=e.globalSetting,n=e.dispatch,r=(p()(e,kt),"https://educoder-public.oss-cn-hangzhou.aliyuncs.com/Cover/logo_simple?x-oss-process=image/resize,h_200,w_200,m_pad");(0,f.useEffect)((function(){(0,L.IS)()&&function(){a.apply(this,arguments)}()}),[]),(0,f.useEffect)((function(){n({type:"globalSetting/setShareData",payload:{desc:"头歌,全称“头歌实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",title:document.title,imgUrl:r}})}),[location.pathname]),(0,f.useEffect)((function(){i()}),[null==t?void 0:t.shareData]);var i=function(){var e;null===(e=window.wx)||void 0===e||e.ready((function(){var e,n,o,i,a,l={title:(null==t||null===(e=t.shareData)||void 0===e?void 0:e.title)||document.title,desc:(null==t||null===(n=t.shareData)||void 0===n?void 0:n.desc)||"头歌,全称“头歌实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",link:window.location.href,imgUrl:(null==t||null===(o=t.shareData)||void 0===o||null===(o=o.imgUrl)||void 0===o?void 0:o.replace("https://public.educoder.net","https://educoder-public.oss-cn-hangzhou.aliyuncs.com/"))||r};null===(i=window.wx)||void 0===i||i.onMenuShareAppMessage(l),null===(a=window.wx)||void 0===a||a.onMenuShareTimeline(l)}))};function a(){return(a=c()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/users/js_sdk_data.json?url=".concat(encodeURIComponent(location.href)),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&l(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){window.wx.config({debug:!1,appId:(null==e?void 0:e.appid)||"wx2402d86a6b534f77",timestamp:(null==e?void 0:e.timestamp)||1716781260,nonceStr:(null==e?void 0:e.noncestr)||"WjRUMvS[",signature:(null==e?void 0:e.signature)||"0e182307b372cf71796c33e01b462cbfca0b9930",jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"]})}return(0,P.jsx)(P.Fragment,{})})),Zt=(n(65517),n(66604)),Nt=["loading","globalSetting","user","dispatch"];$t().locale("zh-cn");var Ot=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting,user:e.user}}))((function(e){e.loading;var t=e.globalSetting,n=(e.user,e.dispatch),r=(p()(e,Nt),(0,v.useLocation)()),i=(0,v.useSearchParams)(),l=(u()(i,1)[0],t.globalLoading),s=function(){var e=c()(o()().mark((function e(){var t,i,l,c,s,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r.pathname.split("/"),null==r||!r.search){e.next=9;break}return c.includes("paths")?s=c[2]:c.includes("tasks")&&(u=c[2]),e.next=6,n({type:"user/getUserInfo",payload:a()(a()({},(0,L.oP)()),{},{subject_id:s,game_id:u,websiteName:"educoder"})});case 6:i=e.sent,e.next=14;break;case 9:return c.includes("tasks")&&(l=c[2]),e.next=13,n({type:"user/getUserInfo",payload:{game_id:l}});case 13:i=e.sent;case 14:"游客"!==(null===(t=i)||void 0===t?void 0:t.username)&&("/login"===r.pathname&&(window.location.href="/"),"/user/login"!==r.pathname&&"/login"!==r.pathname&&window.sessionStorage.getItem("download_url")&&((0,L.Nd)("educoder",window.sessionStorage.getItem("download_url")),window.sessionStorage.removeItem("download_url")));case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){m.ZP.config({prefixCls:"ant",iconPrefixCls:"anticon",theme:a()({},Et)})}),[t.theme]),(0,f.useEffect)((function(){s(),n({type:"globalSetting/getBishengToken",payload:{}}),setInterval((function(){n({type:"globalSetting/getBishengToken",payload:{}})}),36e5),function(){function e(){var e=document.documentElement,t=e.clientWidth/1920;t=t>2?2:t<.6?.6:t,e.style.fontSize=t+"px"}window.addEventListener("resize",e),e()}()}),[]),(0,P.jsx)(Zt.V9,{transformers:[Zt.IJ],hashPriority:"high",children:(0,P.jsxs)(m.ZP,{locale:g.Z,autoInsertSpaceInButton:!1,componentSize:"middle",theme:Et,children:[(0,P.jsx)(Ce,{}),(0,P.jsx)(it,{}),(0,P.jsx)(dt,{}),(0,P.jsx)(It,{}),(0,P.jsx)(Ct,{}),(0,P.jsx)(pt.Z,{size:"middle",spinning:l.show,tip:l.text,className:"ant-spin-nested-loading-black",children:(0,P.jsx)(v.Outlet,{})})]})})}))},36785:function(e,t,n){n.d(t,{o2:function(){return l},yT:function(){return c}});var r=n(95190),o=n(33166);const i=o.i.map((e=>`${e}-inverse`)),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function c(e){return a.includes(e)}},56762:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(59301);function o(){const[,e]=r.useReducer((e=>e+1),0);return e}},79676:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(60293);const o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:c,borderRadius:s,visibleFirst:u}=e,d=t/2,p={};return Object.keys(o).forEach((e=>{const f=l&&i[e]||o[e],m=Object.assign(Object.assign({},f),{offset:[0,0]});switch(p[e]=m,a.has(e)&&(m.autoArrow=!1),e){case"top":case"topLeft":case"topRight":m.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=d+c}const g=(0,r.fS)({contentRadius:s,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":m.offset[0]=-g.dropdownArrowOffset-d;break;case"topRight":case"bottomRight":m.offset[0]=g.dropdownArrowOffset+d;break;case"leftTop":case"rightTop":m.offset[1]=-g.dropdownArrowOffset-d;break;case"leftBottom":case"rightBottom":m.offset[1]=g.dropdownArrowOffset+d}m.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),u&&(m.htmlRegion="visibleFirst")})),p}},69507:function(e,t,n){n.d(t,{ZP:function(){return a},c4:function(){return i}});var r=n(59301),o=n(88088);const i=["xxl","xl","lg","md","sm","xs"];function a(){const[,e]=(0,o.Z)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch(t){return r=t,e.forEach((e=>e(r))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}},19080:function(e,t,n){n.d(t,{F:function(){return a},Z:function(){return i}});var r=n(92310),o=n.n(r);function i(e,t,n){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},24905:function(e,t,n){n.d(t,{Z:function(){return $}});var r=n(92310),o=n.n(r),i=n(5630),a=n(59301),l=n(36355),c=n(1684),s=n(32441);var u=a.createContext(null),d=n(98447),p=n(14088),f=n(4572),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:g,rootClassName:h,children:v,indeterminate:b=!1,style:y,onMouseEnter:x,onMouseLeave:w,skipGroup:C=!1,disabled:S}=e,$=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:E,direction:k,checkbox:I}=a.useContext(l.E_),Z=a.useContext(u),{isFormItemInput:N}=a.useContext(s.aM),O=a.useContext(c.Z),j=null!==(n=(null==Z?void 0:Z.disabled)||S)&&void 0!==n?n:O,M=a.useRef($.value);a.useEffect((()=>{null==Z||Z.registerValue($.value)}),[]),a.useEffect((()=>{if(!C)return $.value!==M.current&&(null==Z||Z.cancelValue(M.current),null==Z||Z.registerValue($.value),M.current=$.value),()=>null==Z?void 0:Z.cancelValue($.value)}),[$.value]);const P=E("checkbox",r),[R,z]=(0,d.ZP)(P),T=Object.assign({},$);Z&&!C&&(T.onChange=function(){$.onChange&&$.onChange.apply($,arguments),Z.toggleOption&&Z.toggleOption({label:v,value:$.value})},T.name=Z.name,T.checked=Z.value.includes($.value));const L=o()(`${P}-wrapper`,{[`${P}-rtl`]:"rtl"===k,[`${P}-wrapper-checked`]:T.checked,[`${P}-wrapper-disabled`]:j,[`${P}-wrapper-in-form-item`]:N},null==I?void 0:I.className,g,h,z),D=o()({[`${P}-indeterminate`]:b},f.A,z),B=b?"mixed":void 0;return R(a.createElement(p.Z,{component:"Checkbox",disabled:j},a.createElement("label",{className:L,style:Object.assign(Object.assign({},null==I?void 0:I.style),y),onMouseEnter:x,onMouseLeave:w},a.createElement(i.Z,Object.assign({"aria-checked":B},T,{prefixCls:P,className:D,disabled:j,ref:t})),void 0!==v&&a.createElement("span",null,v))))};var h=a.forwardRef(g),v=n(95190),b=n(2738),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:i=[],prefixCls:c,className:s,rootClassName:p,style:f,onChange:m}=e,g=y(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:x,direction:w}=a.useContext(l.E_),[C,S]=a.useState(g.value||n||[]),[$,E]=a.useState([]);a.useEffect((()=>{"value"in g&&S(g.value||[])}),[g.value]);const k=a.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),I=x("checkbox",c),Z=`${I}-group`,[N,O]=(0,d.ZP)(I),j=(0,b.Z)(g,["value","disabled"]),M=i.length?k.map((e=>a.createElement(h,{prefixCls:I,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${Z}-item`,style:e.style,title:e.title},e.label))):r,P={toggleOption:e=>{const t=C.indexOf(e.value),n=(0,v.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in g||S(n),null==m||m(n.filter((e=>$.includes(e))).sort(((e,t)=>k.findIndex((t=>t.value===e))-k.findIndex((e=>e.value===t)))))},value:C,disabled:g.disabled,name:g.name,registerValue:e=>{E((t=>[].concat((0,v.Z)(t),[e])))},cancelValue:e=>{E((t=>t.filter((t=>t!==e))))}},R=o()(Z,{[`${Z}-rtl`]:"rtl"===w},s,p,O);return N(a.createElement("div",Object.assign({className:R,style:f},j,{ref:t}),a.createElement(u.Provider,{value:P},M)))},w=a.forwardRef(x);var C=a.memo(w);const S=h;S.Group=C,S.__ANT_CHECKBOX=!0;var $=S},98447:function(e,t,n){n.d(t,{C2:function(){return l}});var r=n(17313),o=n(37613),i=n(83116);const a=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,r.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function l(e,t){const n=(0,o.TS)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[a(n)]}t.ZP=(0,i.Z)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[l(n,e)]}))},43604:function(e,t,n){var r=n(37028);t.Z=r.Z},93891:function(e,t,n){var r=n(59301),o=n(36355),i=n(64165);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(o.E_),a=n("empty");switch(t){case"Table":case"List":return r.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return r.createElement(i.Z,null)}}},8070:function(e,t,n){n.d(t,{Z:function(){return B}});var r=n(59301),o=n(38819),i=n(92310),a=n.n(i),l=n(31561),c=n(70425),s=n(18929),u=n(2738),d=n(79676),p=n(53487),f=n(92343),m=n(36355),g=n(20834),h=n(40875),v=n(88088),b=n(17313),y=n(13826),x=n(92899),w=n(29878),C=n(60293),S=n(83116),$=n(37613);var E=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}};const k=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,dropdownPaddingVertical:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:i/2-o,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:y.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:y.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:y.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:y.ly}})},(0,C.ZP)(e,{colorBg:g,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,b.Qy)(e)),{[`${n}-item-group-title`]:{padding:`${s}px ${m}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${s}px ${m}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,b.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:m+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[(0,y.oN)(e,"slide-up"),(0,y.oN)(e,"slide-down"),(0,x.Fm)(e,"move-up"),(0,x.Fm)(e,"move-down"),(0,w._y)(e,"zoom-big")]]};var I=(0,S.Z)("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:c,componentCls:s,borderRadiusLG:u}=e,d=(i-a*l)/2,{dropdownArrowOffset:p}=(0,C.fS)({contentRadius:u}),f=(0,$.TS)(e,{menuCls:`${s}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:p,dropdownPaddingVertical:d,dropdownEdgeChildPadding:c});return[k(f),E(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));const Z=e=>{const{menu:t,arrow:n,prefixCls:i,children:p,trigger:b,disabled:y,dropdownRender:x,getPopupContainer:w,overlayClassName:C,rootClassName:S,open:$,onOpenChange:E,visible:k,onVisibleChange:Z,mouseEnterDelay:N=.15,mouseLeaveDelay:O=.1,autoAdjustOverflow:j=!0,placement:M="",overlay:P,transitionName:R}=e,{getPopupContainer:z,getPrefixCls:T,direction:L}=r.useContext(m.E_);const D=r.useMemo((()=>{const e=T();return void 0!==R?R:M.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[T,M,R]),B=r.useMemo((()=>{if(!M)return"rtl"===L?"bottomRight":"bottomLeft";if(M.includes("Center")){return M.slice(0,M.indexOf("Center"))}return M}),[M,L]);const A=T("dropdown",i),[_,H]=I(A),[,K]=(0,v.Z)(),F=r.Children.only(p),W=(0,f.Tm)(F,{className:a()(`${A}-trigger`,{[`${A}-rtl`]:"rtl"===L},F.props.className),disabled:y}),V=y?[]:b;let X;V&&V.includes("contextMenu")&&(X=!0);const[G,Y]=(0,s.Z)(!1,{value:null!=$?$:k}),q=(0,c.zX)((e=>{null==E||E(e),null==Z||Z(e),Y(e)})),U=a()(C,S,H,{[`${A}-rtl`]:"rtl"===L}),Q=(0,d.Z)({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:j,offset:K.marginXXS,arrowWidth:n?K.sizePopupArrow:0,borderRadius:K.borderRadius}),J=r.useCallback((()=>{Y(!1)}),[]);return _(r.createElement(l.Z,Object.assign({alignPoint:X},(0,u.Z)(e,["rootClassName"]),{mouseEnterDelay:N,mouseLeaveDelay:O,visible:G,builtinPlacements:Q,arrow:!!n,overlayClassName:U,prefixCls:A,getPopupContainer:w||z,transitionName:D,trigger:V,overlay:()=>{let e;return e=(null==t?void 0:t.items)?r.createElement(g.Z,Object.assign({},t)):"function"==typeof P?P():P,x&&(e=x(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(h.J,{prefixCls:`${A}-menu`,expandIcon:r.createElement("span",{className:`${A}-menu-submenu-arrow`},r.createElement(o.Z,{className:`${A}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:e=>{let{mode:t}=e}},e)},placement:B,onVisibleChange:q}),W))};const N=(0,p.Z)(Z,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Z._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(N,Object.assign({},e),r.createElement("span",null));var O=Z,j=n(18785),M=n(3113),P=n(81327),R=n(33234),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(m.E_),{prefixCls:i,type:l="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:p,children:f,className:g,menu:h,arrow:v,autoFocus:b,overlay:y,trigger:x,align:w,open:C,onOpenChange:S,placement:$,getPopupContainer:E,href:k,icon:Z=r.createElement(j.Z,null),title:N,buttonsRender:T=(e=>e),mouseEnterDelay:L,mouseLeaveDelay:D,overlayClassName:B,overlayStyle:A,destroyPopupOnHide:_,dropdownRender:H}=e,K=z(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),W=`${F}-button`,[V,X]=I(F),G={menu:h,arrow:v,autoFocus:b,align:w,disabled:s,trigger:s?[]:x,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:L,mouseLeaveDelay:D,overlayClassName:B,overlayStyle:A,destroyPopupOnHide:_,dropdownRender:H},{compactSize:Y,compactItemClassnames:q}=(0,R.ri)(F,o),U=a()(W,q,g,X);"overlay"in e&&(G.overlay=y),"open"in e&&(G.open=C),G.placement="placement"in e?$:"rtl"===o?"bottomLeft":"bottomRight";const Q=r.createElement(M.ZP,{type:l,danger:c,disabled:s,loading:u,onClick:d,htmlType:p,href:k,title:N},f),J=r.createElement(M.ZP,{type:l,danger:c,icon:Z}),[ee,te]=T([Q,J]);return V(r.createElement(P.Z.Compact,Object.assign({className:U,size:Y,block:!0},K),ee,r.createElement(O,Object.assign({},G),te)))};T.__ANT_BUTTON=!0;var L=T;const D=O;D.Button=L;var B=D},64165:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(92310),o=n.n(r),i=n(59301),a=n(36355),l=n(9763),c=n(60654),s=n(88088);var u=()=>{const[,e]=(0,s.Z)(),t=new c.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var d=()=>{const[,e]=(0,s.Z)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:l,contentColor:u}=(0,i.useMemo)((()=>({borderColor:new c.C(t).onBackground(o).toHexShortString(),shadowColor:new c.C(n).onBackground(o).toHexShortString(),contentColor:new c.C(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:a},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))},p=n(83116),f=n(37613);const m=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var g=(0,p.Z)("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=(0,f.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[m(r)]})),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:c=v,description:s,children:u,imageStyle:d,style:p}=e,f=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:y,empty:x}=i.useContext(a.E_),w=m("empty",r),[C,S]=g(w),[$]=(0,l.Z)("Empty"),E=void 0!==s?s:null==$?void 0:$.description,k="string"==typeof E?E:"empty";let I=null;return I="string"==typeof c?i.createElement("img",{alt:k,src:c}):c,C(i.createElement("div",Object.assign({className:o()(S,w,null==x?void 0:x.className,{[`${w}-normal`]:c===b,[`${w}-rtl`]:"rtl"===y},t,n),style:Object.assign(Object.assign({},null==x?void 0:x.style),p)},f),i.createElement("div",{className:`${w}-image`,style:d},I),E&&i.createElement("div",{className:`${w}-description`},E),u&&i.createElement("div",{className:`${w}-footer`},u)))};y.PRESENTED_IMAGE_DEFAULT=v,y.PRESENTED_IMAGE_SIMPLE=b;var x=y},83447:function(e,t,n){n.d(t,{Z:function(){return De}});var r=n(95190),o=n(92310),i=n.n(o),a=n(77900),l=n(59301),c=n(62892),s=n(32441);function u(e){const[t,n]=l.useState(e);return l.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var d=n(17313),p=n(29878),f=n(8378),m=n(37613),g=n(83116);var h=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),b=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},y=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,d.Wf)(e)),v(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},b(e,e.controlHeightSM)),"&-large":Object.assign({},b(e,e.controlHeightLG))})}},x=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},(0,d.Wf)(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:p.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},w=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},C=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},S=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:S(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},E=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:S(e),[`@media (max-width: ${e.screenXSMax}px)`]:[$(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:S(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:S(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:S(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:S(e)}}}},k=(e,t)=>(0,m.TS)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var I=(0,g.Z)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=k(e,n);return[y(r),x(r),h(r),w(r),C(r),E(r),(0,f.Z)(r),p.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3});const Z=[];function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}var O=e=>{let{help:t,helpStatus:n,errors:o=Z,warnings:d=Z,className:p,fieldId:f,onVisibleChanged:m}=e;const{prefixCls:g}=l.useContext(s.Rk),h=`${g}-item-explain`,[,v]=I(g),b=(0,l.useMemo)((()=>(0,c.Z)(g)),[g]),y=u(o),x=u(d),w=l.useMemo((()=>null!=t?[N(t,"help",n)]:[].concat((0,r.Z)(y.map(((e,t)=>N(e,"error","error",t)))),(0,r.Z)(x.map(((e,t)=>N(e,"warning","warning",t)))))),[t,n,y,x]),C={};return f&&(C.id=`${f}_help`),l.createElement(a.ZP,{motionDeadline:b.motionDeadline,motionName:`${g}-show-help`,visible:!!w.length,onVisibleChanged:m},(e=>{const{className:t,style:n}=e;return l.createElement("div",Object.assign({},C,{className:i()(h,t,p,v),style:n,role:"alert"}),l.createElement(a.V4,Object.assign({keys:w},(0,c.Z)(g),{motionName:`${g}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return l.createElement("div",{key:t,className:i()(o,{[`${h}-${r}`]:r}),style:a},n)})))}))},j=n(95013),M=n(36355),P=n(1684),R=n(52946),z=n(19716);const T=e=>"object"==typeof e&&null!=e&&1===e.nodeType,L=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,D=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,A=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},_=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!T(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;T(m)&&d(m);){if(m=A(m),m===p){f.push(m);break}null!=m&&m===document.body&&D(m)&&!D(document.documentElement)||null!=m&&D(m,u)&&f.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:w,right:C,bottom:S,left:$}=e.getBoundingClientRect(),{top:E,right:k,bottom:I,left:Z}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===l||"nearest"===l?w-E:"end"===l?S+I:w+y/2-E+I,O="center"===c?$+x/2-Z+k:"end"===c?C+k:$-Z;const j=[];for(let e=0;e=0&&$>=0&&S<=h&&C<=g&&(t===p&&!D(t)||w>=o&&S<=s&&$>=u&&C<=i))return j;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),I=parseInt(d.borderBottomWidth,10);let Z=0,M=0;const P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-k:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-I:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,T="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)Z="start"===l?N:"end"===l?N-h:"nearest"===l?B(b,b+h,h,E,I,b+N,b+N+y,y):N-h/2,M="start"===c?O:"center"===c?O-g/2:"end"===c?O-g:B(v,v+g,g,m,k,v+O,v+O+x,x),Z=Math.max(0,Z+b),M=Math.max(0,M+v);else{Z="start"===l?N-o-E:"end"===l?N-s+I+R:"nearest"===l?B(o,s,n,E,I+R,N,N+y,y):N-(o+n/2)+R/2,M="start"===c?O-u-m:"center"===c?O-(u+r/2)+P/2:"end"===c?O-i+k+P:B(u,i,r,m,k+P,O,O+x,x);const{scrollLeft:e,scrollTop:a}=t;Z=0===T?0:Math.max(0,Math.min(a+Z/T,t.scrollHeight-n/T+R)),M=0===z?0:Math.max(0,Math.min(e+M/z,t.scrollWidth-r/z+P)),N+=a-Z,O+=e-M}j.push({el:t,top:Z,left:M})}return j};function H(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(_(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of _(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}const K=["parentNode"];function F(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function W(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return K.includes(n)?`form_item_${n}`:n}function V(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function X(e){return F(e).join("_")}function G(e){const[t]=(0,j.cI)(),n=l.useRef({}),r=l.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=X(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=F(e),o=W(n,r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&H(i,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=X(e);return n.current[t]}})),[e,t]);return[r]}var Y=n(28726),q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=l.useContext(P.Z),{getPrefixCls:r,direction:o,form:a}=l.useContext(M.E_),{prefixCls:c,className:u,rootClassName:d,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:v,labelCol:b,wrapperCol:y,hideRequiredMark:x,layout:w="horizontal",scrollToFirstError:C,requiredMark:S,onFinishFailed:$,name:E,style:k,feedbackIcons:Z}=e,N=q(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),O=(0,z.Z)(p),T=l.useContext(Y.Z);const L=(0,l.useMemo)((()=>void 0!==S?S:a&&void 0!==a.requiredMark?a.requiredMark:!x),[x,S,a]),D=null!=g?g:null==a?void 0:a.colon,B=r("form",c),[A,_]=I(B),H=i()(B,`${B}-${w}`,{[`${B}-hide-required-mark`]:!1===L,[`${B}-rtl`]:"rtl"===o,[`${B}-${O}`]:O},_,null==a?void 0:a.className,u,d),[K]=G(m),{__INTERNAL__:F}=K;F.name=E;const W=(0,l.useMemo)((()=>({name:E,labelAlign:h,labelCol:b,labelWrap:v,wrapperCol:y,vertical:"vertical"===w,colon:D,requiredMark:L,itemRef:F.itemRef,form:K,feedbackIcons:Z})),[E,h,b,y,w,D,L,K,Z]);l.useImperativeHandle(t,(()=>K));const V=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),K.scrollToField(t,n)}};return A(l.createElement(P.n,{disabled:f},l.createElement(R.q,{size:O},l.createElement(s.RV,Object.assign({},{validateMessages:T}),l.createElement(s.q3.Provider,{value:W},l.createElement(j.ZP,Object.assign({id:E},N,{name:E,onFinishFailed:e=>{if(null==$||$(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==C)return void V(C,t);a&&void 0!==a.scrollToFirstError&&V(a.scrollToFirstError,t)}},form:K,style:Object.assign(Object.assign({},null==a?void 0:a.style),k),className:H})))))))};var Q=l.forwardRef(U),J=n(41799),ee=n(8654),te=n(92343),ne=n(11592);const re=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(s.aM);return{status:e,errors:t,warnings:n}};re.Context=s.aM;var oe=re,ie=n(16089);var ae=n(29194),le=n(34280),ce=n(2738),se=n(27382),ue=n(37028);const de=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var pe=(0,g.b)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=k(e,n);return[de(r)]}));var fe=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:c,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h=`${t}-item`,v=l.useContext(s.q3),b=r||v.wrapperCol||{},y=i()(`${h}-control`,b.className),x=l.useMemo((()=>Object.assign({},v)),[v]);delete x.labelCol,delete x.wrapperCol;const w=l.createElement("div",{className:`${h}-control-input`},l.createElement("div",{className:`${h}-control-input-content`},o)),C=l.useMemo((()=>({prefixCls:t,status:n})),[t,n]),S=null!==m||a.length||c.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(s.Rk.Provider,{value:C},l.createElement(O,{fieldId:f,errors:a,warnings:c,help:p,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,$={};f&&($.id=`${f}_extra`);const E=d?l.createElement("div",Object.assign({},$,{className:`${h}-extra`}),d):null,k=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:w,errorList:S,extra:E}):l.createElement(l.Fragment,null,w,S,E);return l.createElement(s.q3.Provider,{value:x},l.createElement(ue.Z,Object.assign({},b,{className:y}),k),l.createElement(pe,{prefixCls:t}))},me=n(14809),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},he=n(7657),ve=function(e,t){return l.createElement(he.Z,(0,me.Z)({},e,{ref:t,icon:ge}))};var be=l.forwardRef(ve),ye=n(41412),xe=n(9763),we=n(6848),Ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:c,required:u,requiredMark:d,tooltip:p}=e;var f;const[m]=(0,xe.Z)("Form"),{vertical:g,labelAlign:h,labelCol:v,labelWrap:b,colon:y}=l.useContext(s.q3);if(!n)return null;const x=o||v||{},w=a||h,C=`${t}-item-label`,S=i()(C,"left"===w&&`${C}-left`,x.className,{[`${C}-wrap`]:!!b});let $=n;const E=!0===c||!1!==y&&!1!==c;E&&!g&&"string"==typeof n&&""!==n.trim()&&($=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||l.isValidElement(e)?{title:e}:e:null}(p);if(k){const{icon:e=l.createElement(be,null)}=k,n=Ce(k,["icon"]),r=l.createElement(we.Z,Object.assign({},n),l.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));$=l.createElement(l.Fragment,null,$,r)}const I="optional"===d,Z="function"==typeof d;Z?$=d($,{required:!!u}):I&&!u&&($=l.createElement(l.Fragment,null,$,l.createElement("span",{className:`${t}-item-optional`,title:""},(null==m?void 0:m.optional)||(null===(f=ye.Z.Form)||void 0===f?void 0:f.optional))));const N=i()({[`${t}-item-required`]:u,[`${t}-item-required-mark-optional`]:I||Z,[`${t}-item-no-colon`]:!E});return l.createElement(ue.Z,Object.assign({},x,{className:S}),l.createElement("label",{htmlFor:r,className:N,title:"string"==typeof n?n:""},$))},$e=n(29679),Ee=n(19248),ke=n(96512),Ie=n(58617);const Ze={success:$e.Z,warning:ke.Z,error:Ee.Z,validating:Ie.Z};function Ne(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:c,meta:u,noStyle:d}=e;const p=`${c}-item`,{feedbackIcons:f}=l.useContext(s.q3),m=V(n,r,u,null,!!o,a),{isFormItemInput:g,status:h}=l.useContext(s.aM),v=l.useMemo((()=>{var e;let t;if(o){const a=!0!==o&&o.icons||f,c=m&&(null===(e=null==a?void 0:a({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),s=m&&Ze[m];t=!1!==c&&s?l.createElement("span",{className:i()(`${p}-feedback-icon`,`${p}-feedback-icon-${m}`)},c||l.createElement(s,null)):null}let a=!0,c=m||"";return d&&(a=g,c=(null!=m?m:h)||""),{status:c,errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:a}}),[m,o,d,g,h]);return l.createElement(s.aM.Provider,{value:v},t)}var Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(Z&&$.current){const e=getComputedStyle($.current);j(parseInt(e.marginBottom,10))}}),[Z,N]);const M=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?E:f.errors,n=e?k:f.warnings;return V(t,n,f,"",!!m,p)}(),P=i()(C,n,r,{[`${C}-with-help`]:I||E.length||k.length,[`${C}-has-feedback`]:M&&m,[`${C}-has-success`]:"success"===M,[`${C}-has-warning`]:"warning"===M,[`${C}-has-error`]:"error"===M,[`${C}-is-validating`]:"validating"===M,[`${C}-hidden`]:g});return l.createElement("div",{className:P,style:o,ref:$},l.createElement(se.Z,Object.assign({className:`${C}-row`},(0,ce.Z)(w,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(Se,Object.assign({htmlFor:v},e,{requiredMark:S,required:null!=b?b:y,prefixCls:t})),l.createElement(fe,Object.assign({},e,f,{errors:E,warnings:k,prefixCls:t,status:M,help:a,marginBottom:O,onErrorVisibleChanged:e=>{e||j(null)}}),l.createElement(s.qI.Provider,{value:x},l.createElement(Ne,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:M},h)))),!!O&&l.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-O}}))}const Me=l.memo((e=>{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const Pe=function(e){const{name:t,noStyle:n,className:o,dependencies:a,prefixCls:c,shouldUpdate:u,rules:d,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:v,hidden:b,help:y}=e,{getPrefixCls:x}=l.useContext(M.E_),{name:w}=l.useContext(s.q3),C=function(e){if("function"==typeof e)return e;const t=(0,ne.Z)(e);return t.length<=1?t[0]:t}(p),S="function"==typeof C,$=l.useContext(s.qI),{validateTrigger:E}=l.useContext(j.zb),k=void 0!==v?v:E,Z=function(e){return!(null==e)}(t),N=x("form",c),[O,P]=I(N),R=l.useContext(j.ZM),z=l.useRef(),[T,L]=function(e){const[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),i=(0,l.useRef)(!1);return l.useEffect((()=>(i.current=!1,()=>{i.current=!0,ie.Z.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=(0,ie.Z)((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[D,B]=(0,J.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),A=(e,t)=>{L((n=>{const o=Object.assign({},n),i=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[i]:o[i]=e,o}))},[_,H]=l.useMemo((()=>{const e=(0,r.Z)(D.errors),t=(0,r.Z)(D.warnings);return Object.values(T).forEach((n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))})),[e,t]}),[T,D.errors,D.warnings]),K=function(){const{itemRef:e}=l.useContext(s.q3),t=l.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=(0,ee.sQ)(e(n),o)),t.current.ref}}();function V(t,r,a){return n&&!b?l.createElement(Ne,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:_,warnings:H,noStyle:!0},t):l.createElement(je,Object.assign({key:"row"},e,{className:i()(o,P),prefixCls:N,fieldId:r,isRequired:a,errors:_,warnings:H,meta:D,onSubItemMetaChange:A}),t)}if(!Z&&!S&&!a)return O(V(C));let X={};return"string"==typeof m?X.label=m:t&&(X.label=String(t)),g&&(X=Object.assign(Object.assign({},X),g)),O(l.createElement(j.gN,Object.assign({},e,{messageVariables:X,trigger:h,validateTrigger:k,onMetaChange:e=>{const t=null==R?void 0:R.getKey(e.name);if(B(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==y&&$){let n=e.name;if(e.destroy)n=z.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat((0,r.Z)(o)),z.current=n}$(e,n)}}}),((n,o,i)=>{const c=F(t).length&&o?o.name:[],s=W(c,w),p=void 0!==f?f:!(!d||!d.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},n);let g=null;if(Array.isArray(C)&&Z)g=C;else if(S&&(!u&&!a||Z));else if(!a||S||Z)if((0,te.l$)(C)){const t=Object.assign(Object.assign({},C.props),m);if(t.id||(t.id=s),y||_.length>0||H.length>0||e.extra){const n=[];(y||_.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}_.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,ee.Yr)(C)&&(t.ref=K(c,C));new Set([].concat((0,r.Z)(F(h)),(0,r.Z)(F(k)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),c=0;c{var{prefixCls:t,children:n}=e,r=ze(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(M.E_),i=o("form",t),a=l.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return l.createElement(j.aV,Object.assign({},r),((e,t,r)=>l.createElement(s.Rk.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const Le=Q;Le.Item=Re,Le.List=Te,Le.ErrorList=O,Le.useForm=G,Le.useFormInstance=function(){const{form:e}=(0,l.useContext)(s.q3);return e},Le.useWatch=j.qo,Le.Provider=s.RV,Le.create=()=>{};var De=Le},6700:function(e,t,n){const r=(0,n(59301).createContext)({});t.Z=r},37028:function(e,t,n){var r=n(59301),o=n(92310),i=n.n(o),a=n(36355),l=n(6700),c=n(98242),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:o}=r.useContext(a.E_),{gutter:d,wrap:p}=r.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:v,pull:b,className:y,children:x,flex:w,style:C}=e,S=s(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",f),[E,k]=(0,c.c)($);let I={};u.forEach((t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete S[t],I=Object.assign(Object.assign({},I),{[`${$}-${t}-${n.span}`]:void 0!==n.span,[`${$}-${t}-order-${n.order}`]:n.order||0===n.order,[`${$}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${$}-${t}-push-${n.push}`]:n.push||0===n.push,[`${$}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${$}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${$}-rtl`]:"rtl"===o})}));const Z=i()($,{[`${$}-${m}`]:void 0!==m,[`${$}-order-${g}`]:g,[`${$}-offset-${h}`]:h,[`${$}-push-${v}`]:v,[`${$}-pull-${b}`]:b},y,I,k),N={};if(d&&d[0]>0){const e=d[0]/2;N.paddingLeft=e,N.paddingRight=e}return w&&(N.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(w),!1!==p||N.minWidth||(N.minWidth=0)),E(r.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign({},N),C),className:Z,ref:t}),x))}));t.Z=d},8628:function(e,t,n){var r=n(59301),o=n(34280),i=n(56762),a=n(69507);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=(0,i.Z)(),l=(0,a.ZP)();return(0,o.Z)((()=>{const r=l.subscribe((r=>{t.current=r,e&&n()}));return()=>l.unsubscribe(r)}),[]),t.current}},27382:function(e,t,n){var r=n(59301),o=n(92310),i=n.n(o),a=n(69507),l=n(36355),c=n(6700),s=n(98242),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:p,className:f,style:m,children:g,gutter:h=0,wrap:v}=e,b=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:y,direction:x}=r.useContext(l.E_),[w,C]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[S,$]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=d(p,S),k=d(o,S),I=r.useRef(h),Z=(0,a.ZP)();r.useEffect((()=>{const e=Z.subscribe((e=>{$(e);const t=I.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&C(e)}));return()=>Z.unsubscribe(e)}),[]);const N=y("row",n),[O,j]=(0,s.V)(N),M=(()=>{const e=[void 0,void 0];return(Array.isArray(h)?h:[h,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?M[0]/-2:void 0;z&&(R.marginLeft=z,R.marginRight=z),[,R.rowGap]=M;const[T,L]=M,D=r.useMemo((()=>({gutter:[T,L],wrap:v})),[T,L,v]);return O(r.createElement(c.Z.Provider,{value:D},r.createElement("div",Object.assign({},b,{className:P,style:Object.assign(Object.assign({},R),m),ref:t}),g)))}));t.Z=p},98242:function(e,t,n){n.d(t,{V:function(){return c},c:function(){return s}});var r=n(83116),o=n(37613);const i=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let e=r;e>=0;e--)0===e?(o[`${n}${t}-${e}`]={display:"none"},o[`${n}-push-${e}`]={insetInlineStart:"auto"},o[`${n}-pull-${e}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${e}`]={marginInlineStart:0},o[`${n}${t}-order-${e}`]={order:0}):(o[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],o[`${n}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},o[`${n}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},o[`${n}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},o[`${n}${t}-order-${e}`]={order:e});return o})(e,t),c=(0,r.Z)("Grid",(e=>[i(e)])),s=(0,r.Z)("Grid",(e=>{const t=(0,o.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[a(t),l(t,""),l(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},l(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}))},9432:function(e,t,n){n.d(t,{Z:function(){return y},n:function(){return b}});var r=n(19248),o=n(92310),i=n.n(o),a=n(93681),l=n(8654),c=n(59301),s=n(19080),u=n(36355),d=n(1684),p=n(19716),f=n(32441),m=n(33234),g=n(59412),h=n(9937);var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,bordered:b=!0,status:y,size:x,disabled:w,onBlur:C,onFocus:S,suffix:$,allowClear:E,addonAfter:k,addonBefore:I,className:Z,style:N,styles:O,rootClassName:j,onChange:M,classNames:P}=e,R=v(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:z,direction:T,input:L}=c.useContext(u.E_),D=z("input",o),B=(0,c.useRef)(null),[A,_]=(0,h.ZP)(D),{compactSize:H,compactItemClassnames:K}=(0,m.ri)(D,T),F=(0,p.Z)((e=>{var t;return null!==(t=null!=x?x:H)&&void 0!==t?t:e})),W=c.useContext(d.Z),V=null!=w?w:W,{status:X,hasFeedback:G,feedbackIcon:Y}=(0,c.useContext)(f.aM),q=(0,s.F)(X,y),U=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!G,Q=(0,c.useRef)(U);(0,c.useEffect)((()=>{U&&Q.current,Q.current=U}),[U]);const J=(0,g.Z)(B,!0),ee=(G||$)&&c.createElement(c.Fragment,null,$,G&&Y);let te;return"object"==typeof E&&(null==E?void 0:E.clearIcon)?te=E:E&&(te={clearIcon:c.createElement(r.Z,null)}),A(c.createElement(a.Z,Object.assign({ref:(0,l.sQ)(t,B),prefixCls:D,autoComplete:null==L?void 0:L.autoComplete},R,{disabled:V,onBlur:e=>{J(),null==C||C(e)},onFocus:e=>{J(),null==S||S(e)},style:Object.assign(Object.assign({},null==L?void 0:L.style),N),styles:Object.assign(Object.assign({},null==L?void 0:L.styles),O),suffix:ee,allowClear:te,className:i()(Z,j,K,null==L?void 0:L.className),onChange:e=>{J(),null==M||M(e)},addonAfter:k&&c.createElement(m.BR,null,c.createElement(f.Ux,{override:!0,status:!0},k)),addonBefore:I&&c.createElement(m.BR,null,c.createElement(f.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},P),null==L?void 0:L.classNames),{input:i()({[`${D}-sm`]:"small"===F,[`${D}-lg`]:"large"===F,[`${D}-rtl`]:"rtl"===T,[`${D}-borderless`]:!b},!U&&(0,s.Z)(D,q),null==P?void 0:P.input,null===(n=null==L?void 0:L.classNames)||void 0===n?void 0:n.input,_)}),classes:{affixWrapper:i()({[`${D}-affix-wrapper-sm`]:"small"===F,[`${D}-affix-wrapper-lg`]:"large"===F,[`${D}-affix-wrapper-rtl`]:"rtl"===T,[`${D}-affix-wrapper-borderless`]:!b},(0,s.Z)(`${D}-affix-wrapper`,q,G),_),wrapper:i()({[`${D}-group-rtl`]:"rtl"===T},_),group:i()({[`${D}-group-wrapper-sm`]:"small"===F,[`${D}-group-wrapper-lg`]:"large"===F,[`${D}-group-wrapper-rtl`]:"rtl"===T,[`${D}-group-wrapper-disabled`]:V},(0,s.Z)(`${D}-group-wrapper`,q,G),_)}})))}))},6121:function(e,t,n){n.d(t,{Z:function(){return _}});var r,o=n(19248),i=n(92310),a=n.n(i),l=n(14809),c=n(20439),s=n(4635),u=n(93664),d=n(50298),p=n(62646),f=n(95190),m=n(93681),g=n(5643),h=n(18929),v=n(59301),b=n(29301),y=n(34280),x=n(16089),w="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",C=["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","white-space"],S={};function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&S[n])return S[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=C.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(S[n]=c),c}var E=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=v.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=(n.onPressEnter,n.defaultValue),f=n.value,m=n.autoSize,g=n.onResize,C=n.className,S=n.style,k=n.disabled,I=n.onChange,Z=(n.onInternalAutoSize,(0,p.Z)(n,E)),N=(0,h.Z)(i,{value:f,postState:function(e){return null!=e?e:""}}),O=(0,d.Z)(N,2),j=O[0],M=O[1],P=v.useRef();v.useImperativeHandle(t,(function(){return{textArea:P.current}}));var R=v.useMemo((function(){return m&&"object"===(0,u.Z)(m)?[m.minRows,m.maxRows]:[]}),[m]),z=(0,d.Z)(R,2),T=z[0],L=z[1],D=!!m,B=v.useState(2),A=(0,d.Z)(B,2),_=A[0],H=A[1],K=v.useState(),F=(0,d.Z)(K,2),W=F[0],V=F[1],X=function(){H(0)};(0,y.Z)((function(){D&&X()}),[f,T,L,D]),(0,y.Z)((function(){if(0===_)H(1);else if(1===_){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=$(e,t),a=i.paddingSize,l=i.borderSize,c=i.boxSizing,s=i.sizingStyle;r.setAttribute("style","".concat(s,";").concat(w)),r.value=e.value||e.placeholder||"";var u,d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===c?f+=l:"content-box"===c&&(f-=a),null!==n||null!==o){r.value=" ";var m=r.scrollHeight-a;null!==n&&(d=m*n,"border-box"===c&&(d=d+a+l),f=Math.max(d,f)),null!==o&&(p=m*o,"border-box"===c&&(p=p+a+l),u=f>p?"":"hidden",f=Math.min(p,f))}var g={height:f,overflowY:u,resize:"none"};return d&&(g.minHeight=d),p&&(g.maxHeight=p),g}(P.current,!1,T,L);H(2),V(e)}else!function(){try{if(document.activeElement===P.current){var e=P.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;P.current.setSelectionRange(t,n),P.current.scrollTop=r}}catch(e){}}()}),[_]);var G=v.useRef(),Y=function(){x.Z.cancel(G.current)};v.useEffect((function(){return Y}),[]);var q=D?W:null,U=(0,c.Z)((0,c.Z)({},S),q);return 0!==_&&1!==_||(U.overflowY="hidden",U.overflowX="hidden"),v.createElement(b.Z,{onResize:function(e){2===_&&(null==g||g(e),m&&(Y(),G.current=(0,x.Z)((function(){X()}))))},disabled:!(m||g)},v.createElement("textarea",(0,l.Z)({},Z,{ref:P,style:U,className:a()(o,C,(0,s.Z)({},"".concat(o,"-disabled"),k)),disabled:k,value:j,onChange:function(e){M(e.target.value),null==I||I(e)}})))})),I=k,Z=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function N(e,t){return(0,f.Z)(e||"").slice(0,t).join("")}function O(e,t,n,r){var o=n;return e?o=N(n,r):(0,f.Z)(t||"").lengthr&&(o=t),o}var j=v.forwardRef((function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,b=e.onBlur,y=e.onChange,x=e.allowClear,w=e.maxLength,C=e.onCompositionStart,S=e.onCompositionEnd,$=e.suffix,E=e.prefixCls,k=void 0===E?"rc-textarea":E,j=e.classes,M=e.showCount,P=e.className,R=e.style,z=e.disabled,T=e.hidden,L=e.classNames,D=e.styles,B=e.onResize,A=(0,p.Z)(e,Z),_=(0,h.Z)(r,{value:o,defaultValue:r}),H=(0,d.Z)(_,2),K=H[0],F=H[1],W=(0,v.useRef)(null),V=v.useState(!1),X=(0,d.Z)(V,2),G=X[0],Y=X[1],q=v.useState(!1),U=(0,d.Z)(q,2),Q=U[0],J=U[1],ee=v.useRef(),te=v.useRef(0),ne=v.useState(null),re=(0,d.Z)(ne,2),oe=re[0],ie=re[1],ae=function(){var e;null===(e=W.current)||void 0===e||e.textArea.focus()};(0,v.useImperativeHandle)(t,(function(){return{resizableTextArea:W.current,focus:ae,blur:function(){var e;null===(e=W.current)||void 0===e||e.textArea.blur()}}})),(0,v.useEffect)((function(){Y((function(e){return!z&&e}))}),[z]);var le=Number(w)>0,ce=(0,g.D7)(K);!Q&&le&&null==o&&(ce=N(ce,w));var se,ue=$;if(M){var de=(0,f.Z)(ce).length;se="object"===(0,u.Z)(M)?M.formatter({value:ce,count:de,maxLength:w}):"".concat(de).concat(le?" / ".concat(w):""),ue=v.createElement(v.Fragment,null,ue,v.createElement("span",{className:a()("".concat(k,"-data-count"),null==L?void 0:L.count),style:null==D?void 0:D.count},se))}var pe=!A.autoSize&&!M&&!x;return v.createElement(m.Q,{value:ce,allowClear:x,handleReset:function(e){var t;F(""),ae(),(0,g.rJ)(null===(t=W.current)||void 0===t?void 0:t.textArea,e,y)},suffix:ue,prefixCls:k,classes:{affixWrapper:a()(null==j?void 0:j.affixWrapper,(n={},(0,s.Z)(n,"".concat(k,"-show-count"),M),(0,s.Z)(n,"".concat(k,"-textarea-allow-clear"),x),n))},disabled:z,focused:G,className:P,style:(0,c.Z)((0,c.Z)({},R),oe&&!pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof se?se:void 0}},hidden:T,inputElement:v.createElement(I,(0,l.Z)({},A,{onKeyDown:function(e){var t=A.onPressEnter,n=A.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){var t=e.target.value;!Q&&le&&(t=O(e.target.selectionStart>=w+1||e.target.selectionStart===t.length||!e.target.selectionStart,K,t,w));F(t),(0,g.rJ)(e.currentTarget,e,y,t)},onFocus:function(e){Y(!0),null==i||i(e)},onBlur:function(e){Y(!1),null==b||b(e)},onCompositionStart:function(e){J(!0),ee.current=K,te.current=e.currentTarget.selectionStart,null==C||C(e)},onCompositionEnd:function(e){J(!1);var t,n=e.currentTarget.value;le&&(n=O(te.current>=w+1||te.current===(null===(t=ee.current)||void 0===t?void 0:t.length),ee.current,n,w));n!==K&&(F(n),(0,g.rJ)(e.currentTarget,e,y,n)),null==S||S(e)},className:null==L?void 0:L.textarea,style:(0,c.Z)((0,c.Z)({},null==D?void 0:D.textarea),{},{resize:null==R?void 0:R.resize}),disabled:z,prefixCls:k,onResize:function(e){var t;null==B||B(e),null!==(t=W.current)&&void 0!==t&&t.textArea.style.height&&ie(!0)},ref:W}))})})),M=j,P=n(19080),R=n(36355),z=n(1684),T=n(19716),L=n(32441),D=n(9432),B=n(9937),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,bordered:r=!0,size:i,disabled:l,status:c,allowClear:s,showCount:u,classNames:d,rootClassName:p,className:f}=e,m=A(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:g,direction:h}=v.useContext(R.E_),b=(0,T.Z)(i),y=v.useContext(z.Z),x=null!=l?l:y,{status:w,hasFeedback:C,feedbackIcon:S}=v.useContext(L.aM),$=(0,P.F)(w,c),E=v.useRef(null);v.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=E.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,D.n)(null===(n=null===(t=E.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.blur()}}}));const k=g("input",n);let I;"object"==typeof s&&(null==s?void 0:s.clearIcon)?I=s:s&&(I={clearIcon:v.createElement(o.Z,null)});const[Z,N]=(0,B.ZP)(k);return Z(v.createElement(M,Object.assign({},m,{disabled:x,allowClear:I,className:a()(f,p),classes:{affixWrapper:a()(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===h,[`${k}-affix-wrapper-borderless`]:!r,[`${k}-affix-wrapper-sm`]:"small"===b,[`${k}-affix-wrapper-lg`]:"large"===b,[`${k}-textarea-show-count`]:u},(0,P.Z)(`${k}-affix-wrapper`,$),N)},classNames:Object.assign(Object.assign({},d),{textarea:a()({[`${k}-borderless`]:!r,[`${k}-sm`]:"small"===b,[`${k}-lg`]:"large"===b},(0,P.Z)(k,$),N,null==d?void 0:d.textarea)}),prefixCls:k,suffix:C&&v.createElement("span",{className:`${k}-textarea-suffix`},S),showCount:u,ref:E})))}))},59412:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(59301);function o(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,r.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}},10249:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(92310),o=n.n(r),i=n(59301),a=n(36355),l=n(32441),c=n(9937);var s=e=>{const{getPrefixCls:t,direction:n}=(0,i.useContext)(a.E_),{prefixCls:r,className:s}=e,u=t("input-group",r),d=t("input"),[p,f]=(0,c.ZP)(d),m=o()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},f,s),g=(0,i.useContext)(l.aM),h=(0,i.useMemo)((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return p(i.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(l.aM.Provider,{value:h},e.children)))},u=n(9432),d=n(14809),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},f=n(7657),m=function(e,t){return i.createElement(f.Z,(0,d.Z)({},e,{ref:t,icon:p}))};var g=i.forwardRef(m),h=n(15277),v=n(2738),b=n(8654),y=n(59412),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe?i.createElement(h.Z,null):i.createElement(g,null),C={click:"onClick",hover:"onMouseOver"};var S=i.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[l,c]=(0,i.useState)((()=>!!r&&n.visible)),s=(0,i.useRef)(null);i.useEffect((()=>{r&&c(n.visible)}),[r,n]);const d=(0,y.Z)(s),p=()=>{const{disabled:t}=e;t||(l&&d(),c((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:f,prefixCls:m,inputPrefixCls:g,size:h}=e,S=x(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=i.useContext(a.E_),E=$("input",g),k=$("input-password",m),I=n&&(t=>{const{action:n="click",iconRender:r=w}=e,o=C[n]||"",a=r(l),c={[o]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(a)?a:i.createElement("span",null,a),c)})(k),Z=o()(k,f,{[`${k}-${h}`]:!!h}),N=Object.assign(Object.assign({},(0,v.Z)(S,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:Z,prefixCls:E,suffix:I});return h&&(N.size=h),i.createElement(u.Z,Object.assign({ref:(0,b.sQ)(t,s)},N))})),$=n(47472),E=n(92343),k=n(3113),I=n(19716),Z=n(33234),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:l,size:c,suffix:s,enterButton:d=!1,addonAfter:p,loading:f,disabled:m,onSearch:g,onChange:h,onCompositionStart:v,onCompositionEnd:y}=e,x=N(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:C}=i.useContext(a.E_),S=i.useRef(!1),O=w("input-search",n),j=w("input",r),{compactSize:M}=(0,Z.ri)(O,C),P=(0,I.Z)((e=>{var t;return null!==(t=null!=c?c:M)&&void 0!==t?t:e})),R=i.useRef(null),z=e=>{var t;document.activeElement===(null===(t=R.current)||void 0===t?void 0:t.input)&&e.preventDefault()},T=e=>{var t,n;g&&g(null===(n=null===(t=R.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},L="boolean"==typeof d?i.createElement($.Z,null):null,D=`${O}-button`;let B;const A=d||{},_=A.type&&!0===A.type.__ANT_BUTTON;B=_||"button"===A.type?(0,E.Tm)(A,Object.assign({onMouseDown:z,onClick:e=>{var t,n;null===(n=null===(t=null==A?void 0:A.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),T(e)},key:"enterButton"},_?{className:D,size:P}:{})):i.createElement(k.ZP,{className:D,type:d?"primary":void 0,size:P,disabled:m,key:"enterButton",onMouseDown:z,onClick:T,loading:f,icon:L},d),p&&(B=[B,(0,E.Tm)(p,{key:"addonAfter"})]);const H=o()(O,{[`${O}-rtl`]:"rtl"===C,[`${O}-${P}`]:!!P,[`${O}-with-button`]:!!d},l);return i.createElement(u.Z,Object.assign({ref:(0,b.sQ)(R,t),onPressEnter:e=>{S.current||f||T(e)}},x,{size:P,onCompositionStart:e=>{S.current=!0,null==v||v(e)},onCompositionEnd:e=>{S.current=!1,null==y||y(e)},prefixCls:j,addonAfter:B,suffix:s,onChange:e=>{e&&e.target&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),h&&h(e)},className:H,disabled:m}))})),j=n(6121);const M=u.Z;M.Group=s,M.Search=O,M.TextArea=j.Z,M.Password=S;var P=M},9937:function(e,t,n){n.d(t,{M1:function(){return s},TM:function(){return S},Xy:function(){return u},bi:function(){return f},e5:function(){return C},ik:function(){return m},nz:function(){return l},pU:function(){return c},s7:function(){return g},x0:function(){return p}});var r=n(17313),o=n(74207),i=n(37613),a=n(83116);const l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),c=e=>({borderColor:e.hoverBorderColor}),s=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0}),u=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},c((0,i.TS)(e,{hoverBorderColor:e.colorBorder})))}),d=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},p=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:l,colorErrorBorderHover:c,colorWarningBorderHover:u}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},s((0,i.TS)(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:u},"&:focus, &-focused":Object.assign({},s((0,i.TS)(e,{activeBorderColor:o,activeShadow:l}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},m=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":Object.assign({},c(e)),"&:focus, &-focused":Object.assign({},s(e)),"&-disabled, &[disabled]":Object.assign({},u(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),g=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},h=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,i=(n-2*o-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),m(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},b=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},c(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),v(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),f(e,`${t}-affix-wrapper`))}},y=e=>{const{componentCls:t,colorError:n,colorWarning:o,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),g(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:i,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:o,borderColor:o}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},u(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},x=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},w=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function C(e){return(0,i.TS)(e,{inputAffixPadding:e.paddingXXS})}const S=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:h,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,3),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:f,hoverBorderColor:f,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${h}`,warningActiveShadow:`0 0 0 ${m}px ${v}`}};t.ZP=(0,a.Z)("Input",(e=>{const t=(0,i.TS)(e,C(e));return[h(t),w(t),b(t),y(t),x(t),(0,o.c)(t)]}),S)},45818:function(e,t,n){n.d(t,{D:function(){return y},Z:function(){return w}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s=n(33853),u=n(38819),d=n(92310),p=n.n(d),f=n(2738);var m=e=>!isNaN(parseFloat(e))&&isFinite(e),g=n(36355),h=n(84966),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})();var w=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:d="dark",style:w={},collapsible:C=!1,reverseArrow:S=!1,width:$=200,collapsedWidth:E=80,zeroWidthTriggerStyle:k,breakpoint:I,onCollapse:Z,onBreakpoint:N}=e,O=v(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:j}=(0,o.useContext)(h.Gs),[M,P]=(0,o.useState)("collapsed"in e?e.collapsed:l),[R,z]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&P(e.collapsed)}),[e.collapsed]);const T=(t,n)=>{"collapsed"in e||P(t),null==Z||Z(t,n)},L=(0,o.useRef)();L.current=e=>{z(e.matches),null==N||N(e.matches),M!==e.matches&&T(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return L.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&I&&I in b){t=n(`(max-width: ${b[I]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[I]),(0,o.useEffect)((()=>{const e=x("ant-sider-");return j.addSider(e),()=>j.removeSider(e)}),[]);const D=()=>{T(!M,"clickTrigger")},{getPrefixCls:B}=(0,o.useContext)(g.E_),A=o.useMemo((()=>({siderCollapsed:M})),[M]);return o.createElement(y.Provider,{value:A},(()=>{const e=B("layout-sider",n),l=(0,f.Z)(O,["collapsed"]),g=M?E:$,h=m(g)?`${g}px`:String(g),v=0===parseFloat(String(E||0))?o.createElement("span",{onClick:D,className:p()(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${S?"right":"left"}`),style:k},i||o.createElement(c,null)):null,b={expanded:S?o.createElement(u.Z,null):o.createElement(s.Z,null),collapsed:S?o.createElement(s.Z,null):o.createElement(u.Z,null)}[M?"collapsed":"expanded"],y=null!==i?v||o.createElement("div",{className:`${e}-trigger`,onClick:D,style:{width:h}},i||b):null,x=Object.assign(Object.assign({},w),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),I=p()(e,`${e}-${d}`,{[`${e}-collapsed`]:!!M,[`${e}-has-trigger`]:C&&null!==i&&!v,[`${e}-below`]:!!R,[`${e}-zero-width`]:0===parseFloat(h)},r);return o.createElement("aside",Object.assign({className:I},l,{style:x,ref:t}),o.createElement("div",{className:`${e}-children`},a),C||R&&v?y:null)})())}))},84966:function(e,t,n){n.d(t,{VY:function(){return w},$_:function(){return x},h4:function(){return y},Gs:function(){return m},ZP:function(){return C}});var r=n(95190),o=n(92310),i=n.n(o),a=n(2738),l=n(59301),c=n(36355),s=n(83116);var u=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}};const d=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:d,triggerHeight:p,zeroTriggerHeight:f,zeroTriggerWidth:m,motionDurationMid:g,motionDurationSlow:h,fontSize:v,borderRadius:b,bodyBg:y,headerBg:x,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:o,lineHeight:`${p}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:-m,zIndex:1,width:m,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-m,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},u(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:`${l}px`,background:x,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:v,background:i},[`${n}-content`]:{flex:"auto",minHeight:0}}};var p=(0,s.Z)("Layout",(e=>[d(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull,removeSider:()=>null}});function g(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>l.forwardRef(((r,o)=>l.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},r))))}const h=l.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,s=f(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=l.useContext(c.E_),d=u("layout",n),[m,g]=p(d),h=r?`${d}-${r}`:d;return m(l.createElement(a,Object.assign({className:i()(n||h,o,g),ref:t},s)))})),v=l.forwardRef(((e,t)=>{const{direction:n}=l.useContext(c.E_),[o,s]=l.useState([]),{prefixCls:u,className:d,rootClassName:g,children:h,hasSider:v,tagName:b,style:y}=e,x=f(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),w=(0,a.Z)(x,["suffixCls"]),{getPrefixCls:C,layout:S}=l.useContext(c.E_),$=C("layout",u),[E,k]=p($),I=i()($,{[`${$}-has-sider`]:"boolean"==typeof v?v:o.length>0,[`${$}-rtl`]:"rtl"===n},null==S?void 0:S.className,d,g,k),Z=l.useMemo((()=>({siderHook:{addSider:e=>{s((t=>[].concat((0,r.Z)(t),[e])))},removeSider:e=>{s((t=>t.filter((t=>t!==e))))}}})),[]);return E(l.createElement(m.Provider,{value:Z},l.createElement(b,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},null==S?void 0:S.style),y)},w),h)))})),b=g({tagName:"div",displayName:"Layout"})(v),y=g({suffixCls:"header",tagName:"header",displayName:"Header"})(h),x=g({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(h),w=g({suffixCls:"content",tagName:"main",displayName:"Content"})(h);var C=b},40875:function(e,t,n){n.d(t,{J:function(){return c}});var r=n(59301),o=n(33234),i=n(70425),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,c=a(e,["children"]),s=r.useContext(l),u=r.useMemo((()=>Object.assign(Object.assign({},s),c)),[s,c.prefixCls,c.mode,c.selectable]);return r.createElement(l.Provider,{value:u},r.createElement(o.BR,null,(0,i.t4)(n)?r.cloneElement(n,{ref:t}):n))}));t.Z=l},20834:function(e,t,n){n.d(t,{Z:function(){return V}});var r=n(15285),o=n(59301),i=n(45818),a=n(92310),l=n.n(a),c=n(36355),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:i}=e,a=s(e,["prefixCls","className","dashed"]),{getPrefixCls:u}=o.useContext(c.E_),d=u("menu",t),p=l()({[`${d}-item-divider-dashed`]:!!i},n);return o.createElement(r.iz,Object.assign({className:p},a))},d=n(11592),p=n(2738),f=n(6848),m=n(92343);var g=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var h=e=>{var t;const{className:n,children:a,icon:c,title:s,danger:u}=e,{prefixCls:h,firstLevel:v,direction:b,disableMenuItemTitleTooltip:y,inlineCollapsed:x}=o.useContext(g),{siderCollapsed:w}=o.useContext(i.D);let C=s;void 0===s?C=v?a:"":!1===s&&(C="");const S={title:C};w||x||(S.title=null,S.open=!1);const $=(0,d.Z)(a).length;let E=o.createElement(r.ck,Object.assign({},(0,p.Z)(e,["title","icon","danger"]),{className:l()({[`${h}-item-danger`]:u,[`${h}-item-only-child`]:1===(c?$+1:$)},n),title:"string"==typeof s?s:void 0}),(0,m.Tm)(c,{className:l()((0,m.l$)(c)?null===(t=c.props)||void 0===t?void 0:t.className:"",`${h}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${h}-title-content`},a);return(!c||(0,m.l$)(a)&&"span"===a.type)&&a&&e&&v&&"string"==typeof a?o.createElement("div",{className:`${h}-inline-collapsed-noicon`},a.charAt(0)):t})(x));return y||(E=o.createElement(f.Z,Object.assign({},S,{placement:"rtl"===b?"left":"right",overlayClassName:`${h}-inline-collapsed-tooltip`}),E)),E};var v=e=>{var t;const{popupClassName:n,icon:i,title:a,theme:c}=e,s=o.useContext(g),{prefixCls:u,inlineCollapsed:d,theme:f}=s,h=(0,r.Xl)();let v;if(i){const e=(0,m.l$)(a)&&"span"===a.type;v=o.createElement(o.Fragment,null,(0,m.Tm)(i,{className:l()((0,m.l$)(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${u}-item-icon`)}),e?a:o.createElement("span",{className:`${u}-title-content`},a))}else v=d&&!h.length&&a&&"string"==typeof a?o.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):o.createElement("span",{className:`${u}-title-content`},a);const b=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]);return o.createElement(g.Provider,{value:b},o.createElement(r.Wd,Object.assign({},(0,p.Z)(e,["icon"]),{title:v,popupClassName:l()(u,n,`${u}-${c||f}`)})))},b=n(18785),y=n(70425),x=n(62892),w=n(40875),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(e&&"object"==typeof e){const n=e,{label:i,children:a,key:l,type:c}=n,s=C(n,["label","children","key","type"]),d=null!=l?l:`tmp-${t}`;return a||"group"===c?"group"===c?o.createElement(r.BW,Object.assign({key:d},s,{title:i}),S(a)):o.createElement(v,Object.assign({key:d},s,{title:i}),S(a)):"divider"===c?o.createElement(u,Object.assign({key:d},s)):o.createElement(h,Object.assign({key:d},s),i)}return null})).filter((e=>e))}function $(e){return o.useMemo((()=>e?S(e):e),[e])}var E=n(60654),k=n(17313),I=n(8378),Z=n(13826),N=n(29878),O=n(83116),j=n(37613);var M=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var P=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};const R=e=>Object.assign({},(0,k.oN)(e));var z=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:E,itemHoverBg:k,itemActiveBg:I,menuSubMenuBg:Z,horizontalItemSelectedColor:N,horizontalItemSelectedBg:O,horizontalItemBorderRadius:j,horizontalItemHoverBg:M,popupBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},R(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},R(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:Z},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${s}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:s,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:s,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}};const T=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}};var L=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},T(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},T(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},k.vS),{paddingInline:f})}}]};const D=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,k.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},B=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},A=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},(0,k.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.Wf)(e)),(0,k.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),D(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${v}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},D(e)),B(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),B(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var _=(e,t)=>(0,O.Z)("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:l,darkDangerItemColor:c,darkItemBg:s,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:m,darkGroupTitleColor:g,darkItemHoverColor:h,darkItemDisabledColor:v,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:x}=e,w=a/7*5,C=(0,j.TS)(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*w+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),S=(0,j.TS)(C,{itemColor:l,itemHoverColor:h,groupTitleColor:g,itemSelectedColor:d,itemBg:s,popupBg:s,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:v,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:y,dangerItemActiveBg:x,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[A(C),M(C),L(C),z(C,"light"),z(S,"dark"),P(C),(0,I.Z)(C),(0,Z.oN)(C,"slide-up"),(0,Z.oN)(C,"slide-down"),(0,N._y)(C,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:c,colorFillContent:s,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:m,lineHeight:g,colorBgElevated:h,marginXXS:v,padding:b,fontSize:y,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:S}=e,$=new E.C(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:s,itemActiveBg:p,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:g,collapsedWidth:2*m,popupBg:h,itemMarginBlock:v,itemPaddingInline:b,horizontalLineHeight:1.15*m+"px",iconSize:y,iconMarginInlineEnd:x-y,collapsedIconSize:w,groupTitleFontSize:y,darkItemDisabledColor:new E.C(C).setAlpha(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:C,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,i;const a=o.useContext(w.Z),s=a||{},{getPrefixCls:u,getPopupContainer:d,direction:f,menu:h}=o.useContext(c.E_),v=u(),{prefixCls:C,className:S,style:E,theme:k="light",expandIcon:I,_internalDisableMenuItemTitleTooltip:Z,inlineCollapsed:N,siderCollapsed:O,items:j,children:M,rootClassName:P,mode:R,selectable:z,onClick:T,overflowedIndicatorPopupClassName:L}=e,D=H(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),B=(0,p.Z)(D,["collapsedWidth"]),A=$(j)||M;null===(n=s.validator)||void 0===n||n.call(s,{mode:R});const K=(0,y.zX)((function(){var e;null==T||T.apply(void 0,arguments),null===(e=s.onClick)||void 0===e||e.call(s)})),F=s.mode||R,W=null!=z?z:s.selectable,V=o.useMemo((()=>void 0!==O?O:N),[N,O]),X={horizontal:{motionName:`${v}-slide-up`},inline:(0,x.Z)(v),other:{motionName:`${v}-zoom-big`}},G=u("menu",C||s.prefixCls),[Y,q]=_(G,!a),U=l()(`${G}-${k}`,null==h?void 0:h.className,S);let Q;if("function"==typeof I)Q=I;else if(null===I||!1===I)Q=null;else if(null===s.expandIcon||!1===s.expandIcon)Q=null;else{const e=null!=I?I:s.expandIcon;Q=(0,m.Tm)(e,{className:l()(`${G}-submenu-expand-icon`,(0,m.l$)(e)?null===(i=e.props)||void 0===i?void 0:i.className:"")})}const J=o.useMemo((()=>({prefixCls:G,inlineCollapsed:V||!1,direction:f,firstLevel:!0,theme:k,mode:F,disableMenuItemTitleTooltip:Z})),[G,V,f,Z,k]);return Y(o.createElement(w.Z.Provider,{value:null},o.createElement(g.Provider,{value:J},o.createElement(r.ZP,Object.assign({getPopupContainer:d,overflowedIndicator:o.createElement(b.Z,null),overflowedIndicatorPopupClassName:l()(G,`${G}-${k}`,L),mode:F,selectable:W,onClick:K},B,{inlineCollapsed:V,style:Object.assign(Object.assign({},null==h?void 0:h.style),E),className:U,prefixCls:G,direction:f,defaultMotions:X,expandIcon:Q,ref:t,rootClassName:l()(P,q)}),A))))}));var F=K;const W=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(i.D);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(F,Object.assign({ref:n},e,r))}));W.Item=h,W.SubMenu=v,W.Divider=u,W.ItemGroup=r.BW;var V=W},58421:function(e,t,n){n.d(t,{Z:function(){return ee}});var r=n(14809),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s=n(49198),u=n(33853),d=n(38819),p=n(92310),f=n.n(p),m=n(4635),g=n(20439),h=n(99153),v=n(84851),b=n(19257),y=n(54941),x=n(26112),w={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},C=n(91735),S=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(){var e;(0,h.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==w.ENTER&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,v.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,i=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,p=t.disabled,f=this.state.goInputText,m="".concat(i,"-options"),g=s,h=null,v=null,b=null;if(!a&&!l)return null;var y=this.getPageSizeOptions();if(a&&g){var x=y.map((function(t,n){return o.createElement(g.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));h=o.createElement(g,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(m,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return l&&(c&&(b="boolean"==typeof c?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(m,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=o.createElement("div",{className:"".concat(m,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:p,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,b)),o.createElement("li",{className:"".concat(m)},h,v)}}]),n}(o.Component);S.defaultProps={pageSizeOptions:["10","20","50","100"]};var $=S,E=function(e){var t,n=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=f()(d,"".concat(d,"-").concat(r),(t={},(0,m.Z)(t,"".concat(d,"-active"),i),(0,m.Z)(t,"".concat(d,"-disabled"),!r),(0,m.Z)(t,e.className,a),t)),g=u(r,"page",o.createElement("a",{rel:"nofollow"},r));return g?o.createElement("li",{title:l?r.toString():null,className:p,onClick:function(){c(r)},onKeyPress:function(e){s(e,c,r)},tabIndex:0},g):null};function k(){}function I(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var N=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(e){var r;(0,h.Z)(this,n),(r=t.call(this,e)).paginationNode=o.createRef(),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(Z(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=o.createElement(e,(0,g.Z)({},r.props))),i},r.isValid=function(e){var t=r.props.total;return I(e)&&e!==r.state.current&&I(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){e.keyCode!==w.ARROW_UP&&e.keyCode!==w.ARROW_DOWN||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===w.ENTER?r.handleChange(t):e.keyCode===w.ARROW_UP?r.handleChange(t-1):e.keyCode===w.ARROW_DOWN&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=Z(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,l=i.current,c=i.currentInputValue;if(r.isValid(e)&&!n){var s=Z(void 0,r.state,r.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==c&&r.setState({currentInputValue:u}),o(u,a),u}return l},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,i=e.style,a=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,g=e.showTotal,h=e.simple,v=e.itemRender,b=e.showPrevNextJumpers,y=e.jumpPrevIcon,w=e.jumpNextIcon,C=e.selectComponentClass,S=e.selectPrefixCls,k=e.pageSizeOptions,I=this.state,N=I.current,O=I.pageSize,j=I.currentInputValue;if(!0===l&&c<=O)return null;var M=Z(void 0,this.state,this.props),P=[],R=null,z=null,T=null,L=null,D=null,B=u&&u.goButton,A=d?1:2,_=N-1>0?N-1:0,H=N+1c?c:N*O]));if(h){B&&(D="boolean"==typeof B?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),D=o.createElement("li",{title:p?"".concat(s.jump_to).concat(N,"/").concat(M):null,className:"".concat(t,"-simple-pager")},D));var W=this.renderPrev(_);return o.createElement("ul",(0,r.Z)({className:f()(t,"".concat(t,"-simple"),(0,m.Z)({},"".concat(t,"-disabled"),a),n),style:i,ref:this.paginationNode},K),F,W?o.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:f()("".concat(t,"-prev"),(0,m.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,o.createElement("li",{title:p?"".concat(N,"/").concat(M):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:j,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),M),o.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:f()("".concat(t,"-next"),(0,m.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),D)}if(M<=3+2*A){var V={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:v};M||P.push(o.createElement(E,(0,r.Z)({},V,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=M;X+=1){var G=N===X;P.push(o.createElement(E,(0,r.Z)({},V,{key:X,page:X,active:G})))}}else{var Y=d?s.prev_3:s.prev_5,q=d?s.next_3:s.next_5,U=v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(y,"prev page")),Q=v(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page"));b&&(R=U?o.createElement("li",{title:p?Y:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:f()("".concat(t,"-jump-prev"),(0,m.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!y))},U):null,z=Q?o.createElement("li",{title:p?q:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:f()("".concat(t,"-jump-next"),(0,m.Z)({},"".concat(t,"-jump-next-custom-icon"),!!w))},Q):null),L=o.createElement(E,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:p,itemRender:v}),T=o.createElement(E,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:v});var J=Math.max(1,N-A),ee=Math.min(N+A,M);N-1<=A&&(ee=1+2*A),M-N<=A&&(J=M-2*A);for(var te=J;te<=ee;te+=1){var ne=N===te;P.push(o.createElement(E,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:te,page:te,active:ne,showTitle:p,itemRender:v}))}N-1>=2*A&&3!==N&&(P[0]=(0,o.cloneElement)(P[0],{className:"".concat(t,"-item-after-jump-prev")}),P.unshift(R)),M-N>=2*A&&N!==M-2&&(P[P.length-1]=(0,o.cloneElement)(P[P.length-1],{className:"".concat(t,"-item-before-jump-next")}),P.push(z)),1!==J&&P.unshift(T),ee!==M&&P.push(L)}var re=!this.hasPrev()||!M,oe=!this.hasNext()||!M,ie=this.renderPrev(_),ae=this.renderNext(H);return o.createElement("ul",(0,r.Z)({className:f()(t,n,(0,m.Z)({},"".concat(t,"-disabled"),a)),style:i,ref:this.paginationNode},K),F,ie?o.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:re?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(t,"-prev"),(0,m.Z)({},"".concat(t,"-disabled"),re)),"aria-disabled":re},ie):null,P,ae?o.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:oe?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(t,"-next"),(0,m.Z)({},"".concat(t,"-disabled"),oe)),"aria-disabled":oe},ae):null,o.createElement($,{disabled:a,locale:s,rootPrefixCls:t,selectComponentClass:C,selectPrefixCls:S,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:N,pageSize:O,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=Z(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(o.Component);N.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:C.Z,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var O=N,j=n(22075),M=n(36355),P=n(19716),R=n(8628),z=n(9763),T=n(57809);const L=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"small"})),D=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"middle"}));L.Option=T.default.Option,D.Option=T.default.Option;var B=n(9937),A=n(17313),_=n(83116),H=n(37613);const K=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},F=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:e.itemSizeSM-2+"px"},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,B.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},W=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},V=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,B.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},X=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:e.itemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},G=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:e.itemSize-2+"px",verticalAlign:"middle"}}),X(e)),V(e)),W(e)),F(e)),K(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},q=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,A.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,A.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,A.oN)(e))}}}};var U=(0,_.Z)("Pagination",(e=>{const t=(0,H.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,B.e5)(e),(0,B.TM)(e));return[G(t),q(t),e.wireframe&&Y(t)]}),(e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}))),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,style:a,size:l,locale:p,selectComponentClass:m,responsive:g,showSizeChanger:h}=e,v=Q(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:b}=(0,R.Z)(g),{getPrefixCls:y,direction:x,pagination:w={}}=o.useContext(M.E_),C=y("pagination",t),[S,$]=U(C),E=null!=h?h:w.showSizeChanger,k=o.useMemo((()=>{const e=o.createElement("span",{className:`${C}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(d.Z,null):o.createElement(u.Z,null)),nextIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(u.Z,null):o.createElement(d.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===x?o.createElement(s.Z,{className:`${C}-item-link-icon`}):o.createElement(c,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===x?o.createElement(c,{className:`${C}-item-link-icon`}):o.createElement(s.Z,{className:`${C}-item-link-icon`}),e))}}),[x,C]),[I]=(0,z.Z)("Pagination",j.Z),Z=Object.assign(Object.assign({},I),p),N=(0,P.Z)(l),T="small"===N||!(!b||N||!g),B=y("select",n),A=f()({[`${C}-mini`]:T,[`${C}-rtl`]:"rtl"===x},null==w?void 0:w.className,r,i,$),_=Object.assign(Object.assign({},null==w?void 0:w.style),a);return S(o.createElement(O,Object.assign({},k,v,{style:_,prefixCls:C,selectPrefixCls:B,className:A,selectComponentClass:m||(T?L:D),locale:Z,showSizeChanger:E})))},ee=J},5112:function(e,t,n){n.d(t,{ZP:function(){return D}});var r=n(92310),o=n.n(r),i=n(18929),a=n(26112),l=n(59301),c=n(36355),s=n(19716);const u=l.createContext(null),d=u.Provider;var p=u;const f=l.createContext(null),m=f.Provider;var g=n(5630),h=n(8654),v=n(1684),b=n(32441),y=n(17313),x=n(83116),w=n(37613);const C=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},S=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,dotSize:d,colorBgContainerDisabled:p,colorTextDisabled:f,paddingXS:m,dotColorDisabled:g,lineType:h,radioDotDisabledSize:v,wireframe:b,colorWhite:x}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${h} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},(0,y.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},(0,y.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:b?r:x,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:b?c:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:p,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${v/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},$=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:E,colorPrimary:k,colorPrimaryHover:I,colorPrimaryActive:Z,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:j}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*o+"px",background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:p,lineHeight:f-2*o+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:g-o,paddingBlock:0,lineHeight:m-2*o+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},(0,y.oN)(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:x,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:Z,borderColor:Z,"&::before":{backgroundColor:Z}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:N,borderColor:N,"&:hover":{color:w,background:O,borderColor:O},"&:active":{color:w,background:j,borderColor:j}},"&-disabled":{color:C,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:$,borderColor:a,boxShadow:"none"}}}},E=e=>e-8;var k=(0,x.Z)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=E(r),l=(0,w.TS)(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return[C(l),S(l),$(l)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f}=e,m=i;return{radioSize:m,dotSize:t?E(m):m-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}})),I=n(14088),Z=n(4572),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const i=l.useContext(p),a=l.useContext(f),{getPrefixCls:s,direction:u,radio:d}=l.useContext(c.E_),m=l.useRef(null),y=(0,h.sQ)(t,m),{isFormItemInput:x}=l.useContext(b.aM),w=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:C,className:S,rootClassName:$,children:E,style:O}=e,j=N(e,["prefixCls","className","rootClassName","children","style"]),M=s("radio",C),P="button"===((null==i?void 0:i.optionType)||a),R=P?`${M}-button`:M,[z,T]=k(M),L=Object.assign({},j),D=l.useContext(v.Z);i&&(L.name=i.name,L.onChange=w,L.checked=e.value===i.value,L.disabled=null!==(n=L.disabled)&&void 0!==n?n:i.disabled),L.disabled=null!==(r=L.disabled)&&void 0!==r?r:D;const B=o()(`${R}-wrapper`,{[`${R}-wrapper-checked`]:L.checked,[`${R}-wrapper-disabled`]:L.disabled,[`${R}-wrapper-rtl`]:"rtl"===u,[`${R}-wrapper-in-form-item`]:x},null==d?void 0:d.className,S,$,T);return z(l.createElement(I.Z,{component:"Radio",disabled:L.disabled},l.createElement("label",{className:B,style:Object.assign(Object.assign({},null==d?void 0:d.style),O),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},l.createElement(g.Z,Object.assign({},L,{className:o()(L.className,!P&&Z.A),type:"radio",prefixCls:R,ref:y})),void 0!==E?l.createElement("span",null,E):null)))};var j=l.forwardRef(O);const M=l.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(c.E_),[u,p]=(0,i.Z)(e.defaultValue,{value:e.value}),{prefixCls:f,className:m,rootClassName:g,options:h,buttonStyle:v="outline",disabled:b,children:y,size:x,style:w,id:C,onMouseEnter:S,onMouseLeave:$,onFocus:E,onBlur:I}=e,Z=n("radio",f),N=`${Z}-group`,[O,M]=k(Z);let P=y;h&&h.length>0&&(P=h.map((e=>"string"==typeof e||"number"==typeof e?l.createElement(j,{key:e.toString(),prefixCls:Z,disabled:b,value:e,checked:u===e},e):l.createElement(j,{key:`radio-group-value-options-${e.value}`,prefixCls:Z,disabled:e.disabled||b,value:e.value,checked:u===e.value,title:e.title,style:e.style},e.label))));const R=(0,s.Z)(x),z=o()(N,`${N}-${v}`,{[`${N}-${R}`]:R,[`${N}-rtl`]:"rtl"===r},m,g,M);return O(l.createElement("div",Object.assign({},(0,a.Z)(e,{aria:!0,data:!0}),{className:z,style:w,onMouseEnter:S,onMouseLeave:$,onFocus:E,onBlur:I,id:C,ref:t}),l.createElement(d,{value:{onChange:t=>{const n=u,r=t.target.value;"value"in e||p(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:u,disabled:e.disabled,name:e.name,optionType:e.optionType}},P)))}));var P=l.memo(M),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=l.useContext(c.E_),{prefixCls:r}=e,o=R(e,["prefixCls"]),i=n("radio",r);return l.createElement(m,{value:"button"},l.createElement(j,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))};var T=l.forwardRef(z);const L=j;L.Button=T,L.Group=P,L.__ANT_RADIO=!0;var D=L},95237:function(e,t,n){var r=n(27382);t.Z=r.Z},57809:function(e,t,n){var r=n(92310),o=n.n(r),i=n(77861),a=n(2738),l=n(59301),c=n(53487),s=n(62892),u=n(19080),d=n(36355),p=n(1684),f=n(93891),m=n(19716),g=n(32441),h=n(33234),v=n(14154),b=n(58582),y=n(84443),x=n(66339),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,bordered:c=!0,className:S,rootClassName:$,getPopupContainer:E,popupClassName:k,dropdownClassName:I,listHeight:Z=256,placement:N,listItemHeight:O=24,size:j,disabled:M,notFoundContent:P,status:R,builtinPlacements:z,dropdownMatchSelectWidth:T,popupMatchSelectWidth:L,direction:D,style:B,allowClear:A}=e,_=w(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:H,getPrefixCls:K,renderEmpty:F,direction:W,virtual:V,popupMatchSelectWidth:X,popupOverflow:G,select:Y}=l.useContext(d.E_),q=K("select",r),U=K(),Q=null!=D?D:W,{compactSize:J,compactItemClassnames:ee}=(0,h.ri)(q,Q),[te,ne]=(0,v.Z)(q),re=l.useMemo((()=>{const{mode:e}=_;if("combobox"!==e)return e===C?"combobox":e}),[_.mode]),oe="multiple"===re||"tags"===re,ie=(0,y.Z)(_.suffixIcon,_.showArrow),ae=null!==(n=null!=L?L:T)&&void 0!==n?n:X,{status:le,hasFeedback:ce,isFormItemInput:se,feedbackIcon:ue}=l.useContext(g.aM),de=(0,u.F)(le,R);let pe;pe=void 0!==P?P:"combobox"===re?null:(null==F?void 0:F("Select"))||l.createElement(f.Z,{componentName:"Select"});const{suffixIcon:fe,itemIcon:me,removeIcon:ge,clearIcon:he}=(0,x.Z)(Object.assign(Object.assign({},_),{multiple:oe,hasFeedback:ce,feedbackIcon:ue,showSuffixIcon:ie,prefixCls:q,showArrow:_.showArrow,componentName:"Select"})),ve=!0===A?{clearIcon:he}:A,be=(0,a.Z)(_,["suffixIcon","itemIcon"]),ye=o()(k||I,{[`${q}-dropdown-${Q}`]:"rtl"===Q},$,ne),xe=(0,m.Z)((e=>{var t;return null!==(t=null!=j?j:J)&&void 0!==t?t:e})),we=l.useContext(p.Z),Ce=null!=M?M:we,Se=o()({[`${q}-lg`]:"large"===xe,[`${q}-sm`]:"small"===xe,[`${q}-rtl`]:"rtl"===Q,[`${q}-borderless`]:!c,[`${q}-in-form-item`]:se},(0,u.Z)(q,de,ce),ee,null==Y?void 0:Y.className,S,$,ne),$e=l.useMemo((()=>void 0!==N?N:"rtl"===Q?"bottomRight":"bottomLeft"),[N,Q]),Ee=(0,b.Z)(z,G);return te(l.createElement(i.ZP,Object.assign({ref:t,virtual:V,showSearch:null==Y?void 0:Y.showSearch},be,{style:Object.assign(Object.assign({},null==Y?void 0:Y.style),B),dropdownMatchSelectWidth:ae,builtinPlacements:Ee,transitionName:(0,s.m)(U,"slide-up",_.transitionName),listHeight:Z,listItemHeight:O,mode:re,prefixCls:q,placement:$e,direction:Q,suffixIcon:fe,menuItemSelectedIcon:me,removeIcon:ge,allowClear:ve,notFoundContent:pe,className:Se,getPopupContainer:E||H,dropdownClassName:ye,disabled:Ce})))};const $=l.forwardRef(S),E=(0,c.Z)($);$.SECRET_COMBOBOX_MODE_DO_NOT_USE=C,$.Option=i.Wx,$.OptGroup=i.Xo,$._InternalPanelDoNotUseOrYouWillBeFired=E,t.default=$},14154:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(17313),o=n(74207),i=n(37613),a=n(83116),l=n(13826),c=n(92899);const s=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var u=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,u=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${i}${d}bottomLeft,\n ${a}${d}bottomLeft\n `]:{animationName:l.fJ},[`\n ${i}${d}topLeft,\n ${a}${d}topLeft,\n ${i}${d}topRight,\n ${a}${d}topRight\n `]:{animationName:l.Qt},[`${u}${d}bottomLeft`]:{animationName:l.Uw},[`\n ${u}${d}topLeft,\n ${u}${d}topRight\n `]:{animationName:l.ly},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},s(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},r.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,l.oN)(e,"slide-up"),(0,l.oN)(e,"slide-down"),(0,c.Fm)(e,"move-up"),(0,c.Fm)(e,"move-down")]};const d=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function p(e,t){const{componentCls:n,iconCls:o}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[l]=d(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:l-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var f=e=>{const{componentCls:t}=e,n=(0,i.TS)(e,{controlHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,i.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=d(e);return[p(e),p(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},p(r,"lg")]};function m(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:i}=e,a=e.controlHeight-2*e.lineWidth,l=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function g(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[m(e),m((0,i.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},m((0,i.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const h=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},v=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},b=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},y=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},h(e)),b(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},r.vS),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},r.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,r.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},x=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},y(e),g(e),f(e),u(e),{[`${t}-rtl`]:{direction:"rtl"}},v(t,(0,i.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),v(`${t}-status-error`,(0,i.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),v(`${t}-status-warning`,(0,i.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,o.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var w=(0,a.Z)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,i.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight});return[x(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:s,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:m,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:s,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}))},58582:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}},84443:function(e,t,n){function r(e,t){return void 0!==t?t:null!==e}n.d(t,{Z:function(){return r}})},66339:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(40001),o=n(19248),i=n(99267),a=n(84105),l=n(58617),c=n(47472),s=n(59301);function u(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:u,removeIcon:d,loading:p,multiple:f,hasFeedback:m,prefixCls:g,showSuffixIcon:h,feedbackIcon:v,showArrow:b,componentName:y}=e;const x=null!=n?n:s.createElement(o.Z,null),w=e=>null!==t||m||b?s.createElement(s.Fragment,null,!1!==h&&e,m&&v):null;let C=null;if(void 0!==t)C=w(t);else if(p)C=w(s.createElement(l.Z,{spin:!0}));else{const e=`${g}-suffix`;C=t=>{let{open:n,showSearch:r}=t;return w(n&&r?s.createElement(c.Z,{className:e}):s.createElement(a.Z,{className:e}))}}let S=null;S=void 0!==u?u:f?s.createElement(r.Z,null):null;let $=null;return $=void 0!==d?d:s.createElement(i.Z,null),{clearIcon:x,suffixIcon:C,itemIcon:S,removeIcon:$}}},81327:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(59301),o=n(92310),i=n.n(o),a=n(11592),l=n(36355),c=n(33234);const s=r.createContext({latestIndex:0}),u=s.Provider;var d=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:l}=r.useContext(s);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n{var n,o;const{getPrefixCls:c,space:s,direction:h}=r.useContext(l.E_),{size:v=(null==s?void 0:s.size)||"small",align:b,className:y,rootClassName:x,children:w,direction:C="horizontal",prefixCls:S,split:$,style:E,wrap:k=!1,classNames:I,styles:Z}=e,N=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,j]=Array.isArray(v)?v:[v,v],M=f(j),P=f(O),R=m(j),z=m(O),T=(0,a.Z)(w,{keepEmpty:!0}),L=void 0===b&&"horizontal"===C?"center":b,D=c("space",S),[B,A]=(0,p.Z)(D),_=i()(D,null==s?void 0:s.className,A,`${D}-${C}`,{[`${D}-rtl`]:"rtl"===h,[`${D}-align-${L}`]:L,[`${D}-gap-row-${j}`]:M,[`${D}-gap-col-${O}`]:P},y,x),H=i()(`${D}-item`,null!==(n=null==I?void 0:I.item)&&void 0!==n?n:null===(o=null==s?void 0:s.classNames)||void 0===o?void 0:o.item);let K=0;const F=T.map(((e,t)=>{var n,o;null!=e&&(K=t);const i=e&&e.key||`${H}-${t}`;return r.createElement(d,{className:H,key:i,index:t,split:$,style:null!==(n=null==Z?void 0:Z.item)&&void 0!==n?n:null===(o=null==s?void 0:s.styles)||void 0===o?void 0:o.item},e)})),W=r.useMemo((()=>({latestIndex:K})),[K]);if(0===T.length)return null;const V={};return k&&(V.flexWrap="wrap"),!P&&z&&(V.columnGap=O),!M&&R&&(V.rowGap=j),B(r.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},V),null==s?void 0:s.style),E)},N),r.createElement(u,{value:W},F)))}));const v=h;v.Compact=c.ZP;var b=v},8378:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},92899:function(e,t,n){n.d(t,{Fm:function(){return p}});var r=n(66604),o=n(95406);const i=new r.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new r.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new r.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new r.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new r.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new r.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:s,outKeyframes:u}},p=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=d[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},13826:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return a},fJ:function(){return i},ly:function(){return c},oN:function(){return m}});var r=n(66604),o=n(95406);const i=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),f={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:p}},m=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=f[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},15969:function(e,t,n){n.d(t,{N:function(){return r}});const r=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},60293:function(e,t,n){n.d(t,{qN:function(){return o},ZP:function(){return l},fS:function(){return i}});const r=(e,t,n,r,o)=>{const i=e/2,a=i,l=1*n/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),s=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-s,p=u,f=2*i-l,m=c,g=2*i-0,h=a,v=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${l} ${c} L ${s} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${m} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},o=8;function i(e){const t=o,{contentRadius:n,limitVerticalRadius:r}=e,i=n>12?n+2:12;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:r?t:i}}function a(e,t){return e?t:{}}function l(e,t){const{componentCls:n,sizePopupArrow:o,borderRadiusXS:l,borderRadiusOuter:c,boxShadowPopoverArrow:s}=e,{colorBg:u,contentRadius:d=e.borderRadiusLG,limitVerticalRadius:p,arrowDistance:f=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:h}=i({contentRadius:d,limitVerticalRadius:p});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},r(o,l,c,u,s)),{"&:before":{background:u}})]},a(!!m.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),a(!!m.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),a(!!m.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:g},[`&-placement-leftBottom ${n}-arrow`]:{bottom:g}})),a(!!m.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:g},[`&-placement-rightBottom ${n}-arrow`]:{bottom:g}}))}}},32418:function(e,t,n){n.d(t,{Z:function(){return ir}});var r={},o="rc-table-internal-hook",i=n(50298),a=n(6089),l=n(34280),c=n(13697),s=n(59301),u=n(4676);function d(e){var t=s.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=s.useRef(n);o.current=n;var a=s.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),c=(0,i.Z)(a,1)[0];return(0,l.Z)((function(){(0,u.unstable_batchedUpdates)((function(){c.listeners.forEach((function(e){e(n)}))}))}),[n]),s.createElement(t.Provider,{value:c},r)},defaultValue:e}}function p(e,t){var n=(0,a.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=s.useContext(null==e?void 0:e.Context),o=r||{},u=o.listeners,d=o.getValue,p=s.useRef();p.current=n(r?d():null==e?void 0:e.defaultValue);var f=s.useState({}),m=(0,i.Z)(f,2)[1];return(0,l.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,c.Z)(p.current,t,!0)||m({})}}),[r]),p.current}var f=n(14809),m=n(8654);function g(){var e=s.createContext(null);function t(){return s.useContext(e)}return{makeImmutable:function(n,r){var o=(0,m.Yr)(n),i=function(i,a){var l=o?{ref:a}:{},c=s.useRef(0),u=s.useRef(i);return null!==t()?s.createElement(n,(0,f.Z)({},i,l)):(r&&!r(u.current,i)||(c.current+=1),u.current=i,s.createElement(e.Provider,{value:c.current},s.createElement(n,(0,f.Z)({},i,l))))};return o?s.forwardRef(i):i},responseImmutable:function(e,n){var r=(0,m.Yr)(e),o=function(n,o){var i=r?{ref:o}:{};return t(),s.createElement(e,(0,f.Z)({},n,i))};return r?s.memo(s.forwardRef(o),n):s.memo(o,n)},useImmutableMark:t}}var h=g(),v=(h.makeImmutable,h.responseImmutable,h.useImmutableMark,g()),b=v.makeImmutable,y=v.responseImmutable,x=v.useImmutableMark,w=d();s.memo((function(){var e=function(e,t){var n=s.useRef(0);n.current+=1;var r=s.useRef(e),o=[];Object.keys(e||{}).map((function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&o.push(t)})),r.current=e;var i=s.useRef([]);return o.length&&(i.current=o),s.useDebugValue(n.current),s.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}();return s.createElement("h1",null,"Render Times: ",e)})).displayName="RenderBlock";var C=n(93664),S=n(20439),$=n(4635),E=n(92310),k=n.n(E),I=n(80547),Z=n(97938),N=(n(48736),s.createContext({renderWithProps:!1}));function O(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function j(e){return null!=e}function M(e,t,n,r,o,a){var l=s.useContext(N),u=x();return(0,I.Z)((function(){if(j(r))return[r];var i,a=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,Z.Z)(e,a),u=c,d=void 0;if(o){var p=o(c,e,n);!(i=p)||"object"!==(0,C.Z)(i)||Array.isArray(i)||s.isValidElement(i)?u=p:(u=p.children,d=p.props,l.renderWithProps=!0)}return[u,d]}),[u,e,r,t,o,n],(function(e,t){if(a){var n=(0,i.Z)(e,2)[1],r=(0,i.Z)(t,2)[1];return a(r,n)}return!!l.renderWithProps||!(0,c.Z)(e,t,!0)}))}function P(e){var t,n,r,o,a,l,c,u;var d=e.component,m=e.children,g=e.ellipsis,h=e.scope,v=e.prefixCls,b=e.className,y=e.align,x=e.record,E=e.render,I=e.dataIndex,Z=e.renderIndex,N=e.shouldCellUpdate,O=e.index,j=e.rowType,P=e.colSpan,R=e.rowSpan,z=e.fixLeft,T=e.fixRight,L=e.firstFixLeft,D=e.lastFixLeft,B=e.firstFixRight,A=e.lastFixRight,_=e.appendNode,H=e.additionalProps,K=void 0===H?{}:H,F=e.isSticky,W="".concat(v,"-cell"),V=p(w,["supportSticky","allColumnsFixedLeft"]),X=V.supportSticky,G=V.allColumnsFixedLeft,Y=M(x,I,Z,m,E,N),q=(0,i.Z)(Y,2),U=q[0],Q=q[1],J={},ee="number"==typeof z&&X,te="number"==typeof T&&X;ee&&(J.position="sticky",J.left=z),te&&(J.position="sticky",J.right=T);var ne=null!==(t=null!==(n=null!==(r=null==Q?void 0:Q.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:P)&&void 0!==t?t:1,re=null!==(o=null!==(a=null!==(l=null==Q?void 0:Q.rowSpan)&&void 0!==l?l:K.rowSpan)&&void 0!==a?a:R)&&void 0!==o?o:1,oe=function(e,t){return p(w,(function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]}))}(O,re),ie=(0,i.Z)(oe,2),ae=ie[0],le=ie[1];if(0===ne||0===re)return null;var ce=null!==(c=K.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():s.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:j,ellipsis:g,children:U}),se=k()(W,b,(u={},(0,$.Z)(u,"".concat(W,"-fix-left"),ee&&X),(0,$.Z)(u,"".concat(W,"-fix-left-first"),L&&X),(0,$.Z)(u,"".concat(W,"-fix-left-last"),D&&X),(0,$.Z)(u,"".concat(W,"-fix-left-all"),D&&G&&X),(0,$.Z)(u,"".concat(W,"-fix-right"),te&&X),(0,$.Z)(u,"".concat(W,"-fix-right-first"),B&&X),(0,$.Z)(u,"".concat(W,"-fix-right-last"),A&&X),(0,$.Z)(u,"".concat(W,"-ellipsis"),g),(0,$.Z)(u,"".concat(W,"-with-append"),_),(0,$.Z)(u,"".concat(W,"-fix-sticky"),(ee||te)&&F&&X),(0,$.Z)(u,"".concat(W,"-row-hover"),!Q&&ae),u),K.className,null==Q?void 0:Q.className),ue={};y&&(ue.textAlign=y);var de=(0,S.Z)((0,S.Z)((0,S.Z)((0,S.Z)({},J),K.style),ue),null==Q?void 0:Q.style),pe=U;return"object"!==(0,C.Z)(pe)||Array.isArray(pe)||s.isValidElement(pe)||(pe=null),g&&(D||B)&&(pe=s.createElement("span",{className:"".concat(W,"-content")},pe)),s.createElement(d,(0,f.Z)({},Q,K,{className:se,style:de,title:ce,scope:h,onMouseEnter:function(e){var t;x&&le(O,O+re-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)},onMouseLeave:function(e){var t;x&&le(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)},colSpan:1!==ne?ne:null,rowSpan:1!==re?re:null}),_,pe)}var R=s.memo(P);function z(e,t,n,r,o,i){var a,l,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===o?t:e]:"right"===s.fixed&&(l=r.right["rtl"===o?e:t]);var u=!1,d=!1,p=!1,f=!1,m=n[t+1],g=n[e-1],h=!(null!=i&&i.children);if("rtl"===o){if(void 0!==a)f=!(g&&"left"===g.fixed)&&h;else if(void 0!==l){p=!(m&&"right"===m.fixed)&&h}}else if(void 0!==a){u=!(m&&"left"===m.fixed)&&h}else if(void 0!==l){d=!(g&&"right"===g.fixed)&&h}return{fixLeft:a,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:p,firstFixLeft:f,isSticky:r.isSticky}}var T=s.createContext({});var L=n(62646),D=["children"];function B(e){return e.children}B.Row=function(e){var t=e.children,n=(0,L.Z)(e,D);return s.createElement("tr",n,t)},B.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,a=e.rowSpan,l=e.align,c=p(w,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,m=s.useContext(T),g=m.scrollColumnIndex,h=m.stickyOffsets,v=m.flattenColumns,b=m.columns,y=n+i-1+1===g?i+1:i,x=z(n,n+y-1,v,h,d,null==b?void 0:b[n]);return s.createElement(R,(0,f.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:y,rowSpan:a,render:function(){return r}},x))};var A=B;var _=y((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=p(w,"prefixCls"),a=r.length-1,l=r[a],c=s.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null,columns:o}}),[l,r,a,n,o]);return s.createElement(T.Provider,{value:c},s.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),H=A,K=n(70425),F=n(29301),W=n(29194),V=n(24514),X=n(75152),G=n(26112);function Y(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=0;i-=1){var a=t[i],l=n&&n[i],c=l&&l[le];if(a||c||o){var u=c||{},d=(u.columnType,(0,L.Z)(u,ce));r.unshift(s.createElement("col",(0,f.Z)({key:i,style:{width:a}},d))),o=!0}}return s.createElement("colgroup",null,r)},ue=n(95190),de=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var pe=s.forwardRef((function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,g=e.stickyBottomOffset,h=e.stickyClassName,v=e.onScroll,b=e.maxContentScroll,y=e.children,x=(0,L.Z)(e,de),C=p(w,["prefixCls","scrollbarSize","isSticky"]),E=C.prefixCls,I=C.scrollbarSize,Z=C.isSticky,N=Z&&!d?0:I,O=s.useRef(null),j=s.useCallback((function(e){(0,m.mH)(t,e),(0,m.mH)(O,e)}),[]);s.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(v({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var M=s.useMemo((function(){return i.every((function(e){return e.width}))}),[i]),P=i[i.length-1],R={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},z=(0,s.useMemo)((function(){return N?[].concat((0,ue.Z)(o),[R]):o}),[N,o]),T=(0,s.useMemo)((function(){return N?[].concat((0,ue.Z)(i),[R]):i}),[N,i]),D=(0,s.useMemo)((function(){var e=c.right,t=c.left;return(0,S.Z)((0,S.Z)({},c),{},{left:"rtl"===u?[].concat((0,ue.Z)(t.map((function(e){return e+N}))),[0]):t,right:"rtl"===u?e:[].concat((0,ue.Z)(e.map((function(e){return e+N}))),[0]),isSticky:Z})}),[N,c,Z]),B=function(e,t){return(0,s.useMemo)((function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:i.title?a:l,prefixCls:m,key:h[t]},c,{additionalProps:n,rowType:"header"}))})))}me.displayName="HeaderRow";var ge=me;var he=y((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=p(w,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,c=s.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var ye=["children"],xe=["fixed"];function we(e){return(0,ve.Z)(e).filter((function(e){return s.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=(0,L.Z)(n,ye),i=(0,S.Z)({key:t},o);return r&&(i.children=we(r)),i}))}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,C.Z)(e)})).reduce((function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat((0,ue.Z)(e),(0,ue.Z)(Ce(l,a).map((function(e){return(0,S.Z)({fixed:i},e)})))):[].concat((0,ue.Z)(e),[(0,S.Z)((0,S.Z)({key:a},n),{},{fixed:i})])}),[])}var Se=function(e,t){var n=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,p=e.onTriggerExpand,f=e.expandIcon,m=e.rowExpandable,g=e.expandIconColumnIndex,h=e.direction,v=e.expandRowByClick,b=e.columnWidth,y=e.fixed,x=e.scrollWidth,w=s.useMemo((function(){return o||we(a)}),[o,a]),C=s.useMemo((function(){if(l){var e,t=w.slice();if(!t.includes(r)){var o=g||0;o>=0&&t.splice(o,0,r)}0;var i=t.indexOf(r);t=t.filter((function(e,t){return e!==r||t===i}));var a,h=w[i];a="left"!==y&&!y||g?"right"!==y&&!y||g!==w.length?h?h.fixed:null:"right":"left";var x=(e={},(0,$.Z)(e,le,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,$.Z)(e,"title",u),(0,$.Z)(e,"fixed",a),(0,$.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,$.Z)(e,"width",b),(0,$.Z)(e,"render",(function(e,t,r){var o=d(t,r),i=c.has(o),a=!m||m(t),l=f({prefixCls:n,expanded:i,expandable:a,record:t,onExpand:p});return v?s.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l})),e);return t.map((function(e){return e===r?x:e}))}return w.filter((function(e){return e!==r}))}),[l,w,d,c,f,h]),E=s.useMemo((function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,C,h]),k=s.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=(0,L.Z)(e,xe),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,S.Z)({fixed:r},n)}))}(Ce(E)):Ce(E)}),[E,h,x]),I=function(e,t){return s.useMemo((function(){if(t&&t>0){var n=0,r=0;e.forEach((function(e){var o=be(t,e.width);o?n+=o:r+=1}));var o=t-n,i=r,a=o/r,l=0;return[e.map((function(e){var n=(0,S.Z)({},e),r=be(t,n.width);if(r)n.width=r;else{var c=Math.floor(a);n.width=1===i?o:c,o-=c,i-=1}return l+=n.width,n})),l]}return[e,t]}),[e,t])}(k,x),Z=(0,i.Z)(I,2),N=Z[0],O=Z[1];return[E,N,O]};function $e(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");if(!a)return s.createElement("span",{className:k()(l,"".concat(n,"-row-spaced"))});return s.createElement("span",{className:k()(l,(t={},(0,$.Z)(t,"".concat(n,"-row-expanded"),i),(0,$.Z)(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:function(e){o(r,e),e.stopPropagation()}})}function Ee(e,t,n){var r=function(e){var t,n=e.expandable,r=(0,L.Z)(e,ae);return!1===(t="expandable"in e?(0,S.Z)((0,S.Z)({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),a=r.expandIcon,l=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,p=r.onExpand,f=r.onExpandedRowsChange,m=a||$e,g=r.childrenColumnName||"children",h=s.useMemo((function(){return d?"row":!!(e.expandable&&e.internalHooks===o&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,C.Z)(e)&&e[g]})))&&"nest"}),[!!d,t]),v=s.useState((function(){return c||(u?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(t,n,g):[])})),b=(0,i.Z)(v,2),y=b[0],x=b[1],w=s.useMemo((function(){return new Set(l||y||[])}),[l,y]),$=s.useCallback((function(e){var r,o=n(e,t.indexOf(e)),i=w.has(o);i?(w.delete(o),r=(0,ue.Z)(w)):r=[].concat((0,ue.Z)(w),[o]),x(r),p&&p(!i,e),f&&f(r)}),[n,w,t,p,f]);return[r,h,w,m,g,$]}function ke(e){var t=(0,s.useRef)(e),n=(0,s.useState)({}),r=(0,i.Z)(n,2)[1],o=(0,s.useRef)(null),a=(0,s.useRef)([]);return(0,s.useEffect)((function(){return function(){o.current=null}}),[]),[t.current,function(e){a.current.push(e);var n=Promise.resolve();o.current=n,n.then((function(){if(o.current===n){var e=a.current,i=t.current;a.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,i!==t.current&&r({})}}))}]}var Ie=(0,n(47273).Z)()?window:null;var Ze=function(e,t,n){return(0,s.useMemo)((function(){for(var r=[],o=[],i=0,a=0,l=0;l=f&&(r=f-m),a({scrollLeft:r/f*(d+2)}),x.current.x=e.pageX}else I&&Z(!1)},j=function(){if(o.current){var e=(0,je.os)(o.current).top,t=e+o.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,je.os)(c).top+c.clientHeight;t-(0,X.Z)()<=n||e>=n-l?y((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!0})})):y((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!1})}))}},M=function(e){y((function(t){return(0,S.Z)((0,S.Z)({},t),{},{scrollLeft:e/d*f||0})}))};return s.useImperativeHandle(t,(function(){return{setScrollLeft:M}})),s.useEffect((function(){var e=(0,Oe.Z)(document.body,"mouseup",N,!1),t=(0,Oe.Z)(document.body,"mousemove",O,!1);return j(),function(){e.remove(),t.remove()}}),[m,I]),s.useEffect((function(){var e=(0,Oe.Z)(c,"scroll",j,!1),t=(0,Oe.Z)(window,"resize",j,!1);return function(){e.remove(),t.remove()}}),[c]),s.useEffect((function(){b.isHiddenScrollBar||y((function(e){var t=o.current;return t?(0,S.Z)((0,S.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[b.isHiddenScrollBar]),d<=f||!m||b.isHiddenScrollBar?null:s.createElement("div",{style:{height:(0,X.Z)(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},s.createElement("div",{onMouseDown:function(e){e.persist(),x.current.delta=e.pageX-b.scrollLeft,x.current.x=0,Z(!0),e.preventDefault()},ref:g,className:k()("".concat(u,"-sticky-scroll-bar"),(0,$.Z)({},"".concat(u,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))},Pe=s.forwardRef(Me);var Re=function(e){return null};var ze=function(e){return null},Te="rc-table",Le=[],De={};function Be(){return"No Data"}function Ae(e){var t,n=(0,S.Z)({rowKey:"key",prefixCls:Te,emptyText:Be},e),r=n.prefixCls,l=n.className,u=n.rowClassName,d=n.style,p=n.data,m=n.rowKey,g=n.scroll,h=n.tableLayout,v=n.direction,b=n.title,y=n.footer,x=n.summary,E=n.caption,N=n.id,M=n.showHeader,P=n.components,R=n.emptyText,T=n.onRow,L=n.onHeaderRow,D=n.internalHooks,B=n.transformColumns,H=n.internalRefs,K=n.tailor,Y=n.sticky,q=p||Le,U=!!q.length,Q=D===o;var J,ee,te,ne=s.useCallback((function(e,t){return(0,Z.Z)(P,e)||t}),[P]),re=s.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),oe=ne(["body"]),ae=function(){var e=s.useState(-1),t=(0,i.Z)(e,2),n=t[0],r=t[1],o=s.useState(-1),a=(0,i.Z)(o,2),l=a[0],c=a[1];return[n,l,s.useCallback((function(e,t){r(e),c(t)}),[])]}(),le=(0,i.Z)(ae,3),ce=le[0],ue=le[1],de=le[2],pe=Ee(n,q,re),me=(0,i.Z)(pe,6),ge=me[0],ve=me[1],be=me[2],ye=me[3],xe=me[4],we=me[5],Ce=null==g?void 0:g.x,$e=s.useState(0),Oe=(0,i.Z)($e,2),je=Oe[0],Me=Oe[1],Re=Se((0,S.Z)((0,S.Z)((0,S.Z)({},n),ge),{},{expandable:!!ge.expandedRowRender,columnTitle:ge.columnTitle,expandedKeys:be,getRowKey:re,onTriggerExpand:we,expandIcon:ye,expandIconColumnIndex:ge.expandIconColumnIndex,direction:v,scrollWidth:Q&&K&&"number"==typeof Ce?Ce:null}),Q?B:null),ze=(0,i.Z)(Re,3),Ae=ze[0],_e=ze[1],He=ze[2],Ke=null!=He?He:Ce,Fe=s.useMemo((function(){return{columns:Ae,flattenColumns:_e}}),[Ae,_e]),We=s.useRef(),Ve=s.useRef(),Xe=s.useRef(),Ge=s.useRef(),Ye=s.useRef(),qe=s.useState(!1),Ue=(0,i.Z)(qe,2),Qe=Ue[0],Je=Ue[1],et=s.useState(!1),tt=(0,i.Z)(et,2),nt=tt[0],rt=tt[1],ot=ke(new Map),it=(0,i.Z)(ot,2),at=it[0],lt=it[1],ct=O(_e).map((function(e){return at.get(e)})),st=s.useMemo((function(){return ct}),[ct.join("_")]),ut=Ze(st,_e.length,v),dt=g&&j(g.y),pt=g&&j(Ke)||Boolean(ge.fixed),ft=pt&&_e.some((function(e){return e.fixed})),mt=s.useRef(),gt=function(e,t){var n="object"===(0,C.Z)(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,l=n.offsetScroll,c=void 0===l?0:l,u=n.getContainer,d=(void 0===u?function(){return Ie}:u)()||Ie;return s.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:d}}),[c,o,a,t,d])}(Y,r),ht=gt.isSticky,vt=gt.offsetHeader,bt=gt.offsetSummary,yt=gt.offsetScroll,xt=gt.stickyClassName,wt=gt.container,Ct=s.useMemo((function(){return null==x?void 0:x(q)}),[x,q]),St=(dt||ht)&&s.isValidElement(Ct)&&Ct.type===A&&Ct.props.fixed;dt&&(ee={overflowY:"scroll",maxHeight:g.y}),pt&&(J={overflowX:"auto"},dt||(ee={overflowY:"hidden"}),te={width:!0===Ke?"auto":Ke,minWidth:"100%"});var $t=s.useCallback((function(e,t){(0,W.Z)(We.current)&<((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Et=function(e){var t=(0,s.useRef)(e||null),n=(0,s.useRef)();function r(){window.clearTimeout(n.current)}return(0,s.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),kt=(0,i.Z)(Et,2),It=kt[0],Zt=kt[1];function Nt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Ot=(0,a.Z)((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===v,i="number"==typeof r?r:n.scrollLeft,a=n||De;Zt()&&Zt()!==a||(It(a),Nt(i,Ve.current),Nt(i,Xe.current),Nt(i,Ye.current),Nt(i,null===(t=mt.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Ve.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return Je(!1),void rt(!1);o?(Je(-i0)):(Je(i>0),rt(i1?b-M:0,z=(0,S.Z)((0,S.Z)((0,S.Z)({},I),c),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:P,pointerEvents:"auto"}),T=s.useMemo((function(){return d?j<=1:0===N||0===j||j>1}),[j,N,d]);T?z.visibility="hidden":d&&(z.height=null==m?void 0:m(j));var L=T?function(){return null}:g,D={};return 0!==j&&0!==N||(D.rowSpan=1,D.colSpan=1),s.createElement(R,(0,f.Z)({className:k()(v,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:t.prefixCls,key:w,record:l,index:i,renderIndex:a,dataIndex:h,render:L,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:$,additionalProps:(0,S.Z)((0,S.Z)({},E),{},{style:z},D)}))},Ge=["data","index","className","rowKey","style","extra","getHeight"],Ye=s.forwardRef((function(e,t){var n,r=e.data,o=e.index,i=e.className,a=e.rowKey,l=e.style,c=e.extra,u=e.getHeight,d=(0,L.Z)(e,Ge),m=r.record,g=r.indent,h=r.index,v=p(w,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=v.scrollX,y=v.flattenColumns,x=v.prefixCls,C=v.fixColumn,E=v.componentWidth,I=Q(m,a,o,g),Z=I.rowSupportExpand,N=I.expanded,O=I.rowProps,j=I.expandedRowRender,M=I.expandedRowClassName;if(Z&&N){var P=j(m,o,g+1,N),z=null==M?void 0:M(m,o,g),T={};C&&(T={style:(0,$.Z)({},"--virtual-width","".concat(E,"px"))});var D="".concat(x,"-expanded-row-cell");n=s.createElement("div",{className:k()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(g+1),z)},s.createElement(R,{component:"div",prefixCls:x,className:k()(D,(0,$.Z)({},"".concat(D,"-fixed"),C)),additionalProps:T},P))}var B=(0,S.Z)((0,S.Z)({},l),{},{width:b});c&&(B.position="absolute",B.pointerEvents="none");var A=s.createElement("div",(0,f.Z)({},O,d,{ref:Z?null:t,className:k()(i,"".concat(x,"-row"),null==O?void 0:O.className,(0,$.Z)({},"".concat(x,"-row-extra"),c)),style:(0,S.Z)((0,S.Z)({},B),null==O?void 0:O.style)}),y.map((function(e,t){return s.createElement(Xe,{key:t,rowInfo:I,column:e,colIndex:t,indent:g,index:o,renderIndex:h,record:m,inverse:c,getHeight:u})})));return Z?s.createElement("div",{ref:t},A,n):A}));var qe=y(Ye),Ue=s.forwardRef((function(e,t){var n=e.data,r=e.onScroll,o=p(w,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=o.flattenColumns,l=o.onColumnResize,c=o.getRowKey,u=o.expandedKeys,d=o.prefixCls,m=o.childrenColumnName,g=o.emptyNode,h=o.scrollX,v=p(We),b=v.scrollY,y=v.listItemHeight,x=s.useRef(),C=q(n,m,u,c),S=s.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),$=s.useMemo((function(){return S.map((function(e){return e[2]}))}),[S]);s.useEffect((function(){S.forEach((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];l(n,r)}))}),[S]),s.useImperativeHandle(t,(function(){var e={};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),e}));var E,I=function(e,t){var n,r=null===(n=C[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},Z=s.useMemo((function(){return{columnsOffset:$}}),[$]),N="".concat(d,"-tbody");return E=C.length?s.createElement(Fe.Z,{fullHeight:!1,ref:x,className:k()(N,"".concat(N,"-virtual")),height:b,itemHeight:y||24,data:C,itemKey:function(e){return c(e.record)},scrollWidth:h,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var i=a.filter((function(e){return 0===I(e,t)})),l=t,u=function(e){if(!(i=i.filter((function(t){return 0===I(t,e)}))).length)return l=e,"break"},d=t;d>=0&&"break"!==u(d);d-=1);for(var p=a.filter((function(e){return 1!==I(e,n)})),f=n,m=function(e){if(!(p=p.filter((function(t){return 1!==I(t,e)}))).length)return f=Math.max(e-1,n),"break"},g=n;g1}))&&h.push(e)},b=l;b<=f;b+=1)v(b);return h.map((function(e){var t=C[e],n=c(t.record,e),i=r(n);return s.createElement(qe,{key:e,data:t,rowKey:n,index:e,style:{top:-o+i.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c(C[o].record,o),a=r(n,i);return a.bottom-a.top}})}))}},(function(e,t,n){var r=c(e.record,t);return s.createElement(qe,(0,f.Z)({data:e,rowKey:r,index:t},n))})):s.createElement("div",{className:k()("".concat(d,"-placeholder"))},s.createElement(R,{component:"div",prefixCls:d},g)),s.createElement(Ve.Provider,{value:Z},E)}));var Qe=y(Ue),Je=function(e,t){var n=t.ref,r=t.onScroll;return s.createElement(Qe,{ref:n,data:e,onScroll:r})};function et(e){var t=e.columns,n=e.scroll,r=e.prefixCls,i=void 0===r?Te:r,a=e.className,l=e.listItemHeight,c=n||{},u=c.x,d=c.y;"number"!=typeof u&&(u=100*((t||[]).length+1)),"number"!=typeof d&&(d=500);var p=s.useMemo((function(){return{scrollY:d,listItemHeight:l}}),[d,l]);return s.createElement(We.Provider,{value:p},s.createElement(Ke,(0,f.Z)({},e,{className:k()(a,"".concat(i,"-virtual")),scroll:(0,S.Z)((0,S.Z)({},n),{},{x:u}),components:{body:Je},columns:t,internalHooks:o,tailor:!0})))}function tt(e){return b(et,e)}tt();var nt=function(e){return null};var rt=function(e){return null},ot=n(2738),it=n(16089);function at(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function lt(e){return null!=e&&e===e.window}function ct(e,t){var n,r;if("undefined"==typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return lt(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!lt(e)&&"number"!=typeof i&&(i=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),i}function st(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:r,duration:o=450}=t,i=n(),a=ct(i,!0),l=Date.now(),c=()=>{const t=Date.now()-l,n=at(t>o?o:t,a,e,o);lt(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{r(o,e),e.stopPropagation()},className:k()(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}};function yt(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function xt(e,t){return t?`${t}-${e}`:`${e}`}function wt(e,t){return"function"==typeof e?e(t):e}var Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},St=n(7657),$t=function(e,t){return s.createElement(St.Z,(0,f.Z)({},e,{ref:t,icon:Ct}))};var Et=s.forwardRef($t),kt=n(56762);var It=n(3113),Zt=n(24905),Nt=n(8070),Ot=n(64165),jt=n(20834),Mt=n(40875),Pt=n(5112),Rt=n(177),zt=n(47472),Tt=n(10249);var Lt=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(Tt.Z,{prefix:s.createElement(zt.Z,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},Dt=n(10228);const Bt=e=>{const{keyCode:t}=e;t===Dt.Z.ENTER&&e.stopPropagation()};var At=s.forwardRef(((e,t)=>s.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Bt,ref:t},e.children)));function _t(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,ue.Z)(t),(0,ue.Z)(_t(r))))})),t}function Ht(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Kt(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map(((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:Kt({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const c=o?Zt.Z:Pt.ZP,u={key:void 0!==e.value?l:t,label:s.createElement(s.Fragment,null,s.createElement(c,{checked:r.includes(l)}),s.createElement("span",null,e.text))};return i.trim()?"function"==typeof a?a(i,e)?u:null:Ht(i,e.text)?u:null:u}))}var Ft=function(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:f,triggerFilter:m,locale:g,children:h,getPopupContainer:v}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:x,defaultFilteredValue:w,filterDropdownVisible:C,onFilterDropdownVisibleChange:S}=i,[$,E]=s.useState(!1),I=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),Z=e=>{E(e),null==y||y(e),null==S||S(e)},N=null!==(n=null!=b?b:C)&&void 0!==n?n:$,O=null==f?void 0:f.filteredKeys,[j,M]=function(e){const t=s.useRef(e),n=(0,kt.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(O||[]),P=e=>{let{selectedKeys:t}=e;M(t)},R=(e,t)=>{let{node:n,checked:r}=t;P(u?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};s.useEffect((()=>{$&&P({selectedKeys:O||[]})}),[O]);const[z,T]=s.useState([]),L=e=>{T(e)},[D,B]=s.useState(""),A=e=>{const{value:t}=e.target;B(t)};s.useEffect((()=>{$||B("")}),[$]);const _=e=>{const t=e&&e.length?e:null;return null!==t||f&&f.filteredKeys?(0,c.Z)(t,null==f?void 0:f.filteredKeys,!0)?null:void m({column:i,key:l,filteredKeys:t}):null},H=()=>{Z(!1),_(j())},K=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&Z(!1),B(""),M(x?(w||[]).map((e=>String(e))):[])},F=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&Z(!1),_(j())},W=k()({[`${a}-menu-without-submenu`]:(V=i.filters||[],!V.some((e=>{let{children:t}=e;return t})))});var V;const X=e=>{if(e.target.checked){const e=_t(null==i?void 0:i.filters).map((e=>String(e)));M(e)}else M([])},G=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=G({filters:e.children})),r}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let q,U;if("function"==typeof i.filterDropdown)q=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:e=>P({selectedKeys:e}),selectedKeys:j(),confirm:F,clearFilters:K,filters:i.filters,visible:N,close:()=>{Z(!1)}});else if(i.filterDropdown)q=i.filterDropdown;else{const e=j()||[],t=()=>0===(i.filters||[]).length?s.createElement(Ot.Z,{image:Ot.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?s.createElement(s.Fragment,null,s.createElement(Lt,{filterSearch:p,value:D,onChange:A,tablePrefixCls:r,locale:g}),s.createElement("div",{className:`${r}-filter-dropdown-tree`},u?s.createElement(Zt.Z,{checked:e.length===_t(i.filters).length,indeterminate:e.length>0&&e.length<_t(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:X},g.filterCheckall):null,s.createElement(Rt.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${a}-menu`,onCheck:R,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:G({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:D.trim()?e=>"function"==typeof p?p(D,Y(e)):Ht(D,e.title):void 0}))):s.createElement(s.Fragment,null,s.createElement(Lt,{filterSearch:p,value:D,onChange:A,tablePrefixCls:r,locale:g}),s.createElement(jt.Z,{selectable:!0,multiple:u,prefixCls:`${a}-menu`,className:W,onSelect:P,onDeselect:P,selectedKeys:e,getPopupContainer:v,openKeys:z,onOpenChange:L,items:Kt({filters:i.filters||[],filterSearch:p,prefixCls:o,filteredKeys:j(),filterMultiple:u,searchValue:D})})),n=()=>x?(0,c.Z)((w||[]).map((e=>String(e))),e,!0):0===e.length;q=s.createElement(s.Fragment,null,t(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(It.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>K()},g.filterReset),s.createElement(It.ZP,{type:"primary",size:"small",onClick:H},g.filterConfirm)))}i.filterDropdown&&(q=s.createElement(Mt.J,{selectable:void 0},q)),U="function"==typeof i.filterIcon?i.filterIcon(I):i.filterIcon?i.filterIcon:s.createElement(Et,null);const{direction:Q}=s.useContext(ut.E_);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${r}-column-title`},h),s.createElement(Nt.Z,{dropdownRender:()=>s.createElement(At,{className:`${o}-dropdown`},q),trigger:["click"],open:N,onOpenChange:e=>{e&&void 0!==O&&M(O||[]),Z(e),e||i.filterDropdown||H()},getPopupContainer:v,placement:"rtl"===Q?"bottomLeft":"bottomRight"},s.createElement("span",{role:"button",tabIndex:-1,className:k()(`${o}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},U)))};function Wt(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=xt(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:yt(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:yt(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,ue.Z)(r),(0,ue.Z)(Wt(e.children,t,a))))})),r}function Vt(e,t,n,r,o,i,a,l){return n.map(((n,c)=>{const u=xt(c,l),{filterMultiple:d=!0,filterMode:p,filterSearch:f}=n;let m=n;if(m.filters||m.filterDropdown){const l=yt(m,u),c=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>s.createElement(Ft,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:c,filterMultiple:d,filterMode:p,filterSearch:f,triggerFilter:i,locale:o,getPopupContainer:a},wt(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Vt(e,t,m.children,r,o,i,a,u)})),m}))}function Xt(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const{filters:i,filterDropdown:a}=o;if(a)t[n]=r||null;else if(Array.isArray(r)){const e=_t(i);t[n]=e.filter((e=>r.includes(String(e))))}else t[n]=null})),t}function Gt(e,t){return t.reduce(((e,t)=>{const{column:{onFilter:n,filters:r},filteredKeys:o}=t;return n&&o&&o.length?e.filter((e=>o.some((t=>{const o=_t(r),i=o.findIndex((e=>String(e)===String(t))),a=-1!==i?o[i]:t;return n(a,e)})))):e}),e)}const Yt=e=>e.flatMap((e=>"children"in e?[e].concat((0,ue.Z)(Yt(e.children||[]))):[e]));var qt=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a}=e;const l=s.useMemo((()=>Yt(r||[])),[r]),[c,u]=s.useState((()=>Wt(l,!0))),d=s.useMemo((()=>{const e=Wt(l,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(l||[]).map(((e,t)=>yt(e,xt(t))));return c.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=l[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[l,c]),p=s.useMemo((()=>Xt(d)),[d]),f=e=>{const t=d.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),u(t),o(Xt(t),t)};return[e=>Vt(t,n,e,d,a,f,i),d,p]};var Ut=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e},Qt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Jt}))),c=Ut(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(e,t)=>{l({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tn=n(84105),nn=n(35654),rn=n(90782),on=n(71430),an=n(18929);const ln={},cn="SELECT_ALL",sn="SELECT_INVERT",un="SELECT_NONE",dn=[],pn=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,ue.Z)(n),(0,ue.Z)(pn(e,t[e]))))})),n};var fn=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:f,type:m,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:x,data:w,pageData:C,getRecordByKey:S,getRowKey:$,expandType:E,childrenColumnName:I,locale:Z,getPopupContainer:N}=e,[O,j]=(0,an.Z)(r||o||dn,{value:r}),M=s.useRef(new Map),P=(0,s.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&M.current.has(e)&&(n=M.current.get(e)),t.set(e,n)})),M.current=t}}),[S,n]);s.useEffect((()=>{P(O)}),[O]);const{keyEntities:R}=(0,s.useMemo)((()=>{if(y)return{keyEntities:null};let e=w;if(n){const t=new Set(w.map(((e,t)=>$(e,t)))),n=Array.from(M.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat((0,ue.Z)(e),(0,ue.Z)(n))}return(0,on.I8)(e,{externalGetKey:$,childrenPropName:I})}),[w,$,y,I,n]),z=(0,s.useMemo)((()=>pn(I,C)),[I,C]),T=(0,s.useMemo)((()=>{const e=new Map;return z.forEach(((t,n)=>{const r=$(t,n),o=(i?i(t):null)||{};e.set(r,o)})),e}),[z,$,i]),L=(0,s.useCallback)((e=>{var t;return!!(null===(t=T.get($(e)))||void 0===t?void 0:t.disabled)}),[T,$]),[D,B]=(0,s.useMemo)((()=>{if(y)return[O||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=(0,rn.S)(O,!0,R,L);return[e||[],t]}),[O,y,R,L]),A=(0,s.useMemo)((()=>{const e="radio"===m?D.slice(0,1):D;return new Set(e)}),[D,m]),_=(0,s.useMemo)((()=>"radio"===m?new Set:new Set(B)),[B,m]),[H,K]=(0,s.useState)(null);s.useEffect((()=>{t||j(dn)}),[!!t]);const F=(0,s.useCallback)(((e,t)=>{let r,o;P(e),n?(r=e,o=e.map((e=>M.current.get(e)))):(r=[],o=[],e.forEach((e=>{const t=S(e);void 0!==t&&(r.push(e),o.push(t))}))),j(r),null==a||a(r,o,{type:t})}),[j,S,a,n]),W=(0,s.useCallback)(((e,t,n,r)=>{if(l){const o=n.map((e=>S(e)));l(S(e),t,o,r)}F(n,"single")}),[l,S,F]),V=(0,s.useMemo)((()=>{if(!g||b)return null;return(!0===g?[cn,sn,un]:g).map((e=>e===cn?{key:"all",text:Z.selectionAll,onSelect(){F(w.map(((e,t)=>$(e,t))).filter((e=>{const t=T.get(e);return!(null==t?void 0:t.disabled)||A.has(e)})),"all")}}:e===sn?{key:"invert",text:Z.selectInvert,onSelect(){const e=new Set(A);C.forEach(((t,n)=>{const r=$(t,n),o=T.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);u&&u(t),F(t,"invert")}}:e===un?{key:"none",text:Z.selectNone,onSelect(){null==d||d(),F(Array.from(A).filter((e=>{const t=T.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i{var n;if(!t)return e.filter((e=>e!==ln));let r=(0,ue.Z)(e);const o=new Set(A),i=z.map($).filter((e=>!T.get(e).disabled)),a=i.every((e=>o.has(e))),l=i.some((e=>o.has(e))),u=()=>{const e=[];a?i.forEach((t=>{o.delete(t),e.push(t)})):i.forEach((t=>{o.has(t)||(o.add(t),e.push(t))}));const t=Array.from(o);null==c||c(!a,t.map((e=>S(e))),e.map((e=>S(e)))),F(t,"all"),K(null)};let d,w;if("radio"!==m){let e;if(V){const t={getPopupContainer:N,items:V.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(i)},label:r}}))};e=s.createElement("div",{className:`${x}-selection-extra`},s.createElement(Nt.Z,{menu:t,getPopupContainer:N},s.createElement("span",null,s.createElement(tn.Z,null))))}const t=z.map(((e,t)=>{const n=$(e,t),r=T.get(n)||{};return Object.assign({checked:o.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===z.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));d=!b&&s.createElement("div",{className:`${x}-selection`},s.createElement(Zt.Z,{checked:n?r:!!z.length&&a,indeterminate:n?!r&&c:!a&&l,onChange:u,disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}w="radio"===m?(e,t,n)=>{const r=$(t,n),i=o.has(r);return{node:s.createElement(Pt.ZP,Object.assign({},T.get(r),{checked:i,onClick:e=>e.stopPropagation(),onChange:e=>{o.has(r)||W(r,!0,[r],e.nativeEvent)}})),checked:i}}:(e,t,n)=>{var r;const a=$(t,n),l=o.has(a),c=_.has(a),u=T.get(a);let d;return d="nest"===E?c:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:s.createElement(Zt.Z,Object.assign({},u,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let r=-1,c=-1;if(n&&y){const e=new Set([H,a]);i.some(((t,n)=>{if(e.has(t)){if(-1!==r)return c=n,!0;r=n}return!1}))}if(-1!==c&&r!==c&&y){const e=i.slice(r,c+1),t=[];l?e.forEach((e=>{o.has(e)&&(t.push(e),o.delete(e))})):e.forEach((e=>{o.has(e)||(t.push(e),o.add(e))}));const n=Array.from(o);null==p||p(!l,n.map((e=>S(e))),t.map((e=>S(e)))),F(n,"multiple")}else{const e=D;if(y){const n=l?(0,nn._5)(e,a):(0,nn.L0)(e,a);W(a,!l,n,t)}else{const n=(0,rn.S)([].concat((0,ue.Z)(e),[a]),!0,R,L),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(l){const e=new Set(r);e.delete(a),i=(0,rn.S)(Array.from(e),{checked:!1,halfCheckedKeys:o},R,L).checkedKeys}W(a,!l,i,t)}}K(l?null:a)}})),checked:l}};if(!r.includes(ln))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[le])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,ln].concat((0,ue.Z)(t))}else r=[ln].concat((0,ue.Z)(r));const C=r.indexOf(ln);r=r.filter(((e,t)=>e!==ln||t===C));const I=r[C-1],Z=r[C+1];let O=h;void 0===O&&(void 0!==(null==Z?void 0:Z.fixed)?O=Z.fixed:void 0!==(null==I?void 0:I.fixed)&&(O=I.fixed)),O&&I&&"EXPAND_COLUMN"===(null===(n=I[le])||void 0===n?void 0:n.columnType)&&void 0===I.fixed&&(I.fixed=O);const j=k()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&"checkbox"===m}),M={fixed:O,width:f,className:`${x}-selection-column`,title:t.columnTitle||d,render:(e,t,n)=>{const{node:r,checked:o}=w(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,[le]:{className:j}};return r.map((e=>e===ln?M:e))}),[$,z,t,D,A,_,f,V,E,H,T,p,W,L]);return[X,A]},mn=n(89489),gn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},hn=function(e,t){return s.createElement(St.Z,(0,f.Z)({},e,{ref:t,icon:gn}))};var vn=s.forwardRef(hn),bn=n(6848);const yn="ascend",xn="descend";function wn(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function Cn(e){return"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare}function Sn(e,t,n){let r=[];function o(e,t){r.push({column:e,key:yt(e,t),multiplePriority:wn(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,i)=>{const a=xt(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat((0,ue.Z)(r),(0,ue.Z)(Sn(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:yt(e,a),multiplePriority:wn(e),sortOrder:e.defaultSortOrder}))})),r}function $n(e,t,n,r,o,i,a,l){return(t||[]).map(((t,c)=>{const u=xt(c,l);let d=t;if(d.sorter){const l=d.sortDirections||o,c=void 0===d.showSorterTooltip?a:d.showSorterTooltip,p=yt(d,u),f=n.find((e=>{let{key:t}=e;return t===p})),m=f?f.sortOrder:null,g=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(l,m);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:m});else{const t=l.includes(yn)&&s.createElement(vn,{className:k()(`${e}-column-sorter-up`,{active:m===yn})}),n=l.includes(xn)&&s.createElement(mn.Z,{className:k()(`${e}-column-sorter-down`,{active:m===xn})});h=s.createElement("span",{className:k()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=i||{};let x=v;g===xn?x=y:g===yn&&(x=b);const w="object"==typeof c?c:{title:x};d=Object.assign(Object.assign({},d),{className:k()(d.className,{[`${e}-column-sort`]:m}),title:n=>{const r=s.createElement("div",{className:`${e}-column-sorters`},s.createElement("span",{className:`${e}-column-title`},wt(t.title,n)),h);return c?s.createElement(bn.Z,Object.assign({},w),r):r},onHeaderCell:n=>{const o=t.onHeaderCell&&t.onHeaderCell(n)||{},i=o.onClick,a=o.onKeyDown;o.onClick=e=>{r({column:t,key:p,sortOrder:g,multiplePriority:wn(t)}),null==i||i(e)},o.onKeyDown=e=>{e.keyCode===Dt.Z.ENTER&&(r({column:t,key:p,sortOrder:g,multiplePriority:wn(t)}),null==a||a(e))};const l=function(e,t){const n=wt(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title,{}),c=null==l?void 0:l.toString();return m?o["aria-sort"]="ascend"===m?"ascending":"descending":o["aria-label"]=c||"",o.className=k()(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(null!=l?l:"").toString()),o}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:$n(e,d.children,n,r,o,i,a,u)})),d}))}function En(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function kn(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(En);return 0===t.length&&e.length?Object.assign(Object.assign({},En(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function In(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Cn(t)&&n}));return i.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:In(r,t,n)}):e})):o}function Zn(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=wt(e.title,t),"children"in n&&(n.children=Zn(n.children,t)),n}))}function Nn(e){return[s.useCallback((t=>Zn(t,e)),[e])]}var On=_e(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),jn=tt(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Mn=n(60654),Pn=n(17313),Rn=n(83116),zn=n(37613);var Tn=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,o)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${o+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}};var Ln=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Pn.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Dn=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Bn=n(15969);var An=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:f,lineHeight:m,tablePaddingVertical:g,tablePaddingHorizontal:h,tableExpandedRowBg:v,paddingXXS:b}=e,y=r/2-i,x=2*y+3*i,w=`${i}px ${l} ${c}`,C=b-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,Bn.N)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/x})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*m-3*i)/2-Math.ceil((1.4*f-3*i)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${g}px -${h}px`,padding:`${g}px ${h}px`}}}};var _n=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:f,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:S,controlItemBgActive:$,boxShadowSecondary:E,filterDropdownMenuBg:k}=e,I=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,Pn.Wf)(e)),{minWidth:o,backgroundColor:w,borderRadius:g,boxShadow:E,overflow:"hidden",[`${I}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${l}px 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:S},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${Z}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-s}px ${l}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Hn=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${r}`}},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${r}`}},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}}}}};var Kn=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var Fn=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}};var Wn=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};var Vn=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,tableHeaderIconColor:l,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+o+i/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+o+i/4+2*a}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}}}}};var Xn=e=>{const{componentCls:t}=e,n=(n,r,o,i)=>({[`${t}${t}-${n}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${r}px ${o}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${o/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${o}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`}},[`${t}-selection-column`]:{paddingInlineStart:o/4+"px"}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var Gn=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}};var Yn=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}};var qn=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};var Un=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:n},[`${t}-expanded-row`]:{[`${r}${r}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${e.lineWidth}px)`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:n,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:n,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-e.lineWidth,borderInlineStart:n}}}}}}};const Qn=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:i,lineType:a,tableBorderColor:l,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:m,tableRowHoverBg:g,tableSelectedRowBg:h,tableSelectedRowHoverBg:v,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:x}=e,w=`${i}px ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Pn.dF)()),{[t]:Object.assign(Object.assign({},(0,Pn.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${x}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:w,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:w,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:w,transition:`background ${p} ease`},[`\n &${t}-row:hover > th,\n &${t}-row:hover > td,\n > th${t}-cell-row-hover,\n > td${t}-cell-row-hover\n `]:{background:g},[`&${t}-row-selected`]:{"> th, > td":{background:h},"&:hover > th, &:hover > td":{background:v}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:b,background:y}})}};var Jn=(0,Rn.Z)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorIcon:r,colorIconHover:o,opacityLoading:i,colorBgContainer:a,controlInteractiveSize:l,headerBg:c,headerColor:s,headerSortActiveBg:u,headerSortHoverBg:d,bodySortBg:p,rowHoverBg:f,rowSelectedBg:m,rowSelectedHoverBg:g,rowExpandedBg:h,cellPaddingBlock:v,cellPaddingInline:b,cellPaddingBlockMD:y,cellPaddingInlineMD:x,cellPaddingBlockSM:w,cellPaddingInlineSM:C,borderColor:S,footerBg:$,footerColor:E,headerBorderRadius:k,cellFontSize:I,cellFontSizeMD:Z,cellFontSizeSM:N,headerSplitColor:O,fixedHeaderSortActiveBg:j,headerFilterHoverBg:M,filterDropdownBg:P,expandIconBg:R,selectionColumnWidth:z,stickyScrollBarBg:T}=e,L=new Mn.C(r),D=new Mn.C(o),B=(0,zn.TS)(e,{tableFontSize:I,tableBg:a,tableRadius:k,tablePaddingVertical:v,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:s,tableHeaderBg:c,tableFooterTextColor:E,tableFooterBg:$,tableHeaderCellSplitColor:O,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableHeaderIconColor:L.clone().setAlpha(L.getAlpha()*i).toRgbString(),tableHeaderIconColorHover:D.clone().setAlpha(D.getAlpha()*i).toRgbString(),tableBodySortBg:p,tableFixedHeaderSortActiveBg:j,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:P,tableRowHoverBg:f,tableSelectedRowBg:m,tableSelectedRowHoverBg:g,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:Z,tableFontSizeSmall:N,tableSelectionColumnWidth:z,tableExpandIconBg:R,tableExpandColumnWidth:l+2*e.padding,tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[Qn(B),Kn(B),qn(B),Gn(B),_n(B),Tn(B),Fn(B),An(B),qn(B),Dn(B),Vn(B),Hn(B),Yn(B),Ln(B),Xn(B),Wn(B),Un(B)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,fontSize:f,controlHeight:m,colorTextPlaceholder:g}=e,h=new Mn.C(o).onBackground(n).toHexShortString(),v=new Mn.C(i).onBackground(n).toHexShortString(),b=new Mn.C(t).onBackground(n).toHexShortString();return{headerBg:b,headerColor:r,headerSortActiveBg:h,headerSortHoverBg:v,bodySortBg:b,rowHoverBg:b,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:b,footerColor:r,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:d,fixedHeaderSortActiveBg:h,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100}}));const er=[],tr=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:p,rowSelection:f,rowKey:m="key",rowClassName:g,columns:h,children:v,childrenColumnName:b,onChange:y,getPopupContainer:x,loading:w,expandIcon:C,expandable:S,expandedRowRender:$,expandIconColumnIndex:E,indentSize:I,scroll:Z,sortDirections:N,locale:O,showSorterTooltip:j=!0,virtual:M}=e;const P=s.useMemo((()=>h||we(v)),[h,v]),R=s.useMemo((()=>P.some((e=>e.responsive))),[P]),z=(0,ft.Z)(R),T=s.useMemo((()=>{const e=new Set(Object.keys(z).filter((e=>z[e])));return P.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[P,z]),L=(0,ot.Z)(e,["className","style","columns"]),{locale:D=mt.Z,direction:B,table:A,renderEmpty:_,getPrefixCls:H,getPopupContainer:K}=s.useContext(ut.E_),F=(0,pt.Z)(l),W=Object.assign(Object.assign({},D.Table),O),V=d||er,X=H("table",n),G=H("dropdown",u),Y=Object.assign({childrenColumnName:b,expandIconColumnIndex:E},S),{childrenColumnName:q="children"}=Y,U=s.useMemo((()=>V.some((e=>null==e?void 0:e[q]))?"nest":$||S&&S.expandedRowRender?"row":null),[V]),Q={body:s.useRef()},J=s.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ee]=function(e,t,n){const r=s.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const i=new Map;function a(e){e.forEach(((e,r)=>{const o=n(e,r);i.set(o,e),e&&"object"==typeof e&&t in e&&a(e[t]||[])}))}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(V,q,J),te={},ne=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i;const a=Object.assign(Object.assign({},te),e);n&&(null===(r=te.resetPagination)||void 0===r||r.call(te),(null===(o=a.pagination)||void 0===o?void 0:o.current)&&(a.pagination.current=1),p&&p.onChange&&p.onChange(1,null===(i=a.pagination)||void 0===i?void 0:i.pageSize)),Z&&!1!==Z.scrollToFirstRowOnChange&&Q.body.current&&st(0,{getContainer:()=>Q.body.current}),null==y||y(a.pagination,a.filters,a.sorter,{currentDataSource:Gt(In(V,a.sorterStates,q),a.filterStates),action:t})},[re,oe,ie,ae]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,c]=s.useState(Sn(n,!0)),u=s.useMemo((()=>{let e=!0;const t=Sn(n,!1);if(!t.length)return l;const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,l]),d=s.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]);function p(e){let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,ue.Z)(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),r(kn(t),t)}return[e=>$n(t,e,u,p,o,i,a),u,d,()=>kn(u)]}({prefixCls:X,mergedColumns:T,onSorterChange:(e,t)=>{ne({sorter:e,sorterStates:t},"sort",!1)},sortDirections:N||["ascend","descend"],tableLocale:W,showSorterTooltip:j}),le=s.useMemo((()=>In(V,oe,q)),[V,oe]);te.sorter=ae(),te.sorterStates=oe;const[ce,se,de]=qt({prefixCls:X,locale:W,dropdownPrefixCls:G,mergedColumns:T,onFilterChange:(e,t)=>{ne({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||K}),pe=Gt(le,se);te.filters=de,te.filterStates=se;const fe=s.useMemo((()=>{const e={};return Object.keys(de).forEach((t=>{null!==de[t]&&(e[t]=de[t])})),Object.assign(Object.assign({},ie),{filters:e})}),[ie,de]),[me]=Nn(fe),[ge,he]=en(pe.length,((e,t)=>{ne({pagination:Object.assign(Object.assign({},te.pagination),{current:e,pageSize:t})},"paginate")}),p);te.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(ge,p),te.resetPagination=he;const ve=s.useMemo((()=>{if(!1===p||!ge.pageSize)return pe;const{current:e=1,total:t,pageSize:n=Jt}=ge;return pe.lengthn?pe.slice((e-1)*n,e*n):pe:pe.slice((e-1)*n,e*n)}),[!!p,pe,ge&&ge.current,ge&&ge.pageSize,ge&&ge.total]),[be,ye]=fn({prefixCls:X,data:pe,pageData:ve,getRowKey:J,getRecordByKey:ee,expandType:U,childrenColumnName:q,locale:W,getPopupContainer:x||K},f);Y.__PARENT_RENDER_ICON__=Y.expandIcon,Y.expandIcon=Y.expandIcon||C||bt(W),"nest"===U&&void 0===Y.expandIconColumnIndex?Y.expandIconColumnIndex=f?1:0:Y.expandIconColumnIndex>0&&f&&(Y.expandIconColumnIndex-=1),"number"!=typeof Y.indentSize&&(Y.indentSize="number"==typeof I?I:15);const xe=s.useCallback((e=>me(be(ce(re(e))))),[re,ce,be]);let Ce,Se,$e;if(!1!==p&&(null==ge?void 0:ge.total)){let e;e=ge.size?ge.size:"small"===F||"middle"===F?"small":void 0;const t=t=>s.createElement(gt.Z,Object.assign({},ge,{className:k()(`${X}-pagination ${X}-pagination-${t}`,ge.className),size:e})),n="rtl"===B?"left":"right",{position:r}=ge;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||(Se=t(n)),e&&(Ce=t(e.toLowerCase().replace("top",""))),o&&(Se=t(o.toLowerCase().replace("bottom","")))}else Se=t(n)}"boolean"==typeof w?$e={spinning:w}:"object"==typeof w&&($e=Object.assign({spinning:!0},w));const[Ee,ke]=Jn(X),[,Ie]=(0,vt.Z)(),Ze=k()(`${X}-wrapper`,null==A?void 0:A.className,{[`${X}-wrapper-rtl`]:"rtl"===B},r,i,ke),Ne=Object.assign(Object.assign({},null==A?void 0:A.style),a),Oe=O&&O.emptyText||(null==_?void 0:_("Table"))||s.createElement(dt.Z,{componentName:"Table"}),je=M?jn:On,Me={},Pe=s.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=Ie,i=Math.floor(e*t);switch(F){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[Ie,F]);return M&&(Me.listItemHeight=Pe),Ee(s.createElement("div",{ref:t,className:Ze,style:Ne},s.createElement(ht.Z,Object.assign({spinning:!1},$e),Ce,s.createElement(je,Object.assign({},Me,L,{columns:T,direction:B,expandable:Y,prefixCls:X,className:k()({[`${X}-middle`]:"middle"===F,[`${X}-small`]:"small"===F,[`${X}-bordered`]:c,[`${X}-empty`]:0===V.length}),data:ve,rowKey:J,rowClassName:(e,t,n)=>{let r;return r="function"==typeof g?k()(g(e,t,n)):k()(g),k()({[`${X}-row-selected`]:ye.has(J(e,t))},r)},emptyText:Oe,internalHooks:o,internalRefs:Q,transformColumns:xe})),Se)))};var nr=s.forwardRef(tr);const rr=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(nr,Object.assign({},e,{ref:t,_renderTimes:n.current}))},or=s.forwardRef(rr);or.SELECTION_COLUMN=ln,or.EXPAND_COLUMN=r,or.SELECTION_ALL=cn,or.SELECTION_INVERT=sn,or.SELECTION_NONE=un,or.Column=nt,or.ColumnGroup=rt,or.Summary=H;var ir=or},99313:function(e,t,n){n.d(t,{Z:function(){return ke}});var r=n(99267),o=n(18785),i=n(62772),a=n(92310),l=n.n(a),c=n(14809),s=n(4635),u=n(20439),d=n(50298),p=n(93664),f=n(62646),m=n(59301),g=n(49658),h=n(18929),v=n(77900),b=(0,m.createContext)(null),y=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,c=e.tabKey,s=e.children;return m.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!a,style:o,className:l()(n,a&&"".concat(n,"-active"),r),ref:t},s)}));var x=y,w=["key","forceRender","style","className"];function C(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=m.useContext(b),d=a.prefixCls,p=a.tabs,g=r.tabPane,h="".concat(d,"-tabpane");return m.createElement("div",{className:l()("".concat(d,"-content-holder"))},m.createElement("div",{className:l()("".concat(d,"-content"),"".concat(d,"-content-").concat(o),(0,s.Z)({},"".concat(d,"-content-animated"),g))},p.map((function(e){var o=e.key,a=e.forceRender,s=e.style,d=e.className,p=(0,f.Z)(e,w),b=o===n;return m.createElement(v.ZP,(0,c.Z)({key:o,visible:b,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(h,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return m.createElement(x,(0,c.Z)({},p,{prefixCls:h,id:t,tabKey:o,animated:g,active:b,style:(0,u.Z)((0,u.Z)({},s),r),className:l()(d,i),ref:n}))}))}))))}var S=n(95190),$=n(29301),E=n(6089),k=n(8654),I={width:0,height:0,left:0,top:0};function Z(e,t){var n=m.useRef(e),r=m.useState({}),o=(0,d.Z)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var N=Math.pow(.995,20);var O=n(34280);function j(e){var t=(0,m.useState)(0),n=(0,d.Z)(t,2),r=n[0],o=n[1],i=(0,m.useRef)(0),a=(0,m.useRef)();return a.current=e,(0,O.o)((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var M={width:0,height:0,left:0,top:0,right:0};function P(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function R(e){return String(e).replace(/"/g,"TABS_DQ")}function z(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function T(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?m.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var L=m.forwardRef(T);var D=m.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==(0,p.Z)(i)||m.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?m.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),B=n(31561),A=n(15285),_=n(10228);function H(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,p=e.moreTransitionName,f=e.style,g=e.className,h=e.editable,v=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,x=e.onTabClick,w=e.getPopupContainer,C=e.popupClassName,S=(0,m.useState)(!1),$=(0,d.Z)(S,2),E=$[0],k=$[1],I=(0,m.useState)(null),Z=(0,d.Z)(I,2),N=Z[0],O=Z[1],j="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),P=null!==N?"".concat(j,"-").concat(N):null,R=null==i?void 0:i.dropdownAriaLabel;var T=m.createElement(A.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),k(!1)},prefixCls:"".concat(M,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[N],"aria-label":void 0!==R?R:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=z(t,o,h,n);return m.createElement(A.sN,{key:i,id:"".concat(j,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},m.createElement("span",null,a),l&&m.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,i)}},o||h.removeIcon||"×"))})));function D(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===N}))||0,r=t.length,i=0;it?"left":"right"})})),te=(0,d.Z)(ee,2),ne=te[0],re=te[1],oe=Z(0,(function(e,t){!J&&B&&B({direction:e>t?"top":"bottom"})})),ie=(0,d.Z)(oe,2),ae=ie[0],le=ie[1],ce=(0,m.useState)([0,0]),se=(0,d.Z)(ce,2),ue=se[0],de=se[1],pe=(0,m.useState)([0,0]),fe=(0,d.Z)(pe,2),me=fe[0],ge=fe[1],he=(0,m.useState)([0,0]),ve=(0,d.Z)(he,2),be=ve[0],ye=ve[1],xe=(0,m.useState)([0,0]),we=(0,d.Z)(xe,2),Ce=we[0],Se=we[1],$e=function(e){var t=(0,m.useRef)([]),n=(0,m.useState)({}),r=(0,d.Z)(n,2)[1],o=(0,m.useRef)("function"==typeof e?e():e),i=j((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),i()}]}(new Map),Ee=(0,d.Z)($e,2),ke=Ee[0],Ie=Ee[1],Ze=function(e,t,n){return(0,m.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||I,i=o.left+o.width,a=0;aLe?Le:e}J&&v?(Te=0,Le=Math.max(0,Oe-Re)):(Te=Math.min(0,Re-Oe),Le=0);var Be=(0,m.useRef)(),Ae=(0,m.useState)(),_e=(0,d.Z)(Ae,2),He=_e[0],Ke=_e[1];function Fe(){Ke(Date.now())}function We(){window.clearTimeout(Be.current)}!function(e,t){var n=(0,m.useState)(),r=(0,d.Z)(n,2),o=r[0],i=r[1],a=(0,m.useState)(0),l=(0,d.Z)(a,2),c=l[0],s=l[1],u=(0,m.useState)(0),p=(0,d.Z)(u,2),f=p[0],g=p[1],h=(0,m.useState)(),v=(0,d.Z)(h,2),b=v[0],y=v[1],x=(0,m.useRef)(),w=(0,m.useRef)(),C=(0,m.useRef)(null);C.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(x.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var l=r-o.x,u=a-o.y;t(l,u);var d=Date.now();s(d),g(d-c),y({x:l,y:u})}},onTouchEnd:function(){if(o&&(i(null),y(null),b)){var e=b.x/f,n=b.y/f,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var l=e,c=n;x.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(x.current):t(20*(l*=N),20*(c*=N))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===w.current?n:r:i>a?(o=n,w.current="x"):(o=r,w.current="y"),t(-o,-o)&&e.preventDefault()}},m.useEffect((function(){function t(e){C.current.onTouchMove(e)}function n(e){C.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){C.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){C.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(Y,(function(e,t){function n(e,t){e((function(e){return De(e+t)}))}return!!Pe&&(J?n(re,e):n(le,t),We(),Fe(),!0)})),(0,m.useEffect)((function(){return We(),He&&(Be.current=window.setTimeout((function(){Ke(0)}),100)),We}),[He]);var Ve=function(e,t,n,r,o,i,a){var l,c,s,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(l="width",c=p?"right":"left",s=Math.abs(n)):(l="height",c="top",s=-n),(0,m.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;os+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||M)[c]=r?[0,0]:[a,r]}),[e,t,r,o,i,s,d,u.map((function(e){return e.key})).join("_"),p])}(Ze,Re,J?ne:ae,Oe,je,Me,(0,u.Z)((0,u.Z)({},e),{},{tabs:i})),Xe=(0,d.Z)(Ve,2),Ge=Xe[0],Ye=Xe[1],qe=(0,E.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Ze.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=ne;v?t.rightne+Re&&(n=t.right+t.width-Re):t.left<-ne?n=-t.left:t.left+t.width>-ne+Re&&(n=-(t.left+t.width-Re)),le(0),re(De(n))}else{var r=ae;t.top<-ae?r=-t.top:t.top+t.height>-ae+Re&&(r=-(t.top+t.height-Re)),re(0),le(De(r))}})),Ue={};"top"===C||"bottom"===C?Ue[v?"marginRight":"marginLeft"]=O:Ue.marginTop=O;var Qe=i.map((function(e,t){var n=e.key;return m.createElement(F,{id:f,prefixCls:o,key:n,tab:e,style:0===t?void 0:Ue,closable:e.closable,editable:x,active:n===h,renderWrapper:z,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){T(n,e)},onFocus:function(){qe(n),Fe(),Y.current&&(v||(Y.current.scrollLeft=0),Y.current.scrollTop=0)}})})),Je=function(){return Ie((function(){var e=new Map;return i.forEach((function(t){var n,r=t.key,o=null===(n=q.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(R(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))};(0,m.useEffect)((function(){Je()}),[i.map((function(e){return e.key})).join("_")]);var et=j((function(){var e=X(_),t=X(H),n=X(W);de([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=X(Q);ye(r);var o=X(U);Se(o);var i=X(q);ge([i[0]-r[0],i[1]-r[1]]),Je()})),tt=i.slice(0,Ge),nt=i.slice(Ye+1),rt=[].concat((0,S.Z)(tt),(0,S.Z)(nt)),ot=Ze.get(h),it=V({activeTabOffset:ot,horizontal:J,rtl:v,indicatorSize:A}).style;(0,m.useEffect)((function(){qe()}),[h,Te,Le,P(ot),P(Ze),J]),(0,m.useEffect)((function(){et()}),[v]);var at,lt,ct,st,ut=!!rt.length,dt="".concat(o,"-nav-wrap");return J?v?(lt=ne>0,at=ne!==Le):(at=ne<0,lt=ne!==Te):(ct=ae<0,st=ae!==Te),m.createElement($.Z,{onResize:et},m.createElement("div",{ref:(0,k.x1)(t,_),role:"tablist",className:l()("".concat(o,"-nav"),a),style:p,onKeyDown:function(){Fe()}},m.createElement(D,{ref:H,position:"left",extra:y,prefixCls:o}),m.createElement($.Z,{onResize:et},m.createElement("div",{className:l()(dt,(n={},(0,s.Z)(n,"".concat(dt,"-ping-left"),at),(0,s.Z)(n,"".concat(dt,"-ping-right"),lt),(0,s.Z)(n,"".concat(dt,"-ping-top"),ct),(0,s.Z)(n,"".concat(dt,"-ping-bottom"),st),n)),ref:Y},m.createElement($.Z,{onResize:et},m.createElement("div",{ref:q,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:He?"none":void 0}},Qe,m.createElement(L,{ref:Q,prefixCls:o,locale:w,editable:x,style:(0,u.Z)((0,u.Z)({},0===Qe.length?void 0:Ue),{},{visibility:ut?"hidden":null})}),m.createElement("div",{className:l()("".concat(o,"-ink-bar"),(0,s.Z)({},"".concat(o,"-ink-bar-animated"),g.inkBar)),style:it}))))),m.createElement(K,(0,c.Z)({},e,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:U,prefixCls:o,tabs:rt,className:!ut&&ze,tabMoving:!!He})),m.createElement(D,{ref:W,position:"right",extra:y,prefixCls:o})))}var q=m.forwardRef(Y),U=["renderTabBar"],Q=["label","key"];function J(e){var t=e.renderTabBar,n=(0,f.Z)(e,U),r=m.useContext(b).tabs;return t?t((0,u.Z)((0,u.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,f.Z)(e,Q);return m.createElement(x,(0,c.Z)({tab:t,key:n,tabKey:n},r))}))}),q):m.createElement(q,n)}n(48736);var ee=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],te=0;function ne(e,t){var n,r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,v=e.items,y=e.direction,x=e.activeKey,w=e.defaultActiveKey,S=e.editable,$=e.animated,E=e.tabPosition,k=void 0===E?"top":E,I=e.tabBarGutter,Z=e.tabBarStyle,N=e.tabBarExtraContent,O=e.locale,j=e.moreIcon,M=e.moreTransitionName,P=e.destroyInactiveTabPane,R=e.renderTabBar,z=e.onChange,T=e.onTabClick,L=e.onTabScroll,D=e.getPopupContainer,B=e.popupClassName,A=e.indicatorSize,_=(0,f.Z)(e,ee),H=m.useMemo((function(){return(v||[]).filter((function(e){return e&&"object"===(0,p.Z)(e)&&"key"in e}))}),[v]),K="rtl"===y,F=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,u.Z)({inkBar:!0},"object"===(0,p.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}($),W=(0,m.useState)(!1),V=(0,d.Z)(W,2),X=V[0],G=V[1];(0,m.useEffect)((function(){G((0,g.Z)())}),[]);var Y=(0,h.Z)((function(){var e;return null===(e=H[0])||void 0===e?void 0:e.key}),{value:x,defaultValue:w}),q=(0,d.Z)(Y,2),U=q[0],Q=q[1],ne=(0,m.useState)((function(){return H.findIndex((function(e){return e.key===U}))})),re=(0,d.Z)(ne,2),oe=re[0],ie=re[1];(0,m.useEffect)((function(){var e,t=H.findIndex((function(e){return e.key===U}));-1===t&&(t=Math.max(0,Math.min(oe,H.length-1)),Q(null===(e=H[t])||void 0===e?void 0:e.key));ie(t)}),[H.map((function(e){return e.key})).join("_"),U,oe]);var ae=(0,h.Z)(null,{value:r}),le=(0,d.Z)(ae,2),ce=le[0],se=le[1];(0,m.useEffect)((function(){r||(se("rc-tabs-".concat(te)),te+=1)}),[]);var ue={id:ce,activeKey:U,animated:F,tabPosition:k,rtl:K,mobile:X},de=(0,u.Z)((0,u.Z)({},ue),{},{editable:S,locale:O,moreIcon:j,moreTransitionName:M,tabBarGutter:I,onTabClick:function(e,t){null==T||T(e,t);var n=e!==U;Q(e),n&&(null==z||z(e))},onTabScroll:L,extra:N,style:Z,panes:null,getPopupContainer:D,popupClassName:B,indicatorSize:A});return m.createElement(b.Provider,{value:{tabs:H,prefixCls:i}},m.createElement("div",(0,c.Z)({ref:t,id:r,className:l()(i,"".concat(i,"-").concat(k),(n={},(0,s.Z)(n,"".concat(i,"-mobile"),X),(0,s.Z)(n,"".concat(i,"-editable"),S),(0,s.Z)(n,"".concat(i,"-rtl"),K),n),a)},_),m.createElement(J,(0,c.Z)({},de,{renderTabBar:R})),m.createElement(C,(0,c.Z)({destroyInactiveTabPane:P},ue,{animated:F}))))}var re=m.forwardRef(ne),oe=n(36355),ie=n(19716);var ae=()=>null,le=n(62892);const ce={motionAppear:!1,motionEnter:!0,motionLeave:!0};var se=n(11592),ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,me.oN)(e,"slide-up"),(0,me.oN)(e,"slide-down")]]};const he=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ve=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,de.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},de.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},be=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ye=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},xe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,de.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},we=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ce=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,de.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Se=(0,pe.Z)("Tabs",(e=>{const t=(0,fe.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[ye(t),we(t),be(t),ve(t),he(t),Ce(t),ge(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{type:t,className:n,rootClassName:a,size:c,onEdit:s,hideAdd:u,centered:d,addIcon:p,popupClassName:f,children:g,items:h,animated:v,style:b,indicatorSize:y}=e,x=$e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:w,moreIcon:C=m.createElement(o.Z,null)}=x,{direction:S,tabs:$,getPrefixCls:E,getPopupContainer:k}=m.useContext(oe.E_),I=E("tabs",w),[Z,N]=Se(I);let O;"editable-card"===t&&(O={onEdit:(e,t)=>{let{key:n,event:r}=t;null==s||s("add"===e?r:n,e)},removeIcon:m.createElement(r.Z,null),addIcon:p||m.createElement(i.Z,null),showAdd:!0!==u});const j=E(),M=function(e,t){return e||function(e){return e.filter((e=>e))}((0,se.Z)(t).map((e=>{if(m.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=ue(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(h,g),P=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},ce),{motionName:(0,le.m)(e,"switch")})),t}(I,v),R=(0,ie.Z)(c),z=Object.assign(Object.assign({},null==$?void 0:$.style),b);return Z(m.createElement(re,Object.assign({direction:S,getPopupContainer:k,moreTransitionName:`${j}-slide-up`},x,{items:M,className:l()({[`${I}-${R}`]:R,[`${I}-card`]:["card","editable-card"].includes(t),[`${I}-editable-card`]:"editable-card"===t,[`${I}-centered`]:d},null==$?void 0:$.className,n,a,N),popupClassName:l()(f,N),style:z,editable:O,moreIcon:C,prefixCls:I,animated:P,indicatorSize:null!=y?y:null==$?void 0:$.indicatorSize})))};Ee.TabPane=ae;var ke=Ee},33166:function(e,t,n){n.d(t,{i:function(){return r}});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(33166);function o(e,t){return r.i.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}},6848:function(e,t,n){n.d(t,{Z:function(){return Z}});var r=n(59301),o=n(92310),i=n.n(o),a=n(55477),l=n(18929),c=n(62892),s=n(79676),u=n(92343),d=n(36355),p=n(33234),f=n(88088),m=n(17313),g=n(29878),h=n(60293),v=n(45157),b=n(37613),y=n(83116);const x=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${s/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,h.qN)}},[`${t}-content`]:{position:"relative"}}),(0,v.Z)(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},(0,h.ZP)((0,b.TS)(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var w=(e,t)=>(0,y.Z)("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=(0,b.TS)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[x(a),(0,g._y)(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),C=n(36785);function S(e,t){const n=(0,C.o2)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var $=e=>{const{prefixCls:t,className:n,placement:o="top",title:l,color:c,overlayInnerStyle:s}=e,{getPrefixCls:u}=r.useContext(d.E_),p=u("tooltip",t),[f,m]=w(p,!0),g=S(p,c),h=g.arrowStyle,v=Object.assign(Object.assign({},s),g.overlayStyle),b=i()(m,p,`${p}-pure`,`${p}-placement-${o}`,n,g.className);return f(r.createElement("div",{className:b,style:h},r.createElement("div",{className:`${p}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:m,prefixCls:p,overlayInnerStyle:v}),l)))},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n={},r=Object.assign({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}})(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),l=Object.assign(Object.assign({},o),{pointerEvents:"none"}),c=(0,u.Tm)(e,{style:l,className:null});return r.createElement("span",{style:a,className:i()(e.props.className,`${t}-disabled-compatible-wrapper`)},c)}return e}const I=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:m,openClassName:g,getTooltipContainer:h,overlayClassName:v,color:b,overlayInnerStyle:y,children:x,afterOpenChange:C,afterVisibleChange:$,destroyTooltipOnHide:I,arrow:Z=!0,title:N,overlay:O,builtinPlacements:j,arrowPointAtCenter:M=!1,autoAdjustOverflow:P=!0}=e,R=!!Z,[,z]=(0,f.Z)(),{getPopupContainer:T,getPrefixCls:L,direction:D}=r.useContext(d.E_),B=r.useRef(null),A=()=>{var e;null===(e=B.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>({forceAlign:A,forcePopupAlign:()=>{A()}})));const[_,H]=(0,l.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),K=!N&&!O&&0!==N,F=r.useMemo((()=>{var e,t;let n=M;return"object"==typeof Z&&(n=null!==(t=null!==(e=Z.pointAtCenter)&&void 0!==e?e:Z.arrowPointAtCenter)&&void 0!==t?t:M),j||(0,s.Z)({arrowPointAtCenter:n,autoAdjustOverflow:P,arrowWidth:R?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})}),[M,Z,j,z]),W=r.useMemo((()=>0===N?N:O||N||""),[O,N]),V=r.createElement(p.BR,null,"function"==typeof W?W():W),{getPopupContainer:X,placement:G="top",mouseEnterDelay:Y=.1,mouseLeaveDelay:q=.1,overlayStyle:U,rootClassName:Q}=e,J=E(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=L("tooltip",m),te=L(),ne=e["data-popover-inject"];let re=_;"open"in e||"visible"in e||!K||(re=!1);const oe=k((0,u.l$)(x)&&!(0,u.M2)(x)?x:r.createElement("span",null,x),ee),ie=oe.props,ae=ie.className&&"string"!=typeof ie.className?ie.className:i()(ie.className,g||`${ee}-open`),[le,ce]=w(ee,!ne),se=S(ee,b),ue=se.arrowStyle,de=Object.assign(Object.assign({},y),se.overlayStyle),pe=i()(v,{[`${ee}-rtl`]:"rtl"===D},se.className,Q,ce);return le(r.createElement(a.Z,Object.assign({},J,{showArrow:R,placement:G,mouseEnterDelay:Y,mouseLeaveDelay:q,prefixCls:ee,overlayClassName:pe,overlayStyle:Object.assign(Object.assign({},ue),U),getTooltipContainer:X||h||T,ref:B,builtinPlacements:F,overlay:V,visible:re,onVisibleChange:t=>{var n,r;H(!K&&t),K||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=C?C:$,overlayInnerStyle:de,arrowContent:r.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:(0,c.m)(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!I}),re?(0,u.Tm)(oe,{className:ae}):oe))}));I._InternalPanelDoNotUseOrYouWillBeFired=$;var Z=I},177:function(e,t,n){n.d(t,{Z:function(){return Xe}});var r=n(14809),o=n(4635),i=n(93664),a=n(20439),l=n(95190),c=n(99153),s=n(84851),u=n(13028),d=n(19257),p=n(54941),f=n(92310),m=n.n(f),g=n(10228),h=n(26112),v=n(48736),b=n(59301),y=n(39378);function x(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var w=n(50298),C=n(62646),S=n(34280),$=n(65283),E=n(77900),k=n(39417);var I=n(71430),Z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],N=function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,s=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,p=(0,C.Z)(e,Z),f=b.useState(!0),g=(0,w.Z)(f,2),h=g[0],v=g[1],$=b.useContext(y.k).prefixCls,N=a&&"hide"!==l;(0,S.Z)((function(){a&&N!==h&&v(N)}),[a]);var O=b.useRef(!1),j=function(){a&&!O.current&&(O.current=!0,s())};!function(e,t){var n=b.useState(!1),r=(0,w.Z)(n,2),o=r[0],i=r[1];b.useLayoutEffect((function(){if(o)return e(),function(){t()}}),[o]),b.useLayoutEffect((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&c()}),j);return a?b.createElement(E.ZP,(0,r.Z)({ref:t,visible:h},i,{motionAppear:"show"===l,onVisibleChanged:function(e){N===e&&j()}}),(function(e,t){var n=e.className,o=e.style;return b.createElement("div",{ref:t,className:m()("".concat($,"-treenode-motion"),n),style:o},a.map((function(e){var t=(0,r.Z)({},(x(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=(0,I.H8)(o,d);return b.createElement(k.Z,(0,r.Z)({},t,l,{title:n,active:u,data:e.data,key:o,isStart:i,isEnd:a}))})))})):b.createElement(k.Z,(0,r.Z)({domRef:t,className:n,style:o},p,{active:u}))};N.displayName="MotionTreeNode";var O=b.forwardRef(N);function j(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var M=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],P={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},z="RC_TREE_MOTION_".concat(Math.random()),T={key:z},L={key:z,level:0,index:0,pos:"0",node:T,nodes:[T]},D={parent:null,children:[],pos:L.pos,data:T,title:null,key:z,isStart:[],isEnd:[]};function B(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function A(e){var t=e.key,n=e.pos;return(0,I.km)(t,n)}var _=b.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,p=e.disabled,f=e.dragging,m=e.dragOverNodeKey,g=e.dropPosition,h=e.motion,v=e.height,y=e.itemHeight,E=e.virtual,k=e.focusable,Z=e.activeItem,N=e.focused,T=e.tabIndex,L=e.onKeyDown,_=e.onFocus,H=e.onBlur,K=e.onActiveChange,F=e.onListChangeStart,W=e.onListChangeEnd,V=(0,C.Z)(e,M),X=b.useRef(null),G=b.useRef(null);b.useImperativeHandle(t,(function(){return{scrollTo:function(e){X.current.scrollTo(e)},getIndentWidth:function(){return G.current.offsetWidth}}}));var Y=b.useState(i),q=(0,w.Z)(Y,2),U=q[0],Q=q[1],J=b.useState(o),ee=(0,w.Z)(J,2),te=ee[0],ne=ee[1],re=b.useState(o),oe=(0,w.Z)(re,2),ie=oe[0],ae=oe[1],le=b.useState([]),ce=(0,w.Z)(le,2),se=ce[0],ue=ce[1],de=b.useState(null),pe=(0,w.Z)(de,2),fe=pe[0],me=pe[1],ge=b.useRef(o);function he(){var e=ge.current;ne(e),ae(e),ue([]),me(null),W()}ge.current=o,(0,S.Z)((function(){Q(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}(Z)),b.createElement("div",null,b.createElement("input",{style:P,disabled:!1===k||p,tabIndex:!1!==k?T:null,onKeyDown:L,onFocus:_,onBlur:H,value:"",onChange:R,"aria-label":"for screen reader"})),b.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},b.createElement("div",{className:"".concat(n,"-indent")},b.createElement("div",{ref:G,className:"".concat(n,"-indent-unit")}))),b.createElement($.Z,(0,r.Z)({},V,{data:ve,itemKey:A,height:v,fullHeight:!1,virtual:E,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:X,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return A(e)===z}))&&he()}}),(function(e){var t=e.pos,n=(0,r.Z)({},(x(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=(0,I.km)(i,t);delete n.key,delete n.children;var s=(0,I.H8)(c,be);return b.createElement(O,(0,r.Z)({},n,s,{title:o,active:!!Z&&i===Z.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:h,motionNodes:i===z?se:null,motionType:fe,onMotionStart:F,onMotionEnd:he,treeNodeRequiredProps:be,onMouseMove:function(){K(null)}}))})))}));_.displayName="NodeList";var H=_,K=n(35654),F=n(90782),W=n(67841),V=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i2&&void 0!==arguments[2]&&arguments[2],i=e.state,l=i.dragChildrenKeys,c=i.dropPosition,s=i.dropTargetKey,u=i.dropTargetPos,d=i.dropAllowed;if(d){var p=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var f=(0,a.Z)((0,a.Z)({},(0,I.H8)(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:(0,W.Z)(e.state.keyEntities,s).node}),m=-1!==l.indexOf(s);(0,v.ZP)(!m,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var g=(0,K.yx)(u),h={event:t,node:(0,I.F)(f),dragNode:e.dragNode?(0,I.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(l),dropToGap:0!==c,dropPosition:c+Number(g[g.length-1])};o||null==p||p(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,l=n.expanded,c=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter((function(e){return e.key===c}))[0],u=(0,I.F)((0,a.Z)((0,a.Z)({},(0,I.H8)(c,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(l?(0,K._5)(o,c):(0,K.L0)(o,c)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],p=!u,f=(r=p?s?(0,K.L0)(r,d):[d]:(0,K._5)(r,d)).map((function(e){var t=(0,W.Z)(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,c=i.checkedKeys,s=i.halfCheckedKeys,u=e.props,d=u.checkStrictly,p=u.onCheck,f=n.key,m={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var g=r?(0,K.L0)(c,f):(0,K._5)(c,f);o={checked:g,halfChecked:(0,K._5)(s,f)},m.checkedNodes=g.map((function(e){return(0,W.Z)(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:g})}else{var h=(0,F.S)([].concat((0,l.Z)(c),[f]),!0,a),v=h.checkedKeys,b=h.halfCheckedKeys;if(!r){var y=new Set(v);y.delete(f);var x=(0,F.S)(Array.from(y),{checked:!1,halfCheckedKeys:b},a);v=x.checkedKeys,b=x.halfCheckedKeys}o=v,m.checkedNodes=[],m.checkedNodesPositions=[],m.halfCheckedKeys=b,v.forEach((function(e){var t=(0,W.Z)(a,e);if(t){var n=t.node,r=t.pos;m.checkedNodes.push(n),m.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:b})}null==p||p(o,m)},e.onNodeLoad=function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,p=u.onLoad;return d&&-1===l.indexOf(n)&&-1===s.indexOf(n)?(d(t).then((function(){var o=e.state.loadedKeys,i=(0,K.L0)(o,n);null==p||p(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState((function(e){return{loadingKeys:(0,K._5)(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,K._5)(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;(0,v.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,K.L0)(i,n)}),r()}o(t)})),{loadingKeys:(0,K.L0)(s,n)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,l={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,l[n]=t[n])})),!o||n&&!i||e.setState((0,a.Z)((0,a.Z)({},l),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,a=n.focused,l=n.flattenNodes,c=n.keyEntities,s=n.draggingNodeKey,u=n.activeKey,d=n.dropLevelOffset,p=n.dropContainerKey,f=n.dropTargetKey,g=n.dropPosition,v=n.dragOverNodeKey,x=n.indent,w=this.props,C=w.prefixCls,S=w.className,$=w.style,E=w.showLine,k=w.focusable,I=w.tabIndex,Z=void 0===I?0:I,N=w.selectable,O=w.showIcon,j=w.icon,M=w.switcherIcon,P=w.draggable,R=w.checkable,z=w.checkStrictly,T=w.disabled,L=w.motion,D=w.loadData,B=w.filterTreeNode,A=w.height,_=w.itemHeight,K=w.virtual,F=w.titleRender,W=w.dropIndicatorRender,V=w.onContextMenu,X=w.onScroll,G=w.direction,Y=w.rootClassName,q=w.rootStyle,U=(0,h.Z)(this.props,{aria:!0,data:!0});return P&&(t="object"===(0,i.Z)(P)?P:"function"==typeof P?{nodeDraggable:P}:{}),b.createElement(y.k.Provider,{value:{prefixCls:C,selectable:N,showIcon:O,icon:j,switcherIcon:M,draggable:t,draggingNodeKey:s,checkable:R,checkStrictly:z,disabled:T,keyEntities:c,dropLevelOffset:d,dropContainerKey:p,dropTargetKey:f,dropPosition:g,dragOverNodeKey:v,indent:x,direction:G,dropIndicatorRender:W,loadData:D,filterTreeNode:B,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},b.createElement("div",{role:"tree",className:m()(C,S,Y,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),E),(0,o.Z)(e,"".concat(C,"-focused"),a),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==u),e)),style:q},b.createElement(H,(0,r.Z)({ref:this.listRef,prefixCls:C,style:$,data:l,disabled:T,selectable:N,checkable:!!R,motion:L,dragging:null!==s,height:A,itemHeight:_,virtual:K,focusable:k,focused:a,tabIndex:Z,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:X},this.getTreeNodeRequiredProps(),U))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function l(t){return!r&&t in e||r&&r[t]!==e[t]}var c=t.fieldNames;if(l("fieldNames")&&(c=(0,I.w$)(e.fieldNames),i.fieldNames=c),l("treeData")?n=e.treeData:l("children")&&((0,v.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,I.zn)(e.children)),n){i.treeData=n;var s=(0,I.I8)(n,{fieldNames:c});i.keyEntities=(0,a.Z)((0,o.Z)({},z,L),s.keyEntities)}var u,d=i.keyEntities||t.keyEntities;if(l("expandedKeys")||r&&l("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,K.r7)(e.expandedKeys,d):e.expandedKeys;else if(!r&&e.defaultExpandAll){var p=(0,a.Z)({},d);delete p[z],i.expandedKeys=Object.keys(p).map((function(e){return p[e].key}))}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,K.r7)(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var f=(0,I.oH)(n||t.treeData,i.expandedKeys||t.expandedKeys,c);i.flattenNodes=f}if((e.selectable&&(l("selectedKeys")?i.selectedKeys=(0,K.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=(0,K.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(l("checkedKeys")?u=(0,K.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=(0,K.E6)(e.defaultCheckedKeys)||{}:n&&(u=(0,K.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var m=u,g=m.checkedKeys,h=void 0===g?[]:g,b=m.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var x=(0,F.S)(h,!0,d);h=x.checkedKeys,y=x.halfCheckedKeys}i.checkedKeys=h,i.halfCheckedKeys=y}return l("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(b.Component);V.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return b.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},V.TreeNode=k.Z;var X=V,G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Y=n(7657),q=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:G}))};var U=b.forwardRef(q),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},J=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Q}))};var ee=b.forwardRef(J),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ne=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:te}))};var re=b.forwardRef(ne),oe=n(36355),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ae=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:ie}))};var le=b.forwardRef(ae),ce=n(62892),se=n(66604),ue=n(98447),de=n(17313),pe=n(8378),fe=n(37613),me=n(83116);const ge=new se.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),he=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ve=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),be=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,de.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,de.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:ge,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,de.oN)(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},he(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${i}px`,userSelect:"none"},ve(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},ye=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},xe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,i=(0,fe.TS)(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[be(e,i),ye(i)]};var we=(0,me.Z)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,ue.C2)(`${n}-checkbox`,e)},xe(n,e),(0,pe.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function Ce(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a="ltr"===i?"left":"right",l={[a]:-n*o+4,["ltr"===i?"right":"left"]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+4}return b.createElement("div",{style:l,className:`${r}-drop-indicator`})}var Se={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},$e=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Se}))};var Ee=b.forwardRef($e),ke=n(58617),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ze=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Ie}))};var Ne=b.forwardRef(Ze),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},je=function(e,t){return b.createElement(Y.Z,(0,r.Z)({},e,{ref:t,icon:Oe}))};var Me=b.forwardRef(je),Pe=n(92343);var Re=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return b.createElement(ke.Z,{className:`${t}-switcher-loading-icon`});let c;if(o&&"object"==typeof o&&(c=o.showLeafIcon),i){if(!o)return null;if("boolean"!=typeof c&&c){const e="function"==typeof c?c(r):c,n=`${t}-switcher-line-custom-icon`;return(0,Pe.l$)(e)?(0,Pe.Tm)(e,{className:m()(e.props.className||"",n)}):e}return c?b.createElement(U,{className:`${t}-switcher-line-icon`}):b.createElement("span",{className:`${t}-switcher-leaf-line`})}const s=`${t}-switcher-icon`,u="function"==typeof n?n(r):n;return(0,Pe.l$)(u)?(0,Pe.Tm)(u,{className:m()(u.props.className||"",s)}):void 0!==u?u:o?a?b.createElement(Ne,{className:`${t}-switcher-line-icon`}):b.createElement(Me,{className:`${t}-switcher-line-icon`}):b.createElement(Ee,{className:s})};const ze=b.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,virtual:o,tree:i}=b.useContext(oe.E_),{prefixCls:a,className:l,showIcon:c=!1,showLine:s,switcherIcon:u,blockNode:d=!1,children:p,checkable:f=!1,selectable:g=!0,draggable:h,motion:v,style:y}=e,x=n("tree",a),w=n(),C=null!=v?v:Object.assign(Object.assign({},(0,ce.Z)(w)),{motionAppear:!1}),S=Object.assign(Object.assign({},e),{checkable:f,selectable:g,showIcon:c,motion:C,blockNode:d,showLine:Boolean(s),dropIndicatorRender:Ce}),[$,E]=we(x),k=b.useMemo((()=>{if(!h)return!1;let e={};switch(typeof h){case"function":e.nodeDraggable=h;break;case"object":e=Object.assign({},h)}return!1!==e.icon&&(e.icon=e.icon||b.createElement(le,null)),e}),[h]);return $(b.createElement(X,Object.assign({itemHeight:20,ref:t,virtual:o},S,{style:Object.assign(Object.assign({},null==i?void 0:i.style),y),prefixCls:x,className:m()({[`${x}-icon-hide`]:!c,[`${x}-block-node`]:d,[`${x}-unselectable`]:!g,[`${x}-rtl`]:"rtl"===r},null==i?void 0:i.className,l,E),direction:r,checkable:f?b.createElement("span",{className:`${x}-checkbox-inner`}):f,selectable:g,switcherIcon:e=>b.createElement(Re,{prefixCls:x,switcherIcon:u,treeNodeProps:e,showLine:s}),draggable:k}),p))}));var Te,Le=ze;function De(e,t){e.forEach((function(e){const{key:n,children:r}=e;!1!==t(n,e)&&De(r||[],t)}))}function Be(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o}=e;const i=[];let a=Te.None;if(r&&r===o)return[r];if(!r||!o)return[];return De(t,(e=>{if(a===Te.End)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),a===Te.None)a=Te.Start;else if(a===Te.Start)return a=Te.End,!1}else a===Te.Start&&i.push(e);return n.includes(e)})),i}function Ae(e,t){const n=(0,l.Z)(t),r=[];return De(e,((e,t)=>{const o=n.indexOf(e);return-1!==o&&(r.push(t),n.splice(o,1)),!!n.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(Te||(Te={}));var _e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=_e(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=b.useRef(),c=b.useRef(),[s,u]=b.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,p]=b.useState((()=>(()=>{const{keyEntities:e}=(0,I.I8)(Ke(i));let t;return t=n?Object.keys(e):r?(0,K.r7)(i.expandedKeys||o||[],e):i.expandedKeys||o,t})()));b.useEffect((()=>{"selectedKeys"in i&&u(i.selectedKeys)}),[i.selectedKeys]),b.useEffect((()=>{"expandedKeys"in i&&p(i.expandedKeys)}),[i.expandedKeys]);const{getPrefixCls:f,direction:g}=b.useContext(oe.E_),{prefixCls:h,className:v,showIcon:y=!0,expandAction:x="click"}=i,w=_e(i,["prefixCls","className","showIcon","expandAction"]),C=f("tree",h),S=m()(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===g},v);return b.createElement(Le,Object.assign({icon:He,ref:t,blockNode:!0},w,{showIcon:y,expandAction:x,prefixCls:C,className:S,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r}=i,{node:o,nativeEvent:s}=t,{key:p=""}=o,f=Ke(i),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),h=null==s?void 0:s.shiftKey;let v;r&&g?(v=e,a.current=p,c.current=v,m.selectedNodes=Ae(f,v)):r&&h?(v=Array.from(new Set([].concat((0,l.Z)(c.current||[]),(0,l.Z)(Be({treeData:f,expandedKeys:d,startKey:p,endKey:a.current}))))),m.selectedNodes=Ae(f,v)):(v=[p],a.current=p,c.current=v,m.selectedNodes=Ae(f,v)),null===(n=i.onSelect)||void 0===n||n.call(i,v,m),"selectedKeys"in i||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||p(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))};var We=b.forwardRef(Fe);const Ve=Le;Ve.DirectoryTree=We,Ve.TreeNode=k.Z;var Xe=Ve},5630:function(e,t,n){var r=n(14809),o=n(20439),i=n(4635),a=n(50298),l=n(62646),c=n(92310),s=n.n(c),u=n(18929),d=n(59301),p=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f=(0,d.forwardRef)((function(e,t){var n,c=e.prefixCls,f=void 0===c?"rc-checkbox":c,m=e.className,g=e.style,h=e.checked,v=e.disabled,b=e.defaultChecked,y=void 0!==b&&b,x=e.type,w=void 0===x?"checkbox":x,C=e.title,S=e.onChange,$=(0,l.Z)(e,p),E=(0,d.useRef)(null),k=(0,u.Z)(y,{value:h}),I=(0,a.Z)(k,2),Z=I[0],N=I[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=E.current)||void 0===e||e.blur()},input:E.current}}));var O=s()(f,m,(n={},(0,i.Z)(n,"".concat(f,"-checked"),Z),(0,i.Z)(n,"".concat(f,"-disabled"),v),n));return d.createElement("span",{className:O,title:C,style:g},d.createElement("input",(0,r.Z)({},$,{className:"".concat(f,"-input"),ref:E,onChange:function(t){v||("checked"in e||N(t.target.checked),null==S||S({target:(0,o.Z)((0,o.Z)({},e),{},{type:w,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:v,checked:!!Z,type:w})),d.createElement("span",{className:"".concat(f,"-inner")}))}));t.Z=f},31561:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(14809),o=n(4635),i=n(50298),a=n(62646),l=n(35593),c=n(92310),s=n.n(c),u=n(8654),d=n(59301),p=n(10228),f=n(16089),m=p.Z.ESC,g=p.Z.TAB;var h=(0,d.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,d.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,null==i?void 0:i.ref);return d.createElement(d.Fragment,null,r&&d.createElement("div",{className:"".concat(o,"-arrow")}),d.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))})),v={adjustX:1,adjustY:1},b=[0,0],y={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:b},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:b},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:b},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:b},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:b}},x=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,c=e.arrow,p=void 0!==c&&c,v=e.prefixCls,b=void 0===v?"rc-dropdown":v,w=e.transitionName,C=e.animation,S=e.align,$=e.placement,E=void 0===$?"bottomLeft":$,k=e.placements,I=void 0===k?y:k,Z=e.getPopupContainer,N=e.showAction,O=e.hideAction,j=e.overlayClassName,M=e.overlayStyle,P=e.visible,R=e.trigger,z=void 0===R?["hover"]:R,T=e.autoFocus,L=e.overlay,D=e.children,B=e.onVisibleChange,A=(0,a.Z)(e,x),_=d.useState(),H=(0,i.Z)(_,2),K=H[0],F=H[1],W="visible"in e?P:K,V=d.useRef(null),X=d.useRef(null),G=d.useRef(null);d.useImperativeHandle(t,(function(){return V.current}));var Y=function(e){F(e),null==B||B(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case m:l();break;case g:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};d.useEffect((function(){return t?(window.addEventListener("keydown",s),o&&(0,f.Z)(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:W,triggerRef:G,onVisibleChange:Y,autoFocus:T,overlayRef:X});var q,U,Q,J=function(){return d.createElement(h,{ref:X,overlay:L,prefixCls:b,arrow:p})},ee=d.cloneElement(D,{className:s()(null===(n=D.props)||void 0===n?void 0:n.className,W&&(q=e.openClassName,void 0!==q?q:"".concat(b,"-open"))),ref:(0,u.Yr)(D)?(0,u.sQ)(G,D.ref):void 0}),te=O;return te||-1===z.indexOf("contextMenu")||(te=["click"]),d.createElement(l.Z,(0,r.Z)({builtinPlacements:I},A,{prefixCls:b,ref:V,popupClassName:s()(j,(0,o.Z)({},"".concat(b,"-show-arrow"),p)),popupStyle:M,action:z,showAction:N,hideAction:te,popupPlacement:E,popupAlign:S,popupTransitionName:w,popupAnimation:C,popupVisible:W,stretch:(U=e.minOverlayWidthMatchTrigger,Q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?U:!Q)?"minWidth":""),popup:"function"==typeof L?J:J(),onPopupVisibleChange:Y,onPopupClick:function(t){var n=e.onOverlayClick;F(!1),n&&n(t)},getPopupContainer:Z}),ee)}var C=d.forwardRef(w)},93681:function(e,t,n){n.d(t,{Q:function(){return d},Z:function(){return b}});var r=n(14809),o=n(20439),i=n(4635),a=n(93664),l=n(92310),c=n.n(l),s=n(59301),u=n(5643),d=function(e){var t,n,l=e.inputElement,d=e.prefixCls,p=e.prefix,f=e.suffix,m=e.addonBefore,g=e.addonAfter,h=e.className,v=e.style,b=e.disabled,y=e.readOnly,x=e.focused,w=e.triggerFocus,C=e.allowClear,S=e.value,$=e.handleReset,E=e.hidden,k=e.classes,I=e.classNames,Z=e.dataAttrs,N=e.styles,O=e.components,j=(null==O?void 0:O.affixWrapper)||"span",M=(null==O?void 0:O.groupWrapper)||"span",P=(null==O?void 0:O.wrapper)||"span",R=(null==O?void 0:O.groupAddon)||"span",z=(0,s.useRef)(null),T=(0,s.cloneElement)(l,{value:S,hidden:E,className:c()(null===(t=l.props)||void 0===t?void 0:t.className,!(0,u.X3)(e)&&!(0,u.He)(e)&&h)||null,style:(0,o.Z)((0,o.Z)({},null===(n=l.props)||void 0===n?void 0:n.style),(0,u.X3)(e)||(0,u.He)(e)?{}:v)});if((0,u.X3)(e)){var L,D="".concat(d,"-affix-wrapper"),B=c()(D,(L={},(0,i.Z)(L,"".concat(D,"-disabled"),b),(0,i.Z)(L,"".concat(D,"-focused"),x),(0,i.Z)(L,"".concat(D,"-readonly"),y),(0,i.Z)(L,"".concat(D,"-input-with-clear-btn"),f&&C&&S),L),!(0,u.He)(e)&&h,null==k?void 0:k.affixWrapper,null==I?void 0:I.affixWrapper),A=(f||C)&&s.createElement("span",{className:c()("".concat(d,"-suffix"),null==I?void 0:I.suffix),style:null==N?void 0:N.suffix},function(){var e;if(!C)return null;var t=!b&&!y&&S,n="".concat(d,"-clear-icon"),r="object"===(0,a.Z)(C)&&null!=C&&C.clearIcon?C.clearIcon:"✖";return s.createElement("span",{onClick:$,onMouseDown:function(e){return e.preventDefault()},className:c()(n,(e={},(0,i.Z)(e,"".concat(n,"-hidden"),!t),(0,i.Z)(e,"".concat(n,"-has-suffix"),!!f),e)),role:"button",tabIndex:-1},r)}(),f);T=s.createElement(j,(0,r.Z)({className:B,style:(0,o.Z)((0,o.Z)({},(0,u.He)(e)?void 0:v),null==N?void 0:N.affixWrapper),hidden:!(0,u.He)(e)&&E,onClick:function(e){var t;null!==(t=z.current)&&void 0!==t&&t.contains(e.target)&&(null==w||w())}},null==Z?void 0:Z.affixWrapper,{ref:z}),p&&s.createElement("span",{className:c()("".concat(d,"-prefix"),null==I?void 0:I.prefix),style:null==N?void 0:N.prefix},p),(0,s.cloneElement)(l,{value:S,hidden:null}),A)}if((0,u.He)(e)){var _="".concat(d,"-group"),H="".concat(_,"-addon"),K=c()("".concat(d,"-wrapper"),_,null==k?void 0:k.wrapper),F=c()("".concat(d,"-group-wrapper"),h,null==k?void 0:k.group);return s.createElement(M,{className:F,style:v,hidden:E},s.createElement(P,{className:K},m&&s.createElement(R,{className:H},m),(0,s.cloneElement)(T,{hidden:null}),g&&s.createElement(R,{className:H},g)))}return T},p=n(95190),f=n(50298),m=n(62646),g=n(18929),h=n(2738),v=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],b=(0,s.forwardRef)((function(e,t){var n=e.autoComplete,l=e.onChange,b=e.onFocus,y=e.onBlur,x=e.onPressEnter,w=e.onKeyDown,C=e.prefixCls,S=void 0===C?"rc-input":C,$=e.disabled,E=e.htmlSize,k=e.className,I=e.maxLength,Z=e.suffix,N=e.showCount,O=e.type,j=void 0===O?"text":O,M=e.classes,P=e.classNames,R=e.styles,z=(0,m.Z)(e,v),T=(0,g.Z)(e.defaultValue,{value:e.value}),L=(0,f.Z)(T,2),D=L[0],B=L[1],A=(0,s.useState)(!1),_=(0,f.Z)(A,2),H=_[0],K=_[1],F=(0,s.useRef)(null),W=function(e){F.current&&(0,u.nH)(F.current,e)};(0,s.useImperativeHandle)(t,(function(){return{focus:W,blur:function(){var e;null===(e=F.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=F.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=F.current)||void 0===e||e.select()},input:F.current}})),(0,s.useEffect)((function(){K((function(e){return(!e||!$)&&e}))}),[$]);var V,X=function(t){void 0===e.value&&B(t.target.value),F.current&&(0,u.rJ)(F.current,t,l)},G=function(e){x&&"Enter"===e.key&&x(e),null==w||w(e)},Y=function(e){K(!0),null==b||b(e)},q=function(e){K(!1),null==y||y(e)};return s.createElement(d,(0,r.Z)({},z,{prefixCls:S,className:k,inputElement:(V=(0,h.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),s.createElement("input",(0,r.Z)({autoComplete:n},V,{onChange:X,onFocus:Y,onBlur:q,onKeyDown:G,className:c()(S,(0,i.Z)({},"".concat(S,"-disabled"),$),null==P?void 0:P.input),style:null==R?void 0:R.input,ref:F,size:E,type:j}))),handleReset:function(e){B(""),W(),F.current&&(0,u.rJ)(F.current,e,l)},value:(0,u.D7)(D),focused:H,triggerFocus:W,suffix:function(){var e=Number(I)>0;if(Z||N){var t=(0,u.D7)(D),n=(0,p.Z)(t).length,r="object"===(0,a.Z)(N)?N.formatter({value:t,count:n,maxLength:I}):"".concat(n).concat(e?" / ".concat(I):"");return s.createElement(s.Fragment,null,!!N&&s.createElement("span",{className:c()("".concat(S,"-show-count-suffix"),(0,i.Z)({},"".concat(S,"-show-count-has-suffix"),!!Z),null==P?void 0:P.count),style:(0,o.Z)({},null==R?void 0:R.count)},r),Z)}return null}(),disabled:$,classes:M,classNames:P,styles:R}))}))},5643:function(e,t,n){function r(e){return!(!e.addonBefore&&!e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function i(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function a(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}function l(e){return null==e?"":String(e)}n.d(t,{D7:function(){return l},He:function(){return r},X3:function(){return o},nH:function(){return a},rJ:function(){return i}})},15285:function(e,t,n){n.d(t,{iz:function(){return Fe},ck:function(){return ye},BW:function(){return Ke},sN:function(){return ye},Wd:function(){return De},ZP:function(){return Qe},Xl:function(){return Z}});var r=n(14809),o=n(4635),i=n(20439),a=n(95190),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(11780),p=n(18929),f=n(13697),m=n(48736),g=n(59301),h=n(4676),v=g.createContext(null);function b(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return b(g.useContext(v),e)}var x=n(80547),w=["children","locked"],C=g.createContext(null);function S(e){var t=e.children,n=e.locked,r=(0,c.Z)(e,w),o=g.useContext(C),a=(0,x.Z)((function(){return e=o,t=r,n=(0,i.Z)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&(0,f.Z)(e[1],t[1],!0))}));return g.createElement(C.Provider,{value:a},t)}var $=[],E=g.createContext(null);function k(){return g.useContext(E)}var I=g.createContext($);function Z(e){var t=g.useContext(I);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var N=g.createContext(null),O=g.createContext({}),j=n(29194);function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,j.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return M(e,t)}));return M(e,t)&&n.unshift(e),n}var R=n(10228),z=n(16089),T=R.Z.LEFT,L=R.Z.RIGHT,D=R.Z.UP,B=R.Z.DOWN,A=R.Z.ENTER,_=R.Z.ESC,H=R.Z.HOME,K=R.Z.END,F=[D,B,T,L];function W(e,t){return P(e,!0).filter((function(e){return t.has(e)}))}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=W(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var X=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(b(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function G(e,t,n,r,i,a,l,c,s,u){var d=g.useRef(),p=g.useRef();p.current=t;var f=function(){z.Z.cancel(d.current)};return g.useEffect((function(){return function(){f()}}),[]),function(m){var g=m.which;if([].concat(F,[A,_,H,K]).includes(g)){var h=a(),v=X(h,r),b=v,y=b.elements,x=b.key2element,w=b.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(x.get(t),y),S=w.get(C),$=function(e,t,n,r){var i,a,l,c,s="prev",u="next",d="children",p="parent";if("inline"===e&&r===A)return{inlineTrigger:!0};var f=(i={},(0,o.Z)(i,D,s),(0,o.Z)(i,B,u),i),m=(a={},(0,o.Z)(a,T,n?u:s),(0,o.Z)(a,L,n?s:u),(0,o.Z)(a,B,d),(0,o.Z)(a,A,d),a),g=(l={},(0,o.Z)(l,D,s),(0,o.Z)(l,B,u),(0,o.Z)(l,A,d),(0,o.Z)(l,_,p),(0,o.Z)(l,T,n?d:p),(0,o.Z)(l,L,n?p:d),l);switch(null===(c={inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,g);if(!$&&g!==H&&g!==K)return;(F.includes(g)||[H,K].includes(g))&&m.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),f(),d.current=(0,z.Z)((function(){p.current===r&&t.focus()}))}};if([H,K].includes(g)||$.sibling||!C){var k,I,Z=W(k=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,y);I=g===H?Z[0]:g===K?Z[Z.length-1]:V(k,y,C,$.offset),E(I)}else if($.inlineTrigger)s(S);else if($.offset>0)s(S,!0),f(),d.current=(0,z.Z)((function(){v=X(h,r);var e=C.getAttribute("aria-controls"),t=V(document.getElementById(e),v.elements);E(t)}),5);else if($.offset<0){var N=l(S,!0),O=N[N.length-2],j=x.get(O);s(O,!1),E(j)}}null==u||u(m)}}var Y="__RC_UTIL_PATH_SPLIT__",q=function(e){return e.join(Y)},U="rc-menu-more";function Q(){var e=g.useState({}),t=(0,l.Z)(e,2)[1],n=(0,g.useRef)(new Map),r=(0,g.useRef)(new Map),o=g.useState([]),i=(0,l.Z)(o,2),c=i[0],s=i[1],u=(0,g.useRef)(0),d=(0,g.useRef)(!1),p=(0,g.useCallback)((function(e,o){var i=q(o);r.current.set(i,e),n.current.set(e,i),u.current+=1;var a,l=u.current;a=function(){l===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,g.useCallback)((function(e,t){var o=q(t);r.current.delete(o),n.current.delete(e)}),[]),m=(0,g.useCallback)((function(e){s(e)}),[]),h=(0,g.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Y);return t&&c.includes(o[0])&&o.unshift(U),o}),[c]),v=(0,g.useCallback)((function(e,t){return e.some((function(e){return h(e,!0).includes(t)}))}),[h]),b=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Y),o=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return g.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:f,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return c.length&&e.push(U),e},getSubPathKeys:b}}function J(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&($.motionAppear=!1);var E=$.onVisibleChanged;return $.onVisibleChanged=function(e){return h.current||e||x(!0),null==E?void 0:E(e)},y?null:g.createElement(S,{mode:c,locked:!h.current},g.createElement(Pe.ZP,(0,r.Z)({visible:w},$,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,r=e.style;return g.createElement(Se,{id:t,className:n,style:r},a)})))}var ze=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Te=["active"],Le=function(e){var t,n=e.style,a=e.className,s=e.title,p=e.eventKey,f=(e.warnKey,e.disabled),m=e.internalPopupClose,h=e.children,v=e.itemIcon,b=e.expandIcon,x=e.popupClassName,w=e.popupOffset,$=e.popupStyle,E=e.onClick,k=e.onMouseEnter,I=e.onMouseLeave,j=e.onTitleClick,M=e.onTitleMouseEnter,P=e.onTitleMouseLeave,R=(0,c.Z)(e,ze),z=y(p),T=g.useContext(C),L=T.prefixCls,D=T.mode,B=T.openKeys,A=T.disabled,_=T.overflowDisabled,H=T.activeKey,K=T.selectedKeys,F=T.itemIcon,W=T.expandIcon,V=T.onItemClick,X=T.onOpenChange,G=T.onActive,Y=g.useContext(O)._internalRenderSubMenuItem,q=g.useContext(N).isSubPathKey,U=Z(),Q="".concat(L,"-submenu"),ee=A||f,te=g.useRef(),ne=g.useRef();var re=null!=v?v:F,oe=null!=b?b:W,ie=B.includes(p),ae=!_&&ie,le=q(K,p),de=ce(p,ee,M,P),fe=de.active,me=(0,c.Z)(de,Te),ge=g.useState(!1),he=(0,l.Z)(ge,2),ve=he[0],be=he[1],ye=function(e){ee||be(e)},xe=g.useMemo((function(){return fe||"inline"!==D&&(ve||q([H],p))}),[D,fe,H,ve,p,q]),we=se(U.length),Ce=J((function(e){null==E||E(pe(e)),V(e)})),$e=z&&"".concat(z,"-popup"),Ee=g.createElement("div",(0,r.Z)({role:"menuitem",style:we,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof s?s:null,"data-menu-id":_&&z?null:z,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":ee,onClick:function(e){ee||(null==j||j({key:p,domEvent:e}),"inline"===D&&X(p,!ie))},onFocus:function(){G(p)}},me),s,g.createElement(ue,{icon:"horizontal"!==D?oe:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(Q,"-arrow")}))),ke=g.useRef(D);if("inline"!==D&&U.length>1?ke.current="vertical":ke.current=D,!_){var Ie=ke.current;Ee=g.createElement(Me,{mode:Ie,prefixCls:Q,visible:!m&&ae&&"inline"!==D,popupClassName:x,popupOffset:w,popupStyle:$,popup:g.createElement(S,{mode:"horizontal"===Ie?"vertical":Ie},g.createElement(Se,{id:$e,ref:ne},h)),disabled:ee,onVisibleChange:function(e){"inline"!==D&&X(p,e)}},Ee)}var Ze=g.createElement(d.Z.Item,(0,r.Z)({role:"none"},R,{component:"li",style:n,className:u()(Q,"".concat(Q,"-").concat(D),a,(t={},(0,o.Z)(t,"".concat(Q,"-open"),ae),(0,o.Z)(t,"".concat(Q,"-active"),xe),(0,o.Z)(t,"".concat(Q,"-selected"),le),(0,o.Z)(t,"".concat(Q,"-disabled"),ee),t)),onMouseEnter:function(e){ye(!0),null==k||k({key:p,domEvent:e})},onMouseLeave:function(e){ye(!1),null==I||I({key:p,domEvent:e})}}),Ee,!_&&g.createElement(Re,{id:$e,open:ae,keyPath:U},h));return Y&&(Ze=Y(Ze,e,{selected:le,active:xe,open:ae,disabled:ee})),g.createElement(S,{onItemClick:Ce,mode:"horizontal"===D?"vertical":D,itemIcon:re,expandIcon:oe},Ze)};function De(e){var t,n=e.eventKey,r=e.children,o=Z(n),i=Ee(r,o),a=k();return g.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:g.createElement(Le,e,i),g.createElement(I.Provider,{value:o},t)}var Be=n(93664),Ae=["className","title","eventKey","children"],_e=["children"],He=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,c.Z)(e,Ae),a=g.useContext(C).prefixCls,l="".concat(a,"-item-group");return g.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:u()(l,t)}),g.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),g.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function Ke(e){var t=e.children,n=(0,c.Z)(e,_e),r=Ee(t,Z(n.eventKey));return k()?r:g.createElement(He,(0,ae.Z)(n,["warnKey"]),r)}function Fe(e){var t=e.className,n=e.style,r=g.useContext(C).prefixCls;return k()?null:g.createElement("li",{role:"separator",className:u()("".concat(r,"-item-divider"),t),style:n})}var We=["label","children","key","type"];function Ve(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,Be.Z)(e)){var n=e,o=n.label,i=n.children,a=n.key,l=n.type,s=(0,c.Z)(n,We),u=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?g.createElement(Ke,(0,r.Z)({key:u},s,{title:o}),Ve(i)):g.createElement(De,(0,r.Z)({key:u},s,{title:o}),Ve(i)):"divider"===l?g.createElement(Fe,(0,r.Z)({key:u},s)):g.createElement(ye,(0,r.Z)({key:u},s),o)}return null})).filter((function(e){return e}))}function Xe(e,t,n){var r=e;return t&&(r=Ve(t)),Ee(r,n)}var Ge=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ye=[],qe=g.forwardRef((function(e,t){var n,s,m=e,b=m.prefixCls,y=void 0===b?"rc-menu":b,x=m.rootClassName,w=m.style,C=m.className,$=m.tabIndex,k=void 0===$?0:$,I=m.items,Z=m.children,j=m.direction,M=m.id,P=m.mode,R=void 0===P?"vertical":P,z=m.inlineCollapsed,T=m.disabled,L=m.disabledOverflow,D=m.subMenuOpenDelay,B=void 0===D?.1:D,A=m.subMenuCloseDelay,_=void 0===A?.1:A,H=m.forceSubMenuRender,K=m.defaultOpenKeys,F=m.openKeys,V=m.activeKey,Y=m.defaultActiveFirst,q=m.selectable,ne=void 0===q||q,re=m.multiple,oe=void 0!==re&&re,ie=m.defaultSelectedKeys,ae=m.selectedKeys,le=m.onSelect,ce=m.onDeselect,se=m.inlineIndent,ue=void 0===se?24:se,de=m.motion,fe=m.defaultMotions,me=m.triggerSubMenuAction,ge=void 0===me?"hover":me,he=m.builtinPlacements,ve=m.itemIcon,be=m.expandIcon,xe=m.overflowedIndicator,we=void 0===xe?"...":xe,Ce=m.overflowedIndicatorPopupClassName,Se=m.getPopupContainer,$e=m.onClick,Ee=m.onOpenChange,ke=m.onKeyDown,Ie=(m.openAnimation,m.openTransitionName,m._internalRenderMenuItem),Ze=m._internalRenderSubMenuItem,Ne=(0,c.Z)(m,Ge),Oe=g.useMemo((function(){return Xe(Z,I,Ye)}),[Z,I]),je=g.useState(!1),Me=(0,l.Z)(je,2),Pe=Me[0],Re=Me[1],ze=g.useRef(),Te=function(e){var t=(0,p.Z)(e,{value:e}),n=(0,l.Z)(t,2),r=n[0],o=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);o("rc-menu-uuid-".concat(e))}),[]),r}(M),Le="rtl"===j;var Be=(0,p.Z)(K,{value:F,postState:function(e){return e||Ye}}),Ae=(0,l.Z)(Be,2),_e=Ae[0],He=Ae[1],Ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){He(e),null==Ee||Ee(e)}t?(0,h.flushSync)(n):n()},Fe=g.useState(_e),We=(0,l.Z)(Fe,2),Ve=We[0],qe=We[1],Ue=g.useRef(!1),Qe=g.useMemo((function(){return"inline"!==R&&"vertical"!==R||!z?[R,!1]:["vertical",z]}),[R,z]),Je=(0,l.Z)(Qe,2),et=Je[0],tt=Je[1],nt="inline"===et,rt=g.useState(et),ot=(0,l.Z)(rt,2),it=ot[0],at=ot[1],lt=g.useState(tt),ct=(0,l.Z)(lt,2),st=ct[0],ut=ct[1];g.useEffect((function(){at(et),ut(tt),Ue.current&&(nt?He(Ve):Ke(Ye))}),[et,tt]);var dt=g.useState(0),pt=(0,l.Z)(dt,2),ft=pt[0],mt=pt[1],gt=ft>=Oe.length-1||"horizontal"!==it||L;g.useEffect((function(){nt&&qe(_e)}),[_e]),g.useEffect((function(){return Ue.current=!0,function(){Ue.current=!1}}),[]);var ht=Q(),vt=ht.registerPath,bt=ht.unregisterPath,yt=ht.refreshOverflowKeys,xt=ht.isSubPathKey,wt=ht.getKeyPath,Ct=ht.getKeys,St=ht.getSubPathKeys,$t=g.useMemo((function(){return{registerPath:vt,unregisterPath:bt}}),[vt,bt]),Et=g.useMemo((function(){return{isSubPathKey:xt}}),[xt]);g.useEffect((function(){yt(gt?Ye:Oe.slice(ft+1).map((function(e){return e.key})))}),[ft,gt]);var kt=(0,p.Z)(V||Y&&(null===(n=Oe[0])||void 0===n?void 0:n.key),{value:V}),It=(0,l.Z)(kt,2),Zt=It[0],Nt=It[1],Ot=J((function(e){Nt(e)})),jt=J((function(){Nt(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:ze.current,focus:function(e){var t,n,r=Ct(),o=X(r,Te),i=o.elements,a=o.key2element,l=o.element2key,c=W(ze.current,i),s=null!=Zt?Zt:c[0]?l.get(c[0]):null===(t=Oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Mt=(0,p.Z)(ie||[],{value:ae,postState:function(e){return Array.isArray(e)?e:null==e?Ye:[e]}}),Pt=(0,l.Z)(Mt,2),Rt=Pt[0],zt=Pt[1],Tt=J((function(e){null==$e||$e(pe(e)),function(e){if(ne){var t,n=e.key,r=Rt.includes(n);t=oe?r?Rt.filter((function(e){return e!==n})):[].concat((0,a.Z)(Rt),[n]):[n],zt(t);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==ce||ce(o):null==le||le(o)}!oe&&_e.length&&"inline"!==it&&Ke(Ye)}(e)})),Lt=J((function(e,t){var n=_e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==it){var r=St(e);n=n.filter((function(e){return!r.has(e)}))}(0,f.Z)(_e,n,!0)||Ke(n,!0)})),Dt=G(it,Zt,Le,Te,ze,Ct,wt,Nt,(function(e,t){var n=null!=t?t:!_e.includes(e);Lt(e,n)}),ke);g.useEffect((function(){Re(!0)}),[]);var Bt=g.useMemo((function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:Ze}}),[Ie,Ze]),At="horizontal"!==it||L?Oe:Oe.map((function(e,t){return g.createElement(S,{key:e.key,overflowDisabled:t>ft},e)})),_t=g.createElement(d.Z,(0,r.Z)({id:M,ref:ze,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:ye,className:u()(y,"".concat(y,"-root"),"".concat(y,"-").concat(it),C,(s={},(0,o.Z)(s,"".concat(y,"-inline-collapsed"),st),(0,o.Z)(s,"".concat(y,"-rtl"),Le),s),x),dir:j,style:w,role:"menu",tabIndex:k,data:At,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Oe.slice(-t):null;return g.createElement(De,{eventKey:U,title:we,disabled:gt,internalPopupClose:0===t,popupClassName:Ce},n)},maxCount:"horizontal"!==it||L?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){mt(e)},onKeyDown:Dt},Ne));return g.createElement(O.Provider,{value:Bt},g.createElement(v.Provider,{value:Te},g.createElement(S,{prefixCls:y,rootClassName:x,mode:it,openKeys:_e,rtl:Le,disabled:T,motion:Pe?de:null,defaultMotions:Pe?fe:null,activeKey:Zt,onActive:Ot,onInactive:jt,selectedKeys:Rt,inlineIndent:ue,subMenuOpenDelay:B,subMenuCloseDelay:_,forceSubMenuRender:H,builtinPlacements:he,triggerSubMenuAction:ge,getPopupContainer:Se,itemIcon:ve,expandIcon:be,onItemClick:Tt,onOpenChange:Lt},g.createElement(N.Provider,{value:Et},_t),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(E.Provider,{value:$t},Oe)))))})),Ue=qe;Ue.Item=ye,Ue.SubMenu=De,Ue.ItemGroup=Ke,Ue.Divider=Fe;var Qe=Ue},11780:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(14809),o=n(20439),i=n(50298),a=n(62646),l=n(59301),c=n(92310),s=n.n(c),u=n(29301),d=n(34280),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function m(e,t){var n=e.prefixCls,i=e.invalidate,c=e.item,d=e.renderItem,m=e.responsive,g=e.responsiveDisabled,h=e.registerSize,v=e.itemKey,b=e.className,y=e.style,x=e.children,w=e.display,C=e.order,S=e.component,$=void 0===S?"div":S,E=(0,a.Z)(e,p),k=m&&!w;function I(e){h(v,e)}l.useEffect((function(){return function(){I(null)}}),[]);var Z,N=d&&c!==f?d(c,{index:C}):x;i||(Z={opacity:k?0:1,height:k?0:f,overflowY:k?"hidden":f,order:m?C:f,pointerEvents:k?"none":f,position:k?"absolute":f});var O={};k&&(O["aria-hidden"]=!0);var j=l.createElement($,(0,r.Z)({className:s()(!i&&n,b),style:(0,o.Z)((0,o.Z)({},Z),y)},O,E,{ref:t}),N);return m&&(j=l.createElement(u.Z,{onResize:function(e){I(e.offsetWidth)},disabled:g},j)),j}var g=l.forwardRef(m);g.displayName="Item";var h=g,v=n(6089),b=n(4676),y=n(16089);function x(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function w(e,t){var n=l.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var C=l.createContext(null),S=["component"],$=["className"],E=["className"],k=function(e,t){var n=l.useContext(C);if(!n){var o=e.component,i=void 0===o?"div":o,c=(0,a.Z)(e,S);return l.createElement(i,(0,r.Z)({},c,{ref:t}))}var u=n.className,d=(0,a.Z)(n,$),p=e.className,f=(0,a.Z)(e,E);return l.createElement(C.Provider,{value:null},l.createElement(h,(0,r.Z)({ref:t,className:s()(u,p)},d,f)))},I=l.forwardRef(k);I.displayName="RawItem";var Z=I,N=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],O="responsive",j="invalidate";function M(e){return"+ ".concat(e.length," ...")}function P(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,p=e.data,f=void 0===p?[]:p,m=e.renderItem,g=e.renderRawItem,v=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,S=e.ssr,$=e.style,E=e.className,k=e.maxCount,I=e.renderRest,Z=e.renderRawRest,P=e.suffix,R=e.component,z=void 0===R?"div":R,T=e.itemComponent,L=e.onVisibleChange,D=(0,a.Z)(e,N),B="full"===S,A=x(),_=w(A,null),H=(0,i.Z)(_,2),K=H[0],F=H[1],W=K||0,V=w(A,new Map),X=(0,i.Z)(V,2),G=X[0],Y=X[1],q=w(A,0),U=(0,i.Z)(q,2),Q=U[0],J=U[1],ee=w(A,0),te=(0,i.Z)(ee,2),ne=te[0],re=te[1],oe=w(A,0),ie=(0,i.Z)(oe,2),ae=ie[0],le=ie[1],ce=(0,l.useState)(null),se=(0,i.Z)(ce,2),ue=se[0],de=se[1],pe=(0,l.useState)(null),fe=(0,i.Z)(pe,2),me=fe[0],ge=fe[1],he=l.useMemo((function(){return null===me&&B?Number.MAX_SAFE_INTEGER:me||0}),[me,K]),ve=(0,l.useState)(!1),be=(0,i.Z)(ve,2),ye=be[0],xe=be[1],we="".concat(c,"-item"),Ce=Math.max(Q,ne),Se=k===O,$e=f.length&&Se,Ee=k===j,ke=$e||"number"==typeof k&&f.length>k,Ie=(0,l.useMemo)((function(){var e=f;return $e?e=null===K&&B?f:f.slice(0,Math.min(f.length,W/y)):"number"==typeof k&&(e=f.slice(0,k)),e}),[f,y,K,k,$e]),Ze=(0,l.useMemo)((function(){return $e?f.slice(he+1):f.slice(Ie.length)}),[f,Ie,$e,he]),Ne=(0,l.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Oe=(0,l.useCallback)(m||function(e){return e},[m]);function je(e,t,n){(me!==e||void 0!==t&&t!==ue)&&(ge(e),n||(xe(eW){je(r-1,e-o-ae+ne);break}}P&&Pe(0)+ae>W&&de(null)}}),[W,G,ne,ae,Ne,Ie]);var Re=ye&&!!Ze.length,ze={};null!==ue&&$e&&(ze={position:"absolute",left:ue,top:0});var Te={prefixCls:we,responsive:$e,component:T,invalidate:Ee},Le=g?function(e,t){var n=Ne(e,t);return l.createElement(C.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},Te),{},{order:t,item:e,itemKey:n,registerSize:Me,display:t<=he})},g(e,t))}:function(e,t){var n=Ne(e,t);return l.createElement(h,(0,r.Z)({},Te,{order:t,key:n,item:e,renderItem:Oe,itemKey:n,registerSize:Me,display:t<=he}))},De={order:Re?he:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:function(e,t){re(t),J(ne)},display:Re},Be=I||M,Ae=Z?l.createElement(C.Provider,{value:(0,o.Z)((0,o.Z)({},Te),De)},Z(Ze)):l.createElement(h,(0,r.Z)({},Te,De),"function"==typeof Be?Be(Ze):Be),_e=l.createElement(z,(0,r.Z)({className:s()(!Ee&&c,E),style:$,ref:t},D),Ie.map(Le),ke?Ae:null,P&&l.createElement(h,(0,r.Z)({},Te,{responsive:Se,responsiveDisabled:!$e,order:he,className:"".concat(we,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:ze}),P));return Se?l.createElement(u.Z,{onResize:function(e,t){F(t.clientWidth)},disabled:!$e},_e):_e}var R=l.forwardRef(P);R.displayName="Overflow",R.Item=Z,R.RESPONSIVE=O,R.INVALIDATE=j;var z=R},29301:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(14809),o=n(59301),i=n(11592),a=(n(48736),n(20439)),l=n(93664),c=n(76846),s=n(8654),u=o.createContext(null);var d=n(76374),p=new Map;var f=new d.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=p.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var m=n(99153),g=n(84851),h=n(19257),v=n(54941),b=function(e){(0,h.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,m.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function y(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),d=o.useRef(null),m=o.useContext(u),g="function"==typeof n,h=g?n(i):n,v=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!g&&o.isValidElement(h)&&(0,s.Yr)(h),x=y?(0,s.C4)(h):null,w=(0,s.x1)(x,i),C=function(){var e;return(0,c.ZP)(i.current)||(i.current&&"object"===(0,l.Z)(i.current)?(0,c.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,c.ZP)(d.current)};o.useImperativeHandle(t,(function(){return C()}));var S=o.useRef(e);S.current=e;var $=o.useCallback((function(e){var t=S.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,c=e.offsetWidth,s=e.offsetHeight,u=Math.floor(i),d=Math.floor(l);if(v.current.width!==u||v.current.height!==d||v.current.offsetWidth!==c||v.current.offsetHeight!==s){var p={width:u,height:d,offsetWidth:c,offsetHeight:s};v.current=p;var f=c===Math.round(i)?i:c,g=s===Math.round(l)?l:s,h=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:f,offsetHeight:g});null==m||m(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return o.useEffect((function(){var e,t,n=C();return n&&!r&&(e=n,t=$,p.has(e)||(p.set(e,new Set),f.observe(e)),p.get(e).add(t)),function(){return function(e,t){p.has(e)&&(p.get(e).delete(t),p.get(e).size||(f.unobserve(e),p.delete(e)))}(n,$)}}),[i.current,r]),o.createElement(b,{ref:d},y?o.cloneElement(h,{ref:w}):h)}var x=o.forwardRef(y);function w(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(x,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var C=o.forwardRef(w);C.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(u),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(u.Provider,{value:l},t)};var S=C},17115:function(e,t,n){n.d(t,{ZP:function(){return c}});var r=n(50298),o=n(59301),i=n(47273),a=0,l=(0,i.Z)();function c(e){var t=o.useState(),n=(0,r.Z)(t,2),i=n[0],c=n[1];return o.useEffect((function(){var e;c("rc_select_".concat((l?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},77861:function(e,t,n){n.d(t,{Ac:function(){return Q},Xo:function(){return se},Wx:function(){return de},ZP:function(){return Ee},lk:function(){return w}});var r=n(14809),o=n(95190),i=n(4635),a=n(20439),l=n(50298),c=n(62646),s=n(93664),u=n(18929),d=n(48736),p=n(59301),f=n(92310),m=n.n(f),g=n(34280),h=n(49658),v=n(10228),b=n(8654),y=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,l=e.children;return t="function"==typeof r?r(o):r,p.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:p.createElement("span",{className:m()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))};var x=p.createContext(null);function w(){return p.useContext(x)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return p.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var S=n(26112),$=n(11780),E=function(e,t){var n,r,o=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,f=e.autoComplete,g=e.editable,h=e.activeDescendantId,v=e.value,y=e.maxLength,x=e.onKeyDown,w=e.onMouseDown,C=e.onChange,S=e.onPaste,$=e.onCompositionStart,E=e.onCompositionEnd,k=e.open,I=e.attrs,Z=l||p.createElement("input",null),N=Z,O=N.ref,j=N.props,M=j.onKeyDown,P=j.onChange,R=j.onMouseDown,z=j.onCompositionStart,T=j.onCompositionEnd,L=j.style;return(0,d.Kp)(!("maxLength"in Z.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Z=p.cloneElement(Z,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},j),{},{id:i,ref:(0,b.sQ)(t,O),disabled:c,tabIndex:s,autoComplete:f||"off",autoFocus:u,className:m()("".concat(o,"-selection-search-input"),null===(n=Z)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-label":"Search","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":k?h:void 0},I),{},{value:g?v:"",maxLength:y,readOnly:!g,unselectable:g?null:"on",style:(0,a.Z)((0,a.Z)({},L),{},{opacity:g?null:0}),onKeyDown:function(e){x(e),M&&M(e)},onMouseDown:function(e){w(e),R&&R(e)},onChange:function(e){C(e),P&&P(e)},onCompositionStart:function(e){$(e),z&&z(e)},onCompositionEnd:function(e){E(e),T&&T(e)},onPaste:S}))},k=p.forwardRef(E);k.displayName="Input";var I=k;function Z(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var N="undefined"!=typeof window&&window.document&&window.document.documentElement;function O(e){return["string","number"].includes((0,s.Z)(e))}function j(e){var t=void 0;return e&&(O(e.title)?t=e.title.toString():O(e.label)&&(t=e.label.toString())),t}function M(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()},R=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,g=e.disabled,h=e.mode,v=e.showSearch,b=e.autoFocus,x=e.autoComplete,w=e.activeDescendantId,C=e.tabIndex,E=e.removeIcon,k=e.maxTagCount,Z=e.maxTagTextLength,O=e.maxTagPlaceholder,R=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,z=e.tagRender,T=e.onToggleOpen,L=e.onRemove,D=e.onInputChange,B=e.onInputPaste,A=e.onInputKeyDown,_=e.onInputMouseDown,H=e.onInputCompositionStart,K=e.onInputCompositionEnd,F=p.useRef(null),W=(0,p.useState)(0),V=(0,l.Z)(W,2),X=V[0],G=V[1],Y=(0,p.useState)(!1),q=(0,l.Z)(Y,2),U=q[0],Q=q[1],J="".concat(o,"-selection"),ee=c||"multiple"===h&&!1===u||"tags"===h?s:"",te="tags"===h||"multiple"===h&&!1===u||v&&(c||U);function ne(e,t,n,r,o){return p.createElement("span",{className:m()("".concat(J,"-item"),(0,i.Z)({},"".concat(J,"-item-disabled"),n)),title:j(e)},p.createElement("span",{className:"".concat(J,"-item-content")},t),r&&p.createElement(y,{className:"".concat(J,"-item-remove"),onMouseDown:P,onClick:o,customizeIcon:E},"×"))}t=function(){G(F.current.scrollWidth)},n=[ee],N?p.useLayoutEffect(t,n):p.useEffect(t,n);var re=p.createElement("div",{className:"".concat(J,"-search"),style:{width:X},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},p.createElement(I,{ref:d,open:c,prefixCls:o,id:r,inputElement:null,disabled:g,autoFocus:b,autoComplete:x,editable:te,activeDescendantId:w,value:ee,onKeyDown:A,onMouseDown:_,onChange:D,onPaste:B,onCompositionStart:H,onCompositionEnd:K,tabIndex:C,attrs:(0,S.Z)(e,!0)}),p.createElement("span",{ref:F,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee," ")),oe=p.createElement($.Z,{prefixCls:"".concat(J,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!g&&!t,i=n;if("number"==typeof Z&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>Z&&(i="".concat(a.slice(0,Z),"..."))}var l=function(t){t&&t.stopPropagation(),L(e)};return"function"==typeof z?function(e,t,n,r,o){return p.createElement("span",{onMouseDown:function(e){P(e),T(!c)}},z({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,l):ne(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof R?R(e):R;return ne({title:t},t,!1)},suffix:re,itemKey:M,maxCount:k});return p.createElement(p.Fragment,null,oe,!a.length&&!ee&&p.createElement("span",{className:"".concat(J,"-placeholder")},f))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,v=e.searchValue,b=e.activeValue,y=e.maxLength,x=e.onInputKeyDown,w=e.onInputMouseDown,C=e.onInputChange,$=e.onInputPaste,E=e.onInputCompositionStart,k=e.onInputCompositionEnd,Z=e.title,N=p.useState(!1),O=(0,l.Z)(N,2),M=O[0],P=O[1],R="combobox"===u,z=R||h,T=f[0],L=v||"";R&&b&&!M&&(L=b),p.useEffect((function(){R&&P(!1)}),[R,b]);var D=!("combobox"!==u&&!d&&!h)&&!!L,B=void 0===Z?j(T):Z;return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(I,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:c,editable:z,activeDescendantId:s,value:L,onKeyDown:x,onMouseDown:w,onChange:function(e){P(!0),C(e)},onPaste:$,onCompositionStart:E,onCompositionEnd:k,tabIndex:g,attrs:(0,S.Z)(e,!0),maxLength:R?y:void 0})),!R&&T?p.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:D?{visibility:"hidden"}:void 0},T.label):null,function(){if(T)return null;var e=D?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},m)}())};var T=function(e,t){var n=(0,p.useRef)(null),o=(0,p.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,f=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;p.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var y=C(0),x=(0,l.Z)(y,2),w=x[0],S=x[1],$=(0,p.useRef)(null),E=function(e){!1!==f(e,!0,o.current)&&g(!0)},k={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==v.Z.UP&&n!==v.Z.DOWN||e.preventDefault(),h&&h(e),n!==v.Z.ENTER||"tags"!==c||o.current||a||null==m||m(e.target.value),t=n,[v.Z.ESC,v.Z.SHIFT,v.Z.BACKSPACE,v.Z.TAB,v.Z.WIN_KEY,v.Z.ALT,v.Z.META,v.Z.WIN_KEY_RIGHT,v.Z.CTRL,v.Z.SEMICOLON,v.Z.EQUALS,v.Z.CAPS_LOCK,v.Z.CONTEXT_MENU,v.Z.F1,v.Z.F2,v.Z.F3,v.Z.F4,v.Z.F5,v.Z.F6,v.Z.F7,v.Z.F8,v.Z.F9,v.Z.F10,v.Z.F11,v.Z.F12].includes(t)||g(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var n=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,$.current)}$.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");$.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==c&&E(e.target.value)}},I="multiple"===c||"tags"===c?p.createElement(R,(0,r.Z)({},e,k)):p.createElement(z,(0,r.Z)({},e,k));return p.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===c||e.preventDefault(),("combobox"===c||s&&t)&&a||(a&&!1!==d&&f("",!0,!1),g())}},I)},L=p.forwardRef(T);L.displayName="Selector";var D=L,B=n(35593),A=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,s=e.popupElement,u=e.animation,d=e.transitionName,f=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,v=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,x=e.dropdownMatchSelectWidth,w=e.dropdownRender,C=e.dropdownAlign,S=e.getPopupContainer,$=e.empty,E=e.getTriggerDOMNode,k=e.onPopupVisibleChange,I=e.onPopupMouseEnter,Z=(0,c.Z)(e,A),N="".concat(n,"-dropdown"),O=s;w&&(O=w(s));var j=p.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(x)}),[y,x]),M=u?"".concat(N,"-").concat(u):d,P="number"==typeof x,R=p.useMemo((function(){return P?null:!1===x?"minWidth":"width"}),[x,P]),z=f;P&&(z=(0,a.Z)((0,a.Z)({},z),{},{width:x}));var T=p.useRef(null);return p.useImperativeHandle(t,(function(){return{getPopupElement:function(){return T.current}}})),p.createElement(B.Z,(0,r.Z)({},Z,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:N,popupTransitionName:M,popup:p.createElement("div",{ref:T,onMouseEnter:I},O),stretch:R,popupAlign:C,popupVisible:o,getPopupContainer:S,popupClassName:m()(g,(0,i.Z)({},"".concat(N,"-empty"),$)),popupStyle:z,getTriggerDOMNode:E,onPopupVisibleChange:k}),l)},H=p.forwardRef(_);H.displayName="SelectTrigger";var K=H,F=n(21696);function W(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function V(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function X(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,d.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var G=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function q(e){return"tags"===e||"multiple"===e}var U=p.forwardRef((function(e,t){var n,d,f=e.id,w=e.prefixCls,S=e.className,$=e.showSearch,E=e.tagRender,k=e.direction,I=e.omitDomProps,Z=e.displayValues,N=e.onDisplayValuesChange,O=e.emptyOptions,j=e.notFoundContent,M=void 0===j?"Not Found":j,P=e.onClear,R=e.mode,z=e.disabled,T=e.loading,L=e.getInputElement,B=e.getRawInputElement,A=e.open,_=e.defaultOpen,H=e.onDropdownVisibleChange,W=e.activeValue,V=e.onActiveValueChange,X=e.activeDescendantId,U=e.searchValue,Q=e.autoClearSearchValue,J=e.onSearch,ee=e.onSearchSplit,te=e.tokenSeparators,ne=e.allowClear,re=e.suffixIcon,oe=e.clearIcon,ie=e.OptionList,ae=e.animation,le=e.transitionName,ce=e.dropdownStyle,se=e.dropdownClassName,ue=e.dropdownMatchSelectWidth,de=e.dropdownRender,pe=e.dropdownAlign,fe=e.placement,me=e.builtinPlacements,ge=e.getPopupContainer,he=e.showAction,ve=void 0===he?[]:he,be=e.onFocus,ye=e.onBlur,xe=e.onKeyUp,we=e.onKeyDown,Ce=e.onMouseDown,Se=(0,c.Z)(e,G),$e=q(R),Ee=(void 0!==$?$:$e)||"combobox"===R,ke=(0,a.Z)({},Se);Y.forEach((function(e){delete ke[e]})),null==I||I.forEach((function(e){delete ke[e]}));var Ie=p.useState(!1),Ze=(0,l.Z)(Ie,2),Ne=Ze[0],Oe=Ze[1];p.useEffect((function(){Oe((0,h.Z)())}),[]);var je=p.useRef(null),Me=p.useRef(null),Pe=p.useRef(null),Re=p.useRef(null),ze=p.useRef(null),Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=p.useState(!1),n=(0,l.Z)(t,2),r=n[0],o=n[1],i=p.useRef(null),a=function(){window.clearTimeout(i.current)};return p.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),Le=(0,l.Z)(Te,3),De=Le[0],Be=Le[1],Ae=Le[2];p.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(t=Re.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ze.current)||void 0===t?void 0:t.scrollTo(e)}}}));var _e=p.useMemo((function(){var e;if("combobox"!==R)return U;var t=null===(e=Z[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[U,R,Z]),He="combobox"===R&&"function"==typeof L&&L()||null,Ke="function"==typeof B&&B(),Fe=(0,b.x1)(Me,null==Ke||null===(n=Ke.props)||void 0===n?void 0:n.ref),We=p.useState(!1),Ve=(0,l.Z)(We,2),Xe=Ve[0],Ge=Ve[1];(0,g.Z)((function(){Ge(!0)}),[]);var Ye=(0,u.Z)(!1,{defaultValue:_,value:A}),qe=(0,l.Z)(Ye,2),Ue=qe[0],Qe=qe[1],Je=!!Xe&&Ue,et=!M&&O;(z||et&&Je&&"combobox"===R)&&(Je=!1);var tt=!et&&Je,nt=p.useCallback((function(e){var t=void 0!==e?e:!Je;z||(Qe(t),Je!==t&&(null==H||H(t)))}),[z,Je,Qe,H]),rt=p.useMemo((function(){return(te||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[te]),ot=function(e,t,n){var r=!0,i=e;null==V||V(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var i=(0,F.Z)(r),a=i[0],l=i.slice(1);if(!a)return[t];var c=t.split(a);return n=n||c.length>1,c.reduce((function(t,n){return[].concat((0,o.Z)(t),(0,o.Z)(e(n,l)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,te);return"combobox"!==R&&a&&(i="",null==ee||ee(a),nt(!1),r=!1),J&&_e!==i&&J(i,{source:t?"typing":"effect"}),r};p.useEffect((function(){Je||$e||"combobox"===R||ot("",!1,!1)}),[Je]),p.useEffect((function(){Ue&&z&&Qe(!1),z&&Be(!1)}),[z]);var it=C(),at=(0,l.Z)(it,2),lt=at[0],ct=at[1],st=p.useRef(!1),ut=[];p.useEffect((function(){return function(){ut.forEach((function(e){return clearTimeout(e)})),ut.splice(0,ut.length)}}),[]);var dt,pt=p.useState({}),ft=(0,l.Z)(pt,2)[1];Ke&&(dt=function(e){nt(e)}),function(e,t,n,r){var o=p.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},p.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[je.current,null===(e=Pe.current)||void 0===e?void 0:e.getPopupElement()]}),tt,nt,!!Ke);var mt,gt=p.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:M,open:Je,triggerOpen:tt,id:f,showSearch:Ee,multiple:$e,toggleOpen:nt})}),[e,M,tt,Je,f,Ee,$e,nt]),ht=!!re||T;ht&&(mt=p.createElement(y,{className:m()("".concat(w,"-arrow"),(0,i.Z)({},"".concat(w,"-arrow-loading"),T)),customizeIcon:re,customizeIconProps:{loading:T,searchValue:_e,open:Je,focused:De,showSearch:Ee}}));var vt,bt=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=p.useMemo((function(){return"object"===(0,s.Z)(r)?r.clearIcon:o||void 0}),[r,o]),u=p.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]);return{allowClear:u,clearIcon:p.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(w,(function(){var e;null==P||P(),null===(e=Re.current)||void 0===e||e.focus(),N([],{type:"clear",values:Z}),ot("",!1,!1)}),Z,ne,oe,z,_e,R),yt=bt.allowClear,xt=bt.clearIcon,wt=p.createElement(ie,{ref:ze}),Ct=m()(w,S,(d={},(0,i.Z)(d,"".concat(w,"-focused"),De),(0,i.Z)(d,"".concat(w,"-multiple"),$e),(0,i.Z)(d,"".concat(w,"-single"),!$e),(0,i.Z)(d,"".concat(w,"-allow-clear"),ne),(0,i.Z)(d,"".concat(w,"-show-arrow"),ht),(0,i.Z)(d,"".concat(w,"-disabled"),z),(0,i.Z)(d,"".concat(w,"-loading"),T),(0,i.Z)(d,"".concat(w,"-open"),Je),(0,i.Z)(d,"".concat(w,"-customize-input"),He),(0,i.Z)(d,"".concat(w,"-show-search"),Ee),d)),St=p.createElement(K,{ref:Pe,disabled:z,prefixCls:w,visible:tt,popupElement:wt,animation:ae,transitionName:le,dropdownStyle:ce,dropdownClassName:se,direction:k,dropdownMatchSelectWidth:ue,dropdownRender:de,dropdownAlign:pe,placement:fe,builtinPlacements:me,getPopupContainer:ge,empty:O,getTriggerDOMNode:function(){return Me.current},onPopupVisibleChange:dt,onPopupMouseEnter:function(){ft({})}},Ke?p.cloneElement(Ke,{ref:Fe}):p.createElement(D,(0,r.Z)({},e,{domRef:Me,prefixCls:w,inputElement:He,ref:Re,id:f,showSearch:Ee,autoClearSearchValue:Q,mode:R,activeDescendantId:X,tagRender:E,values:Z,open:Je,onToggleOpen:nt,activeValue:W,searchValue:_e,onSearch:ot,onSearchSubmit:function(e){e&&e.trim()&&J(e,{source:"submit"})},onRemove:function(e){var t=Z.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:rt})));return vt=Ke?St:p.createElement("div",(0,r.Z)({className:Ct},ke,{ref:je,onMouseDown:function(e){var t,n=e.target,r=null===(t=Pe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=ut.indexOf(o);-1!==t&&ut.splice(t,1),Ae(),Ne||r.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));ut.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&N(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1];return(0,te.Z)(e).map((function(e,n){if(!p.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,l=r.props,s=l.children,u=(0,c.Z)(l,re);return t||!o?oe(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},u),{},{options:ie(s)})})).filter((function(e){return e}))}function ae(e,t,n,r,o){return p.useMemo((function(){var i=e;!e&&(i=ie(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];F(e);var n={source:t?"keyboard":"mouse"},r=T[e];r?E(r.value,e,n):E(null,-1,n)};(0,p.useEffect)((function(){W(!1!==k?A(0):-1)}),[T.length,g]);var V=p.useCallback((function(e){return N.has(e)&&"combobox"!==f}),[f,(0,o.Z)(N).toString(),N.size]);(0,p.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&u&&1===N.size){var e=Array.from(N)[0],t=T.findIndex((function(t){return t.data.value===e}));-1!==t&&(W(t),B(t))}}));u&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[u,g,$.length]);var X=function(e){void 0!==e&&I(e,{selected:!N.has(e)}),d||h(!1)};if(p.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case v.Z.N:case v.Z.P:case v.Z.UP:case v.Z.DOWN:var r=0;if(t===v.Z.UP?r=-1:t===v.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===v.Z.N?r=1:t===v.Z.P&&(r=-1)),0!==r){var o=A(K+r,r);B(o),W(o,!0)}break;case v.Z.ENTER:var i=T[K];i&&!i.data.disabled?X(i.value):X(void 0),u&&e.preventDefault();break;case v.Z.ESC:h(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){B(e)}}})),0===T.length)return p.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(z,"-empty"),onMouseDown:D},b);var G=Object.keys(O).map((function(e){return O[e]})),Y=function(e){return e.label};function q(e,t){return{role:e.group?"presentation":"option",id:"".concat(s,"_list_").concat(t)}}var U=function(e){var t=T[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=(0,S.Z)(n,!0),l=Y(t);return t?p.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},q(t,e),{"aria-selected":V(o)}),o):null},Q={role:"listbox",id:"".concat(s,"_list")};return p.createElement(p.Fragment,null,j&&p.createElement("div",(0,r.Z)({},Q,{style:{height:0,width:0,overflow:"hidden"}}),U(K-1),U(K),U(K+1)),p.createElement(me.Z,{itemKey:"key",ref:L,data:T,height:P,itemHeight:R,fullHeight:!1,onMouseDown:D,onScroll:x,virtual:j,direction:M,innerProps:j?null:Q},(function(e,t){var n,o=e.group,a=e.groupOption,l=e.data,s=e.label,u=e.value,d=l.key;if(o){var f,g=null!==(f=l.title)&&void 0!==f?f:ve(s)?s.toString():void 0;return p.createElement("div",{className:m()(z,"".concat(z,"-group")),title:g},void 0!==s?s:d)}var h=l.disabled,v=l.title,b=(l.children,l.style),x=l.className,w=(0,c.Z)(l,he),C=(0,fe.Z)(w,G),$=V(u),E="".concat(z,"-option"),k=m()(z,E,x,(n={},(0,i.Z)(n,"".concat(E,"-grouped"),a),(0,i.Z)(n,"".concat(E,"-active"),K===t&&!h),(0,i.Z)(n,"".concat(E,"-disabled"),h),(0,i.Z)(n,"".concat(E,"-selected"),$),n)),I=Y(e),N=!Z||"function"==typeof Z||$,O="number"==typeof I?I:I||u,M=ve(O)?O.toString():void 0;return void 0!==v&&(M=v),p.createElement("div",(0,r.Z)({},(0,S.Z)(C),j?{}:q(e,t),{"aria-selected":$,className:k,title:M,onMouseMove:function(){K===t||h||W(t)},onClick:function(){h||X(u)},style:b}),p.createElement("div",{className:"".concat(E,"-content")},O),p.isValidElement(Z)||$,N&&p.createElement(y,{className:"".concat(z,"-option-state"),customizeIcon:Z,customizeIconProps:{isSelected:$}},$?"✓":null))})))},ye=p.forwardRef(be);ye.displayName="OptionList";var xe=ye;var we=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];var Se=p.forwardRef((function(e,t){var n=e.id,d=e.mode,f=e.prefixCls,m=void 0===f?"rc-select":f,g=e.backfill,h=e.fieldNames,v=e.inputValue,b=e.searchValue,y=e.onSearch,x=e.autoClearSearchValue,w=void 0===x||x,C=e.onSelect,S=e.onDeselect,$=e.dropdownMatchSelectWidth,E=void 0===$||$,k=e.filterOption,I=e.filterSort,N=e.optionFilterProp,O=e.optionLabelProp,j=e.options,M=e.children,P=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,z=e.virtual,T=e.direction,L=e.listHeight,D=void 0===L?200:L,B=e.listItemHeight,A=void 0===B?20:B,_=e.value,H=e.defaultValue,K=e.labelInValue,F=e.onChange,G=(0,c.Z)(e,we),Y=(0,ee.ZP)(n),U=q(d),te=!(j||!M),ne=p.useMemo((function(){return(void 0!==k||"combobox"!==d)&&k}),[k,d]),re=p.useMemo((function(){return V(h,te)}),[JSON.stringify(h),te]),oe=(0,u.Z)("",{value:void 0!==b?b:v,postState:function(e){return e||""}}),ie=(0,l.Z)(oe,2),ce=ie[0],se=ie[1],ue=ae(j,M,re,N,O),de=ue.valueOptions,pe=ue.labelOptions,fe=ue.options,me=p.useCallback((function(e){return Z(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==(0,s.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=de.get(t);c&&(void 0===n&&(n=null==c?void 0:c[O||re.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[re,O,de]),he=(0,u.Z)(H,{value:_}),ve=(0,l.Z)(he,2),be=ve[0],ye=ve[1],Se=p.useMemo((function(){var e,t=me(be);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[be,me,d]),$e=function(e,t){var n=p.useRef({values:new Map,options:new Map});return[p.useMemo((function(){var r=n.current,o=r.values,i=r.options,l=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),c=new Map,s=new Map;return l.forEach((function(e){c.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=c,n.current.options=s,l}),[e,t]),p.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Se,de),Ee=(0,l.Z)($e,2),ke=Ee[0],Ie=Ee[1],Ze=p.useMemo((function(){if(!d&&1===ke.length){var e=ke[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ke.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[d,ke]),Ne=p.useMemo((function(){return new Set(ke.map((function(e){return e.value})))}),[ke]);p.useEffect((function(){if("combobox"===d){var e,t=null===(e=ke[0])||void 0===e?void 0:e.value;se(function(e){return null!=e}(t)?String(t):"")}}),[ke]);var Oe=le((function(e,t){var n,r=null!=t?t:e;return n={},(0,i.Z)(n,re.value,e),(0,i.Z)(n,re.label,r),n})),je=function(e,t,n,r,o){return p.useMemo((function(){if(!n||!1===r)return e;var l=t.options,c=t.label,s=t.value,u=[],d="function"==typeof r,p=n.toUpperCase(),f=d?r:function(e,t){return o?J(t[o],p):t[l]?J(t["children"!==c?c:"label"],p):J(t[s],p)},m=d?function(e){return X(e)}:function(e){return e};return e.forEach((function(e){if(e[l])if(f(n,m(e)))u.push(e);else{var t=e[l].filter((function(e){return f(n,m(e))}));t.length&&u.push((0,a.Z)((0,a.Z)({},e),{},(0,i.Z)({},l,t)))}else f(n,m(e))&&u.push(e)})),u}),[e,r,o,n,t])}(p.useMemo((function(){if("tags"!==d)return fe;var e=(0,o.Z)(fe);return(0,o.Z)(ke).sort((function(e,t){return e.value1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=V(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;function u(e,t){e.forEach((function(e){if(t||!(c in e)){var n=e[l];o.push({key:W(e,o.length),groupOption:t,data:e,label:e[a],value:n})}else{var i=e[s];void 0===i&&r&&(i=e.label),o.push({key:W(e,o.length),group:!0,data:e,label:i}),u(e[c],!0)}}))}return u(e,!1),o}(Pe,{fieldNames:re,childrenAsData:te})}),[Pe,re,te]),ze=function(e){var t=me(e);if(ye(t),F&&(t.length!==ke.length||t.some((function(e,t){var n;return(null===(n=ke[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=K?t:t.map((function(e){return e.value})),r=t.map((function(e){return X(Ie(e.value))}));F(U?n:n[0],U?r:r[0])}},Te=p.useState(null),Le=(0,l.Z)(Te,2),De=Le[0],Be=Le[1],Ae=p.useState(0),_e=(0,l.Z)(Ae,2),He=_e[0],Ke=_e[1],Fe=void 0!==P?P:"combobox"!==d,We=p.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Ke(t),g&&"combobox"===d&&null!==e&&"keyboard"===o&&Be(String(e))}),[g,d]),Ve=function(e,t,n){var r=function(){var t,n=Ie(e);return[K?{label:null==n?void 0:n[re.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,X(n)]};if(t&&C){var o=r(),i=(0,l.Z)(o,2),a=i[0],c=i[1];C(a,c)}else if(!t&&S&&"clear"!==n){var s=r(),u=(0,l.Z)(s,2),d=u[0],p=u[1];S(d,p)}},Xe=le((function(e,t){var n,r=!U||t.selected;n=r?U?[].concat((0,o.Z)(ke),[e]):[e]:ke.filter((function(t){return t.value!==e})),ze(n),Ve(e,r),"combobox"===d?Be(""):q&&!w||(se(""),Be(""))})),Ge=p.useMemo((function(){var e=!1!==z&&!1!==E;return(0,a.Z)((0,a.Z)({},ue),{},{flattenOptions:Re,onActiveValue:We,defaultActiveFirstOption:Fe,onSelect:Xe,menuItemSelectedIcon:R,rawValues:Ne,fieldNames:re,virtual:e,direction:T,listHeight:D,listItemHeight:A,childrenAsData:te})}),[ue,Re,We,Fe,Xe,R,Ne,re,z,E,D,A,te]);return p.createElement(ge.Provider,{value:Ge},p.createElement(Q,(0,r.Z)({},G,{id:Y,prefixCls:m,ref:t,omitDomProps:Ce,mode:d,displayValues:Ze,onDisplayValuesChange:function(e,t){ze(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ve(e.value,!1,n)}))},direction:T,searchValue:ce,onSearch:function(e,t){if(se(e),Be(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&ze(e),null==y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,o.Z)(Ne),[n])));ze(r),Ve(n,!0),se("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=pe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,o.Z)(Ne),(0,o.Z)(t))));ze(n),n.forEach((function(e){Ve(e,!0)}))},dropdownMatchSelectWidth:E,OptionList:xe,emptyOptions:!Re.length,activeValue:De,activeDescendantId:"".concat(Y,"_list_").concat(He)})))}));var $e=Se;$e.Option=de,$e.OptGroup=se;var Ee=$e},55477:function(e,t,n){n.d(t,{G:function(){return m},Z:function(){return v}});var r=n(14809),o=n(20439),i=n(62646),a=n(35593),l=n(59301),c={shiftX:64,adjustY:1},s={adjustX:1,shiftY:!0},u=[0,0],d={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:c,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:c,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:c,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:c,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:c,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:c,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:u}},p=n(92310),f=n.n(p);function m(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return l.createElement("div",{className:f()("".concat(n,"-content"),i),style:a},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=function(e,t){var n=e.overlayClassName,c=e.trigger,s=void 0===c?["hover"]:c,u=e.mouseEnterDelay,p=void 0===u?0:u,f=e.mouseLeaveDelay,h=void 0===f?.1:f,v=e.overlayStyle,b=e.prefixCls,y=void 0===b?"rc-tooltip":b,x=e.children,w=e.onVisibleChange,C=e.afterVisibleChange,S=e.transitionName,$=e.animation,E=e.motion,k=e.placement,I=void 0===k?"right":k,Z=e.align,N=void 0===Z?{}:Z,O=e.destroyTooltipOnHide,j=void 0!==O&&O,M=e.defaultVisible,P=e.getTooltipContainer,R=e.overlayInnerStyle,z=(e.arrowContent,e.overlay),T=e.id,L=e.showArrow,D=void 0===L||L,B=(0,i.Z)(e,g),A=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,(function(){return A.current}));var _=(0,o.Z)({},B);"visible"in e&&(_.popupVisible=e.visible);return l.createElement(a.Z,(0,r.Z)({popupClassName:n,prefixCls:y,popup:function(){return l.createElement(m,{key:"content",prefixCls:y,id:T,overlayInnerStyle:R},z)},action:s,builtinPlacements:d,popupPlacement:I,ref:A,popupAlign:N,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:$,popupMotion:E,defaultPopupVisible:M,autoDestroy:j,mouseLeaveDelay:h,popupStyle:v,mouseEnterDelay:p,arrow:D},_),x)},v=(0,l.forwardRef)(h)},39417:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(14809),o=n(4635),i=n(62646),a=n(20439),l=n(99153),c=n(84851),s=n(13028),u=n(19257),d=n(54941),p=n(92310),f=n.n(p),m=n(26112),g=n(59301),h=n(39378),v=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function c(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function s(e){return e.split("-")}function u(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}((0,a.Z)(t,e).children),n}function d(e){if(e.parent){var t=s(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function p(e,t,n,r,o,i,l,c,u,p){var f,m=e.clientX,g=e.clientY,h=e.target.getBoundingClientRect(),v=h.top,b=h.height,y=(("rtl"===p?-1:1)*(((null==o?void 0:o.x)||0)-m)-12)/r,x=(0,a.Z)(c,n.props.eventKey);if(g-1.5?i({dragNode:O,dropNode:j,dropPosition:1})?k=1:M=!1:i({dragNode:O,dropNode:j,dropPosition:0})?k=0:i({dragNode:O,dropNode:j,dropPosition:1})?k=1:M=!1:i({dragNode:O,dropNode:j,dropPosition:1})?k=1:M=!1,{dropPosition:k,dropLevelOffset:I,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:E,dropContainerKey:0===k?null:(null===(f=x.parent)||void 0===f?void 0:f.key)||null,dropAllowed:M}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function m(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.Z)(e))return(0,i.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function g(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=(0,a.Z)(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,r.Z)(n)}},90782:function(e,t,n){n.d(t,{S:function(){return l}});var r=n(48736),o=n(67841);function i(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function l(e,t,n,l){var c,s=[];c=l||a;var u,d=new Set(e.filter((function(e){var t=!!(0,o.Z)(n,e);return t||s.push(e),t}))),p=new Map,f=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=p.get(r);o||(o=new Set,p.set(r,o)),o.add(t),f=Math.max(f,r)})),(0,r.ZP)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),u=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,l=0;l<=n;l+=1)(t.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var c=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var i=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),l||!n&&!a.has(t)||(l=!0)})),i&&o.add(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(d,p,f,c):function(e,t,n,r,o){for(var a=new Set(e),l=new Set(t),c=0;c<=r;c+=1)(n.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)||l.has(t)||o(n)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));l=new Set;for(var s=new Set,u=r;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var r=!0,i=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),i||!n&&!l.has(t)||(i=!0)})),r||a.delete(t.key),i&&l.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(l,a))}}(d,t.halfCheckedKeys,p,f,c),u}},67841:function(e,t,n){function r(e,t){return e[t]}n.d(t,{Z:function(){return r}})},71430:function(e,t,n){n.d(t,{F:function(){return x},H8:function(){return y},I8:function(){return b},km:function(){return f},oH:function(){return h},w$:function(){return m},zn:function(){return g}});var r=n(93664),o=n(95190),i=n(20439),a=n(62646),l=n(11592),c=n(2738),s=n(48736),u=n(67841),d=["children"];function p(e,t){return"".concat(e,"-").concat(t)}function f(e,t){return null!=e?e:t}function m(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function g(e){return function e(t){return(0,l.Z)(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,s.ZP)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,l=(0,a.Z)(r,d),c=(0,i.Z)({key:n},l),u=e(o);return u.length&&(c.children=u),c})).filter((function(e){return e}))}(e)}function h(e,t,n){var r=m(n),a=r._title,l=r.key,s=r.children,u=new Set(!0===t?[]:t),d=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(m,g){for(var h,v=p(r?r.pos:"0",g),b=f(m[l],v),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,s=i||c,u={},d={},p={posEntities:u,keyEntities:d};return n&&(p=n(p)||p),v(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},s=f(i,o);u[o]=c,d[s]=c,c.parent=u[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,p)}),{externalGetKey:s,childrenPropName:a,fieldNames:l}),o&&o(p),p}function y(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,d=t.keyEntities,p=(0,u.Z)(d,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(p?p.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function x(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,c=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,p=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,h=(0,i.Z)((0,i.Z)({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:l,halfChecked:c,dragOver:u,dragOverGapTop:d,dragOverGapBottom:p,pos:f,active:m,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,s.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}},8224:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(4676);function o(e,t,n,o){var i=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}},55468:function(e,t,n){n.d(t,{g1:function(){return r},os:function(){return o}});function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},24514:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(47273),o=function(e){if((0,r.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function i(e,t){return Array.isArray(e)||void 0===t?o(e):function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},49658:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=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(e)||/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(null==e?void 0:e.substr(0,4))}},65283:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(14809),o=n(93664),i=n(20439),a=n(4635),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(29301),p=n(70425),f=n(34280),m=n(59301),g=n(4676),h=m.forwardRef((function(e,t){var n=e.height,o=e.offsetY,l=e.offsetX,c=e.children,s=e.prefixCls,p=e.onInnerResize,f=e.innerProps,g=e.rtl,h=e.extra,v={},b={display:"flex",flexDirection:"column"};return void 0!==o&&(v={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(o,"px)")},g?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:v},m.createElement(d.Z,{onResize:function(e){e.offsetHeight&&p&&p()}},m.createElement("div",(0,r.Z)({style:b,className:u()((0,a.Z)({},"".concat(s,"-holder-inner"),s)),ref:t},f),c,h)))}));h.displayName="Filler";var v=h;function b(e){var t=e.children,n=e.setRef,r=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:r})}function y(e,t,n){var r=m.useState(e),o=(0,l.Z)(r,2),i=o[0],a=o[1],c=m.useState(null),s=(0,l.Z)(c,2),u=s[0],d=s[1];return m.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||a(),!o.current&&r}};function S(e,t,n,r,o,i,a){var l=(0,m.useRef)(0),c=(0,m.useRef)(null),s=(0,m.useRef)(null),u=(0,m.useRef)(!1),d=C(t,n,r,o);var p=(0,m.useRef)(null),f=(0,m.useRef)(null);return[function(t){if(e){x.Z.cancel(f.current),f.current=(0,x.Z)((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,m=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(m=r,g=0,p.current="sx");var h=Math.abs(m),v=Math.abs(g);null===p.current&&(p.current=i&&h>v?"x":"y"),"y"===p.current?function(e,t){if(x.Z.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,s.current=t,w||n.preventDefault(),c.current=(0,x.Z)((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){a(t,!0),w||e.preventDefault()}(t,m)}},function(t){e&&(u.current=t.detail===s.current)}]}var $=n(99153),E=n(84851),k=function(){function e(){(0,$.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,E.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function I(e){var t=parseFloat(e);return isNaN(t)?0:t}var Z=14/15;function N(e){return Math.floor(Math.pow(e,.5))}function O(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var j=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,c=e.scrollRange,s=e.onStartMove,d=e.onStopMove,p=e.onScroll,f=e.horizontal,g=e.spinSize,h=e.containerSize,v=e.style,b=e.thumbStyle,y=e.showScrollBar,w=m.useState(!1),C=(0,l.Z)(w,2),S=C[0],$=C[1],E=m.useState(null),k=(0,l.Z)(E,2),I=k[0],Z=k[1],N=m.useState(null),j=(0,l.Z)(N,2),M=j[0],P=j[1],R=!r,z=m.useRef(),T=m.useRef(),L=m.useState(y),D=(0,l.Z)(L,2),B=D[0],A=D[1],_=m.useRef(),H=function(){!0!==y&&!1!==y&&(clearTimeout(_.current),A(!0),_.current=setTimeout((function(){A(!1)}),3e3))},K=c-h||0,F=h-g||0,W=m.useMemo((function(){return 0===o||0===K?0:o/K*F}),[o,K,F]),V=m.useRef({top:W,dragging:S,pageY:I,startTop:M});V.current={top:W,dragging:S,pageY:I,startTop:M};var X=function(e){$(!0),Z(O(e,f)),P(V.current.top),s(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=z.current,n=T.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",X,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",X)}}),[]);var G=m.useRef();G.current=K;var Y=m.useRef();Y.current=F,m.useEffect((function(){if(S){var e,t=function(t){var n=V.current,r=n.dragging,o=n.pageY,i=n.startTop;x.Z.cancel(e);var a=z.current.getBoundingClientRect(),l=h/(f?a.width:a.height);if(r){var c=(O(t,f)-o)*l,s=i;!R&&f?s-=c:s+=c;var u=G.current,d=Y.current,m=d?s/d:0,g=Math.ceil(m*u);g=Math.max(g,0),g=Math.min(g,u),e=(0,x.Z)((function(){p(g,f)}))}},n=function(){$(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),x.Z.cancel(e)}}}),[S]),m.useEffect((function(){return H(),function(){clearTimeout(_.current)}}),[o]),m.useImperativeHandle(t,(function(){return{delayHidden:H}}));var q="".concat(n,"-scrollbar"),U={position:"absolute",visibility:B?null:"hidden"},Q={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(U.height=8,U.left=0,U.right=0,U.bottom=0,Q.height="100%",Q.width=g,R?Q.left=W:Q.right=W):(U.width=8,U.top=0,U.bottom=0,R?U.right=0:U.left=0,Q.width="100%",Q.height=g,Q.top=W),m.createElement("div",{ref:z,className:u()(q,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(q,"-horizontal"),f),"".concat(q,"-vertical"),!f),"".concat(q,"-visible"),B)),style:(0,i.Z)((0,i.Z)({},U),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},m.createElement("div",{ref:T,className:u()("".concat(q,"-thumb"),(0,a.Z)({},"".concat(q,"-thumb-moving"),S)),style:(0,i.Z)((0,i.Z)({},Q),b),onMouseDown:X}))}));function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var P=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],R=[],z={overflowY:"auto",overflowAnchor:"none"};function T(e,t){var n=e.prefixCls,s=void 0===n?"rc-virtual-list":n,h=e.className,w=e.height,$=e.itemHeight,E=e.fullHeight,T=void 0===E||E,L=e.style,D=e.data,B=e.children,A=e.itemKey,_=e.virtual,H=e.direction,K=e.scrollWidth,F=e.component,W=void 0===F?"div":F,V=e.onScroll,X=e.onVirtualScroll,G=e.onVisibleChange,Y=e.innerProps,q=e.extraRender,U=e.styles,Q=e.showScrollBar,J=void 0===Q?"optional":Q,ee=(0,c.Z)(e,P),te=m.useCallback((function(e){return"function"==typeof A?A(e):null==e?void 0:e[A]}),[A]),ne=function(e,t,n){var r=m.useState(0),o=(0,l.Z)(r,2),i=o[0],a=o[1],c=(0,m.useRef)(new Map),s=(0,m.useRef)(new k),u=(0,m.useRef)(0);function d(){u.current+=1}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,l=r+I(i)+I(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,m.useEffect)((function(){return d}),[]),[function(r,o){var i=e(r),a=c.current.get(i);o?(c.current.set(i,o),p()):c.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},p,s.current,i]}(te,null,null),re=(0,l.Z)(ne,4),oe=re[0],ie=re[1],ae=re[2],le=re[3],ce=!(!1===_||!w||!$),se=m.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=ce&&D&&(Math.max($*D.length,se)>w||!!K),de="rtl"===H,pe=u()(s,(0,a.Z)({},"".concat(s,"-rtl"),de),h),fe=D||R,me=(0,m.useRef)(),ge=(0,m.useRef)(),he=(0,m.useRef)(),ve=(0,m.useState)(0),be=(0,l.Z)(ve,2),ye=be[0],xe=be[1],we=(0,m.useState)(0),Ce=(0,l.Z)(we,2),Se=Ce[0],$e=Ce[1],Ee=(0,m.useState)(!1),ke=(0,l.Z)(Ee,2),Ie=ke[0],Ze=ke[1],Ne=function(){Ze(!0)},Oe=function(){Ze(!1)},je={getKey:te};function Me(e){xe((function(t){var n=function(e){var t=e;Number.isNaN(Ue.current)||(t=Math.min(t,Ue.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return me.current.scrollTop=n,n}))}var Pe=(0,m.useRef)({start:0,end:fe.length}),Re=(0,m.useRef)(),ze=y(fe,te),Te=(0,l.Z)(ze,1)[0];Re.current=Te;var Le=m.useMemo((function(){if(!ce)return{scrollHeight:void 0,start:0,end:fe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:fe.length-1,offset:void 0};for(var t,n,r,o=0,i=fe.length,a=0;a=ye&&void 0===t&&(t=a,n=o),u>ye+w&&void 0===r&&(r=a),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(w/$)),void 0===r&&(r=fe.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,fe.length-1),offset:n}}),[ue,ce,ye,fe,le,w]),De=Le.scrollHeight,Be=Le.start,Ae=Le.end,_e=Le.offset;Pe.current.start=Be,Pe.current.end=Ae,m.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=fe[Be];if(r&&void 0===n)if(te(r)===t){var o=ae.get(t)-$;Me((function(e){return e+o}))}}ae.resetRecord()}),[De]);var He=m.useState({width:0,height:w}),Ke=(0,l.Z)(He,2),Fe=Ke[0],We=Ke[1],Ve=(0,m.useRef)(),Xe=(0,m.useRef)(),Ge=m.useMemo((function(){return M(Fe.width,K)}),[Fe.width,K]),Ye=m.useMemo((function(){return M(Fe.height,De)}),[Fe.height,De]),qe=De-w,Ue=(0,m.useRef)(qe);Ue.current=qe;var Qe=ye<=0,Je=ye>=qe,et=Se<=0,tt=Se>=K,nt=C(Qe,Je,et,tt),rt=function(){return{x:de?-Se:Se,y:ye}},ot=(0,m.useRef)(rt()),it=(0,p.zX)((function(e){if(X){var t=(0,i.Z)((0,i.Z)({},rt()),e);ot.current.x===t.x&&ot.current.y===t.y||(X(t),ot.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){$e(n)})),it()):Me(n)}var lt=function(e){var t=e,n=K?K-Fe.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ct=(0,p.zX)((function(e,t){t?((0,g.flushSync)((function(){$e((function(t){return lt(t+(de?-e:e))}))})),it()):Me((function(t){return t+e}))})),st=S(ce,Qe,Je,et,tt,!!K,ct),ut=(0,l.Z)(st,2),dt=ut[0],pt=ut[1];!function(e,t,n){var r,o=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),l=(0,m.useRef)(null),c=(0,m.useRef)(null),s=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=i.current-t,s=a.current-r,u=Math.abs(l)>Math.abs(s);u?i.current=t:a.current=r;var d=n(u,u?l:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?l*=Z:s*=Z;var e=Math.floor(u?l:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},u=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},(0,f.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(c.current)}}),[e])}(ce,me,(function(e,t,n,r){var o=r;return!nt(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){m.useEffect((function(){var r=t.current;if(e&&r){var o,i,a=!1,l=function(){x.Z.cancel(o)},c=function e(){l(),o=(0,x.Z)((function(){n(i),e()}))},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=O(e,!1),n=r.getBoundingClientRect(),o=n.top,s=n.bottom;t<=o?(i=-N(o-t),c()):t>=s?(i=N(t-s),c()):l()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),l()}}}),[e])}(ue,me,(function(e){Me((function(t){return t+e}))})),(0,f.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=Je&&e.detail>0;!ce||t||n||e.preventDefault()}var t=me.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",pt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",pt),t.removeEventListener("MozMousePixelScroll",e)}}),[ce,Qe,Je]),(0,f.Z)((function(){if(K){var e=lt(Se);$e(e),it({x:e})}}),[Fe.width,K]);var ft=function(){var e,t;null===(e=Ve.current)||void 0===e||e.delayHidden(),null===(t=Xe.current)||void 0===t||t.delayHidden()},mt=function(e,t,n,r,a,c,s,u){var d=m.useRef(),p=m.useState(null),g=(0,l.Z)(p,2),h=g[0],v=g[1];return(0,f.Z)((function(){if(h&&h.times<10){if(!e.current)return void v((function(e){return(0,i.Z)({},e)}));c();var o=h.targetAlign,l=h.originAlign,u=h.index,d=h.offset,p=e.current.clientHeight,f=!1,m=o,g=null;if(p){for(var b=o||l,y=0,x=0,w=0,C=Math.min(t.length-1,u),S=0;S<=C;S+=1){var $=a(t[S]);x=y;var E=n.get($);y=w=x+(void 0===E?r:E)}for(var k="top"===b?d:p-d,I=C;I>=0;I-=1){var Z=a(t[I]),N=n.get(Z);if(void 0===N){f=!0;break}if((k-=N)<=0)break}switch(b){case"top":g=x-d;break;case"bottom":g=w-p+d;break;default:var O=e.current.scrollTop;xO+p&&(m="bottom")}null!==g&&s(g),g!==h.lastTop&&(f=!0)}f&&v((0,i.Z)((0,i.Z)({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,e.current]),function(e){if(null!=e){if(x.Z.cancel(d.current),"number"==typeof e)s(e);else if(e&&"object"===(0,o.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else u()}}(me,fe,ae,$,te,(function(){return ie(!0)}),Me,ft);m.useImperativeHandle(t,(function(){return{nativeElement:he.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,o.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&$e(lt(e.left)),mt(e.top)):mt(e)}}})),(0,f.Z)((function(){if(G){var e=fe.slice(Be,Ae+1);G(e,fe)}}),[Be,Ae,fe]);var gt=function(e,t,n,r){var o=m.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=(0,l.Z)(o,2),a=i[0],c=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=a.get(o),s=a.get(i);if(void 0===l||void 0===s)for(var u=e.length,d=c.length;dw&&m.createElement(j,{ref:Ve,prefixCls:s,scrollOffset:ye,scrollRange:De,rtl:de,onScroll:at,onStartMove:Ne,onStopMove:Oe,spinSize:Ye,containerSize:Fe.height,style:null==U?void 0:U.verticalScrollBar,thumbStyle:null==U?void 0:U.verticalScrollBarThumb,showScrollBar:J}),ue&&K>Fe.width&&m.createElement(j,{ref:Xe,prefixCls:s,scrollOffset:Se,scrollRange:K,rtl:de,onScroll:at,onStartMove:Ne,onStopMove:Oe,spinSize:Ge,containerSize:Fe.width,horizontal:!0,style:null==U?void 0:U.horizontalScrollBar,thumbStyle:null==U?void 0:U.horizontalScrollBarThumb,showScrollBar:J}))}var L=m.forwardRef(T);L.displayName="List";var D=L},76374:function(e,t,n){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var $=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.Z=$},32637:function(e,t,n){e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/live-play.html b/live-play.html index 7f50325f8f..423886dee5 100644 --- a/live-play.html +++ b/live-play.html @@ -5,7 +5,7 @@ - 头歌考试系统 + 考试系统 ")}))},it=(0,c.useMemo)((function(){try{L=L.replace(/\(\/attachments\/download\//g,"("+F.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+F.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+F.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+F.Z.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,"\n")}catch(t){}if(m){var t=-1;return L=L.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(e,n,i){var r;return function(t,e,n){var i=document.createElement(t===q?"input":"textarea");i.style.width="100%",i.style.height=t===q?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=e;var r=Object.keys(et).length;return et[r]=i,'')}(e,++t,null==A||null===(r=A[t])||void 0===r?void 0:r.value.replaceAll("<","<").replaceAll(">",">"))})),'
'.concat(nt(L||""),"
")}var e=nt(L);e=M(e);var n=I();L.match(/\[TOC\]/)&&(e=e.replace("

[TOC]

",x()),b()),e=e.replace(/(__special_katext_id_\d+__)/g,(function(t,e){var i=n[e],r=i.type,s=i.expression;return(0,_.renderToString)(function(t){var e=document.createElement("div");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),e=e.replace(/▁/g,"▁▁▁▁▁"),R();var i=document.createElement("div");return i.innerHTML=e,s?i.innerText:g?(ot(i,g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return ht()}),500),i.innerHTML)}),[L,g]);(0,c.useEffect)((function(){lt.current&<.current.querySelectorAll(["input","textarea"]).forEach((function(t){t.oninput=rt,t.onblur=st,t.onfocus=at}))}),[J]),(0,c.useEffect)((function(){if(null!=A&&A.length)try{var t,e=lt.current.querySelectorAll(".edu-program-fill-score"),n=lt.current.querySelectorAll('[name="edu-program-fill"]'),i=l()(n.entries());try{for(i.s();!(t=i.n()).done;){var r,s,a,o=h()(t.value,2),u=o[0],c=o[1];c.value=(null==A||null===(r=A[u])||void 0===r?void 0:r.value)||"","warning"===(null==A||null===(s=A[u])||void 0===s?void 0:s.type)?c.className="program-fill-warning":"success"===(null==A||null===(a=A[u])||void 0===a?void 0:a.type)?c.className="program-fill-success":c.className=""}}catch(t){i.e(t)}finally{i.f()}var d,f=l()(e.entries());try{for(f.s();!(d=f.n()).done;){var p,g,m=h()(d.value,2),v=m[0];m[1].innerHTML=null!=A&&null!==(p=A[v])&&void 0!==p&&p.score?"".concat(null==A||null===(g=A[v])||void 0===g?void 0:g.score,"分"):""}}catch(t){f.e(t)}finally{f.f()}$(A)}catch(t){console.log(t,"error")}}),[A]);var rt=function(t){J[t.target.dataset.id]=J[t.target.dataset.id]||{},J[t.target.dataset.id].value=t.target.value,$(a()(J)),k(J,t.target.dataset.id)},st=function(t){J[t.target.dataset.id]=J[t.target.dataset.id]||{},J[t.target.dataset.id].value=t.target.value,$(a()(J)),C(J,t.target.dataset.id)},at=function(t){J[t.target.dataset.id]=J[t.target.dataset.id]||{},J[t.target.dataset.id].value=t.target.value,$(a()(J)),S(J,t.target.dataset.id)};function ot(t,e){return t.childNodes.forEach((function(t){if(t.childNodes.length>0)ot(t,e);else if("IMG"!==t.nodeName)if(t.innerHTML){var n;t.innerHTML=null===(n=t.innerHTML)||void 0===n?void 0:n.replace(new RegExp(e,"gi"),'$&')}else{var i=document.createElement("span");i.innerHTML=t.textContent.replace(new RegExp(e,"gi"),'$&'),t.replaceWith(i)}}))}var lt=(0,c.useRef)();function ut(t){var e=t.target;if("A"===e.tagName.toUpperCase()){var n=e.getAttribute("href");if(n.indexOf("office")>-1)t.preventDefault(),Q(n),X("office");else if(n.indexOf("application/pdf")>-1)t.preventDefault(),Q(n),X("pdf");else if(n.indexOf("text/html")>-1)t.preventDefault(),Q(n),X("html");else if(n.startsWith("#")){t.preventDefault();var i=document.getElementById(n.replace("#",""));i&&i.scrollIntoView(!0)}}}w.WebkitLineClamp=o,o&&(d=r()(r()({},d),w));var ht=function(){var t,e=null===(t=lt.current)||void 0===t?void 0:t.querySelectorAll("video");null==e||e.forEach((function(t){if(t.oncontextmenu=function(){return!1},t.src.indexOf(".m3u8")>-1)if(t.canPlayType("application/vnd.apple.mpegurl"));else if(N.ZP.isSupported()){var e=new N.ZP;e.loadSource(t.src),e.attachMedia(t)}}))};(0,c.useEffect)((function(){if(lt.current&&it&&it.match(H)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",ut),function(){var t;null===(t=lt.current)||void 0===t||t.removeEventListener("click",ut),R(),b()}}),[it,lt.current,ut]),(0,c.useEffect)((function(){var t,e=function(t){t.preventDefault(),t.clipboardData.setData("text",window.getSelection().toString())};return null===(t=lt.current)||void 0===t||t.addEventListener("copy",e),function(){var t;null===(t=lt.current)||void 0===t||t.removeEventListener("copy",e)}}),[lt.current]);var ct=function(t){return//i.test(t||"")};return(0,j.jsxs)(j.Fragment,{children:[s&&(0,j.jsx)("div",{ref:lt,children:it}),!s&&!ct(it)&&(0,j.jsx)("div",{ref:lt,style:r()({},d),className:"".concat(i||""," ").concat(y?"disabled-fill":""," markdown-body ").concat(tt.current),dangerouslySetInnerHTML:{__html:it}}),!s&&ct(it)&&(0,j.jsx)(G,{html:it}),(0,j.jsx)(z.Z,{close:!0,data:O,type:null!=O&&O.length?K:"",style:r()({},p),onClose:function(){return Q("")}})]})}},46691:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return st}});var i=n(7557),r=n.n(i),s=n(82242),a=n.n(s),o=n(41498),l=n.n(o),u=n(79800),h=n.n(u),c=n(39647),d=n.n(c),f=n(59301),p=n(94706),g=n(37205),m=n.n(g),v=n(71418),y=n(6848),A=n(95237),b=n(43604),w=n(91454),E="content___RauL0",x="bg___f8yHR",k="leftcent___f7fUQ",T="leftitem___qmeSO",C="leftright___FOSLf",D="lefttitle___FJZBU",S="leftcontent___agWiX",I="rightones___o1K1n",R="cbg___ItXeP",L="noDataImg____pgf3",B="cbgleft___tFr3h",P="leftbg___KIKm4",O="cbitem___gCa5M",M="cbitemtitle___g7i3E",N="bottomleft___YgUx3",F="bottomitem___XZBUp",_="bottomitemtitle___z5ayq",U="bottomitemcent___J9sPZ",z="bottomright___WpY0J",j="data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LWpWpBiqho74FQppoALx2sdqxivb2MtLmtJncGYlEaWsSYxUTxOXcs55g28ulnUIv6KRDqmBsvdgNT5/mgBtWWU6g8M4LqHnT6PvTJOtJxTNDmFQgVJY2JqnLaR0mJQdeViiuI5FTiX4ESZmPZRV2lmyFSyOYcNxk+VVgocQxw5mqGvcYIN1veYNT2fTzE+plogOKyJUjTQOVMDZsdX9wO3ygaIWg7ovU7+cTyurwD1ygRvkV7T09hLRczzdeLCJDZexboGkRlnRLf9tojzTSIixsKurUxTz5dnjCpH8hlN9es1cqJIqCeGpo+J9LemSqORkFcsRkl1dBGn0QMBQCv4yWrLL6fnu/knDU/pWLmHANr6UPQvoLaRXvqRSrDptlnwpv6dbvGfaTXJFzFxqfVenbW1aeLSOeRchq89wTDZOqmGm6gjtxpjFDQdV8lyCaMuk44RcgNAG763IBdPtATaTaoODKB+cCNtCbahu4MjD351txW60gZZuL8OWZ6+2yL2KmU2ny9IHA18+UE0wFAC7QaggZVQr7+xdjzUrtJjCJD9AmS/xw+uhNrvnQ6PP5QZ+P+dMFeIWnFR/AAAAABJRU5ErkJggg==",K=n(37712),X=["globalSetting","user","dispatch","DataProps"],W=(0,p.connect)((function(t){return{globalSetting:t.globalSetting,user:t.user}}))((function(t){t.globalSetting,t.user,t.dispatch;var e,i=t.DataProps,r=(d()(t,X),function(t){var e=t.title,i=t.className,r=void 0===i?"":i,s=t.style,o=void 0===s?{}:s;return(0,K.jsxs)("div",{className:"flex item-center justify-center absolute ".concat(r),style:a()({width:"115px",height:"32px",fontSize:"13px",left:"50%",transform:"translateX(-50%)",bottom:"10px",background:"url(".concat(n(71677),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",color:"#fff",fontWeight:600},o),children:[" ",e," "]})}),s=function(t){var e=t.DataProps,n=void 0===e?[]:e,i=t.angleStep,r=void 0===i?.2:i,s=t.radius,o=void 0===s?500:s,l=t.top,u=void 0===l?0:l,h=t.verticalRadius,c=void 0===h?o:h,d=t.startPosition,p=void 0===d?Math.PI:d,g=(0,f.useRef)(null),m=p+(Math.PI-((null==n?void 0:n.length)-1)*r)/2,v=function(t){var e=t.DataProps,n=void 0===e?{}:e,i=t.style,r=void 0===i?{}:i;return(0,K.jsxs)("div",{className:"flex flex-col item-center c-white absolute",style:a()({fontSize:"14px"},r),children:[(0,K.jsx)(y.Z,{title:n,placement:"topLeft",children:(0,K.jsx)("div",{style:{color:"#113588",fontSize:"12px"},className:"multi_ellipsis1",children:n})}),(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnduzZMlV3r/MXXXO6dM3zYx6RiMGRhIGjzQECMmBwBCD5IAAgksowE34UW88+I9w+9UPfnGEH/xiPxomCMIWCgvJDyCCQDIaERJIjBFIDGI0l1ar1fdzTtXOtL6VueqsypO5965z6R45VDE9p2rfqmr/6ltr5cqVmQ7ff/x/dQfc9/63iaf4HVz8Xr8fp3gzzvpWnCa443zW7w3YbxGgjxrWcQCX57w1gD9ioKcA8hpO7ztcwymZ3EcH9/RuxuiPfCK80wQ0+plOeMBGP4CHA/mMgU6AeFYAvzyi3OdPS43Fj2IU8tmCPSOgIyBPCnEM1gmFtzr9JNAfEdhTBNqAeBx4DwvYScFvCnwQ8uko9xSAnhLI7xWItR/BpmB5jSrck0M9JtAKxE2U+LDh8YbzBvIzPqz33gTyKcI9BtAC5lsA5NWrddv54lcI0YWr/zGeu7+DnStv4sF/u+b2cDV25TkvvnhS+ztw/lS4pwB2Q6DHhHlKqmiBs7fy+lfgrrwP8cXfdv3HrsWdm5fwI4j4iAN+IgCfBfD5x+/gbwj26u/FbgzjqYI+FtjNzPAEoMcwrycEWIIjpLEbnyAi0Kz+OrDT7eLngsd7PfC+6HAhAsEBHhG3ncffhYC/2F7iiy/u4Q6v/WHuG3nwPewhJ4I9Be4RxY7DHb1RgAE6xbweE6aFOAXgnacPIb/0O26Ba9Ff3cWTS4d3B4d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2/Vrnclyf+eNZOvTrhc40d8uLYAUf3P9+4wbXvVb36v5tu8uX8Cd33Ew7Z/It+/4xHdwf+H5C8VkW9M6KUAAAAAElFTkSuQmCC",width:"58px",height:"58px"})]})};return(0,K.jsx)("div",{ref:g,className:"relative",children:null==n?void 0:n.map((function(t,e){var n=m+e*r,i=o*Math.cos(n),s=c*Math.sin(n);return(0,K.jsx)(v,{DataProps:t,style:{left:"calc(50% + ".concat(i,"px)"),bottom:"".concat(s+c+u,"px"),transform:"translateX(-50%)"}},e)}))})};return(0,K.jsxs)("div",{className:"flex flex-col item-center justify-center w-full h-full",style:{gap:"80px",marginLeft:18},children:[null==i||null===(e=i.knowledge_statistics)||void 0===e?void 0:e.map((function(t,e){return(0,K.jsxs)(K.Fragment,{children:[0==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-center justify-center",style:{background:"url(".concat(n(79394),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"176px",height:"61px",marginTop:"153px",zIndex:4},children:[(0,K.jsx)(s,{startPosition:0,DataProps:null==t?void 0:t.node_types,angleStep:.8,radius:70,top:-40,verticalRadius:20}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e),1==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-end justify-center",style:{background:"url(".concat(n(83253),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"240px",height:"100px",marginTop:"90px",zIndex:3},children:[(0,K.jsxs)("div",{className:"absolute",style:{left:"-4px",top:"0px"},children:[(0,K.jsx)("img",{src:Y,style:{width:"56px"}}),(0,K.jsx)("div",{className:"absolute",style:{top:"5px",left:"-25px",transform:"rotate(-47deg)",color:"#113588",fontSize:"12px"},children:null==t?void 0:t.relation})]}),(0,K.jsx)(s,{DataProps:null==t?void 0:t.node_types,angleStep:.1}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e),2==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-end justify-center",style:{background:"url(".concat(n(13815),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"321px",height:"135px",zIndex:2,marginTop:36},children:[(0,K.jsxs)("div",{className:"absolute",style:{left:"-10px",top:"24px"},children:[(0,K.jsx)("img",{src:Y,style:{width:"68px"}}),(0,K.jsx)("div",{className:"absolute",style:{top:"20px",left:"-15px",transform:"rotate(-47deg)",color:"#113588",fontSize:"12px"},children:null==t?void 0:t.relation})]}),(0,K.jsx)(s,{DataProps:null==t?void 0:t.node_types,angleStep:.1}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e),3==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-end justify-center",style:{background:"url(".concat(n(61993),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"452px",height:"153px",zIndex:1},children:[(0,K.jsxs)("div",{className:"absolute",style:{left:"-2px",top:"25px"},children:[(0,K.jsx)("img",{src:Y,style:{width:"74px"}}),(0,K.jsx)("div",{className:"absolute",style:{top:"7px",left:"0px",transform:"rotate(-47deg)",color:"#113588",fontSize:"12px"},children:null==t?void 0:t.relation})]}),(0,K.jsx)(s,{DataProps:null==t?void 0:t.node_types,angleStep:.1}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e)]})})),(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsx)("img",{src:n(6772),width:"362px",height:"280px",style:{marginTop:"-190px",backgroundSize:"contain"}})})]})})),Z=n.p+"static/kxld.1eaed609.png",J=n.p+"static/kxdb.46599d03.png",$=n(25950),tt=n(54877),et=n(88136),nt=["loading","globalSetting","user","total","dispatch","list","setlist","getlist","tonk","gettonk","pathsDetail"],it=(0,p.connect)((function(t){return{globalSetting:t.globalSetting,pathsDetail:t.pathsDetail,user:t.user}}))((function(t){t.loading,t.globalSetting,t.user,t.total,t.dispatch,t.list,t.setlist,t.getlist,t.tonk,t.gettonk,t.pathsDetail,d()(t,nt);var e,n,i,s,a,o,u,c,g,Y,X,it,rt,st,at,ot=(0,Q.cV)().questionable_id,lt=(0,Q.cV)().url,ut=(0,f.useState)({page:1,page_size:20,name:""}),ht=h()(ut,2),ct=(ht[0],ht[1],(0,f.useState)({})),dt=h()(ct,2),ft=(dt[0],dt[1]),pt=(0,f.useState)(!1),gt=h()(pt,2),mt=gt[0],vt=gt[1],yt=(0,p.useSearchParams)(),At=(h()(yt,1)[0],(0,f.useState)(ot?1:2)),bt=h()(At,2),wt=bt[0],Et=bt[1],xt=(0,f.useState)(),kt=h()(xt,2),Tt=kt[0],Ct=kt[1],Dt=(0,f.useState)(),St=h()(Dt,2),It=St[0],Rt=St[1],Lt=(0,f.useState)(),Bt=h()(Lt,2),Pt=Bt[0],Ot=Bt[1],Mt=(0,f.useRef)(null),Nt=(0,f.useState)(0),Ft=h()(Nt,2),_t=(Ft[0],Ft[1]);function Ut(){return(Ut=l()(r()().mark((function t(){var e,n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,q.ZP)("/api/v2/knowledge_graphs/subject/".concat(ot,".json"),{method:"get"});case 2:return 0===(null==(e=t.sent)?void 0:e.status)&&(Ct(null==e?void 0:e.data),Rt(m()((null==e||null===(n=e.data)||void 0===n||null===(n=n.subject_members)||void 0===n?void 0:n.splice(0,12))||[]))),t.next=6,(0,q.ZP)("/api/knowledge/v2/subject_knowledge_statistic.json",{method:"get",params:{subject_id:ot}});case 6:0===(null==(i=t.sent)?void 0:i.status)&&Ot(null==i?void 0:i.data);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function zt(){return(zt=l()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return vt(!0),t.next=3,(0,q.ZP)("/api/ai/knowledge_graph/statistics.json",{method:"get"});case 3:e=t.sent,vt(!1),0===(null==e?void 0:e.status)&&ft(null==e?void 0:e.data);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}(0,f.useEffect)((function(){ot?function(){Ut.apply(this,arguments)}():function(){zt.apply(this,arguments)}()}),[]),(0,f.useEffect)((function(){setTimeout((function(){var t=(0,Q.ZR)(Mt.current,"px",1);_t(t)}),1e3)}),[null==Tt?void 0:Tt.description]);var jt=ot?[{id:1,name:"Subject"===(0,Q.cV)().questionable_type?"本课程知识图谱概览":"我的知识图谱概览"},{id:0,name:"知识图谱开发空间"},{id:2,name:"知识图谱简介"}]:[{id:2,name:"知识图谱简介"}];return(0,K.jsx)("div",{className:x,children:(0,K.jsxs)("div",{className:E,children:[(0,K.jsx)($.Z,{title:"知识图谱",subTitle:"让知识可见,让学习有径可循"}),(0,K.jsx)(tt.Z,{dataSource:jt,className:"mt20",value:wt,onChange:function(t){0===t?window.open("".concat(lt,"/knowledgegraph/").concat(ot)):Et(t)}}),2===wt&&(0,K.jsx)(v.Z,{spinning:mt,children:(0,K.jsx)("div",{children:(0,K.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:30},children:[(0,K.jsxs)("div",{className:k,children:[(0,K.jsx)("div",{style:{display:"flex",gap:10},children:null===(e=[{name:"学情分析",content:"能够精准分析学生对每个知识点的掌握程度",img:j},{name:"个性化学习路径",content:"为学生推荐个性化的学习资源和学习路径",img:j}])||void 0===e?void 0:e.map((function(t){return(0,K.jsxs)("div",{className:T,children:[(0,K.jsx)("img",{src:null==t?void 0:t.img}),(0,K.jsxs)("div",{className:C,children:[(0,K.jsx)("div",{className:D,children:null==t?void 0:t.name}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.content,children:(0,K.jsx)("div",{className:S,children:null==t?void 0:t.content})})]})]})}))}),(0,K.jsx)("img",{src:G,style:{marginTop:30,objectFit:"fill",width:520}}),(0,K.jsx)("div",{style:{color:"#3567A4",fontSize:20,position:"absolute",fontWeight:600,top:470,left:240},children:"四大功能层"}),(0,K.jsx)("div",{style:{display:"flex",gap:10,position:"absolute",bottom:"19px",left:27,right:27},children:null===(n=[{name:"多知识图谱",content:"课程图谱、大纲图谱、思政图谱、思维图谱为教育领域提供了多维支持",img:j},{name:"智慧资源",content:"整合教材、视频、实验、作业等多模态资源,构建结构化知识网络",img:j}])||void 0===n?void 0:n.map((function(t){return(0,K.jsxs)("div",{className:T,children:[(0,K.jsx)("img",{src:null==t?void 0:t.img}),(0,K.jsxs)("div",{className:C,children:[(0,K.jsx)("div",{className:D,children:null==t?void 0:t.name}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.content,children:(0,K.jsx)("div",{className:S,children:null==t?void 0:t.content})})]})]})}))})]}),(0,K.jsxs)("div",{style:{marginLeft:20,width:440},children:[(0,K.jsx)("div",{className:I,style:{backgroundImage:"url(".concat(Z,")")}}),(0,K.jsx)("div",{className:I,style:{marginTop:20,height:230,backgroundImage:"url(".concat(J,")")}})]})]})})}),1===wt&&(0,K.jsxs)("div",{style:{marginTop:30},className:"".concat(R," ").concat(null!=Tt&&null!==(i=Tt.nodes)&&void 0!==i&&i.length&&(null==Tt||null===(s=Tt.nodes)||void 0===s?void 0:s.length)<2?L:""),children:[!(null==Tt||null===(a=Tt.nodes)||void 0===a||!a.length)&&(null==Tt||null===(o=Tt.nodes)||void 0===o?void 0:o.length)>=2&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{style:{display:"flex"},children:[(0,K.jsxs)("div",{className:B,children:[(0,K.jsx)("div",{className:P,style:{backgroundImage:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAK0CAYAAAC3AOvFAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfQm4HEXV9qleZr9LcpNAEpYgy6fCByiBsH1sgoCEXUBABRVRAUXBBVBkkcUFUVRkERXZVMAEZAcFJDchCRFEwABhDSH7XWef7q7z/6eqa7q6p2fu3IAKucyTJzPTXae6znve857q6r49DNbhdVdv/yYH7z5+6TqYvmNN2LqM7I7evmMO273nj+ti+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vuAYfaTgyr8sC4t3vH372s582eMz9yetH45X/D6+prrAC7DG2AAAAAElFTkSuQmCC",")")}}),(0,K.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,K.jsxs)("div",{style:{textAlign:"center"},children:[(0,K.jsx)("div",{children:(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAiCAYAAAAtZZsLAAAAAXNSR0IArs4c6QAADcpJREFUWEfNmG1wG/Wdxz+7q9WTJVmyLVl+ku3ECYnzCCEJeYASjgRImISbHtMc5QbClEIpvbm+YI7etdebGzpcoZ3rlbYHPe7oFThaIIQDShJoGkIIeSAPduInjGPZ8aMsy5L1sNJK2t2bXUMemHvV8uJ2vF75L+3+P/o9fn8W+H9+CF803+Cr/71cVEvVLV+95+AX8ewvFHBg9wsbGvree14q5Ksnr7rx65G77//tnwr5hQGO/+on3w73f/B4LJFwqIZBo8/DdOvaf820rvrbBVu3qn8s6J8M+MnbbwerBg7/vCp66s5z2TKviLWILid/XppksaCSrVv8YWL+9V9buHNn7x8DeRGw++WX7aF07+aCJ+S3lxRJ0suCogsCaKJg6CKGLqAbgmCt6ZQQESXZGZzsfVicGGp7t+Cit3UFq69fg7fCRV9XH6GuE1ybG0f0Vc/EG5b+OG+Tp2WjLIiCaFiwgmBgCIZhPlmSdblcNDTRYeg2e7mUiiWXZV37LwKO/fv3XqycPn+XoBmYdxu6jqCbr3Uwr4aBoRuUNR1V0/GJZZwlhRlFZw8hjFXr+NL6VdSHQ0iSxGwmTWfPJ2SOfsCaiR4CgkpetDOl2RBFAVkSEczvaj7XmOO1fn+6VtJ0ss0rnrYAu3Y/tzrYd/BDyprNQJi74dMbLbBPT62sU9TKyCI06FmG00XeckYIbriRdVcvJRh0Y7fr1mbFkkQ2U+bjoRFGP3yfFdEOGsQSY2WZVFlHstmw2USTaA50zqTWj7m9rmkoSHnrncmnvv2WPzm8TdNF03SX4CwLmn8KaIaBioRPAEd+lg+zIh81LG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UcsEefXh6apq/Lx0LbmTwF9l1nwzEst4ZC7O57Cvff4DLLsZPPqIPF4jMNdOfw+L6vmSSTiUSoD9cxfeDXC7BscPHaG//hgMV6XQVqB+6/vJ5uXeemjFjwug4xicN/6Xq5qaEKrup3pySh9PR14K2sYSrmsJFm7sILZdIqecQlfhZM1CxwU1RmSymV1sLPz5dZ6v62nXDackmT2Ux2lULBqm4iIWiqRUwpMTyepDIRpswDf5A9HT/PLg/PxuE3dZ/DATVEL8MWjDVbiZPPwtRsGWNwUQQvcTnxykN6eTmpDATwu58WhSRDBIdusEdRMHnOqi886L7n42LHdjWFfsVfTDY9Z9a3THDs1swOYp0apqJGYSREMNXLV4lWIqdfZf/gET+1vsVycVgz++tYRMoqN594Pz8WlYvDNm6Msm9eGVrWd2NgAZztPEwz6cdht2CRzkuPTkdO8zv3HwRwFUqrnuouK2jAM4RfP/mRRfGrW9ZkeLn1+TitBQSsYS5YsWDY/0nCLXDgsfXx+RH+7u63ktOlCvoRx65JBWVVtHByIlJyyQUGFW9oH5KC3UlTd6/RMLtd58kz/O05JF+DTna6cs6xdK+xyua6uufd/ATPk7fmFhvsTAAAAAElFTkSuQmCC",style:{width:16,height:16}})}),(0,K.jsx)("div",{style:{color:"#666666",fontSize:12},children:"学校"})]}),(0,K.jsx)("div",{style:{marginLeft:13},children:(0,K.jsx)("div",{style:{padding:"6px 20px",fontSize:12,background:"linear-gradient( 136deg, #EFF1FF 0%, #F0F4FF 100%)",borderRadius:4},children:null==Tt?void 0:Tt.school})})]}),(0,K.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"start"},children:[(0,K.jsxs)("div",{style:{textAlign:"center"},children:[(0,K.jsx)("div",{children:(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAoCAYAAACSN4jeAAAAAXNSR0IArs4c6QAAD3hJREFUWEfNmHmUVOWZh5/vbrV1dXV3dW290TSIgojIRBGDUQyORBERcMnEaGIWk5OZM1GRbCeT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cy9fz4wN5Xmkv0JiMoqmemWqkQ4aTHNpvqP2vml7f752evDPU2ZGH4O3OLjLnX9T9f44Itr8+9PWxsntfWbfRdYtyxaBc1imWdHqHp1hxYQ23ve98ypZCsVTCMkxC4TABTcXWC2zaeYrXTpdpSVcTCmlUhQMENIVwUCEWdB9bt6T5o39qVPAnwXYc7l81OO3+3HIkDNNB102mi2U6ugeZLpQZHZtm8fm1XLqohemy7Se9JAnf6b0rqAn2HDrDqb4SifooqqbQ0pAgVR8jFFSQsUmE3U+uWzrz+38M7k+CPb4/+/rItLvIrzUXTMOkp6Mdo+8Vmi84h3AoyPKGBrSghvVbGD/+juNv2x5jsWyAUFGqq8hv2sKzc66nrTnlq+flVn3YGfjI8tmN7xhs275T5+WN8AndAtcy/WKoVHQOfvMujGqVe6+8gmtqaujS9d+PxTzFPK38J3W9vuPsXXVspufOZ+DIUZ6uuoKZzUkCmowrZEKaIB0sXXDrsnn/a+r4RxV7eOfbG4oi+jVZkqmUy6iy4ufWjrvfx6v9XdyF4FuRECf1iq+mz+Cp5bp4PYf3J+/tVbawHUptbeRXrePnTStpa0n5cw8loPoDv2pn+u67Vs7b+D9V+6NgG7ef2Gur1VcFFJlisewPSgzTZM99KznY08nn6+q4J17HacNA/QOos4BgIXxA/yqVMOecy8Qli3kqs4q25iSaqhIMaf7DCGPq4D03nP+edwT29f88dlwL1zV7T6brun/CNiyTPZ+/uerVbKe4N17Hp2IxumwbIUu+UuZvT/BB10EVUPZHSy7hSplyaxvDF1/GrsYV5dbGejscDroBLYDjpWRlqnP96nl+Lv/h9d8+ckl9Oq9zngAAAABJRU5ErkJggg==",style:{width:16,height:16}})}),(0,K.jsx)("div",{style:{color:"#666666",fontSize:12},children:"教师"})]}),(0,K.jsx)(A.Z,{gutter:[4,4],style:{width:"100%",marginLeft:5,gap:4},children:null==It?void 0:It.map((function(t,e){var n,i;return(0,K.jsx)(b.Z,{style:{cursor:11===e&&"pointer",maxWidth:63,maxHeight:65},span:4,children:11===e?(0,K.jsx)(w.Z,{content:(0,K.jsx)(A.Z,{gutter:[2,10],style:{width:540,marginLeft:5},children:null==Tt||null===(n=Tt.subject_members)||void 0===n?void 0:n.map((function(t,e){return(0,K.jsx)(b.Z,{span:4,children:(0,K.jsxs)("div",{className:O,children:[(0,K.jsx)("img",{src:V.Z.IMG_SERVER+"/images/"+(null==t?void 0:t.avatar)}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.username,children:(0,K.jsx)("div",{className:M,children:null==t?void 0:t.username})})]})})}))}),trigger:"click",placement:"bottom",children:(0,K.jsxs)("div",{className:O,children:[(0,K.jsxs)("div",{style:{minWidth:32,minHeight:32,background:"#D5DBF3",borderRadius:"50%",lineHeight:"32px",textAlign:"center"},children:["+",(null==Tt||null===(i=Tt.subject_members)||void 0===i?void 0:i.length)+1]}),(0,K.jsx)(y.Z,{title:"...更多...",children:(0,K.jsx)("div",{className:M,children:"...更多..."})})]})}):(0,K.jsxs)("div",{className:O,children:[(0,K.jsx)("img",{src:V.Z.IMG_SERVER+"/images/"+(null==t?void 0:t.avatar)}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.username,children:(0,K.jsx)("div",{className:M,children:null==t?void 0:t.username})})]})})}))})]})]}),(0,K.jsx)("div",{className:"relative",style:{flex:1,height:274},children:(0,K.jsx)(W,{DataProps:Pt||{}})})]}),(0,K.jsxs)("div",{style:{marginTop:10,padding:"20px 0px",background:"rgba(255,255,255,0.8)",borderRadius:4,display:"flex",height:122},children:[(0,K.jsxs)("div",{className:N,children:[(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABZCAYAAAA+TwS/AAAAAXNSR0IArs4c6QAACrJJREFUWEetWWdwVNcZPfftSuyqo0IRCCFBEhsbCM0IJIEQxQQIINFsbJIQbAhjTCaJ4ziZyR/PZOwwA54k1GBEERijMRBwCOOAwSCBKEam96KChLTaVduVVtKWl7ntlQWPY9D+QFvePe/7vnO+8937IACwt7gufU52z/v0/bO+CA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wsPEpVEVxrR9ifevT47miedCNSrgGiXUHwjZSe3XZ9n4geS7m81qcGgioUBWPSeoWfeRYwluf9R53qveo2TB4ZF+rqT4VNTl311NY1dvTsskf3e0tcfyYq3u9KwAyiorTLAIuKVEtY78b6vOz4+KcqWsgiRsT+ksbP8rK6z+0ywH+VNCybnRW/qcsA9xY3pc/JjuuS/9f7HwAzL4Lx1Oe7AAAAAElFTkSuQmCC"}),null===(u=[{value:null==Tt||null===(c=Tt.knowledge_statistics)||void 0===c?void 0:c.course_count,title:"应用课堂(个)"},{value:null==Tt||null===(g=Tt.knowledge_statistics)||void 0===g?void 0:g.school_count,title:"应用院校(个)"},{value:null==Tt||null===(Y=Tt.knowledge_statistics)||void 0===Y?void 0:Y.initiative_study_count,title:"自主学习人数(人)"},{value:null==Tt||null===(X=Tt.knowledge_statistics)||void 0===X?void 0:X.course_study_count,title:"课堂学习人数(人)"},{value:null==Tt||null===(it=Tt.knowledge_statistics)||void 0===it?void 0:it.knowledge_visits,title:"累计浏览次数(次)"}])||void 0===u?void 0:u.map((function(t,e){return(0,K.jsxs)("div",{className:F,children:[(0,K.jsx)(y.Z,{title:null==t?void 0:t.value,children:(0,K.jsx)("div",{className:_,children:null==t?void 0:t.value})}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.title,children:(0,K.jsx)("div",{className:U,children:null==t?void 0:t.title})})]})}))]}),(0,K.jsxs)("div",{className:z,children:[(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABZCAYAAAA+TwS/AAAAAXNSR0IArs4c6QAAC0RJREFUWEetWQtUVNUa/vaZ4SUvBVQgUCCvWhgIqGCBGqa11K46GmmaPezl6la31rK6j2r1uD0sb3Wt1JuQmma6RFKvPbSXgoKkiEiipSIgwsDMMMNrUGbm3LX3PvucM4Pd6spmuc6cffb+9vd//7///ZAAQGGxOWleztBz9PfVFkIBdhy0Pmi6KfLDqwWj/RlgUYl169zsyDv7BVCWZVJU0tZiyokY3C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+lM+MhwkE3IFNYgoeAnJRl7HZfwqrBg0kTs6yhlZusP+kzXehVizoA++4CIZWSLO+XJamkp72jOC4uzOo7ZUlDi0u9TBO7W/4k9O7GTiR8Knvkz6VBhu+GENJ5hWnvVUXqW1yy4ijOkl9GNhIZr7mcUkF8PHH+Goj+O6k3a8uoxA6WnvcC4PfXIUN+nc2VBiL1ZuXwSEgPkfFA/FDj5t/DqI+GdeZe2e2W4S9hYly0f9nVgDEv1zZdls80dmPauIFXyrO/G58UV7W7Wh29hn67ut9RbDsAyDn9BlhYYn2OyHipPwGziIzSfgPctk02+MW0tc7NiYj43R64Qgfm2aKStu1zswfN7zfAz0psD8/Jjljbb4CFxfakeTkD++X/9f4LYe+ZfKlN57QAAAAASUVORK5CYII="}),null==Tt||null===(rt=Tt.knowledge_statistics)||void 0===rt||null===(rt=rt.resource_data)||void 0===rt?void 0:rt.map((function(t,e){return(0,K.jsxs)("div",{className:F,children:[(0,K.jsx)(y.Z,{title:null==t?void 0:t.num,children:(0,K.jsx)("div",{className:_,children:null==t?void 0:t.num})}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.node_type,children:(0,K.jsx)("div",{className:U,children:null==t?void 0:t.node_type})})]})}))]})]})]}),!(null==Tt||null===(st=Tt.nodes)||void 0===st||!st.length)&&(null==Tt||null===(at=Tt.nodes)||void 0===at?void 0:at.length)<2&&(0,K.jsx)(et.Z,{style:{marginTop:84},text:"您还未创建自己的知识图谱,请点击下方“知识图谱开发空间”按钮进行创建",btnText:"知识图谱开发空间",onClick:function(){return window.open("".concat(lt,"/knowledgegraph/").concat(ot))}})]}),1===wt&&(0,K.jsxs)("div",{style:{background:"#fff",borderRadius:18,padding:20,marginTop:20},children:[(0,K.jsxs)("div",{className:"flex item-center",style:{marginBottom:15},children:[(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAO9JREFUOBFj3H//P8ePj//a/jMyRDH8/y/uZcDCyAAEoZP//QfRxAHG54yMDIv+izHUsYANY/hfyECCdkxL/kv+/89QzviKkYGFgZEhGpdhEvwMDJNiwQ6Gm5G3+D/Di49wLgoDaGgc0///QIdSDfyXZKKaWVCDiDLwxUeQN4kLZBZ8LgSGCcP2i/8Zlh6HqIq2/A9MCPh0MAAjBQ94+YmBYf5hhAJkNkIUlUWUl1G14OeNGog/fIiRHQ1DYkIJvxomRgbG5/iVkCLL+BxoIMMiUrTgUwsqtVlkWZnqHv/+Bypj44BZXxKfBtxyiCoAAHADSWb7p5YAAAAAAElFTkSuQmCC",style:{marginRight:"10px"}}),(0,K.jsx)("b",{className:"c-grey-333 font16",children:"课程介绍"})]}),(0,K.jsx)("div",{children:(0,K.jsx)(H.Z,{style:{color:"#333",fontSize:16},value:(null==Tt?void 0:Tt.description)||""})})]})]})})})),rt=["globalSetting","user","dispatch","location"],st=(0,p.connect)((function(t){return{globalSetting:t.globalSetting,user:t.user}}))((function(t){t.globalSetting,t.user,t.dispatch,t.location,d()(t,rt);var e=(0,f.useState)([{name:"",description:""}]),n=h()(e,2),i=(n[0],n[1]),s=(0,f.useState)([]),o=h()(s,2),u=(o[0],o[1],(0,f.useState)(1)),c=h()(u,2),p=(c[0],c[1]),g=(0,f.useState)(),m=h()(g,2),v=(m[0],m[1]),y=(0,f.useState)(!1),A=h()(y,2),b=A[0],w=A[1];function E(){return(E=l()(r()().mark((function t(e){var n,s,o,l;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return w(!0),t.next=3,(0,q.ZP)("/api/ai/bishengs_url/workflow/list.json",{method:"get",params:a()({},e)});case 3:n=t.sent,w(!1),200===(null==n?void 0:n.status_code)&&(i(null==n||null===(s=n.data)||void 0===s?void 0:s.data),v(null==n||null===(o=n.data)||void 0===o?void 0:o.total),0===(null==n||null===(l=n.data)||void 0===l?void 0:l.total)&&1===e.oneindex&&p(2));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,f.useEffect)((function(){!function(t){E.apply(this,arguments)}({page:1,page_size:20,oneindex:1})}),[]),console.log("loading:",b),(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(it,{})})}))},8944:function(){},36785:function(t,e,n){"use strict";n.d(e,{o2:function(){return o},yT:function(){return l}});var i=n(95190),r=n(33166);const s=r.i.map((t=>`${t}-inverse`)),a=["success","processing","error","default","warning"];function o(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?[].concat((0,i.Z)(s),(0,i.Z)(r.i)).includes(t):r.i.includes(t)}function l(t){return a.includes(t)}},79676:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(60293);const r={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},s={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function o(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:l,borderRadius:u,visibleFirst:h}=t,c=e/2,d={};return Object.keys(r).forEach((t=>{const f=o&&s[t]||r[t],p=Object.assign(Object.assign({},f),{offset:[0,0]});switch(d[t]=p,a.has(t)&&(p.autoArrow=!1),t){case"top":case"topLeft":case"topRight":p.offset[1]=-c-l;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=c+l;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-c-l;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=c+l}const g=(0,i.fS)({contentRadius:u,limitVerticalRadius:!0});if(o)switch(t){case"topLeft":case"bottomLeft":p.offset[0]=-g.dropdownArrowOffset-c;break;case"topRight":case"bottomRight":p.offset[0]=g.dropdownArrowOffset+c;break;case"leftTop":case"rightTop":p.offset[1]=-g.dropdownArrowOffset-c;break;case"leftBottom":case"rightBottom":p.offset[1]=g.dropdownArrowOffset+c}p.overflow=function(t,e,n,i){if(!1===i)return{adjustX:!1,adjustY:!1};const r=i&&"object"==typeof i?i:{},s={};switch(t){case"top":case"bottom":s.shiftX=2*e.dropdownArrowOffset+n;break;case"left":case"right":s.shiftY=2*e.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},s),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(t,g,e,n),h&&(p.htmlRegion="visibleFirst")})),d}},69507:function(t,e,n){"use strict";n.d(e,{ZP:function(){return a},c4:function(){return s}});var i=n(59301),r=n(88088);const s=["xxl","xl","lg","md","sm","xs"];function a(){const[,t]=(0,r.Z)(),e=(t=>({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`}))((t=>{const e=t,n=[].concat(s).reverse();return n.forEach(((t,i)=>{const r=t.toUpperCase(),s=`screen${r}Min`,a=`screen${r}`;if(!(e[s]<=e[a]))throw new Error(`${s}<=${a} fails : !(${e[s]}<=${e[a]})`);if(i{const t=new Map;let n=-1,i={};return{matchHandlers:{},dispatch(e){return i=e,t.forEach((t=>t(i))),t.size>=1},subscribe(e){return t.size||this.register(),n+=1,t.set(n,e),e(i),n},unsubscribe(e){t.delete(e),t.size||this.unregister()},unregister(){Object.keys(e).forEach((t=>{const n=e[t],i=this.matchHandlers[n];null==i||i.mql.removeListener(null==i?void 0:i.listener)})),t.clear()},register(){Object.keys(e).forEach((t=>{const n=e[t],r=e=>{let{matches:n}=e;this.dispatch(Object.assign(Object.assign({},i),{[t]:n}))},s=window.matchMedia(n);s.addListener(r),this.matchHandlers[n]={mql:s,listener:r},r(s)}))},responsiveMap:e}}),[t])}},43604:function(t,e,n){"use strict";var i=n(37028);e.Z=i.Z},6700:function(t,e,n){"use strict";const i=(0,n(59301).createContext)({});e.Z=i},37028:function(t,e,n){"use strict";var i=n(59301),r=n(92310),s=n.n(r),a=n(36355),o=n(6700),l=n(98242),u=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{getPrefixCls:n,direction:r}=i.useContext(a.E_),{gutter:c,wrap:d}=i.useContext(o.Z),{prefixCls:f,span:p,order:g,offset:m,push:v,pull:y,className:A,children:b,flex:w,style:E}=t,x=u(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),k=n("col",f),[T,C]=(0,l.c)(k);let D={};h.forEach((e=>{let n={};const i=t[e];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),delete x[e],D=Object.assign(Object.assign({},D),{[`${k}-${e}-${n.span}`]:void 0!==n.span,[`${k}-${e}-order-${n.order}`]:n.order||0===n.order,[`${k}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${k}-${e}-push-${n.push}`]:n.push||0===n.push,[`${k}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${k}-${e}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${k}-rtl`]:"rtl"===r})}));const S=s()(k,{[`${k}-${p}`]:void 0!==p,[`${k}-order-${g}`]:g,[`${k}-offset-${m}`]:m,[`${k}-push-${v}`]:v,[`${k}-pull-${y}`]:y},A,D,C),I={};if(c&&c[0]>0){const t=c[0]/2;I.paddingLeft=t,I.paddingRight=t}return w&&(I.flex=function(t){return"number"==typeof t?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}(w),!1!==d||I.minWidth||(I.minWidth=0)),T(i.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign({},I),E),className:S,ref:e}),b))}));e.Z=c},27382:function(t,e,n){"use strict";var i=n(59301),r=n(92310),s=n.n(r),a=n(69507),o=n(36355),l=n(6700),u=n(98242),h=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{(()=>{if("string"==typeof t&&r(t),"object"==typeof t)for(let n=0;n{const{prefixCls:n,justify:r,align:d,className:f,style:p,children:g,gutter:m=0,wrap:v}=t,y=h(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:A,direction:b}=i.useContext(o.E_),[w,E]=i.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,k]=i.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),T=c(d,x),C=c(r,x),D=i.useRef(m),S=(0,a.ZP)();i.useEffect((()=>{const t=S.subscribe((t=>{k(t);const e=D.current||0;(!Array.isArray(e)&&"object"==typeof e||Array.isArray(e)&&("object"==typeof e[0]||"object"==typeof e[1]))&&E(t)}));return()=>S.unsubscribe(t)}),[]);const I=A("row",n),[R,L]=(0,u.V)(I),B=(()=>{const t=[void 0,void 0];return(Array.isArray(m)?m:[m,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let i=0;i0?B[0]/-2:void 0;M&&(O.marginLeft=M,O.marginRight=M),[,O.rowGap]=B;const[N,F]=B,_=i.useMemo((()=>({gutter:[N,F],wrap:v})),[N,F,v]);return R(i.createElement(l.Z.Provider,{value:_},i.createElement("div",Object.assign({},y,{className:P,style:Object.assign(Object.assign({},O),p),ref:e}),g)))}));e.Z=d},98242:function(t,e,n){"use strict";n.d(e,{V:function(){return l},c:function(){return u}});var i=n(83116),r=n(37613);const s=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},o=(t,e)=>((t,e)=>{const{componentCls:n,gridColumns:i}=t,r={};for(let t=i;t>=0;t--)0===t?(r[`${n}${e}-${t}`]={display:"none"},r[`${n}-push-${t}`]={insetInlineStart:"auto"},r[`${n}-pull-${t}`]={insetInlineEnd:"auto"},r[`${n}${e}-push-${t}`]={insetInlineStart:"auto"},r[`${n}${e}-pull-${t}`]={insetInlineEnd:"auto"},r[`${n}${e}-offset-${t}`]={marginInlineStart:0},r[`${n}${e}-order-${t}`]={order:0}):(r[`${n}${e}-${t}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${t/i*100}%`,maxWidth:t/i*100+"%"}],r[`${n}${e}-push-${t}`]={insetInlineStart:t/i*100+"%"},r[`${n}${e}-pull-${t}`]={insetInlineEnd:t/i*100+"%"},r[`${n}${e}-offset-${t}`]={marginInlineStart:t/i*100+"%"},r[`${n}${e}-order-${t}`]={order:t});return r})(t,e),l=(0,i.Z)("Grid",(t=>[s(t)])),u=(0,i.Z)("Grid",(t=>{const e=(0,r.TS)(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[a(e),o(e,""),o(e,"-xs"),Object.keys(n).map((t=>((t,e,n)=>({[`@media (min-width: ${e}px)`]:Object.assign({},o(t,n))}))(e,n[t],t))).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})]}))},91454:function(t,e,n){"use strict";n.d(e,{Z:function(){return D}});var i=n(92310),r=n.n(i),s=n(59301);const a=t=>t?"function"==typeof t?t():t:null;var o=n(62892),l=n(36355),u=n(6848),h=n(55477),c=n(17313),d=n(29878),f=n(60293),p=n(33166),g=n(83116),m=n(37613);const v=t=>{const{componentCls:e,popoverColor:n,minWidth:i,fontWeightStrong:r,popoverPadding:s,boxShadowSecondary:a,colorTextHeading:o,borderRadiusLG:l,zIndexPopup:u,marginXS:h,colorBgElevated:d,popoverBg:p}=t;return[{[e]:Object.assign(Object.assign({},(0,c.Wf)(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:s},[`${e}-title`]:{minWidth:i,marginBottom:h,color:o,fontWeight:r},[`${e}-inner-content`]:{color:n}})},(0,f.ZP)(t,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},y=t=>{const{componentCls:e}=t;return{[e]:p.i.map((n=>{const i=t[`${n}6`];return{[`&${e}-${n}`]:{"--antd-arrow-background-color":i,[`${e}-inner`]:{backgroundColor:i},[`${e}-arrow`]:{background:"transparent"}}}}))}},A=t=>{const{componentCls:e,lineWidth:n,lineType:i,colorSplit:r,paddingSM:s,controlHeight:a,fontSize:o,lineHeight:l,padding:u}=t,h=a-Math.round(o*l);return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${h/2}px ${u}px ${h/2-n}px`,borderBottom:`${n}px ${i} ${r}`},[`${e}-inner-content`]:{padding:`${s}px ${u}px`}}}};var b=(0,g.Z)("Popover",(t=>{const{colorBgElevated:e,colorText:n,wireframe:i}=t,r=(0,m.TS)(t,{popoverPadding:12,popoverBg:e,popoverColor:n});return[v(r),y(r),i&&A(r),(0,d._y)(r,"zoom-big")]}),(t=>({width:177,minWidth:177,zIndexPopup:t.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]}),w=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{hashId:e,prefixCls:n,className:i,style:o,placement:l="top",title:u,content:c,children:d}=t;return s.createElement("div",{className:r()(e,n,`${n}-pure`,`${n}-placement-${l}`,i),style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(h.G,Object.assign({},t,{className:e,prefixCls:n}),d||((t,e,n)=>{if(e||n)return s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${t}-title`},a(e)),s.createElement("div",{className:`${t}-inner-content`},a(n)))})(n,u,c)))};var x=t=>{const{prefixCls:e}=t,n=w(t,["prefixCls"]),{getPrefixCls:i}=s.useContext(l.E_),r=i("popover",e),[a,o]=b(r);return a(s.createElement(E,Object.assign({},n,{prefixCls:r,hashId:o})))},k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{let{title:e,content:n,prefixCls:i}=t;return s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${i}-title`},a(e)),s.createElement("div",{className:`${i}-inner-content`},a(n)))},C=s.forwardRef(((t,e)=>{const{prefixCls:n,title:i,content:a,overlayClassName:h,placement:c="top",trigger:d="hover",mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,overlayStyle:g={}}=t,m=k(t,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:v}=s.useContext(l.E_),y=v("popover",n),[A,w]=b(y),E=v(),x=r()(h,w);return A(s.createElement(u.Z,Object.assign({placement:c,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:g},m,{prefixCls:y,overlayClassName:x,ref:e,overlay:i||a?s.createElement(T,{prefixCls:y,title:i,content:a}):null,transitionName:(0,o.m)(E,"zoom-big",m.transitionName),"data-popover-inject":!0})))}));C._InternalPanelDoNotUseOrYouWillBeFired=x;var D=C},95237:function(t,e,n){"use strict";var i=n(27382);e.Z=i.Z},60293:function(t,e,n){"use strict";n.d(e,{qN:function(){return r},ZP:function(){return o},fS:function(){return s}});const i=(t,e,n,i,r)=>{const s=t/2,a=s,o=1*n/Math.sqrt(2),l=s-n*(1-1/Math.sqrt(2)),u=s-e*(1/Math.sqrt(2)),h=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),c=2*s-u,d=h,f=2*s-o,p=l,g=2*s-0,m=a,v=s*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:i,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*s-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${o} ${l} L ${u} ${h} A ${e} ${e} 0 0 1 ${c} ${d} L ${f} ${p} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},r=8;function s(t){const e=r,{contentRadius:n,limitVerticalRadius:i}=t,s=n>12?n+2:12;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:i?e:s}}function a(t,e){return t?e:{}}function o(t,e){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:l,boxShadowPopoverArrow:u}=t,{colorBg:h,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:d,arrowDistance:f=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=e,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:m}=s({contentRadius:c,limitVerticalRadius:d});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},i(r,o,l,h,u)),{"&:before":{background:h}})]},a(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),a(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),a(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:g},[`&-placement-leftBottom ${n}-arrow`]:{bottom:g}})),a(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:g},[`&-placement-rightBottom ${n}-arrow`]:{bottom:g}}))}}},33166:function(t,e,n){"use strict";n.d(e,{i:function(){return i}});const i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(33166);function r(t,e){return i.i.reduce(((n,i)=>{const r=t[`${i}1`],s=t[`${i}3`],a=t[`${i}6`],o=t[`${i}7`];return Object.assign(Object.assign({},n),e(i,{lightColor:r,lightBorderColor:s,darkColor:a,textColor:o}))}),{})}},6848:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var i=n(59301),r=n(92310),s=n.n(r),a=n(55477),o=n(18929),l=n(62892),u=n(79676),h=n(92343),c=n(36355),d=n(33234),f=n(88088),p=n(17313),g=n(29878),m=n(60293),v=n(45157),y=n(37613),A=n(83116);const b=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:r,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:o,boxShadowSecondary:l,paddingSM:u,paddingXS:h,tooltipRadiusOuter:c}=t;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(t)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${e}-inner`]:{minWidth:o,minHeight:o,padding:`${u/2}px ${h}px`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:s,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(s,m.qN)}},[`${e}-content`]:{position:"relative"}}),(0,v.Z)(t,((t,n)=>{let{darkColor:i}=n;return{[`&${e}-${t}`]:{[`${e}-inner`]:{backgroundColor:i},[`${e}-arrow`]:{"--antd-arrow-background-color":i}}}}))),{"&-rtl":{direction:"rtl"}})},(0,m.ZP)((0,y.TS)(t,{borderRadiusOuter:c}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:s,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]};var w=(t,e)=>(0,A.Z)("Tooltip",(t=>{if(!1===e)return[];const{borderRadius:n,colorTextLightSolid:i,colorBgDefault:r,borderRadiusOuter:s}=t,a=(0,y.TS)(t,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:s>4?4:s});return[b(a),(0,g._y)(t,"zoom-big-fast")]}),(t=>{let{zIndexPopupBase:e,colorBgSpotlight:n}=t;return{zIndexPopup:e+70,colorBgDefault:n}}),{resetStyle:!1})(t),E=n(36785);function x(t,e){const n=(0,E.o2)(e),i=s()({[`${t}-${e}`]:e&&n}),r={},a={};return e&&!n&&(r.background=e,a["--antd-arrow-background-color"]=e),{className:i,overlayStyle:r,arrowStyle:a}}var k=t=>{const{prefixCls:e,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:u}=t,{getPrefixCls:h}=i.useContext(c.E_),d=h("tooltip",e),[f,p]=w(d,!0),g=x(d,l),m=g.arrowStyle,v=Object.assign(Object.assign({},u),g.overlayStyle),y=s()(p,d,`${d}-pure`,`${d}-placement-${r}`,n,g.className);return f(i.createElement("div",{className:y,style:m},i.createElement("div",{className:`${d}-arrow`}),i.createElement(a.G,Object.assign({},t,{className:p,prefixCls:d,overlayInnerStyle:v}),o)))},T=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const n={},i=Object.assign({},t);return e.forEach((e=>{t&&e in t&&(n[e]=t[e],delete i[e])})),{picked:n,omitted:i}})(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:t.props.block?"100%":void 0}),o=Object.assign(Object.assign({},r),{pointerEvents:"none"}),l=(0,h.Tm)(t,{style:o,className:null});return i.createElement("span",{style:a,className:s()(t.props.className,`${e}-disabled-compatible-wrapper`)},l)}return t}const D=i.forwardRef(((t,e)=>{var n,r;const{prefixCls:p,openClassName:g,getTooltipContainer:m,overlayClassName:v,color:y,overlayInnerStyle:A,children:b,afterOpenChange:E,afterVisibleChange:k,destroyTooltipOnHide:D,arrow:S=!0,title:I,overlay:R,builtinPlacements:L,arrowPointAtCenter:B=!1,autoAdjustOverflow:P=!0}=t,O=!!S,[,M]=(0,f.Z)(),{getPopupContainer:N,getPrefixCls:F,direction:_}=i.useContext(c.E_),U=i.useRef(null),z=()=>{var t;null===(t=U.current)||void 0===t||t.forceAlign()};i.useImperativeHandle(e,(()=>({forceAlign:z,forcePopupAlign:()=>{z()}})));const[j,G]=(0,o.Z)(!1,{value:null!==(n=t.open)&&void 0!==n?n:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),q=!I&&!R&&0!==I,H=i.useMemo((()=>{var t,e;let n=B;return"object"==typeof S&&(n=null!==(e=null!==(t=S.pointAtCenter)&&void 0!==t?t:S.arrowPointAtCenter)&&void 0!==e?e:B),L||(0,u.Z)({arrowPointAtCenter:n,autoAdjustOverflow:P,arrowWidth:O?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})}),[B,S,L,M]),Q=i.useMemo((()=>0===I?I:R||I||""),[R,I]),V=i.createElement(d.BR,null,"function"==typeof Q?Q():Q),{getPopupContainer:Y,placement:K="top",mouseEnterDelay:X=.1,mouseLeaveDelay:W=.1,overlayStyle:Z,rootClassName:J}=t,$=T(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),tt=F("tooltip",p),et=F(),nt=t["data-popover-inject"];let it=j;"open"in t||"visible"in t||!q||(it=!1);const rt=C((0,h.l$)(b)&&!(0,h.M2)(b)?b:i.createElement("span",null,b),tt),st=rt.props,at=st.className&&"string"!=typeof st.className?st.className:s()(st.className,g||`${tt}-open`),[ot,lt]=w(tt,!nt),ut=x(tt,y),ht=ut.arrowStyle,ct=Object.assign(Object.assign({},A),ut.overlayStyle),dt=s()(v,{[`${tt}-rtl`]:"rtl"===_},ut.className,J,lt);return ot(i.createElement(a.Z,Object.assign({},$,{showArrow:O,placement:K,mouseEnterDelay:X,mouseLeaveDelay:W,prefixCls:tt,overlayClassName:dt,overlayStyle:Object.assign(Object.assign({},ht),Z),getTooltipContainer:Y||m||N,ref:U,builtinPlacements:H,overlay:V,visible:it,onVisibleChange:e=>{var n,i;G(!q&&e),q||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(i=t.onVisibleChange)||void 0===i||i.call(t,e))},afterVisibleChange:null!=E?E:k,overlayInnerStyle:ct,arrowContent:i.createElement("span",{className:`${tt}-arrow-content`}),motion:{motionName:(0,l.m)(et,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!D}),it?(0,h.Tm)(rt,{className:at}):rt))}));D._InternalPanelDoNotUseOrYouWillBeFired=k;var S=D},64018:function(){window.PR_SHOULD_USE_CONTINUATION=!0,function(){var t=window,e=["break,continue,do,else,for,if,return,while"],n=[[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"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],i=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="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",l=[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"],u=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],h=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],c=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,d="str",f="com",p="typ",g="lit",m="pun",v="pln",y="atv";function A(t,e,n,i,r){if(n){var s={sourceNode:t,pre:1,langExtension:null,numberLines:null,sourceCode:n,spans:null,basePos:e,decorations:null};i(s),r.push.apply(r,s.decorations)}}var b=/\S/;function w(t){for(var e=void 0,n=t.firstChild;n;n=n.nextSibling){var i=n.nodeType;e=1===i?e?t:n:3===i&&b.test(n.nodeValue)?t:e}return e===t?void 0:e}function E(t,e){var n,i={};!function(){for(var r=t.concat(e),s=[],a={},o=0,l=r.length;o=0;)i[h.charAt(c)]=u;var d=u[1],f=""+d;a.hasOwnProperty(f)||(s.push(d),a[f]=null)}s.push(/[\0-\uffff]/),n=function(t){for(var e=0,n=!1,i=!1,r=0,s=t.length;r122||(h<65||c>90||n.push([32|Math.max(65,c),32|Math.min(h,90)]),h<97||c>122||n.push([-33&Math.max(97,c),-33&Math.min(h,122)]))}}n.sort((function(t,e){return t[0]-e[0]||e[1]-t[1]}));var d=[],f=[];for(s=0;sp[0]&&(p[1]+1>p[0]&&r.push("-"),r.push(l(p[1])))}return r.push("]"),r.join("")}function h(t){for(var i=t.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")),r=i.length,s=[],a=0,o=0;a=2&&"["===d?i[a]=u(c):"\\"!==d&&(i[a]=c.replace(/[a-zA-Z]/g,(function(t){var e=t.charCodeAt(0);return"["+String.fromCharCode(-33&e,32|e)+"]"})))}return i.join("")}var c=[];for(r=0,s=t.length;r=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[m]=y)}var x=h;if(h+=m.length,g){var k=b[1],T=m.indexOf(k),C=T+k.length;b[2]&&(T=(C=m.length-b[2].length)-k.length);var D=y.substring(5);A(l,o+x,m.substring(0,T),s,u),A(l,o+x+T,k,S(D,k),u),A(l,o+x+C,m.substring(C),s,u)}else u.push(o+x,y)}t.decorations=u};return s}function x(t){var e=[],n=[];t.tripleQuotedStrings?e.push([d,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):t.multiLineStrings?e.push([d,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):e.push([d,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),t.verbatimStrings&&n.push([d,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var i=t.hashComments;i&&(t.cStyleComments?(i>1?e.push([f,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):e.push([f,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([d,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):e.push([f,/^#[^\r\n]*/,null,"#"])),t.cStyleComments&&(n.push([f,/^\/\/[^\r\n]*/,null]),n.push([f,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r=t.regexLiterals;if(r){var s=r>1?"":"\n\r",a=s?".":"[\\S\\s]",o="/(?=[^/*"+s+"])(?:[^/\\x5B\\x5C"+s+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+s+"]|\\x5C"+a+")*(?:\\x5D|$))+/";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+o+")")])}var l=t.types;l&&n.push([p,l]);var u=(""+t.keywords).replace(/^ | $/g,"");u.length&&n.push(["kwd",new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),e.push([v,/^\s+/,null," \r\n\t "]);var h="^.[^\\s\\w.$@'\"`/\\\\]*";return t.regexLiterals&&(h+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[p,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[m,new RegExp(h),null]),E(e,n)}var k=x({keywords:[i,s,r,a,o,l,u,h],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function T(t,e,n){for(var i=/(?:^|\s)nocode(?:\s|$)/,r=/\r\n?|\n/,s=t.ownerDocument,a=s.createElement("li");t.firstChild;)a.appendChild(t.firstChild);var o=[a];function l(t){var e=t.nodeType;if(1!=e||i.test(t.className)){if((3==e||4==e)&&n){var a=t.nodeValue,o=a.match(r);if(o){var h=a.substring(0,o.index);t.nodeValue=h;var c=a.substring(o.index+o[0].length);if(c)t.parentNode.insertBefore(s.createTextNode(c),t.nextSibling);u(t),h||t.parentNode.removeChild(t)}}}else if("br"===t.nodeName)u(t),t.parentNode&&t.parentNode.removeChild(t);else for(var d=t.firstChild;d;d=d.nextSibling)l(d)}function u(t){for(;!t.nextSibling;)if(!(t=t.parentNode))return;for(var e,n=function t(e,n){var i=n?e.cloneNode(!1):e,r=e.parentNode;if(r){var s=t(r,1),a=e.nextSibling;s.appendChild(i);for(var o=a;o;o=a)a=o.nextSibling,s.appendChild(o)}return i}(t.nextSibling,0);(e=n.parentNode)&&1===e.nodeType;)n=e;o.push(n)}for(var h=0;h=0;){var r=n[i];C.hasOwnProperty(r)?t.console&&console.warn("cannot override language handler %s",r):C[r]=e}}function S(t,e){return t&&C.hasOwnProperty(t)||(t=/^\s*=b&&(h+=2),o>=w&&(f+=2)}}finally{v&&(v.style.display=y)}}(e)}catch(e){t.console&&console.log(e&&e.stack||e)}}function R(t,e,n){var i=n||!1,r=e||null,s=document.createElement("div");return s.innerHTML="
"+t+"
",s=s.firstChild,i&&T(s,i,!0),I({langExtension:r,numberLines:i,sourceNode:s,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),s.innerHTML}function L(e,n){var i=n||document.body,r=i.ownerDocument||document;function s(t){return i.getElementsByTagName(t)}for(var a=[s("pre"),s("code"),s("xmp")],o=[],l=0;l]*(?:>|$)/],[f,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),D(E([[v,/^[\s]+/,null," \t\r\n"],[y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["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"]),D(E([],[[y,/^[\s\S]+/]]),["uq.val"]),D(x({keywords:i,hashComments:!0,cStyleComments:!0,types:c}),["c","cc","cpp","cxx","cyc","m"]),D(x({keywords:"null,true,false"}),["json"]),D(x({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:c}),["cs"]),D(x({keywords:r,cStyleComments:!0}),["java"]),D(x({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),D(x({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),D(x({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),D(x({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),D(x({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),D(x({keywords:"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",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),D(E([],[[d,/^[\s\S]+/]]),["regex"]);var B=t.PR={createSimpleLexer:E,registerLangHandler:D,sourceDecorator:x,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:f,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:v,PR_PUNCTUATION:m,PR_SOURCE:"src",PR_STRING:d,PR_TAG:"tag",PR_TYPE:p,prettyPrintOne:R,prettyPrint:L},P=t.define;"function"==typeof P&&P.amd&&P("google-code-prettify",[],(function(){return B}))}()},25769:function(t,e,n){"use strict";var i=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,s,a,o,l,u,h=!1;e||(e={}),n=e.debug||!1;try{if(a=i(),o=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=t,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(i){if(i.stopPropagation(),e.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=r[e.format]||r.default;window.clipboardData.setData(s,t)}else i.clipboardData.clearData(),i.clipboardData.setData(e.format,t);e.onCopy&&(i.preventDefault(),e.onCopy(i.clipboardData))})),document.body.appendChild(u),o.selectNodeContents(u),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");h=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),s=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(s,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return h}},53184:function(t,e,n){"use strict";var i,r;i=[n(58553),n(87804),n(40998)],void 0===(r=function(t,e,n){return function(t,e,n){var i=function(e,n){return t.js_beautify(e,n)};return i.js=t.js_beautify,i.css=e.css_beautify,i.html=n.html_beautify,i.js_beautify=t.js_beautify,i.css_beautify=e.css_beautify,i.html_beautify=n.html_beautify,i}(t,e,n)}.apply(e,i))||(t.exports=r)},87804:function(t,e){var n;!function(){var i;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},,,,function(t){function e(t,e){this.raw_options=n(t,e),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(t,e){var n,r={};for(n in t=i(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function i(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},e.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=i,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var i=n(16).Beautifier,r=n(17).Options;t.exports=function(t,e){return new i(t,e).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,h=/(?:\s|\n)+/g,c=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(t,e){this._source_text=t||"",this._options=new i(e),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"]}f.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},f.prototype.eatWhitespace=function(t){for(var e=u.test(this._input.peek()),n=0;u.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===n||n0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&o.test(t||"")&&(e=t.match(o)[0]));var n=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,f,p=0,g=!1,m=!1,v=!1,y=!1,A=!1,b=this._ch,w=!1;i=""!==this._input.read(h),f=b,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),b=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var E=this._input.read(c),x=a.get_directives(E);x&&"start"===x.ignore&&(E+=a.readIgnored(this._input)),this.print_string(E),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(d)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,""),this.print_string(k),this._output.space_before_token=!0),0===p&&-1!==k.indexOf(":")&&(m=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var T=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);T.match(/[ :]$/)&&(T=this.eatString(": ").replace(/\s+$/,""),this.print_string(T),this._output.space_before_token=!0),0===p&&-1!==T.indexOf(":")?(m=!0,this.indent()):T in this.NESTED_AT_RULE?(this._nestedLevel+=1,T in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==p||m||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)m&&(m=!1,this.outdent()),y=!1,v?(v=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&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(),"{"===f&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!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),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var C=0;C"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var I='"'===f||"'"===f;this.preserveSingleSpace(I||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&w&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else 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&&u.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=f},function(t,e,n){var i=n(6).Options;function r(t){i.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},function(t){t.exports.Token=function(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(t){function e(t,e){this.raw_options=n(t,e),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(t,e){var n,r={};for(n in t=i(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function i(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},e.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=i,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,a=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();for(var e=new r(o.START,""),n=null,i=[],a=new s;e.type!==o.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(o.RAW,n):this._create_token(o.EOF,"")},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){return new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=o},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),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}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in r)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=s},,,,function(t,e,n){var i=n(19).Beautifier,r=n(20).Options;t.exports=function(t,e,n,r){return new i(t,e,n,r).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(20).Options,r=n(2).Output,s=n(21).Tokenizer,a=n(21).TOKEN,o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new r(t,e)};u.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},u.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},u.prototype.print_preserved_newlines=function(t){var e=0;t.type!==a.TEXT&&t.previous.type!==a.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},u.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(t){this._output.add_new_line(t)},u.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},u.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)};var h=function(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=function(t){for(var e=null,n=t.next;n.type!==a.EOF&&t.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(e=n.next.next.text);break}n=n.next}return e}(e)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function c(t,e){return-1!==e.indexOf(t)}function d(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function f(t){this._printer=t,this._current_frame=null}function p(t,e,n,r){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var s=new i(e,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(t){var e=new d(this._current_frame,t,this._printer.indent_level);this._current_frame=e},f.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},f.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&o.test(t)&&(e=t.match(o)[0]));var n=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new g(this._options),h=new u(this._options,n),c=new s(t,this._options).tokenize();this._tag_stack=new f(h);for(var d=null,p=c.next();p.type!==a.EOF;)p.type===a.TAG_OPEN||p.type===a.COMMENT?r=d=this._handle_tag_open(h,p,r,i,c):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!r.tag_complete?d=this._handle_inside_tag(h,p,r,i):p.type===a.TAG_CLOSE?d=this._handle_tag_close(h,p,r):p.type===a.TEXT?d=this._handle_text(h,p,r):p.type===a.CONTROL_FLOW_OPEN?d=this._handle_control_flow_open(h,p):p.type===a.CONTROL_FLOW_CLOSE?d=this._handle_control_flow_close(h,p):h.add_raw_token(p),i=d,p=c.next();return h._output.get_code(e)},p.prototype._handle_control_flow_open=function(t,e){var n={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),e.newlines?t.print_preserved_newlines(e):t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),t.print_token(e),t.indent(),n},p.prototype._handle_control_flow_close=function(t,e){var n={text:e.text,type:e.type};return t.deindent(),e.newlines?t.print_preserved_newlines(e):t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),t.print_token(e),n},p.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},p.prototype._handle_inside_tag=function(t,e,n,i){var r=n.has_wrapped_attrs,s={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):"{"===n.tag_start_char&&e.type===a.TEXT?t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e):(e.type===a.ATTRIBUTE?t.set_space_before_token(!0):(e.type===a.EQUALS||e.type===a.VALUE&&e.previous.type===a.EQUALS)&&t.set_space_before_token(!1),e.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),r=r||0!==e.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(t.print_newline(!1),r=!0)),t.print_token(e),r=r||t.previous_token_wrapped(),n.has_wrapped_attrs=r),s},p.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},p.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var r,s=e.text,a=1,o="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(t,e){return new p(t,e,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-t.indent_level);var u=t.get_full_indent(a);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(|]]>)$/.exec(s);if(!h)return void t.add_raw_token(e);o=u+h[1]+"\n",s=h[4],h[5]&&(l=u+h[5]),s=s.replace(/\n[ \t]*$/,""),(h[2]||-1!==h[3].indexOf("\n"))&&(h=h[3].match(/[ \t]+$/))&&(e.whitespace_before=h[0])}if(s)if(r){var c=function(){this.eol="\n"};c.prototype=this._options.raw_options,s=r(u+s,new c)}else{var d=e.whitespace_before;d&&(s=s.replace(new RegExp("\n("+d+")?","g"),"\n")),s=u+s.replace(/\n/g,"\n"+u)}o&&(s=s?o+s+"\n"+l:o+l),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},p.prototype._handle_tag_open=function(t,e,n,i,r){var s=this._get_tag_open_token(e);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==a.TAG_OPEN||s.is_start_tag?(t.traverse_whitespace(e),this._set_tag_position(t,e,s,n,i),s.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),s.start_tag_token=this._tag_stack.try_pop(s.tag_name)),s.is_start_tag&&this._is_wrap_attributes_force){var o,l=0;do{(o=r.peek(l)).type===a.ATTRIBUTE&&(s.attr_count+=1),l+=1}while(o.type!==a.EOF&&o.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(s.alignment_size=e.text.length+1),s.tag_complete||s.is_unformatted||(t.alignment_size=s.alignment_size),s};var g=function(t,e,n){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",n){var i;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(i=n.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||n.closed&&"/>"===n.closed.text;var r=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(r=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!t.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}else this.tag_complete=!0};p.prototype._get_tag_open_token=function(t){var e=new g(this._options,this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||c(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&c(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&c(e.tag_check,this._options.content_unformatted),e.is_inline_element=c(e.tag_name,this._options.inline)||this._options.inline_custom_elements&&e.tag_name.includes("-")||"{"===e.tag_start_char,e},p.prototype._set_tag_position=function(t,e,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=h(n.tag_check,e)))),c(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))}else if(n.is_end_tag){var s=!1;s=(s=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&t.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n)},p.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];p.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=(e=e||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==m.indexOf(t.tag_name)){var n=t.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?e=(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?e=(e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===t.tag_name?e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==t.tag_name&&"td"!==t.tag_name||(e=(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=p},function(t,e,n){var i=n(6).Options;function r(t){i.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(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_min_attrs=this._get_number("wrap_attributes_min_attrs",2),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.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),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 i,t.exports.Options=r},function(t,e,n){var i=n(9).Tokenizer,r=n(9).TOKEN,s=n(13).Directives,a=n(14).TemplatablePattern,o=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_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},u=new s(/<\!--/,/-->/),h=function(t,e){i.call(this,t,e),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new o(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(s).until_after(s)}};(h.prototype=new i)._is_comment=function(t){return!1},h.prototype._is_opening=function(t){return t.type===l.TAG_OPEN||t.type===l.CONTROL_FLOW_OPEN},h.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])||t.type===l.CONTROL_FLOW_CLOSE&&"}"===t.text&&e.text.endsWith("{")},h.prototype._reset=function(){this._current_tag_name=""},h.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,e))||this._read_attribute(i,t,e))||this._read_close(i,e))||this._read_script_and_style(i,t))||this._read_control_flows(i,e))||this._read_raw_content(i,t,e))||this._read_content_word(i,e))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,e))||this._create_token(l.UNKNOWN,this._input.next())},h.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;"<"===t&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=u.get_directives(n))&&"start"===i.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=i));return e},h.prototype._read_processing=function(t){var e=null,n=null;if("<"===t){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=null)}return e},h.prototype._read_open=function(t,e){var n=null,i=null;return e&&e.type!==l.CONTROL_FLOW_OPEN||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},h.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e&&e.type!==l.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===t&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},h.prototype._read_control_flows=function(t,e){var n="",i=null;if(!this._options.templating.includes("angular"))return i;if("@"===t){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||r!==s;){var a=this._input.next();if(null===a)break;"("===a?r++:")"===a&&s++,n+=a}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===t&&e&&e.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},h.prototype._read_close=function(t,e){var n=null,i=null;return e&&e.type===l.TAG_OPEN&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},h.prototype._read_attribute=function(t,e,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===t)i=this._create_token(l.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,s)}else(r=this.__patterns.attribute.read())&&(i=e.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},h.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},h.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var r=e.opened.text.substr(1).toLowerCase();this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(l.TEXT,i):null},h.prototype._read_script_and_style=function(t,e){if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var n=e.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var i=this._read_comment_or_cdata(t);if(i)return i.type=l.TEXT,i;var r=this._input.readUntil(new RegExp("","ig"));if(r)return this._create_token(l.TEXT,r)}}return null},h.prototype._read_content_word=function(t,e){var n="";return this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=e&&e.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n?this._create_token(l.TEXT,n):null},t.exports.Tokenizer=h,t.exports.TOKEN=l}],e={};var n=function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}(18);s=n}();var a=s;i=[n,n(58553),n(87804)],r=function(t){var e=n(58553),i=n(87804);return{html_beautify:function(t,n){return a(t,n,e.js_beautify,i.css_beautify)}}}.apply(e,i),void 0===r||(t.exports=r)}()},58553:function(t,e){var n;!function(){var i;!function(){"use strict";var t=[function(t,e,n){var i=n(1).Beautifier,r=n(5).Options;t.exports=function(t,e){return new i(t,e).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(2).Output,r=n(3).Token,s=n(4),a=n(5).Options,o=n(7).Tokenizer,l=n(7).line_starters,u=n(7).positionable_operators,h=n(7).TOKEN;function c(t,e){return-1!==e.indexOf(t)}function d(t,e){return t&&t.type===h.RESERVED&&t.text===e}function f(t,e){return t&&t.type===h.RESERVED&&c(t.text,e)}var p=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},n=0;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new r(h.START_BLOCK,""),last_word:t?t.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:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},D.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v);var n=new o(t,this._options);return this._tokens=n.tokenize(),t},D.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&s.lineBreak.test(t||"")&&(e=t.match(s.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},D.prototype.handle_token=function(t,e){t.type===h.START_EXPR?this.handle_start_expr(t):t.type===h.END_EXPR?this.handle_end_expr(t):t.type===h.START_BLOCK?this.handle_start_block(t):t.type===h.END_BLOCK?this.handle_end_block(t):t.type===h.WORD||t.type===h.RESERVED?this.handle_word(t):t.type===h.SEMICOLON?this.handle_semicolon(t):t.type===h.STRING?this.handle_string(t):t.type===h.EQUALS?this.handle_equals(t):t.type===h.OPERATOR?this.handle_operator(t):t.type===h.COMMA?this.handle_comma(t):t.type===h.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===h.COMMENT?this.handle_comment(t,e):t.type===h.DOT?this.handle_dot(t):t.type===h.EOF?this.handle_eof(t):(t.type,h.UNKNOWN,this.handle_unknown(t,e))},D.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,i=this._options.keep_array_indentation&&T(this._flags.mode);if(t.comments_before)for(var r=t.comments_before.next();r;)this.handle_whitespace_and_comments(r,e),this.handle_token(r,e),r=t.comments_before.next();if(i)for(var s=0;s0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var a=1;a0&&(!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))},D.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},D.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&k(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},D.prototype.start_of_object_property=function(){return this._flags.parent.mode===A&&this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"]))},D.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||f(this._flags.last_token,["var","let","const"])&&t.type===h.WORD)||d(this._flags.last_token,"do"))||!(this._flags.parent.mode===A&&this._flags.mode===y)&&f(this._flags.last_token,S)&&!t.newlines)||d(this._flags.last_token,"else")&&!(d(t,"if")&&!t.comments_before))||this._flags.last_token.type===h.END_EXPR&&(this._previous_flags.mode===w||this._previous_flags.mode===E))||this._flags.last_token.type===h.WORD&&this._flags.mode===v&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==h.WORD&&t.type!==h.RESERVED)||this._flags.mode===A&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,f(t,["do","for","if","while"])),!0)},D.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=x;if("["===t.text){if(this._flags.last_token.type===h.WORD||")"===this._flags.last_token.text)return f(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=b,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()),c(this._flags.last_token.type,[h.START_EXPR,h.END_EXPR,h.WORD,h.OPERATOR,h.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===h.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=w):c(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=E):c(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(c(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===h.EQUALS||this._flags.last_token.type===h.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===h.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);f(n,["async","function"])||"*"===n.text&&f(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===A?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.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(t);(this._flags.last_token.type===h.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(c(this._last_last_text,["function","yield"])||this._flags.mode===A&&c(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===h.START_BLOCK?this.print_newline():this._flags.last_token.type!==h.END_EXPR&&this._flags.last_token.type!==h.START_EXPR&&this._flags.last_token.type!==h.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==h.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},D.prototype.handle_end_expr=function(t){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==h.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),k(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===E&&(this._previous_flags.mode=x,this._flags.do_block=!1,this._flags.do_while=!1)},D.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===h.END_EXPR?(this.set_mode(v),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v):n&&(c(n.text,[":",","])&&c(e.type,[h.STRING,h.WORD,h.RESERVED])||c(e.text,["get","set","..."])&&c(n.type,[h.WORD,h.RESERVED]))?c(this._last_last_text,["class","interface"])&&!c(n.text,[":",","])?this.set_mode(v):this.set_mode(A):this._flags.last_token.type===h.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v):c(this._flags.last_token.type,[h.EQUALS,h.START_EXPR,h.COMMA,h.OPERATOR])||f(this._flags.last_token,["return","throw","import","default"])?this.set_mode(A):this.set_mode(v),this._flags.last_token&&f(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!e.comments_before&&"}"===e.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===h.END_EXPR;if(this._options.brace_preserve_inline){var s=0,a=null;this._flags.inline_frame=!0;do{if(s+=1,(a=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==h.EOF&&(a.type!==h.END_BLOCK||a.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==h.OPERATOR&&(r||this._flags.last_token.type===h.EQUALS||f(this._flags.last_token,p)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!T(this._previous_flags.mode)||this._flags.last_token.type!==h.START_EXPR&&this._flags.last_token.type!==h.COMMA||((this._flags.last_token.type===h.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===h.COMMA||this._flags.last_token.type===h.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==h.OPERATOR&&this._flags.last_token.type!==h.START_EXPR&&(c(this._flags.last_token.type,[h.START_BLOCK,h.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(t),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},D.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===y;)this.restore_mode();var e=this._flags.last_token.type===h.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(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(t)},D.prototype.handle_word=function(t){if(t.type===h.RESERVED)if(c(t.text,["set","get"])&&this._flags.mode!==A)t.type=h.WORD;else if("import"===t.text&&c(this._tokens.peek().text,["(","."]))t.type=h.WORD;else if(c(t.text,["as","from"])&&!this._flags.import_block)t.type=h.WORD;else if(this._flags.mode===A){":"===this._tokens.peek().text&&(t.type=h.WORD)}if(this.start_of_statement(t)?f(this._flags.last_token,["var","let","const"])&&t.type===h.WORD&&(this._flags.declaration_statement=!0):!t.newlines||C(this._flags.mode)||this._flags.last_token.type===h.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===h.EQUALS||!this._options.preserve_newlines&&f(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&f(t,["case","default"]))return 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(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==h.COMMA&&this._flags.last_token.type!==h.START_EXPR&&this._flags.last_token.type!==h.EQUALS&&this._flags.last_token.type!==h.OPERATOR||this.start_of_object_property()||c(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===A||this.allow_wrap_or_preserved_newline(t),d(t,"function"))return(c(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!c(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==h.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===h.RESERVED||this._flags.last_token.type===h.WORD?f(this._flags.last_token,["get","set","new","export"])||f(this._flags.last_token,S)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===h.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!C(this._flags.mode)&&!T(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";(this._flags.last_token.type===h.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":f(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):e="NEWLINE":this._flags.last_token.type===h.SEMICOLON&&this._flags.mode===v?e="NEWLINE":this._flags.last_token.type===h.SEMICOLON&&C(this._flags.mode)?e="SPACE":this._flags.last_token.type===h.STRING?e="NEWLINE":this._flags.last_token.type===h.RESERVED||this._flags.last_token.type===h.WORD||"*"===this._flags.last_token.text&&(c(this._last_last_text,["function","yield"])||this._flags.mode===A&&c(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===h.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===h.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),f(t,l)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),f(t,["else","catch","finally"]))?(this._flags.last_token.type!==h.END_BLOCK||this._previous_flags.mode!==v||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?f(this._flags.last_token,p)||"declare"===this._flags.last_token.text&&f(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==h.END_EXPR?this._flags.last_token.type===h.START_EXPR&&f(t,["var","let","const"])||":"===this._flags.last_token.text||(d(t,"if")&&d(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):f(t,l)&&")"!==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():"SPACE"===e&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==h.WORD&&t.previous.type!==h.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===h.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&d(t,"from")&&(this._flags.import_block=!1))},D.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&d(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},D.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==h.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===h.RESERVED||this._flags.last_token.type===h.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===h.COMMA||this._flags.last_token.type===h.START_EXPR||this._flags.last_token.type===h.EQUALS||this._flags.last_token.type===h.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==h.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},D.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},D.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(C(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(t)):this._flags.mode===A||this._flags.mode===y&&this._flags.parent.mode===A?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},D.prototype.handle_operator=function(t){var e="*"===t.text&&(f(this._flags.last_token,["function","yield"])||c(this._flags.last_token.type,[h.START_BLOCK,h.COMMA,h.END_BLOCK,h.SEMICOLON])),n=c(t.text,["-","+"])&&(c(this._flags.last_token.type,[h.START_BLOCK,h.START_EXPR,h.EQUALS,h.OPERATOR])||c(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var i=!e;this.handle_whitespace_and_comments(t,i)}if("*"!==t.text||this._flags.last_token.type!==h.DOT)if("::"!==t.text)if(c(t.text,["-","+"])&&this.start_of_object_property())this.print_token(t);else{if(this._flags.last_token.type===h.OPERATOR&&c(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==h.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var r=!0,s=!0,a=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,a=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&c(t.text,u)){var o=":"===t.text,d=o&&a,A=o&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!A,this.print_token(t),o&&!d||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!o||d?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case g.preserve_newline:return A||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||A),this._output.space_before_token=r,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),r=!1;var b=this._tokens.peek();s=b&&c(b.type,[h.WORD,h.RESERVED])}else if("..."===t.text)this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===h.START_BLOCK,s=!1;else if(c(t.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==h.COMMA&&this._flags.last_token.type!==h.START_EXPR||this.allow_wrap_or_preserved_newline(t),r=!1,s=!1,t.newlines&&("--"===t.text||"++"===t.text||"~"===t.text)){var w=f(this._flags.last_token,p)&&t.newlines;w&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(w,!0)}";"===this._flags.last_token.text&&C(this._flags.mode)&&(r=!0),this._flags.last_token.type===h.RESERVED?r=!0:this._flags.last_token.type===h.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===h.OPERATOR&&(r=c(t.text,["--","-","++","+"])&&c(this._flags.last_token.text,["--","-","++","+"]),c(t.text,["+","-"])&&c(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==v||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},D.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):s.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},D.prototype.print_block_commment=function(t,e){var n,i=function(t){for(var e=[],n=(t=t.replace(s.allLineBreaks,"\n")).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),r=!1,a=!1,o=t.whitespace_before,l=o.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(i[0]),this.print_newline(!1,e),i.length>1){for(r=function(t,e){for(var n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},function(t){t.exports.Token=function(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(t,e){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\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",s="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+s+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+i+"])",o="(?:"+s+"|["+n+i+r+"])*";e.identifier=new RegExp(a+o,"g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:"+s+"|["+n+i+r+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){var i=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function s(t){i.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var s=0;s>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=(v="\\?\\.(?!\\d) "+(v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var y,A=new RegExp(v),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),w=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),E=new RegExp("^(?:"+w.join("|")+")$"),x=function(t,e){r.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),i=new u(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(o.identifier).matching(o.identifierMatch),number:n.matching(f),punct:n.matching(A),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(o.lineBreak),shebang:n.starting_with(/#!/).until_after(o.lineBreak),xml:n.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:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};(x.prototype=new r)._is_comment=function(t){return t.type===c.COMMENT||t.type===c.BLOCK_COMMENT||t.type===c.UNKNOWN},x.prototype._is_opening=function(t){return t.type===c.START_BLOCK||t.type===c.START_EXPR},x.prototype._is_closing=function(t,e){return(t.type===c.END_BLOCK||t.type===c.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},x.prototype._reset=function(){y=!1},x.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(c.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(i))||this._read_string(i))||this._read_pair(i,this._input.peek(1)))||this._read_word(t))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,t))||this._read_xml(i,t))||this._read_punctuation())||this._create_token(c.UNKNOWN,this._input.next())},x.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(o.allLineBreaks,"\n"),t.type!==c.DOT&&(t.type!==c.RESERVED||"set"!==t.text&&"get"!==t.text)&&E.test(e)?"in"!==e&&"of"!==e||t.type!==c.WORD&&t.type!==c.STRING?this._create_token(c.RESERVED,e):this._create_token(c.OPERATOR,e):this._create_token(c.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(c.WORD,e):void 0},x.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(c.START_EXPR,t):")"===t||"]"===t?e=this._create_token(c.END_EXPR,t):"{"===t?e=this._create_token(c.START_BLOCK,t):"}"===t?e=this._create_token(c.END_BLOCK,t):";"===t?e=this._create_token(c.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(c.DOT,t):","===t&&(e=this._create_token(c.COMMA,t)),e&&this._input.next(),e},x.prototype._read_pair=function(t,e){var n=null;return"#"===t&&"{"===e&&(n=this._create_token(c.START_BLOCK,t+e)),n&&(this._input.next(),this._input.next()),n},x.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(c.EQUALS,t):"?."===t?this._create_token(c.DOT,t):this._create_token(c.OPERATOR,t)},x.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(c.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(c.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(p)){do{n+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(c.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)e+=this._input.next();return y=!0,this._create_token(c.COMMENT,e)}}else if(y&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(c.COMMENT,e);return null},x.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=d.get_directives(n);i&&"start"===i.ignore&&(n+=d.readIgnored(this._input)),n=n.replace(o.allLineBreaks,"\n"),(e=this._create_token(c.BLOCK_COMMENT,n)).directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(c.COMMENT,n))}return e},x.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){var e="",n=0,r=new i(t),s=null;for(;r.hasNext();)if((s=r.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=s[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())s=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){e+="\\",r.hasNext()&&(e+=r.next());continue}(s=r.match(/u([0-9A-Fa-f]{4})/g))||(s=r.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!s)return t;if((n=parseInt(s[1],16))>126&&n<=255&&0===s[0].indexOf("x"))return t;e+=n>=0&&n<32||n>1114111?"\\"+s[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(o.allLineBreaks,"\n"),this._create_token(c.STRING,e)}return null},x.prototype._allow_regexp_or_xml=function(t){return t.type===c.RESERVED&&h(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===c.END_EXPR&&")"===t.text&&t.opened.previous.type===c.RESERVED&&h(t.opened.previous.text,["if","while","for"])||h(t.type,[c.COMMENT,c.START_EXPR,c.START_BLOCK,c.START,c.END_BLOCK,c.OPERATOR,c.EQUALS,c.EOF,c.SEMICOLON,c.COMMA])},x.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),i=!1,r=!1;this._input.hasNext()&&(i||r||this._input.peek()!==t)&&!this._input.testChar(o.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(o.identifier)),this._create_token(c.STRING,n)}return null},x.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",i=this.__patterns.xml.read_match();if(i){for(var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===r.indexOf("{"),a=0;i;){var l=!!i[1],u=i[2];if(!(!!i[i.length-1]||"![CDATA["===u.slice(0,8))&&(u===r||s&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=i[0],a<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(o.allLineBreaks,"\n"),this._create_token(c.STRING,n)}}return null},x.prototype._read_string_recursive=function(t,e,n){var i,r;"'"===t?r=this.__patterns.single_quote:'"'===t?r=this.__patterns.double_quote:"`"===t?r=this.__patterns.template_text:"}"===t&&(r=this.__patterns.template_expression);for(var s=r.read(),a="";this._input.hasNext();){if((a=this._input.next())===t||!e&&o.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(a+=this._input.next()))),s+=a+=r.read()}return s},t.exports.Tokenizer=x,t.exports.TOKEN=c,t.exports.positionable_operators=m.slice(),t.exports.line_starters=b.slice()},function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,a=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();for(var e=new r(o.START,""),n=null,i=[],a=new s;e.type!==o.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(o.RAW,n):this._create_token(o.EOF,"")},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){return new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=o},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),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}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in r)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=s}],e={};var n=function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}(0);i=n}();var r=i;void 0===(n=function(){return{js_beautify:r}}.apply(e,[]))||(t.exports=n)}()},15342:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){},function(t,e,n){"use strict";n.r(e),n(0);var i=function(){function t(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}return t.range=function(e,n){return n?e&&e.loc&&n.loc&&e.loc.lexer===n.loc.lexer?new t(e.loc.lexer,e.loc.start,n.loc.end):null:e&&e.loc},t}(),r=function(){function t(t,e){this.text=void 0,this.loc=void 0,this.text=t,this.loc=e}return t.prototype.range=function(e,n){return new t(n,i.range(this,e))},t}(),s=function t(e,n){this.position=void 0;var i,r="KaTeX parse error: "+e,s=n&&n.loc;if(s&&s.start<=s.end){var a=s.lexer.input;i=s.start;var o=s.end;i===a.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=a.slice(i,o).replace(/[^]/g,"$&̲");r+=(i>15?"…"+a.slice(i-15,i):a.slice(0,i))+l+(o+15":">","<":"<",'"':""","'":"'"},u=/[&><"']/g,h=function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},c={contains:function(t,e){return-1!==t.indexOf(e)},deflt:function(t,e){return void 0===t?e:t},escape:function(t){return String(t).replace(u,(function(t){return l[t]}))},hyphenate:function(t){return t.replace(o,"-$1").toLowerCase()},getBaseElem:h,isCharacterBox:function(t){var e=h(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(t){var e=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return null!=e?e[1]:"_relative"}},d=function(){function t(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,t=t||{},this.displayMode=c.deflt(t.displayMode,!1),this.output=c.deflt(t.output,"htmlAndMathml"),this.leqno=c.deflt(t.leqno,!1),this.fleqn=c.deflt(t.fleqn,!1),this.throwOnError=c.deflt(t.throwOnError,!0),this.errorColor=c.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.minRuleThickness=Math.max(0,c.deflt(t.minRuleThickness,0)),this.colorIsTextColor=c.deflt(t.colorIsTextColor,!1),this.strict=c.deflt(t.strict,"warn"),this.trust=c.deflt(t.trust,!1),this.maxSize=Math.max(0,c.deflt(t.maxSize,1/0)),this.maxExpand=Math.max(0,c.deflt(t.maxExpand,1e3))}var e=t.prototype;return e.reportNonstrict=function(t,e,n){var i=this.strict;if("function"==typeof i&&(i=i(t,e,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",n);"warn"===i?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+e+" ["+t+"]")}},e.useStrictBehavior=function(t,e,n){var i=this.strict;if("function"==typeof i)try{i=i(t,e,n)}catch(t){i="error"}return!(!i||"ignore"===i||!0!==i&&"error"!==i&&("warn"===i?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+e+" ["+t+"]"),1)))},e.isTrusted=function(t){t.url&&!t.protocol&&(t.protocol=c.protocolFromUrl(t.url));var e="function"==typeof this.trust?this.trust(t):this.trust;return Boolean(e)},t}(),f=function(){function t(t,e,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=n}var e=t.prototype;return e.sup=function(){return p[g[this.id]]},e.sub=function(){return p[m[this.id]]},e.fracNum=function(){return p[v[this.id]]},e.fracDen=function(){return p[y[this.id]]},e.cramp=function(){return p[A[this.id]]},e.text=function(){return p[b[this.id]]},e.isTight=function(){return this.size>=2},t}(),p=[new f(0,0,!1),new f(1,0,!0),new f(2,1,!1),new f(3,1,!0),new f(4,2,!1),new f(5,2,!0),new f(6,3,!1),new f(7,3,!0)],g=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],v=[2,3,4,5,6,7,6,7],y=[3,3,5,5,7,7,7,7],A=[1,1,3,3,5,5,7,7],b=[0,1,2,3,2,3,2,3],w={DISPLAY:p[0],TEXT:p[2],SCRIPT:p[4],SCRIPTSCRIPT:p[6]},E=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],x=[];function k(t){for(var e=0;e=x[e]&&t<=x[e+1])return!0;return!1}E.forEach((function(t){return t.blocks.forEach((function(t){return x.push.apply(x,t)}))}));var T=80,C={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},D=function(){function t(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var e=t.prototype;return e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e"},B=function(){function t(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,I.call(this,t,n,i),this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){return R.call(this,"span")},e.toMarkup=function(){return L.call(this,"span")},t}(),P=function(){function t(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,I.call(this,e,i),this.children=n||[],this.setAttribute("href",t)}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){return R.call(this,"a")},e.toMarkup=function(){return L.call(this,"a")},t}(),O=function(){function t(t,e,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=t,this.classes=["mord"],this.style=n}var e=t.prototype;return e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){var t=document.createElement("img");for(var e in t.src=this.src,t.alt=this.alt,t.className="mord",this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t},e.toMarkup=function(){var t=""+this.alt+"=r[0]&&t<=r[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=M[this.text])}var e=t.prototype;return e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){var t=document.createTextNode(this.text),e=null;for(var n in this.italic>0&&((e=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((e=e||document.createElement("span")).className=S(this.classes)),this.style)this.style.hasOwnProperty(n)&&((e=e||document.createElement("span")).style[n]=this.style[n]);return e?(e.appendChild(t),e):t},e.toMarkup=function(){var t=!1,e="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=c.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,e+=' style="'+c.escape(n)+'"');var r=c.escape(this.text);return t?(e+=">",e+=r,e+=""):r},t}(),F=function(){function t(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var n=0;n":""},t}(),U=function(){function t(t){this.attributes=void 0,this.attributes=t||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","line");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);return t},e.toMarkup=function(){var t="",">"),W(Z,$,ut,":",":"),W(Z,$,ut,"≈","\\approx",!0),W(Z,$,ut,"≅","\\cong",!0),W(Z,$,ut,"≥","\\ge"),W(Z,$,ut,"≥","\\geq",!0),W(Z,$,ut,"←","\\gets"),W(Z,$,ut,">","\\gt"),W(Z,$,ut,"∈","\\in",!0),W(Z,$,ut,"","\\@not"),W(Z,$,ut,"⊂","\\subset",!0),W(Z,$,ut,"⊃","\\supset",!0),W(Z,$,ut,"⊆","\\subseteq",!0),W(Z,$,ut,"⊇","\\supseteq",!0),W(Z,tt,ut,"⊈","\\nsubseteq",!0),W(Z,tt,ut,"⊉","\\nsupseteq",!0),W(Z,$,ut,"⊨","\\models"),W(Z,$,ut,"←","\\leftarrow",!0),W(Z,$,ut,"≤","\\le"),W(Z,$,ut,"≤","\\leq",!0),W(Z,$,ut,"<","\\lt"),W(Z,$,ut,"→","\\rightarrow",!0),W(Z,$,ut,"→","\\to"),W(Z,tt,ut,"≱","\\ngeq",!0),W(Z,tt,ut,"≰","\\nleq",!0),W(Z,$,ht," ","\\ "),W(Z,$,ht," ","~"),W(Z,$,ht," ","\\space"),W(Z,$,ht," ","\\nobreakspace"),W(J,$,ht," ","\\ "),W(J,$,ht," ","~"),W(J,$,ht," ","\\space"),W(J,$,ht," ","\\nobreakspace"),W(Z,$,ht,null,"\\nobreak"),W(Z,$,ht,null,"\\allowbreak"),W(Z,$,lt,",",","),W(Z,$,lt,";",";"),W(Z,tt,nt,"⊼","\\barwedge",!0),W(Z,tt,nt,"⊻","\\veebar",!0),W(Z,$,nt,"⊙","\\odot",!0),W(Z,$,nt,"⊕","\\oplus",!0),W(Z,$,nt,"⊗","\\otimes",!0),W(Z,$,ct,"∂","\\partial",!0),W(Z,$,nt,"⊘","\\oslash",!0),W(Z,tt,nt,"⊚","\\circledcirc",!0),W(Z,tt,nt,"⊡","\\boxdot",!0),W(Z,$,nt,"△","\\bigtriangleup"),W(Z,$,nt,"▽","\\bigtriangledown"),W(Z,$,nt,"†","\\dagger"),W(Z,$,nt,"⋄","\\diamond"),W(Z,$,nt,"⋆","\\star"),W(Z,$,nt,"◃","\\triangleleft"),W(Z,$,nt,"▹","\\triangleright"),W(Z,$,ot,"{","\\{"),W(J,$,ct,"{","\\{"),W(J,$,ct,"{","\\textbraceleft"),W(Z,$,it,"}","\\}"),W(J,$,ct,"}","\\}"),W(J,$,ct,"}","\\textbraceright"),W(Z,$,ot,"{","\\lbrace"),W(Z,$,it,"}","\\rbrace"),W(Z,$,ot,"[","\\lbrack"),W(J,$,ct,"[","\\lbrack"),W(Z,$,it,"]","\\rbrack"),W(J,$,ct,"]","\\rbrack"),W(Z,$,ot,"(","\\lparen"),W(Z,$,it,")","\\rparen"),W(J,$,ct,"<","\\textless"),W(J,$,ct,">","\\textgreater"),W(Z,$,ot,"⌊","\\lfloor",!0),W(Z,$,it,"⌋","\\rfloor",!0),W(Z,$,ot,"⌈","\\lceil",!0),W(Z,$,it,"⌉","\\rceil",!0),W(Z,$,ct,"\\","\\backslash"),W(Z,$,ct,"∣","|"),W(Z,$,ct,"∣","\\vert"),W(J,$,ct,"|","\\textbar"),W(Z,$,ct,"∥","\\|"),W(Z,$,ct,"∥","\\Vert"),W(J,$,ct,"∥","\\textbardbl"),W(J,$,ct,"~","\\textasciitilde"),W(J,$,ct,"\\","\\textbackslash"),W(J,$,ct,"^","\\textasciicircum"),W(Z,$,ut,"↑","\\uparrow",!0),W(Z,$,ut,"⇑","\\Uparrow",!0),W(Z,$,ut,"↓","\\downarrow",!0),W(Z,$,ut,"⇓","\\Downarrow",!0),W(Z,$,ut,"↕","\\updownarrow",!0),W(Z,$,ut,"⇕","\\Updownarrow",!0),W(Z,$,at,"∐","\\coprod"),W(Z,$,at,"⋁","\\bigvee"),W(Z,$,at,"⋀","\\bigwedge"),W(Z,$,at,"⨄","\\biguplus"),W(Z,$,at,"⋂","\\bigcap"),W(Z,$,at,"⋃","\\bigcup"),W(Z,$,at,"∫","\\int"),W(Z,$,at,"∫","\\intop"),W(Z,$,at,"∬","\\iint"),W(Z,$,at,"∭","\\iiint"),W(Z,$,at,"∏","\\prod"),W(Z,$,at,"∑","\\sum"),W(Z,$,at,"⨂","\\bigotimes"),W(Z,$,at,"⨁","\\bigoplus"),W(Z,$,at,"⨀","\\bigodot"),W(Z,$,at,"∮","\\oint"),W(Z,$,at,"∯","\\oiint"),W(Z,$,at,"∰","\\oiiint"),W(Z,$,at,"⨆","\\bigsqcup"),W(Z,$,at,"∫","\\smallint"),W(J,$,rt,"…","\\textellipsis"),W(Z,$,rt,"…","\\mathellipsis"),W(J,$,rt,"…","\\ldots",!0),W(Z,$,rt,"…","\\ldots",!0),W(Z,$,rt,"⋯","\\@cdots",!0),W(Z,$,rt,"⋱","\\ddots",!0),W(Z,$,ct,"⋮","\\varvdots"),W(Z,$,et,"ˊ","\\acute"),W(Z,$,et,"ˋ","\\grave"),W(Z,$,et,"¨","\\ddot"),W(Z,$,et,"~","\\tilde"),W(Z,$,et,"ˉ","\\bar"),W(Z,$,et,"˘","\\breve"),W(Z,$,et,"ˇ","\\check"),W(Z,$,et,"^","\\hat"),W(Z,$,et,"⃗","\\vec"),W(Z,$,et,"˙","\\dot"),W(Z,$,et,"˚","\\mathring"),W(Z,$,st,"ı","\\imath",!0),W(Z,$,st,"ȷ","\\jmath",!0),W(J,$,ct,"ı","\\i",!0),W(J,$,ct,"ȷ","\\j",!0),W(J,$,ct,"ß","\\ss",!0),W(J,$,ct,"æ","\\ae",!0),W(J,$,ct,"æ","\\ae",!0),W(J,$,ct,"œ","\\oe",!0),W(J,$,ct,"ø","\\o",!0),W(J,$,ct,"Æ","\\AE",!0),W(J,$,ct,"Œ","\\OE",!0),W(J,$,ct,"Ø","\\O",!0),W(J,$,et,"ˊ","\\'"),W(J,$,et,"ˋ","\\`"),W(J,$,et,"ˆ","\\^"),W(J,$,et,"˜","\\~"),W(J,$,et,"ˉ","\\="),W(J,$,et,"˘","\\u"),W(J,$,et,"˙","\\."),W(J,$,et,"˚","\\r"),W(J,$,et,"ˇ","\\v"),W(J,$,et,"¨",'\\"'),W(J,$,et,"˝","\\H"),W(J,$,et,"◯","\\textcircled");var dt={"--":!0,"---":!0,"``":!0,"''":!0};W(J,$,ct,"–","--"),W(J,$,ct,"–","\\textendash"),W(J,$,ct,"—","---"),W(J,$,ct,"—","\\textemdash"),W(J,$,ct,"‘","`"),W(J,$,ct,"‘","\\textquoteleft"),W(J,$,ct,"’","'"),W(J,$,ct,"’","\\textquoteright"),W(J,$,ct,"“","``"),W(J,$,ct,"“","\\textquotedblleft"),W(J,$,ct,"”","''"),W(J,$,ct,"”","\\textquotedblright"),W(Z,$,ct,"°","\\degree",!0),W(J,$,ct,"°","\\degree"),W(J,$,ct,"°","\\textdegree",!0),W(Z,$,st,"£","\\pounds"),W(Z,$,st,"£","\\mathsterling",!0),W(J,$,st,"£","\\pounds"),W(J,$,st,"£","\\textsterling",!0),W(Z,tt,ct,"✠","\\maltese"),W(J,tt,ct,"✠","\\maltese"),W(J,$,ht," ","\\ "),W(J,$,ht," "," "),W(J,$,ht," ","~");for(var ft='0123456789/@."',pt=0;pt=5?0:t>=3?1:2]){var n=Q[e]={cssEmPerMu:G.quad[e]/18};for(var i in G)G.hasOwnProperty(i)&&(n[i]=G[i][e])}return Q[e]}(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":this.color},t}();Mt.BASESIZE=6;var Nt=Mt,Ft={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},_t={ex:!0,em:!0,mu:!0},Ut=function(t){return"string"!=typeof t&&(t=t.unit),t in Ft||t in _t||"ex"===t},zt=function(t,e){var n;if(t.unit in Ft)n=Ft[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)n=e.fontMetrics().cssEmPerMu;else{var i;if(i=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===t.unit)n=i.fontMetrics().xHeight;else{if("em"!==t.unit)throw new a("Invalid unit: '"+t.unit+"'");n=i.fontMetrics().quad}i!==e&&(n*=i.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*n,e.maxSize)},jt=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],Gt=function(t,e,n){return X[n][t]&&X[n][t].replace&&(t=X[n][t].replace),{value:t,metrics:H(t,e,n)}},qt=function(t,e,n,i,r){var s,a=Gt(t,e,n),o=a.metrics;if(t=a.value,o){var l=o.italic;("text"===n||i&&"mathit"===i.font)&&(l=0),s=new N(t,o.height,o.depth,l,o.skew,o.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"' and mode '"+n+"'"),s=new N(t,0,0,0,0,0,r);if(i){s.maxFontSize=i.sizeMultiplier,i.style.isTight()&&s.classes.push("mtight");var u=i.getColor();u&&(s.style.color=u)}return s},Ht=function(t,e){if(S(t.classes)!==S(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},Qt=function(t){for(var e=0,n=0,i=0,r=0;re&&(e=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=e,t.depth=n,t.maxFontSize=i},Vt=function(t,e,n,i){var r=new B(t,e,n,i);return Qt(r),r},Yt=function(t,e,n,i){return new B(t,e,n,i)},Kt=function(t){var e=new D(t);return Qt(e),e},Xt=function(t,e,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}return i+"-"+("textbf"===e&&"textit"===n?"BoldItalic":"textbf"===e?"Bold":"textit"===e?"Italic":"Regular")},Wt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Zt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Jt={fontMap:Wt,makeSymbol:qt,mathsym:function(t,e,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&Gt(t,"Main-Bold",e).metrics?qt(t,"Main-Bold",e,n,i.concat(["mathbf"])):"\\"===t||"main"===X[e][t].font?qt(t,"Main-Regular",e,n,i):qt(t,"AMS-Regular",e,n,i.concat(["amsrm"]))},makeSpan:Vt,makeSvgSpan:Yt,makeLineSpan:function(t,e,n){var i=Vt([t],[],e);return i.height=Math.max(n||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),i.style.borderBottomWidth=i.height+"em",i.maxFontSize=1,i},makeAnchor:function(t,e,n,i){var r=new P(t,e,n,i);return Qt(r),r},makeFragment:Kt,wrapFragment:function(t,e){return t instanceof D?Vt([],[t],e):t},makeVList:function(t,e){for(var n=function(t){if("individualShift"===t.positionType){for(var e=t.children,n=[e[0]],i=-e[0].shift-e[0].elem.depth,r=i,s=1;s0&&(s.push(De(a,e)),a=[]),s.push(r[o]));a.length>0&&s.push(De(a,e)),n&&((i=De(be(n,e,!0))).classes=["tag"],s.push(i));var u=ge(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),i){var h=i.children[0];h.style.height=u.height+u.depth+"em",h.style.verticalAlign=-u.depth+"em"}return u}function Ie(t){return new D(t)}var Re=function(){function t(t,e){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=t,this.attributes={},this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.getAttribute=function(t){return this.attributes[t]},e.toNode=function(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var n=0;n"},e.toText=function(){return this.children.map((function(t){return t.toText()})).join("")},t}(),Le=function(){function t(t){this.text=void 0,this.text=t}var e=t.prototype;return e.toNode=function(){return document.createTextNode(this.text)},e.toMarkup=function(){return c.escape(this.toText())},e.toText=function(){return this.text},t}(),Be={MathNode:Re,TextNode:Le,SpaceNode:function(){function t(t){this.width=void 0,this.character=void 0,this.width=t,this.character=t>=.05555&&t<=.05556?" ":t>=.1666&&t<=.1667?" ":t>=.2222&&t<=.2223?" ":t>=.2777&&t<=.2778?"  ":t>=-.05556&&t<=-.05555?" ⁣":t>=-.1667&&t<=-.1666?" ⁣":t>=-.2223&&t<=-.2222?" ⁣":t>=-.2778&&t<=-.2777?" ⁣":null}var e=t.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",this.width+"em"),t},e.toMarkup=function(){return this.character?""+this.character+"":''},e.toText=function(){return this.character?this.character:" "},t}(),newDocumentFragment:Ie},Pe=function(t,e,n){return!X[e][t]||!X[e][t].replace||55349===t.charCodeAt(0)||dt.hasOwnProperty(t)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(t=X[e][t].replace),new Be.TextNode(t)},Oe=function(t){return 1===t.length?t[0]:new Be.MathNode("mrow",t)},Me=function(t,e){if("texttt"===e.fontFamily)return"monospace";if("textsf"===e.fontFamily)return"textit"===e.fontShape&&"textbf"===e.fontWeight?"sans-serif-bold-italic":"textit"===e.fontShape?"sans-serif-italic":"textbf"===e.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===e.fontShape&&"textbf"===e.fontWeight)return"bold-italic";if("textit"===e.fontShape)return"italic";if("textbf"===e.fontWeight)return"bold";var n=e.font;if(!n||"mathnormal"===n)return null;var i=t.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=t.text;return c.contains(["\\imath","\\jmath"],r)?null:(X[i][r]&&X[i][r].replace&&(r=X[i][r].replace),H(r,Jt.fontMap[n].fontName,i)?Jt.fontMap[n].variant:null)},Ne=function(t,e,n){if(1===t.length){var i=_e(t[0],e);return n&&i instanceof Re&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var r,s=[],a=0;a0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),s.pop())}}}s.push(o),r=o}return s},Fe=function(t,e,n){return Oe(Ne(t,e,n))},_e=function(t,e){if(!t)return new Be.MathNode("mrow");if(ce[t.type])return ce[t.type](t,e);throw new a("Got group of unknown type: '"+t.type+"'")};function Ue(t,e,n,i){var r,s=Ne(t,n);r=1===s.length&&s[0]instanceof Re&&c.contains(["mrow","mtable"],s[0].type)?s[0]:new Be.MathNode("mrow",s);var a=new Be.MathNode("annotation",[new Be.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var o=new Be.MathNode("semantics",[r,a]),l=new Be.MathNode("math",[o]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var u=i?"katex":"katex-mathml";return Jt.makeSpan([u],[l])}var ze=function(t){return new Nt({style:t.displayMode?w.DISPLAY:w.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},je=function(t,e){if(e.displayMode){var n=["katex-display"];e.leqno&&n.push("leqno"),e.fleqn&&n.push("fleqn"),t=Jt.makeSpan(n,[t])}return t},Ge=function(t,e,n){var i,r=ze(n);if("mathml"===n.output)return Ue(t,e,r,!0);if("html"===n.output){var s=Se(t,r);i=Jt.makeSpan(["katex"],[s])}else{var a=Ue(t,e,r,!1),o=Se(t,r);i=Jt.makeSpan(["katex"],[a,o])}return je(i,n)},qe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},He={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Qe=function(t,e,n,i){var r,s=t.height+t.depth+2*n;if(/fbox|color/.test(e)){if(r=Jt.makeSpan(["stretchy",e],[],i),"fbox"===e){var a=i.color&&i.getColor();a&&(r.style.borderColor=a)}}else{var o=[];/^[bx]cancel$/.test(e)&&o.push(new U({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&o.push(new U({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new F(o,{width:"100%",height:s+"em"});r=Jt.makeSvgSpan([],[l],i)}return r.height=s,r.style.height=s+"em",r},Ve=function(t){var e=new Be.MathNode("mo",[new Be.TextNode(qe[t.substr(1)])]);return e.setAttribute("stretchy","true"),e},Ye=function(t,e){var n=function(){var n=4e5,i=t.label.substr(1);if(c.contains(["widehat","widecheck","widetilde","utilde"],i)){var r,s,a,o="ordgroup"===(p=t.base).type?p.body.length:1;if(o>5)"widehat"===i||"widecheck"===i?(r=420,n=2364,a=.42,s=i+"4"):(r=312,n=2340,a=.34,s="tilde4");else{var l=[1,1,2,2,3,3][o];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][l],r=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],s=i+l):(n=[0,600,1033,2339,2340][l],r=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],s="tilde"+l)}var u=new _(s),h=new F([u],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:Jt.makeSvgSpan([],[h],e),minWidth:0,height:a}}var d,f,p,g=[],m=He[i],v=m[0],y=m[1],A=m[2],b=A/1e3,w=v.length;if(1===w)d=["hide-tail"],f=[m[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var E=0;E0&&(i.style.minWidth=r+"em"),i},Ke=function(t,e){var n,i,r,s=te(t,"supsub");s?(n=(i=$t(s.base,"accent")).base,s.base=n,r=function(t){if(t instanceof B)return t;throw new Error("Expected span but got "+String(t)+".")}(Ce(s,e)),s.base=i):n=(i=$t(t,"accent")).base;var a=Ce(n,e.havingCrampedStyle()),o=0;if(i.isShifty&&c.isCharacterBox(n)){var l=c.getBaseElem(n);o=z(Ce(l,e.havingCrampedStyle())).skew}var u,h=Math.min(a.height,e.fontMetrics().xHeight);if(i.isStretchy)u=Ye(i,e),u=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+2*o+"em)",marginLeft:2*o+"em"}:void 0}]},e);else{var d,f;"\\vec"===i.label?(d=Jt.staticSvg("vec",e),f=Jt.svgData.vec[1]):((d=z(d=Jt.makeOrd({mode:i.mode,text:i.label},e,"textord"))).italic=0,f=d.width),u=Jt.makeSpan(["accent-body"],[d]);var p="\\textcircled"===i.label;p&&(u.classes.push("accent-full"),h=a.height);var g=o;p||(g-=f/2),u.style.left=g+"em","\\textcircled"===i.label&&(u.style.top=".2em"),u=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:u}]},e)}var m=Jt.makeSpan(["mord","accent"],[u],e);return r?(r.children[0]=m,r.height=Math.max(m.height,r.height),r.classes[0]="mord",r):m},Xe=function(t,e){var n=t.isStretchy?Ve(t.label):new Be.MathNode("mo",[Pe(t.label,t.mode)]),i=new Be.MathNode("mover",[_e(t.base,e),n]);return i.setAttribute("accent","true"),i},We=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(t){return"\\"+t})).join("|"));de({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,e){var n=e[0],i=!We.test(t.funcName),r=!i||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:i,isShifty:r,base:n}},htmlBuilder:Ke,mathmlBuilder:Xe}),de({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var n=e[0];return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ke,mathmlBuilder:Xe}),de({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];return{type:"accentUnder",mode:n.mode,label:i,base:r}},htmlBuilder:function(t,e){var n=Ce(t.base,e),i=Ye(t,e),r="\\utilde"===t.label?.12:0,s=Jt.makeVList({positionType:"bottom",positionData:i.height+r,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},e);return Jt.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:function(t,e){var n=Ve(t.label),i=new Be.MathNode("munder",[_e(t.base,e),n]);return i.setAttribute("accentunder","true"),i}});var Ze=function(t){var e=new Be.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};de({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(t,e,n){var i=t.parser,r=t.funcName;return{type:"xArrow",mode:i.mode,label:r,body:e[0],below:n[0]}},htmlBuilder:function(t,e){var n,i=e.style,r=e.havingStyle(i.sup()),s=Jt.wrapFragment(Ce(t.body,r,e),e);s.classes.push("x-arrow-pad"),t.below&&(r=e.havingStyle(i.sub()),(n=Jt.wrapFragment(Ce(t.below,r,e),e)).classes.push("x-arrow-pad"));var a,o=Ye(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;if((s.depth>.25||"\\xleftequilibrium"===t.label)&&(u-=s.depth),n){var h=-e.fontMetrics().axisHeight+n.height+.5*o.height+.111;a=Jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:n,shift:h}]},e)}else a=Jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:o,shift:l}]},e);return a.children[0].children[0].children[1].classes.push("svg-align"),Jt.makeSpan(["mrel","x-arrow"],[a],e)},mathmlBuilder:function(t,e){var n,i=Ve(t.label);if(t.body){var r=Ze(_e(t.body,e));if(t.below){var s=Ze(_e(t.below,e));n=new Be.MathNode("munderover",[i,s,r])}else n=new Be.MathNode("mover",[i,r])}else if(t.below){var a=Ze(_e(t.below,e));n=new Be.MathNode("munder",[i,a])}else n=Ze(),n=new Be.MathNode("mover",[i,n]);return n}}),de({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var n=t.parser,i=$t(e[0],"ordgroup").body,r="",s=0;s","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fn=[0,1.2,1.8,2.4,3],pn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],gn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"stack"}],mn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=function(t){if("small"===t.type)return"Main-Regular";if("large"===t.type)return"Size"+t.size+"-Regular";if("stack"===t.type)return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},yn=function(t,e,n,i){for(var r=Math.min(2,3-i.style.size);re)return n[r]}return n[n.length-1]},An=function(t,e,n,i,r,s){var a;"<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),a=c.contains(dn,t)?pn:c.contains(hn,t)?mn:gn;var o=yn(t,e,a,i);return"small"===o.type?function(t,e,n,i,r,s){var a=Jt.makeSymbol(t,"Main-Regular",r,i),o=en(a,e,i,s);return n&&nn(o,i,e),o}(t,o.style,n,i,r,s):"large"===o.type?rn(t,o.size,n,i,r,s):on(t,e,n,i,r,s)},bn=function(t,e){var n,i,r=e.havingBaseSizing(),s=yn("\\surd",t*r.sizeMultiplier,mn,r),a=r.sizeMultiplier,o=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness),l=0,u=0,h=0;return"small"===s.type?(t<1?a=1:t<1.4&&(a=.7),u=(1+o)/a,(n=un("sqrtMain",l=(1+o+ln)/a,h=1e3+1e3*o+80,o,e)).style.minWidth="0.853em",i=.833/a):"large"===s.type?(h=1080*fn[s.size],u=(fn[s.size]+o)/a,l=(fn[s.size]+o+ln)/a,(n=un("sqrtSize"+s.size,l,h,o,e)).style.minWidth="1.02em",i=1/a):(l=t+o+ln,u=t+o,h=Math.floor(1e3*t+o)+80,(n=un("sqrtTall",l,h,o,e)).style.minWidth="0.742em",i=1.056),n.height=u,n.style.height=l+"em",{span:n,advanceWidth:i,ruleWidth:(e.fontMetrics().sqrtRuleThickness+o)*a}},wn=function(t,e,n,i,r){if("<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),c.contains(hn,t)||c.contains(dn,t))return rn(t,e,!1,n,i,r);if(c.contains(cn,t))return on(t,fn[e],!1,n,i,r);throw new a("Illegal delimiter: '"+t+"'")},En=An,xn=function(t,e,n,i,r,s){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,o=5/i.fontMetrics().ptPerEm,l=Math.max(e-a,n+a),u=Math.max(l/500*901,2*l-o);return An(t,u,!0,i,r,s)},kn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Tn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Cn(t,e){var n=ie(t);if(n&&c.contains(Tn,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(t))+"' after '"+e.funcName+"'",t)}function Dn(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}de({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(t,e){var n=Cn(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:kn[t.funcName].size,mclass:kn[t.funcName].mclass,delim:n.text}},htmlBuilder:function(t,e){return"."===t.delim?Jt.makeSpan([t.mclass]):wn(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(Pe(t.delim,t.mode));var n=new Be.MathNode("mo",e);return"mopen"===t.mclass||"mclose"===t.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),de({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){var n=t.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Cn(e[0],t).text,color:n}}}),de({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var n=Cn(e[0],t),i=t.parser;++i.leftrightDepth;var r=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=$t(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:r,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:function(t,e){Dn(t);for(var n,i,r=be(t.body,e,!0,["mopen","mclose"]),s=0,a=0,o=!1,l=0;l-1?"mpadded":"menclose",[_e(t.body,e)]);switch(t.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===t.label){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);i.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return t.backgroundColor&&i.setAttribute("mathbackground",t.backgroundColor),i};de({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(t,e,n){var i=t.parser,r=t.funcName,s=$t(e[0],"color-token").color,a=e[1];return{type:"enclose",mode:i.mode,label:r,backgroundColor:s,body:a}},htmlBuilder:Sn,mathmlBuilder:In}),de({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(t,e,n){var i=t.parser,r=t.funcName,s=$t(e[0],"color-token").color,a=$t(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:i.mode,label:r,backgroundColor:a,borderColor:s,body:o}},htmlBuilder:Sn,mathmlBuilder:In}),de({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(t,e){return{type:"enclose",mode:t.parser.mode,label:"\\fbox",body:e[0]}}}),de({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(t,e,n){var i=t.parser,r=t.funcName,s=e[0];return{type:"enclose",mode:i.mode,label:r,body:s}},htmlBuilder:Sn,mathmlBuilder:In});var Rn={};function Ln(t){for(var e=t.type,n=t.names,i=t.props,r=t.handler,s=t.htmlBuilder,a=t.mathmlBuilder,o={type:e,numArgs:i.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:r},l=0;l0&&(A+=.25),u.push({pos:A,isDashed:t[e]})}for(b(s[0]),n=0;n0&&(k<(S+=y)&&(k=S),S=0),t.addJot&&(k+=g),T.height=x,T.depth=k,A+=x,T.pos=A,A+=k+S,l[n]=T,b(s[n+1])}var I,R,L=A/2+e.fontMetrics().axisHeight,B=t.cols||[],P=[];for(i=0,R=0;i=o)){var _=void 0;(i>0||t.hskipBeforeAndAfter)&&0!==(_=c.deflt(O.pregap,f))&&((I=Jt.makeSpan(["arraycolsep"],[])).style.width=_+"em",P.push(I));var U=[];for(n=0;n0){for(var q=Jt.makeLineSpan("hline",e,h),H=Jt.makeLineSpan("hdashline",e,h),Q=[{type:"elem",elem:l,shift:0}];u.length>0;){var V=u.pop(),Y=V.pos-L;V.isDashed?Q.push({type:"elem",elem:H,shift:Y}):Q.push({type:"elem",elem:q,shift:Y})}l=Jt.makeVList({positionType:"individualShift",children:Q},e)}return Jt.makeSpan(["mord"],[l],e)},Nn={c:"center ",l:"left ",r:"right "},Fn=function(t,e){var n=new Be.MathNode("mtable",t.body.map((function(t){return new Be.MathNode("mtr",t.map((function(t){return new Be.MathNode("mtd",[_e(t,e)])})))}))),i=.5===t.arraystretch?.1:.16+t.arraystretch-1+(t.addJot?.09:0);n.setAttribute("rowspacing",i+"em");var r="",s="";if(t.cols){var a=t.cols,o="",l=!1,u=0,h=a.length;"separator"===a[0].type&&(r+="top ",u=1),"separator"===a[a.length-1].type&&(r+="bottom ",h-=1);for(var c=u;c0?"left ":"",r+=m[m.length-1].length>0?"right ":"";for(var v=1;v0&&c&&(p=1),i[d]={type:"align",align:f,pregap:p,postgap:0}}return r.colSeparationType=c?"align":"alignat",r};Ln({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var n={cols:(ie(e[0])?[e[0]]:$t(e[0],"ordgroup").body).map((function(t){var e=ne(t).text;if(-1!=="lcr".indexOf(e))return{type:"align",align:e};if("|"===e)return{type:"separator",separator:"|"};if(":"===e)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+e,t)})),hskipBeforeAndAfter:!0};return Pn(t.parser,n,On(t.envName))},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName],n=Pn(t.parser,{hskipBeforeAndAfter:!1},On(t.envName));return e?{type:"leftright",mode:t.mode,body:[n],left:e[0],right:e[1],rightColor:void 0}:n},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(t){var e=Pn(t.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["subarray"],props:{numArgs:1},handler:function(t,e){var n=(ie(e[0])?[e[0]]:$t(e[0],"ordgroup").body).map((function(t){var e=ne(t).text;if(-1!=="lc".indexOf(e))return{type:"align",align:e};throw new a("Unknown column alignment: "+e,t)}));if(n.length>1)throw new a("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=Pn(t.parser,i,"script")).body[0].length>1)throw new a("{subarray} can contain only one column");return i},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(t){var e=Pn(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},On(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["aligned"],props:{numArgs:0},handler:_n,htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){return Pn(t.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["alignedat"],props:{numArgs:1},handler:_n,htmlBuilder:Mn,mathmlBuilder:Fn}),de({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t,e){throw new a(t.funcName+" valid only within array environment")}});var Un=Rn;de({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];if("ordgroup"!==r.type)throw new a("Invalid environment name",r);for(var s="",o=0;o=w.SCRIPT.id?n.text():w.DISPLAY:"text"===t&&n.size===w.DISPLAY.size?n=w.TEXT:"script"===t?n=w.SCRIPT:"scriptscript"===t&&(n=w.SCRIPTSCRIPT),n},Kn=function(t,e){var n,i=Yn(t.size,e.style),r=i.fracNum(),s=i.fracDen();n=e.havingStyle(r);var a=Ce(t.numer,n,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;a.height=a.height0?3*c:7*c,p=e.fontMetrics().denom1):(h>0?(d=e.fontMetrics().num2,f=c):(d=e.fontMetrics().num3,f=3*c),p=e.fontMetrics().denom2),u){var b=e.fontMetrics().axisHeight;d-a.depth-(b+.5*h)0&&(e="."===(e=t)?null:e),e};de({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(t,e){var n=t.parser,i=e[4],r=e[5],s=te(e[0],"atom");s&&(s=ee(e[0],"open"));var a=s?Zn(s.text):null,o=te(e[1],"atom");o&&(o=ee(e[1],"close"));var l,u=o?Zn(o.text):null,h=$t(e[2],"size"),c=null;l=!!h.isBlank||(c=h.value).number>0;var d="auto",f=te(e[3],"ordgroup");if(f){if(f.body.length>0){var p=$t(f.body[0],"textord");d=Wn[Number(p.text)]}}else f=$t(e[3],"textord"),d=Wn[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:i,denom:r,continued:!1,hasBarLine:l,barSize:c,leftDelim:a,rightDelim:u,size:d}},htmlBuilder:Kn,mathmlBuilder:Xn}),de({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(t,e){var n=t.parser,i=(t.funcName,t.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:$t(e[0],"size").value,token:i}}}),de({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var n=t.parser,i=(t.funcName,e[0]),r=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}($t(e[1],"infix").size),s=e[2],a=r.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:a,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Kn,mathmlBuilder:Xn});var Jn=function(t,e){var n,i,r=e.style,s=te(t,"supsub");s?(n=s.sup?Ce(s.sup,e.havingStyle(r.sup()),e):Ce(s.sub,e.havingStyle(r.sub()),e),i=$t(s.base,"horizBrace")):i=$t(t,"horizBrace");var a,o=Ce(i.base,e.havingBaseStyle(w.DISPLAY)),l=Ye(i,e);if(i.isOver?(a=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(a=Jt.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},e)).children[0].children[0].children[0].classes.push("svg-align"),n){var u=Jt.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);a=i.isOver?Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},e):Jt.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return Jt.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)};de({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(t,e){var n=t.parser,i=t.funcName;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:e[0]}},htmlBuilder:Jn,mathmlBuilder:function(t,e){var n=Ve(t.label);return new Be.MathNode(t.isOver?"mover":"munder",[_e(t.base,e),n])}}),de({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var n=t.parser,i=e[1],r=$t(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:pe(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(t,e){var n=be(t.body,e,!1);return Jt.makeAnchor(t.href,[],n,e)},mathmlBuilder:function(t,e){var n=Fe(t.body,e);return n instanceof Re||(n=new Re("mrow",[n])),n.setAttribute("href",t.href),n}}),de({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){var n=t.parser,i=$t(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var r=[],s=0;s0&&(i=zt(t.totalheight,e)-n,i=Number(i.toFixed(2)));var r=0;t.width.number>0&&(r=zt(t.width,e));var s={height:n+i+"em"};r>0&&(s.width=r+"em"),i>0&&(s.verticalAlign=-i+"em");var a=new O(t.src,t.alt,s);return a.height=n,a.depth=i,a},mathmlBuilder:function(t,e){var n=new Be.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var i=zt(t.height,e),r=0;if(t.totalheight.number>0&&(r=(r=zt(t.totalheight,e)-i).toFixed(2),n.setAttribute("valign","-"+r+"em")),n.setAttribute("height",i+r+"em"),t.width.number>0){var s=zt(t.width,e);n.setAttribute("width",s+"em")}return n.setAttribute("src",t.src),n}}),de({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(t,e){var n=t.parser,i=t.funcName,r=$t(e[0],"size");if(n.settings.strict){var s="m"===i[1],a="mu"===r.value.unit;s?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:function(t,e){return Jt.makeGlue(t.dimension,e)},mathmlBuilder:function(t,e){var n=zt(t.dimension,e);return new Be.SpaceNode(n)}}),de({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:r}},htmlBuilder:function(t,e){var n;"clap"===t.alignment?(n=Jt.makeSpan([],[Ce(t.body,e)]),n=Jt.makeSpan(["inner"],[n],e)):n=Jt.makeSpan(["inner"],[Ce(t.body,e)]);var i=Jt.makeSpan(["fix"],[]),r=Jt.makeSpan([t.alignment],[n,i],e),s=Jt.makeSpan(["strut"]);return s.style.height=r.height+r.depth+"em",s.style.verticalAlign=-r.depth+"em",r.children.unshift(s),r=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},e),Jt.makeSpan(["mord"],[r],e)},mathmlBuilder:function(t,e){var n=new Be.MathNode("mpadded",[_e(t.body,e)]);if("rlap"!==t.alignment){var i="llap"===t.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),de({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var n=t.funcName,i=t.parser,r=i.mode;i.switchMode("math");var s="\\("===n?"\\)":"$",a=i.parseExpression(!1,s);return i.expect(s),i.switchMode(r),{type:"styling",mode:i.mode,style:"text",body:a}}}),de({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t,e){throw new a("Mismatched "+t.funcName)}});var ti=function(t,e){switch(e.style.size){case w.DISPLAY.size:return t.display;case w.TEXT.size:return t.text;case w.SCRIPT.size:return t.script;case w.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};de({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(t,e){return{type:"mathchoice",mode:t.parser.mode,display:pe(e[0]),text:pe(e[1]),script:pe(e[2]),scriptscript:pe(e[3])}},htmlBuilder:function(t,e){var n=ti(t,e),i=be(n,e,!1);return Jt.makeFragment(i)},mathmlBuilder:function(t,e){var n=ti(t,e);return Fe(n,e)}});var ei=function(t,e,n,i,r,s,a){var o,l,u;if(t=Jt.makeSpan([],[t]),e){var h=Ce(e,i.havingStyle(r.sup()),i);l={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var c=Ce(n,i.havingStyle(r.sub()),i);o={elem:c,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-c.height)}}if(l&&o){var d=i.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+t.depth+a;u=Jt.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:-s+"em"},{type:"kern",size:o.kern},{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:s+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(o){var f=t.height-a;u=Jt.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:-s+"em"},{type:"kern",size:o.kern},{type:"elem",elem:t}]},i)}else{if(!l)return t;var p=t.depth+a;u=Jt.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:s+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}return Jt.makeSpan(["mop","op-limits"],[u],i)},ni=["\\smallint"],ii=function(t,e){var n,i,r,s=!1,a=te(t,"supsub");a?(n=a.sup,i=a.sub,r=$t(a.base,"op"),s=!0):r=$t(t,"op");var o,l=e.style,u=!1;if(l.size===w.DISPLAY.size&&r.symbol&&!c.contains(ni,r.name)&&(u=!0),r.symbol){var h=u?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(d=r.name.substr(1),r.name="oiint"===d?"\\iint":"\\iiint"),o=Jt.makeSymbol(r.name,h,"math",e,["mop","op-symbol",u?"large-op":"small-op"]),d.length>0){var f=o.italic,p=Jt.staticSvg(d+"Size"+(u?"2":"1"),e);o=Jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:u?.08:0}]},e),r.name="\\"+d,o.classes.unshift("mop"),o.italic=f}}else if(r.body){var g=be(r.body,e,!0);1===g.length&&g[0]instanceof N?(o=g[0]).classes[0]="mop":o=Jt.makeSpan(["mop"],Jt.tryCombineChars(g),e)}else{for(var m=[],v=1;v0){for(var l=r.body.map((function(t){var e=t.text;return"string"==typeof e?{type:"textord",mode:t.mode,text:e}:t})),u=be(l,e.withFont("mathrm"),!0),h=0;h=0?o.setAttribute("height","+"+r+"em"):(o.setAttribute("height",r+"em"),o.setAttribute("depth","+"+-r+"em")),o.setAttribute("voffset",r+"em"),o}});var ui=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];de({type:"sizing",names:ui,props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.breakOnTokenText,i=t.funcName,r=t.parser,s=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:ui.indexOf(i)+1,body:s}},htmlBuilder:function(t,e){var n=e.havingSize(t.size);return li(t.body,n,e)},mathmlBuilder:function(t,e){var n=e.havingSize(t.size),i=Ne(t.body,n),r=new Be.MathNode("mstyle",i);return r.setAttribute("mathsize",n.sizeMultiplier+"em"),r}}),de({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(t,e,n){var i=t.parser,r=!1,s=!1,a=n[0]&&$t(n[0],"ordgroup");if(a)for(var o="",l=0;ln.height+n.depth+s&&(s=(s+c-n.height-n.depth)/2);var d=l.height-n.height-s-u;n.style.paddingLeft=h+"em";var f=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:u}]},e);if(t.index){var p=e.havingStyle(w.SCRIPTSCRIPT),g=Ce(t.index,p,e),m=.6*(f.height-f.depth),v=Jt.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:g}]},e),y=Jt.makeSpan(["root"],[v]);return Jt.makeSpan(["mord","sqrt"],[y,f],e)}return Jt.makeSpan(["mord","sqrt"],[f],e)},mathmlBuilder:function(t,e){var n=t.body,i=t.index;return i?new Be.MathNode("mroot",[_e(n,e),_e(i,e)]):new Be.MathNode("msqrt",[_e(n,e)])}});var hi={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};de({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.breakOnTokenText,i=t.funcName,r=t.parser,s=r.parseExpression(!0,n),a=i.slice(1,i.length-5);return{type:"styling",mode:r.mode,style:a,body:s}},htmlBuilder:function(t,e){var n=hi[t.style],i=e.havingStyle(n).withFont("");return li(t.body,i,e)},mathmlBuilder:function(t,e){var n=hi[t.style],i=e.havingStyle(n),r=Ne(t.body,i),s=new Be.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return s.setAttribute("scriptlevel",a[0]),s.setAttribute("displaystyle",a[1]),s}}),fe({type:"supsub",htmlBuilder:function(t,e){var n=function(t,e){var n=t.base;return n?"op"===n.type?n.limits&&(e.style.size===w.DISPLAY.size||n.alwaysHandleSupSub)?ii:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(e.style.size===w.DISPLAY.size||n.limits)?oi:null:"accent"===n.type?c.isCharacterBox(n.base)?Ke:null:"horizBrace"===n.type&&!t.sub===n.isOver?Jn:null:null}(t,e);if(n)return n(t,e);var i,r,s,a=t.base,o=t.sup,l=t.sub,u=Ce(a,e),h=e.fontMetrics(),d=0,f=0,p=a&&c.isCharacterBox(a);if(o){var g=e.havingStyle(e.style.sup());i=Ce(o,g,e),p||(d=u.height-g.fontMetrics().supDrop*g.sizeMultiplier/e.sizeMultiplier)}if(l){var m=e.havingStyle(e.style.sub());r=Ce(l,m,e),p||(f=u.depth+m.fontMetrics().subDrop*m.sizeMultiplier/e.sizeMultiplier)}s=e.style===w.DISPLAY?h.sup1:e.style.cramped?h.sup3:h.sup2;var v,y=e.sizeMultiplier,A=.5/h.ptPerEm/y+"em",b=null;if(r){var E=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(u instanceof N||E)&&(b=-u.italic+"em")}if(i&&r){d=Math.max(d,s,i.depth+.25*h.xHeight),f=Math.max(f,h.sub2);var x=4*h.defaultRuleThickness;if(d-i.depth-(r.height-f)0&&(d+=k,f-=k)}var T=[{type:"elem",elem:r,shift:f,marginRight:A,marginLeft:b},{type:"elem",elem:i,shift:-d,marginRight:A}];v=Jt.makeVList({positionType:"individualShift",children:T},e)}else if(r){f=Math.max(f,h.sub1,r.height-.8*h.xHeight);var C=[{type:"elem",elem:r,marginLeft:b,marginRight:A}];v=Jt.makeVList({positionType:"shift",positionData:f,children:C},e)}else{if(!i)throw new Error("supsub must have either sup or sub.");d=Math.max(d,s,i.depth+.25*h.xHeight),v=Jt.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:i,marginRight:A}]},e)}var D=ke(u,"right")||"mord";return Jt.makeSpan([D],[u,Jt.makeSpan(["msupsub"],[v])],e)},mathmlBuilder:function(t,e){var n,i=!1,r=te(t.base,"horizBrace");r&&!!t.sup===r.isOver&&(i=!0,n=r.isOver),!t.base||"op"!==t.base.type&&"operatorname"!==t.base.type||(t.base.parentIsSupSub=!0);var s,a=[_e(t.base,e)];if(t.sub&&a.push(_e(t.sub,e)),t.sup&&a.push(_e(t.sup,e)),i)s=n?"mover":"munder";else if(t.sub)if(t.sup){var o=t.base;s=o&&"op"===o.type&&o.limits&&e.style===w.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(e.style===w.DISPLAY||o.limits)?"munderover":"msubsup"}else{var l=t.base;s=l&&"op"===l.type&&l.limits&&(e.style===w.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||e.style===w.DISPLAY)?"munder":"msub"}else{var u=t.base;s=u&&"op"===u.type&&u.limits&&(e.style===w.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||e.style===w.DISPLAY)?"mover":"msup"}return new Be.MathNode(s,a)}}),fe({type:"atom",htmlBuilder:function(t,e){return Jt.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var n=new Be.MathNode("mo",[Pe(t.text,t.mode)]);if("bin"===t.family){var i=Me(t,e);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===t.family?n.setAttribute("separator","true"):"open"!==t.family&&"close"!==t.family||n.setAttribute("stretchy","false");return n}});var ci={mi:"italic",mn:"normal",mtext:"normal"};fe({type:"mathord",htmlBuilder:function(t,e){return Jt.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var n=new Be.MathNode("mi",[Pe(t.text,t.mode,e)]),i=Me(t,e)||"italic";return i!==ci[n.type]&&n.setAttribute("mathvariant",i),n}}),fe({type:"textord",htmlBuilder:function(t,e){return Jt.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var n,i=Pe(t.text,t.mode,e),r=Me(t,e)||"normal";return n="text"===t.mode?new Be.MathNode("mtext",[i]):/[0-9]/.test(t.text)?new Be.MathNode("mn",[i]):"\\prime"===t.text?new Be.MathNode("mo",[i]):new Be.MathNode("mi",[i]),r!==ci[n.type]&&n.setAttribute("mathvariant",r),n}});var di={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},fi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};fe({type:"spacing",htmlBuilder:function(t,e){if(fi.hasOwnProperty(t.text)){var n=fi[t.text].className||"";if("text"===t.mode){var i=Jt.makeOrd(t,e,"textord");return i.classes.push(n),i}return Jt.makeSpan(["mspace",n],[Jt.mathsym(t.text,t.mode,e)],e)}if(di.hasOwnProperty(t.text))return Jt.makeSpan(["mspace",di[t.text]],[],e);throw new a('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t,e){if(!fi.hasOwnProperty(t.text)){if(di.hasOwnProperty(t.text))return new Be.MathNode("mspace");throw new a('Unknown type of space "'+t.text+'"')}return new Be.MathNode("mtext",[new Be.TextNode(" ")])}});var pi=function(){var t=new Be.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};fe({type:"tag",mathmlBuilder:function(t,e){var n=new Be.MathNode("mtable",[new Be.MathNode("mtr",[pi(),new Be.MathNode("mtd",[Fe(t.body,e)]),pi(),new Be.MathNode("mtd",[Fe(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var gi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},mi={"\\textbf":"textbf","\\textmd":"textmd"},vi={"\\textit":"textit","\\textup":"textup"},yi=function(t,e){var n=t.font;return n?gi[n]?e.withTextFontFamily(gi[n]):mi[n]?e.withTextFontWeight(mi[n]):e.withTextFontShape(vi[n]):e};de({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];return{type:"text",mode:n.mode,body:pe(r),font:i}},htmlBuilder:function(t,e){var n=yi(t,e),i=be(t.body,n,!0);return Jt.makeSpan(["mord","text"],Jt.tryCombineChars(i),n)},mathmlBuilder:function(t,e){var n=yi(t,e);return Fe(t.body,n)}}),de({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){return{type:"underline",mode:t.parser.mode,body:e[0]}},htmlBuilder:function(t,e){var n=Ce(t.body,e),i=Jt.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,s=Jt.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:i},{type:"kern",size:3*r},{type:"elem",elem:n}]},e);return Jt.makeSpan(["mord","underline"],[s],e)},mathmlBuilder:function(t,e){var n=new Be.MathNode("mo",[new Be.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new Be.MathNode("munder",[_e(t.body,e),n]);return i.setAttribute("accentunder","true"),i}}),de({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(t,e,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var n=Ai(t),i=[],r=e.havingStyle(e.style.text()),s=0;s0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(t)&&(r[t]=this.current[t])}this.current[t]=e},t}(),Ri={},Li=Ri;function Bi(t,e){Ri[t]=e}Bi("\\@firstoftwo",(function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}})),Bi("\\@secondoftwo",(function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}})),Bi("\\@ifnextchar",(function(t){var e=t.consumeArgs(3),n=t.future();return 1===e[0].length&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}})),Bi("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Bi("\\TextOrMath",(function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}}));var Pi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Bi("\\char",(function(t){var e,n=t.popToken(),i="";if("'"===n.text)e=8,n=t.popToken();else if('"'===n.text)e=16,n=t.popToken();else if("`"===n.text)if("\\"===(n=t.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");i=n.text.charCodeAt(0)}else e=10;if(e){if(null==(i=Pi[n.text])||i>=e)throw new a("Invalid base-"+e+" digit "+n.text);for(var r;null!=(r=Pi[t.future().text])&&r":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Bi("\\dots",(function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Ni?e=Ni[n]:("\\not"===n.substr(0,4)||n in X.math&&c.contains(["bin","rel"],X.math[n].group))&&(e="\\dotsb"),e}));var Fi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Bi("\\dotso",(function(t){return t.future().text in Fi?"\\ldots\\,":"\\ldots"})),Bi("\\dotsc",(function(t){var e=t.future().text;return e in Fi&&","!==e?"\\ldots\\,":"\\ldots"})),Bi("\\cdots",(function(t){return t.future().text in Fi?"\\@cdots\\,":"\\@cdots"})),Bi("\\dotsb","\\cdots"),Bi("\\dotsm","\\cdots"),Bi("\\dotsi","\\!\\cdots"),Bi("\\dotsx","\\ldots\\,"),Bi("\\DOTSI","\\relax"),Bi("\\DOTSB","\\relax"),Bi("\\DOTSX","\\relax"),Bi("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Bi("\\,","\\tmspace+{3mu}{.1667em}"),Bi("\\thinspace","\\,"),Bi("\\>","\\mskip{4mu}"),Bi("\\:","\\tmspace+{4mu}{.2222em}"),Bi("\\medspace","\\:"),Bi("\\;","\\tmspace+{5mu}{.2777em}"),Bi("\\thickspace","\\;"),Bi("\\!","\\tmspace-{3mu}{.1667em}"),Bi("\\negthinspace","\\!"),Bi("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Bi("\\negthickspace","\\tmspace-{5mu}{.277em}"),Bi("\\enspace","\\kern.5em "),Bi("\\enskip","\\hskip.5em\\relax"),Bi("\\quad","\\hskip1em\\relax"),Bi("\\qquad","\\hskip2em\\relax"),Bi("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Bi("\\tag@paren","\\tag@literal{({#1})}"),Bi("\\tag@literal",(function(t){if(t.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Bi("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Bi("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Bi("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Bi("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Bi("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Bi("\\\\","\\newline"),Bi("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _i=j["Main-Regular"]["T".charCodeAt(0)][1]-.7*j["Main-Regular"]["A".charCodeAt(0)][1]+"em";Bi("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+_i+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Bi("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+_i+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Bi("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Bi("\\@hspace","\\hskip #1\\relax"),Bi("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Bi("\\ordinarycolon",":"),Bi("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Bi("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Bi("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Bi("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Bi("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Bi("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Bi("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Bi("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Bi("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Bi("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Bi("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Bi("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Bi("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Bi("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Bi("∷","\\dblcolon"),Bi("∹","\\eqcolon"),Bi("≔","\\coloneqq"),Bi("≕","\\eqqcolon"),Bi("⩴","\\Coloneqq"),Bi("\\ratio","\\vcentcolon"),Bi("\\coloncolon","\\dblcolon"),Bi("\\colonequals","\\coloneqq"),Bi("\\coloncolonequals","\\Coloneqq"),Bi("\\equalscolon","\\eqqcolon"),Bi("\\equalscoloncolon","\\Eqqcolon"),Bi("\\colonminus","\\coloneq"),Bi("\\coloncolonminus","\\Coloneq"),Bi("\\minuscolon","\\eqcolon"),Bi("\\minuscoloncolon","\\Eqcolon"),Bi("\\coloncolonapprox","\\Colonapprox"),Bi("\\coloncolonsim","\\Colonsim"),Bi("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Bi("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Bi("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Bi("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Bi("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Bi("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Bi("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Bi("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Bi("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Bi("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Bi("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Bi("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Bi("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Bi("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Bi("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Bi("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Bi("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Bi("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Bi("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Bi("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Bi("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Bi("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Bi("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Bi("⟦","\\llbracket"),Bi("⟧","\\rrbracket"),Bi("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Bi("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Bi("⦃","\\lBrace"),Bi("⦄","\\rBrace"),Bi("\\darr","\\downarrow"),Bi("\\dArr","\\Downarrow"),Bi("\\Darr","\\Downarrow"),Bi("\\lang","\\langle"),Bi("\\rang","\\rangle"),Bi("\\uarr","\\uparrow"),Bi("\\uArr","\\Uparrow"),Bi("\\Uarr","\\Uparrow"),Bi("\\N","\\mathbb{N}"),Bi("\\R","\\mathbb{R}"),Bi("\\Z","\\mathbb{Z}"),Bi("\\alef","\\aleph"),Bi("\\alefsym","\\aleph"),Bi("\\Alpha","\\mathrm{A}"),Bi("\\Beta","\\mathrm{B}"),Bi("\\bull","\\bullet"),Bi("\\Chi","\\mathrm{X}"),Bi("\\clubs","\\clubsuit"),Bi("\\cnums","\\mathbb{C}"),Bi("\\Complex","\\mathbb{C}"),Bi("\\Dagger","\\ddagger"),Bi("\\diamonds","\\diamondsuit"),Bi("\\empty","\\emptyset"),Bi("\\Epsilon","\\mathrm{E}"),Bi("\\Eta","\\mathrm{H}"),Bi("\\exist","\\exists"),Bi("\\harr","\\leftrightarrow"),Bi("\\hArr","\\Leftrightarrow"),Bi("\\Harr","\\Leftrightarrow"),Bi("\\hearts","\\heartsuit"),Bi("\\image","\\Im"),Bi("\\infin","\\infty"),Bi("\\Iota","\\mathrm{I}"),Bi("\\isin","\\in"),Bi("\\Kappa","\\mathrm{K}"),Bi("\\larr","\\leftarrow"),Bi("\\lArr","\\Leftarrow"),Bi("\\Larr","\\Leftarrow"),Bi("\\lrarr","\\leftrightarrow"),Bi("\\lrArr","\\Leftrightarrow"),Bi("\\Lrarr","\\Leftrightarrow"),Bi("\\Mu","\\mathrm{M}"),Bi("\\natnums","\\mathbb{N}"),Bi("\\Nu","\\mathrm{N}"),Bi("\\Omicron","\\mathrm{O}"),Bi("\\plusmn","\\pm"),Bi("\\rarr","\\rightarrow"),Bi("\\rArr","\\Rightarrow"),Bi("\\Rarr","\\Rightarrow"),Bi("\\real","\\Re"),Bi("\\reals","\\mathbb{R}"),Bi("\\Reals","\\mathbb{R}"),Bi("\\Rho","\\mathrm{P}"),Bi("\\sdot","\\cdot"),Bi("\\sect","\\S"),Bi("\\spades","\\spadesuit"),Bi("\\sub","\\subset"),Bi("\\sube","\\subseteq"),Bi("\\supe","\\supseteq"),Bi("\\Tau","\\mathrm{T}"),Bi("\\thetasym","\\vartheta"),Bi("\\weierp","\\wp"),Bi("\\Zeta","\\mathrm{Z}"),Bi("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Bi("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Bi("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Bi("\\blue","\\textcolor{##6495ed}{#1}"),Bi("\\orange","\\textcolor{##ffa500}{#1}"),Bi("\\pink","\\textcolor{##ff00af}{#1}"),Bi("\\red","\\textcolor{##df0030}{#1}"),Bi("\\green","\\textcolor{##28ae7b}{#1}"),Bi("\\gray","\\textcolor{gray}{#1}"),Bi("\\purple","\\textcolor{##9d38bd}{#1}"),Bi("\\blueA","\\textcolor{##ccfaff}{#1}"),Bi("\\blueB","\\textcolor{##80f6ff}{#1}"),Bi("\\blueC","\\textcolor{##63d9ea}{#1}"),Bi("\\blueD","\\textcolor{##11accd}{#1}"),Bi("\\blueE","\\textcolor{##0c7f99}{#1}"),Bi("\\tealA","\\textcolor{##94fff5}{#1}"),Bi("\\tealB","\\textcolor{##26edd5}{#1}"),Bi("\\tealC","\\textcolor{##01d1c1}{#1}"),Bi("\\tealD","\\textcolor{##01a995}{#1}"),Bi("\\tealE","\\textcolor{##208170}{#1}"),Bi("\\greenA","\\textcolor{##b6ffb0}{#1}"),Bi("\\greenB","\\textcolor{##8af281}{#1}"),Bi("\\greenC","\\textcolor{##74cf70}{#1}"),Bi("\\greenD","\\textcolor{##1fab54}{#1}"),Bi("\\greenE","\\textcolor{##0d923f}{#1}"),Bi("\\goldA","\\textcolor{##ffd0a9}{#1}"),Bi("\\goldB","\\textcolor{##ffbb71}{#1}"),Bi("\\goldC","\\textcolor{##ff9c39}{#1}"),Bi("\\goldD","\\textcolor{##e07d10}{#1}"),Bi("\\goldE","\\textcolor{##a75a05}{#1}"),Bi("\\redA","\\textcolor{##fca9a9}{#1}"),Bi("\\redB","\\textcolor{##ff8482}{#1}"),Bi("\\redC","\\textcolor{##f9685d}{#1}"),Bi("\\redD","\\textcolor{##e84d39}{#1}"),Bi("\\redE","\\textcolor{##bc2612}{#1}"),Bi("\\maroonA","\\textcolor{##ffbde0}{#1}"),Bi("\\maroonB","\\textcolor{##ff92c6}{#1}"),Bi("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Bi("\\maroonD","\\textcolor{##ca337c}{#1}"),Bi("\\maroonE","\\textcolor{##9e034e}{#1}"),Bi("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Bi("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Bi("\\purpleC","\\textcolor{##aa87ff}{#1}"),Bi("\\purpleD","\\textcolor{##7854ab}{#1}"),Bi("\\purpleE","\\textcolor{##543b78}{#1}"),Bi("\\mintA","\\textcolor{##f5f9e8}{#1}"),Bi("\\mintB","\\textcolor{##edf2df}{#1}"),Bi("\\mintC","\\textcolor{##e0e5cc}{#1}"),Bi("\\grayA","\\textcolor{##f6f7f7}{#1}"),Bi("\\grayB","\\textcolor{##f0f1f2}{#1}"),Bi("\\grayC","\\textcolor{##e3e5e6}{#1}"),Bi("\\grayD","\\textcolor{##d6d8da}{#1}"),Bi("\\grayE","\\textcolor{##babec2}{#1}"),Bi("\\grayF","\\textcolor{##888d93}{#1}"),Bi("\\grayG","\\textcolor{##626569}{#1}"),Bi("\\grayH","\\textcolor{##3b3e40}{#1}"),Bi("\\grayI","\\textcolor{##21242c}{#1}"),Bi("\\kaBlue","\\textcolor{##314453}{#1}"),Bi("\\kaGreen","\\textcolor{##71B307}{#1}");var Ui={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},zi=function(){function t(t,e,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=e,this.expansionCount=0,this.feed(t),this.macros=new Ii(Li,e.macros),this.mode=n,this.stack=[]}var e=t.prototype;return e.feed=function(t){this.lexer=new Si(t,this.settings)},e.switchMode=function(t){this.mode=t},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(t){this.stack.push(t)},e.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},e.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},e.consumeArgs=function(t){for(var e=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var i=n.tokens;if(n.numArgs)for(var r=this.consumeArgs(n.numArgs),s=(i=i.slice()).length-1;s>=0;--s){var o=i[s];if("#"===o.text){if(0===s)throw new a("Incomplete placeholder at end of macro body",o);if("#"===(o=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(o.text))throw new a("Not a valid argument number",o);var l;(l=i).splice.apply(l,[s,2].concat(r[+o.text-1]))}}}return this.pushTokens(i),i},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof r){if("\\relax"!==t.text)return this.stack.pop();this.stack.pop()}}throw new Error},e.expandMacro=function(t){if(this.macros.get(t)){var e=[],n=this.stack.length;for(this.pushToken(new r(t));this.stack.length>n;)this.expandOnce()instanceof r&&e.push(this.stack.pop());return e}},e.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map((function(t){return t.text})).join(""):e},e._getExpansion=function(t){var e=this.macros.get(t);if(null==e)return e;var n="function"==typeof e?e(this):e;if("string"==typeof n){var i=0;if(-1!==n.indexOf("#"))for(var r=n.replace(/##/g,"");-1!==r.indexOf("#"+(i+1));)++i;for(var s=new Si(n,this.settings),a=[],o=s.lex();"EOF"!==o.text;)a.push(o),o=s.lex();return a.reverse(),{tokens:a,numArgs:i}}return n},e.isDefined=function(t){return this.macros.has(t)||bi.hasOwnProperty(t)||X.math.hasOwnProperty(t)||X.text.hasOwnProperty(t)||Ui.hasOwnProperty(t)},t}(),ji={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},Gi={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},qi=function(){function t(t,e){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new zi(t,e,this.mode),this.settings=e,this.leftrightDepth=0}var e=t.prototype;return e.expect=function(t,e){if(void 0===e&&(e=!0),this.fetch().text!==t)throw new a("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());e&&this.consume()},e.consume=function(){this.nextToken=null},e.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},e.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},e.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var t=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),t},e.parseExpression=function(e,n){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==t.endOfExpression.indexOf(r.text))break;if(n&&r.text===n)break;if(e&&bi[r.text]&&bi[r.text].infix)break;var s=this.parseAtom(n);if(!s)break;i.push(s)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)},e.handleInfixNodes=function(t){for(var e,n=-1,i=0;i0&&!u||0===o&&!u&&"math"===this.mode,c=this.parseGroupOfType("argument to '"+t+"'",l,u,i,h);if(!c){if(u){s.push(null);continue}throw new a("Expected group after '"+t+"'",this.fetch())}(u?s:r).push(c)}return{args:r,optArgs:s}},e.parseGroupOfType=function(t,e,n,i,r){switch(e){case"color":return r&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return r&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,r);case"math":case"text":return this.parseGroup(t,n,i,void 0,e,r);case"hbox":var s=this.parseGroup(t,n,i,void 0,"text",r);return s?{type:"styling",mode:s.mode,body:[s],style:"text"}:s;case"raw":if(r&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var o=this.parseStringGroup("raw",n,!0);if(o)return{type:"raw",mode:"text",string:o.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(t,n,i,void 0,void 0,r);default:throw new a("Unknown group type as "+t,this.fetch())}},e.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},e.parseStringGroup=function(t,e,n){var i=e?"[":"{",r=e?"]":"}",s=this.fetch();if(s.text!==i){if(e)return null;if(n&&"EOF"!==s.text&&/[^{}[\]]/.test(s.text))return this.consume(),s}var o=this.mode;this.mode="text",this.expect(i);for(var l,u="",h=this.fetch(),c=0,d=h;(l=this.fetch()).text!==r||n&&c>0;){switch(l.text){case"EOF":throw new a("Unexpected end of input in "+t,h.range(d,u));case i:c++;break;case r:c--}u+=(d=l).text,this.consume()}return this.expect(r),this.mode=o,h.range(d,u)},e.parseRegexGroup=function(t,e){var n=this.mode;this.mode="text";for(var i,r=this.fetch(),s=r,o="";"EOF"!==(i=this.fetch()).text&&t.test(o+i.text);)o+=(s=i).text,this.consume();if(""===o)throw new a("Invalid "+e+": '"+r.text+"'",r);return this.mode=n,r.range(s,o)},e.parseColorGroup=function(t){var e=this.parseStringGroup("color",t);if(!e)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!n)throw new a("Invalid color: '"+e.text+"'",e);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}},e.parseSizeGroup=function(t){var e,n=!1;if(!(e=t||"{"===this.fetch().text?this.parseStringGroup("size",t):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;t||0!==e.text.length||(e.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!i)throw new a("Invalid size: '"+e.text+"'",e);var r={number:+(i[1]+i[2]),unit:i[3]};if(!Ut(r))throw new a("Invalid unit: '"+r.unit+"'",e);return{type:"size",mode:this.mode,value:r,isBlank:n}},e.parseUrlGroup=function(t,e){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",t,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}},e.parseGroup=function(e,n,r,s,o,l){var u=this.mode;o&&this.switchMode(o),l&&this.consumeSpaces();var h,c=this.fetch(),d=c.text;if(n?"["===d:"{"===d||"\\begingroup"===d){this.consume();var f=t.endOfGroup[d];this.gullet.beginGroup();var p=this.parseExpression(!1,f),g=this.fetch();this.expect(f),this.gullet.endGroup(),h={type:"ordgroup",mode:this.mode,loc:i.range(c,g),body:p,semisimple:"\\begingroup"===d||void 0}}else if(n)h=null;else if(null==(h=this.parseFunction(s,e,r)||this.parseSymbol())&&"\\"===d[0]&&!Ui.hasOwnProperty(d)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+d,c);h=this.formatUnsupportedCmd(d),this.consume()}return o&&this.switchMode(u),h},e.formLigatures=function(t){for(var e=t.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var l,u=X[this.mode][e].group,h=i.range(t);if(V.hasOwnProperty(u)){var c=u;l={type:"atom",mode:this.mode,family:c,loc:h,text:e}}else l={type:u,mode:this.mode,loc:h,text:e};s=l}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(k(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),s={type:"textord",mode:"text",loc:i.range(t),text:e}}if(this.consume(),o)for(var d=0;dt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s={exports:{}};function a(){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 o(t){s.exports.defaults=t}s.exports={defaults:a(),getDefaults:a,changeDefaults:o};var l=/[&<>"']/,u=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(t){return d[t]};function p(t,e){if(e){if(l.test(t))return t.replace(u,f)}else if(h.test(t))return t.replace(c,f);return t}var g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(t){return t.replace(g,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var v=/(^|[^\[])\^/g;function y(t,e){t=t.source||t,e=e||"";var n={replace:function(e,i){return i=(i=i.source||i).replace(v,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n}var A=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(t,e,n){if(t){var i;try{i=decodeURIComponent(m(n)).replace(A,"").toLowerCase()}catch(t){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!b.test(n)&&(n=C(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}var E={},x=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(t,e){E[" "+t]||(x.test(t)?E[" "+t]=t+"/":E[" "+t]=I(t,"/",!0));var n=-1===(t=E[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(k,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(T,"$1")+e:t+e}function D(t){for(var e,n,i=1;i=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>e)n.splice(e);else for(;n.length1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}var P={escape:p,unescape:m,edit:y,cleanUrl:w,resolveUrl:C,noopTest:{exec:function(){}},merge:D,splitCells:S,rtrim:I,findClosingBracket:R,checkSanitizeDeprecation:L,repeatString:B},O=s.exports.defaults,M=P.rtrim,N=P.splitCells,F=P.escape,_=P.findClosingBracket;function U(t,e,n){var i=e.href,r=e.title?F(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:s}:{type:"image",raw:n,href:i,title:r,text:F(s)}}function z(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=i.length?t.slice(i.length):t})).join("\n")}var j=function(){function t(t){this.options=t||O}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:M(n,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=z(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:i}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=M(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:N(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,s,a,o,l,u,h,c=e[0],d=e[2],f=d.length>1,p={type:"list",raw:c,ordered:f,start:f?+d.slice(0,-1):"",loose:!1,items:[]},g=e[0].match(this.rules.block.item),m=!1,v=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var y=0;yr[1].length:s[1].length>=r[0].length||s[1].length>3){g.splice(y,2,g[y]+(!this.options.pedantic&&s[1].length/i.test(i[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):F(i[0]):i[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=M(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=_(e[2],"()");if(r>-1){var s=(0===e[0].indexOf("!")?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,s).trim(),e[3]=""}}var a=e[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],o=l[3])}else o=e[3]?e[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),U(e,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=e[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return U(n,i,n[0])}},e.emStrong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(t);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[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DC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-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DE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var s,a,o=i[0].length-1,l=o,u=0,h="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+o);null!=(i=h.exec(e));)if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=s.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!((l-=a)>0))return a=Math.min(a,a+l+u),Math.min(o,a)%2?{type:"em",raw:t.slice(0,o+i.index+a+1),text:t.slice(1,o+i.index+a)}:{type:"strong",raw:t.slice(0,o+i.index+a+1),text:t.slice(2,o+i.index+a-1)}}else u+=a}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=F(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return i="@"===r[2]?"mailto:"+(n=F(this.options.mangle?e(r[1]):r[1])):n=F(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])r="mailto:"+(i=F(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=F(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},e.inlineText=function(t,e,n){var i,r=this.rules.inline.text.exec(t);if(r)return i=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):F(r[0]):r[0]:F(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},t}(),G=P.noopTest,q=P.edit,H=P.merge,Q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\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})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:G,table:G,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Q.def=q(Q.def).replace("label",Q._label).replace("title",Q._title).getRegex(),Q.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Q.item=q(Q.item,"gm").replace(/bull/g,Q.bullet).getRegex(),Q.listItemStart=q(/^( *)(bull) */).replace("bull",Q.bullet).getRegex(),Q.list=q(Q.list).replace(/bull/g,Q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q.def.source+")").getRegex(),Q._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",Q._comment=/|$)/,Q.html=q(Q.html,"i").replace("comment",Q._comment).replace("tag",Q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q.paragraph=q(Q._paragraph).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Q._tag).getRegex(),Q.blockquote=q(Q.blockquote).replace("paragraph",Q.paragraph).getRegex(),Q.normal=H({},Q),Q.gfm=H({},Q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Q.gfm.nptable=q(Q.gfm.nptable).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Q._tag).getRegex(),Q.gfm.table=q(Q.gfm.table).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Q._tag).getRegex(),Q.pedantic=H({},Q.normal,{html:q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:G,paragraph:q(Q.normal._paragraph).replace("hr",Q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:G,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=q(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=q(Q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=q(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=q(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=q(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._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])?)+(?![-_])/,V.autolink=q(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=q(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=q(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=q(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=q(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=H({},V),V.pedantic=H({},V.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:q(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=H({},V.normal,{escape:q(V.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var et=function(){function t(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||X,this.options.tokenizer=this.options.tokenizer||new K,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:W.normal,inline:Z.normal};this.options.pedantic?(e.block=W.pedantic,e.inline=Z.pedantic):this.options.gfm&&(e.block=W.gfm,this.options.breaks?e.inline=Z.breaks:e.inline=Z.gfm),this.tokenizer.rules=e}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n=t.prototype;return n.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(t,e,n){var i,r,s,a;for(void 0===e&&(e=[]),void 0===n&&(n=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(i=this.tokenizer.space(t))t=t.substring(i.raw.length),i.type&&e.push(i);else if(i=this.tokenizer.code(t))t=t.substring(i.raw.length),(a=e[e.length-1])&&"paragraph"===a.type?(a.raw+="\n"+i.raw,a.text+="\n"+i.text):e.push(i);else if(i=this.tokenizer.fences(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.heading(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.nptable(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.hr(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.blockquote(t))t=t.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),e.push(i);else if(i=this.tokenizer.list(t)){for(t=t.substring(i.raw.length),s=i.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(u));)h.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,a.index)+"["+J("a",a[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,a.index)+"["+J("a",a[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,a.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(o||(l=""),o=!1,r=this.tokenizer.escape(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.tag(t,n,i)){t=t.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var c=e[e.length-1];c&&"text"===r.type&&"text"===c.type?(c.raw+=r.raw,c.text+=r.text):e.push(r)}else if(r=this.tokenizer.link(t))t=t.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),e.push(r);else if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);var d=e[e.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),e.push(r)):d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):e.push(r)}else if(r=this.tokenizer.emStrong(t,u,l))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.codespan(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.br(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.del(t))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.autolink(t,tt))t=t.substring(r.raw.length),e.push(r);else if(n||!(r=this.tokenizer.url(t,tt))){if(r=this.tokenizer.inlineText(t,i,$))t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),o=!0,(s=e[e.length-1])&&"text"===s.type?(s.raw+=r.raw,s.text+=r.text):e.push(r);else if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}else t=t.substring(r.raw.length),e.push(r);return e},e(t,null,[{key:"rules",get:function(){return{block:W,inline:Z}}}]),t}(),nt=s.exports.defaults,it=P.cleanUrl,rt=P.escape,st=function(){function t(t){this.options=t||nt}var e=t.prototype;return e.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'
'+(n?t:rt(t,!0))+"
\n":"
"+(n?t:rt(t,!0))+"
\n"},e.blockquote=function(t){return"
\n"+t+"
\n"},e.html=function(t){return t},e.heading=function(t,e,n,i){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
\n":"
\n"},e.list=function(t,e,n){var i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
  • "+t+"
  • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

    "+t+"

    \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
    \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
    ":"
    "},e.del=function(t){return""+t+""},e.link=function(t,e,n){if(null===(t=it(this.options.sanitize,this.options.baseUrl,t)))return n;var i='
    "},e.image=function(t,e,n){if(null===(t=it(this.options.sanitize,this.options.baseUrl,t)))return n;var i=''+n+'":">"},e.text=function(t){return t},t}(),at=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),ot=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{n=t+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),lt=st,ut=at,ht=ot,ct=s.exports.defaults,dt=P.unescape,ft=et,pt=function(){function t(t){this.options=t||ct,this.options.renderer=this.options.renderer||new lt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ut,this.slugger=new ht}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,s,a,o,l,u,h,c,d,f,p,g,m,v,y,A,b="",w=t.length;for(n=0;n0&&"text"===m.tokens[0].type?(m.tokens[0].text=A+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=A+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:A}):g+=A),g+=this.parse(m.tokens,p),h+=this.renderer.listitem(g,y,v);b+=this.renderer.list(h,d,f);continue;case"html":b+=this.renderer.html(c.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(h=c.tokens?this.parseInline(c.tokens):c.text;n+1An error occurred:

    "+wt(t.message+"",!0)+"
    ";throw t}}return Tt.options=Tt.setOptions=function(t){return At(Tt.defaults,t),xt(Tt.defaults),Tt},Tt.getDefaults=Et,Tt.defaults=kt,Tt.use=function(t){var e=At({},t);if(t.renderer&&function(){var n=Tt.defaults.renderer||new mt,i=function(e){var i=n[e];n[e]=function(){for(var r=arguments.length,s=new Array(r),a=0;aAn error occurred:

    "+wt(t.message+"",!0)+"
    ";throw t}},Tt.Parser=pt,Tt.parser=pt.parse,Tt.Renderer=mt,Tt.TextRenderer=vt,Tt.Lexer=ft,Tt.lexer=ft.lex,Tt.Tokenizer=gt,Tt.Slugger=yt,Tt.parse=Tt,Tt}()},11690:function(t){const e=/[&<>"']/,n=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},a=t=>s[t];const o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(t){return t.replace(o,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const u=/(^|[^\[])\^/g;const h=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},f=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(t,e){d[" "+t]||(f.test(t)?d[" "+t]=t+"/":d[" "+t]=v(t,"/",!0));const n=-1===(t=d[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(p,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(g,"$1")+e:t+e}function v(t,e,n){const i=t.length;if(0===i)return"";let r=0;for(;r(i=(i=i.source||i).replace(u,"$1"),t=t.replace(e,i),n),getRegex:()=>new RegExp(t,e)};return n},cleanUrl:function(t,e,n){if(t){let t;try{t=decodeURIComponent(l(n)).replace(h,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!c.test(n)&&(n=m(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},resolveUrl:m,noopTest:{exec:function(){}},merge:function(t){let e,n,i=1;for(;i{let i=!1,r=e;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n.length>e)n.splice(e);else for(;n.length1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}}},75918:function(t,e,n){"use strict";n.d(e,{Wi:function(){return l},Z0:function(){return u},aU:function(){return o},eZ:function(){return c},wY:function(){return h}});var i=n(4348),r=n(69323),s=n(13268),a=function(t,e,n,i){return new(n||(n=Promise))((function(r,s){function a(t){try{l(i.next(t))}catch(t){s(t)}}function o(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,o)}l((i=i.apply(t,e||[])).next())}))};class o extends r.JT{constructor(t,e="",n="",r=!0,s){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=t,this._label=e,this._cssClass=n,this._enabled=r,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(t){this._setLabel(t)}_setLabel(t){this._label!==t&&(this._label=t,this._onDidChange.fire({label:t}))}get tooltip(){return this._tooltip||""}set tooltip(t){this._setTooltip(t)}_setTooltip(t){this._tooltip!==t&&(this._tooltip=t,this._onDidChange.fire({tooltip:t}))}get class(){return this._cssClass}set class(t){this._setClass(t)}_setClass(t){this._cssClass!==t&&(this._cssClass=t,this._onDidChange.fire({class:t}))}get enabled(){return this._enabled}set enabled(t){this._setEnabled(t)}_setEnabled(t){this._enabled!==t&&(this._enabled=t,this._onDidChange.fire({enabled:t}))}get checked(){return this._checked}set checked(t){this._setChecked(t)}_setChecked(t){this._checked!==t&&(this._checked=t,this._onDidChange.fire({checked:t}))}run(t,e){return a(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(t))}))}}class l extends r.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(t,e){return a(this,void 0,void 0,(function*(){if(!t.enabled)return;let n;this._onBeforeRun.fire({action:t});try{yield this.runAction(t,e)}catch(t){n=t}this._onDidRun.fire({action:t,error:n})}))}runAction(t,e){return a(this,void 0,void 0,(function*(){yield t.run(e)}))}}class u extends o{constructor(t){super(u.ID,t,t?"separator text":"separator"),this.checked=!1,this.enabled=!1}}u.ID="vs.actions.separator";class h{constructor(t,e,n,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=t,this.label=e,this.class=i,this._actions=n}get actions(){return this._actions}dispose(){}run(){return a(this,void 0,void 0,(function*(){}))}}class c extends o{constructor(){super(c.ID,s.N("submenu.empty","(empty)"),void 0,!1)}}c.ID="vs.actions.empty"},76068:function(t,e,n){"use strict";function i(t,e){if(!t)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}n.d(e,{ok:function(){return i}})},52615:function(t,e,n){"use strict";n.d(e,{CM:function(){return a},JL:function(){return o},dT:function(){return u},fK:function(){return s},lA:function(){return l}});var i=n(4348);const r=new class{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(t){const e=this._icons.get(t.id);e?t.description?e.description=t.description:console.error(`Duplicate registration of codicon ${t.id}`):(this._icons.set(t.id,t),this._onDidRegister.fire(t))}get(t){return this._icons.get(t)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},s=r;function a(t,e){return new l(t,e)}function o(t){return t?t.replace(/\$\((.*?)\)/g,((t,e)=>` ${e} `)).trim():""}class l{constructor(t,e,n){this.id=t,this.definition=e,this.description=n,r.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var u;!function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9\\-]+",t.iconModifierExpression="~[A-Za-z]+";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(t){if(t instanceof l)return["codicon","codicon-"+t.id];const i=e.exec(t.id);if(!i)return n(l.error);let[,r,s]=i;const a=["codicon","codicon-"+r];return s&&a.push("codicon-modifier-"+s.substr(1)),a}t.asClassNameArray=n,t.asClassName=function(t){return n(t).join(" ")},t.asCSSSelector=function(t){return"."+n(t).join(".")}}(u||(u={})),function(t){t.add=new t("add",{fontCharacter:"\\ea60"}),t.plus=new t("plus",t.add.definition),t.gistNew=new t("gist-new",t.add.definition),t.repoCreate=new t("repo-create",t.add.definition),t.lightbulb=new t("lightbulb",{fontCharacter:"\\ea61"}),t.lightBulb=new t("light-bulb",{fontCharacter:"\\ea61"}),t.repo=new t("repo",{fontCharacter:"\\ea62"}),t.repoDelete=new t("repo-delete",{fontCharacter:"\\ea62"}),t.gistFork=new t("gist-fork",{fontCharacter:"\\ea63"}),t.repoForked=new t("repo-forked",{fontCharacter:"\\ea63"}),t.gitPullRequest=new t("git-pull-request",{fontCharacter:"\\ea64"}),t.gitPullRequestAbandoned=new t("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),t.recordKeys=new t("record-keys",{fontCharacter:"\\ea65"}),t.keyboard=new t("keyboard",{fontCharacter:"\\ea65"}),t.tag=new t("tag",{fontCharacter:"\\ea66"}),t.tagAdd=new t("tag-add",{fontCharacter:"\\ea66"}),t.tagRemove=new t("tag-remove",{fontCharacter:"\\ea66"}),t.person=new t("person",{fontCharacter:"\\ea67"}),t.personFollow=new t("person-follow",{fontCharacter:"\\ea67"}),t.personOutline=new t("person-outline",{fontCharacter:"\\ea67"}),t.personFilled=new t("person-filled",{fontCharacter:"\\ea67"}),t.gitBranch=new t("git-branch",{fontCharacter:"\\ea68"}),t.gitBranchCreate=new t("git-branch-create",{fontCharacter:"\\ea68"}),t.gitBranchDelete=new t("git-branch-delete",{fontCharacter:"\\ea68"}),t.sourceControl=new t("source-control",{fontCharacter:"\\ea68"}),t.mirror=new t("mirror",{fontCharacter:"\\ea69"}),t.mirrorPublic=new t("mirror-public",{fontCharacter:"\\ea69"}),t.star=new t("star",{fontCharacter:"\\ea6a"}),t.starAdd=new t("star-add",{fontCharacter:"\\ea6a"}),t.starDelete=new t("star-delete",{fontCharacter:"\\ea6a"}),t.starEmpty=new t("star-empty",{fontCharacter:"\\ea6a"}),t.comment=new t("comment",{fontCharacter:"\\ea6b"}),t.commentAdd=new t("comment-add",{fontCharacter:"\\ea6b"}),t.alert=new t("alert",{fontCharacter:"\\ea6c"}),t.warning=new t("warning",{fontCharacter:"\\ea6c"}),t.search=new t("search",{fontCharacter:"\\ea6d"}),t.searchSave=new t("search-save",{fontCharacter:"\\ea6d"}),t.logOut=new t("log-out",{fontCharacter:"\\ea6e"}),t.signOut=new t("sign-out",{fontCharacter:"\\ea6e"}),t.logIn=new t("log-in",{fontCharacter:"\\ea6f"}),t.signIn=new t("sign-in",{fontCharacter:"\\ea6f"}),t.eye=new t("eye",{fontCharacter:"\\ea70"}),t.eyeUnwatch=new t("eye-unwatch",{fontCharacter:"\\ea70"}),t.eyeWatch=new t("eye-watch",{fontCharacter:"\\ea70"}),t.circleFilled=new t("circle-filled",{fontCharacter:"\\ea71"}),t.primitiveDot=new t("primitive-dot",{fontCharacter:"\\ea71"}),t.closeDirty=new t("close-dirty",{fontCharacter:"\\ea71"}),t.debugBreakpoint=new t("debug-breakpoint",{fontCharacter:"\\ea71"}),t.debugBreakpointDisabled=new t("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),t.debugHint=new t("debug-hint",{fontCharacter:"\\ea71"}),t.primitiveSquare=new t("primitive-square",{fontCharacter:"\\ea72"}),t.edit=new t("edit",{fontCharacter:"\\ea73"}),t.pencil=new t("pencil",{fontCharacter:"\\ea73"}),t.info=new t("info",{fontCharacter:"\\ea74"}),t.issueOpened=new t("issue-opened",{fontCharacter:"\\ea74"}),t.gistPrivate=new t("gist-private",{fontCharacter:"\\ea75"}),t.gitForkPrivate=new t("git-fork-private",{fontCharacter:"\\ea75"}),t.lock=new t("lock",{fontCharacter:"\\ea75"}),t.mirrorPrivate=new t("mirror-private",{fontCharacter:"\\ea75"}),t.close=new t("close",{fontCharacter:"\\ea76"}),t.removeClose=new t("remove-close",{fontCharacter:"\\ea76"}),t.x=new t("x",{fontCharacter:"\\ea76"}),t.repoSync=new t("repo-sync",{fontCharacter:"\\ea77"}),t.sync=new t("sync",{fontCharacter:"\\ea77"}),t.clone=new t("clone",{fontCharacter:"\\ea78"}),t.desktopDownload=new t("desktop-download",{fontCharacter:"\\ea78"}),t.beaker=new t("beaker",{fontCharacter:"\\ea79"}),t.microscope=new t("microscope",{fontCharacter:"\\ea79"}),t.vm=new t("vm",{fontCharacter:"\\ea7a"}),t.deviceDesktop=new t("device-desktop",{fontCharacter:"\\ea7a"}),t.file=new t("file",{fontCharacter:"\\ea7b"}),t.fileText=new t("file-text",{fontCharacter:"\\ea7b"}),t.more=new t("more",{fontCharacter:"\\ea7c"}),t.ellipsis=new t("ellipsis",{fontCharacter:"\\ea7c"}),t.kebabHorizontal=new t("kebab-horizontal",{fontCharacter:"\\ea7c"}),t.mailReply=new t("mail-reply",{fontCharacter:"\\ea7d"}),t.reply=new t("reply",{fontCharacter:"\\ea7d"}),t.organization=new t("organization",{fontCharacter:"\\ea7e"}),t.organizationFilled=new t("organization-filled",{fontCharacter:"\\ea7e"}),t.organizationOutline=new t("organization-outline",{fontCharacter:"\\ea7e"}),t.newFile=new t("new-file",{fontCharacter:"\\ea7f"}),t.fileAdd=new t("file-add",{fontCharacter:"\\ea7f"}),t.newFolder=new t("new-folder",{fontCharacter:"\\ea80"}),t.fileDirectoryCreate=new t("file-directory-create",{fontCharacter:"\\ea80"}),t.trash=new t("trash",{fontCharacter:"\\ea81"}),t.trashcan=new t("trashcan",{fontCharacter:"\\ea81"}),t.history=new t("history",{fontCharacter:"\\ea82"}),t.clock=new t("clock",{fontCharacter:"\\ea82"}),t.folder=new t("folder",{fontCharacter:"\\ea83"}),t.fileDirectory=new t("file-directory",{fontCharacter:"\\ea83"}),t.symbolFolder=new t("symbol-folder",{fontCharacter:"\\ea83"}),t.logoGithub=new t("logo-github",{fontCharacter:"\\ea84"}),t.markGithub=new t("mark-github",{fontCharacter:"\\ea84"}),t.github=new t("github",{fontCharacter:"\\ea84"}),t.terminal=new t("terminal",{fontCharacter:"\\ea85"}),t.console=new t("console",{fontCharacter:"\\ea85"}),t.repl=new t("repl",{fontCharacter:"\\ea85"}),t.zap=new t("zap",{fontCharacter:"\\ea86"}),t.symbolEvent=new t("symbol-event",{fontCharacter:"\\ea86"}),t.error=new t("error",{fontCharacter:"\\ea87"}),t.stop=new t("stop",{fontCharacter:"\\ea87"}),t.variable=new t("variable",{fontCharacter:"\\ea88"}),t.symbolVariable=new t("symbol-variable",{fontCharacter:"\\ea88"}),t.array=new t("array",{fontCharacter:"\\ea8a"}),t.symbolArray=new t("symbol-array",{fontCharacter:"\\ea8a"}),t.symbolModule=new t("symbol-module",{fontCharacter:"\\ea8b"}),t.symbolPackage=new t("symbol-package",{fontCharacter:"\\ea8b"}),t.symbolNamespace=new t("symbol-namespace",{fontCharacter:"\\ea8b"}),t.symbolObject=new t("symbol-object",{fontCharacter:"\\ea8b"}),t.symbolMethod=new t("symbol-method",{fontCharacter:"\\ea8c"}),t.symbolFunction=new t("symbol-function",{fontCharacter:"\\ea8c"}),t.symbolConstructor=new t("symbol-constructor",{fontCharacter:"\\ea8c"}),t.symbolBoolean=new t("symbol-boolean",{fontCharacter:"\\ea8f"}),t.symbolNull=new t("symbol-null",{fontCharacter:"\\ea8f"}),t.symbolNumeric=new t("symbol-numeric",{fontCharacter:"\\ea90"}),t.symbolNumber=new t("symbol-number",{fontCharacter:"\\ea90"}),t.symbolStructure=new t("symbol-structure",{fontCharacter:"\\ea91"}),t.symbolStruct=new t("symbol-struct",{fontCharacter:"\\ea91"}),t.symbolParameter=new t("symbol-parameter",{fontCharacter:"\\ea92"}),t.symbolTypeParameter=new t("symbol-type-parameter",{fontCharacter:"\\ea92"}),t.symbolKey=new t("symbol-key",{fontCharacter:"\\ea93"}),t.symbolText=new t("symbol-text",{fontCharacter:"\\ea93"}),t.symbolReference=new t("symbol-reference",{fontCharacter:"\\ea94"}),t.goToFile=new t("go-to-file",{fontCharacter:"\\ea94"}),t.symbolEnum=new t("symbol-enum",{fontCharacter:"\\ea95"}),t.symbolValue=new t("symbol-value",{fontCharacter:"\\ea95"}),t.symbolRuler=new t("symbol-ruler",{fontCharacter:"\\ea96"}),t.symbolUnit=new t("symbol-unit",{fontCharacter:"\\ea96"}),t.activateBreakpoints=new t("activate-breakpoints",{fontCharacter:"\\ea97"}),t.archive=new t("archive",{fontCharacter:"\\ea98"}),t.arrowBoth=new t("arrow-both",{fontCharacter:"\\ea99"}),t.arrowDown=new t("arrow-down",{fontCharacter:"\\ea9a"}),t.arrowLeft=new t("arrow-left",{fontCharacter:"\\ea9b"}),t.arrowRight=new t("arrow-right",{fontCharacter:"\\ea9c"}),t.arrowSmallDown=new t("arrow-small-down",{fontCharacter:"\\ea9d"}),t.arrowSmallLeft=new t("arrow-small-left",{fontCharacter:"\\ea9e"}),t.arrowSmallRight=new t("arrow-small-right",{fontCharacter:"\\ea9f"}),t.arrowSmallUp=new t("arrow-small-up",{fontCharacter:"\\eaa0"}),t.arrowUp=new t("arrow-up",{fontCharacter:"\\eaa1"}),t.bell=new t("bell",{fontCharacter:"\\eaa2"}),t.bold=new t("bold",{fontCharacter:"\\eaa3"}),t.book=new t("book",{fontCharacter:"\\eaa4"}),t.bookmark=new t("bookmark",{fontCharacter:"\\eaa5"}),t.debugBreakpointConditionalUnverified=new t("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),t.debugBreakpointConditional=new t("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),t.debugBreakpointConditionalDisabled=new t("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),t.debugBreakpointDataUnverified=new t("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),t.debugBreakpointData=new t("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),t.debugBreakpointDataDisabled=new t("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),t.debugBreakpointLogUnverified=new t("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),t.debugBreakpointLog=new t("debug-breakpoint-log",{fontCharacter:"\\eaab"}),t.debugBreakpointLogDisabled=new t("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),t.briefcase=new t("briefcase",{fontCharacter:"\\eaac"}),t.broadcast=new t("broadcast",{fontCharacter:"\\eaad"}),t.browser=new t("browser",{fontCharacter:"\\eaae"}),t.bug=new t("bug",{fontCharacter:"\\eaaf"}),t.calendar=new t("calendar",{fontCharacter:"\\eab0"}),t.caseSensitive=new t("case-sensitive",{fontCharacter:"\\eab1"}),t.check=new t("check",{fontCharacter:"\\eab2"}),t.checklist=new t("checklist",{fontCharacter:"\\eab3"}),t.chevronDown=new t("chevron-down",{fontCharacter:"\\eab4"}),t.dropDownButton=new t("drop-down-button",t.chevronDown.definition),t.chevronLeft=new t("chevron-left",{fontCharacter:"\\eab5"}),t.chevronRight=new t("chevron-right",{fontCharacter:"\\eab6"}),t.chevronUp=new t("chevron-up",{fontCharacter:"\\eab7"}),t.chromeClose=new t("chrome-close",{fontCharacter:"\\eab8"}),t.chromeMaximize=new t("chrome-maximize",{fontCharacter:"\\eab9"}),t.chromeMinimize=new t("chrome-minimize",{fontCharacter:"\\eaba"}),t.chromeRestore=new t("chrome-restore",{fontCharacter:"\\eabb"}),t.circleOutline=new t("circle-outline",{fontCharacter:"\\eabc"}),t.debugBreakpointUnverified=new t("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),t.circleSlash=new t("circle-slash",{fontCharacter:"\\eabd"}),t.circuitBoard=new t("circuit-board",{fontCharacter:"\\eabe"}),t.clearAll=new t("clear-all",{fontCharacter:"\\eabf"}),t.clippy=new t("clippy",{fontCharacter:"\\eac0"}),t.closeAll=new t("close-all",{fontCharacter:"\\eac1"}),t.cloudDownload=new t("cloud-download",{fontCharacter:"\\eac2"}),t.cloudUpload=new t("cloud-upload",{fontCharacter:"\\eac3"}),t.code=new t("code",{fontCharacter:"\\eac4"}),t.collapseAll=new t("collapse-all",{fontCharacter:"\\eac5"}),t.colorMode=new t("color-mode",{fontCharacter:"\\eac6"}),t.commentDiscussion=new t("comment-discussion",{fontCharacter:"\\eac7"}),t.compareChanges=new t("compare-changes",{fontCharacter:"\\eafd"}),t.creditCard=new t("credit-card",{fontCharacter:"\\eac9"}),t.dash=new t("dash",{fontCharacter:"\\eacc"}),t.dashboard=new t("dashboard",{fontCharacter:"\\eacd"}),t.database=new t("database",{fontCharacter:"\\eace"}),t.debugContinue=new t("debug-continue",{fontCharacter:"\\eacf"}),t.debugDisconnect=new t("debug-disconnect",{fontCharacter:"\\ead0"}),t.debugPause=new t("debug-pause",{fontCharacter:"\\ead1"}),t.debugRestart=new t("debug-restart",{fontCharacter:"\\ead2"}),t.debugStart=new t("debug-start",{fontCharacter:"\\ead3"}),t.debugStepInto=new t("debug-step-into",{fontCharacter:"\\ead4"}),t.debugStepOut=new t("debug-step-out",{fontCharacter:"\\ead5"}),t.debugStepOver=new t("debug-step-over",{fontCharacter:"\\ead6"}),t.debugStop=new t("debug-stop",{fontCharacter:"\\ead7"}),t.debug=new t("debug",{fontCharacter:"\\ead8"}),t.deviceCameraVideo=new t("device-camera-video",{fontCharacter:"\\ead9"}),t.deviceCamera=new t("device-camera",{fontCharacter:"\\eada"}),t.deviceMobile=new t("device-mobile",{fontCharacter:"\\eadb"}),t.diffAdded=new t("diff-added",{fontCharacter:"\\eadc"}),t.diffIgnored=new t("diff-ignored",{fontCharacter:"\\eadd"}),t.diffModified=new t("diff-modified",{fontCharacter:"\\eade"}),t.diffRemoved=new t("diff-removed",{fontCharacter:"\\eadf"}),t.diffRenamed=new t("diff-renamed",{fontCharacter:"\\eae0"}),t.diff=new t("diff",{fontCharacter:"\\eae1"}),t.discard=new t("discard",{fontCharacter:"\\eae2"}),t.editorLayout=new t("editor-layout",{fontCharacter:"\\eae3"}),t.emptyWindow=new t("empty-window",{fontCharacter:"\\eae4"}),t.exclude=new t("exclude",{fontCharacter:"\\eae5"}),t.extensions=new t("extensions",{fontCharacter:"\\eae6"}),t.eyeClosed=new t("eye-closed",{fontCharacter:"\\eae7"}),t.fileBinary=new t("file-binary",{fontCharacter:"\\eae8"}),t.fileCode=new t("file-code",{fontCharacter:"\\eae9"}),t.fileMedia=new t("file-media",{fontCharacter:"\\eaea"}),t.filePdf=new t("file-pdf",{fontCharacter:"\\eaeb"}),t.fileSubmodule=new t("file-submodule",{fontCharacter:"\\eaec"}),t.fileSymlinkDirectory=new t("file-symlink-directory",{fontCharacter:"\\eaed"}),t.fileSymlinkFile=new t("file-symlink-file",{fontCharacter:"\\eaee"}),t.fileZip=new t("file-zip",{fontCharacter:"\\eaef"}),t.files=new t("files",{fontCharacter:"\\eaf0"}),t.filter=new t("filter",{fontCharacter:"\\eaf1"}),t.flame=new t("flame",{fontCharacter:"\\eaf2"}),t.foldDown=new t("fold-down",{fontCharacter:"\\eaf3"}),t.foldUp=new t("fold-up",{fontCharacter:"\\eaf4"}),t.fold=new t("fold",{fontCharacter:"\\eaf5"}),t.folderActive=new t("folder-active",{fontCharacter:"\\eaf6"}),t.folderOpened=new t("folder-opened",{fontCharacter:"\\eaf7"}),t.gear=new t("gear",{fontCharacter:"\\eaf8"}),t.gift=new t("gift",{fontCharacter:"\\eaf9"}),t.gistSecret=new t("gist-secret",{fontCharacter:"\\eafa"}),t.gist=new t("gist",{fontCharacter:"\\eafb"}),t.gitCommit=new t("git-commit",{fontCharacter:"\\eafc"}),t.gitCompare=new t("git-compare",{fontCharacter:"\\eafd"}),t.gitMerge=new t("git-merge",{fontCharacter:"\\eafe"}),t.githubAction=new t("github-action",{fontCharacter:"\\eaff"}),t.githubAlt=new t("github-alt",{fontCharacter:"\\eb00"}),t.globe=new t("globe",{fontCharacter:"\\eb01"}),t.grabber=new t("grabber",{fontCharacter:"\\eb02"}),t.graph=new t("graph",{fontCharacter:"\\eb03"}),t.gripper=new t("gripper",{fontCharacter:"\\eb04"}),t.heart=new t("heart",{fontCharacter:"\\eb05"}),t.home=new t("home",{fontCharacter:"\\eb06"}),t.horizontalRule=new t("horizontal-rule",{fontCharacter:"\\eb07"}),t.hubot=new t("hubot",{fontCharacter:"\\eb08"}),t.inbox=new t("inbox",{fontCharacter:"\\eb09"}),t.issueClosed=new t("issue-closed",{fontCharacter:"\\eba4"}),t.issueReopened=new t("issue-reopened",{fontCharacter:"\\eb0b"}),t.issues=new t("issues",{fontCharacter:"\\eb0c"}),t.italic=new t("italic",{fontCharacter:"\\eb0d"}),t.jersey=new t("jersey",{fontCharacter:"\\eb0e"}),t.json=new t("json",{fontCharacter:"\\eb0f"}),t.kebabVertical=new t("kebab-vertical",{fontCharacter:"\\eb10"}),t.key=new t("key",{fontCharacter:"\\eb11"}),t.law=new t("law",{fontCharacter:"\\eb12"}),t.lightbulbAutofix=new t("lightbulb-autofix",{fontCharacter:"\\eb13"}),t.linkExternal=new t("link-external",{fontCharacter:"\\eb14"}),t.link=new t("link",{fontCharacter:"\\eb15"}),t.listOrdered=new t("list-ordered",{fontCharacter:"\\eb16"}),t.listUnordered=new t("list-unordered",{fontCharacter:"\\eb17"}),t.liveShare=new t("live-share",{fontCharacter:"\\eb18"}),t.loading=new t("loading",{fontCharacter:"\\eb19"}),t.location=new t("location",{fontCharacter:"\\eb1a"}),t.mailRead=new t("mail-read",{fontCharacter:"\\eb1b"}),t.mail=new t("mail",{fontCharacter:"\\eb1c"}),t.markdown=new t("markdown",{fontCharacter:"\\eb1d"}),t.megaphone=new t("megaphone",{fontCharacter:"\\eb1e"}),t.mention=new t("mention",{fontCharacter:"\\eb1f"}),t.milestone=new t("milestone",{fontCharacter:"\\eb20"}),t.mortarBoard=new t("mortar-board",{fontCharacter:"\\eb21"}),t.move=new t("move",{fontCharacter:"\\eb22"}),t.multipleWindows=new t("multiple-windows",{fontCharacter:"\\eb23"}),t.mute=new t("mute",{fontCharacter:"\\eb24"}),t.noNewline=new t("no-newline",{fontCharacter:"\\eb25"}),t.note=new t("note",{fontCharacter:"\\eb26"}),t.octoface=new t("octoface",{fontCharacter:"\\eb27"}),t.openPreview=new t("open-preview",{fontCharacter:"\\eb28"}),t.package_=new t("package",{fontCharacter:"\\eb29"}),t.paintcan=new t("paintcan",{fontCharacter:"\\eb2a"}),t.pin=new t("pin",{fontCharacter:"\\eb2b"}),t.play=new t("play",{fontCharacter:"\\eb2c"}),t.run=new t("run",{fontCharacter:"\\eb2c"}),t.plug=new t("plug",{fontCharacter:"\\eb2d"}),t.preserveCase=new t("preserve-case",{fontCharacter:"\\eb2e"}),t.preview=new t("preview",{fontCharacter:"\\eb2f"}),t.project=new t("project",{fontCharacter:"\\eb30"}),t.pulse=new t("pulse",{fontCharacter:"\\eb31"}),t.question=new t("question",{fontCharacter:"\\eb32"}),t.quote=new t("quote",{fontCharacter:"\\eb33"}),t.radioTower=new t("radio-tower",{fontCharacter:"\\eb34"}),t.reactions=new t("reactions",{fontCharacter:"\\eb35"}),t.references=new t("references",{fontCharacter:"\\eb36"}),t.refresh=new t("refresh",{fontCharacter:"\\eb37"}),t.regex=new t("regex",{fontCharacter:"\\eb38"}),t.remoteExplorer=new t("remote-explorer",{fontCharacter:"\\eb39"}),t.remote=new t("remote",{fontCharacter:"\\eb3a"}),t.remove=new t("remove",{fontCharacter:"\\eb3b"}),t.replaceAll=new t("replace-all",{fontCharacter:"\\eb3c"}),t.replace=new t("replace",{fontCharacter:"\\eb3d"}),t.repoClone=new t("repo-clone",{fontCharacter:"\\eb3e"}),t.repoForcePush=new t("repo-force-push",{fontCharacter:"\\eb3f"}),t.repoPull=new t("repo-pull",{fontCharacter:"\\eb40"}),t.repoPush=new t("repo-push",{fontCharacter:"\\eb41"}),t.report=new t("report",{fontCharacter:"\\eb42"}),t.requestChanges=new t("request-changes",{fontCharacter:"\\eb43"}),t.rocket=new t("rocket",{fontCharacter:"\\eb44"}),t.rootFolderOpened=new t("root-folder-opened",{fontCharacter:"\\eb45"}),t.rootFolder=new t("root-folder",{fontCharacter:"\\eb46"}),t.rss=new t("rss",{fontCharacter:"\\eb47"}),t.ruby=new t("ruby",{fontCharacter:"\\eb48"}),t.saveAll=new t("save-all",{fontCharacter:"\\eb49"}),t.saveAs=new t("save-as",{fontCharacter:"\\eb4a"}),t.save=new t("save",{fontCharacter:"\\eb4b"}),t.screenFull=new t("screen-full",{fontCharacter:"\\eb4c"}),t.screenNormal=new t("screen-normal",{fontCharacter:"\\eb4d"}),t.searchStop=new t("search-stop",{fontCharacter:"\\eb4e"}),t.server=new t("server",{fontCharacter:"\\eb50"}),t.settingsGear=new t("settings-gear",{fontCharacter:"\\eb51"}),t.settings=new t("settings",{fontCharacter:"\\eb52"}),t.shield=new t("shield",{fontCharacter:"\\eb53"}),t.smiley=new t("smiley",{fontCharacter:"\\eb54"}),t.sortPrecedence=new t("sort-precedence",{fontCharacter:"\\eb55"}),t.splitHorizontal=new t("split-horizontal",{fontCharacter:"\\eb56"}),t.splitVertical=new t("split-vertical",{fontCharacter:"\\eb57"}),t.squirrel=new t("squirrel",{fontCharacter:"\\eb58"}),t.starFull=new t("star-full",{fontCharacter:"\\eb59"}),t.starHalf=new t("star-half",{fontCharacter:"\\eb5a"}),t.symbolClass=new t("symbol-class",{fontCharacter:"\\eb5b"}),t.symbolColor=new t("symbol-color",{fontCharacter:"\\eb5c"}),t.symbolConstant=new t("symbol-constant",{fontCharacter:"\\eb5d"}),t.symbolEnumMember=new t("symbol-enum-member",{fontCharacter:"\\eb5e"}),t.symbolField=new t("symbol-field",{fontCharacter:"\\eb5f"}),t.symbolFile=new t("symbol-file",{fontCharacter:"\\eb60"}),t.symbolInterface=new t("symbol-interface",{fontCharacter:"\\eb61"}),t.symbolKeyword=new t("symbol-keyword",{fontCharacter:"\\eb62"}),t.symbolMisc=new t("symbol-misc",{fontCharacter:"\\eb63"}),t.symbolOperator=new t("symbol-operator",{fontCharacter:"\\eb64"}),t.symbolProperty=new t("symbol-property",{fontCharacter:"\\eb65"}),t.wrench=new t("wrench",{fontCharacter:"\\eb65"}),t.wrenchSubaction=new t("wrench-subaction",{fontCharacter:"\\eb65"}),t.symbolSnippet=new t("symbol-snippet",{fontCharacter:"\\eb66"}),t.tasklist=new t("tasklist",{fontCharacter:"\\eb67"}),t.telescope=new t("telescope",{fontCharacter:"\\eb68"}),t.textSize=new t("text-size",{fontCharacter:"\\eb69"}),t.threeBars=new t("three-bars",{fontCharacter:"\\eb6a"}),t.thumbsdown=new t("thumbsdown",{fontCharacter:"\\eb6b"}),t.thumbsup=new t("thumbsup",{fontCharacter:"\\eb6c"}),t.tools=new t("tools",{fontCharacter:"\\eb6d"}),t.triangleDown=new t("triangle-down",{fontCharacter:"\\eb6e"}),t.triangleLeft=new t("triangle-left",{fontCharacter:"\\eb6f"}),t.triangleRight=new t("triangle-right",{fontCharacter:"\\eb70"}),t.triangleUp=new t("triangle-up",{fontCharacter:"\\eb71"}),t.twitter=new t("twitter",{fontCharacter:"\\eb72"}),t.unfold=new t("unfold",{fontCharacter:"\\eb73"}),t.unlock=new t("unlock",{fontCharacter:"\\eb74"}),t.unmute=new t("unmute",{fontCharacter:"\\eb75"}),t.unverified=new t("unverified",{fontCharacter:"\\eb76"}),t.verified=new t("verified",{fontCharacter:"\\eb77"}),t.versions=new t("versions",{fontCharacter:"\\eb78"}),t.vmActive=new t("vm-active",{fontCharacter:"\\eb79"}),t.vmOutline=new t("vm-outline",{fontCharacter:"\\eb7a"}),t.vmRunning=new t("vm-running",{fontCharacter:"\\eb7b"}),t.watch=new t("watch",{fontCharacter:"\\eb7c"}),t.whitespace=new t("whitespace",{fontCharacter:"\\eb7d"}),t.wholeWord=new t("whole-word",{fontCharacter:"\\eb7e"}),t.window=new t("window",{fontCharacter:"\\eb7f"}),t.wordWrap=new t("word-wrap",{fontCharacter:"\\eb80"}),t.zoomIn=new t("zoom-in",{fontCharacter:"\\eb81"}),t.zoomOut=new t("zoom-out",{fontCharacter:"\\eb82"}),t.listFilter=new t("list-filter",{fontCharacter:"\\eb83"}),t.listFlat=new t("list-flat",{fontCharacter:"\\eb84"}),t.listSelection=new t("list-selection",{fontCharacter:"\\eb85"}),t.selection=new t("selection",{fontCharacter:"\\eb85"}),t.listTree=new t("list-tree",{fontCharacter:"\\eb86"}),t.debugBreakpointFunctionUnverified=new t("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),t.debugBreakpointFunction=new t("debug-breakpoint-function",{fontCharacter:"\\eb88"}),t.debugBreakpointFunctionDisabled=new t("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),t.debugStackframeActive=new t("debug-stackframe-active",{fontCharacter:"\\eb89"}),t.debugStackframeDot=new t("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),t.debugStackframe=new t("debug-stackframe",{fontCharacter:"\\eb8b"}),t.debugStackframeFocused=new t("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),t.debugBreakpointUnsupported=new t("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),t.symbolString=new t("symbol-string",{fontCharacter:"\\eb8d"}),t.debugReverseContinue=new t("debug-reverse-continue",{fontCharacter:"\\eb8e"}),t.debugStepBack=new t("debug-step-back",{fontCharacter:"\\eb8f"}),t.debugRestartFrame=new t("debug-restart-frame",{fontCharacter:"\\eb90"}),t.callIncoming=new t("call-incoming",{fontCharacter:"\\eb92"}),t.callOutgoing=new t("call-outgoing",{fontCharacter:"\\eb93"}),t.menu=new t("menu",{fontCharacter:"\\eb94"}),t.expandAll=new t("expand-all",{fontCharacter:"\\eb95"}),t.feedback=new t("feedback",{fontCharacter:"\\eb96"}),t.groupByRefType=new t("group-by-ref-type",{fontCharacter:"\\eb97"}),t.ungroupByRefType=new t("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),t.account=new t("account",{fontCharacter:"\\eb99"}),t.bellDot=new t("bell-dot",{fontCharacter:"\\eb9a"}),t.debugConsole=new t("debug-console",{fontCharacter:"\\eb9b"}),t.library=new t("library",{fontCharacter:"\\eb9c"}),t.output=new t("output",{fontCharacter:"\\eb9d"}),t.runAll=new t("run-all",{fontCharacter:"\\eb9e"}),t.syncIgnored=new t("sync-ignored",{fontCharacter:"\\eb9f"}),t.pinned=new t("pinned",{fontCharacter:"\\eba0"}),t.githubInverted=new t("github-inverted",{fontCharacter:"\\eba1"}),t.debugAlt=new t("debug-alt",{fontCharacter:"\\eb91"}),t.serverProcess=new t("server-process",{fontCharacter:"\\eba2"}),t.serverEnvironment=new t("server-environment",{fontCharacter:"\\eba3"}),t.pass=new t("pass",{fontCharacter:"\\eba4"}),t.stopCircle=new t("stop-circle",{fontCharacter:"\\eba5"}),t.playCircle=new t("play-circle",{fontCharacter:"\\eba6"}),t.record=new t("record",{fontCharacter:"\\eba7"}),t.debugAltSmall=new t("debug-alt-small",{fontCharacter:"\\eba8"}),t.vmConnect=new t("vm-connect",{fontCharacter:"\\eba9"}),t.cloud=new t("cloud",{fontCharacter:"\\ebaa"}),t.merge=new t("merge",{fontCharacter:"\\ebab"}),t.exportIcon=new t("export",{fontCharacter:"\\ebac"}),t.graphLeft=new t("graph-left",{fontCharacter:"\\ebad"}),t.magnet=new t("magnet",{fontCharacter:"\\ebae"}),t.notebook=new t("notebook",{fontCharacter:"\\ebaf"}),t.redo=new t("redo",{fontCharacter:"\\ebb0"}),t.checkAll=new t("check-all",{fontCharacter:"\\ebb1"}),t.pinnedDirty=new t("pinned-dirty",{fontCharacter:"\\ebb2"}),t.passFilled=new t("pass-filled",{fontCharacter:"\\ebb3"}),t.circleLargeFilled=new t("circle-large-filled",{fontCharacter:"\\ebb4"}),t.circleLargeOutline=new t("circle-large-outline",{fontCharacter:"\\ebb5"}),t.combine=new t("combine",{fontCharacter:"\\ebb6"}),t.gather=new t("gather",{fontCharacter:"\\ebb6"}),t.table=new t("table",{fontCharacter:"\\ebb7"}),t.variableGroup=new t("variable-group",{fontCharacter:"\\ebb8"}),t.typeHierarchy=new t("type-hierarchy",{fontCharacter:"\\ebb9"}),t.typeHierarchySub=new t("type-hierarchy-sub",{fontCharacter:"\\ebba"}),t.typeHierarchySuper=new t("type-hierarchy-super",{fontCharacter:"\\ebbb"}),t.gitPullRequestCreate=new t("git-pull-request-create",{fontCharacter:"\\ebbc"}),t.runAbove=new t("run-above",{fontCharacter:"\\ebbd"}),t.runBelow=new t("run-below",{fontCharacter:"\\ebbe"}),t.notebookTemplate=new t("notebook-template",{fontCharacter:"\\ebbf"}),t.debugRerun=new t("debug-rerun",{fontCharacter:"\\ebc0"}),t.workspaceTrusted=new t("workspace-trusted",{fontCharacter:"\\ebc1"}),t.workspaceUntrusted=new t("workspace-untrusted",{fontCharacter:"\\ebc2"}),t.workspaceUnspecified=new t("workspace-unspecified",{fontCharacter:"\\ebc3"}),t.terminalCmd=new t("terminal-cmd",{fontCharacter:"\\ebc4"}),t.terminalDebian=new t("terminal-debian",{fontCharacter:"\\ebc5"}),t.terminalLinux=new t("terminal-linux",{fontCharacter:"\\ebc6"}),t.terminalPowershell=new t("terminal-powershell",{fontCharacter:"\\ebc7"}),t.terminalTmux=new t("terminal-tmux",{fontCharacter:"\\ebc8"}),t.terminalUbuntu=new t("terminal-ubuntu",{fontCharacter:"\\ebc9"}),t.terminalBash=new t("terminal-bash",{fontCharacter:"\\ebca"}),t.arrowSwap=new t("arrow-swap",{fontCharacter:"\\ebcb"}),t.copy=new t("copy",{fontCharacter:"\\ebcc"}),t.personAdd=new t("person-add",{fontCharacter:"\\ebcd"}),t.filterFilled=new t("filter-filled",{fontCharacter:"\\ebce"}),t.wand=new t("wand",{fontCharacter:"\\ebcf"}),t.debugLineByLine=new t("debug-line-by-line",{fontCharacter:"\\ebd0"}),t.inspect=new t("inspect",{fontCharacter:"\\ebd1"}),t.layers=new t("layers",{fontCharacter:"\\ebd2"}),t.layersDot=new t("layers-dot",{fontCharacter:"\\ebd3"}),t.layersActive=new t("layers-active",{fontCharacter:"\\ebd4"}),t.compass=new t("compass",{fontCharacter:"\\ebd5"}),t.compassDot=new t("compass-dot",{fontCharacter:"\\ebd6"}),t.compassActive=new t("compass-active",{fontCharacter:"\\ebd7"}),t.azure=new t("azure",{fontCharacter:"\\ebd8"}),t.issueDraft=new t("issue-draft",{fontCharacter:"\\ebd9"}),t.gitPullRequestClosed=new t("git-pull-request-closed",{fontCharacter:"\\ebda"}),t.gitPullRequestDraft=new t("git-pull-request-draft",{fontCharacter:"\\ebdb"}),t.debugAll=new t("debug-all",{fontCharacter:"\\ebdc"}),t.debugCoverage=new t("debug-coverage",{fontCharacter:"\\ebdd"}),t.runErrors=new t("run-errors",{fontCharacter:"\\ebde"}),t.folderLibrary=new t("folder-library",{fontCharacter:"\\ebdf"}),t.debugContinueSmall=new t("debug-continue-small",{fontCharacter:"\\ebe0"}),t.beakerStop=new t("beaker-stop",{fontCharacter:"\\ebe1"}),t.graphLine=new t("graph-line",{fontCharacter:"\\ebe2"}),t.graphScatter=new t("graph-scatter",{fontCharacter:"\\ebe3"}),t.pieChart=new t("pie-chart",{fontCharacter:"\\ebe4"}),t.bracket=new t("bracket",t.json.definition),t.bracketDot=new t("bracket-dot",{fontCharacter:"\\ebe5"}),t.bracketError=new t("bracket-error",{fontCharacter:"\\ebe6"}),t.lockSmall=new t("lock-small",{fontCharacter:"\\ebe7"}),t.azureDevops=new t("azure-devops",{fontCharacter:"\\ebe8"}),t.verifiedFilled=new t("verified-filled",{fontCharacter:"\\ebe9"})}(l||(l={}))},79881:function(t,e,n){"use strict";n.d(e,{B8:function(){return d},Cp:function(){return s},F0:function(){return u},L6:function(){return c},VV:function(){return l},b1:function(){return h},dL:function(){return r},ri:function(){return a}});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout((()=>{if(t.stack)throw new Error(t.message+"\n\n"+t.stack);throw t}),0)}}emit(t){this.listeners.forEach((e=>{e(t)}))}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}};function r(t){l(t)||i.onUnexpectedError(t)}function s(t){l(t)||i.onUnexpectedExternalError(t)}function a(t){if(t instanceof Error){let{name:e,message:n}=t;return{$isError:!0,name:e,message:n,stack:t.stacktrace||t.stack}}return t}const o="Canceled";function l(t){return t instanceof Error&&t.name===o&&t.message===o}function u(){const t=new Error(o);return t.name=t.message,t}function h(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function c(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class d extends Error{constructor(t){super("NotSupported"),t&&(this.message=t)}}},4348:function(t,e,n){"use strict";n.d(e,{D0:function(){return c},E7:function(){return d},K3:function(){return h},Q5:function(){return u},ZD:function(){return f},ju:function(){return i}});var i,r=n(79881),s=n(69323),a=n(34502),o=n(95830);!function(t){function e(t){return(e,n=null,i)=>{let r,s=!1;return r=t((t=>{if(!s)return r?r.dispose():s=!0,e.call(n,t)}),null,i),s&&r.dispose(),r}}function n(t,e){return o(((n,i=null,r)=>t((t=>n.call(i,e(t))),null,r)))}function i(t,e){return o(((n,i=null,r)=>t((t=>{e(t),n.call(i,t)}),null,r)))}function r(t,e){return o(((n,i=null,r)=>t((t=>e(t)&&n.call(i,t)),null,r)))}function a(t,e,i){let r=i;return n(t,(t=>(r=e(r,t),r)))}function o(t){let e;const n=new u({onFirstListenerAdd(){e=t(n.fire,n)},onLastListenerRemove(){e.dispose()}});return n.event}function l(t,e,n=100,i=!1,r){let s,a,o,l=0;const h=new u({leakWarningThreshold:r,onFirstListenerAdd(){s=t((t=>{l++,a=e(a,t),i&&!o&&(h.fire(a),a=void 0),clearTimeout(o),o=setTimeout((()=>{const t=a;a=void 0,o=void 0,(!i||l>1)&&h.fire(t),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return h.event}function h(t,e=((t,e)=>t===e)){let n,i=!0;return r(t,(t=>{const r=i||!e(t,n);return i=!1,n=t,r}))}t.None=()=>s.JT.None,t.once=e,t.map=n,t.forEach=i,t.filter=r,t.signal=function(t){return t},t.any=function(...t){return(e,n=null,i)=>(0,s.F8)(...t.map((t=>t((t=>e.call(n,t)),null,i))))},t.reduce=a,t.debounce=l,t.latch=h,t.split=function(e,n){return[t.filter(e,n),t.filter(e,(t=>!n(t)))]},t.buffer=function(t,e=!1,n=[]){let i=n.slice(),r=t((t=>{i?i.push(t):a.fire(t)}));const s=()=>{i&&i.forEach((t=>a.fire(t))),i=null},a=new u({onFirstListenerAdd(){r||(r=t((t=>a.fire(t))))},onFirstListenerDidAdd(){i&&(e?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}});return a.event};class c{constructor(t){this.event=t}map(t){return new c(n(this.event,t))}forEach(t){return new c(i(this.event,t))}filter(t){return new c(r(this.event,t))}reduce(t,e){return new c(a(this.event,t,e))}latch(){return new c(h(this.event))}debounce(t,e=100,n=!1,i){return new c(l(this.event,t,e,n,i))}on(t,e,n){return this.event(t,e,n)}once(t,n,i){return e(this.event)(t,n,i)}}t.chain=function(t){return new c(t)},t.fromNodeEventEmitter=function(t,e,n=(t=>t)){const i=(...t)=>r.fire(n(...t)),r=new u({onFirstListenerAdd:()=>t.on(e,i),onLastListenerRemove:()=>t.removeListener(e,i)});return r.event},t.fromDOMEventEmitter=function(t,e,n=(t=>t)){const i=(...t)=>r.fire(n(...t)),r=new u({onFirstListenerAdd:()=>t.addEventListener(e,i),onLastListenerRemove:()=>t.removeEventListener(e,i)});return r.event},t.toPromise=function(t){return new Promise((n=>e(t)(n)))}}(i||(i={}));class l{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${l._idPool++}`}start(t){this._stopWatch=new o.G(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class u{constructor(t){var e;this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=(null===(e=this._options)||void 0===e?void 0:e._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(t,e,n)=>{var i;this._listeners||(this._listeners=new a.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(e?[t,e]:t);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,e);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),u=(0,s.OF)((()=>{if(l&&l(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof s.SL?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(t){var e,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a.S);for(let e of this._listeners)this._deliveryQueue.push([e,t]);for(null===(e=this._perfMon)||void 0===e||e.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[t,e]=this._deliveryQueue.shift();try{"function"==typeof t?t.call(void 0,e):t[0].call(t[1],e)}catch(t){(0,r.dL)(t)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var t,e,n,i,r;this._disposed||(this._disposed=!0,null===(t=this._listeners)||void 0===t||t.clear(),null===(e=this._deliveryQueue)||void 0===e||e.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class h extends u{constructor(t){super(t),this._isPaused=0,this._eventQueue=new a.S,this._mergeFn=null==t?void 0:t.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const t=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):super.fire(t))}}class c extends h{constructor(t){var e;super(t),this._delay=null!==(e=t.delay)&&void 0!==e?e:100}fire(t){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(t)}}class d{constructor(){this.buffers=[]}wrapEvent(t){return(e,n,i)=>t((t=>{const i=this.buffers[this.buffers.length-1];i?i.push((()=>e.call(n,t))):e.call(n,t)}),void 0,i)}bufferEvents(t){const e=[];this.buffers.push(e);const n=t();return this.buffers.pop(),e.forEach((t=>t())),n}}class f{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=s.JT.None,this.emitter=new u({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(t){this.inputEvent=t,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=t(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(t,e,n){"use strict";function i(t){const e=this;let n,i=!1;return function(){return i||(i=!0,n=t.apply(e,arguments)),n}}n.d(e,{I:function(){return i}})},88226:function(t,e,n){"use strict";var i;n.d(e,{$:function(){return i}}),function(t){t.is=function(t){return t&&"object"==typeof t&&"function"==typeof t[Symbol.iterator]};const e=Object.freeze([]);t.empty=function(){return e},t.single=function*(t){yield t},t.from=function(t){return t||e},t.isEmpty=function(t){return!t||!0===t[Symbol.iterator]().next().done},t.first=function(t){return t[Symbol.iterator]().next().value},t.some=function(t,e){for(const n of t)if(e(n))return!0;return!1},t.find=function(t,e){for(const n of t)if(e(n))return n},t.filter=function*(t,e){for(const n of t)e(n)&&(yield n)},t.map=function*(t,e){let n=0;for(const i of t)yield e(i,n++)},t.concat=function*(...t){for(const e of t)for(const t of e)yield t},t.concatNested=function*(t){for(const e of t)for(const t of e)yield t},t.reduce=function(t,e,n){let i=n;for(const n of t)i=e(i,n);return i},t.slice=function*(t,e,n=t.length){for(e<0&&(e+=t.length),n<0?n+=t.length:n>t.length&&(n=t.length);et===e)){const i=t[Symbol.iterator](),r=e[Symbol.iterator]();for(;;){const t=i.next(),e=r.next();if(t.done!==e.done)return!1;if(t.done)return!0;if(!n(t.value,e.value))return!1}}}(i||(i={}))},69323:function(t,e,n){"use strict";n.d(e,{B9:function(){return d},F8:function(){return f},JT:function(){return m},Jz:function(){return y},OF:function(){return p},SL:function(){return g},Wf:function(){return c},XK:function(){return v},dk:function(){return u}});var i=n(17845),r=n(88226);let s=null;function a(t){return null==s||s.trackDisposable(t),t}function o(t){null==s||s.markAsDisposed(t)}function l(t,e){null==s||s.setParent(t,e)}function u(t){return null==s||s.markAsSingleton(t),t}class h extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`),this.errors=t}}function c(t){return"function"==typeof t.dispose&&0===t.dispose.length}function d(t){if(r.$.is(t)){let e=[];for(const n of t)if(n)try{n.dispose()}catch(t){e.push(t)}if(1===e.length)throw e[0];if(e.length>1)throw new h(e);return Array.isArray(t)?[]:t}if(t)return t.dispose(),t}function f(...t){const e=p((()=>d(t)));return function(t,e){if(s)for(const n of t)s.setParent(n,e)}(t,e),e}function p(t){const e=a({dispose:(0,i.I)((()=>{o(e),t()}))});return e}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(o(this),this._isDisposed=!0,this.clear())}clear(){try{d(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 l(t,this),this._isDisposed?g.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}}g.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new g,a(this),l(this._store,this)}dispose(){o(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}m.None=Object.freeze({dispose(){}});class v{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var e;this._isDisposed||t===this._value||(null===(e=this._value)||void 0===e||e.dispose(),t&&l(t,this),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,o(this),null===(t=this._value)||void 0===t||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&l(t,null),t}}class y{constructor(t){this.object=t}dispose(){}}},34502:function(t,e,n){"use strict";n.d(e,{S:function(){return r}});class i{constructor(t){this.element=t,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let t=this._first;for(;t!==i.Undefined;){const e=t.next;t.prev=i.Undefined,t.next=i.Undefined,t=e}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,e){const n=new i(t);if(this._first===i.Undefined)this._first=n,this._last=n;else if(e){const t=this._last;this._last=n,n.prev=t,t.next=n}else{const t=this._first;this._first=n,n.next=t,t.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==i.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==i.Undefined&&t.next!==i.Undefined){const e=t.prev;e.next=t.next,t.next.prev=e}else t.prev===i.Undefined&&t.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):t.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):t.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==i.Undefined;)yield t.element,t=t.next}}},23345:function(t,e,n){"use strict";n.d(e,{$L:function(){return T},ED:function(){return w},IJ:function(){return x},OS:function(){return I},WE:function(){return D},dz:function(){return E},gn:function(){return C},li:function(){return v},r:function(){return B},tY:function(){return k},xS:function(){return S}});var i,r=n(97671);const s="en";let a,o,l=!1,u=!1,h=!1,c=!1,d=!1,f=!1,p=!1,g=null,m=null;const v="object"==typeof self?self:"object"==typeof n.g?n.g:{};let y;void 0!==v.vscode&&void 0!==v.vscode.process?y=v.vscode.process:void 0!==r&&(y=r);const A="string"==typeof(null===(i=null==y?void 0:y.versions)||void 0===i?void 0:i.electron)&&"renderer"===y.type;if("object"!=typeof navigator||A)if("object"==typeof y){l="win32"===y.platform,u="darwin"===y.platform,h="linux"===y.platform,c=h&&!!y.env.SNAP&&!!y.env.SNAP_REVISION,a=s,g=s;const t=y.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];a=e.locale,g=n||s,m=e._translationsConfigFile}catch(t){}d=!0}else console.error("Unable to resolve platform.");else o=navigator.userAgent,l=o.indexOf("Windows")>=0,u=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,f=!0,a=navigator.language,g=a;let b=0;u?b=1:l?b=3:h&&(b=2);const w=l,E=u,x=h,k=d,T=f,C=p,D=o,S=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"==typeof v.postMessage&&!v.importScripts){let t=[];v.addEventListener("message",(e=>{if(e.data&&e.data.vscodeSetImmediateId)for(let n=0,i=t.length;n{const i=++e;t.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const t=Promise.resolve();return e=>t.then(e)}(),I=u||p?2:l?1:3;let R=!0,L=!1;function B(){if(!L){L=!0;const t=new Uint8Array(2);t[0]=1,t[1]=2;const e=new Uint16Array(t.buffer);R=513===e[0]}return R}},95830:function(t,e,n){"use strict";n.d(e,{G:function(){return s}});var i=n(23345);const r=i.li.performance&&"function"==typeof i.li.performance.now;class s{constructor(t){this._highResolution=r&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new s(t)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function(t,e,n){"use strict";function i(t){return!t||"string"!=typeof t||0===t.trim().length}n.d(e,{$i:function(){return G},C8:function(){return Y},GF:function(){return f},HO:function(){return N},IO:function(){return p},K7:function(){return V},Kw:function(){return W},LC:function(){return v},Mh:function(){return S},P1:function(){return I},PJ:function(){return Z},Qe:function(){return q},R1:function(){return d},RP:function(){return z},S6:function(){return J},TT:function(){return w},Ut:function(){return _},V8:function(){return y},WU:function(){return s},YK:function(){return L},YU:function(){return a},ZG:function(){return R},ZH:function(){return P},ab:function(){return H},c1:function(){return K},df:function(){return T},ec:function(){return o},fi:function(){return $},fy:function(){return l},j3:function(){return u},j_:function(){return x},m5:function(){return i},mK:function(){return k},mr:function(){return g},oH:function(){return et},oL:function(){return h},ok:function(){return D},ow:function(){return A},qq:function(){return C},qu:function(){return b},rL:function(){return B},uS:function(){return X},un:function(){return c},uq:function(){return m},vH:function(){return M},xe:function(){return Q},zY:function(){return E}});const r=/{(\d+)}/g;function s(t,...e){return 0===e.length?t:t.replace(r,(function(t,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=e.length?t:e[i]}))}function a(t){return t.replace(/[<>&]/g,(function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";default:return t}}))}function o(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(t,e=" "){return h(u(t,e),e)}function u(t,e){if(!t||!e)return t;const n=e.length;if(0===n||0===t.length)return t;let i=0;for(;t.indexOf(e,i)===i;)i+=n;return t.substring(i)}function h(t,e){if(!t||!e)return t;const n=e.length,i=t.length;if(0===n||0===i)return t;let r=i,s=-1;for(;s=t.lastIndexOf(e,r-1),-1!==s&&s+n===r;){if(0===s)return"";r=s}return t.substring(0,r)}function c(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(t){return t.replace(/\*/g,"")}function f(t,e,n={}){if(!t)throw new Error("Cannot create regex from empty string");e||(t=o(t)),n.wholeWord&&(/\B/.test(t.charAt(0))||(t="\\b"+t),/\B/.test(t.charAt(t.length-1))||(t+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(t,i)}function p(t){if("^"===t.source||"^$"===t.source||"$"===t.source||"^\\s*$"===t.source)return!1;return!(!t.exec("")||0!==t.lastIndex)}function g(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")}function m(t){return t.split(/\r\n|\r|\n/)}function v(t){for(let e=0,n=t.length;e=0;n--){const e=t.charCodeAt(n);if(32!==e&&9!==e)return n}return-1}function b(t,e){return te?1:0}function w(t,e,n=0,i=t.length,r=0,s=e.length){for(;ns)return 1}const a=i-n,o=s-r;return ao?1:0}function E(t,e){return x(t,e,0,t.length,0,e.length)}function x(t,e,n=0,i=t.length,r=0,s=e.length){for(;n=128||o>=128)return w(t.toLowerCase(),e.toLowerCase(),n,i,r,s);k(a)&&(a-=32),k(o)&&(o-=32);const l=a-o;if(0!==l)return l}const a=i-n,o=s-r;return ao?1:0}function k(t){return t>=97&&t<=122}function T(t){return t>=65&&t<=90}function C(t,e){return t.length===e.length&&0===x(t,e)}function D(t,e){const n=e.length;return!(e.length>t.length)&&0===x(t,e,0,n)}function S(t,e){let n,i=Math.min(t.length,e.length);for(n=0;n1){const i=t.charCodeAt(e-2);if(R(i))return B(i,n)}return n}function M(t,e){const n=tt.getInstance(),i=e,r=t.length,s=P(t,r,e);e+=s>=65536?2:1;let a=n.getGraphemeBreakType(s);for(;e=65536?2:1,a=s}return e-i}function N(t,e){const n=tt.getInstance(),i=e,r=O(t,e);e-=r>=65536?2:1;let s=n.getGraphemeBreakType(r);for(;e>0;){const i=O(t,e),r=n.getGraphemeBreakType(i);if($(r,s))break;e-=i>=65536?2:1,s=r}return i-e}const F=/(?:[\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 _(t){return F.test(t)}const U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function z(t){return U.test(t)}const j=/^[\t\n\r\x20-\x7E]*$/;function G(t){return j.test(t)}const q=/[\u2028\u2029]/;function H(t){return q.test(t)}function Q(t){for(let e=0,n=t.length;e=11904&&t<=55215||t>=63744&&t<=64255||t>=65281&&t<=65374}function Y(t){return t>=127462&&t<=127487||8986===t||8987===t||9200===t||9203===t||t>=9728&&t<=10175||11088===t||11093===t||t>=127744&&t<=128591||t>=128640&&t<=128764||t>=128992&&t<=129003||t>=129280&&t<=129535||t>=129648&&t<=129750}const K=String.fromCharCode(65279);function X(t){return!!(t&&t.length>0&&65279===t.charCodeAt(0))}function W(t,e=!1){return!!t&&(e&&(t=t.replace(/\\./g,"")),t.toLowerCase()!==t)}function Z(t){return(t%=52)<26?String.fromCharCode(97+t):String.fromCharCode(65+t-26)}function J(t){return tt.getInstance().getGraphemeBreakType(t)}function $(t,e){return 0===t?5!==e&&7!==e:(2!==t||3!==e)&&(4===t||2===t||3===t||(4===e||2===e||3===e||(8!==t||8!==e&&9!==e&&11!==e&&12!==e)&&((11!==t&&9!==t||9!==e&&10!==e)&&((12!==t&&10!==t||10!==e)&&(5!==e&&13!==e&&(7!==e&&(1!==t&&((13!==t||14!==e)&&(6!==t||6!==e)))))))))}class tt{constructor(){this._data=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]")}static getInstance(){return tt._INSTANCE||(tt._INSTANCE=new tt),tt._INSTANCE}getGraphemeBreakType(t){if(t<32)return 10===t?3:13===t?2:4;if(t<127)return 0;const e=this._data,n=e.length/3;let i=1;for(;i<=n;)if(te[3*i+1]))return e[3*i+2];i=2*i+1}return 0}}function et(t,e){if(0===t)return 0;const n=function(t,e){let n=O(e,t);t-=nt(n);for(;it(n)||65039===n||8419===n;){if(0===t)return;n=O(e,t),t-=nt(n)}if(!Y(n))return;if(t>=0){const n=O(e,t);8205===n&&(t-=nt(n))}return t}(t,e);if(void 0!==n)return n;return t-=nt(O(e,t))}function nt(t){return t>=65536?2:1}function it(t){return 127995<=t&&t<=127999}tt._INSTANCE=null},72999:function(t,e,n){"use strict";function i(t){return Array.isArray(t)}function r(t){return"string"==typeof t}function s(t){return!("object"!=typeof t||null===t||Array.isArray(t)||t instanceof RegExp||t instanceof Date)}function a(t){return"number"==typeof t&&!isNaN(t)}function o(t){return!0===t||!1===t}function l(t){return void 0===t}function u(t){return!h(t)}function h(t){return l(t)||null===t}function c(t,e){if(!t)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function d(t){if(h(t))throw new Error("Assertion Failed: argument is undefined or null");return t}function f(t){return"function"==typeof t}function p(t,e){const n=Math.min(t.length,e.length);for(let i=0;ifunction(){const n=Array.prototype.slice.call(arguments,0);return e(t,n)};let i={};for(const e of t)i[e]=n(e);return i}function y(t){return null===t?void 0:t}function A(t,e="Unreachable"){throw new Error(e)}n.d(e,{$E:function(){return m},$K:function(){return u},D8:function(){return p},HD:function(){return r},IU:function(){return v},Jp:function(){return h},Kn:function(){return s},cW:function(){return d},f6:function(){return y},hj:function(){return a},jn:function(){return o},kJ:function(){return i},mf:function(){return f},o8:function(){return l},p_:function(){return c},vE:function(){return A}})},13268:function(t,e,n){"use strict";function i(t,e,...n){return function(t,e){let n;return n=0===e.length?t:t.replace(/\{(\d+)\}/g,(function(t,n){const i=n[0];return void 0!==e[i]?e[i]:t})),n}(e,n)}n.d(e,{N:function(){return i}})},96236:function(t,e,n){"use strict";n.d(e,{BH:function(){return y},NZ:function(){return A},U8:function(){return b},co:function(){return v},eH:function(){return m},vr:function(){return g}});var i=n(75918),r=n(52615),s=n(4348),a=n(88226),o=n(69323),l=n(34502),u=n(35884),h=n(90689),c=n(16925),d=n(49055),f=function(t,e,n,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(s<3?r(a):s>3?r(e,n,a):r(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},p=function(t,e){return function(n,i){e(n,i,t)}};function g(t){return void 0!==t.command}class m{constructor(t){this.id=m._idPool++,this._debugName=t}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const v=(0,c.yh)("menuService"),y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:t=>t===m.CommandPalette}}addCommand(t){return this.addCommands(a.$.single(t))}addCommands(t){for(const e of t)this._commands.set(e.id,e);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,o.OF)((()=>{let e=!1;for(const n of t)e=this._commands.delete(n.id)||e;e&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)}))}getCommand(t){return this._commands.get(t)}getCommands(){const t=new Map;return this._commands.forEach(((e,n)=>t.set(n,e))),t}appendMenuItem(t,e){return this.appendMenuItems(a.$.single({id:t,item:e}))}appendMenuItems(t){const e=new Set,n=new l.S;for(const{id:i,item:r}of t){let t=this._menuItems.get(i);t||(t=new l.S,this._menuItems.set(i,t)),n.push(t.push(r)),e.add(i)}return this._onDidChangeMenu.fire(e),(0,o.OF)((()=>{if(n.size>0){for(let t of n)t();this._onDidChangeMenu.fire(e),n.clear()}}))}getMenuItems(t){let e;return e=this._menuItems.has(t)?[...this._menuItems.get(t)]:[],t===m.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(t){const e=new Set;for(const n of t)g(n)&&(e.add(n.command.id),n.alt&&e.add(n.alt.id));this._commands.forEach(((n,i)=>{e.has(i)||t.push({command:n})}))}};class A extends i.wY{constructor(t,e,n,i){super(`submenuitem.${t.submenu.id}`,"string"==typeof t.title?t.title:t.title.value,[],"submenu"),this.item=t,this._menuService=e,this._contextKeyService=n,this._options=i}get actions(){const t=[],e=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=e.getActions(this._options);e.dispose();for(const[,e]of n)e.length>0&&(t.push(...e),t.push(new i.Z0));return t.length&&t.pop(),t}}let b=class t{constructor(e,n,i,s,a){var o,l;if(this._commandService=a,this.id=e.id,this.label=(null==i?void 0:i.renderShortTitle)&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value,this.tooltip=null!==(l="string"==typeof e.tooltip?e.tooltip:null===(o=e.tooltip)||void 0===o?void 0:o.value)&&void 0!==l?l:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"==typeof t.tooltip?t.tooltip:t.tooltip.value),t.title&&(this.label="string"==typeof t.title?t.title:t.title.value)}this.item=e,this.alt=n?new t(n,void 0,i,s,a):void 0,this._options=i,d.kS.isThemeIcon(e.icon)&&(this.class=r.dT.asClassName(e.icon))}dispose(){}run(...t){var e,n;let i=[];return(null===(e=this._options)||void 0===e?void 0:e.arg)&&(i=[...i,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(i=[...i,...t]),this._commandService.executeCommand(this.id,...i)}};b=f([p(3,h.i6),p(4,u.H)],b)},35884:function(t,e,n){"use strict";n.d(e,{H:function(){return l},P:function(){return u}});var i=n(4348),r=n(88226),s=n(69323),a=n(34502),o=n(72999);const l=(0,n(16925).yh)("commandService"),u=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(t,e){if(!t)throw new Error("invalid command");if("string"==typeof t){if(!e)throw new Error("invalid command");return this.registerCommand({id:t,handler:e})}if(t.description){const e=[];for(let n of t.description.args)e.push(n.constraint);const n=t.handler;t.handler=function(t,...i){return(0,o.D8)(i,e),n(t,...i)}}const{id:n}=t;let i=this._commands.get(n);i||(i=new a.S,this._commands.set(n,i));let r=i.unshift(t),l=(0,s.OF)((()=>{r();const t=this._commands.get(n);(null==t?void 0:t.isEmpty())&&this._commands.delete(n)}));return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(t,e){return u.registerCommand(t,((t,...n)=>t.get(l).executeCommand(e,...n)))}getCommand(t){const e=this._commands.get(t);if(e&&!e.isEmpty())return r.$.first(e)}getCommands(){const t=new Map;for(const e of this._commands.keys()){const n=this.getCommand(e);n&&t.set(e,n)}return t}};u.registerCommand("noop",(()=>{}))},90689:function(t,e,n){"use strict";n.d(e,{Ao:function(){return u},Eq:function(){return B},Fb:function(){return h},K8:function(){return M},i6:function(){return L},uy:function(){return R}});var i=n(23345),r=n(82983),s=n(16925);let a=i.WE||"";const o=new Map;o.set("false",!1),o.set("true",!0),o.set("isMac",i.dz),o.set("isLinux",i.IJ),o.set("isWindows",i.ED),o.set("isWeb",i.$L),o.set("isMacNative",i.dz&&!i.$L),o.set("isEdge",a.indexOf("Edg/")>=0),o.set("isFirefox",a.indexOf("Firefox")>=0),o.set("isChrome",a.indexOf("Chrome")>=0),o.set("isSafari",a.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class u{static has(t){return p.create(t)}static equals(t,e){return g.create(t,e)}static regex(t,e){return T.create(t,e)}static not(t){return A.create(t)}static and(...t){return S.create(t,null)}static or(...t){return I.create(t,null,!0)}static deserialize(t,e=!1){if(t)return this._deserializeOrExpression(t,e)}static _deserializeOrExpression(t,e){let n=t.split("||");return I.create(n.map((t=>this._deserializeAndExpression(t,e))),null,!0)}static _deserializeAndExpression(t,e){let n=t.split("&&");return S.create(n.map((t=>this._deserializeOne(t,e))),null)}static _deserializeOne(t,e){if((t=t.trim()).indexOf("!=")>=0){let n=t.split("!=");return y.create(n[0].trim(),this._deserializeValue(n[1],e))}if(t.indexOf("==")>=0){let n=t.split("==");return g.create(n[0].trim(),this._deserializeValue(n[1],e))}if(t.indexOf("=~")>=0){let n=t.split("=~");return T.create(n[0].trim(),this._deserializeRegexValue(n[1],e))}if(t.indexOf(" in ")>=0){let e=t.split(" in ");return m.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(t)){const e=t.split(">=");return E.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(t)){const e=t.split(">");return w.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(t)){const e=t.split("<=");return k.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(t)){const e=t.split("<");return x.create(e[0].trim(),e[1].trim())}return/^\!\s*/.test(t)?A.create(t.substr(1).trim()):p.create(t)}static _deserializeValue(t,e){if("true"===(t=t.trim()))return!0;if("false"===t)return!1;let n=/^'([^']*)'$/.exec(t);return n?n[1].trim():t}static _deserializeRegexValue(t,e){if((0,r.m5)(t)){if(e)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=t.indexOf("/"),i=t.lastIndexOf("/");if(n===i||n<0){if(e)throw new Error(`bad regexp-value '${t}', missing /-enclosure`);return console.warn(`bad regexp-value '${t}', missing /-enclosure`),null}let s=t.slice(n+1,i),a="i"===t[i+1]?"i":"";try{return new RegExp(s,a)}catch(n){if(e)throw new Error(`bad regexp-value '${t}', parse error: ${n}`);return console.warn(`bad regexp-value '${t}', parse error: ${n}`),null}}}function h(t,e){const n=t?t.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!n&&!i||!(!n||!i)&&n.equals(i)}function c(t,e){return t.cmp(e)}class d{constructor(){this.type=0}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!1}serialize(){return"false"}keys(){return[]}negate(){return f.INSTANCE}}d.INSTANCE=new d;class f{constructor(){this.type=1}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}f.INSTANCE=new f;class p{constructor(t,e){this.key=t,this.negated=e,this.type=2}static create(t,e=null){const n=o.get(t);return"boolean"==typeof n?n?f.INSTANCE:d.INSTANCE:new p(t,e)}cmp(t){return t.type!==this.type?this.type-t.type:P(this.key,t.key)}equals(t){return t.type===this.type&&this.key===t.key}substituteConstants(){const t=o.get(this.key);return"boolean"==typeof t?t?f.INSTANCE:d.INSTANCE:this}evaluate(t){return!!t.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}class g{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=4}static create(t,e,n=null){if("boolean"==typeof e)return e?p.create(t,n):A.create(t,n);const i=o.get(t);if("boolean"==typeof i){return e===(i?"true":"false")?f.INSTANCE:d.INSTANCE}return new g(t,e,n)}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){const t=o.get(this.key);if("boolean"==typeof t){const e=t?"true":"false";return this.value===e?f.INSTANCE:d.INSTANCE}return this}evaluate(t){return t.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 m{constructor(t,e){this.key=t,this.valueKey=e,this.type=10,this.negated=null}static create(t,e){return new m(t,e)}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.valueKey,t.key,t.valueKey)}equals(t){return t.type===this.type&&(this.key===t.key&&this.valueKey===t.valueKey)}substituteConstants(){return this}evaluate(t){const e=t.getValue(this.valueKey),n=t.getValue(this.key);return Array.isArray(e)?e.indexOf(n)>=0:"string"==typeof n&&"object"==typeof e&&null!==e&&l.call(e,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(t){this._actual=t,this.type=11}static create(t){return new v(t)}cmp(t){return t.type!==this.type?this.type-t.type:this._actual.cmp(t._actual)}equals(t){return t.type===this.type&&this._actual.equals(t._actual)}substituteConstants(){return this}evaluate(t){return!this._actual.evaluate(t)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=5}static create(t,e,n=null){if("boolean"==typeof e)return e?A.create(t,n):p.create(t,n);const i=o.get(t);if("boolean"==typeof i){return e===(i?"true":"false")?d.INSTANCE:f.INSTANCE}return new y(t,e,n)}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){const t=o.get(this.key);if("boolean"==typeof t){const e=t?"true":"false";return this.value===e?d.INSTANCE:f.INSTANCE}return this}evaluate(t){return t.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class A{constructor(t,e){this.key=t,this.negated=e,this.type=3}static create(t,e=null){const n=o.get(t);return"boolean"==typeof n?n?d.INSTANCE:f.INSTANCE:new A(t,e)}cmp(t){return t.type!==this.type?this.type-t.type:P(this.key,t.key)}equals(t){return t.type===this.type&&this.key===t.key}substituteConstants(){const t=o.get(this.key);return"boolean"==typeof t?t?d.INSTANCE:f.INSTANCE:this}evaluate(t){return!t.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 b(t,e){if("string"==typeof t){const e=parseFloat(t);isNaN(e)||(t=e)}return"string"==typeof t||"number"==typeof t?e(t):d.INSTANCE}class w{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=12}static create(t,e,n=null){return b(e,(e=>new w(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class E{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=13}static create(t,e,n=null){return b(e,(e=>new E(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class x{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=14}static create(t,e,n=null){return b(e,(e=>new x(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))new k(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class T{constructor(t,e){this.key=t,this.regexp=e,this.type=7,this.negated=null}static create(t,e){return new T(t,e)}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.keyt.key)return 1;const e=this.regexp?this.regexp.source:"",n=t.regexp?t.regexp.source:"";return en?1:0}equals(t){if(t.type===this.type){const e=this.regexp?this.regexp.source:"",n=t.regexp?t.regexp.source:"";return this.key===t.key&&e===n}return!1}substituteConstants(){return this}evaluate(t){let e=t.getValue(this.key);return!!this.regexp&&this.regexp.test(e)}serialize(){const t=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${t}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this)),this.negated}}class C{constructor(t){this._actual=t,this.type=8}static create(t){return new C(t)}cmp(t){return t.type!==this.type?this.type-t.type:this._actual.cmp(t._actual)}equals(t){return t.type===this.type&&this._actual.equals(t._actual)}substituteConstants(){return this}evaluate(t){return!this._actual.evaluate(t)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function D(t){let e=null;for(let n=0,i=t.length;nt.expr.length)return 1;for(let e=0,n=this.expr.length;e1;){const t=n[n.length-1];if(9!==t.type)break;n.pop();const e=n.pop(),i=0===n.length,r=I.create(t.expr.map((t=>S.create([t,e],null))),null,i);r&&(n.push(r),n.sort(c))}return 1===n.length?n[0]:new S(n,e)}}serialize(){return this.expr.map((t=>t.serialize())).join(" && ")}keys(){const t=[];for(let e of this.expr)t.push(...e.keys());return t}negate(){if(!this.negated){const t=[];for(let e of this.expr)t.push(e.negate());this.negated=I.create(t,this,!0)}return this.negated}}class I{constructor(t,e){this.expr=t,this.negated=e,this.type=9}static create(t,e,n){return I._normalizeArr(t,e,n)}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.lengtht.expr.length)return 1;for(let e=0,n=this.expr.length;et.serialize())).join(" || ")}keys(){const t=[];for(let e of this.expr)t.push(...e.keys());return t}negate(){if(!this.negated){let t=[];for(let e of this.expr)t.push(e.negate());for(;t.length>1;){const e=t.shift(),n=t.shift(),i=[];for(const t of N(e))for(const e of N(n))i.push(S.create([t,e],null));const r=0===t.length;t.unshift(I.create(i,null,r))}this.negated=t[0]}return this.negated}}class R extends p{constructor(t,e,n){super(t,null),this._defaultValue=e,"object"==typeof n?R._info.push(Object.assign(Object.assign({},n),{key:t})):!0!==n&&R._info.push({key:t,description:n,type:null!=e?typeof e:void 0})}static all(){return R._info.values()}bindTo(t){return t.createKey(this.key,this._defaultValue)}getValue(t){return t.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(t){return g.create(this.key,t)}}R._info=[];const L=(0,s.yh)("contextKeyService"),B="setContext";function P(t,e){return te?1:0}function O(t,e,n,i){return tn?1:ei?1:0}function M(t,e){if(6===e.type&&9!==t.type&&6!==t.type)for(const n of e.expr)if(t.equals(n))return!0;const n=N(t.negate()).concat(N(e));n.sort(c);for(let t=0;tt,i.serviceIds.set(t,e),e}function o(t){return function(e,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(t,e,i,!0)}}},44650:function(t,e,n){"use strict";n.d(e,{B:function(){return s}});var i=n(76068),r=n(72999);const s=new class{constructor(){this.data=new Map}add(t,e){i.ok(r.HD(t)),i.ok(r.Kn(e)),i.ok(!this.data.has(t),"There is already an extension with this id"),this.data.set(t,e)}as(t){return this.data.get(t)||null}}},66213:function(t,e,n){"use strict";var i;n.d(e,{e:function(){return i}}),function(t){t.DARK="dark",t.LIGHT="light",t.HIGH_CONTRAST="hc"}(i||(i={}))},49055:function(t,e,n){"use strict";n.d(e,{EN:function(){return d},IP:function(){return p},Ic:function(){return m},XE:function(){return u},bB:function(){return v},kS:function(){return c},m6:function(){return f}});var i=n(52615),r=n(4348),s=n(69323),a=n(16925),o=n(44650),l=n(66213);const u=(0,a.yh)("themeService");var h,c;function d(t){return{id:t}}function f(t){switch(t){case l.e.DARK:return"vs-dark";case l.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(t){t.isThemeColor=function(t){return t&&"object"==typeof t&&"string"==typeof t.id}}(h||(h={})),function(t){t.isThemeIcon=function(t){return t&&"object"==typeof t&&"string"==typeof t.id&&(void 0===t.color||h.isThemeColor(t.color))};const e=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);t.fromString=function(t){const n=e.exec(t);if(!n)return;let[,i]=n;return{id:i}},t.modify=function(t,e){let n=t.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),e&&(n=`${n}~${e}`),{id:n}},t.isEqual=function(t,e){var n,i;return t.id===e.id&&(null===(n=t.color)||void 0===n?void 0:n.id)===(null===(i=e.color)||void 0===i?void 0:i.id)},t.asThemeIcon=function(t,e){return{id:t.id,color:e?d(e):void 0}},t.asClassNameArray=i.dT.asClassNameArray,t.asClassName=i.dT.asClassName,t.asCSSSelector=i.dT.asCSSSelector}(c||(c={}));const p={ThemingContribution:"base.contributions.theming"};let g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.Q5}onColorThemeChange(t){return this.themingParticipants.push(t),this.onThemingParticipantAddedEmitter.fire(t),(0,s.OF)((()=>{const e=this.themingParticipants.indexOf(t);this.themingParticipants.splice(e,1)}))}getThemingParticipants(){return this.themingParticipants}};function m(t){return g.onColorThemeChange(t)}o.B.add(p.ThemingContribution,g);class v extends s.JT{constructor(t){super(),this.themeService=t,this.theme=t.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((t=>this.onThemeChange(t))))}onThemeChange(t){this.theme=t,this.updateStyles()}updateStyles(){}}},29301:function(t,e,n){"use strict";n.d(e,{Z:function(){return x}});var i=n(14809),r=n(59301),s=n(11592),a=(n(48736),n(20439)),o=n(93664),l=n(76846),u=n(8654),h=r.createContext(null);var c=n(76374),d=new Map;var f=new c.Z((function(t){t.forEach((function(t){var e,n=t.target;null===(e=d.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));var p=n(99153),g=n(84851),m=n(19257),v=n(54941),y=function(t){(0,m.Z)(n,t);var e=(0,v.Z)(n);function n(){return(0,p.Z)(this,n),e.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function A(t,e){var n=t.children,i=t.disabled,s=r.useRef(null),c=r.useRef(null),p=r.useContext(h),g="function"==typeof n,m=g?n(s):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),A=!g&&r.isValidElement(m)&&(0,u.Yr)(m),b=A?(0,u.C4)(m):null,w=(0,u.x1)(b,s),E=function(){var t;return(0,l.ZP)(s.current)||(s.current&&"object"===(0,o.Z)(s.current)?(0,l.ZP)(null===(t=s.current)||void 0===t?void 0:t.nativeElement):null)||(0,l.ZP)(c.current)};r.useImperativeHandle(e,(function(){return E()}));var x=r.useRef(t);x.current=t;var k=r.useCallback((function(t){var e=x.current,n=e.onResize,i=e.data,r=t.getBoundingClientRect(),s=r.width,o=r.height,l=t.offsetWidth,u=t.offsetHeight,h=Math.floor(s),c=Math.floor(o);if(v.current.width!==h||v.current.height!==c||v.current.offsetWidth!==l||v.current.offsetHeight!==u){var d={width:h,height:c,offsetWidth:l,offsetHeight:u};v.current=d;var f=l===Math.round(s)?s:l,g=u===Math.round(o)?o:u,m=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:f,offsetHeight:g});null==p||p(m,t,i),n&&Promise.resolve().then((function(){n(m,t)}))}}),[]);return r.useEffect((function(){var t,e,n=E();return n&&!i&&(t=n,e=k,d.has(t)||(d.set(t,new Set),f.observe(t)),d.get(t).add(e)),function(){return function(t,e){d.has(t)&&(d.get(t).delete(e),d.get(t).size||(f.unobserve(t),d.delete(t)))}(n,k)}}),[s.current,i]),r.createElement(y,{ref:c},A?r.cloneElement(m,{ref:w}):m)}var b=r.forwardRef(A);function w(t,e){var n=t.children;return("function"==typeof n?[n]:(0,s.Z)(n)).map((function(n,s){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(s);return r.createElement(b,(0,i.Z)({},t,{key:a,ref:0===s?e:void 0}),n)}))}var E=r.forwardRef(w);E.Collection=function(t){var e=t.children,n=t.onBatchResize,i=r.useRef(0),s=r.useRef([]),a=r.useContext(h),o=r.useCallback((function(t,e,r){i.current+=1;var o=i.current;s.current.push({size:t,element:e,data:r}),Promise.resolve().then((function(){o===i.current&&(null==n||n(s.current),s.current=[])})),null==a||a(t,e,r)}),[n,a]);return r.createElement(h.Provider,{value:o},e)};var x=E},55477:function(t,e,n){"use strict";n.d(e,{G:function(){return p},Z:function(){return v}});var i=n(14809),r=n(20439),s=n(62646),a=n(35593),o=n(59301),l={shiftX:64,adjustY:1},u={adjustX:1,shiftY:!0},h=[0,0],c={left:{points:["cr","cl"],overflow:u,offset:[-4,0],targetOffset:h},right:{points:["cl","cr"],overflow:u,offset:[4,0],targetOffset:h},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:h},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:h},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:h},leftTop:{points:["tr","tl"],overflow:u,offset:[-4,0],targetOffset:h},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:h},rightTop:{points:["tl","tr"],overflow:u,offset:[4,0],targetOffset:h},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:h},rightBottom:{points:["bl","br"],overflow:u,offset:[4,0],targetOffset:h},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:h},leftBottom:{points:["br","bl"],overflow:u,offset:[-4,0],targetOffset:h}},d=n(92310),f=n.n(d);function p(t){var e=t.children,n=t.prefixCls,i=t.id,r=t.overlayInnerStyle,s=t.className,a=t.style;return o.createElement("div",{className:f()("".concat(n,"-content"),s),style:a},o.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:r},"function"==typeof e?e():e))}var g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(t,e){var n=t.overlayClassName,l=t.trigger,u=void 0===l?["hover"]:l,h=t.mouseEnterDelay,d=void 0===h?0:h,f=t.mouseLeaveDelay,m=void 0===f?.1:f,v=t.overlayStyle,y=t.prefixCls,A=void 0===y?"rc-tooltip":y,b=t.children,w=t.onVisibleChange,E=t.afterVisibleChange,x=t.transitionName,k=t.animation,T=t.motion,C=t.placement,D=void 0===C?"right":C,S=t.align,I=void 0===S?{}:S,R=t.destroyTooltipOnHide,L=void 0!==R&&R,B=t.defaultVisible,P=t.getTooltipContainer,O=t.overlayInnerStyle,M=(t.arrowContent,t.overlay),N=t.id,F=t.showArrow,_=void 0===F||F,U=(0,s.Z)(t,g),z=(0,o.useRef)(null);(0,o.useImperativeHandle)(e,(function(){return z.current}));var j=(0,r.Z)({},U);"visible"in t&&(j.popupVisible=t.visible);return o.createElement(a.Z,(0,i.Z)({popupClassName:n,prefixCls:A,popup:function(){return o.createElement(p,{key:"content",prefixCls:A,id:N,overlayInnerStyle:O},M)},action:u,builtinPlacements:c,popupPlacement:D,ref:z,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:E,popupTransitionName:x,popupAnimation:k,popupMotion:T,defaultPopupVisible:B,autoDestroy:L,mouseLeaveDelay:m,popupStyle:v,mouseEnterDelay:d,arrow:_},j),b)},v=(0,o.forwardRef)(m)},49658:function(t,e){"use strict";e.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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(null==t?void 0:t.substr(0,4))}},83145:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var i=s(n(59301)),r=s(n(25769));function s(t){return t&&t.__esModule?t:{default:t}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;o.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new i,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),i=new w(e,n,this);E.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var k=void 0!==s.ResizeObserver?s.ResizeObserver:x;e.Z=k},98040:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(){return A=Object.assign?Object.assign.bind():function(t){for(var e=1;e`):x}(t,n)}const D=T();const S=D;function I(t=!0){if("undefined"==typeof self)return;return(t||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function R(t,e){const n=Object.keys(t),i=Object.keys(e),r=n.length,s=i.length;return!r||!s||r===s&&!n.some((t=>-1===i.indexOf(t)))}function L(t,e=!1){if("undefined"!=typeof TextDecoder){const n=new TextDecoder("utf-8").decode(t);if(e){const t=n.indexOf("\0");return-1!==t?n.substring(0,t):n}return n.replace(/\0/g,"")}const n=t.length;let i,r,s,a="",o=0;for(;o>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:r=t[o++],a+=String.fromCharCode((31&i)<<6|63&r);break;case 14:r=t[o++],s=t[o++],a+=String.fromCharCode((15&i)<<12|(63&r)<<6|(63&s)<<0)}}return a}const B=function(t){let e="";for(let n=0;n1||1===e&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){i(t)?this._programDateTime=t:this._programDateTime=this.rawProgramDateTime=null}get ref(){return Y(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){if(this.levelkeys){const e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}}abortRequests(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()}setElementaryStreamInfo(t,e,n,i,r,s=!1){const{elementaryStreams:a}=this,o=a[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,n),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,r)):a[t]={startPTS:e,endPTS:n,startDTS:i,endDTS:r,partial:s}}}class X extends V{constructor(t,e,n,i,r){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=e,this.index=i;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function W(t,e){const n=Object.getPrototypeOf(t);if(n){const t=Object.getOwnPropertyDescriptor(n,e);return t||W(n,e)}}const Z=Math.pow(2,32)-1,J=[].push,$={video:1,audio:2,id3:3,text:4};function tt(t){return String.fromCharCode.apply(null,t)}function et(t,e){const n=t[e]<<8|t[e+1];return n<0?65536+n:n}function nt(t,e){const n=rt(t,e);return n<0?4294967296+n:n}function it(t,e){let n=nt(t,e);return n*=Math.pow(2,32),n+=nt(t,e+4),n}function rt(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function st(t,e,n){t[e]=n>>24,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function at(t,e){const n=[];if(!e.length)return n;const i=t.byteLength;for(let r=0;r1?r+s:i;if(tt(t.subarray(r+4,r+8))===e[0])if(1===e.length)n.push(t.subarray(r+8,a));else{const i=at(t.subarray(r+8,a),e.slice(1));i.length&&J.apply(n,i)}r=a}return n}function ot(t){const e=[],n=t[0];let i=8;const r=nt(t,i);i+=4;let s=0,a=0;0===n?(s=nt(t,i),a=nt(t,i+4),i+=8):(s=it(t,i),a=it(t,i+8),i+=16),i+=2;let o=t.length+a;const l=et(t,i);i+=2;for(let n=0;n>>31)return S.warn("SIDX has hierarchical references (not supported)"),null;const l=nt(t,n);n+=4,e.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:o,end:o+a-1}}),o+=a,n+=4,i=n}return{earliestPresentationTime:s,timescale:r,version:n,referencesCount:l,references:e}}function lt(t){const e=[],n=at(t,["moov","trak"]);for(let t=0;t{const n=nt(t,4),i=e[n];i&&(i.default={duration:nt(t,12),flags:nt(t,20)})})),e}function ut(t){const e=t.subarray(8),n=e.subarray(86),i=tt(e.subarray(4,8));let r,s=i;const a="enca"===i||"encv"===i;if(a){const t=at(e,[i])[0];at(t.subarray("enca"===i?28:78),["sinf"]).forEach((t=>{const e=at(t,["schm"])[0];if(e){const n=tt(e.subarray(4,8));if("cbcs"===n||"cenc"===n){const e=at(t,["frma"])[0];e&&(s=tt(e))}}}))}const o=s;switch(s){case"avc1":case"avc2":case"avc3":case"avc4":{const t=at(n,["avcC"])[0];t&&t.length>3&&(s+="."+dt(t[1])+dt(t[2])+dt(t[3]),r=ht("avc1"===o?"dva1":"dvav",n));break}case"mp4a":{const t=at(e,[i])[0],n=at(t.subarray(28),["esds"])[0];if(n&&n.length>7){let t=4;if(3!==n[t++])break;t=ct(n,t),t+=2;const e=n[t++];if(128&e&&(t+=2),64&e&&(t+=n[t++]),4!==n[t++])break;t=ct(n,t);const i=n[t++];if(64!==i)break;if(s+="."+dt(i),t+=12,5!==n[t++])break;t=ct(n,t);const r=n[t++];let a=(248&r)>>3;31===a&&(a+=1+((7&r)<<3)+((224&n[t])>>5)),s+="."+a}break}case"hvc1":case"hev1":{const t=at(n,["hvcC"])[0];if(t&&t.length>12){const e=t[1],n=["","A","B","C"][e>>6],i=31&e,r=nt(t,2),a=(32&e)>>5?"H":"L",o=t[12],l=t.subarray(6,12);s+="."+n+i,s+="."+function(t){let e=0;for(let n=0;n<32;n++)e|=(t>>n&1)<<31-n;return e>>>0}(r).toString(16).toUpperCase(),s+="."+a+o;let u="";for(let t=l.length;t--;){const e=l[t];if(e||u){u="."+e.toString(16).toUpperCase()+u}}s+=u}r=ht("hev1"==o?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":s=ht(s,n)||s;break;case"vp09":{const t=at(n,["vpcC"])[0];if(t&&t.length>6){const e=t[4],n=t[5],i=t[6]>>4&15;s+="."+ft(e)+"."+ft(n)+"."+ft(i)}break}case"av01":{const t=at(n,["av1C"])[0];if(t&&t.length>2){const e=t[1]>>>5,i=31&t[1],a=t[2]>>>7?"H":"M",o=(64&t[2])>>6,l=(32&t[2])>>5,u=2===e&&o?l?12:10:o?10:8,h=(16&t[2])>>4,c=(8&t[2])>>3,d=(4&t[2])>>2,f=3&t[2],p=1,g=1,m=1,v=0;s+="."+e+"."+ft(i)+a+"."+ft(u)+"."+h+"."+c+d+f+"."+ft(p)+"."+ft(g)+"."+ft(m)+"."+v,r=ht("dav1",n)}break}}return{codec:s,encrypted:a,supplemental:r}}function ht(t,e){const n=at(e,["dvvC"]),i=n.length?n[0]:at(e,["dvcC"])[0];if(i){const e=i[2]>>1&127,n=i[2]<<5&32|i[3]>>3&31;return t+"."+ft(e)+"."+ft(n)}}function ct(t,e){const n=e+5;for(;128&t[e++]&&e{const l=o.byteOffset-8;at(o,["traf"]).map((o=>{const u=at(o,["tfdt"]).map((t=>{const e=t[0];let n=nt(t,4);return 1===e&&(n*=Math.pow(2,32),n+=nt(t,8)),n/r}))[0];return void 0!==u&&(t=u),at(o,["tfhd"]).map((u=>{const h=nt(u,4),c=16777215&nt(u,0);let d=0;const f=0!=(16&c);let p=0;const g=0!=(32&c);let m=8;h===s&&(0!=(1&c)&&(m+=8),0!=(2&c)&&(m+=4),0!=(8&c)&&(d=nt(u,m),m+=4),f&&(p=nt(u,m),m+=4),g&&(m+=4),"video"===e.type&&(a=vt(e.codec)),at(o,["trun"]).map((s=>{const o=s[0],u=16777215&nt(s,0),h=0!=(1&u);let c=0;const f=0!=(4&u),g=0!=(256&u);let m=0;const v=0!=(512&u);let y=0;const A=0!=(1024&u),b=0!=(2048&u);let w=0;const E=nt(s,4);let x=8;h&&(c=nt(s,x),x+=4),f&&(x+=4);let k=c+l;for(let l=0;l>1&63;return 39===t||40===t}return 6===(31&e)}function At(t,e,n,i){const r=bt(t);let s=0;s+=e;let a=0,o=0,l=0;for(;s=r.length)break;l=r[s++],a+=l}while(255===l);o=0;do{if(s>=r.length)break;l=r[s++],o+=l}while(255===l);const t=r.length-s;let e=s;if(ot){S.error(`Malformed SEI payload. ${o} is too small, only ${t} bytes left to parse.`);break}if(4===a){if(181===r[e++]){const t=et(r,e);if(e+=2,49===t){const t=nt(r,e);if(e+=4,1195456820===t){const t=r[e++];if(3===t){const s=r[e++],o=64&s,l=o?2+3*(31&s):0,u=new Uint8Array(l);if(o){u[0]=s;for(let t=1;t16){const t=[];for(let n=0;n<16;n++){const i=r[e++].toString(16);t.push(1==i.length?"0"+i:i),3!==n&&5!==n&&7!==n&&9!==n||t.push("-")}const s=o-16,l=new Uint8Array(s);for(let t=0;t0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),function(t,...e){const n=e.length;let i=8,r=n;for(;r--;)i+=e[r].byteLength;const s=new Uint8Array(i);for(s[0]=i>>24&255,s[1]=i>>16&255,s[2]=i>>8&255,s[3]=255&i,s.set(t,4),r=0,i=8;r>>24;if(0!==r&&1!==r)return{offset:n,size:e};const s=t.buffer,a=B(new Uint8Array(s,n+12,16)),o=t.getUint32(28);let l=null,u=null;if(0===r){if(e-32/\(Windows.+Firefox\//i.test(navigator.userAgent),kt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Tt(t,e){const n=kt[e];return!!n&&!!n[t.slice(0,4)]}function Ct(t,e,n=!0){return!t.split(",").some((t=>!Dt(t,e,n)))}function Dt(t,e,n=!0){var i;const r=I(n);return null!=(i=null==r?void 0:r.isTypeSupported(St(t,e)))&&i}function St(t,e){return`${e}/mp4;codecs=${t}`}function It(t){if(t){const e=t.substring(0,4);return kt.video[e]}return 2}function Rt(t){const e=xt();return t.split(",").reduce(((t,n)=>{const i=e&&vt(n)?9:kt.video[n];return i?(2*i+t)/(t?3:2):(kt.audio[n]+t)/(t?2:1)}),0)}const Lt={};const Bt=/flac|opus|mp4a\.40\.34/i;function Pt(t,e=!0){return t.replace(Bt,(t=>function(t,e=!0){if(Lt[t])return Lt[t];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[t];for(let r=0;r4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(t)))return t;if(e){const n=e.split(",");if(n.length>1){if(t)for(let e=n.length;e--;)if(n[e].substring(0,4)===t.substring(0,4))return n[e];return n[0]}}return e||t}function Mt(t){if(t.startsWith("av01.")){const e=t.split("."),n=["0","111","01","01","01","0"];for(let t=e.length;t>4&&t<10;t++)e[t]=n[t-4];return e.join(".")}return t}function Nt(t){const e=I(t)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Ft(t){return t.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const _t={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Ut(t,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:t}}const zt={};function jt(t,e,n,r,s,a){const o=t.audioCodec?t.audioGroups:null,l=null==a?void 0:a.audioCodec,u=null==a?void 0:a.channels,h=u?parseInt(u):l?1/0:2;let c=null;if(null!=o&&o.length)try{c=1===o.length&&o[0]?e.groups[o[0]].channels:o.reduce(((t,n)=>{if(n){const i=e.groups[n];if(!i)throw new Error(`Audio track group ${n} not found`);Object.keys(i.channels).forEach((e=>{t[e]=(t[e]||0)+i.channels[e]}))}return t}),{2:0})}catch(t){return!0}return void 0!==t.videoCodec&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(r,30)||"SDR"!==t.videoRange&&t.videoRange!==n||t.bitrate>Math.max(s,8e6))||!!c&&i(h)&&Object.keys(c).some((t=>parseInt(t)>h))}function Gt(t,e,n){const r=t.videoCodec,s=t.audioCodec;if(!r&&!s||!n)return Promise.resolve(_t);const a=[];if(r){const e={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(.9*t.bitrate,t.averageBitrate)),framerate:t.frameRate||30},n=t.videoRange;"SDR"!==n&&(e.transferFunction=n.toLowerCase());const i=r.split(","),s=navigator.userAgent;if(i.some((t=>vt(t)))&&xt())return Promise.resolve(Ut(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${s})`),a));a.push.apply(a,i.map((t=>({type:"media-source",video:w(w({},e),{},{contentType:St(Mt(t),"video")})}))))}return s&&t.audioGroups&&t.audioGroups.forEach((t=>{var n;t&&(null==(n=e.groups[t])||n.tracks.forEach((e=>{if(e.groupId===t){const t=e.channels||"",n=parseFloat(t);i(n)&&n>2&&a.push.apply(a,s.split(",").map((t=>({type:"media-source",audio:{contentType:St(t,"audio"),channels:""+n}}))))}})))})),Promise.all(a.map((t=>{const e=function(t){const{audio:e,video:n}=t,i=n||e;if(i){const t=Ft(i.contentType);if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${t}_${Math.ceil(n.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${t}`}return""}(t);return zt[e]||(zt[e]=n.decodingInfo(t))}))).then((t=>({supported:!t.some((t=>!t.supported)),configurations:a,decodingInfoResults:t}))).catch((t=>({supported:!1,configurations:a,decodingInfoResults:[],error:t})))}const qt=["NONE","TYPE-0","TYPE-1",null];const Ht=["SDR","PQ","HLG"];var Qt="",Vt="YES",Yt="v2";function Kt(t){const{canSkipUntil:e,canSkipDateRanges:n,age:i}=t;return e&&i!!t)).map((t=>t.substring(0,4))).join(","),"supplemental"in t){var e;this.supplemental=t.supplemental;const n=null==(e=t.supplemental)?void 0:e.videoCodec;n&&n!==t.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return Zt(this._audioGroups,t)}hasSubtitleGroup(t){return Zt(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,e){if(e)if("audio"===t){let t=this._audioGroups;t||(t=this._audioGroups=[]),-1===t.indexOf(e)&&t.push(e)}else if("text"===t){let t=this._subtitleGroups;t||(t=this._subtitleGroups=[]),-1===t.indexOf(e)&&t.push(e)}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return null==(t=this.audioGroups)?void 0:t[0]}get textGroupId(){var t;return null==(t=this.subtitleGroups)?void 0:t[0]}addFallback(){}}function Zt(t,e){return!(!e||!t)&&-1!==t.indexOf(e)}function Jt(t,e){let n=!1,i=[];if(t&&(n="SDR"!==t,i=[t]),e){i=e.allowedVideoRanges||Ht.slice(0);const t="SDR"!==i.join("")&&!e.videoCodec;n=void 0!==e.preferHDR?e.preferHDR:t&&function(){if("function"==typeof matchMedia){const t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return!0===t.matches}return!1}(),n||(i=["SDR"])}return{preferHDR:n,allowedVideoRanges:i}}const $t=(t,e)=>JSON.stringify(t,(t=>{const e=new WeakSet;return(n,i)=>{if(t&&(i=t(n,i)),"object"==typeof i&&null!==i){if(e.has(i))return;e.add(i)}return i}})(e));function te(t,e){S.log(`[abr] start candidates with "${t}" ignored because ${e}`)}function ee(t){return t.reduce(((t,e)=>{let n=t.groups[e.groupId];n||(n=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(e);const i=e.channels||"2";return n.channels[i]=(n.channels[i]||0)+1,n.hasDefault=n.hasDefault||e.default,n.hasAutoSelect=n.hasAutoSelect||e.autoselect,n.hasDefault&&(t.hasDefaultAudio=!0),n.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ne(t){if(!t)return t;const{lang:e,assocLang:n,characteristics:i,channels:r,audioCodec:s}=t;return{lang:e,assocLang:n,characteristics:i,channels:r,audioCodec:s}}function ie(t,e,n){if("attrs"in t){const n=e.indexOf(t);if(-1!==n)return n}for(let i=0;i-1===i.indexOf(t)))}(t.characteristics||"",e.characteristics))&&(void 0===n||n(t,e))}function se(t,e){const{audioCodec:n,channels:i}=t;return!(void 0!==n&&(e.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==i&&i!==(e.channels||"2"))}function ae(t,e,n){for(let i=e;i>-1;i--)if(n(t[i]))return i;for(let i=e+1;i0)n=r+1;else{if(!(a<0))return s;i=r-1}}return null};function ue(t,e,n=0,i=0,r=.005){let s=null;if(t){s=e[1+t.sn-e[0].sn]||null;const i=t.endDTS-n;i>0&&i<15e-7&&(n+=15e-7),s&&t.level!==s.level&&s.end<=t.end&&(s=e[2+t.sn-e[0].sn]||null)}else 0===n&&0===e[0].start&&(s=e[0]);if(s&&((!t||t.level===s.level)&&0===he(n,i,s)||function(t,e,n){if(e&&0===e.start&&e.level0){const i=e.tagList.reduce(((t,e)=>("INF"===e[0]&&(t+=parseFloat(e[1])),t)),n);return t.start<=i}return!1}(s,t,Math.min(r,i))))return s;const a=le(e,he.bind(null,n,i));return!a||a===t&&s?s:a}function he(t=0,e=0,n){if(n.start<=t&&n.start+n.duration>t)return 0;const i=Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=t?1:n.start-i>t&&n.start?-1:0}function ce(t,e,n){const i=1e3*Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>t}function de(t,e,n){if(t&&t.startCC<=e&&t.endCC>=e){let i=t.fragments;const{fragmentHint:r}=t;let s;return r&&(i=i.concat(r)),le(i,(t=>t.cce?-1:(s=t,t.end<=n?1:t.start>n?-1:0))),s||null}return null}function fe(t){switch(t.details){case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_TIMEOUT:case o.LEVEL_LOAD_TIMEOUT:case o.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function pe(t,e){const n=fe(e);return t.default[(n?"timeout":"error")+"Retry"]}function ge(t,e){const n="linear"===t.backoff?1:Math.pow(2,e);return Math.min(n*t.retryDelayMs,t.maxRetryDelayMs)}function me(t){return w(w({},t),{errorRetry:null,timeoutRetry:null})}function ve(t,e,n,i){if(!t)return!1;const r=null==i?void 0:i.code,s=e499)}(r)||!!n);return t.shouldRetry?t.shouldRetry(t,e,n,i,s):s}var ye=0,Ae=2,be=3,we=5,Ee=0,xe=1,ke=2;function Te(t){const e={action:ye,flags:Ee};return t&&(e.resolved=!0),e}var Ce="NOT_LOADED",De="APPENDING",Se="PARTIAL",Ie="OK";class Re{constructor(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.BUFFER_APPENDED,this.onBufferAppended,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this),t.on(l.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.BUFFER_APPENDED,this.onBufferAppended,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this),t.off(l.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(t,e){const n=this.activePartLists[e];if(n)for(let e=n.length;e--;){const i=n[e];if(!i)break;const r=i.end;if(i.start<=t&&null!==r&&t<=r)return i}return this.getBufferedFrag(t,e)}getBufferedFrag(t,e){return this.getFragAtPos(t,e,!0)}getFragAtPos(t,e,n){const{fragments:i}=this,r=Object.keys(i);for(let s=r.length;s--;){const a=i[r[s]];if((null==a?void 0:a.body.type)===e&&(!n||a.buffered)){const e=a.body;if(e.start<=t&&t<=e.end)return e}}return null}detectEvictedFragments(t,e,n,i,r){this.timeRanges&&(this.timeRanges[t]=e);const s=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const a=this.fragments[i];if(!a)return;if(s>=a.body.sn)return;if(!a.buffered&&(!a.loaded||r))return void(a.body.type===n&&this.removeFragment(a.body));const o=a.range[t];o&&(0!==o.time.length?o.time.some((t=>{const n=!this.isTimeBuffered(t.startPTS,t.endPTS,e);return n&&this.removeFragment(a.body),n})):this.removeFragment(a.body))}))}detectPartialFragments(t){const e=this.timeRanges;if(!e||"initSegment"===t.frag.sn)return;const n=t.frag,i=Be(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;const s=!n.relurl;if(Object.keys(e).forEach((i=>{const a=n.elementaryStreams[i];if(!a)return;const o=e[i],l=s||!0===a.partial;r.range[i]=this.getBufferedTimes(n,t.part,l,o)})),r.loaded=null,Object.keys(r.range).length){r.buffered=!0;(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),Le(r)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(r.body)}removeParts(t,e){const n=this.activePartLists[e];n&&(this.activePartLists[e]=Pe(n,(e=>e.fragment.sn>=t)))}fragBuffered(t,e){const n=Be(t);let i=this.fragments[n];!i&&e&&(i=this.fragments[n]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,e,n,i){const r={time:[],partial:n},s=t.start,a=t.end,o=t.minEndPTS||a,l=t.maxStartPTS||s;for(let t=0;t=e&&o<=n){r.time.push({startPTS:Math.max(s,i.start(t)),endPTS:Math.min(a,i.end(t))});break}if(se){const e=Math.max(s,i.start(t)),n=Math.min(a,i.end(t));n>e&&(r.partial=!0,r.time.push({startPTS:e,endPTS:n}))}else if(a<=e)break}return r}getPartialFragment(t){let e,n,i,r=null,s=0;const{bufferPadding:a,fragments:o}=this;return Object.keys(o).forEach((l=>{const u=o[l];u&&Le(u)&&(n=u.body.start-a,i=u.body.end+a,t>=n&&t<=i&&(e=Math.min(t-n,i-t),s<=e&&(r=u.body,s=e)))})),r}isEndListAppended(t){const e=this.endListFragments[t];return void 0!==e&&(e.buffered||Le(e))}getState(t){const e=Be(t),n=this.fragments[e];return n?n.buffered?Le(n)?Se:Ie:De:Ce}isTimeBuffered(t,e,n){let i,r;for(let s=0;s=i&&e<=r)return!0;if(e<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,e){if("initSegment"===e.frag.sn||e.frag.bitrateTest)return;const n=e.frag,i=e.part?null:e,r=Be(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(t,e){const{frag:n,part:i,timeRanges:r,type:s}=e;if("initSegment"===n.sn)return;const a=n.type;if(i){let t=this.activePartLists[a];t||(this.activePartLists[a]=t=[]),t.push(i)}this.timeRanges=r;const o=r[s];this.detectEvictedFragments(s,o,a,i)}onFragBuffered(t,e){this.detectPartialFragments(e)}hasFragment(t){const e=Be(t);return!!this.fragments[e]}hasFragments(t){const{fragments:e}=this,n=Object.keys(e);if(!t)return n.length>0;for(let i=n.length;i--;){const r=e[n[i]];if((null==r?void 0:r.body.type)===t)return!0}return!1}hasParts(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)}removeFragmentsInRange(t,e,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((s=>{const a=this.fragments[s];if(!a)return;const o=a.body;o.type!==n||i&&!o.gap||o.startt&&(a.buffered||r)&&this.removeFragment(o)}))}removeFragment(t){const e=Be(t);t.clearElementaryStreamInfo();const n=this.activePartLists[t.type];if(n){const e=t.sn;this.activePartLists[t.type]=Pe(n,(t=>t.fragment.sn!==e))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t,e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=null==(t=this.hls)||null==(e=t.latestLevelDetails)?void 0:e.partList;n&&n.forEach((t=>t.clearElementaryStreamInfo()))}}function Le(t){var e,n,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(n=t.range.audio)?void 0:n.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function Be(t){return`${t.type}_${t.level}_${t.sn}`}function Pe(t,e){return t.filter((t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n}))}var Oe=0,Me=1;class Ne{constructor(t,e,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=e,this.aesMode=n}decrypt(t,e){switch(this.aesMode){case Oe:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t);case Me:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},e,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class Fe{constructor(){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()}uint8ArrayToUint32Array_(t){const e=new DataView(t),n=new Uint32Array(4);for(let t=0;t<4;t++)n[t]=e.getUint32(4*t);return n}initTable(){const t=this.sBox,e=this.invSBox,n=this.subMix,i=n[0],r=n[1],s=n[2],a=n[3],o=this.invSubMix,l=o[0],u=o[1],h=o[2],c=o[3],d=new Uint32Array(256);let f=0,p=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){let n=p^p<<1^p<<2^p<<3^p<<4;n=n>>>8^255&n^99,t[f]=n,e[n]=f;const o=d[f],g=d[o],m=d[g];let v=257*d[n]^16843008*n;i[f]=v<<24|v>>>8,r[f]=v<<16|v>>>16,s[f]=v<<8|v>>>24,a[f]=v,v=16843009*m^65537*g^257*o^16843008*f,l[n]=v<<24|v>>>8,u[n]=v<<16|v>>>16,h[n]=v<<8|v>>>24,c[n]=v,f?(f=o^d[d[d[m^o]]],p^=d[d[p]]):f=p=1}}expandKey(t){const e=this.uint8ArrayToUint32Array_(t);let n=!0,i=0;for(;i{const a=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(a,e,n,i);const o=this.flush();o?r(o.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(t),e,n,i)}softwareDecrypt(t,e,n,i){const{currentIV:r,currentResult:s,remainderData:a}=this;if(i!==Oe||16!==e.byteLength)return S.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(t=gt(a,t),this.remainderData=null);const o=this.getValidChunk(t);if(!o.length)return null;r&&(n=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new Fe),l.expandKey(e);const u=s;return this.currentResult=l.decrypt(o.buffer,0,n),this.currentIV=o.slice(-16).buffer,u||null}webCryptoDecrypt(t,e,n,i){if(this.key!==e||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,e,n,i));this.key=e,this.fastAesKey=new _e(this.subtle,e,i)}return this.fastAesKey.expandKey().then((e=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new Ne(this.subtle,new Uint8Array(n),i).decrypt(t.buffer,e)})).catch((r=>(S.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(t,e,n,i))))}onWebCryptoError(t,e,n,i){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,n,i);const r=this.flush();if(r)return r.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let e=t;const n=t.length-t.length%16;return n!==t.length&&(e=t.slice(0,n),this.remainderData=t.slice(n)),e}logOnce(t){this.logEnabled&&(S.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const ze=Math.pow(2,17);class je{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,e){const n=t.url;if(!n)return Promise.reject(new He({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),t.gap){if(t.tagList.some((t=>"GAP"===t[0])))return void u(qe(t));t.gap=!1}const h=this.loader=r?new r(i):new s(i),c=Ge(t);t.loader=h;const d=me(i.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:ze};t.stats=h.stats;const p={onSuccess:(e,n,i,r)=>{this.resetLoader(t,h);let s=e.data;i.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),l({frag:t,part:null,payload:s,networkDetails:r})},onError:(e,i,r,s)=>{this.resetLoader(t,h),u(new He({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:w({url:n,data:void 0},e),error:new Error(`HTTP Error ${e.code} ${e.text}`),networkDetails:r,stats:s}))},onAbort:(e,n,i)=>{this.resetLoader(t,h),u(new He({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:i,stats:e}))},onTimeout:(e,n,i)=>{this.resetLoader(t,h),u(new He({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:i,stats:e}))}};e&&(p.onProgress=(n,i,r,s)=>e({frag:t,part:null,payload:r,networkDetails:s})),h.load(c,f,p)}))}loadPart(t,e,n){this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),t.gap||e.gap)return void u(qe(t,e));const h=this.loader=r?new r(i):new s(i),c=Ge(t,e);t.loader=h;const d=me(i.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:ze};e.stats=h.stats,h.load(c,f,{onSuccess:(i,r,s,a)=>{this.resetLoader(t,h),this.updateStatsFromPart(t,e);const o={frag:t,part:e,payload:i.data,networkDetails:a};n(o),l(o)},onError:(n,i,r,s)=>{this.resetLoader(t,h),u(new He({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:w({url:c.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:s}))},onAbort:(n,i,r)=>{t.stats.aborted=e.stats.aborted,this.resetLoader(t,h),u(new He({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:t,part:e,error:new Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>{this.resetLoader(t,h),u(new He({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:r,stats:n}))}})}))}updateStatsFromPart(t,e){const n=t.stats,i=e.stats,r=i.total;if(n.loaded+=i.loaded,r){const i=Math.round(t.duration/e.duration),s=Math.min(Math.round(n.loaded/r),i),a=(i-s)*Math.round(n.loaded/s);n.total=n.loaded+a}else n.total=Math.max(n.loaded,n.total);const s=n.loading,a=i.loading;s.start?s.first+=a.first-a.start:(s.start=a.start,s.first=a.first),s.end=a.end}resetLoader(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()}}function Ge(t,e=null){const n=e||t,r={frag:t,part:e,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},s=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(i(s)&&i(a)){var o;let e=s,n=a;if("initSegment"===t.sn&&("AES-128"===(l=null==(o=t.decryptdata)?void 0:o.method)||"AES-256"===l)){const t=a-s;t%16&&(n=a+(16-t%16)),0!==s&&(r.resetIV=!0,e=s-16)}r.rangeStart=e,r.rangeEnd=n}var l;return r}function qe(t,e){const n=new Error(`GAP ${t.gap?"tag":"attribute"} found`),i={type:a.MEDIA_ERROR,details:o.FRAG_GAP,fatal:!1,frag:t,error:n,networkDetails:null};return e&&(i.part=e),(e||t).stats.aborted=!0,new He(i)}class He extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class Qe extends E{constructor(t,e){super(t,e),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Ve{constructor(t,e,n,i=0,r=-1,s=!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={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=n,this.size=i,this.part=r,this.partial=s}}const Ye={length:0,start:()=>0,end:()=>0};class Ke{static isBuffered(t,e){if(t){const n=Ke.getBuffered(t);for(let t=n.length;t--;)if(e>=n.start(t)&&e<=n.end(t))return!0}return!1}static bufferedRanges(t){if(t){const e=Ke.getBuffered(t);return Ke.timeRangesToArray(e)}return[]}static timeRangesToArray(t){const e=[];for(let n=0;n1&&t.sort(((t,e)=>t.start-e.start||e.end-t.end));let i=-1,r=[];if(n)for(let s=0;s=t[s].start&&e<=t[s].end&&(i=s);const a=r.length;if(a){const e=r[a-1].end;t[s].start-ee&&(r[a-1].end=t[s].end):r.push(t[s])}else r.push(t[s])}else r=t;let s,a=0,o=e,l=e;for(let t=0;t=u&&e<=h&&(i=t),e+n>=u&&e{const i=e.substring(2,e.length-1),r=null==n?void 0:n[i];return void 0===r?(t.playlistParsingError||(t.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),e):r}))}return e}function Je(t,e,n){let i,r,s=t.variableList;if(s||(t.variableList=s={}),"QUERYPARAM"in e){i=e.QUERYPARAM;try{const t=new self.URL(n).searchParams;if(!t.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`);r=t.get(i)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${e.message}`))}}else i=e.NAME,r=e.VALUE;i in s?t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):s[i]=r||""}function $e(t,e,n){const i=e.IMPORT;if(n&&i in n){let e=t.variableList;e||(t.variableList=e={}),e[i]=n[i]}else t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}const tn=/^(\d+)x(\d+)$/,en=/(.+?)=(".*?"|.*?)(?:,|$)/g;class nn{constructor(t,e){"string"==typeof t&&(t=nn.parseAttrList(t,e)),A(this,t)}get clientAttrs(){return Object.keys(this).filter((t=>"X-"===t.substring(0,2)))}decimalInteger(t){const e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e}hexadecimalInteger(t){if(this[t]){let e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;const n=new Uint8Array(e.length/2);for(let t=0;tNumber.MAX_SAFE_INTEGER?1/0:e}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,e){const n=this[t];return n?parseFloat(n):e}enumeratedString(t){return this[t]}enumeratedStringList(t,e){const n=this[t];return(n?n.split(/[ ,]+/):[]).reduce(((t,e)=>(t[e.toLowerCase()]=!0,t)),e)}bool(t){return"YES"===this[t]}decimalResolution(t){const e=tn.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}}static parseAttrList(t,e){let n;const i={};for(en.lastIndex=0;null!==(n=en.exec(t));){const r=n[1].trim();let s=n[2];const a=0===s.indexOf('"')&&s.lastIndexOf('"')===s.length-1;let o=!1;if(a)s=s.slice(1,-1);else switch(r){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(e&&(a||o))s=Ze(e,s);else if(!o&&!a)switch(r){case"CLOSED-CAPTIONS":if("NONE"===s)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":S.warn(`${t}: attribute ${r} is missing quotes`)}i[r]=s}return i}}function rn(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t||"SCTE35-CMD"===t}class sn{constructor(t,e,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==e?void 0:e.tagAnchor)||null,this.tagOrder=null!=(r=null==e?void 0:e.tagOrder)?r:n,e){const n=e.attr;for(const e in n)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==n[e]){S.warn(`DATERANGE tag attribute: "${e}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=e;break}t=A(new nn({}),n,t)}if(this.attr=t,e?(this._startDate=e._startDate,this._cue=e._cue,this._endDate=e._endDate,this._dateAtEnd=e._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const t=(null==e?void 0:e.endDate)||new Date(this.attr["END-DATE"]);i(t.getTime())&&(this._endDate=t)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return void 0===t?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return null===t||null===t.programDateTime?(S.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const e=this.duration;return null!==e?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*e):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(i(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&i(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}class an{constructor(t){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.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,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.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t)return this.advanced=!0,void(this.updated=!0);const e=this.lastPartSn-t.lastPartSn,n=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!n||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&i(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const t=this.driftEndTime-this.driftStartTime;if(t>0){return 1e3*(this.driftEnd-this.driftStart)/t}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const e=this.lastPartIndex;if(-1!==e){for(let n=t.length;n--;)if(t[n].index>e)return t[n].index;return e}}return 0}get lastPartSn(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function on(t){return"AES-128"===t||"AES-256"===t||"AES-256-CTR"===t}function ln(t){switch(t){case"AES-128":case"AES-256":return Oe;case"AES-256-CTR":return Me;default:throw new Error(`invalid full segment method ${t}`)}}function un(t){return Uint8Array.from(atob(t),(t=>t.charCodeAt(0)))}function hn(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(t=>t.charCodeAt(0)))}function cn(t){const e=t.split(":");let n=null;if("data"===e[0]&&2===e.length){const t=e[1].split(";"),i=t[t.length-1].split(",");if(2===i.length){const e="base64"===i[0],r=i[1];e?(t.splice(-1,1),n=un(r)):n=function(t){const e=hn(t).subarray(0,16),n=new Uint8Array(16);return n.set(e,16-e.length),n}(r)}}return n}const dn="undefined"!=typeof self?self:void 0;var fn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},pn="org.w3.clearkey",gn="com.apple.streamingkeydelivery",mn="com.microsoft.playready",vn="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function yn(t){switch(t){case gn:return fn.FAIRPLAY;case mn:return fn.PLAYREADY;case vn:return fn.WIDEVINE;case pn:return fn.CLEARKEY}}var An="1077efecc0b24d02ace33c1e52e2fb4b",bn="e2719d58a985b3c9781ab030af78d30e",wn="9a04f07998404286ab92e65be0885f95",En="edef8ba979d64acea3c827dcd51d21ed";function xn(t){return t===En?fn.WIDEVINE:t===wn?fn.PLAYREADY:t===An||t===bn?fn.CLEARKEY:void 0}function kn(t){switch(t){case fn.FAIRPLAY:return gn;case fn.PLAYREADY:return mn;case fn.WIDEVINE:return vn;case fn.CLEARKEY:return pn}}function Tn(t){const{drmSystems:e,widevineLicenseUrl:n}=t,i=e?[fn.FAIRPLAY,fn.WIDEVINE,fn.PLAYREADY,fn.CLEARKEY].filter((t=>!!e[t])):[];return!i[fn.WIDEVINE]&&n&&i.push(fn.WIDEVINE),i}const Cn=null!=dn&&null!=(Dn=dn.navigator)&&Dn.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var Dn;function Sn(t){const e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),n=String.fromCharCode.apply(null,Array.from(e)),i=n.substring(n.indexOf("<"),n.length),r=(new DOMParser).parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(r){const t=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(t){const e=un(t).subarray(0,16);return function(t){const e=function(t,e,n){const i=t[e];t[e]=t[n],t[n]=i};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(e),e}}return null}let In={};class Rn{static clearKeyUriToKeyIdMap(){In={}}constructor(t,e,n,i=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=e,this.keyFormat=n,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&!on(t)}isSupported(){if(this.method){if(on(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case gn:case vn:case mn:case pn:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(t){if(!this.encrypted||!this.uri)return null;if(on(this.method)&&this.uri&&!this.iv){"number"!=typeof t&&(S.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0);const e=function(t){const e=new Uint8Array(16);for(let n=12;n<16;n++)e[n]=t>>8*(15-n)&255;return e}(t);return new Rn(this.method,this.uri,"identity",this.keyFormatVersions,e)}const e=cn(this.uri);if(e)switch(this.keyFormat){case vn:this.pssh=e,e.length>=22&&(this.keyId=e.subarray(e.length-22,e.length-6));break;case mn:{const t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=wt(t,0,e),this.keyId=Sn(e);break}default:{let t=e.subarray(0,16);if(16!==t.length){const e=new Uint8Array(16);e.set(t,16-t.length),t=e}this.keyId=t;break}}if(!this.keyId||16!==this.keyId.byteLength){let t=In[this.uri];if(!t){const e=Object.keys(In).length%Number.MAX_SAFE_INTEGER;t=new Uint8Array(16);new DataView(t.buffer,12,4).setUint32(0,e),In[this.uri]=t}this.keyId=t}return this}}const Ln=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Bn=/#EXT-X-MEDIA:(.*)/g,Pn=/^#EXT(?:INF|-X-TARGETDURATION):/m,On=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Mn=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Nn{static findGroup(t,e){for(let n=0;n0&&i.length({id:t.attrs.AUDIO,audioCodec:t.audioCodec}))),SUBTITLES:s.map((t=>({id:t.attrs.SUBTITLES,textCodec:t.textCodec}))),"CLOSED-CAPTIONS":[]};let o=0;for(Bn.lastIndex=0;null!==(i=Bn.exec(t));){const t=new nn(i[1],n),s=t.TYPE;if(s){const n=a[s],i=r[s]||[];r[s]=i;const l=t.LANGUAGE,u=t["ASSOC-LANGUAGE"],h=t.CHANNELS,c=t.CHARACTERISTICS,d=t["INSTREAM-ID"],f={attrs:t,bitrate:0,id:o++,groupId:t["GROUP-ID"]||"",name:t.NAME||l||"",type:s,default:t.bool("DEFAULT"),autoselect:t.bool("AUTOSELECT"),forced:t.bool("FORCED"),lang:l,url:t.URI?Nn.resolve(t.URI,e):""};if(u&&(f.assocLang=u),h&&(f.channels=h),c&&(f.characteristics=c),d&&(f.instreamId=d),null!=n&&n.length){const t=Nn.findGroup(n,f.groupId)||n[0];Gn(f,t,"audioCodec"),Gn(f,t,"textCodec")}i.push(f)}}return r}static parseLevelPlaylist(t,e,n,r,s,a){var o;const l={url:e},u=new an(e),h=u.fragments,c=[];let d,f,p,g,m=null,v=0,y=0,b=0,w=0,E=0,x=null,k=new K(r,l),T=-1,C=!1,D=null;if(On.lastIndex=0,u.m3u8=t,u.hasVariableRefs=We(t),"#EXTM3U"!==(null==(o=On.exec(t))?void 0:o[0]))return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;null!==(d=On.exec(t));){C&&(C=!1,k=new K(r,l),k.playlistOffset=b,k.start=b,k.sn=v,k.cc=w,E&&(k.bitrate=E),k.level=n,m&&(k.initSegment=m,m.rawProgramDateTime&&(k.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),D&&(k.setByteRange(D),D=null)));const t=d[1];if(t){k.duration=parseFloat(t);const e=(" "+d[2]).slice(1);k.title=e||null,k.tagList.push(e?["INF",t,e]:["INF",t])}else if(d[3]){if(i(k.duration)){k.playlistOffset=b,k.start=b,p&&Qn(k,p,u),k.sn=v,k.level=n,k.cc=w,h.push(k);const t=(" "+d[3]).slice(1);k.relurl=Ze(u,t),qn(k,x,c),x=k,b+=k.duration,v++,y=0,C=!0}}else{if(d=d[0].match(Mn),!d){S.warn("No matches on slow regex match for level playlist!");continue}for(f=1;f0&&Yn(u,t,d),v=u.startSN=parseInt(s);break;case"SKIP":{u.skippedSegments&&Vn(u,t,d);const e=new nn(s,u),n=e.decimalInteger("SKIPPED-SEGMENTS");if(i(n)){u.skippedSegments+=n;for(let t=n;t--;)h.push(null);v+=n}const r=e.enumeratedString("RECENTLY-REMOVED-DATERANGES");r&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(r.split("\t")));break}case"TARGETDURATION":0!==u.targetduration&&Vn(u,t,d),u.targetduration=Math.max(parseInt(s),1);break;case"VERSION":null!==u.version&&Vn(u,t,d),u.version=parseInt(s);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||Vn(u,t,d),u.live=!1;break;case"#":(s||o)&&k.tagList.push(o?[s,o]:[s]);break;case"DISCONTINUITY":w++,k.tagList.push(["DIS"]);break;case"GAP":k.gap=!0,k.tagList.push([t]);break;case"BITRATE":k.tagList.push([t,s]),E=1e3*parseInt(s),i(E)?k.bitrate=E:E=0;break;case"DATERANGE":{const t=new nn(s,u),e=new sn(t,u.dateRanges[t.ID],u.dateRangeTagCount);u.dateRangeTagCount++,e.isValid||u.skippedSegments?u.dateRanges[e.id]=e:S.warn(`Ignoring invalid DATERANGE tag: "${s}"`),k.tagList.push(["EXT-X-DATERANGE",s]);break}case"DEFINE":{const t=new nn(s,u);"IMPORT"in t?$e(u,t,a):Je(u,t,e)}break;case"DISCONTINUITY-SEQUENCE":0!==u.startCC?Vn(u,t,d):h.length>0&&Yn(u,t,d),u.startCC=w=parseInt(s);break;case"KEY":{const t=Un(s,e,u);if(t.isSupported()){if("NONE"===t.method){p=void 0;break}p||(p={}),p[t.keyFormat]&&(p=A({},p)),p[t.keyFormat]=t}else S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${s}"`);break}case"START":u.startTimeOffset=zn(s);break;case"MAP":{const t=new nn(s,u);if(k.duration){const e=new K(r,l);Hn(e,t,n,p),m=e,k.initSegment=m,m.rawProgramDateTime&&!k.rawProgramDateTime&&(k.rawProgramDateTime=m.rawProgramDateTime)}else{const e=k.byteRangeEndOffset;if(e){const t=k.byteRangeStartOffset;D=`${e-t}@${t}`}else D=null;Hn(k,t,n,p),m=k,C=!0}m.cc=w;break}case"SERVER-CONTROL":g&&Vn(u,t,d),g=new nn(s),u.canBlockReload=g.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=g.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&g.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=g.optionalFloat("PART-HOLD-BACK",0),u.holdBack=g.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{u.partTarget&&Vn(u,t,d);const e=new nn(s);u.partTarget=e.decimalFloatingPoint("PART-TARGET");break}case"PART":{let t=u.partList;t||(t=u.partList=[]);const e=y>0?t[t.length-1]:void 0,n=y++,i=new nn(s,u),r=new X(i,k,l,n,e);t.push(r),k.duration+=r.duration;break}case"PRELOAD-HINT":{const t=new nn(s,u);u.preloadHint=t;break}case"RENDITION-REPORT":{const t=new nn(s,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(t);break}default:S.warn(`line parsed but not handled: ${d}`)}}}x&&!x.relurl?(h.pop(),b-=x.duration,u.partList&&(u.fragmentHint=x)):u.partList&&(qn(k,x,c),k.cc=w,u.fragmentHint=k,p&&Qn(k,p,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const I=h.length,R=h[0],L=h[I-1];if(b+=u.skippedSegments*u.targetduration,b>0&&I&&L){u.averagetargetduration=b/I;const t=L.sn;u.endSN="initSegment"!==t?t:0,u.live||(L.endList=!0),R&&void 0===u.startCC&&(u.startCC=R.cc),T>0&&(!function(t,e){let n=t[e];for(let i=e;i--;){const e=t[i];if(!e)return;e.programDateTime=n.programDateTime-1e3*e.duration,n=e}}(h,T),R&&c.unshift(R))}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(b+=u.fragmentHint.duration),u.totalduration=b,c.length&&u.dateRangeTagCount&&R&&Fn(c,u),u.endCC=w,u}}function Fn(t,e){const n=t.length;if(!n)return;const i=t[n-1],r=e.live?1/0:e.totalduration,s=Object.keys(e.dateRanges);for(let a=s.length;a--;){const o=e.dateRanges[s[a]],l=o.startDate.getTime();o.tagAnchor=i.ref;for(let i=n;i--;){const n=_n(e,l,t,i,r);if(-1!==n){o.tagAnchor=e.fragments[n].ref;break}}}}function _n(t,e,n,i,r){const s=n[i];if(s){const o=s.programDateTime;if(e>=o||0===i){var a;if(e<=o+1e3*(((null==(a=n[i+1])?void 0:a.start)||r)-s.start)){const r=n[i].sn-t.startSN,s=t.fragments;if(s.length>n.length){for(let a=(n[i+1]||s[s.length-1]).sn-t.startSN;a>r;a--){const t=s[a].programDateTime;if(e>=t&&et));["video","audio","text"].forEach((t=>{const i=n.filter((e=>Tt(e,t)));i.length&&(e[`${t}Codec`]=i.map((t=>t.split("/")[0])).join(","),n=n.filter((t=>-1===i.indexOf(t))))})),e.unknownCodecs=n}function Gn(t,e,n){const i=e[n];i&&(t[n]=i)}function qn(t,e,n){t.rawProgramDateTime?n.push(t):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime)}function Hn(t,e,n,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=n,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function Qn(t,e,n){t.levelkeys=e;const{encryptedFragments:i}=n;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some((t=>e[t].isCommonEncryption))||i.push(t)}function Vn(t,e,n){t.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${n[0]})`)}function Yn(t,e,n){t.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${n[0]})`)}function Kn(t,e){const n=e.startPTS;if(i(n)){let i,r=0;e.sn>t.sn?(r=n-t.start,i=t):(r=t.start-n,i=e),i.duration!==r&&i.setDuration(r)}else if(e.sn>t.sn){t.cc===e.cc&&t.minEndPTS?e.setStart(t.start+(t.minEndPTS-t.start)):e.setStart(t.start+t.duration)}else e.setStart(Math.max(t.start-e.duration,0))}function Xn(t,e,n,r,s,a){r-n<=0&&(S.warn("Fragment should have a positive duration",e),r=n+e.duration,a=s+e.duration);let o=n,l=r;const u=e.startPTS,h=e.endPTS;if(i(u)){const t=Math.abs(u-n);i(e.deltaPTS)?e.deltaPTS=Math.max(t,e.deltaPTS):e.deltaPTS=t,o=Math.max(n,u),n=Math.min(n,u),s=Math.min(s,e.startDTS),l=Math.min(r,h),r=Math.max(r,h),a=Math.max(a,e.endDTS)}const c=n-e.start;0!==e.start&&e.setStart(n),e.setDuration(r-e.start),e.startPTS=n,e.maxStartPTS=o,e.startDTS=s,e.endPTS=r,e.minEndPTS=l,e.endDTS=a;const d=e.sn;if(!t||dt.endSN)return 0;let f;const p=d-t.startSN,g=t.fragments;for(g[p]=e,f=p;f>0;f--)Kn(g[f],g[f-1]);for(f=p;f=0;t--){const e=r[t].initSegment;if(e){n=e;break}}let s;t.fragmentHint&&delete t.fragmentHint.endPTS,function(t,e,n){const i=e.skippedSegments,r=Math.max(t.startSN,e.startSN)-e.startSN,s=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,a=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;for(let u=r;u<=s;u++){const r=l[a+u];let s=o[u];if(i&&!s&&r&&(s=e.fragments[u]=r),r&&s){if(n(r,s,u,o),r.url&&r.url!==s.url)return void(e.playlistParsingError=Zn(`media sequence mismatch ${s.sn}:`,t,e,r,s));if(r.cc!==s.cc)return void(e.playlistParsingError=Zn(`discontinuity sequence mismatch (${r.cc}!=${s.cc})`,t,e,r,s))}}}(t,e,((t,r,a,o)=>{if((!e.startCC||e.skippedSegments)&&r.cc!==t.cc){const n=t.cc-r.cc;for(let t=a;t{var e;!t||t.initSegment&&t.initSegment.relurl!==(null==(e=n)?void 0:e.relurl)||(t.initSegment=n)})),e.skippedSegments){if(e.deltaUpdateFailed=a.some((t=>!t)),e.deltaUpdateFailed){S.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let t=e.skippedSegments;t--;)a.shift();e.startSN=a[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=function(t,e){const{dateRanges:n,recentlyRemovedDateranges:i}=e,r=A({},t);i&&i.forEach((t=>{delete r[t]}));const s=Object.keys(r).length;s&&Object.keys(n).forEach((t=>{const e=r[t],i=new sn(n[t].attr,e);i.isValid?(r[t]=i,e||(i.tagOrder+=s)):S.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${$t(n[t].attr)}"`)}));return r}(t.dateRanges,e));const n=t.fragments.filter((t=>t.rawProgramDateTime));if(t.hasProgramDateTime&&!e.hasProgramDateTime)for(let t=1;t{e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),s?Xn(e,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):Jn(t,e),a.length&&(e.totalduration=e.edge-a[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const t=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=t),e.driftEndTime=u,e.driftEnd=t}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime;-1===e.requestScheduled&&(e.requestScheduled=t.requestScheduled)}function Zn(t,e,n,i,r){return new Error(`${t} ${r.url}\nPlaylist starting @${e.startSN}\n${e.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function Jn(t,e,n=!0){const i=e.startSN+e.skippedSegments-t.startSN,r=t.fragments,s=i>=0;let a=0;if(s&&ie){const t=1e3*i[i.length-1].duration;t{var n;null==(n=t.details)||n.fragments.forEach((t=>{t.level=e,t.initSegment&&(t.initSegment.level=e)}))}))}function si(t,e){for(let i=0,r=t.length;it.startCC)}(e,t))return;const n=Math.min(e.endCC,t.endCC),i=si(e.fragments,n),r=si(t.fragments,n);if(!i||!r)return;S.log(`Aligning playlist at start of dicontinuity sequence ${n}`);oi(i.start-r.start,t)}function ui(t,e){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;const n=t.fragments,i=e.fragments;if(!n.length||!i.length)return;let r,s;const a=Math.min(e.endCC,t.endCC);e.startCC{const{config:t,fragCurrent:e,media:n,mediaBuffer:r,state:s}=this,a=n?n.currentTime:0,o=Ke.bufferInfo(r||n,a,t.maxBufferHole);if(this.log(`media seeking to ${i(a)?a.toFixed(3):a}, state: ${s}`),this.state===Ai)this.resetLoadingState();else if(e){const n=t.maxFragLookUpTolerance,i=e.start-n,r=e.start+e.duration+n;if(!o.len||ro.end){const t=a>r;(athis.lastCurrentTime&&(this.lastCurrentTime=a),!this.loadingParts){const t=Math.max(o.end,a),e=this.shouldLoadParts(this.getLevelDetails(),t);e&&(this.log(`LL-Part loading ON after seeking to ${a.toFixed(2)} with buffer @${t.toFixed(2)}`),this.loadingParts=e)}}this.hls.hasEnoughToStart||o.len||(this.log(`setting startPosition to ${a} because of seek before start`),this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=s,this.hls=t,this.fragmentLoader=new je(t.config),this.keyLoader=n,this.fragmentTracker=e,this.config=t.config,this.decrypter=new Ue(t.config)}registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===ci)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=ci}get startPositionValue(){const{nextLoadPosition:t,startPosition:e}=this;return-1===e&&t?t:e}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,e){if(e.live||!this.media)return!1;const n=t.end||0,i=this.config.timelineOffset||0;if(n<=i)return!1;const r=t.buffered;this.config.maxBufferHole&&r&&r.length>1&&(t=Ke.bufferedInfo(r,t.start,0));const s=t.nextStart;if(s&&s>i&&s{const e=t.frag;if(this.fragContextChanged(e))return this.warn(`${e.type} sn: ${e.sn}${t.part?" part: "+t.part.index:""} of ${this.fragInfo(e,!1,t.part)}) was dropped during download.`),void this.fragmentTracker.removeFragment(e);e.stats.chunkCount++,this._handleFragmentLoadProgress(t)})).then((t=>{if(!t)return;const e=this.state,n=t.frag;this.fragContextChanged(n)?(e===pi||!this.fragCurrent&&e===vi)&&(this.fragmentTracker.removeFragment(n),this.state=di):("payload"in t&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(l.FRAG_LOADED,t)),this._handleFragmentLoadComplete(t))})).catch((e=>{this.state!==ci&&this.state!==bi&&(this.warn(`Frag error: ${(null==e?void 0:e.message)||e}`),this.resetFragmentLoading(t))}))}clearTrackerIfNeeded(t){var e;const{fragmentTracker:n}=this;if(n.getState(t)===De){const e=t.type,i=this.getFwdBufferInfo(this.mediaBuffer,e),r=Math.max(t.duration,i?i.len:this.config.maxBufferLength),s=this.backtrackFragment;(1===(s?t.sn-s.sn:0)||this.reduceMaxBufferLength(r,t.duration))&&n.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?n.removeAllFragments():n.hasParts(t.type)&&(n.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),n.getState(t)===Se&&n.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const e=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const e=t.details;return(null==e?void 0:e.live)&&"EVENT"!==e.type&&(this.levelLastLoaded!==t||e.expired)}flushMainBuffer(t,e,n=null){if(!(t-e))return;const i={startOffset:t,endOffset:e,type:n};this.hls.trigger(l.BUFFER_FLUSHING,i)}_loadInitSegment(t,e){this._doFragLoad(t,e).then((t=>{const e=null==t?void 0:t.frag;if(!e||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return t})).then((t=>{const{hls:e}=this,{frag:n,payload:i}=t,r=n.decryptdata;if(i&&i.byteLength>0&&null!=r&&r.key&&r.iv&&on(r.method)){const s=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer,ln(r.method)).catch((t=>{throw e.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:n}),t})).then((i=>{const r=self.performance.now();return e.trigger(l.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:s,tdecrypt:r}}),t.payload=i,this.completeInitSegmentLoad(t)}))}return this.completeInitSegmentLoad(t)})).catch((e=>{this.state!==ci&&this.state!==bi&&(this.warn(e),this.resetFragmentLoading(t))}))}completeInitSegmentLoad(t){const{levels:e}=this;if(!e)throw new Error("init load aborted, missing levels");const n=t.frag.stats;this.state!==ci&&(this.state=di),t.frag.data=new Uint8Array(t.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(t){const{fragCurrent:e}=this;return!t||!e||t.sn!==e.sn||t.level!==e.level}fragBufferedComplete(t,e){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.fragInfo(t,!1,e)} > buffer:${n?hi(Ke.getBuffered(n)):"(detached)"})`),Y(t)){var i;if(t.type!==g){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return void(this.state=di)}const e=null==(i=this.levels)?void 0:i[t.level];null!=e&&e.fragmentError&&(this.log(`Resetting level fragment error count of ${e.fragmentError} on frag buffered`),e.fragmentError=0)}this.state=di}_handleFragmentLoadComplete(t){const{transmuxer:e}=this;if(!e)return;const{frag:n,part:i,partsLoaded:r}=t,s=!r||0===r.length||r.some((t=>!t)),a=new Ve(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!s);e.flush(a)}_handleFragmentLoadProgress(t){}_doFragLoad(t,e,n=null,r){var s;this.fragCurrent=t;const a=null==e?void 0:e.details;if(!this.levels||!a)throw new Error(`frag load aborted, missing level${a?"":" detail"}s`);let o=null;!t.encrypted||null!=(s=t.decryptdata)&&s.key?t.encrypted||(o=this.keyLoader.loadClear(t,a.encryptedFragments),o&&this.log("[eme] blocking frag load until media-keys acquired")):(this.log(`Loading key for ${t.sn} of [${a.startSN}-${a.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=fi,this.fragCurrent=t,o=this.keyLoader.load(t).then((t=>{if(!this.fragContextChanged(t.frag))return this.hls.trigger(l.KEY_LOADED,t),this.state===fi&&(this.state=di),t})),this.hls.trigger(l.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING"))));const u=this.fragPrevious;if(Y(t)&&(!u||t.sn!==u.sn)){const n=this.shouldLoadParts(e.details,t.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==u?void 0:u.sn}->${t.sn}`),this.loadingParts=n)}if(n=Math.max(t.start,n||0),this.loadingParts&&Y(t)){const i=a.partList;if(i&&r){n>t.end&&a.fragmentHint&&(t=a.fragmentHint);const s=this.getNextPart(i,t,n);if(s>-1){const u=i[s];let h;return t=this.fragCurrent=u.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${u.index} (${s}/${i.length-1}) of ${this.fragInfo(t,!1,u)}) cc: ${t.cc} [${a.startSN}-${a.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=u.start+u.duration,this.state=pi,h=o?o.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(t,u,e,r))).catch((t=>this.handleFragLoadError(t))):this.doFragPartsLoad(t,u,e,r).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(l.FRAG_LOADING,{frag:t,part:u,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}if(!t.url||this.loadedEndOfParts(i,n))return Promise.resolve(null)}}if(Y(t)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${a?"["+a.startSN+"-"+a.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),i(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=pi;const h=this.config.progressive;let c;return c=h&&o?o.then((e=>!e||this.fragContextChanged(null==e?void 0:e.frag)?null:this.fragmentLoader.load(t,r))).catch((t=>this.handleFragLoadError(t))):Promise.all([this.fragmentLoader.load(t,h?r:void 0),o]).then((([t])=>(!h&&t&&r&&r(t),t))).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(l.FRAG_LOADING,{frag:t,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(t,e,n,i){return new Promise(((r,s)=>{var a;const o=[],u=null==(a=n.details)?void 0:a.partList,h=e=>{this.fragmentLoader.loadPart(t,e,i).then((i=>{o[e.index]=i;const s=i.part;this.hls.trigger(l.FRAG_LOADED,i);const a=ni(n.details,t.sn,e.index+1)||ii(u,t.sn,e.index+1);if(!a)return r({frag:t,part:s,partsLoaded:o});h(a)})).catch(s)};h(e)}))}handleFragLoadError(t){if("data"in t){const e=t.data;t.data&&e.details===o.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(l.ERROR,e)}else this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const e=this.getCurrentContext(t);if(!e||this.state!==vi)return void(this.fragCurrent||this.state===ci||this.state===bi||(this.state=di));const{frag:n,part:i,level:r}=e,s=self.performance.now();n.stats.parsing.end=s,i&&(i.stats.parsing.end=s);const a=this.getLevelDetails(),o=a&&n.sn>a.endSN||this.shouldLoadParts(a,n.end);o!==this.loadingParts&&(this.log(`LL-Part loading ${o?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=o),this.updateLevelTiming(n,i,r,t.partial)}shouldLoadParts(t,e){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(null!=t&&t.partList){var n;const r=t.partList[0];if(e>=r.end+((null==(n=t.fragmentHint)?void 0:n.duration)||0)){var i;if((this.hls.hasEnoughToStart?(null==(i=this.media)?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:e,fragCurrent:n}=this,{level:i,sn:r,part:s}=t;if(null==e||!e[i])return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const a=e[i],o=a.details,l=s>-1?ni(o,r,s):null,u=l?l.fragment:ei(o,r,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:a}):null}bufferFragmentData(t,e,n,i,r){var s;if(!t||this.state!==vi)return;const{data1:a,data2:o}=t;let u=a;if(a&&o&&(u=gt(a,o)),null==(s=u)||!s.length)return;const h={type:t.type,frag:e,part:n,chunkMeta:i,parent:e.type,data:u};if(this.hls.trigger(l.BUFFER_APPENDING,h),t.dropped&&t.independent&&!n){if(r)return;this.flushBufferGap(e)}}flushBufferGap(t){const e=this.media;if(!e)return;if(!Ke.isBuffered(e,e.currentTime))return void this.flushMainBuffer(0,t.start);const n=e.currentTime,i=Ke.bufferInfo(e,n,0),r=t.duration,s=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),a=Math.max(Math.min(t.start-s,i.end-s),n+s);t.start-a>s&&this.flushMainBuffer(a,t.start)}getFwdBufferInfo(t,e){var n;const r=this.getLoadPosition();if(!i(r))return null;const s=this.lastCurrentTime>r||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,r,e,s)}getFwdBufferInfoAtPos(t,e,n,i){const r=Ke.bufferInfo(t,e,i);if(0===r.len&&void 0!==r.nextStart){const s=this.fragmentTracker.getBufferedFrag(e,n);if(s&&(r.nextStart<=s.end||s.gap)){const n=Math.max(Math.min(r.nextStart,s.end)-e,i);return Ke.bufferInfo(t,e,n)}}return r}getMaxBufferLength(t){const{config:e}=this;let n;return n=t?Math.max(8*e.maxBufferSize/t,e.maxBufferLength):e.maxBufferLength,Math.min(n,e.maxMaxBufferLength)}reduceMaxBufferLength(t,e){const n=this.config,i=Math.max(Math.min(t-e,n.maxBufferLength),e),r=Math.max(t-3*e,n.maxMaxBufferLength/2,i);return r>=i&&(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(t,e=f){var n;const i=null==(n=this.fragmentTracker)?void 0:n.getAppendedFrag(t,e);return i&&"fragment"in i?i.fragment:i}getNextFragment(t,e){const n=e.fragments,i=n.length;if(!i)return null;const{config:r}=this,s=n[0].start,a=r.lowLatencyMode&&!!e.partList;let o=null;if(e.live){const n=r.initialLiveManifestSize;if(i=s?n:i)||o.start:t;this.log(`Setting startPosition to ${r} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${i} frag.start: ${null==(l=o)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=r}}else t<=s&&(o=n[0]);if(!o){const n=this.loadingParts?e.partEnd:e.fragmentEnd;o=this.getFragmentAtPosition(t,n,e)}let u=this.filterReplacedPrimary(o,e);if(!u&&o){const t=o.sn-e.startSN;u=this.filterReplacedPrimary(n[t+1]||null,e)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(t,e){const n=this.fragmentTracker.getState(t);return(n===Ie||n===Se&&!!t.gap)&&this.nextLoadPosition>e}getNextFragmentLoopLoading(t,e,n,i,r){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,e),s&&!s.gap&&n.nextStart)){const t=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i,0);if(null!==t&&n.len+t.len>=r){const t=s.sn;return this.loopSn!==t&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${t}`),this.loopSn=t),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ki(this.hls.config)){var t,e;if(null==(t=this.hls.interstitialsManager)||null==(e=t.playingItem)?void 0:e.event)return!0}return!1}filterReplacedPrimary(t,e){if(!t)return t;if(ki(this.hls.config)&&t.type!==g){const n=this.hls.interstitialsManager,i=null==n?void 0:n.bufferingItem;if(i){const n=i.event;if(n){if(n.appendInPlace||Math.abs(t.start-i.start)>1||0===i.start)return null}else{if(t.end<=i.start&&!1===(null==e?void 0:e.live))return null;if(t.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||t.start-i.end>1))return null}}const r=null==n?void 0:n.playerQueue;if(r)for(let e=r.length;e--;){const n=r[e].interstitial;if(n.appendInPlace&&t.start>=n.startTime&&t.end<=n.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment}getNextPart(t,e,n){let i=-1,r=!1,s=!0;for(let a=0,o=t.length;a-1&&nn.start&&n.loaded}getInitialLiveFragment(t){const e=t.fragments,n=this.fragPrevious;let r=null;if(n){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=function(t,e,n){if(null===e||!Array.isArray(t)||!t.length||!i(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;for(let i=0;i=t.startSN&&i<=t.endSN){const s=e[i-t.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=de(t,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const e=this.hls.liveSyncPosition;null!==e&&(r=this.getFragmentAtPosition(e,this.bitrateTest?t.fragmentEnd:t.edge,t))}return r}getFragmentAtPosition(t,e,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:s,endSN:a}=n;const{fragmentHint:o}=n,{maxFragLookUpTolerance:l}=i,u=n.partList,h=!!(this.loadingParts&&null!=u&&u.length&&o);let c;if(h&&o&&!this.bitrateTest&&u[u.length-1].fragment.sn===o.sn&&(s=s.concat(o),a=o.sn),te-l||null!=(d=this.media)&&d.paused||!this.startFragRequested?0:l)}else c=s[s.length-1];if(c){const t=c.sn-n.startSN,e=this.fragmentTracker.getState(c);if((e===Ie||e===Se&&c.gap)&&(r=c),r&&c.sn===r.sn&&(!h||u[0].fragment.sn>c.sn||!n.live&&!h)){if(r&&c.level===r.level){const e=s[t+1];c=c.sn${t.startSN} fragments: ${r}`),i}return s}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)}setStartPosition(t,e){let n=this.startPosition;n=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(t,e){this.transmuxer&&t.type===this.playlistType&&Y(t)&&t.stats.aborted&&(this.warn(`Fragment ${t.sn}${e?" part "+e.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===gi)||(this.state=di)}onFragmentOrKeyLoadError(t,e){if(e.chunkMeta&&!e.frag){const t=this.getCurrentContext(e.chunkMeta);t&&(e.frag=t.frag)}const n=e.frag;if(!n||n.type!==t||!this.levels)return;var i;if(this.fragContextChanged(n))return void this.warn(`Frag load error must match current frag to retry ${n.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const r=e.details===o.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(n,!0);const s=e.errorAction,{action:a,flags:l,retryCount:u=0,retryConfig:h}=s||{},c=!!s&&!!h,d=c&&a===we,f=c&&!s.resolved&&l===xe;if(!d&&f&&Y(n)&&!n.endList)this.resetFragmentErrors(t),this.treatAsGap(n),s.resolved=!0;else if((d||f)&&u.5;r&&this.reduceMaxBufferLength(i.len,(null==e?void 0:e.duration)||10);const s=!r;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),e&&(this.fragmentTracker.removeFragment(e),this.nextLoadPosition=e.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===p&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==ci&&(this.state=di)}afterBufferFlushed(t,e,n){if(!t)return;const i=Ke.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,n),this.state===Ai&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==ci&&(this.state=di)}resetStartWhenNotLoaded(t){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=t?t.details:null;null!=e&&e.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(e,e.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.warn(`The loading context changed while buffering fragment ${t.sn} of ${this.playlistLabel()} ${t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,e,n,i){const r=n.details;if(!r)return void this.warn("level.details undefined");var s;if(!Object.keys(t.elementaryStreams).reduce(((e,s)=>{const a=t.elementaryStreams[s];if(a){const o=a.endPTS-a.startPTS;if(o<=0)return this.warn(`Could not parse fragment ${t.sn} ${s} duration reliably (${o})`),e||!1;const u=i?0:Xn(r,t,a.startPTS,a.endPTS,a.startDTS,a.endDTS);return this.hls.trigger(l.LEVEL_PTS_UPDATED,{details:r,level:n,drift:u,type:s,frag:t,start:a.startPTS,end:a.endPTS}),!0}return e}),!1)&&(0===n.fragmentError&&this.treatAsGap(t,n),null===(null==(s=this.transmuxer)?void 0:s.error))){const e=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(e.message),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,error:e,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=yi,this.log(`Parsed ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.fragInfo(t,!1,e)})`),this.hls.trigger(l.FRAG_PARSED,{frag:t,part:e})}playlistLabel(){return this.playlistType===f?"level":"track"}fragInfo(t,e=!0,n){var i,r;return`${this.playlistLabel()} ${t.level} (${n?"part":"frag"}:[${(null!=(i=e&&!n?t.startPTS:(n||t).start)?i:NaN).toFixed(3)}-${(null!=(r=e&&!n?t.endPTS:(n||t).end)?r:NaN).toFixed(3)}]${n&&"main"===t.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(t,e){e&&e.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;null==(t=this.transmuxer)||t.reset()}recoverWorkerError(t){"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(t){const e=this._state;e!==t&&(this._state=t,this.log(`${e}->${t}`))}get state(){return this._state}}function ki(t){return!!t.interstitialsController&&!1!==t.enableInterstitialPlayback}class Ti{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:e}=this;let n;return t.length?(n=1===t.length?t[0]:function(t,e){const n=new Uint8Array(e);let i=0;for(let e=0;e0)return t.subarray(n,n+i)}function Ni(t,e){return 255===t[e]&&240==(246&t[e+1])}function Fi(t,e){return 1&t[e+1]?7:9}function _i(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function Ui(t,e){return e+1=t.length)return!1;const i=_i(t,e);if(i<=n)return!1;const r=e+i;return r===t.length||Ui(t,r)}return!1}function ji(t,e,n,i,r){if(!t.samplerate){const s=function(t,e,n,i){const r=e[n+2],s=r>>2&15;if(s>12){const e=new Error(`invalid ADTS sampling index:${s}`);return void t.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!0,error:e,reason:e.message})}const u=1+(r>>6&3),h=e[n+3]>>6&3|(1&r)<<2,c="mp4a.40."+u,d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][s];let f=s;5!==u&&29!==u||(f-=3);const p=[u<<3|(14&f)>>1,(1&f)<<7|h<<3];return S.log(`manifest codec:${i}, parsed codec:${c}, channels:${h}, rate:${d} (ADTS object type:${u} sampling index:${s})`),{config:p,samplerate:d,channelCount:h,codec:c,parsedCodec:c,manifestCodec:i}}(e,n,i,r);if(!s)return;A(t,s)}}function Gi(t){return 9216e4/t}function qi(t,e,n,i,r){const s=i+r*Gi(t.samplerate),a=function(t,e){const n=Fi(t,e);if(e+n<=t.length){const i=_i(t,e)-n;if(i>0)return{headerLength:n,frameLength:i}}}(e,n);let o;if(a){const{frameLength:i,headerLength:r}=a,l=r+i,u=Math.max(0,n+l-e.length);u?(o=new Uint8Array(l-r),o.set(e.subarray(n+r,e.length),0)):o=e.subarray(n+r,n+l);const h={unit:o,pts:s};return u||t.samples.push(h),{sample:h,length:l,missing:u}}const l=e.length-n;o=new Uint8Array(l),o.set(e.subarray(n,e.length),0);return{sample:{unit:o,pts:s},length:l,missing:-1}}function Hi(t,e){return Pi(t,e)&&Oi(t,e+6)+10<=t.length-e}function Qi(t,e=0,n=1/0){return function(t,e,n,i){const r=function(t){return t instanceof ArrayBuffer?t:t.buffer}(t);let s=1;"BYTES_PER_ELEMENT"in i&&(s=i.BYTES_PER_ELEMENT);const a=(c=t,c&&c.buffer instanceof ArrayBuffer&&void 0!==c.byteLength&&void 0!==c.byteOffset?t.byteOffset:0),o=(a+t.byteLength)/s,l=(a+e)/s,u=Math.floor(Math.max(0,Math.min(l,o))),h=Math.floor(Math.min(u+Math.max(n,0),o));var c;return new i(r,u,h-u)}(t,e,n,Uint8Array)}function Vi(t){const e={key:t.type,description:"",data:"",mimeType:null,pictureType:null};if(t.size<2)return;if(3!==t.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=t.data.subarray(1).indexOf(0);if(-1===n)return;const i=L(Qi(t.data,1,n)),r=t.data[2+n],s=t.data.subarray(3+n).indexOf(0);if(-1===s)return;const a=L(Qi(t.data,3+n,s));let o;return o="--\x3e"===i?L(Qi(t.data,4+n+s)):function(t){return t instanceof ArrayBuffer?t:0==t.byteOffset&&t.byteLength==t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer}(t.data.subarray(4+n+s)),e.mimeType=i,e.pictureType=r,e.description=a,e.data=o,e}function Yi(t){return"PRIV"===t.type?function(t){if(t.size<2)return;const e=L(t.data,!0),n=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:n.buffer}}(t):"W"===t.type[0]?function(t){if("WXXX"===t.type){if(t.size<2)return;let e=1;const n=L(t.data.subarray(e),!0);e+=n.length+1;const i=L(t.data.subarray(e));return{key:t.type,info:n,data:i}}const e=L(t.data);return{key:t.type,info:"",data:e}}(t):"APIC"===t.type?Vi(t):function(t){if(t.size<2)return;if("TXXX"===t.type){let e=1;const n=L(t.data.subarray(e),!0);e+=n.length+1;const i=L(t.data.subarray(e));return{key:t.type,info:n,data:i}}const e=L(t.data.subarray(1));return{key:t.type,info:"",data:e}}(t)}function Ki(t){const e=String.fromCharCode(t[0],t[1],t[2],t[3]),n=Oi(t,4);return{type:e,size:n,data:t.subarray(10,10+n)}}function Xi(t){let e=0;const n=[];for(;Pi(t,e);){const i=Oi(t,e+6);t[e+5]>>6&1&&(e+=10),e+=10;const r=e+i;for(;e+100&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:$i.audioId3,duration:Number.POSITIVE_INFINITY});s{if(i(t))return 90*t;return 9e4*e+(n?9e4*n.baseTime/n.timescale:0)};let ir=null;const rr=[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],sr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],ar=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],or=[0,1,1,4];function lr(t,e,n,i,r){if(n+24>e.length)return;const s=ur(e,n);if(s&&n+s.frameLength<=e.length){const a=i+r*(9e4*s.samplesPerFrame/s.sampleRate),o={unit:e.subarray(n,n+s.frameLength),pts:a,dts:a};return t.config=[],t.channelCount=s.channelCount,t.samplerate=s.sampleRate,t.samples.push(o),{sample:o,length:s.frameLength,missing:0}}}function ur(t,e){const n=t[e+1]>>3&3,i=t[e+1]>>1&3,r=t[e+2]>>4&15,s=t[e+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==s){const a=t[e+2]>>1&1,o=t[e+3]>>6,l=1e3*rr[14*(3===n?3-i:3===i?3:4)+r-1],u=sr[3*(3===n?0:2===n?1:2)+s],h=3===o?1:2,c=ar[n][i],d=or[i],f=8*c*d,p=Math.floor(c*l/u+a)*d;if(null===ir){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ir=t?parseInt(t[1]):0}return!!ir&&ir<=87&&2===i&&l>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:u,channelCount:h,frameLength:p,samplesPerFrame:f}}}function hr(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function cr(t,e){return e+1{let n=0,i=5;e+=i;const r=new Uint32Array(1),s=new Uint32Array(1),a=new Uint8Array(1);for(;i>0;){a[0]=t[e];const o=Math.min(i,8),l=8-o;s[0]=4278190080>>>24+l<>l,n=n?n<e.length)return-1;if(11!==e[n]||119!==e[n+1])return-1;const s=e[n+4]>>6;if(s>=3)return-1;const a=[48e3,44100,32e3][s],o=63&e[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+s];if(n+l>e.length)return-1;const u=e[n+6]>>5;let h=0;2===u?h+=2:(1&u&&1!==u&&(h+=2),4&u&&(h+=2));const c=(e[n+6]<<8|e[n+7])>>12-h&1,d=[2,1,2,3,3,4,4,5][u]+c,f=e[n+5]>>3,p=7&e[n+5],g=new Uint8Array([s<<6|f<<1|p>>2,(3&p)<<6|u<<3|c<<2|o>>4,o<<4&224]),m=i+r*(1536/a*9e4),v=e.subarray(n,n+l);return t.config=g,t.channelCount=d,t.samplerate=a,t.samples.push({unit:v,pts:m}),l}const mr=/\/emsg[-/]ID3/i;function vr(t,e){return i(t.presentationTime)?t.presentationTime/t.timeScale:e+t.presentationTimeDelta/t.timeScale}class yr{constructor(t,e,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Ue(e,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,Oe)}decryptAacSample(t,e,n){const i=t[e].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),s=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(s).then((r=>{const s=new Uint8Array(r);i.set(s,16),this.decrypter.isSync()||this.decryptAacSamples(t,e+1,n)}))}decryptAacSamples(t,e,n){for(;;e++){if(e>=t.length)return void n();if(!(t[e].unit.length<32)&&(this.decryptAacSample(t,e,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const e=16*Math.floor((t.length-48)/160)+16,n=new Int8Array(e);let i=0;for(let e=32;e{r.data=this.getAvcDecryptedUnit(s,a),this.decrypter.isSync()||this.decryptAvcSamples(t,e,n+1,i)}))}decryptAvcSamples(t,e,n,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,n=0){if(e>=t.length)return void i();const r=t[e].units;for(;!(n>=r.length);n++){const s=r[n];if(!(s.data.length<=48||1!==s.type&&5!==s.type||(this.decryptAvcSample(t,e,n,i,s),this.decrypter.isSync())))return}}}}class Ar{constructor(){this.VideoSample=null}createVideoSample(t,e,n){return{key:t,frame:!1,pts:e,dts:n,units:[],length:0}}getLastNalUnit(t){var e;let n,i=this.VideoSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){const t=i.units;n=t[t.length-1]}return n}pushAccessUnit(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){const n=e.samples,i=n.length;if(!i)return void e.dropped++;{const e=n[i-1];t.pts=e.pts,t.dts=e.dts}}e.samples.push(t)}}parseNALu(t,e,n){const i=e.byteLength;let r=t.naluState||0;const s=r,a=[];let o,l,u,h=0,c=-1,d=0;for(-1===r&&(c=0,d=this.getNALuType(e,0),r=0,h=1);h=0){const t={data:e.subarray(c,l),type:d};a.push(t)}else{const n=this.getLastNalUnit(t.samples);n&&(s&&h<=4-s&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-s)),l>0&&(n.data=gt(n.data,e.subarray(0,l)),n.state=0))}h=0&&r>=0){const t={data:e.subarray(c,i),type:d,state:r};a.push(t)}if(0===a.length){const n=this.getLastNalUnit(t.samples);n&&(n.data=gt(n.data,e))}return t.naluState=r,a}}class br{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,e=this.bytesAvailable,n=t.byteLength-e,i=new Uint8Array(4),r=Math.min(4,e);if(0===r)throw new Error("no bytes available");i.set(t.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(t){let e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(e=(t-=this.bitsAvailable)>>3,t-=e<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let e=Math.min(this.bitsAvailable,t);const n=this.word>>>32-e;if(t>32&&S.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return e=t-e,e>0&&this.bitsAvailable?n<>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class wr extends Ar{parsePES(t,e,n,i){const r=this.parseNALu(t,n.data,i);let s,a=this.VideoSample,o=!1;n.data=null,a&&r.length&&!t.audFound&&(this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach((i=>{var r,l;switch(i.type){case 1:{let e=!1;s=!0;const r=i.data;if(o&&r.length>4){const t=this.readSliceType(r);2!==t&&4!==t&&7!==t&&9!==t||(e=!0)}var u;if(e)null!=(u=a)&&u.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.frame=!0,a.key=e;break}case 5:s=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 6:s=!0,At(i.data,1,n.pts,e.samples);break;case 7:{var h,c;s=!0,o=!0;const e=i.data,n=this.readSPS(e);if(!t.sps||t.width!==n.width||t.height!==n.height||(null==(h=t.pixelRatio)?void 0:h[0])!==n.pixelRatio[0]||(null==(c=t.pixelRatio)?void 0:c[1])!==n.pixelRatio[1]){t.width=n.width,t.height=n.height,t.pixelRatio=n.pixelRatio,t.sps=[e];const i=e.subarray(1,4);let r="avc1.";for(let t=0;t<3;t++){let e=i[t].toString(16);e.length<2&&(e="0"+e),r+=e}t.codec=r}break}case 8:s=!0,t.pps=[i.data];break;case 9:s=!0,t.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,t),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:s=!0;break;default:s=!1}if(a&&s){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null)}getNALuType(t,e){return 31&t[e]}readSliceType(t){const e=new br(t);return e.readUByte(),e.readUEG(),e.readUEG()}skipScalingList(t,e){let n,i=8,r=8;for(let s=0;s{var r,l;switch(i.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.frame=!0,s=!0;break;case 16:case 17:case 18:case 21:var u;if(s=!0,o)null!=(u=a)&&u.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:s=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 39:s=!0,At(i.data,2,n.pts,e.samples);break;case 32:s=!0,t.vps||("object"!=typeof t.params&&(t.params={}),t.params=A(t.params,this.readVPS(i.data)),this.initVPS=i.data),t.vps=[i.data];break;case 33:if(s=!0,o=!0,void 0===t.vps||t.vps[0]===this.initVPS||void 0===t.sps||this.matchSPS(t.sps[0],i.data)||(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const e=this.readSPS(i.data);t.width=e.width,t.height=e.height,t.pixelRatio=e.pixelRatio,t.codec=e.codecString,t.sps=[],"object"!=typeof t.params&&(t.params={});for(const n in e.params)t.params[n]=e.params[n]}this.pushParameterSet(t.sps,i.data,t.vps),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0;break;case 34:if(s=!0,"object"==typeof t.params){if(!t.pps){t.pps=[];const e=this.readPPS(i.data);for(const n in e)t.params[n]=e[n]}this.pushParameterSet(t.pps,i.data,t.vps)}break;case 35:s=!0,t.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,t),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:s=!1}if(a&&s){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null)}pushParameterSet(t,e,n){(n&&n[0]===this.initVPS||!n&&!t.length)&&t.push(e)}getNALuType(t,e){return(126&t[e])>>>1}ebsp2rbsp(t){const e=new Uint8Array(t.byteLength);let n=0;for(let i=0;i=2&&3===t[i]&&0===t[i-1]&&0===t[i-2]||(e[n]=t[i],n++);return new Uint8Array(e.buffer,0,n)}pushAccessUnit(t,e){super.pushAccessUnit(t,e),this.initVPS&&(this.initVPS=null)}readVPS(t){const e=new br(t);e.readUByte(),e.readUByte(),e.readBits(4),e.skipBits(2),e.readBits(6);return{numTemporalLayers:e.readBits(3)+1,temporalIdNested:e.readBoolean()}}readSPS(t){const e=new br(this.ebsp2rbsp(t));e.readUByte(),e.readUByte(),e.readBits(4);const n=e.readBits(3);e.readBoolean();const i=e.readBits(2),r=e.readBoolean(),s=e.readBits(5),a=e.readUByte(),o=e.readUByte(),l=e.readUByte(),u=e.readUByte(),h=e.readUByte(),c=e.readUByte(),d=e.readUByte(),f=e.readUByte(),p=e.readUByte(),g=e.readUByte(),m=e.readUByte(),v=[],y=[];for(let t=0;t0)for(let t=n;t<8;t++)e.readBits(2);for(let t=0;t1&&e.readEG();for(let t=0;t0&&t<16?(P=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][t-1],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][t-1]):255===t&&(P=e.readBits(16),O=e.readBits(16))}e.readBoolean()&&e.readBoolean();if(e.readBoolean()){e.readBits(3),e.readBoolean();e.readBoolean()&&(e.readUByte(),e.readUByte(),e.readUByte())}e.readBoolean()&&(e.readUEG(),e.readUEG()),e.readBoolean(),e.readBoolean(),e.readBoolean(),_=e.readBoolean(),_&&(x+=e.readUEG(),k+=e.readUEG(),T+=e.readUEG(),C+=e.readUEG());if(e.readBoolean()){N=e.readBits(32),F=e.readBits(32);e.readBoolean()&&e.readUEG();if(e.readBoolean()){const t=e.readBoolean(),i=e.readBoolean();let r=!1;(t||i)&&(r=e.readBoolean(),r&&(e.readUByte(),e.readBits(5),e.readBoolean(),e.readBits(5)),e.readBits(4),e.readBits(4),r&&e.readBits(4),e.readBits(5),e.readBits(5),e.readBits(5));for(let s=0;s<=n;s++){M=e.readBoolean();let n=!1;M||e.readBoolean()?e.readEG():n=e.readBoolean();const s=n?1:e.readUEG()+1;if(t)for(let t=0;t>t&1)<<31-t)>>>0;let H=q.toString(16);1===s&&"2"===H&&(H="6");return{codecString:`hvc1.${j}${s}.${H}.${r?"H":"L"}${m}.B0`,params:{general_tier_flag:r,general_profile_idc:s,general_profile_space:i,general_profile_compatibility_flags:[a,o,l,u],general_constraint_indicator_flags:[h,c,d,f,p,g],general_level_idc:m,bit_depth:D+8,bit_depth_luma_minus8:D,bit_depth_chroma_minus8:S,min_spatial_segmentation_idc:B,chroma_format_idc:A,frame_rate:{fixed:M,fps:F/N}},width:U,height:z,pixelRatio:[P,O]}}readPPS(t){const e=new br(this.ebsp2rbsp(t));e.readUByte(),e.readUByte(),e.skipUEG(),e.skipUEG(),e.skipBits(2),e.skipBits(3),e.skipBits(2),e.skipUEG(),e.skipUEG(),e.skipEG(),e.skipBits(2);e.readBoolean()&&e.skipUEG(),e.skipEG(),e.skipEG(),e.skipBits(4);const n=e.readBoolean(),i=e.readBoolean();let r=1;return i&&n?r=0:i?r=3:n&&(r=2),{parallelismType:r}}matchSPS(t,e){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,e).substr(3)}}const xr=188;class kr{constructor(t,e,n,i){this.logger=void 0,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._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=n,this.logger=i,this.videoParser=null}static probe(t,e){const n=kr.syncOffset(t);return n>0&&e.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(t){const e=t.length;let n=Math.min(940,e-xr)+1,i=0;for(;i1&&(0===s&&a>2||o+xr>n))return s}i++}return-1}static createTrack(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:$[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}}resetInitSegment(t,e,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=kr.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=kr.createTrack("audio",i),this._id3Track=kr.createTrack("id3"),this._txtTrack=kr.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=e,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:e,_id3Track:n}=this;t&&(t.pesData=null),e&&(e.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,e,n=!1,i=!1){let r;n||(this.sampleAes=null);const s=this._videoTrack,a=this._audioTrack,o=this._id3Track,l=this._txtTrack;let u=s.pid,h=s.pesData,c=a.pid,d=o.pid,f=a.pesData,p=o.pesData,g=null,m=this.pmtParsed,v=this._pmtId,y=t.length;if(this.remainderData&&(y=(t=gt(this.remainderData,t)).length,this.remainderData=null),y>4>1){if(b=e+5+t[e+4],b===e+xr)continue}else b=e+4;switch(y){case u:if(i){if(h&&(r=Rr(h,this.logger))){if(null===this.videoParser)switch(s.segmentCodec){case"avc":this.videoParser=new wr;break;case"hevc":this.videoParser=new Er}null!==this.videoParser&&this.videoParser.parsePES(s,l,r,!1)}h={data:[],size:0}}h&&(h.data.push(t.subarray(b,e+xr)),h.size+=e+xr-b);break;case c:if(i){if(f&&(r=Rr(f,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,r);break;case"mp3":this.parseMPEGPES(a,r);break;case"ac3":this.parseAC3PES(a,r)}f={data:[],size:0}}f&&(f.data.push(t.subarray(b,e+xr)),f.size+=e+xr-b);break;case d:i&&(p&&(r=Rr(p,this.logger))&&this.parseID3PES(o,r),p={data:[],size:0}),p&&(p.data.push(t.subarray(b,e+xr)),p.size+=e+xr-b);break;case 0:i&&(b+=t[b]+1),v=this._pmtId=Cr(t,b);break;case v:{i&&(b+=t[b]+1);const r=Dr(t,b,this.typeSupported,n,this.observer,this.logger);u=r.videoPid,u>0&&(s.pid=u,s.segmentCodec=r.segmentVideoCodec),c=r.audioPid,c>0&&(a.pid=c,a.segmentCodec=r.segmentAudioCodec),d=r.id3Pid,d>0&&(o.pid=d),null===g||m||(this.logger.warn(`MPEG-TS PMT found at ${e} after unknown PID '${g}'. Backtracking to sync byte @${A} to parse all TS packets.`),g=null,e=A-188),m=this.pmtParsed=!0;break}case 17:case 8191:break;default:g=y}}else b++;b>0&&Sr(this.observer,new Error(`Found ${b} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=h,a.pesData=f,o.pesData=p;const w={audioTrack:a,videoTrack:s,id3Track:o,textTrack:l};return i&&this.extractRemainingSamples(w),w}flush(){const{remainderData:t}=this;let e;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(t){const{audioTrack:e,videoTrack:n,id3Track:i,textTrack:r}=t,s=n.pesData,a=e.pesData,o=i.pesData;let l;if(s&&(l=Rr(s,this.logger))){if(null===this.videoParser)switch(n.segmentCodec){case"avc":this.videoParser=new wr;break;case"hevc":this.videoParser=new Er}null!==this.videoParser&&(this.videoParser.parsePES(n,r,l,!0),n.pesData=null)}else n.pesData=s;if(a&&(l=Rr(a,this.logger))){switch(e.segmentCodec){case"aac":this.parseAACPES(e,l);break;case"mp3":this.parseMPEGPES(e,l);break;case"ac3":this.parseAC3PES(e,l)}e.pesData=null}else null!=a&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),e.pesData=a;o&&(l=Rr(o,this.logger))?(this.parseID3PES(i,l),i.pesData=null):i.pesData=o}demuxSampleAes(t,e,n){const i=this.demux(t,n,!0,!this.config.progressive),r=this.sampleAes=new yr(this.observer,this.config,e);return this.decrypt(i,r)}decrypt(t,e){return new Promise((n=>{const{audioTrack:i,videoTrack:r}=t;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,(()=>{r.samples?e.decryptAvcSamples(r.samples,0,0,(()=>{n(t)})):n(t)})):r.samples&&e.decryptAvcSamples(r.samples,0,0,(()=>{n(t)}))}))}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,e){let n=0;const i=this.aacOverFlow;let r,s,a,o=e.data;if(i){this.aacOverFlow=null;const e=i.missing,r=i.sample.unit.byteLength;if(-1===e)o=gt(i.sample.unit,o);else{const s=r-e;i.sample.unit.set(o.subarray(0,e),s),t.samples.push(i.sample),n=i.missing}}for(r=n,s=o.length;r0;)o+=s}}parseID3PES(t,e){if(void 0===e.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=A({},e,{type:this._videoTrack?$i.emsg:$i.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(n)}}function Tr(t,e){return((31&t[e+1])<<8)+t[e+2]}function Cr(t,e){return(31&t[e+10])<<8|t[e+11]}function Dr(t,e,n,i,r,s){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e0){let i=e+5,r=l;for(;r>2;){if(106===t[i])!0!==n.ac3?s.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=o,a.segmentAudioCodec="ac3");const e=t[i+1]+2;i+=e,r-=e}}break;case 194:case 135:return Sr(r,new Error("Unsupported EC-3 in M2TS found"),void 0,s),a;case 36:-1===a.videoPid&&(a.videoPid=o,a.segmentVideoCodec="hevc",s.log("HEVC in M2TS found"))}e+=l+5}return a}function Sr(t,e,n,i){i.warn(`parsing error: ${e.message}`),t.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:e,reason:e.message})}function Ir(t,e){e.log(`${t} with AES-128-CBC encryption found in unencrypted stream`)}function Rr(t,e){let n,i,r,s,a,o=0;const l=t.data;if(!t||0===t.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=gt(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(i=(n[4]<<8)+n[5],i&&i>t.size-6)return null;const u=n[7];192&u&&(s=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&u?(a=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,s-a>54e5&&(e.warn(`${Math.round((s-a)/9e4)}s delta between PTS and DTS, align them`),s=a)):a=s),r=n[8];let h=r+9;if(t.size<=h)return null;t.size-=h;const c=new Uint8Array(t.size);for(let t=0,e=l.length;te){h-=e;continue}n=n.subarray(h),e-=h,h=0}c.set(n,o),o+=e}return i&&(i-=r+3),{data:c,pts:s,dts:a,len:i}}return null}class Lr{static getSilentFrame(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)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(6===e)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])}else{if(1===e)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(2===e)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(3===e)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])}}}const Br=Math.pow(2,32)-1;class Pr{static init(){let t;for(t in Pr.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},Pr.types)Pr.types.hasOwnProperty(t)&&(Pr.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const 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]),n=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]);Pr.HDLR_TYPES={video:e,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);Pr.STTS=Pr.STSC=Pr.STCO=r,Pr.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Pr.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Pr.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Pr.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);Pr.FTYP=Pr.box(Pr.types.ftyp,s,o,s,a),Pr.DINF=Pr.box(Pr.types.dinf,Pr.box(Pr.types.dref,i))}static box(t,...e){let n=8,i=e.length;const r=i;for(;i--;)n+=e[i].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=255&n,s.set(t,4),i=0,n=8;i>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(t){return Pr.box(Pr.types.mdia,Pr.mdhd(t.timescale||0,t.duration||0),Pr.hdlr(t.type),Pr.minf(t))}static mfhd(t){return Pr.box(Pr.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}static minf(t){return"audio"===t.type?Pr.box(Pr.types.minf,Pr.box(Pr.types.smhd,Pr.SMHD),Pr.DINF,Pr.stbl(t)):Pr.box(Pr.types.minf,Pr.box(Pr.types.vmhd,Pr.VMHD),Pr.DINF,Pr.stbl(t))}static moof(t,e,n){return Pr.box(Pr.types.moof,Pr.mfhd(t),Pr.traf(n,e))}static moov(t){let e=t.length;const n=[];for(;e--;)n[e]=Pr.trak(t[e]);return Pr.box.apply(null,[Pr.types.moov,Pr.mvhd(t[0].timescale||0,t[0].duration||0)].concat(n).concat(Pr.mvex(t)))}static mvex(t){let e=t.length;const n=[];for(;e--;)n[e]=Pr.trex(t[e]);return Pr.box.apply(null,[Pr.types.mvex,...n])}static mvhd(t,e){e*=t;const n=Math.floor(e/(Br+1)),i=Math.floor(e%(Br+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,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 Pr.box(Pr.types.mvhd,r)}static sdtp(t){const e=t.samples||[],n=new Uint8Array(4+e.length);let i,r;for(i=0;i>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(e=0;e>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(n));const a=Pr.box(Pr.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|t.sps.length].concat(r).concat([t.pps.length]).concat(s))),o=t.width,l=t.height,u=t.pixelRatio[0],h=t.pixelRatio[1];return Pr.box(Pr.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o>>8&255,255&o,l>>8&255,255&l,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,Pr.box(Pr.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Pr.box(Pr.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,h>>24,h>>16&255,h>>8&255,255&h])))}static esds(t){const e=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...e,6,1,2])}static audioStsd(t){const e=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,e>>8&255,255&e,0,0])}static mp4a(t){return Pr.box(Pr.types.mp4a,Pr.audioStsd(t),Pr.box(Pr.types.esds,Pr.esds(t)))}static mp3(t){return Pr.box(Pr.types[".mp3"],Pr.audioStsd(t))}static ac3(t){return Pr.box(Pr.types["ac-3"],Pr.audioStsd(t),Pr.box(Pr.types.dac3,t.config))}static stsd(t){const{segmentCodec:e}=t;if("audio"===t.type){if("aac"===e)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.mp4a(t));if("ac3"===e&&t.config)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.ac3(t));if("mp3"===e&&"mp3"===t.codec)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.mp3(t))}else{if(!t.pps||!t.sps)throw new Error("video track missing pps or sps");if("avc"===e)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.avc1(t));if("hevc"===e&&t.vps)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.hvc1(t))}throw new Error(`unsupported ${t.type} segment codec (${e}/${t.codec})`)}static tkhd(t){const e=t.id,n=(t.duration||0)*(t.timescale||0),i=t.width||0,r=t.height||0,s=Math.floor(n/(Br+1)),a=Math.floor(n%(Br+1));return Pr.box(Pr.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,255&e,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,a>>24,a>>16&255,a>>8&255,255&a,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,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(t,e){const n=Pr.sdtp(t),i=t.id,r=Math.floor(e/(Br+1)),s=Math.floor(e%(Br+1));return Pr.box(Pr.types.traf,Pr.box(Pr.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),Pr.box(Pr.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,s>>24,s>>16&255,s>>8&255,255&s])),Pr.trun(t,n.length+16+20+8+16+8+8),n)}static trak(t){return t.duration=t.duration||4294967295,Pr.box(Pr.types.trak,Pr.tkhd(t),Pr.mdia(t))}static trex(t){const e=t.id;return Pr.box(Pr.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,e){const n=t.samples||[],i=n.length,r=12+16*i,s=new Uint8Array(r);let a,o,l,u,h,c;for(e+=8+r,s.set(["video"===t.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0),a=0;a>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,61440&h.degradPrio,15&h.degradPrio,c>>>24&255,c>>>16&255,c>>>8&255,255&c],12+16*a);return Pr.box(Pr.types.trun,s)}static initSegment(t){Pr.types||Pr.init();const e=Pr.moov(t);return gt(Pr.FTYP,e)}static hvc1(t){const e=t.params,n=[t.vps,t.sps,t.pps],i=new Uint8Array([1,e.general_profile_space<<6|(e.general_tier_flag?32:0)|e.general_profile_idc,e.general_profile_compatibility_flags[0],e.general_profile_compatibility_flags[1],e.general_profile_compatibility_flags[2],e.general_profile_compatibility_flags[3],e.general_constraint_indicator_flags[0],e.general_constraint_indicator_flags[1],e.general_constraint_indicator_flags[2],e.general_constraint_indicator_flags[3],e.general_constraint_indicator_flags[4],e.general_constraint_indicator_flags[5],e.general_level_idc,240|e.min_spatial_segmentation_idc>>8,255&e.min_spatial_segmentation_idc,252|e.parallelismType,252|e.chroma_format_idc,248|e.bit_depth_luma_minus8,248|e.bit_depth_chroma_minus8,0,parseInt(e.frame_rate.fps),3|e.temporal_id_nested<<2|e.num_temporal_layers<<3|(e.frame_rate.fixed?64:0),n.length]);let r=i.length;for(let t=0;t>8,255&n[t][e].length]),r),r+=2,s.set(n[t][e],r),r+=n[t][e].length}const o=Pr.box(Pr.types.hvcC,s),l=t.width,u=t.height,h=t.pixelRatio[0],c=t.pixelRatio[1];return Pr.box(Pr.types.hvc1,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,l>>8&255,255&l,u>>8&255,255&u,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]),o,Pr.box(Pr.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Pr.box(Pr.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,c>>24,c>>16&255,c>>8&255,255&c])))}}Pr.types=void 0,Pr.HDLR_TYPES=void 0,Pr.STTS=void 0,Pr.STSC=void 0,Pr.STCO=void 0,Pr.STSZ=void 0,Pr.VMHD=void 0,Pr.SMHD=void 0,Pr.STSD=void 0,Pr.FTYP=void 0,Pr.DINF=void 0;function Or(t,e,n=1,i=!1){const r=t*e*n;return i?Math.round(r):r}function Mr(t,e=!1){return Or(t,1e3,1/9e4,e)}let Nr,Fr=null,_r=null;function Ur(t,e,n,i){return{duration:e,size:n,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1}}}class zr{constructor(t,e,n,i){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=n,this.logger=i,this.ISGenerated=!1,null===Fr){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Fr=t?parseInt(t[1]):0}if(null===_r){const t=navigator.userAgent.match(/Safari\/(\d+)/i);_r=t?parseInt(t[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let e=!1;const n=t[0].pts,i=t.reduce(((t,i)=>{let r=i.pts,s=r-t;return s<-4294967296&&(e=!0,r=jr(r,n),s=r-t),s>0?t:r}),n);return e&&this.logger.debug("PTS rollover detected"),i}remux(t,e,n,i,r,s,a,o){let l,u,h,c,d,f,g=r,m=r;const v=t.pid>-1,y=e.pid>-1,A=e.samples.length,b=t.samples.length>0,w=a&&A>0||A>1;if((!v||b)&&(!y||w)||this.ISGenerated||a){if(this.ISGenerated){var E,x,k,T;const t=this.videoTrackConfig;(t&&(e.width!==t.width||e.height!==t.height||(null==(E=e.pixelRatio)?void 0:E[0])!==(null==(x=t.pixelRatio)?void 0:x[0])||(null==(k=e.pixelRatio)?void 0:k[1])!==(null==(T=t.pixelRatio)?void 0:T[1]))||!t&&w||null===this.nextAudioPts&&b)&&this.resetInitSegment()}this.ISGenerated||(h=this.generateIS(t,e,r,s));const n=this.isVideoContiguous;let i,a=-1;if(w&&(a=function(t){for(let e=0;e0){this.logger.warn(`[mp4-remuxer]: Dropped ${a} out of ${A} video samples due to a missing keyframe`);const t=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(a),e.dropped+=a,m+=(e.samples[0].pts-t)/e.inputTimeScale,i=m}else-1===a&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${A} video samples`),f=!1);if(this.ISGenerated){if(b&&w){const n=this.getVideoStartPts(e.samples),i=(jr(t.samples[0].pts,n)-n)/e.inputTimeScale;g+=Math.max(0,i),m+=Math.max(0,-i)}if(b){if(t.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(t,e,r,s)),u=this.remuxAudio(t,g,this.isAudioContiguous,s,y||w||o===p?m:void 0),w){const i=u?u.endPTS-u.startPTS:0;e.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(t,e,r,s)),l=this.remuxVideo(e,m,n,i)}}else w&&(l=this.remuxVideo(e,m,n,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(d=Gr(n,r,this._initPTS,this._initDTS)),i.samples.length&&(c=qr(i,r,this._initPTS))),{audio:u,video:l,initSegment:h,independent:f,text:c,id3:d}}generateIS(t,e,n,i){const r=t.samples,s=e.samples,a=this.typeSupported,o={},l=this._initPTS;let u,h,c,d,f=!l||i,p="audio/mp4";if(f&&(u=h=1/0),t.config&&r.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":a.mpeg?(p="audio/mpeg",t.codec=""):a.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3"}o.audio={id:"audio",container:p,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&a.mpeg?new Uint8Array(0):Pr.initSegment([t]),metadata:{channelCount:t.channelCount}},f&&(d=t.id,c=t.inputTimeScale,l&&c===l.timescale?f=!1:u=h=r[0].pts-Math.round(c*n))}if(e.sps&&e.pps&&s.length){if(e.timescale=e.inputTimeScale,o.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:Pr.initSegment([e]),metadata:{width:e.width,height:e.height}},f)if(d=e.id,c=e.inputTimeScale,l&&c===l.timescale)f=!1;else{const t=this.getVideoStartPts(s),e=Math.round(c*n);h=Math.min(h,jr(s[0].dts,t)-e),u=Math.min(u,t-e)}this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio}}if(Object.keys(o).length)return this.ISGenerated=!0,f?(this._initPTS={baseTime:u,timescale:c},this._initDTS={baseTime:h,timescale:c}):u=c=void 0,{tracks:o,initPTS:u,timescale:c,trackId:d}}remuxVideo(t,e,n,i){const r=t.inputTimeScale,s=t.samples,u=[],h=s.length,c=this._initPTS;let d,f,p=this.nextAvcDts,g=8,m=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,b=!1;if(!n||null===p){const t=e*r,i=s[0].pts-jr(s[0].dts,s[0].pts);Fr&&null!==p&&Math.abs(t-i-p)<15e3?n=!0:p=t-i}const w=c.baseTime*r/c.timescale;for(let t=0;t0?t-1:t].dts&&(b=!0)}b&&s.sort((function(t,e){const n=t.dts-e.dts,i=t.pts-e.pts;return n||i})),d=s[0].dts,f=s[s.length-1].dts;const E=f-d,x=E?Math.round(E/(h-1)):m||t.inputTimeScale/30;if(n){const n=d-p,i=n>x,r=n<-1;if((i||r)&&(i?this.logger.warn(`${(t.segmentCodec||"").toUpperCase()}: ${Mr(n,!0)} ms (${n}dts) hole between fragments detected at ${e.toFixed(3)}`):this.logger.warn(`${(t.segmentCodec||"").toUpperCase()}: ${Mr(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${e.toFixed(3)}`),!r||p>=s[0].pts||Fr)){d=p;const t=s[0].pts-n;if(i)s[0].dts=d,s[0].pts=t;else{let e=!0;for(let i=0;it&&e);i++){const t=s[i].pts;if(s[i].dts-=n,s[i].pts-=n,i0?e.dts-s[t-1].dts:x;if(a=t>0?e.pts-s[t-1].pts:x,n.stretchShortVideoTrack&&null!==this.nextAudioPts){const t=Math.floor(n.maxBufferHole*r),s=(i?v+i*r:this.nextAudioPts)-e.pts;s>t?(m=s-o,m<0?m=o:R=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${s/90} ms to the next segment; using duration ${m/90} ms for the last video frame.`)):m=o}else m=o}const l=Math.round(e.pts-e.dts);L=Math.min(L,m),P=Math.max(P,m),B=Math.min(B,a),O=Math.max(O,a),u.push(Ur(e.key,m,o,l))}if(u.length)if(Fr){if(Fr<70){const t=u[0].flags;t.dependsOn=2,t.isNonSync=0}}else if(_r&&O-B0&&(i&&Math.abs(b-y)<9e3||Math.abs(jr(m[0].pts-w,b)-y)<20*c),m.forEach((function(t){t.pts=jr(t.pts-w,b)})),!n||y<0){if(m=m.filter((t=>t.pts>=0)),!m.length)return;y=0===r?0:i&&!g?Math.max(0,b):m[0].pts}if("aac"===t.segmentCodec){const e=this.config.maxAudioFramesDrift;for(let n=0,i=y;n=e*c&&l<1e4&&g){let e=Math.round(o/c);i=a-e*c,i<0&&(e--,i+=c),0===n&&(this.nextAudioPts=y=i),this.logger.warn(`[mp4-remuxer]: Injecting ${e} audio frame @ ${(i/s).toFixed(3)}s due to ${Math.round(1e3*o/s)} ms gap.`);for(let s=0;s0))return;T+=v;try{E=new Uint8Array(T)}catch(t){return void this.observer.emit(l.ERROR,l.ERROR,{type:a.MUX_ERROR,details:o.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:T,reason:`fail allocating audio mdat ${T}`})}if(!f){new DataView(E.buffer).setUint32(0,T),E.set(Pr.types.mdat,4)}}E.set(r,v);const c=r.byteLength;v+=c,p.push(Ur(!0,h,c,0)),k=s}const D=p.length;if(!D)return;const S=p[p.length-1];this.nextAudioPts=y=k+u*S.duration;const I=f?new Uint8Array(0):Pr.moof(t.sequenceNumber++,x/u,A({},t,{samples:p}));t.samples=[];const R=x/s,L=y/s,B={data1:I,data2:E,startPTS:R,endPTS:L,startDTS:R,endDTS:L,type:"audio",hasAudio:!0,hasVideo:!1,nb:D};return this.isAudioContiguous=!0,B}}function jr(t,e){let n;if(null===e)return t;for(n=e4294967296;)t+=n;return t}function Gr(t,e,n,i){const r=t.samples.length;if(!r)return;const s=t.inputTimeScale;for(let a=0;at.pts-e.pts));const s=t.samples;return t.samples=[],{samples:s}}function Hr(t,e,n=!1){return void 0!==(null==t?void 0:t.start)?(t.start+(n?t.duration:0))/t.timescale:e}function Qr(t,e,n){const i=null==t?void 0:t.codec;if(i&&i.length>4)return i;if(e===q){if("ec-3"===i||"ac-3"===i||"alac"===i)return i;if("fLaC"===i||"Opus"===i){return Pt(i,!1)}return n.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"}return n.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1"}try{Nr=self.performance.now.bind(self.performance)}catch(t){Nr=Date.now}const Vr=[{demux:class{constructor(t,e){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=e}resetTimeStamp(){}resetInitSegment(t,e,n,i){const r=this.videoTrack=tr("video",1),s=this.audioTrack=tr("audio",1),a=this.txtTrack=tr("text",1);if(this.id3Track=tr("id3",1),this.timeOffset=0,null==t||!t.byteLength)return;const o=lt(t);if(o.video){const{id:t,timescale:e,codec:n,supplemental:i}=o.video;r.id=t,r.timescale=a.timescale=e,r.codec=n,r.supplemental=i}if(o.audio){const{id:t,timescale:e,codec:n}=o.audio;s.id=t,s.timescale=e,s.codec=n}a.id=$.text,r.sampleDuration=0,r.duration=s.duration=i}resetContiguity(){this.remainderData=null}static probe(t){return function(t){const e=t.byteLength;for(let n=0;n8&&109===t[n+4]&&111===t[n+5]&&111===t[n+6]&&102===t[n+7])return!0;n=i>1?n+i:e}return!1}(t)}demux(t,e){this.timeOffset=e;let n=t;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=gt(this.remainderData,t));const e=function(t){const e={valid:null,remainder:null},n=at(t,["moof"]);if(n.length<2)return e.remainder=t,e;const i=n[n.length-1];return e.valid=t.slice(0,i.byteOffset-8),e.remainder=t.slice(i.byteOffset-8),e}(n);this.remainderData=e.remainder,i.samples=e.valid||new Uint8Array}else i.samples=n;const s=this.extractID3Track(i,e);return r.samples=mt(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const t=this.timeOffset,e=this.videoTrack,n=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(e,this.timeOffset);return n.samples=mt(t,e),{videoTrack:e,audioTrack:tr(),id3Track:i,textTrack:tr()}}extractID3Track(t,e){const n=this.id3Track;if(t.samples.length){const i=at(t.samples,["emsg"]);i&&i.forEach((t=>{const i=function(t){const e=t[0];let n="",i="",s=0,a=0,o=0,l=0,u=0,h=0;if(0===e){for(;"\0"!==tt(t.subarray(h,h+1));)n+=tt(t.subarray(h,h+1)),h+=1;for(n+=tt(t.subarray(h,h+1)),h+=1;"\0"!==tt(t.subarray(h,h+1));)i+=tt(t.subarray(h,h+1)),h+=1;i+=tt(t.subarray(h,h+1)),h+=1,s=nt(t,12),a=nt(t,16),l=nt(t,20),u=nt(t,24),h=28}else if(1===e){h+=4,s=nt(t,h),h+=4;const e=nt(t,h);h+=4;const a=nt(t,h);for(h+=4,o=2**32*e+a,r(o)||(o=Number.MAX_SAFE_INTEGER,S.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=nt(t,h),h+=4,u=nt(t,h),h+=4;"\0"!==tt(t.subarray(h,h+1));)n+=tt(t.subarray(h,h+1)),h+=1;for(n+=tt(t.subarray(h,h+1)),h+=1;"\0"!==tt(t.subarray(h,h+1));)i+=tt(t.subarray(h,h+1)),h+=1;i+=tt(t.subarray(h,h+1)),h+=1}return{schemeIdUri:n,value:i,timeScale:s,presentationTime:o,presentationTimeDelta:a,eventDuration:l,id:u,payload:t.subarray(h,t.byteLength)}}(t);if(mr.test(i.schemeIdUri)){const t=vr(i,e);let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const s=i.payload;n.samples.push({data:s,len:s.byteLength,dts:t,pts:t,type:$i.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const t=vr(i,e);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:t,pts:t,type:$i.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return n}demuxSampleAes(t,e,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}},remux:class{constructor(t,e,n,i){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1,this.logger=i}destroy(){}resetTimeStamp(t){this.initPTS=t,this.lastEndTime=null}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,e,n,i){this.audioCodec=e,this.videoCodec=n,this.generateInitSegment(function(t,e){if(!t||!e)return t;const n=e.keyId;n&&e.isCommonEncryption&&at(t,["moov","trak"]).forEach((t=>{const e=at(t,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=at(e,["enca"]);const r=i.length>0;r||(i=at(e,["encv"])),i.forEach((t=>{at(r?t.subarray(28):t.subarray(78),["sinf"]).forEach((t=>{const e=pt(t);if(e){const t=e.subarray(8,24);t.some((t=>0!==t))||(S.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${B(t)} -> ${B(n)}`),e.set(n,8))}}))}))}));return t}(t,i)),this.emitInitSegment=!0}generateInitSegment(t){let{audioCodec:e,videoCodec:n}=this;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const i=this.initData=lt(t);i.audio&&(e=Qr(i.audio,q,this.logger)),i.video&&(n=Qr(i.video,H,this.logger));const r={};i.audio&&i.video?r.audiovideo={container:"video/mp4",codec:e+","+n,supplemental:i.video.supplemental,initSegment:t,id:"main"}:i.audio?r.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?r.video={container:"video/mp4",codec:n,supplemental:i.video.supplemental,initSegment:t,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(t,e,n,r,s,a){var o,l;let{initPTS:u,lastEndTime:h}=this;const c={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};i(h)||(h=this.lastEndTime=s||0);const d=e.samples;if(null==d||!d.length)return c;const f={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if(null!=(o=p)&&o.length||(this.generateInitSegment(d),p=this.initData),null==(l=p)||!l.length)return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),c;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=!1);const g=function(t,e,n){const r={},s=at(t,["moof","traf"]);for(let t=0;tr[t].duration))){let e=1/0,n=0;const s=at(t,["sidx"]);for(let t=0;tt+e.info.duration||0),0);n=Math.max(n,t+i.earliestPresentationTime/i.timescale)}}n&&i(n)&&Object.keys(r).forEach((t=>{r[t].duration||(r[t].duration=n*r[t].timescale-r[t].start)}))}return r}(d,p,this.logger),m=p.audio?g[p.audio.id]:null,v=p.video?g[p.video.id]:null,y=Hr(v,1/0),A=Hr(m,1/0),b=Hr(v,0,!0),w=Hr(m,0,!0);let E,x=s,k=0;if(m&&(!v||!u&&Ar}(u,x,s,k)&&f.timescale===u.timescale||(f.initPTS=x-s,u&&1===u.timescale&&this.logger.warn(`Adjusting initPTS @${s} from ${u.baseTime/u.timescale} to ${f.initPTS}`),this.initPTS=u={baseTime:f.initPTS,timescale:1});const T=t?x-u.baseTime/u.timescale:h;!function(t,e,n){at(e,["moof","traf"]).forEach((e=>{at(e,["tfhd"]).forEach((i=>{const r=nt(i,4),s=t[r];if(!s)return;const a=s.timescale||9e4;at(e,["tfdt"]).forEach((t=>{const e=t[0],i=n*a;if(i){let n=nt(t,4);if(0===e)n-=i,n=Math.max(n,0),st(t,4,n);else{n*=Math.pow(2,32),n+=nt(t,8),n-=i,n=Math.max(n,0);const e=Math.floor(n/(Z+1)),r=Math.floor(n%(Z+1));st(t,4,e),st(t,8,r)}}}))}))}))}(p,d,u.baseTime/u.timescale);const C=T+k;k>0?this.lastEndTime=C:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const D=!!p.audio,S=!!p.video;let I="";D&&(I+="audio"),S&&(I+="video");const R={data1:d,startPTS:T,startDTS:T,endPTS:C,endDTS:C,type:I,hasAudio:D,hasVideo:S,nb:1,dropped:0};c.audio=D&&!S?R:void 0,c.video=S?R:void 0;const L=null==v?void 0:v.sampleCount;if(L){const t=v.keyFrameIndex,e=-1!==t;R.nb=L,R.dropped=0===t||this.isVideoContiguous?0:e?t:L,R.independent=e,R.firstKeyFrame=t,e&&v.keyFrameStart&&(R.firstKeyFramePTS=v.keyFrameStart-u.baseTime/u.timescale),this.isVideoContiguous||(c.independent=e),this.isVideoContiguous||(this.isVideoContiguous=e),R.dropped&&this.logger.warn(`fmp4 does not start with IDR: firstIDR ${t}/${L} dropped: ${R.dropped} pts: ${R.firstKeyFramePTS||"NA"}`)}return c.initSegment=f,c.id3=Gr(n,s,u,u),r.samples.length&&(c.text=qr(r,s,u)),c}}},{demux:kr,remux:zr},{demux:class extends er{constructor(t,e){super(),this.observer=void 0,this.config=void 0,this.observer=t,this.config=e}resetInitSegment(t,e,n,i){super.resetInitSegment(t,e,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t,e){if(!t)return!1;const n=Mi(t,0);let i=(null==n?void 0:n.length)||0;if(dr(t,i))return!1;for(let n=t.length;i0&&null!=(null==e?void 0:e.key)&&null!==e.iv&&null!=e.method&&(n=e);return n}(s,e);if(E&&on(E.method)){const t=this.getDecrypter(),e=ln(E.method);if(!t.isSync())return this.asyncResult=!0,this.decryptionPromise=t.webCryptoDecrypt(s,E.key.buffer,E.iv.buffer,e).then((t=>{const e=this.push(t,null,n);return this.decryptionPromise=null,e})),this.decryptionPromise;{let i=t.softwareDecrypt(s,E.key.buffer,E.iv.buffer,e);if(n.part>-1){const e=t.flush();i=e?e.buffer:e}if(!i)return r.executeEnd=Nr(),Kr(n);s=new Uint8Array(i)}}const x=this.needsProbing(d,f);if(x){const t=this.configureTransmuxer(s);if(t)return this.logger.warn(`[transmuxer] ${t.message}`),this.observer.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,error:t,reason:t.message}),r.executeEnd=Nr(),Kr(n)}(d||f||m||x)&&this.resetInitSegment(w,v,y,b,e),(d||m||x)&&this.resetInitialTimestamp(A),c||this.resetContiguity();const k=this.transmux(s,E,g,p,n);this.asyncResult=Xr(k);const T=this.currentTransmuxState;return T.contiguous=!0,T.discontinuity=!1,T.trackSwitch=!1,r.executeEnd=Nr(),k}flush(t){const e=t.transmuxing;e.executeStart=Nr();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then((()=>this.flush(t)));const s=[],{timeOffset:a}=i;if(n){const e=n.flush();e&&s.push(this.push(e.buffer,null,t))}const{demuxer:o,remuxer:l}=this;if(!o||!l){e.executeEnd=Nr();const n=[Kr(t)];return this.asyncResult?Promise.resolve(n):n}const u=o.flush(a);return Xr(u)?(this.asyncResult=!0,u.then((e=>(this.flushRemux(s,e,t),s)))):(this.flushRemux(s,u,t),this.asyncResult?Promise.resolve(s):s)}flushRemux(t,e,n){const{audioTrack:i,videoTrack:r,id3Track:s,textTrack:a}=e,{accurateTimeOffset:o,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===f?"level":"track"} ${n.level}`);const u=this.remuxer.remux(i,r,s,a,l,o,!0,this.id);t.push({remuxResult:u,chunkMeta:n}),n.transmuxing.executeEnd=Nr()}resetInitialTimestamp(t){const{demuxer:e,remuxer:n}=this;e&&n&&(e.resetTimeStamp(t),n.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:e}=this;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())}resetInitSegment(t,e,n,i,r){const{demuxer:s,remuxer:a}=this;s&&a&&(s.resetInitSegment(t,e,n,i),a.resetInitSegment(t,e,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,e,n,i,r){let s;return s=e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,n,i,r):this.transmuxUnencrypted(t,n,i,r),s}transmuxUnencrypted(t,e,n,i){const{audioTrack:r,videoTrack:s,id3Track:a,textTrack:o}=this.demuxer.demux(t,e,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,s,a,o,e,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,e,n,i,r){return this.demuxer.demuxSampleAes(t,e,n).then((t=>({remuxResult:this.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,n,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(t){const{config:e,observer:n,typeSupported:i}=this;let r;for(let e=0,n=Vr.length;e({remuxResult:{},chunkMeta:t});function Xr(t){return"then"in t&&t.then instanceof Function}class Wr{constructor(t,e,n,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=n,this.duration=i,this.defaultInitPts=r||null}}class Zr{constructor(t,e,n,i,r,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=n,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=s}}let Jr=0;class $r{constructor(t,e,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Jr++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=t=>{const e=t.data,n=this.hls;if(n&&null!=e&&e.event&&e.instanceNo===this.instanceNo)switch(e.event){case"init":{var i;const t=null==(i=this.workerContext)?void 0:i.objectURL;t&&self.URL.revokeObjectURL(t);break}case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":n.logger[e.data.logType]&&n.logger[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.part=this.part,e.data.id=this.id,n.trigger(e.event,e.data)}},this.onWorkerError=t=>{if(!this.hls)return;const e=new Error(`${t.message} (${t.filename}:${t.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:e})};const r=t.config;this.hls=t,this.id=e,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const s=(t,e)=>{(e=e||{}).frag=this.frag||void 0,t===l.ERROR&&(e.parent=this.id,e.part=this.part,this.error=e.error),this.hls.trigger(t,e)};this.observer=new Ii,this.observer.on(l.FRAG_DECRYPTED,s),this.observer.on(l.ERROR,s);const u=Nt(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(n.log(`loading Web Worker ${r.workerPath} for "${e}"`),this.workerContext=function(t){const e=Li[t];if(e)return e.clientCount++,e;const n=new self.URL(t,self.location.href).href,i={worker:new self.Worker(n),scriptURL:n,clientCount:1};return Li[t]=i,i}(r.workerPath)):(n.log(`injecting Web Worker for "${e}"`),this.workerContext=function(){const t=Li[Ri];if(t)return t.clientCount++,t;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(e),i={worker:new self.Worker(n),objectURL:n,clientCount:1};return Li[Ri]=i,i}());const{worker:t}=this.workerContext;t.addEventListener("message",this.onWorkerMessage),t.addEventListener("error",this.onWorkerError),t.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:u,id:e,config:$t(r)})}catch(i){n.warn(`Error setting up "${e}" Web Worker, fallback to inline`,i),this.terminateWorker(),this.error=null,this.transmuxer=new Yr(this.observer,u,r,"",e,t.logger)}return}}this.transmuxer=new Yr(this.observer,u,r,"",e,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Jr++;const e=this.hls.config,n=Nt(e.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:n,id:this.id,config:$t(e)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),function(t){const e=Li[t||Ri];if(e&&1==e.clientCount--){const{worker:n,objectURL:i}=e;delete Li[t||Ri],i&&self.URL.revokeObjectURL(i),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,e,n,i,r,s,a,o,l,u){var h,c;l.transmuxing.start=self.performance.now();const{instanceNo:d,transmuxer:p}=this,g=s?s.start:r.start,m=r.decryptdata,v=this.frag,y=!(v&&r.cc===v.cc),A=!(v&&l.level===v.level),b=v?l.sn-v.sn:-1,w=this.part?l.part-this.part.index:-1,E=0===b&&l.id>1&&l.id===(null==v?void 0:v.stats.chunkCount),x=!A&&(1===b||0===b&&(1===w||E&&w<=0)),k=self.performance.now();(A||b||0===r.stats.parsing.start)&&(r.stats.parsing.start=k),!s||!w&&x||(s.stats.parsing.start=k);const T=!(v&&(null==(h=r.initSegment)?void 0:h.url)===(null==(c=v.initSegment)?void 0:c.url)),C=new Zr(y,x,o,A,g,T);if(!x||y||T){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===f?"level":"track"}: ${l.level} id: ${l.id}\n discontinuity: ${y}\n trackSwitch: ${A}\n contiguous: ${x}\n accurateTimeOffset: ${o}\n timeOffset: ${g}\n initSegmentChange: ${T}`);const t=new Wr(n,i,e,a,u);this.configureTransmuxer(t)}if(this.frag=r,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:d,cmd:"demux",data:t,decryptdata:m,chunkMeta:l,state:C},t instanceof ArrayBuffer?[t]:[]);else if(p){const e=p.push(t,m,l,C);Xr(e)?e.then((t=>{this.handleTransmuxComplete(t)})).catch((t=>{this.transmuxerError(t,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(e)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:e,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:e,cmd:"flush",chunkMeta:t});else if(n){const e=n.flush(t);Xr(e)?e.then((e=>{this.handleFlushResult(e,t)})).catch((e=>{this.transmuxerError(e,t,"transmuxer-interface flush error")})):this.handleFlushResult(e,t)}}transmuxerError(t,e,n){this.hls&&(this.error=t,this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,chunkMeta:e,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:n}))}handleFlushResult(t,e){t.forEach((t=>{this.handleTransmuxComplete(t)})),this.onFlush(e)}configureTransmuxer(t){const{instanceNo:e,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:e,cmd:"configure",config:t}):n&&n.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}class ts extends E{constructor(t,e){super(e,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,e,n){const i=null==e?void 0:e.renditionReports;if(i){let r=-1;for(let n=0;n=0&&t>e.partTarget&&(a+=1)}const o=n&&Kt(n);return new Xt(s,a>=0?a:void 0,o)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,e){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,e){if(e)try{return e.addDirectives(t)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}return t}playlistLoaded(t,e,n){const{details:i,stats:r}=e,s=self.performance.now(),u=r.loading.first?Math.max(0,s-r.loading.first):0;i.advancedDateTime=Date.now()-u;const h=this.hls.config.timelineOffset;if(h!==i.appliedTimelineOffset){const t=Math.max(h||0,0);i.appliedTimelineOffset=t,i.fragments.forEach((e=>{e.start=e.playlistOffset+t}))}if(i.live||null!=n&&n.live){const h="levelInfo"in e?e.levelInfo:e.track;if(i.reloaded(n),n&&i.fragments.length>0){Wn(n,i);const t=i.playlistParsingError;if(t){this.warn(t);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var c;const{networkDetails:s}=e;return void n.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:t,reason:t.message,level:e.level||void 0,parent:null==(c=i.fragments[0])?void 0:c.type,networkDetails:s,stats:r})}i.playlistParsingError=null}}-1===i.requestScheduled&&(i.requestScheduled=r.loading.start);const d=this.hls.mainForwardBufferInfo,f=d?d.end-d.len:0,p=ti(i,1e3*(i.edge-f));if(i.requestScheduled+p0){if(c>3*i.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),m=void 0,v=void 0;else if(null!=n&&n.tuneInGoal&&c-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${d} with playlist age: ${i.age}`),d=0;else{const t=Math.floor(d/i.targetduration);if(m+=t,void 0!==v){v+=Math.round(d%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${d} skip sn ${t} to part ${v}`)}i.tuneInGoal=d}if(g=this.getDeliveryDirectives(i,e.deliveryDirectives,m,v),t||!l)return i.requestScheduled=s,void this.loadingPlaylist(h,g)}else(i.canBlockReload||i.canSkipUntil)&&(g=this.getDeliveryDirectives(i,e.deliveryDirectives,m,v));g&&void 0!==m&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(p-2*u,p/2)),this.scheduleLoading(h,g,i)}else this.clearTimer()}scheduleLoading(t,e,n){const i=n||t.details;if(!i)return void this.loadingPlaylist(t,e);const r=self.performance.now(),s=i.requestScheduled;if(r>=s)return void this.loadingPlaylist(t,e);const a=s-r;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(t,e)),a)}getDeliveryDirectives(t,e,n,i){let r=Kt(t);return null!=e&&e.skip&&t.deltaUpdateFailed&&(n=e.msn,i=e.part,r=Qt),new Xt(n,i,r)}checkRetry(t){const e=t.details,n=fe(t),i=t.errorAction,{action:r,retryCount:s=0,retryConfig:a}=i||{},o=!!i&&!!a&&(r===we||!i.resolved&&r===Ae);if(o){var l;if(s>=a.maxNumRetry)return!1;if(n&&null!=(l=t.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${e}" without delivery-directives`),this.loadPlaylist();else{const t=ge(a,s);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),t),this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${e}" in ${t}ms`)}t.levelRetry=!0,i.resolved=!0}return o}}function es(t,e){if(t.length!==e.length)return!1;for(let n=0;nt[n]!==e[n]))}function is(t,e){return e.label.toLowerCase()===t.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(t.lang||"").toLowerCase())}class rs{constructor(t){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=t}destroy(){this.tracks=this.queues=null}append(t,e,n){if(null===this.queues||null===this.tracks)return;const i=this.queues[e];i.push(t),1!==i.length||n||this.executeNext(e)}appendBlocker(t){return new Promise((e=>{const n={label:"async-blocker",execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,t)}))}prependBlocker(t){return new Promise((e=>{if(this.queues){const n={label:"async-blocker-prepend",execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(n)}}))}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach((t=>{var e;const n=null==(e=t[0])?void 0:e.label;"async-blocker"!==n&&"async-blocker-prepend"!==n||(t[0].execute(),t.splice(0,1))}))}unblockAudio(t){if(null===this.queues)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(null===this.queues||null===this.tracks)return;const e=this.queues[t];if(e.length){const i=e[0];try{i.execute()}catch(e){var n;if(i.onError(e),null===this.queues||null===this.tracks)return;const r=null==(n=this.tracks[t])?void 0:n.buffer;null!=r&&r.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){null!==this.queues&&(this.queues[t].shift(),this.executeNext(t))}current(t){var e;return(null==(e=this.queues)?void 0:e[t][0])||null}toString(){const{queues:t,tracks:e}=this;return null===t||null===e?"":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(t){var e,n;return null!=(e=this.queues)&&e[t]||null!=(n=this.tracks)&&n[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var e;const n=null==(e=this.tracks)?void 0:e[t],i=null==n?void 0:n.buffer;return i?`SourceBuffer${i.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(t){var e;return(null==(e=this.queues)?void 0:e[t].map((t=>t.label)).join(", "))||""}}const ss=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,as="HlsJsTrackRemovedError";class os extends Error{constructor(t){super(t),this.name=as}}function ls(t){const e=t.querySelectorAll("source");[].slice.call(e).forEach((e=>{t.removeChild(e)}))}function us(t){return"audio"===t?1:0}class hs{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.BUFFER_CODECS,this.onBufferCodecs,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.BUFFER_CODECS,this.onBufferCodecs,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,e){const n=this.hls.levels[e.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,e){const n=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,n.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onLevelsUpdated(t,e){this.timer&&i(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const t=this.hls.levels;if(t.length){const e=this.hls,n=this.getMaxLevel(t.length-1);n!==this.autoLevelCapping&&e.logger.log(`Setting autoLevelCapping to ${n}: ${t[n].height}p@${t[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),e.autoLevelCapping=n,e.autoLevelEnabled&&e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}}getMaxLevel(t){const e=this.hls.levels;if(!e.length)return-1;const n=e.filter(((e,n)=>this.isLevelAllowed(e)&&n<=t));return this.clientRect=null,hs.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,e={width:0,height:0};if(t){const n=t.getBoundingClientRect();e.width=n.width,e.height=n.height,e.width||e.height||(e.width=n.right-n.left||t.width||0,e.height=n.bottom-n.top||t.height||0)}return this.clientRect=e,e}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some((e=>t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height))}static getMaxLevelByMediaSize(t,e,n){if(null==t||!t.length)return-1;let i=t.length-1;const r=Math.max(e,n);for(let e=0;e=r||n.height>=r)&&(s=n,!(a=t[e+1])||s.width!==a.width||s.height!==a.height)){i=e;break}}var s,a;return i}}const cs={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},ds={HLS:"h"},fs="CMCD-Request",ps={["CMCD-Object"]:["br","d","ot","tb"],[fs]:["bl","dl","mtp","nor","nrr","su"],["CMCD-Session"]:["cid","pr","sf","sid","st","v"],["CMCD-Status"]:["bs","rtp"]};class gs{constructor(t,e){Array.isArray(t)&&(t=t.map((t=>t instanceof gs?t:new gs(t)))),this.value=t,this.params=e}}function ms(t,e,n,i){return new Error(`failed to ${t} "${r=e,Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":"object"==typeof r?JSON.stringify(r):String(r)}" as ${n}`,{cause:i});var r}function vs(t,e,n){return ms("serialize",t,e,n)}class ys{constructor(t){this.description=t}}const As="Bare Item";function bs(t){if(!1===ArrayBuffer.isView(t))throw vs(t,"Byte Sequence");return`:${e=t,btoa(String.fromCharCode(...e))}:`;var e}function ws(t){if(function(t){return t<-999999999999999||99999999999999912)throw vs(t,"Decimal");const n=e.toString();return n.includes(".")?n:`${n}.0`}const ks=/[\x00-\x1f\x7f]+/;function Ts(t){const e=(n=t).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e))throw vs(e,"Token");return e}function Cs(t){switch(typeof t){case"number":if(!i(t))throw vs(t,As);return Number.isInteger(t)?ws(t):xs(t);case"string":return function(t){if(ks.test(t))throw vs(t,"String");return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(t);case"symbol":return Ts(t);case"boolean":return function(t){if("boolean"!=typeof t)throw vs(t,"Boolean");return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return`@${ws(t.getTime()/1e3)}`}(t);if(t instanceof Uint8Array)return bs(t);if(t instanceof ys)return Ts(t);default:throw vs(t,As)}}function Ds(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw vs(t,"Key");return t}function Ss(t){return null==t?"":Object.entries(t).map((([t,e])=>!0===e?`;${Ds(t)}`:`;${Ds(t)}=${Cs(e)}`)).join("")}function Is(t){return t instanceof gs?`${Cs(t.value)}${Ss(t.params)}`:Cs(t)}function Rs(t,e={whitespace:!0}){if("object"!=typeof t)throw vs(t,"Dict");const n=t instanceof Map?t.entries():Object.entries(t),i=(null==e?void 0:e.whitespace)?" ":"";return Array.from(n).map((([t,e])=>{e instanceof gs==!1&&(e=new gs(e));let n=Ds(t);var i;return!0===e.value?n+=Ss(e.params):(n+="=",Array.isArray(e.value)?n+=`(${(i=e).value.map(Is).join(" ")})${Ss(i.params)}`:n+=Is(e)),n})).join(`,${i}`)}const Ls=t=>Math.round(t),Bs=t=>100*Ls(t/100),Ps={br:Ls,d:Ls,bl:Bs,dl:Bs,mtp:Bs,nor:(t,e)=>((null==e?void 0:e.baseUrl)&&(t=function(t,e){const n=new URL(t),i=new URL(e);if(n.origin!==i.origin)return t;const r=n.pathname.split("/").slice(1),s=i.pathname.split("/").slice(1,-1);for(;r[0]===s[0];)r.shift(),s.shift();for(;s.length;)s.shift(),r.unshift("..");return r.join("/")}(t,e.baseUrl)),encodeURIComponent(t)),rtp:Bs,tb:Ls};function Os(t,e){const n={};if(null==t||"object"!=typeof t)return n;const r=Object.keys(t).sort(),s=A({},Ps,null==e?void 0:e.formatters),a=null==e?void 0:e.filter;return r.forEach((r=>{if(null==a?void 0:a(r))return;let o=t[r];const l=s[r];l&&(o=l(o,e)),"v"===r&&1===o||"pr"==r&&1===o||function(t){return"number"==typeof t?i(t):null!=t&&""!==t&&!1!==t}(o)&&(function(t){return"ot"===t||"sf"===t||"st"===t}(r)&&"string"==typeof o&&(o=new ys(o)),n[r]=o)})),n}function Ms(t,e={}){return t?function(t,e){return Rs(t,e)}(Os(t,e),A({whitespace:!1},e)):""}function Ns(t,e,n){return A(t,function(t,e={}){const n={};if(!t)return n;const i=Object.entries(t),r=Object.entries(ps).concat(Object.entries((null==e?void 0:e.customHeaderMap)||{})),s=i.reduce(((t,e)=>{var n,i;const[s,a]=e,o=(null===(n=r.find((t=>t[1].includes(s))))||void 0===n?void 0:n[0])||fs;return null!==(i=t[o])&&void 0!==i||(t[o]={}),t[o][s]=a,t}),{});return Object.entries(s).reduce(((t,[n,i])=>(t[n]=Ms(i,e),t)),n)}(e,n))}const Fs=/CMCD=[^&#]+/;function _s(t,e,n){const i=function(t,e={}){if(!t)return"";const n=Ms(t,e);return`CMCD=${encodeURIComponent(n)}`}(e,n);if(!i)return t;if(Fs.test(t))return t.replace(Fs,i);const r=t.includes("?")?"&":"?";return`${t}${r}${i}`}function Us(t,e,n,i){t&&Object.keys(e).forEach((r=>{const s=t.filter((t=>t.groupId===r)).map((t=>{const s=A({},t);return s.details=void 0,s.attrs=new nn(s.attrs),s.url=s.attrs.URI=zs(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),s.groupId=s.attrs["GROUP-ID"]=e[r],s.attrs["PATHWAY-ID"]=i,s}));t.push(...s)}))}function zs(t,e,n,i){const{HOST:r,PARAMS:s,[n]:a}=i;let o;e&&(o=null==a?void 0:a[e],o&&(t=o));const l=new self.URL(t);return r&&!o&&(l.host=r),s&&Object.keys(s).sort().forEach((t=>{t&&l.searchParams.set(t,s[t])})),l.href}function js(t,e,n){Gs(t,e,n),t.addEventListener(e,n)}function Gs(t,e,n){t.removeEventListener(e,n)}class qs extends E{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=qs.CDMCleanupPromise?[qs.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:e,initData:n}=t,i=`"${t.type}" event: init data type: "${e}"`;if(this.debug(i),null!==n){if(!this.keyFormatPromise){let t=Object.keys(this.keySystemAccessPromises);t.length||(t=Tn(this.config));const e=t.map(kn).filter((t=>!!t));this.keyFormatPromise=this.getKeyFormatPromise(e)}this.keyFormatPromise.then((r=>{const s=yn(r);let a,o;if("sinf"===e){if(s!==fn.FAIRPLAY)return void this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${e}" for selected key-system ${s}`);const r=tt(new Uint8Array(n));try{const t=pt(un(JSON.parse(r).sinf));if(!t)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(t.subarray(8,24)),o=fn.FAIRPLAY}catch(t){return void this.warn(`${i} Failed to parse sinf: ${t}`)}}else{if(s!==fn.WIDEVINE&&s!==fn.PLAYREADY)return void this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${e}" for selected key-system ${s}`);const r=function(t){const e=[];if(t instanceof ArrayBuffer){const n=t.byteLength;let i=0;for(;i+32!!t.systemId&&xn(t.systemId)===s));l.length>1&&this.warn(`${i} Using first of ${l.length} pssh found for selected key-system ${s}`);const u=l[0];if(!u)return void(0===r.length||r.some((t=>!t.systemId))?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${r.map((t=>xn(t.systemId))).join(",")} pssh data in favor of playlist keys`));if(o=xn(u.systemId),0===u.version&&u.data)if(o===fn.WIDEVINE){const t=u.data.length-22;a=new Uint8Array(u.data.subarray(t,t+16))}else o===fn.PLAYREADY&&(a=Sn(u.data))}if(!o||!a)return;const l=B(a),{keyIdToKeySessionPromise:u,mediaKeySessions:h}=this;let c=u[l];for(let t=0;tthis.generateRequestWithPreferredKeySession(i,e,n,"encrypted-event-key-match"))),c.catch((t=>this.handleError(t)));break}}if(!c){if(o!==s)return void this.log(`Ignoring "${t.type}" event with ${o} init data for selected key-system ${s}`);c=u[l]=this.getKeySystemSelectionPromise([o]).then((({keySystem:t,mediaKeys:i})=>{var r;this.throwIfDestroyed();const s=new Rn("ISO-23001-7",l,null!=(r=kn(t))?r:"");return s.pssh=new Uint8Array(n),s.keyId=a,this.attemptSetMediaKeys(t,i).then((()=>{this.throwIfDestroyed();const r=this.createMediaKeySessionContext({decryptdata:s,keySystem:t,mediaKeys:i});return this.generateRequestWithPreferredKeySession(r,e,n,"encrypted-event-no-match")}))})),c.catch((t=>this.handleError(t)))}}))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(l.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(l.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:e,widevineLicenseUrl:n}=this.config,i=e[t];return i?i.licenseUrl:t===fn.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(t){const e=this.getLicenseServerUrl(t);if(void 0===e)throw new Error(`no license server URL configured for key-system "${t}"`);return e}getServerCertificateUrl(t){const{drmSystems:e}=this.config,n=e[t];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const e=this.hls.levels,n=(t,e,n)=>!!t&&n.indexOf(t)===e,i=e.map((t=>t.audioCodec)).filter(n),r=e.map((t=>t.videoCodec)).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((e,n)=>{const s=t=>{const l=t.shift();this.getMediaKeysPromise(l,i,r).then((t=>e({keySystem:l,mediaKeys:t}))).catch((e=>{t.length?s(t):n(e instanceof Hs?e:new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))};s(t)}))}requestMediaKeySystemAccess(t,e){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let t=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===Cn&&"http:"===self.location.protocol&&(t=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(t))}return n(t,e)}getMediaKeysPromise(t,e,n){const i=function(t,e,n,i){let r;switch(t){case fn.FAIRPLAY:r=["cenc","sinf"];break;case fn.WIDEVINE:case fn.PLAYREADY:r=["cenc"];break;case fn.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${t}`)}return function(t,e,n,i){return[{initDataTypes:t,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map((t=>({contentType:`audio/mp4; codecs=${t}`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:n.map((t=>({contentType:`video/mp4; codecs=${t}`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,e,n,i)}(t,e,n,this.config.drmSystemOptions),r=this.keySystemAccessPromises[t];let s=null==r?void 0:r.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${t}" key-system access with config: ${$t(i)}`),s=this.requestMediaKeySystemAccess(t,i);const e=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch((e=>{this.log(`Failed to obtain access to key-system "${t}": ${e}`)})),s.then((n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);const i=this.fetchServerCertificate(t);return this.log(`Create media-keys for "${t}"`),e.mediaKeys=n.createMediaKeys().then((n=>(this.log(`Media-keys created for "${t}"`),e.hasMediaKeys=!0,i.then((e=>e?this.setMediaKeysServerCertificate(n,t,e):n))))),e.mediaKeys.catch((e=>{this.error(`Failed to create media-keys for "${t}"}: ${e}`)})),e.mediaKeys}))}return s.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:t,keySystem:e,mediaKeys:n}){this.log(`Creating key-system session "${e}" keyId: ${B(t.keyId||[])}`);const i=n.createSession(),r={decryptdata:t,keySystem:e,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(t){const e=t.decryptdata;if(e.pssh){const n=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,e.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}getKeyIdString(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return B(t.keyId)}updateKeySession(t,e){var n;const i=t.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${B((null==(n=t.decryptdata)?void 0:n.keyId)||[])}\n } (data length: ${e?e.byteLength:e})`),i.update(e)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map((t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys}))).filter((({hasMediaKeys:t})=>!!t)).map((({keySystem:t})=>kn(t))).filter((t=>!!t))}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then((({keySystem:t,mediaKeys:e})=>this.attemptSetMediaKeys(t,e)))}selectKeySystem(t){return new Promise(((e,n)=>this.getKeySystemSelectionPromise(t).then((({keySystem:t})=>{const i=kn(t);i?e(i):n(new Error(`Unable to find format for key-system "${t}"`))})).catch(n)))}selectKeySystemFormat(t){const e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise}getKeyFormatPromise(t){const e=Tn(this.config),n=t.map(yn).filter((t=>!!t&&-1!==e.indexOf(t)));return this.selectKeySystem(n)}loadKey(t){const e=t.keyInfo.decryptdata,n=this.getKeyIdString(e),i=`(keyId: ${n} format: "${e.keyFormat}" method: ${e.method} uri: ${e.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[n];if(!r){r=this.getKeySystemForKeyPromise(e).then((({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:e})))))));(this.keyIdToKeySessionPromise[n]=r.then((t=>{const n=e.pssh?e.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(t,"cenc",n,"playlist-key")}))).catch((t=>this.handleError(t)))}return r}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t){this.hls&&(this.error(t.message),t instanceof Hs?this.hls.trigger(l.ERROR,t.data):this.hls.trigger(l.ERROR,{type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))}getKeySystemForKeyPromise(t){const e=this.getKeyIdString(t),n=this.keyIdToKeySessionPromise[e];if(!n){const e=yn(t.keyFormat),n=e?[e]:Tn(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(t){if(t.length||(t=Tn(this.config)),0===t.length)throw new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${$t({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,e){if(this.mediaKeys===e)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(n).then((()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(e)}));return this.mediaKeys=e,this.setMediaKeysQueue.push(i),i.then((()=>{this.log(`Media-keys set for "${t}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((t=>-1===n.indexOf(t)))}))}generateRequestWithPreferredKeySession(t,e,n,i){var r,s;const l=null==(r=this.config.drmSystems)||null==(s=r[t.keySystem])?void 0:s.generateRequest;if(l)try{const i=l.call(this.hls,e,n,t);if(!i)throw new Error("Invalid response from configured generateRequest filter");e=i.initDataType,n=i.initData?i.initData:null,t.decryptdata.pssh=n?new Uint8Array(n):null}catch(t){var u;if(this.warn(t.message),null!=(u=this.hls)&&u.config.debug)throw t}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const h=this.getKeyIdString(t.decryptdata);this.log(`Generating key-session request for "${i}": ${h} (init data type: ${e} length: ${n?n.byteLength:null})`);const c=new Ii,d=t._onmessage=e=>{const n=t.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:i,message:r}=e;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(t,r).catch((t=>{c.eventNames().length?c.emit("error",t):this.handleError(t)})):"license-release"===i?t.keySystem===fn.FAIRPLAY&&(this.updateKeySession(t,hn("acknowledged")),this.removeSession(t)):this.warn(`unhandled media key message type "${i}"`)},f=t._onkeystatuseschange=e=>{if(!t.mediaKeysSession)return void c.emit("error",new Error("invalid state"));this.onKeyStatusChange(t);const n=t.keyStatus;c.emit("keyStatus",n),"expired"===n&&(this.warn(`${t.keySystem} expired for key ${h}`),this.renewKeySession(t))};js(t.mediaKeysSession,"message",d),js(t.mediaKeysSession,"keystatuseschange",f);const p=new Promise(((t,e)=>{c.on("error",e),c.on("keyStatus",(n=>{n.startsWith("usable")?t():"output-restricted"===n?e(new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?e(new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?e(new Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)}))}));return t.mediaKeysSession.generateRequest(e,n).then((()=>{var e;this.log(`Request generated for key-session "${null==(e=t.mediaKeysSession)?void 0:e.sessionId}" keyId: ${h}`)})).catch((t=>{throw new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},`Error generating key-session request: ${t}`)})).then((()=>p)).catch((e=>{throw c.removeAllListeners(),this.removeSession(t),e})).then((()=>(c.removeAllListeners(),t)))}onKeyStatusChange(t){t.mediaKeysSession.keyStatuses.forEach(((e,n)=>{if("string"==typeof n&&"object"==typeof e){const t=n;n=e,e=t}this.log(`key status change "${e}" for keyStatuses keyId: ${B("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${B(new Uint8Array(t.decryptdata.keyId||[]))} uri: ${t.decryptdata.uri}`),t.keyStatus=e}))}fetchServerCertificate(t){const e=this.config,n=new(0,e.loader)(e),i=this.getServerCertificateUrl(t);return i?(this.log(`Fetching server certificate for "${t}"`),new Promise(((r,s)=>{const l={responseType:"arraybuffer",url:i},u=e.certLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,e,n,i)=>{r(t.data)},onError:(e,n,r,u)=>{s(new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:w({url:l.url,data:void 0},e)},`"${t}" certificate request failed (${i}). Status: ${e.code} (${e.text})`))},onTimeout:(e,n,r)=>{s(new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:l.url,data:void 0}},`"${t}" certificate request timed out (${i})`))},onAbort:(t,e,n)=>{s(new Error("aborted"))}};n.load(l,h,c)}))):Promise.resolve()}setMediaKeysServerCertificate(t,e,n){return new Promise(((i,r)=>{t.setServerCertificate(n).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${e}"`),i(t)})).catch((t=>{r(new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))}))}))}renewLicense(t,e){return this.requestLicense(t,new Uint8Array(e)).then((e=>this.updateKeySession(t,new Uint8Array(e)).catch((t=>{throw new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)}))))}unpackPlayReadyKeyMessage(t,e){const n=String.fromCharCode.apply(null,new Uint16Array(e.buffer));if(!n.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),e;const i=(new DOMParser).parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let e;for(let n=0,i=r.length;n in key message");return hn(atob(l))}setupLicenseXHR(t,e,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,t,e,n,i)})).catch((s=>{if(!n.decryptdata)throw s;return t.open("POST",e,!0),r.call(this.hls,t,e,n,i)})).then((n=>{t.readyState||t.open("POST",e,!0);return{xhr:t,licenseChallenge:n||i}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,e){const n=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return r(new Error("invalid state"));if(4===l.readyState)if(200===l.status){this._requestLicenseFailureCount=0;let e=l.response;this.log(`License received ${e instanceof ArrayBuffer?e.byteLength:e}`);const n=this.config.licenseResponseCallback;if(n)try{e=n.call(this.hls,l,s,t)}catch(t){this.error(t)}i(e)}else{const u=n.errorRetry,h=u?u.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>h||l.status>=400&&l.status<500)r(new Hs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const n=h-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(t,e).then(i,r)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=l,this.setupLicenseXHR(l,s,t,e).then((({xhr:e,licenseChallenge:n})=>{t.keySystem==fn.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(e,n)),e.send(n)}))}))}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,e){if(!this.config.emeEnabled)return;const n=e.media;this.media=n,js(n,"encrypted",this.onMediaEncrypted),js(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(Gs(t,"encrypted",this.onMediaEncrypted),Gs(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const e=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Rn.clearKeyUriToKeyIdMap();const i=n.length;qs.CDMCleanupPromise=Promise.all(n.map((t=>this.removeSession(t))).concat(null==e||null==(t=e.setMediaKeys(null))?void 0:t.catch((t=>{var e;this.log(`Could not clear media keys: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${t}`)})})))).catch((t=>{var e;this.log(`Could not close sessions and clear media keys: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${t}`)})})).then((()=>{i&&this.log("finished closing key sessions and clearing media keys")}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(t,{sessionKeys:e}){if(e&&this.config.emeEnabled&&!this.keyFormatPromise){const t=e.reduce(((t,e)=>(-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t)),[]);this.log(`Selecting key-system from session-keys ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)}}removeSession(t){const{mediaKeysSession:e,licenseXhr:n}=t;if(e){this.log(`Remove licenses and keys and close session ${e.sessionId}`),t._onmessage&&(e.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(e.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);i>-1&&this.mediaKeySessions.splice(i,1);const{drmSystemOptions:r}=this.config,s=function(t){var e;return"persistent-license"===t.sessionType||!(null==(e=t.sessionTypes)||!e.some((t=>"persistent-license"===t)))}(r)?new Promise(((t,n)=>{self.setTimeout((()=>n(new Error("MediaKeySession.remove() timeout"))),8e3),e.remove().then(t)})):Promise.resolve();return s.catch((t=>{var e;this.log(`Could not remove session: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${t}`)})})).then((()=>e.close())).catch((t=>{var e;this.log(`Could not close session: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${t}`)})}))}}}qs.CDMCleanupPromise=void 0;class Hs extends Error{constructor(t,e){super(e),this.data=void 0,t.error||(t.error=new Error(e)),this.data=t,t.err=t.error}}function Qs(t,e){let n;try{n=new Event("addtrack")}catch(t){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=t,e.dispatchEvent(n)}function Vs(t,e){const n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){S.debug(`[texttrack-utils]: ${n}`);try{const n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,t.addCue(n)}catch(t){S.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${t}`)}}"disabled"===n&&(t.mode=n)}function Ys(t,e){const n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues)for(let n=t.cues.length;n--;)e&&t.cues[n].removeEventListener("enter",e),t.removeCue(t.cues[n]);"disabled"===n&&(t.mode=n)}function Ks(t,e,n,i){const r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&t.cues.length>0){const r=function(t,e,n){const i=[],r=function(t,e){if(e<=t[0].startTime)return 0;const n=t.length-1;if(e>t[n].endTime)return-1;let i,r=0,s=n;for(;r<=s;)if(i=Math.floor((s+r)/2),et[i].startTime&&r-1)for(let s=r,a=t.length;s=e&&r.endTime<=n)i.push(r);else if(r.startTime>n)return i}return i}(t.cues,e,n);for(let e=0;e>>0).toString()}const Zs=.025;let Js=function(t){return t[t.Point=0]="Point",t[t.Range=1]="Range",t}({});function $s(t,e,n){return`${t.identifier}-${n+1}-${Ws(e)}`}class ta{constructor(t,e){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=e,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,null==(t=this.assetListLoader)||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var e;if(t>0&&t>=this.assetList.length)return!0;const n=this.playoutLimit;if(t<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(e=this.assetList[t])?void 0:e.startOffset)||0)>n}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const e=this.dateRange.tagAnchor;if(e)return ea(t,e)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const e=this.dateRange.startTime;return e-ea(e,t)<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,e=i(t)?t:this.duration;return this.cumulativeDuration+e}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const e=this.resumeAnchor;if(e)return ea(t,e)}return t}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)0||null!==this.assetListResponse}toString(){return`["${(t=this).identifier}" ${t.cue.pre?"
    ":t.cue.post?"":""}${t.timelineStart.toFixed(2)}-${t.resumeTime.toFixed(2)}]`;var t}}function ea(t,e){return t-e.start{this.reachedPlayout(this.currentTime)&&this.hls.trigger(l.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new t(e);this.interstitial=n,this.assetItem=i;let s=i.uri;try{s=na(s,e.primarySessionId).href}catch(t){}r.loadSource(s);const a=()=>{this.hasDetails=!0};r.once(l.LEVEL_LOADED,a),r.once(l.AUDIO_TRACK_LOADED,a),r.once(l.SUBTITLE_TRACK_LOADED,a),r.on(l.MEDIA_ATTACHING,((t,{media:e})=>{this.removeMediaListeners(),this.mediaAttached=e;this.interstitial.playoutLimit&&(e.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(l.BUFFER_APPENDED,(()=>{const t=this.bufferedEnd;this.reachedPlayout(t)&&(this._bufferedEosTime=t,r.trigger(l.BUFFERED_TO_END,void 0))})))}))}get appendInPlace(){var t;return(null==(t=this.interstitial)?void 0:t.appendInPlace)||!1}bufferedInPlaceToEnd(t){var e;if(!this.appendInPlace)return!1;if(null!=(e=this.hls)&&e.bufferedToEnd)return!0;if(!t||!this._bufferedEosTime)return!1;const n=this.timelineOffset,i=Ke.bufferInfo(t,n,0);return this.getAssetTime(i.end)>=this._bufferedEosTime-.02}reachedPlayout(t){const e=this.interstitial.playoutLimit;return this.startOffset+t>=e}get destroyed(){var t;return!(null!=(t=this.hls)&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return(null==(t=this.hls)?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const e=Ke.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(e.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;return t||0}get remaining(){const t=this.duration;return t?Math.max(0,t-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var t;return(null==(t=this.hls)?void 0:t.config.timelineOffset)||0}set timelineOffset(t){const e=this.timelineOffset;if(t!==e){const n=t-e;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const e=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,t-e),n)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var t;this.mediaAttached&&(null!=(t=this.hls)&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){this.hls.attachMedia(t)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}resetDetails(){const t=this.hls;if(this.hasDetails){t.stopLoad();const e=t=>delete t.details;t.levels.forEach(e),t.allAudioTracks.forEach(e),t.allSubtitleTracks.forEach(e),this.hasDetails=!1}}on(t,e,n){this.hls.on(t,e)}once(t,e,n){this.hls.once(t,e)}off(t,e,n){this.hls.off(t,e)}toString(){var t;return`HlsAssetPlayer: ${ra(this.assetItem)} ${null==(t=this.hls)?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}class aa extends E{constructor(t,e){super("interstitials-sched",e),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((t=>t.reset())),this.events=this.items=null}resetErrorsInRange(t,e){return this.events?this.events.reduce(((n,i)=>t<=i.startOffset&&e>i.startOffset?(delete i.error,n+1):n),0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,e){if(t.event)return this.findEventIndex(t.event.identifier);let n=-1;t.nextEvent?n=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(n=this.findEventIndex(t.previousEvent.identifier)+1);const i=this.items;if(i)for(i[n]||(void 0===e&&(e=t.start),n=this.findItemIndexAtTime(e));n>=0&&null!=(r=i[n])&&r.event;){var r;n--}return n}findItemIndexAtTime(t,e){const n=this.items;if(n)for(let i=0;ir.start&&t1)for(let t=0;tn&&e!a.includes(t.identifier))):[];s.length&&s.sort(((t,e)=>{const n=t.cue.pre,i=t.cue.post,r=e.cue.pre,s=e.cue.post;if(n&&!r)return-1;if(r&&!n)return 1;if(i&&!s)return 1;if(s&&!i)return-1;if(!(n||r||i||s)){const n=t.startTime,i=e.startTime;if(n!==i)return n-i}return t.dateRange.tagOrder-e.dateRange.tagOrder})),this.events=s,o.forEach((t=>{this.removeEvent(t)})),this.updateSchedule(t,o)}updateSchedule(t,e=[]){const n=this.events||[];if(n.length||e.length||this.length<2){const i=this.items,r=this.parseSchedule(n,t);(e.length||(null==i?void 0:i.length)!==r.length||r.some(((t,e)=>Math.abs(t.playout.start-i[e].playout.start)>.005||Math.abs(t.playout.end-i[e].playout.end)>.005)))&&(this.items=r,this.onScheduleUpdate(e,i))}}parseDateRanges(t,e,n){const i=[],r=Object.keys(t);for(let s=0;s!(t.error||t.cue.once&&t.hasPlayed)))).length){this.resolveOffsets(t,e);let i=0,o=0;if(t.forEach(((e,a)=>{const l=e.cue.pre,u=e.cue.post,h=t[a-1]||null,c=e.appendInPlace,d=u?r:e.startOffset,f=e.duration,p=e.timelineOccupancy===Js.Range?f:0,g=e.resumptionOffset,m=(null==h?void 0:h.startTime)===d,v=d+e.cumulativeDuration;let y=c?v+f:d+g;if(l||!u&&d<=0){const t=o;o+=p,e.timelineStart=v;const i=s;s+=f,n.push({event:e,start:v,end:y,playout:{start:i,end:s},integrated:{start:t,end:o}})}else{if(!(d<=r))return;{if(!m){const r=d-i;if(r>.033){const l=i,u=o;o+=r;const h=s;s+=r;const c={previousEvent:t[a-1]||null,nextEvent:e,start:l,end:l+r,playout:{start:h,end:s},integrated:{start:u,end:o}};n.push(c)}else r>0&&h&&(h.cumulativeDuration+=r,n[n.length-1].end=d)}u&&(y=v),e.timelineStart=v;const r=o;o+=p;const l=s;s+=f,n.push({event:e,start:v,end:y,playout:{start:l,end:s},integrated:{start:r,end:o}})}}const A=e.resumeTime;i=u||A>r?r:A})),i{const u=o.cue.pre,h=o.cue.post,c=u?0:h?r:o.startTime;this.updateAssetDurations(o);if(a===c?o.cumulativeDuration=s:(s=0,a=c),!h&&o.snapOptions.in&&(o.resumeAnchor=ue(null,n.fragments,o.startOffset+o.resumptionOffset,0,0)||void 0),o.appendInPlace&&!o.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(o,e)||(o.appendInPlace=!1)}if(!o.appendInPlace&&l+1Zs)return this.log(`"${t.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1;if(!e)return this.log(`"${t.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1;return!Object.keys(e).some((i=>{const r=e[i].details,s=r.edge;if(n>=s)return this.log(`"${t.identifier}" resumption ${n} past ${i} playlist end ${s}`),!1;const a=ue(null,r.fragments,n);if(!a)return this.log(`"${t.identifier}" resumption ${n} does not align with any fragments in ${i} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;const o="audio"===i?.175:0;return!(Math.abs(a.start-n){const a=e+n;t.startOffset=n,t.timelineStart=a,i||(i=null===t.duration),r||(r=!!t.error);const o=t.error?0:t.duration||0;n+=o})),t.duration=i&&!r?Math.max(n,t.duration):n}removeEvent(t){t.reset(),delete this.eventMap[t.identifier]}}function oa(t){return`[${t.event?'"'+t.event.identifier+'"':"primary"}: ${t.start.toFixed(2)}-${t.end.toFixed(2)}]`}class la{constructor(t){this.hls=void 0,this.hls=t}destroy(){this.hls=null}loadAssetList(t,e){const n=t.assetListUrl;let i;try{i=na(n,this.hls.sessionId,t.baseUrl)}catch(e){const i=this.assignAssetListError(t,o.ASSET_LIST_LOAD_ERROR,e,n);return void this.hls.trigger(l.ERROR,i)}e&&"data:"!==i.protocol&&i.searchParams.set("_HLS_start_offset",""+e);const r=this.hls.config,s=new(0,r.loader)(r),a={responseType:"json",url:i.href},u=r.interstitialAssetListLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,n,i,r)=>{const s=e.data,a=null==s?void 0:s.ASSETS;if(Array.isArray(a))t.assetListResponse=s,this.hls.trigger(l.ASSET_LIST_LOADED,{event:t,assetListResponse:s,networkDetails:r});else{const e=this.assignAssetListError(t,o.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),i.url,n,r);this.hls.trigger(l.ERROR,e)}},onError:(e,n,i,r)=>{const s=this.assignAssetListError(t,o.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${e.code} ${e.text} (${n.url})`),n.url,r,i);this.hls.trigger(l.ERROR,s)},onTimeout:(e,n,i)=>{const r=this.assignAssetListError(t,o.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,e,i);this.hls.trigger(l.ERROR,r)}};return s.load(a,h,c),this.hls.trigger(l.ASSET_LIST_LOADING,{event:t}),s}assignAssetListError(t,e,n,i,r,s){return t.error=n,{type:a.NETWORK_ERROR,details:e,fatal:!1,interstitial:t,url:i,error:n,networkDetails:s,stats:r}}}function ua(t){null==t||t.play().catch((()=>{}))}class ha{constructor(t){this.buffered=void 0;const e=(e,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${e}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return t[n][e]};this.buffered={get length(){return t.length},end(n){return e("end",n,t.length)},start(n){return e("start",n,t.length)}}}}const ca={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},da=t=>String.fromCharCode(ca[t]||t),fa=15,pa=100,ga={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ma={17:2,18:4,21:6,22:8,23:10,19:13,20:15},va={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ya={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Aa=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class ba{constructor(){this.time=null,this.verboseLevel=0}log(t,e){if(this.verboseLevel>=t){const n="function"==typeof e?e():e;S.log(`${this.time} [${t}] ${n}`)}}}const wa=function(t){const e=[];for(let n=0;npa&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=pa)}moveCursor(t){const e=this.pos+t;if(t>1)for(let t=this.pos+1;t=144&&this.backSpace();const e=da(t);this.pos>=pa?this.logger.log(0,(()=>"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))}clearFromPos(t){let e;for(e=t;e"pacData = "+$t(t)));let e=t.row-1;if(this.nrRollUpRows&&e"bkgData = "+$t(t))),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const e=[];let n="",i=-1;for(let n=0;n0&&(n=t?"["+e.join(" | ")+"]":e.join("\n")),n}getTextAndFormat(){return this.rows}}class Ca{constructor(t,e,n){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=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Ta(n),this.nonDisplayedMemory=new Ta(n),this.lastOutputScreen=new Ta(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(()=>"MODE="+t)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let e=0;ee+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{const n=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=i[n]}this.logger.log(2,"MIDROW: "+$t(e)),this.writeScreen.setPen(e)}outputDataUpdate(t=!1){const e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class Da{constructor(t,e,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const i=this.logger=new ba;this.channels=[null,new Ca(t,e,i),new Ca(t+1,n,i)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,e){this.channels[t].setHandler(e)}addData(t,e){this.logger.time=t;for(let t=0;t"["+wa([e[t],e[t+1]])+"] -> ("+wa([n,i])+")"));const a=this.cmdHistory;if(n>=16&&n<=31){if(Ia(n,i,a)){Sa(null,null,a),this.logger.log(3,(()=>"Repeated command ("+wa([n,i])+") is dropped"));continue}Sa(n,i,this.cmdHistory),r=this.parseCmd(n,i),r||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i))}else Sa(null,null,a);if(!r&&(s=this.parseChars(n,i),s)){const t=this.currentChannel;if(t&&t>0){this.channels[t].insertChars(s)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||s||this.logger.log(2,(()=>"Couldn't parse cleaned data "+wa([n,i])+" orig: "+wa([e[t],e[t+1]])))}}parseCmd(t,e){if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=33&&e<=35))return!1;const n=20===t||21===t||23===t?1:2,i=this.channels[n];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),this.currentChannel=n,!0}parseMidrow(t,e){let n=0;if((17===t||25===t)&&e>=32&&e<=47){if(n=17===t?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[n];return!!i&&(i.ccMIDROW(e),this.logger.log(3,(()=>"MIDROW ("+wa([t,e])+")")),!0)}return!1}parsePAC(t,e){let n;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127)&&!((16===t||24===t)&&e>=64&&e<=95))return!1;const i=t<=23?1:2;n=e>=64&&e<=95?1===i?ga[t]:va[t]:1===i?ma[t]:ya[t];const r=this.channels[i];return!!r&&(r.setPAC(this.interpretPAC(n,e)),this.currentChannel=i,!0)}interpretPAC(t,e){let n;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return n=e>95?e-96:e-64,i.underline=1==(1&n),n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(t,e){let n,i=null,r=null;if(t>=25?(n=2,r=t-8):(n=1,r=t),r>=17&&r<=19){let t;t=17===r?e+80:18===r?e+112:e+144,this.logger.log(2,(()=>"Special char '"+da(t)+"' in channel "+n)),i=[t]}else t>=32&&t<=127&&(i=0===e?[t]:[t,e]);return i&&this.logger.log(3,(()=>"Char codes =  "+wa(i).join(","))),i}parseBackgroundAttributes(t,e){if(!((16===t||24===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=45&&e<=47))return!1;let n;const i={};16===t||24===t?(n=Math.floor((e-32)/2),i.background=Aa[n],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));const r=t<=23?1:2;return this.channels[r].setBkgData(i),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");A=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",r({},l,{get:function(){return b},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",r({},l,{get:function(){return w},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",r({},l,{get:function(){return E},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");E=e,this.hasBeenReset=!0}})),o.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class La{decode(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function Ba(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+parseFloat(i||0)}const n=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?e(n[2],n[3],0,n[4]):e(n[1],n[2],n[3],n[4]):null}class Pa{constructor(){this.values=Object.create(null)}set(t,e){this.get(t)||""===e||(this.values[t]=e)}get(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e}has(t){return t in this.values}alt(t,e,n){for(let i=0;i=0&&n<=100)return this.set(t,n),!0}return!1}}function Oa(t,e,n,i){const r=i?t.split(i):[t];for(const t in r){if("string"!=typeof r[t])continue;const i=r[t].split(n);if(2!==i.length)continue;e(i[0],i[1])}}const Ma=new Ra(0,0,""),Na="middle"===Ma.align?"middle":"center";function Fa(t,e,n){const i=t;function r(){const e=Ba(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function s(){t=t.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),s(),e.endTime=r(),s(),function(t,e){const i=new Pa;Oa(t,(function(t,e){let r;switch(t){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":r=e.split(","),i.integer(t,r[0]),i.percent(t,r[0])&&i.set("snapToLines",!1),i.alt(t,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",Na,"end"]);break;case"position":r=e.split(","),i.percent(t,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",Na,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",Na,"end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===Ma.line&&(r=-1),e.line=r,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",Na);let s=i.get("position","auto");"auto"===s&&50===Ma.position&&(s="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=s}(t,e)}function _a(t){return t.replace(//gi,"\n")}class Ua{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new La,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const e=this;function n(){let t=e.buffer,n=0;for(t=_a(t);n0&&h.push(t)},l.onparsingerror=function(t){d=t},l.onflush=function(){d?o(d):a(h)},u.forEach((t=>{if(m){if(ja(t,"X-TIMESTAMP-MAP=")){m=!1,t.slice(16).split(",").forEach((t=>{ja(t,"LOCAL:")?f=t.slice(6):ja(t,"MPEGTS:")&&(p=parseInt(t.slice(7)))}));try{g=function(t){let e=parseInt(t.slice(-3));const n=parseInt(t.slice(-6,-4)),r=parseInt(t.slice(-9,-7)),s=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(i(e)&&i(n)&&i(r)&&i(s)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return e+=1e3*n,e+=6e4*r,e+=36e5*s,e}(f)/1e3}catch(t){d=t}return}""===t&&(m=!1)}l.parse(t+"\n")})),l.flush()}const Ha="stpp.ttml.im1t",Qa=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Va=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Ya={left:"start",center:"center",right:"end",start:"start",end:"end"};function Ka(t,e,n,i){const r=at(new Uint8Array(t),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const s=r.map((t=>L(t))),a=function(t,e,n=1,i=!1){return Or(t,e,1/n,i)}(e.baseTime,1,e.timescale);try{s.forEach((t=>n(function(t,e){const n=(new DOMParser).parseFromString(t,"text/xml"),i=n.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(r).reduce(((t,e)=>(t[e]=i.getAttribute(`ttp:${e}`)||r[e],t)),{}),a="preserve"!==i.getAttribute("xml:space"),o=Wa(Xa(i,"styling","style")),l=Wa(Xa(i,"layout","region")),u=Xa(i,"body","[begin]");return[].map.call(u,(t=>{const n=Za(t,a);if(!n||!t.hasAttribute("begin"))return null;const i=to(t.getAttribute("begin"),s),r=to(t.getAttribute("dur"),s);let u=to(t.getAttribute("end"),s);if(null===i)throw $a(t);if(null===u){if(null===r)throw $a(t);u=i+r}const h=new Ra(i-e,u-e,n);h.id=Ga(h.startTime,h.endTime,h.text);const c=function(t,e,n){const i="http://www.w3.org/ns/ttml#styling";let r=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;a&&n.hasOwnProperty(a)&&(r=n[a]);return s.reduce(((n,s)=>{const a=Ja(e,i,s)||Ja(t,i,s)||Ja(r,i,s);return a&&(n[s]=a),n}),{})}(l[t.getAttribute("region")],o[t.getAttribute("style")],o),{textAlign:d}=c;if(d){const t=Ya[d];t&&(h.lineAlign=t),h.align=d}return A(h,c),h})).filter((t=>null!==t))}(t,a))))}catch(t){i(t)}}function Xa(t,e,n){const i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function Wa(t){return t.reduce(((t,e)=>{const n=e.getAttribute("xml:id");return n&&(t[n]=e),t}),{})}function Za(t,e){return[].slice.call(t.childNodes).reduce(((t,n,i)=>{var r;return"br"===n.nodeName&&i?t+"\n":null!=(r=n.childNodes)&&r.length?Za(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent}),"")}function Ja(t,e,n){return t&&t.hasAttributeNS(e,n)?t.getAttributeNS(e,n):null}function $a(t){return new Error(`Could not parse ttml timestamp ${t}`)}function to(t,e){if(!t)return null;let n=Ba(t);return null===n&&(Qa.test(t)?n=function(t,e){const n=Qa.exec(t),i=(0|n[4])+(0|n[5])/e.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+i/e.frameRate}(t,e):Va.test(t)&&(n=function(t,e){const n=Va.exec(t),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),n}class eo{constructor(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,e,n){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function no(t){return t.characteristics&&/transcribes-spoken-dialog/gi.test(t.characteristics)&&/describes-music-and-sound/gi.test(t.characteristics)?"captions":"subtitles"}function io(t,e){return!!t&&t.kind===no(e)&&is(e,t)}const ro=/\s/,so={newCue(t,e,n,i){const r=[];let s,a,o,l,u;const h=self.VTTCue||self.TextTrackCue;for(let d=0;d=16?l--:l++;const i=_a(u.trim()),f=Ga(e,n,i);null!=t&&null!=(c=t.cues)&&c.getCueById(f)||(a=new h(e,n,i),a.id=f,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(a))}return t&&r.length&&(r.sort(((t,e)=>"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line)),r.forEach((e=>Vs(t,e)))),r}};const ao=/(\d+)-(\d+)\/(\d+)/;class oo{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||lo,this.controller=new self.AbortController,this.stats=new G}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,e,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const s=function(t,e){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(A({},t.headers))};t.rangeEnd&&n.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1));return n}(t,this.controller.signal),a="arraybuffer"===t.responseType,o=a?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=e.loadPolicy;this.context=t,this.config=e,this.callbacks=n,this.request=this.fetchSetup(t,s),self.clearTimeout(this.requestTimeout),e.timeout=l&&i(l)?l:u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,t,this.response))}),e.timeout);(Xr(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((n=>{var s;this.response=this.loader=n;const o=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),e.timeout=u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,t,this.response))}),u-(o-r.loading.start)),!n.ok){const{status:t,statusText:e}=n;throw new uo(e||"fetch, bad network response",t,n)}r.loading.first=o,r.total=function(t){const e=t.get("Content-Range");if(e){const t=function(t){const e=ao.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(i(t))return t}const n=t.get("Content-Length");if(n)return parseInt(n)}(n.headers)||r.total;const l=null==(s=this.callbacks)?void 0:s.onProgress;return l&&i(e.highWaterMark)?this.loadProgressively(n,r,t,e.highWaterMark,l):a?n.arrayBuffer():"json"===t.responseType?n.json():n.text()})).then((n=>{var s,a;const l=this.response;if(!l)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const u=n[o];u&&(r.loaded=r.total=u);const h={url:l.url,data:n,code:l.status},c=null==(s=this.callbacks)?void 0:s.onProgress;c&&!i(e.highWaterMark)&&c(r,t,n,l),null==(a=this.callbacks)||a.onSuccess(h,r,t,l)})).catch((e=>{var n;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const i=e&&e.code||0,s=e?e.message:null;null==(n=this.callbacks)||n.onError({code:i,text:s},t,e?e.details:null,r)}))}getCacheAge(){let t=null;if(this.response){const e=this.response.headers.get("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,e,n,i=0,r){const s=new Ti,a=t.body.getReader(),o=()=>a.read().then((a=>{if(a.done)return s.dataLength&&r(e,n,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const l=a.value,u=l.length;return e.loaded+=u,u=i&&r(e,n,s.flush().buffer,t)):r(e,n,l.buffer,t),o()})).catch((()=>Promise.reject()));return o()}}function lo(t,e){return new self.Request(t.url,e)}class uo extends Error{constructor(t,e,n){super(t),this.code=void 0,this.details=void 0,this.code=e,this.details=n}}const ho=/^age:\s*[\d.]+\s*$/im;class co{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new G,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,e,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:t,context:e}=this;if(!t||!e)return;const n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return r(n,e.url)})).catch((t=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",e.url,!0),r(n,e.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,e,t)})).catch((t=>{var r;null==(r=this.callbacks)||r.onError({code:n.status,text:t.message},e,n,i)})):this.openAndSendXhr(n,e,t)}openAndSendXhr(t,e,n){t.readyState||t.open("GET",e.url,!0);const r=e.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const e in r)t.setRequestHeader(e,r[e]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),n.timeout=s&&i(s)?s:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),t.send()}readystatechange(){const{context:t,loader:e,stats:n}=this;if(!t||!e)return;const i=e.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;const i=e.status,l="text"===e.responseType?e.responseText:null;if(i>=200&&i<300){const r=null!=l?l:e.response;if(null!=r){var s,a;n.loading.end=Math.max(self.performance.now(),n.loading.first);const o="arraybuffer"===e.responseType?r.byteLength:r.length;n.loaded=n.total=o,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(s=this.callbacks)?void 0:s.onProgress;l&&l(n,t,r,e);const u={url:e.responseURL,data:r,code:i};return void(null==(a=this.callbacks)||a.onSuccess(u,n,t,e))}}const u=r.loadPolicy.errorRetry;var o;if(ve(u,n.retry,!1,{url:t.url,data:void 0,code:i}))this.retry(u);else S.error(`${i} while loading ${t.url}`),null==(o=this.callbacks)||o.onError({code:i,text:e.statusText},t,e,n)}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry;if(ve(t,this.stats.retry,!0))this.retry(t);else{var e;S.warn(`timeout while loading ${null==(e=this.context)?void 0:e.url}`);const t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:e,stats:n}=this;this.retryDelay=ge(t,n.retry),n.retry++,S.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==e?void 0:e.url}, retrying ${n.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)}getCacheAge(){let t=null;if(this.loader&&ho.test(this.loader.getAllResponseHeaders())){const e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const fo=w(w({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:co,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends E{constructor(t){super("abr",t.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var e;const{fragCurrent:n,partCurrent:r,hls:s}=this,{autoLevelEnabled:a,media:o}=s;if(!n||!o)return;const u=performance.now(),h=r?r.stats:n.stats,c=r?r.duration:n.duration,d=u-h.loading.start,f=s.minAutoLevel,p=n.level,g=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||p<=f)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!a)return;const m=g>-1&&g!==p,v=!!t||m;if(!v&&(o.paused||!o.playbackRate||!o.readyState))return;const y=s.mainForwardBufferInfo;if(!v&&null===y)return;const A=this.bwEstimator.getEstimateTTFB(),b=Math.abs(o.playbackRate);if(d<=Math.max(A,c/(2*b)*1e3))return;const w=y?y.len/b:0,E=h.loading.first?h.loading.first-h.loading.start:-1,x=h.loaded&&E>-1,k=this.getBwEstimate(),T=s.levels,C=T[p],D=Math.max(h.loaded,Math.round(c*(n.bitrate||C.averageBitrate)/8));let S=x?d-E:d;S<1&&x&&(S=Math.min(d,8*h.loaded/k));const I=x?1e3*h.loaded/S:0,R=A/1e3,L=I?(D-h.loaded)/I:8*D/k+R;if(L<=w)return;const B=I?8*I:k,P=!0===(null==(e=(null==t?void 0:t.details)||this.hls.latestLevelDetails)?void 0:e.live),O=this.hls.config.abrBandWidthUpFactor;let M,N=Number.POSITIVE_INFINITY;for(M=p-1;M>f;M--){const t=T[M].maxBitrate,e=!T[M].details||P;if(N=this.getTimeToLoadFrag(R,B,c*t,e),N=L)return;if(N>10*c)return;x?this.bwEstimator.sample(d-Math.min(A,E),h.loaded):this.bwEstimator.sampleTTFB(d);const F=T[M].maxBitrate;this.getBwEstimate()*O>F&&this.resetEstimator(F);const _=this.findBestLevel(F,f,M,0,w,1,1);_>-1&&(M=_),this.warn(`Fragment ${n.sn}${r?" part "+r.index:""} of level ${p} is loading too slowly;\n      Fragment duration: ${n.duration.toFixed(3)}\n      Time to underbuffer: ${w.toFixed(3)} s\n      Estimated load time for current fragment: ${L.toFixed(3)} s\n      Estimated load time for down switch fragment: ${N.toFixed(3)} s\n      TTFB estimate: ${0|E} ms\n      Current BW estimate: ${i(k)?0|k:"Unknown"} bps\n      New BW estimate: ${0|this.getBwEstimate()} bps\n      Switching to level ${M} @ ${0|F} bps`),s.nextLoadLevel=s.nextAutoLevel=M,this.clearTimer();const U=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===M&&M>0){const t=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${M>0?"and switching down":""}\n      Fragment duration: ${n.duration.toFixed(3)} s\n      Time to underbuffer: ${t.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,M>f){let e=this.findBestLevel(this.hls.levels[f].bitrate,f,M,0,t,1,1);-1===e&&(e=f),this.hls.nextLoadLevel=this.hls.nextAutoLevel=e,this.resetEstimator(this.hls.levels[e].bitrate)}}};m||L>2*N?U():this.timer=self.setInterval(U,1e3*N),s.trigger(l.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:h})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new v(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.FRAG_LOADING,this.onFragLoading,this),t.on(l.FRAG_LOADED,this.onFragLoaded,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this),t.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.FRAG_LOADING,this.onFragLoading,this),t.off(l.FRAG_LOADED,this.onFragLoaded,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this),t.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(l.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,e){const n=e.frag;if(!this.ignoreFragment(n)){var i;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(i=e.part)?i:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,e){this.clearTimer()}onError(t,e){if(!e.fatal)switch(e.details){case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case o.FRAG_LOAD_TIMEOUT:{const t=e.frag,{fragCurrent:n,partCurrent:i}=this;if(t&&n&&t.sn===n.sn&&t.level===n.level){const e=performance.now(),n=i?i.stats:t.stats,r=e-n.loading.start,s=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&s>-1){const t=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(t,s),n.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(t,e,n,i){return t+n/e+(i?t+this.lastLevelLoadSec:0)}onLevelLoaded(t,e){const n=this.hls.config,{loading:r}=e.stats,s=r.end-r.first;i(s)&&(this.lastLevelLoadSec=s/1e3),e.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(e.levelInfo)}onFragLoaded(t,{frag:e,part:n}){const i=n?n.stats:e.stats;if(e.type===f&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(e)){if(this.clearTimer(),e.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const t=n?n.duration:e.duration,r=this.hls.levels[e.level],s=(r.loaded?r.loaded.bytes:0)+i.loaded,a=(r.loaded?r.loaded.duration:0)+t;r.loaded={bytes:s,duration:a},r.realBitrate=Math.round(8*s/a)}if(e.bitrateTest){const t={stats:i,frag:e,part:n,id:e.type};this.onFragBuffered(l.FRAG_BUFFERED,t),e.bitrateTest=!1}else this.lastLoadedFragLevel=e.level}}onFragBuffered(t,e){const{frag:n,part:i}=e,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted)return;if(this.ignoreFragment(n))return;const s=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==f||"initSegment"===t.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:e}=this.hls,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,e,t,0,i,1,1);if(r>-1)return r;const s=this.hls.firstLevel,a=Math.min(Math.max(s,e),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,e=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===t||e&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return t;const i=e&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==t){const e=this.hls.levels;if(e.length>Math.max(t,i)&&e[t].loadError<=e[i].loadError)return t}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:e,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:i,config:r,minAutoLevel:s}=n,a=e?e.duration:t?t.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let u=r.abrBandWidthFactor,h=r.abrBandWidthUpFactor;if(l){const t=this.findBestLevel(o,s,i,l,0,u,h);if(t>=0)return this.rebufferNotice=-1,t}let c=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){const t=this.bitrateTestDelay;if(t){c=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-t,this.info(`bitrate test took ${Math.round(1e3*t)}ms, set first fragment max fetchDuration to ${Math.round(1e3*c)} ms`),u=h=1}}const d=this.findBestLevel(o,s,i,l,c,u,h);if(this.rebufferNotice!==d&&(this.rebufferNotice=d,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${d}`)),d>-1)return d;const f=n.levels[s],p=n.loadLevelObj;return p&&(null==f?void 0:f.bitrate){if(!n.codecSet)return t;const r=n.audioGroups;let s=t[n.codecSet];s||(t[n.codecSet]=s={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:i,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),s.minBitrate=Math.min(s.minBitrate,n.bitrate);const a=Math.min(n.height,n.width);return s.minHeight=Math.min(s.minHeight,a),s.minFramerate=Math.min(s.minFramerate,n.frameRate),s.minIndex=Math.min(s.minIndex,i),s.maxScore=Math.max(s.maxScore,n.score),s.fragmentError+=n.fragmentError,s.videoRanges[n.videoRange]=(s.videoRanges[n.videoRange]||0)+1,r&&r.forEach((t=>{if(!t)return;const n=e.groups[t];n&&(s.hasDefaultAudio=s.hasDefaultAudio||e.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(n.channels).forEach((t=>{s.channels[t]=(s.channels[t]||0)+n.channels[t]})))})),t}),{})}(p,C,e,n)),s=function(t,e,n,r,s){const a=Object.keys(t),o=null==r?void 0:r.channels,l=null==r?void 0:r.audioCodec,u=null==s?void 0:s.videoCodec,h=o&&2===parseInt(o);let c=!1,d=!1,f=1/0,p=1/0,g=1/0,m=1/0,v=0,y=[];const{preferHDR:A,allowedVideoRanges:b}=Jt(e,s);for(let e=a.length;e--;){const n=t[a[e]];c||(c=n.channels[2]>0),f=Math.min(f,n.minHeight),p=Math.min(p,n.minFramerate),g=Math.min(g,n.minBitrate),b.filter((t=>n.videoRanges[t]>0)).length>0&&(d=!0)}f=i(f)?f:0,p=i(p)?p:0;const w=Math.max(1080,f),E=Math.max(30,p);g=i(g)?g:n,n=Math.max(g,n),d||(e=void 0);const x=a.length>1;return{codecSet:a.reduce(((e,i)=>{const r=t[i];if(i===e)return e;if(y=d?b.filter((t=>r.videoRanges[t]>0)):[],x){if(r.minBitrate>n)return te(i,`min bitrate of ${r.minBitrate} > current estimate of ${n}`),e;if(!r.hasDefaultAudio)return te(i,"no renditions with default or auto-select sound found"),e;if(l&&i.indexOf(l.substring(0,4))%5!=0)return te(i,`audio codec preference "${l}" not found`),e;if(o&&!h){if(!r.channels[o])return te(i,`no renditions with ${o} channel sound found (channels options: ${Object.keys(r.channels)})`),e}else if((!l||h)&&c&&0===r.channels[2])return te(i,"no renditions with stereo sound found"),e;if(r.minHeight>w)return te(i,`min resolution of ${r.minHeight} > maximum of ${w}`),e;if(r.minFramerate>E)return te(i,`min framerate of ${r.minFramerate} > maximum of ${E}`),e;if(!y.some((t=>r.videoRanges[t]>0)))return te(i,`no variants with VIDEO-RANGE of ${$t(y)} found`),e;if(u&&i.indexOf(u.substring(0,4))%5!=0)return te(i,`video codec preference "${u}" not found`),e;if(r.maxScore=Rt(e)||r.fragmentError>t[e].fragmentError)?e:(m=r.minIndex,v=r.maxScore,i)}),void 0),videoRanges:y,preferHDR:A,minFramerate:p,minBitrate:g,minIndex:m}}(r,E,t,k,T),{codecSet:a,videoRanges:o,minFramerate:l,minBitrate:u,minIndex:h,preferHDR:c}=s;D=h,w=a,E=c?o[o.length-1]:o[0],x=l,t=Math.max(t,u),this.log(`picked start tier ${$t(s)}`)}else w=null==y?void 0:y.codecSet,E=null==y?void 0:y.videoRange;const S=f?f.duration:d?d.duration:0,I=this.bwEstimator.getEstimateTTFB()/1e3,R=[];for(let l=n;l>=e;l--){var L;const e=p[l],d=l>c;if(!e)continue;if(v.useMediaCapabilities&&!e.supportedResult&&!e.supportedPromise){const n=navigator.mediaCapabilities;"function"==typeof(null==n?void 0:n.decodingInfo)&&(jt(e,C,E,x,t,k)||vt(e.videoCodec))?(e.supportedPromise=Gt(e,C,n),e.supportedPromise.then((t=>{if(!this.hls)return;e.supportedResult=t;const n=this.hls.levels,i=n.indexOf(e);t.error?this.warn(`MediaCapabilities decodingInfo error: "${t.error}" for level ${i} ${$t(t)}`):t.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${i} ${$t(t)}`),i>-1&&n.length>1&&(this.log(`Removing unsupported level ${i}`),this.hls.removeLevel(i),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}))):e.supportedResult=_t}if((w&&e.codecSet!==w||E&&e.videoRange!==E||d&&x>e.frameRate||!d&&x>0&&x=2*S&&0===s?e.averageBitrate:e.maxBitrate,P=this.getTimeToLoadFrag(I,T,B*y,void 0===g);if(T>=B&&(l===h||0===e.loadError&&0===e.fragmentError)&&(P<=I||!i(P)||A&&!this.bitrateTestDelay||P${l} adjustedbw(${Math.round(T)})-bitrate=${Math.round(T-B)} ttfb:${I.toFixed(1)} avgDuration:${y.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${P.toFixed(1)} firstSelection:${b} codecSet:${e.codecSet} videoRange:${e.videoRange} hls.loadLevel:${m}`)),b&&(this.firstSelection=l),l}}return-1}set nextAutoLevel(t){const e=this.deriveNextAutoLevel(t);this._nextAutoLevel!==e&&(this.nextAutoLevelKey="",this._nextAutoLevel=e)}deriveNextAutoLevel(t){const{maxAutoLevel:e,minAutoLevel:n}=this.hls;return Math.min(Math.max(t,n),e)}},bufferController:class extends E{constructor(t,e){var n;super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=t=>{var e;this.hls&&"open"===(null==(e=this.mediaSource)?void 0:e.readyState)&&this.hls.pauseBuffering()},this._onStartStreaming=t=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=t=>{const{media:e,mediaSource:n}=this;t&&this.log("Media source opened"),e&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(l.MEDIA_ATTACHED,{media:e,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:t,_objectUrl:e}=this;t!==e&&this.error(`Media element src was set while attaching MediaSource (${e} > ${t})`)},this.hls=t,this.fragmentTracker=e,this.appendSource=(n=I(t.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.BUFFER_RESET,this.onBufferReset,this),t.on(l.BUFFER_APPENDING,this.onBufferAppending,this),t.on(l.BUFFER_CODECS,this.onBufferCodecs,this),t.on(l.BUFFER_EOS,this.onBufferEos,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.FRAG_PARSED,this.onFragParsed,this),t.on(l.FRAG_CHANGED,this.onFragChanged,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.BUFFER_RESET,this.onBufferReset,this),t.off(l.BUFFER_APPENDING,this.onBufferAppending,this),t.off(l.BUFFER_CODECS,this.onBufferCodecs,this),t.off(l.BUFFER_EOS,this.onBufferEos,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.FRAG_PARSED,this.onFragParsed,this),t.off(l.FRAG_CHANGED,this.onFragChanged,this),t.off(l.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:e}=this;if(!t)return null;const n={};if(this.operationQueue){const t=this.isUpdating();t||this.operationQueue.removeBlockers();const e=this.isQueued();(t||e)&&this.warn(`Transfering MediaSource with${e?" operations in queue":""}${t?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===e?A(n,i.tracks):this.sourceBuffers.forEach((t=>{const[e]=t;e&&(n[e]=A({},this.tracks[e]),this.removeBuffer(e)),t[0]=t[1]=null})),{media:t,mediaSource:e,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,e){var n;let i=2;(e.audio&&!e.video||!e.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(t,e){const n=this.media=e.media,i=I(this.appendSource);if(this.transferData=this.overrides=void 0,n&&i){const t=!!e.mediaSource;(t||e.overrides)&&(this.transferData=e,this.overrides=e.overrides);const r=this.mediaSource=e.mediaSource||new i;if(this.assignMediaSource(r),t)this._objectUrl=n.src,this.attachTransferred();else{const t=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{n.removeAttribute("src");const e=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||e&&r instanceof e,ls(n),function(t,e){const n=self.document.createElement("source");n.type="video/mp4",n.src=e,t.appendChild(n)}(n,t),n.load()}catch(e){n.src=t}else n.src=t}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var e,n;this.log(`${(null==(e=this.transferData)?void 0:e.mediaSource)===t?"transferred":"created"} media source: ${null==(n=t.constructor)?void 0:n.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,e=this.transferData;if(!e||!t)return;const n=this.tracks,i=e.tracks,r=i?Object.keys(i):null,s=r?r.length:0,a=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(i&&r&&s){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})\nrequired tracks: ${$t(n,((t,e)=>"initSegment"===t?void 0:e))};\ntransfer tracks: ${$t(i,((t,e)=>"initSegment"===t?void 0:e))}}`),!R(i,n)){e.mediaSource=null,e.tracks=void 0;const r=t.currentTime,s=this.details,a=Math.max(r,(null==s?void 0:s.fragments[0].start)||0);return a-r>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${a} currentTime: ${r}`),this.onMediaDetaching(l.MEDIA_DETACHING,{}),this.onMediaAttaching(l.MEDIA_ATTACHING,e),void(t.currentTime=a))}this.transferData=void 0,r.forEach((t=>{const e=t,n=i[e];if(n){const t=n.buffer;if(t){const i=this.fragmentTracker,r=n.id;if(i.hasFragments(r)||i.hasParts(r)){const n=Ke.getBuffered(t);i.detectEvictedFragments(e,n,r,null,!0)}const s=us(e),a=[e,t];this.sourceBuffers[s]=a,t.updating&&this.operationQueue&&this.operationQueue.prependBlocker(e),this.trackSourceBuffer(e,n)}}})),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var t;const e=null==(t=this.mediaSource)?void 0:t.readyState;return"open"===e||"ended"===e}onMediaDetaching(t,e){const n=!!e.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:r,_objectUrl:s}=this;if(r){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((([t])=>{t&&this.removeBuffer(t)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const t="open"===r.readyState;try{const e=r.sourceBuffers;for(let n=e.length;n--;)t&&e[n].abort(),r.removeSourceBuffer(e[n]);t&&r.endOfStream()}catch(t){this.warn(`onMediaDetaching: ${t.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&ls(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(l.MEDIA_DETACHED,e)}onBufferReset(){this.sourceBuffers.forEach((([t])=>{t&&this.resetBuffer(t)})),this.initTracks()}resetBuffer(t){var e;const n=null==(e=this.tracks[t])?void 0:e.buffer;if(this.removeBuffer(t),n)try{var i;null!=(i=this.mediaSource)&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(e){this.warn(`onBufferReset ${t}`,e)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[us(t)]=[null,null];const e=this.tracks[t];e&&(e.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new rs(this.tracks)}onBufferCodecs(t,e){const n=this.tracks,i=Object.keys(e);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const r="audiovideo"in e&&(n.audio||n.video)||n.audiovideo&&("audio"in e||"video"in e),s=!r&&this.sourceBufferCount&&this.media&&i.some((t=>!n[t]));r||s?this.warn(`Unsupported transition between "${Object.keys(n)}" and "${i}" SourceBuffers`):(i.forEach((t=>{var i,r,s;const a=e[t],{id:o,codec:l,levelCodec:u,container:h,metadata:c,supplemental:d}=a;let f=n[t];const p=null==(i=this.transferData)||null==(r=i.tracks)?void 0:r[t],g=null!=p&&p.buffer?p:f,m=(null==g?void 0:g.pendingCodec)||(null==g?void 0:g.codec),v=null==g?void 0:g.levelCodec;f||(f=n[t]={buffer:void 0,listeners:[],codec:l,supplemental:d,container:h,levelCodec:u,metadata:c,id:o});const y=Ot(m,v),A=null==y?void 0:y.replace(ss,"$1");let b=Ot(l,u);const w=null==(s=b)?void 0:s.replace(ss,"$1");b&&y&&A!==w&&("audio"===t.slice(0,5)&&(b=Pt(b,this.appendSource)),this.log(`switching codec ${m} to ${b}`),b!==(f.pendingCodec||f.codec)&&(f.pendingCodec=b),f.container=h,this.appendChangeType(t,h,b))})),(this.tracksReady||this.sourceBufferCount)&&(e.tracks=this.sourceBufferTracks),this.sourceBufferCount||this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce(((t,e)=>{const n=this.tracks[e];return t[e]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},t}),{})}appendChangeType(t,e,n){const i=`${e};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{const r=this.tracks[t];if(r){const s=r.buffer;null!=s&&s.changeType&&(this.log(`changing ${t} sourceBuffer type to ${i}`),s.changeType(i),r.codec=n,r.container=e)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn(`Failed to change ${t} SourceBuffer type`,e)}};this.append(r,t,this.isPending(this.tracks[t]))}blockAudio(t){var e;const n=t.start,i=n+.05*t.duration;if(!0===(null==(e=this.fragmentTracker.getAppendedFrag(n,f))?void 0:e.gap))return;const r={label:"block-audio",execute:()=>{var t;const e=this.tracks.video;(this.lastVideoAppendEnd>i||null!=e&&e.buffer&&Ke.isBuffered(e.buffer,i)||!0===(null==(t=this.fragmentTracker.getAppendedFrag(i,f))?void 0:t.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn("Error executing block-audio operation",t)}};this.blockedAudioAppend={op:r,frag:t},this.append(r,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:e}=this;t&&e&&(this.blockedAudioAppend=null,e.unblockAudio(t.op))}onBufferAppending(t,e){const{tracks:n}=this,{data:i,type:r,parent:s,frag:u,part:h,chunkMeta:c}=e,d=c.buffering[r],f=u.sn,p=self.performance.now();d.start=p;const g=u.stats.buffering,m=h?h.stats.buffering:null;0===g.start&&(g.start=p),m&&0===m.start&&(m.start=p);const v=n.audio;let y=!1;"audio"===r&&"audio/mpeg"===(null==v?void 0:v.container)&&(y=!this.lastMpegAudioChunk||1===c.id||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const A=this.tracks.video,b=null==A?void 0:A.buffer;if(b&&"initSegment"!==f){const t=h||u,e=this.blockedAudioAppend;if("audio"!==r||"main"===s||this.blockedAudioAppend){if("video"===r){const n=t.end;if(e){const t=e.frag.start;(n>t||n{if(d.executeStart=self.performance.now(),y){const t=this.tracks[r];if(t){const e=t.buffer;if(e){const t=w-e.timestampOffset;Math.abs(t)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${w} (delta: ${t}) sn: ${f})`),e.timestampOffset=w)}}}this.appendExecutor(i,r)},onStart:()=>{},onComplete:()=>{const t=self.performance.now();d.executeEnd=d.end=t,0===g.first&&(g.first=t),m&&0===m.first&&(m.first=t);const e={};this.sourceBuffers.forEach((([t,n])=>{t&&(e[t]=Ke.getBuffered(n))})),this.appendErrors[r]=0,"audio"===r||"video"===r?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(l.BUFFER_APPENDED,{type:r,frag:u,part:h,chunkMeta:c,parent:u.type,timeRanges:e})},onError:t=>{var e;const n={type:a.MEDIA_ERROR,parent:u.type,details:o.BUFFER_APPEND_ERROR,sourceBufferName:r,frag:u,part:h,chunkMeta:c,error:t,err:t,fatal:!1},i=null==(e=this.media)?void 0:e.error;if(t.code===DOMException.QUOTA_EXCEEDED_ERR)n.details=o.BUFFER_FULL_ERROR;else if(t.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!i)n.errorAction=Te(!0);else if(t.name===as&&0===this.sourceBufferCount)n.errorAction=Te(!0);else{const t=++this.appendErrors[r];this.warn(`Failed ${t}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer (${i||"no media error"})`),(t>=this.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}this.hls.trigger(l.ERROR,n)}};this.append(E,r,this.isPending(this.tracks[r]))}getFlushOp(t,e,n){return this.log(`queuing "${t}" remove ${e}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(t,e,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(l.BUFFER_FLUSHED,{type:t})},onError:i=>{this.warn(`Failed to remove ${e}-${n} from "${t}" SourceBuffer`,i)}}}onBufferFlushing(t,e){const{type:n,startOffset:i,endOffset:r}=e;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach((([t])=>{t&&this.append(this.getFlushOp(t,i,r),t)}))}onFragParsed(t,e){const{frag:n,part:i}=e,r=[],s=i?i.elementaryStreams:n.elementaryStreams;s[Q]?r.push("audiovideo"):(s[q]&&r.push("audio"),s[H]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers((()=>{const t=self.performance.now();n.stats.buffering.end=t,i&&(i.stats.buffering.end=t);const e=i?i.stats:n.stats;this.hls.trigger(l.FRAG_BUFFERED,{frag:n,part:i,stats:e,id:n.type})}),r).catch((t=>{this.warn(`Fragment buffered callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)}))}onFragChanged(t,e){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some((([t])=>{var e,n;return t&&(!(null!=(e=this.tracks[t])&&e.ended)||(null==(n=this.tracks[t])?void 0:n.ending))}))}onBufferEos(t,e){var n;this.sourceBuffers.forEach((([t])=>{if(t){const n=this.tracks[t];e.type&&e.type!==t||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${t} buffer reached EOS`)))}}));const i=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((([t])=>{var e;return t&&!(null!=(e=this.tracks[t])&&e.ended)}))&&(i?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:t}=this;t&&"open"===t.readyState?(this.log("Calling mediaSource.endOfStream()"),t.endOfStream(),this.hls.trigger(l.BUFFERED_TO_END,void 0)):t&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${t.readyState}`)}))):(this.tracksEnded(),this.hls.trigger(l.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach((([t])=>{if(null!==t){const e=this.tracks[t];e&&(e.ending=!1)}}))}onLevelUpdated(t,{details:e}){e.fragments.length&&(this.details=e,this.updateDuration())}updateDuration(){const t=this.getDurationAndRange();t&&this.blockUntilOpen((()=>this.updateMediaSource(t)))}onError(t,e){if(e.details===o.BUFFER_APPEND_ERROR&&e.frag){var n;const t=null==(n=e.errorAction)?void 0:n.nextAutoLevel;i(t)&&t!==e.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:e,media:n}=this;if(!n||null===e)return;if(!this.sourceBufferCount)return;const r=t.config,s=n.currentTime,a=e.levelTargetDuration,o=e.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(i(o)&&o>=0){const t=Math.max(o,a),e=Math.floor(s/a)*a-t;this.flushBackBuffer(s,a,e)}if(i(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const t=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),e=Math.max(t,a),n=Math.floor(s/a)*a+e;this.flushFrontBuffer(s,a,n)}}flushBackBuffer(t,e,n){this.sourceBuffers.forEach((([t,e])=>{if(e){const r=Ke.getBuffered(e);if(r.length>0&&n>r.start(0)){var i;this.hls.trigger(l.BACK_BUFFER_REACHED,{bufferEnd:n});const e=this.tracks[t];if(null!=(i=this.details)&&i.live)this.hls.trigger(l.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=e&&e.ended)return void this.log(`Cannot flush ${t} back buffer while SourceBuffer is in ended state`);this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:t})}}}))}flushFrontBuffer(t,e,n){this.sourceBuffers.forEach((([e,i])=>{if(i){const r=Ke.getBuffered(i),s=r.length;if(s<2)return;const a=r.start(s-1),o=r.end(s-1);if(n>a||t>=a&&t<=o)return;this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:e})}}))}getDurationAndRange(){var t;const{details:e,mediaSource:n}=this;if(!e||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const r=e.edge;if(e.live&&this.hls.config.liveDurationInfinity){if(e.fragments.length&&e.live&&n.setLiveSeekableRange){const t=Math.max(0,e.fragmentStart);return{duration:1/0,start:t,end:Math.max(t,r)}}return{duration:1/0}}const s=null==(t=this.overrides)?void 0:t.duration;if(s)return i(s)?{duration:s}:null;const a=this.media.duration;return r>(i(n.duration)?n.duration:0)&&r>a||!i(a)?{duration:r}:null}updateMediaSource({duration:t,start:e,end:n}){const r=this.mediaSource;this.media&&r&&"open"===r.readyState&&(r.duration!==t&&(i(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),r.duration=t),void 0!==e&&void 0!==n&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${e}-${n}.`),r.setLiveSeekableRange(e,n)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:e,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${e} codec events expected: ${t}) ${$t(n)}`),this.tracksReady){var i;const t=null==(i=this.transferData)?void 0:i.tracks;t&&Object.keys(t).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach((([e,n])=>{if(e){const i=this.tracks[e];t[e]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}})),this.hls.trigger(l.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach((([t])=>{this.executeNext(t)}))}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:e,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const r in t){const s=r,u=t[s];if(this.isPending(u)){const t=this.getTrackCodec(u,s),r=`${u.container};codecs=${t}`;u.codec=t,this.log(`creating sourceBuffer(${r})${this.currentOp(s)?" Queued":""} ${$t(u)}`);try{const t=n.addSourceBuffer(r),i=us(s),a=[s,t];e[i]=a,u.buffer=t}catch(t){var i;return this.error(`error while trying to add sourceBuffer: ${t.message}`),this.shiftAndExecuteNext(s),null==(i=this.operationQueue)||i.removeBlockers(),delete this.tracks[s],void this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,sourceBufferName:s,mimeType:r,parent:u.id})}this.trackSourceBuffer(s,u)}}this.bufferCreated()}getTrackCodec(t,e){const n=t.supplemental;let i=t.codec;n&&("video"===e||"audiovideo"===e)&&Ct(n,"video")&&(i=function(t,e){const n=[];if(t){const e=t.split(",");for(let t=0;t{const n=e.removedRanges;null!=n&&n.length&&this.hls.trigger(l.BUFFER_FLUSHED,{type:t})}))}get mediaSrc(){var t,e;const n=(null==(t=this.media)||null==(e=t.querySelector)?void 0:e.call(t,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(t){const e=this.currentOp(t);e&&e.onStart()}onSBUpdateEnd(t){var e;if("closed"===(null==(e=this.mediaSource)?void 0:e.readyState))return void this.resetBuffer(t);const n=this.currentOp(t);n&&(n.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,e){var n;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${i}`,e),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});const r=this.currentOp(t);r&&r.onError(i)}removeExecutor(t,e,n){const{media:r,mediaSource:s}=this,a=this.tracks[t],o=null==a?void 0:a.buffer;if(!r||!s||!o)return this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(t);const l=i(r.duration)?r.duration:1/0,u=i(s.duration)?s.duration:1/0,h=Math.max(0,e),c=Math.min(n,l,u);c>h&&(!a.ending||a.ended)?(a.ended=!1,this.log(`Removing [${h},${c}] from the ${t} SourceBuffer`),o.remove(h,c)):this.shiftAndExecuteNext(t)}appendExecutor(t,e){const n=this.tracks[e],i=null==n?void 0:n.buffer;if(!i)throw new os(`Attempting to append to the ${e} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch((t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)}));else try{t()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some((([t,e])=>t&&e.updating))}isQueued(){return this.sourceBuffers.some((([t])=>t&&!!this.currentOp(t)))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,e=this.sourceBufferTypes){if(!e.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:n}=this,i=e.map((t=>this.appendBlocker(t)));return e.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then((e=>{n===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(t){t.forEach((t=>{var e;const n=null==(e=this.tracks[t])?void 0:e.buffer;n&&!n.updating&&this.shiftAndExecuteNext(t)}))}append(t,e,n){this.operationQueue&&this.operationQueue.append(t,e,n)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce(((t,e)=>t+(this.isPending(this.tracks[e])?1:0)),0)}get sourceBufferCount(){return this.sourceBuffers.reduce(((t,[e])=>t+(e?1:0)),0)}get sourceBufferTypes(){return this.sourceBuffers.map((([t])=>t)).filter((t=>!!t))}addBufferListener(t,e,n){const i=this.tracks[t];if(!i)return;const r=i.buffer;if(!r)return;const s=n.bind(this,t);i.listeners.push({event:e,listener:s}),r.addEventListener(e,s)}removeBufferListeners(t){const e=this.tracks[t];if(!e)return;const n=e.buffer;n&&(e.listeners.forEach((t=>{n.removeEventListener(t.event,t.listener)})),e.listeners.length=0)}},capLevelController:hs,errorController:class extends E{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(l.ERROR,this.onError,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(l.ERROR,this.onError,this),t.off(l.ERROR,this.onErrorOut,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return(null==t?void 0:t.type)===f?t.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(t,e){var n;if(e.fatal)return;const i=this.hls,r=e.context;switch(e.details){case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case o.FRAG_PARSING_ERROR:if(null!=(n=e.frag)&&n.gap)return void(e.errorAction=Te());case o.FRAG_GAP:case o.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=Ae);case o.LEVEL_EMPTY_ERROR:case o.LEVEL_PARSING_ERROR:{var s,l;const t=e.parent===f?e.level:i.loadLevel;e.details===o.LEVEL_EMPTY_ERROR&&null!=(s=e.context)&&null!=(l=s.levelDetails)&&l.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,t):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t))}return;case o.LEVEL_LOAD_ERROR:case o.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,r.level)));case o.AUDIO_TRACK_LOAD_ERROR:case o.AUDIO_TRACK_LOAD_TIMEOUT:case o.SUBTITLE_LOAD_ERROR:case o.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const t=i.loadLevelObj;if(t&&(r.type===c&&t.hasAudioGroup(r.groupId)||r.type===d&&t.hasSubtitleGroup(r.groupId)))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,i.loadLevel),e.errorAction.action=Ae,void(e.errorAction.flags=xe)}return;case o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const t=i.loadLevelObj,n=null==t?void 0:t.attrs["HDCP-LEVEL"];n?e.errorAction={action:Ae,flags:ke,hdcpLevel:n}:this.keySystemError(e)}return;case o.BUFFER_ADD_CODEC_ERROR:case o.REMUX_ALLOC_ERROR:case o.BUFFER_APPEND_ERROR:var u;if(!e.errorAction)e.errorAction=this.getLevelSwitchAction(e,null!=(u=e.level)?u:i.loadLevel);return;case o.INTERNAL_EXCEPTION:case o.BUFFER_APPENDING_ERROR:case o.BUFFER_FULL_ERROR:case o.LEVEL_SWITCH_ERROR:case o.BUFFER_STALLED_ERROR:case o.BUFFER_SEEK_OVER_HOLE:case o.BUFFER_NUDGE_ON_STALL:return void(e.errorAction=Te())}e.type===a.KEY_SYSTEM_ERROR&&this.keySystemError(e)}keySystemError(t){const e=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e)}getPlaylistRetryOrSwitchAction(t,e){const n=pe(this.hls.config.playlistLoadPolicy,t),i=this.playlistError++;if(ve(n,i,fe(t),t.response))return{action:we,flags:Ee,retryConfig:n,retryCount:i};const r=this.getLevelSwitchAction(t,e);return n&&(r.retryConfig=n,r.retryCount=i),r}getFragRetryOrSwitchAction(t){const e=this.hls,n=this.getVariantLevelIndex(t.frag),i=e.levels[n],{fragLoadPolicy:r,keyLoadPolicy:s}=e.config,a=pe(t.details.startsWith("key")?s:r,t),l=e.levels.reduce(((t,e)=>t+e.fragmentError),0);if(i){t.details!==o.FRAG_GAP&&i.fragmentError++;if(ve(a,l,fe(t),t.response))return{action:we,flags:Ee,retryConfig:a,retryCount:l}}const u=this.getLevelSwitchAction(t,n);return a&&(u.retryConfig=a,u.retryCount=l),u}getLevelSwitchAction(t,e){const n=this.hls;null==e&&(e=n.loadLevel);const i=this.hls.levels[e];if(i){var r,s;const e=t.details;i.loadError++,e===o.BUFFER_APPEND_ERROR&&i.fragmentError++;let u=-1;const{levels:h,loadLevel:m,minAutoLevel:v,maxAutoLevel:y}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const A=null==(r=t.frag)?void 0:r.type,b=(A===p&&e===o.FRAG_PARSING_ERROR||"audio"===t.sourceBufferName&&(e===o.BUFFER_ADD_CODEC_ERROR||e===o.BUFFER_APPEND_ERROR))&&h.some((({audioCodec:t})=>i.audioCodec!==t)),w="video"===t.sourceBufferName&&(e===o.BUFFER_ADD_CODEC_ERROR||e===o.BUFFER_APPEND_ERROR)&&h.some((({codecSet:t,audioCodec:e})=>i.codecSet!==t&&i.audioCodec===e)),{type:E,groupId:x}=null!=(s=t.context)?s:{};for(let n=h.length;n--;){const r=(n+m)%h.length;if(r!==m&&r>=v&&r<=y&&0===h[r].loadError){var a,l;const n=h[r];if(e===o.FRAG_GAP&&A===f&&t.frag){const e=h[r].details;if(e){const n=ue(t.frag,e.fragments,t.frag.start);if(null!=n&&n.gap)continue}}else{if(E===c&&n.hasAudioGroup(x)||E===d&&n.hasSubtitleGroup(x))continue;if(A===p&&null!=(a=i.audioGroups)&&a.some((t=>n.hasAudioGroup(t)))||A===g&&null!=(l=i.subtitleGroups)&&l.some((t=>n.hasSubtitleGroup(t)))||b&&i.audioCodec===n.audioCodec||!b&&i.audioCodec!==n.audioCodec||w&&i.codecSet===n.codecSet)continue}u=r;break}}if(u>-1&&n.loadLevel!==u)return t.levelRetry=!0,this.playlistError=0,{action:Ae,flags:Ee,nextAutoLevel:u}}return{action:Ae,flags:xe}}onErrorOut(t,e){var n;switch(null==(n=e.errorAction)?void 0:n.action){case ye:break;case Ae:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===o.FRAG_GAP?/MediaSource readyState: ended/.test(e.error.message)&&(this.warn(`MediaSource ended after "${e.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):e.fatal=!0}e.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(t){const e=this.hls,n=t.errorAction;if(!n)return;const{flags:i,hdcpLevel:r,nextAutoLevel:s}=n;switch(i){case Ee:this.switchLevel(t,s);break;case ke:r&&(e.maxHdcpLevel=qt[qt.indexOf(r)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${e.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(t,s)}switchLevel(t,e){if(void 0!==e&&t.errorAction&&(this.warn(`switching to level ${e} after ${t.details}`),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,t.details===o.BUFFER_ADD_CODEC_ERROR&&t.mimeType&&"audiovideo"!==t.sourceBufferName)){const e=Ft(t.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${t.sourceBufferName}Codec`]===e&&this.hls.removeLevel(i)}}},fpsController:class{constructor(t){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=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(l.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,e){const n=this.hls.config;if(n.capLevelOnFPSDrop){const t=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=t,t&&"function"==typeof t.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,e,n){const i=performance.now();if(e){if(this.lastTime){const t=i-this.lastTime,r=n-this.lastDroppedFrames,s=e-this.lastDecodedFrames,a=1e3*r/t,o=this.hls;if(o.trigger(l.FPS_DROP,{currentDropped:r,currentDecoded:s,totalDroppedFrames:n}),a>0&&r>o.config.fpsDroppedMonitoringThreshold*s){let t=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+t),t>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=t)&&(t-=1,o.trigger(l.FPS_DROP_LEVEL_CAPPING,{level:t,droppedLevel:o.currentLevel}),o.autoLevelCapping=t,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=n,this.lastDecodedFrames=e}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Cn,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:so,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends xi{constructor(t,e,n){super(t,e,n,"subtitle-stream-controller",g),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(l.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(l.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,e){this.stopLoad(),this.state=di,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=e?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,e){this.tracksBuffered=[],super.onMediaDetaching(t,e)}onLevelLoaded(t,e){this.mainDetails=e.details}onSubtitleFragProcessed(t,e){const{frag:n,success:i}=e;if(Y(n)&&(this.fragPrevious=n),this.state=di,!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let s;const a=n.start;for(let t=0;t=r[t].start&&a<=r[t].end){s=r[t];break}const o=n.start+n.duration;s?s.end=o:(s={start:a,end:o},r.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(t,e){const{startOffset:n,endOffset:i}=e;if(0===n&&i!==Number.POSITIVE_INFINITY){const t=i-1;if(t<=0)return;e.endOffsetSubtitles=Math.max(0,t),this.tracksBuffered.forEach((e=>{for(let n=0;nnew Wt(t))):(this.tracksBuffered=[],this.levels=e.map((t=>{const e=new Wt(t);return this.tracksBuffered[e.id]=[],e})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,g),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(t,e){var n;if(this.currentTrackId=e.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==ci&&this.setInterval(500)}onSubtitleTrackLoaded(t,e){var n;const{currentTrackId:i,levels:r}=this,{details:s,id:a}=e;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const o=r[a];if(a>=r.length||!o)return;this.log(`Subtitle track ${a} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let u=0;if(s.live||null!=(n=o.details)&&n.live){const t=this.mainDetails;if(s.deltaUpdateFailed||!t)return;const e=t.fragments[0];var h;if(o.details)u=this.alignPlaylists(s,o.details,null==(h=this.levelLastLoaded)?void 0:h.details),0===u&&e&&(u=e.start,$n(s,u));else s.hasProgramDateTime&&t.hasProgramDateTime?(ui(s,t),u=s.fragmentStart):e&&(u=e.start,$n(s,u))}if(o.details=s,this.levelLastLoaded=o,a===i&&(this.hls.trigger(l.SUBTITLE_TRACK_UPDATED,{details:s,id:a,groupId:e.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===di)){ue(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)}}_handleFragmentLoadComplete(t){const{frag:e,payload:n}=t,i=e.decryptdata,r=this.hls;if(!this.fragContextChanged(e)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&on(i.method)){const t=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,ln(i.method)).catch((t=>{throw r.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((n=>{const i=performance.now();r.trigger(l.FRAG_DECRYPTED,{frag:e,payload:n,stats:{tstart:t,tdecrypt:i}})})).catch((t=>{this.warn(`${t.name}: ${t.message}`),this.state=di}))}}doTick(){if(this.media){if(this.state===di){const{currentTrackId:t,levels:e}=this,n=null==e?void 0:e[t];if(!n||!e.length||!n.details)return;if(this.waitForLive(n))return;const{config:i}=this,r=this.getLoadPosition(),s=Ke.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:a,len:o}=s,l=n.details;if(o>this.hls.maxBufferLength+l.levelTargetDuration)return;const u=l.fragments,h=u.length,c=l.edge;let d=null;const f=this.fragPrevious;if(ac-t?0:t;d=ue(f,u,Math.max(u[0].start,a),e),!d&&f&&f.startthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const e=Xs(this.media.textTracks);for(let n=0;n-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVEL_LOADING,this.onLevelLoading,this),t.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(l.ERROR,this.onError,this)}onMediaAttached(t,e){this.media=e.media,this.media&&(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))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,e){const n=this.media;if(!n)return;const i=!!e.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;Xs(n.textTracks).forEach((t=>{Ys(t)}))}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.subtitleTracks}onSubtitleTrackLoaded(t,e){const{id:n,groupId:i,details:r}=e,s=this.tracksInGroup[n];if(!s||s.groupId!==i)return void this.warn(`Subtitle track with id:${n} and group:${i} not found in active group ${null==s?void 0:s.groupId}`);const a=s.details;s.details=e.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,e,a)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const n=e.subtitleGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((t=>-1===(null==i?void 0:i.indexOf(t))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const t=this.tracks.filter((t=>!n||-1!==n.indexOf(t.groupId)));if(t.length)this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),t.forEach(((t,e)=>{t.id=e}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=t;const e=this.hls.config.subtitlePreference;if(!r&&e){this.selectDefaultTrack=!1;const n=ie(e,t);if(n>-1)r=t[n];else{const t=ie(e,this.tracks);r=this.tracks[t]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const s={subtitleTracks:t};this.log(`Updating subtitle tracks, ${t.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(l.SUBTITLE_TRACKS_UPDATED,s),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}}findTrackId(t){const e=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i-1){const t=this.tracksInGroup[i];return this.setSubtitleTrack(i),t}if(n)return null;{const n=ie(t,e);if(n>-1)return e[n]}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,e){super.loadingPlaylist(t,e);const n=t.id,i=t.groupId,r=this.getUrlWithDirectives(t.url,e),s=t.details,a=null==s?void 0:s.age;this.log(`Loading subtitle ${n} "${t.name}" lang:${t.lang} group:${i}${void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${r}`),this.hls.trigger(l.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:e||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const e=Xs(t.textTracks),n=this.currentTrack;let i;if(n&&(i=e.filter((t=>is(n,t)))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(e).forEach((t=>{"disabled"!==t.mode&&t!==i&&(t.mode="disabled")})),i){const t=this.subtitleDisplay?"showing":"hidden";i.mode!==t&&(i.mode=t)}}setSubtitleTrack(t){const e=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=t);if(t<-1||t>=e.length||!i(t))return void this.warn(`Invalid subtitle track id: ${t}`);this.selectDefaultTrack=!1;const n=this.currentTrack,r=e[t]||null;if(this.trackId=t,this.currentTrack=r,this.toggleTrackModes(),!r)return void this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:t});const s=!!r.details&&!r.details.live;if(t===this.trackId&&r===n&&s)return;this.log(`Switching to subtitle-track ${t}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:a,groupId:o="",name:u,type:h,url:c}=r;this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:u,type:h,url:c});const d=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(d)}},timelineController:class{constructor(t){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.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.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}},t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(l.FRAG_LOADING,this.onFragLoading,this),t.on(l.FRAG_LOADED,this.onFragLoaded,this),t.on(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(l.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(l.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(l.FRAG_LOADING,this.onFragLoading,this),t.off(l.FRAG_LOADED,this.onFragLoaded,this),t.off(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(l.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(l.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new eo(this,"textTrack1"),e=new eo(this,"textTrack2"),n=new eo(this,"textTrack3"),i=new eo(this,"textTrack4");this.cea608Parser1=new Da(1,t,e),this.cea608Parser2=new Da(3,n,i)}addCues(t,e,n,i,r){let s=!1;for(let t=r.length;t--;){const i=r[t],l=(a=i[0],o=i[1],u=e,h=n,Math.min(o,h)-Math.max(a,u));if(l>=0&&(i[0]=Math.min(i[0],e),i[1]=Math.max(i[1],n),s=!0,l/(n-e)>.5))return}var a,o,u,h;if(s||r.push([e,n]),this.config.renderTextTracksNatively){const r=this.captionsTracks[t];this.Cues.newCue(r,e,n,i)}else{const r=this.Cues.newCue(null,e,n,i);this.hls.trigger(l.CUES_PARSED,{type:"captions",cues:r,track:t})}}onInitPtsFound(t,{frag:e,id:n,initPTS:i,timescale:r}){const{unparsedVttFrags:s}=this;n===f&&(this.initPTS[e.cc]={baseTime:i,timescale:r}),s.length&&(this.unparsedVttFrags=[],s.forEach((t=>{this.onFragLoaded(l.FRAG_LOADED,t)})))}getExistingTrack(t,e){const{media:n}=this;if(n)for(let i=0;i{Ys(i[t]),delete i[t]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const e=t.textTracks;if(e)for(let t=0;tt.textCodec===Ha));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(es(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const t=this.media,e=t?Xs(t.textTracks):null;if(this.tracks.forEach(((t,n)=>{let i;if(e){let n=null;for(let i=0;inull!==t)).map((t=>t.label));t.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${t.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const t=this.tracks.map((t=>({label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t})));this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:t})}}}onManifestLoaded(t,e){this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((t=>{const e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(!e)return;const n=`textTrack${e[1]}`,i=this.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}))}closedCaptionsForLevel(t){const e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,e){if(this.enabled&&e.frag.type===f){var n,i;const{cea608Parser1:t,cea608Parser2:r,lastSn:s}=this,{cc:a,sn:o}=e.frag,l=null!=(n=null==(i=e.part)?void 0:i.index)?n:-1;t&&r&&(o!==s+1||o===s&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(t.reset(),r.reset()),this.lastCc=a,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(t,e){const{frag:n,payload:i}=e;if(n.type===g)if(i.byteLength){const t=n.decryptdata,r="stats"in e;if(null==t||!t.encrypted||r){const t=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),t&&t.textCodec===Ha?this._parseIMSC1(n,i):this._parseVTTs(e)}}else this.hls.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,e){const n=this.hls;Ka(e,this.initPTS[t.cc],(e=>{this._appendCues(e,t.level),n.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(e=>{n.logger.log(`Failed to parse IMSC1: ${e}`),n.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))}_parseVTTs(t){var e;const{frag:n,payload:i}=t,{initPTS:r,unparsedVttFrags:s}=this,a=r.length-1;if(!r[n.cc]&&-1===a)return void s.push(t);const o=this.hls;qa(null!=(e=n.initSegment)&&e.data?gt(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(t=>{this._appendCues(t,n.level),o.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(e=>{const r="Missing initPTS for VTT MPEGTS"===e.message;r?s.push(t):this._fallbackToIMSC1(n,i),o.logger.log(`Failed to parse VTT cue: ${e}`),r&&a>n.cc||o.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:e})}))}_fallbackToIMSC1(t,e){const n=this.tracks[t.level];n.textCodec||Ka(e,this.initPTS[t.cc],(()=>{n.textCodec=Ha,this._parseIMSC1(t,e)}),(()=>{n.textCodec="wvtt"}))}_appendCues(t,e){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[e];if(!n||"disabled"===n.mode)return;t.forEach((t=>Vs(n,t)))}else{const i=this.tracks[e];if(!i)return;const r=i.default?"default":"subtitles"+e;n.trigger(l.CUES_PARSED,{type:"subtitles",cues:t,track:r})}}onFragDecrypted(t,e){const{frag:n}=e;n.type===g&&this.onFragLoaded(l.FRAG_LOADED,e)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,e){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:i}=e;if(n.type!==f||"NONE"!==this.closedCaptionsForLevel(n))for(let t=0;tKs(t[i],e,n)))}if(this.config.renderTextTracksNatively&&0===e&&void 0!==i){const{textTracks:t}=this;Object.keys(t).forEach((n=>Ks(t[n],e,i)))}}}extractCea608Data(t){const e=[[],[]],n=31&t[0];let i=2;for(let r=0;r=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,e){var n;const i=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(e&&(null==i?void 0:i.cc)===e.cc)return;const r=(i||t).cc,s=de(this.getLevelDetails(),r,this.getLoadPosition());s&&(this.log(`Waiting fragment cc (${null==e?void 0:e.cc}) cancelled because video is at cc ${t.cc}`),this.startFragRequested=!1,this.nextLoadPosition=s.start,this.resetLoadingState(),this.state===di&&this.doTickIdle())}startLoad(t,e){if(!this.levels)return this.startPosition=t,void(this.state=ci);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===t?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),t=n,this.state=di):this.state=mi,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=e?-1:t,this.tick()}doTick(){switch(this.state){case di:this.doTickIdle();break;case mi:{const{levels:t,trackId:e}=this,n=null==t?void 0:t[e],i=null==n?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=wi}break}case gi:{var t;const e=performance.now(),n=this.retryDate;if(!n||e>=n||null!=(t=this.media)&&t.seeking){const{levels:t,trackId:e}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==t?void 0:t[e])||null),this.state=di}break}case wi:{const t=this.waitingData;if(t){const{frag:e,part:n,cache:i,complete:r}=t,s=this.mainAnchor;if(void 0!==this.initPTS[e.cc]){this.waitingData=null,this.state=pi;const t={frag:e,part:n,payload:i.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(t),r&&super._handleFragmentLoadComplete(t)}else s&&s.cc!==t.frag.cc&&this.syncWithAnchor(s,t.frag)}else this.state=di}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:e,levels:n,media:i,trackId:r}=this,s=e.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||null==n||!n[r])return;const a=n[r],o=a.details;if(!o||this.waitForLive(a)||this.waitForCdnTuneIn(o))return this.state=mi,void(this.startFragRequested=!1);const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,q,p));const h=this.getFwdBufferInfo(u,p);if(null===h)return;if(!this.switchingTrack&&this._streamEnded(h,o))return e.trigger(l.BUFFER_EOS,{type:"audio"}),void(this.state=Ai);const c=h.len,d=e.maxBufferLength,g=o.fragments,m=g[0].start,v=this.getLoadPosition(),y=this.flushing?v:h.end;if(this.switchingTrack&&i){const t=v;o.PTSKnown&&tm||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=m+.05)}if(c>=d&&!this.switchingTrack&&yb.end){const t=this.fragmentTracker.getFragAtPos(y,f);t&&t.end>b.end&&(b=t,this.mainFragLoading={frag:t,targetBufferTime:null})}if(A.start>b.end)return}this.loadFragment(A,a,y)}onMediaDetaching(t,e){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,e)}onAudioTracksUpdated(t,{audioTracks:e}){this.resetTransmuxer(),this.levels=e.map((t=>new Wt(t)))}onAudioTrackSwitching(t,e){const n=!!e.url;this.trackId=e.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=e,this.flushAudioIfNeeded(e),this.state!==ci&&(this.setInterval(100),this.state=di,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=e,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,e){this.mainDetails=e.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(l.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(t,e){var n;const{levels:i}=this,{details:r,id:s,groupId:a,track:o}=e;if(!i)return void this.warn(`Audio tracks reset while loading track ${s} "${o.name}" of "${a}"`);const u=this.mainDetails;if(!u||r.endCC>u.endCC||u.expired)return this.cachedTrackLoadedData=e,void(this.state!==ci&&(this.state=mi));this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${o.name}" of "${a}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const h=i[s];let c=0;if(r.live||null!=(n=h.details)&&n.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;var d;if(h.details)c=this.alignPlaylists(r,h.details,null==(d=this.levelLastLoaded)?void 0:d.details);r.alignedSliding||(li(r,u),r.alignedSliding||ui(r,u),c=r.fragmentStart)}h.details=r,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(u,c),this.hls.trigger(l.AUDIO_TRACK_UPDATED,{details:r,id:s,groupId:e.groupId}),this.state!==mi||this.waitForCdnTuneIn(r)||(this.state=di),this.tick()}_handleFragmentLoadProgress(t){var e;const n=t.frag,{part:i,payload:r}=t,{config:s,trackId:a,levels:o}=this;if(!o)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=o[a];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const h=s.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let c=this.transmuxer;c||(c=this.transmuxer=new $r(this.hls,p,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const d=this.initPTS[n.cc],f=null==(e=n.initSegment)?void 0:e.data;if(void 0!==d){const t=!1,e=i?i.index:-1,s=-1!==e,a=new Ve(n.level,n.sn,n.stats.chunkCount,r.byteLength,e,s);c.push(r,f,h,"",n,i,u.totalduration,t,a,d)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${a}`);const{cache:t}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new Ti,complete:!1};t.push(new Uint8Array(r)),this.state!==ci&&(this.state=wi)}}_handleFragmentLoadComplete(t){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,e){this.bufferFlushed=this.flushing=!1;const n=e.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(t,e){!this.audioOnly&&e.frag.type===f&&Y(e.frag)&&(this.mainFragLoading=e,this.state===di&&this.tick())}onFragBuffered(t,e){const{frag:n,part:i}=e;if(n.type===p)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(Y(n)){this.fragPrevious=n;const t=this.switchingTrack;t&&(this.bufferedTrack=t,this.switchingTrack=null,this.hls.trigger(l.AUDIO_TRACK_SWITCHED,w({},t)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}else this.audioOnly||n.type!==f||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(t,e){var n;if(e.fatal)this.state=bi;else switch(e.details){case o.FRAG_GAP:case o.FRAG_PARSING_ERROR:case o.FRAG_DECRYPT_ERROR:case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p,e);break;case o.AUDIO_TRACK_LOAD_ERROR:case o.AUDIO_TRACK_LOAD_TIMEOUT:case o.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==mi||(null==(n=e.context)?void 0:n.type)!==c||(this.state=di);break;case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:if("audio"!==e.parent)return;this.resetLoadingState();break;case o.BUFFER_FULL_ERROR:if("audio"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case o.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}onBufferFlushing(t,{type:e}){e!==H&&(this.flushing=!0)}onBufferFlushed(t,{type:e}){if(e!==H){this.flushing=!1,this.bufferFlushed=!0,this.state===Ai&&(this.state=di);const t=this.mediaBuffer||this.media;t&&(this.afterBufferFlushed(t,e,p),this.tick())}}_handleTransmuxComplete(t){var e;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:s}=t,a=this.getCurrentContext(s);if(!a)return void this.resetWhenMissingContext(s);const{frag:o,part:u,level:h}=a,{details:c}=h,{audio:d,text:f,id3:p,initSegment:g}=r;if(!this.fragContextChanged(o)&&c){if(this.state=vi,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=g&&g.tracks){const t=o.initSegment||o;this._bufferInitSegment(h,g.tracks,t,s),i.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:n,tracks:g.tracks})}if(d){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=d;u&&(u.elementaryStreams[q]={startPTS:t,endPTS:e,startDTS:n,endDTS:i}),o.setElementaryStreamInfo(q,t,e,n,i),this.bufferFragmentData(d,o,u,s)}if(null!=p&&null!=(e=p.samples)&&e.length){const t=A({id:n,frag:o,details:c},p);i.trigger(l.FRAG_PARSING_METADATA,t)}if(f){const t=A({id:n,frag:o,details:c},f);i.trigger(l.FRAG_PARSING_USERDATA,t)}}else this.fragmentTracker.removeFragment(o)}_bufferInitSegment(t,e,n,i){if(this.state!==vi)return;if(e.video&&delete e.video,e.audiovideo&&delete e.audiovideo,!e.audio)return;const r=e.audio;r.id=p;const s=t.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${s}/${r.codec}]`),s&&1===s.split(",").length&&(r.levelCodec=s),this.hls.trigger(l.BUFFER_CODECS,e);const a=r.initSegment;if(null!=a&&a.byteLength){const t={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:a};this.hls.trigger(l.BUFFER_APPENDING,t)}this.tickImmediate()}loadFragment(t,e,n){const i=this.fragmentTracker.getState(t);var r;if(this.switchingTrack||i===Ce||i===Se)if(Y(t))if(null!=(r=e.details)&&r.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=wi;const n=this.mainDetails;n&&n.fragmentStart!==e.details.fragmentStart&&ui(e.details,n)}else super.loadFragment(t,e,n);else this._loadInitSegment(t,e);else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:e,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:a}=this.bufferedTrack;re({name:e,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:a},t,se)||(oe(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:e}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,e.trigger(l.AUDIO_TRACK_SWITCHED,w({},t))}},audioTrackController:class extends ts{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVEL_LOADING,this.onLevelLoading,this),t.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(l.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.audioTracks||[]}onAudioTrackLoaded(t,e){const{id:n,groupId:i,details:r}=e,s=this.tracksInGroup[n];if(!s||s.groupId!==i)return void this.warn(`Audio track with id:${n} and group:${i} not found in active group ${null==s?void 0:s.groupId}`);const a=s.details;s.details=e.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,e,a)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const n=e.audioGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((t=>-1===(null==i?void 0:i.indexOf(t))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const t=this.tracks.filter((t=>!n||-1!==n.indexOf(t.groupId)));if(t.length)this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),t.forEach(((t,e)=>{t.id=e}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=t;const e=this.hls.config.audioPreference;if(!r&&e){const n=ie(e,t,se);if(n>-1)r=t[n];else{const t=ie(e,this.tracks);r=this.tracks[t]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const u={audioTracks:t};this.log(`Updating audio tracks, ${t.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(l.AUDIO_TRACKS_UPDATED,u);const h=this.trackId;if(-1!==i&&-1===h)this.setAudioTrack(i);else if(t.length&&-1===h){var s;const e=new Error(`No audio track selected for current audio group-ID(s): ${null==(s=this.groupIds)?void 0:s.join(",")} track count: ${t.length}`);this.warn(e.message),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:e})}}}onError(t,e){!e.fatal&&e.context&&(e.context.type!==c||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||this.checkRetry(e))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const e=this.hls;if(e.config.audioPreference=t,t){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const i=this.currentTrack;if(i&&re(t,i,se))return i;const r=ie(t,this.tracksInGroup,se);if(r>-1){const t=this.tracksInGroup[r];return this.setAudioTrack(r),t}if(i){let i=e.loadLevel;-1===i&&(i=e.firstAutoLevel);const r=function(t,e,n,i,r){const s=e[i],a=e.reduce(((t,e,n)=>{const i=e.uri;return(t[i]||(t[i]=[])).push(n),t}),{})[s.uri];a.length>1&&(i=Math.max.apply(Math,a));const o=s.videoRange,l=s.frameRate,u=s.codecSet.substring(0,4),h=ae(e,i,(e=>{if(e.videoRange!==o||e.frameRate!==l||e.codecSet.substring(0,4)!==u)return!1;const i=e.audioGroups,s=n.filter((t=>!i||-1!==i.indexOf(t.groupId)));return ie(t,s,r)>-1}));return h>-1?h:ae(e,i,(e=>{const i=e.audioGroups,s=n.filter((t=>!i||-1!==i.indexOf(t.groupId)));return ie(t,s,r)>-1}))}(t,e.levels,n,i,se);if(-1===r)return null;e.nextLoadLevel=r}if(t.channels||t.audioCodec){const e=ie(t,n);if(e>-1)return n[e]}}}return null}setAudioTrack(t){const e=this.tracksInGroup;if(t<0||t>=e.length)return void this.warn(`Invalid audio track id: ${t}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=e[t],r=i.details&&!i.details.live;if(t===this.trackId&&i===n&&r)return;if(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(l.AUDIO_TRACK_SWITCHING,w({},i)),r)return;const s=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(s)}findTrackId(t){const e=this.tracksInGroup;for(let n=0;n{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=t=>{try{this.apply(t,{ot:cs.MANIFEST,su:!this.initialized})}catch(t){this.hls.logger.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=t=>{try{const{frag:e,part:n}=t,i=this.hls.levels[e.level],r=this.getObjectType(e),s={d:1e3*(n||e).duration,ot:r};r!==cs.VIDEO&&r!==cs.AUDIO&&r!=cs.MUXED||(s.br=i.bitrate/1e3,s.tb=this.getTopBandwidth(r)/1e3,s.bl=this.getBufferLength(r));const a=n?this.getNextPart(n):this.getNextFrag(e);null!=a&&a.url&&a.url!==e.url&&(s.nor=a.url),this.apply(t,s)}catch(t){this.hls.logger.warn("Could not generate segment CMCD data.",t)}},this.hls=t;const e=this.config=t.config,{cmcd:n}=e;null!=n&&(e.pLoader=this.createPlaylistLoader(),e.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||t.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHED,this.onMediaDetached,this),t.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHED,this.onMediaDetached,this),t.off(l.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,e){var n,i;this.audioBuffer=null==(n=e.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer}createData(){var t;return{v:1,sf:ds.HLS,sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,e={}){A(e,this.createData());const n=e.ot===cs.INIT||e.ot===cs.VIDEO||e.ot===cs.MUXED;this.starved&&n&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering);const{includeKeys:i}=this;i&&(e=Object.keys(e).reduce(((t,n)=>(i.includes(n)&&(t[n]=e[n]),t)),{}));const r={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),Ns(t.headers,e,r)):t.url=_s(t.url,e,r)}getNextFrag(t){var e;const n=null==(e=this.hls.levels[t.level])?void 0:e.details;if(n){const e=t.sn-n.startSN;return n.fragments[e+1]}}getNextPart(t){var e,n;const{index:i,fragment:r}=t,s=null==(e=this.hls.levels[r.level])||null==(n=e.details)?void 0:n.partList;if(s){const{sn:t}=r;for(let e=s.length-1;e>=0;e--){const n=s[e];if(n.index===i&&n.fragment.sn===t)return s[e+1]}}}getObjectType(t){const{type:e}=t;return"subtitle"===e?cs.TIMED_TEXT:"initSegment"===t.sn?cs.INIT:"audio"===e?cs.AUDIO:"main"===e?this.hls.audioTracks.length?cs.VIDEO:cs.MUXED:void 0}getTopBandwidth(t){let e,n=0;const i=this.hls;if(t===cs.AUDIO)e=i.audioTracks;else{const t=i.maxAutoLevel,n=t>-1?t+1:i.levels.length;e=i.levels.slice(0,n)}return e.forEach((t=>{t.bitrate>n&&(n=t.bitrate)})),n>0?n:NaN}getBufferLength(t){const e=this.media,n=t===cs.AUDIO?this.audioBuffer:this.videoBuffer;if(!n||!e)return NaN;return 1e3*Ke.bufferInfo(n,e.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:t}=this.config,e=this.applyPlaylistData,n=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new n(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,n,i){e(t),this.loader.load(t,n,i)}}}createFragmentLoader(){const{fLoader:t}=this.config,e=this.applyFragmentData,n=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new n(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,n,i){e(t),this.loader.load(t,n,i)}}}},contentSteeringController:class extends E{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((t,e)=>(-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t)),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=1e3*this.timeToLoad-(performance.now()-this.updated);if(t>0)return void this.scheduleRefresh(this.uri,t)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const e=this.levels;e&&(this.levels=e.filter((e=>e!==t)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,e){const{contentSteering:n}=e;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks}onError(t,e){const{errorAction:n}=e;if((null==n?void 0:n.action)===Ae&&n.flags===xe){const t=this.levels;let i=this._pathwayPriority,r=this.pathwayId;if(e.context){const{groupId:n,pathwayId:i,type:s}=e.context;n&&t?r=this.getPathwayForGroupId(n,s,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&t&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==r),n.resolved||this.warn(`Could not resolve ${e.details} ("${e.error.message}") with content-steering for Pathway: ${r} levels: ${t?t.length:t} priorities: ${$t(i)} penalized: ${$t(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){const n=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),e=this.getLevelsForPathway(n),this.pathwayId=n}return e.length!==t.length&&this.log(`Found ${e.length}/${t.length} levels in Pathway "${this.pathwayId}"`),e}getLevelsForPathway(t){return null===this.levels?[]:this.levels.filter((e=>t===e.pathwayId))}updatePathwayPriority(t){let e;this._pathwayPriority=t;const n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach((t=>{i-n[t]>3e5&&delete n[t]}));for(let i=0;i0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,ri(e),this.hls.trigger(l.LEVELS_UPDATED,{levels:e});const t=this.hls.levels[s];a&&t&&this.levels&&(t.attrs["STABLE-VARIANT-ID"]!==a.attrs["STABLE-VARIANT-ID"]&&t.bitrate!==a.bitrate&&this.log(`Unstable Pathways change from bitrate ${a.bitrate} to ${t.bitrate}`),this.hls.nextLoadLevel=s);break}}}getPathwayForGroupId(t,e,n){const i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n{const{ID:r,"BASE-ID":s,"URI-REPLACEMENT":a}=t;if(e.some((t=>t.pathwayId===r)))return;const o=this.getLevelsForPathway(s).map((t=>{const e=new nn(t.attrs);e["PATHWAY-ID"]=r;const s=e.AUDIO&&`${e.AUDIO}_clone_${r}`,o=e.SUBTITLES&&`${e.SUBTITLES}_clone_${r}`;s&&(n[e.AUDIO]=s,e.AUDIO=s),o&&(i[e.SUBTITLES]=o,e.SUBTITLES=o);const l=zs(t.uri,e["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",a),u=new Wt({attrs:e,audioCodec:t.audioCodec,bitrate:t.bitrate,height:t.height,name:t.name,url:l,videoCodec:t.videoCodec,width:t.width});if(t.audioGroups)for(let e=1;e{this.log(`Loaded steering manifest: "${i}"`);const s=t.data;if(1!==(null==s?void 0:s.VERSION))return void this.log(`Steering VERSION ${s.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=s.TTL;const{"RELOAD-URI":a,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":u}=s;if(a)try{this.uri=new self.URL(a,i).href}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${a}`)}this.scheduleRefresh(this.uri||n.url),o&&this.clonePathways(o);const h={steeringManifest:s,url:i.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,h),u&&this.updatePathwayPriority(u)},onError:(t,e,n,i)=>{if(this.log(`Error loading steering manifest: ${t.code} ${t.text} (${e.url})`),this.stopLoad(),410===t.code)return this.enabled=!1,void this.log(`Steering manifest ${e.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==t.code)this.scheduleRefresh(this.uri||e.url,r);else{const t=this.loader;if("function"==typeof(null==t?void 0:t.getResponseHeader)){const e=t.getResponseHeader("Retry-After");e&&(r=1e3*parseFloat(e))}this.log(`Steering manifest ${e.url} rate limited`)}},onTimeout:(t,e,n)=>{this.log(`Timeout loading steering manifest (${e.url})`),this.scheduleRefresh(this.uri||e.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,o,u)}scheduleRefresh(t,e=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var e;const n=null==(e=this.hls)?void 0:e.media;!n||n.ended?this.scheduleRefresh(t,1e3*this.timeToLoad):this.loadSteeringManifest(t)}),e)}},interstitialsController:class extends E{constructor(t,e){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const t=this.currentTime;if(void 0===t||this.playbackDisabled)return;const e=t-this.timelinePos;if(Math.abs(e)<1/7056e5)return;const n=e<=-.01;this.timelinePos=t,this.bufferedPos=t;const i=this.playingItem;if(!i)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(t,t-e)&&this.updateSchedule()}if(this.checkBuffer(),n&&t=i.end){var r;const t=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(i)&&null!=(r=this.media)&&r.paused&&(this.shouldPlay=!1),!n){const e=this.findItemIndex(i);if(t>e){const n=this.schedule.findJumpRestrictedIndex(e+1,t);if(n>e)return void this.setSchedulePosition(n)}}return void this.setSchedulePosition(t)}const s=this.playingAsset;if(!s){if(this.playingLastItem&&this.isInterstitial(i)){const e=i.event.assetList[0];e&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(t,e))}return}const a=s.timelineStart,o=s.duration||0;(n&&t=a+o)&&this.setScheduleToAssetAtTime(t,s)},this.onTimeupdate=()=>{const t=this.currentTime;if(void 0===t||this.playbackDisabled)return;if(!(t>this.timelinePos))return;this.timelinePos=t,t>this.bufferedPos&&this.checkBuffer();const e=this.playingItem;if(!e||this.playingLastItem)return;if(t>=e.end){this.timelinePos=e.end;const t=this.findItemIndex(e);this.setSchedulePosition(t+1)}const n=this.playingAsset;if(!n)return;t>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(t,n)},this.onScheduleUpdate=(t,e)=>{const n=this.schedule,i=this.playingItem,r=n.events||[],s=n.items||[],a=n.durations,o=t.map((t=>t.identifier)),u=!(!r.length&&!o.length);(u||e)&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r}\nSchedule: ${s.map((t=>oa(t)))} pos: ${this.timelinePos}`),o.length&&this.log(`Removed events ${o}`),this.playerQueue.forEach((t=>{if(t.interstitial.appendInPlace){const e=t.assetItem.timelineStart,n=t.timelineOffset-e;if(n)try{t.timelineOffset=e}catch(i){Math.abs(n)>Zs&&this.warn(`${i} ("${t.assetId}" ${t.timelineOffset}->${e})`)}}}));let h=null;if(i){const t=this.updateItem(i,this.timelinePos);this.itemsMatch(i,t)&&(this.playingItem=t,this.waitingItem=this.endedItem=null,h=()=>this.trimInPlace(t,i))}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const c=this.bufferingItem;if(c){const t=this.updateItem(c,this.bufferedPos);this.itemsMatch(c,t)?(this.bufferingItem=t,h||(h=()=>this.trimInPlace(t,c))):c.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(c.event,null))}if(t.forEach((t=>{t.assetList.forEach((t=>{this.clearAssetPlayer(t.identifier,null)}))})),u||e){if(this.hls.trigger(l.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:s.slice(0),durations:a,removedIds:o}),this.isInterstitial(i)&&o.includes(i.event.identifier))return this.warn(`Interstitial "${i.event.identifier}" removed while playing`),void this.primaryFallback(i.event);h&&h(),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=e,this.assetListLoader=new la(t),this.schedule=new aa(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(l.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(l.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(l.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(l.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(l.BUFFER_APPENDED,this.onBufferAppended,this),t.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(l.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(l.MEDIA_ENDED,this.onMediaEnded,this),t.on(l.ERROR,this.onError,this),t.on(l.DESTROYING,this.onDestroying,this)}unregisterListeners(){const t=this.hls;t&&(t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(l.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(l.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(l.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(l.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(l.BUFFER_CODECS,this.onBufferCodecs,this),t.off(l.BUFFER_APPENDED,this.onBufferAppended,this),t.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(l.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(l.MEDIA_ENDED,this.onMediaEnded,this),t.off(l.ERROR,this.onError,this),t.off(l.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;null==(t=this.getBufferingPlayer())||t.resumeBuffering()}pauseBuffering(){var t;null==(t=this.getBufferingPlayer())||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){Gs(t,"play",this.onPlay),Gs(t,"pause",this.onPause),Gs(t,"seeking",this.onSeeking),Gs(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,e){const n=this.media=e.media;js(n,"seeking",this.onSeeking),js(n,"timeupdate",this.onTimeupdate),js(n,"play",this.onPlay),js(n,"pause",this.onPause)}onMediaAttached(t,e){const n=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!i){this.clearScheduleState();const t=this.findItemIndex(n);this.setSchedulePosition(t)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,e){const n=!!e.transferMedia,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){const t=this.getBufferingPlayer();t&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,t.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const t=this,e=()=>t.bufferingItem||t.waitingItem,n=e=>e?t.getAssetPlayer(e.identifier):e,i=(e,i,r,a,o)=>{if(e){let l=e[i].start;const u=e.event;if(u){if("playout"===i||u.timelineOccupancy!==Js.Point){const t=n(r);(null==t?void 0:t.interstitial)===u&&(l+=t.assetItem.startOffset+t[o])}}else{l+=("bufferedPos"===a?s():t[a])-e.start}return l}return 0},r=(e,n)=>{if(0!==e&&"primary"!==n&&t.schedule.length){var i;const r=t.schedule.findItemIndexAtTime(e),s=null==(i=t.schedule.items)?void 0:i[r];if(s){return e+(s[n].start-s.start)}}return e},s=()=>{const e=t.bufferedPos;return e===Number.MAX_VALUE?a("primary"):Math.max(e,0)},a=e=>{var n;return null!=(n=t.primaryDetails)&&n.live?t.primaryDetails.edge:t.schedule.durations[e]},o=(e,r)=>{var s,a;const o=t.effectivePlayingItem;if(null!=o&&null!=(s=o.event)&&s.restrictions.skip)return;t.log(`seek to ${e} "${r}"`);const l=t.effectivePlayingItem,u=t.schedule.findItemIndexAtTime(e,r),h=null==(a=t.schedule.items)?void 0:a[u],c=t.getBufferingPlayer(),d=null==c?void 0:c.interstitial,f=null==d?void 0:d.appendInPlace,p=l&&t.itemsMatch(l,h);if(l&&(f||p)){const s=n(t.playingAsset),a=(null==s?void 0:s.media)||t.primaryMedia;if(a){const n="primary"===r?a.currentTime:i(l,r,t.playingAsset,"timelinePos","currentTime"),o=e-n,u=(f?n:a.currentTime)+o;if(u>=0&&(!s||f||u<=s.duration))return void(a.currentTime=u)}}if(h){let n=e;if("primary"!==r){const t=e-h[r].start;n=h.start+t}const i=!t.isInterstitial(h);if(t.isInterstitial(l)&&!l.event.appendInPlace||!i&&!h.event.appendInPlace){if(l){const s=t.findItemIndex(l);if(u>s){const e=t.schedule.findJumpRestrictedIndex(s+1,u);if(e>s)return void t.setSchedulePosition(e)}let a=0;if(i)t.timelinePos=n,t.checkBuffer();else{var g;const t=null==h||null==(g=h.event)?void 0:g.assetList;if(t){const n=e-(h[r]||h).start;for(let e=t.length;e--;){const i=t[e];if(i.duration&&n>=i.startOffset&&n{const n=t.effectivePlayingItem;if(t.isInterstitial(n))return n;const i=e();return t.isInterstitial(i)?i:null},u={get currentTime(){const e=l(),n=t.effectivePlayingItem;return n&&n===e?i(n,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(e){const n=l(),i=t.effectivePlayingItem;i&&i===n&&o(e+i.playout.start,"playout")},get duration(){const t=l();return t?t.playout.end-t.playout.start:0},get assetPlayers(){var e;const n=null==(e=l())?void 0:e.event.assetList;return n?n.map((e=>t.getAssetPlayer(e.identifier))):[]},get playingIndex(){var e;const n=null==(e=l())?void 0:e.event;return n&&t.effectivePlayingAsset?n.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return l()}};this.manager={get events(){var e,n;return(null==(e=t.schedule)||null==(n=e.events)?void 0:n.slice(0))||[]},get schedule(){var e,n;return(null==(e=t.schedule)||null==(n=e.items)?void 0:n.slice(0))||[]},get interstitialPlayer(){return l()?u:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return e()},get bufferingIndex(){const n=e();return t.findItemIndex(n)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const e=t.effectivePlayingItem;return t.findItemIndex(e)},primary:{get bufferedEnd(){return s()},get currentTime(){const e=t.timelinePos;return e>0?e:0},set currentTime(t){o(t,"primary")},get duration(){return a("primary")},get seekableStart(){var e;return(null==(e=t.primaryDetails)?void 0:e.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(e(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(t){o(t,"integrated")},get duration(){return a("integrated")},get seekableStart(){var e;return r((null==(e=t.primaryDetails)?void 0:e.fragmentStart)||0,"integrated")}},skip:()=>{const e=t.effectivePlayingItem,n=null==e?void 0:e.event;if(n&&!n.restrictions.skip){const i=t.findItemIndex(e);if(n.appendInPlace){const t=e.playout.start+e.event.duration;o(t+.001,"playout")}else t.advanceAfterAssetEnded(n,i,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const e=this.playingItem,n=null==(t=this.schedule)?void 0:t.items;return!!(this.playbackStarted&&e&&n)&&this.findItemIndex(e)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var t,e,n;if(null===this.mediaSelection)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let s=this.media;!s&&null!=(t=this.bufferingItem)&&null!=(e=t.event)&&e.appendInPlace&&(s=this.primaryMedia);const a=null==(n=s)?void 0:n.currentTime;return void 0!==a&&i(a)?a:void 0}get primaryMedia(){var t;return this.media||(null==(t=this.detachedData)?void 0:t.media)||null}isInterstitial(t){return!(null==t||!t.event)}retreiveMediaSource(t,e){const n=this.getAssetPlayer(t);n&&this.transferMediaFromPlayer(n,e)}transferMediaFromPlayer(t,e){const n=t.interstitial.appendInPlace,i=t.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!e||this.isInterstitial(e)&&!e.event.appendInPlace)&&e&&i)return void(this.detachedData={media:i});const n=t.transferMedia();this.log(`transfer MediaSource from ${t} ${$t(n)}`),this.detachedData=n}else e&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(t,e){var n,i;if(t.media===e)return;let r=null;const s=this.hls,a=t!==s,o=a&&t.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let u;if(s.media)o&&(r=s.transferMedia(),this.detachedData=r),u="Primary";else if(l){const t=this.getBufferingPlayer();t?(r=t.transferMedia(),u=`${t}`):u="detached MediaSource"}else u="detached media";if(!r)if(l)r=this.detachedData,this.log(`using detachedData: MediaSource ${$t(r)}`);else if(!this.detachedData||s.media===e){const t=this.playerQueue;t.length>1&&t.forEach((t=>{if(a&&t.interstitial.appendInPlace!==o){const e=t.interstitial;this.clearInterstitial(t.interstitial,null),e.appendInPlace=!1,e.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${e}`)}})),this.hls.detachMedia(),this.detachedData={media:e}}const h=r&&"mediaSource"in r&&"closed"!==(null==(i=r.mediaSource)?void 0:i.readyState),c=h&&r?r:e;if(this.log(`${h?"transfering MediaSource":"attaching media"} to ${a?t:"Primary"} from ${u}`),c===r){const e=a&&t.assetId===this.schedule.assetIdAtEnd;c.overrides={duration:this.schedule.duration,endOfStream:!a||e,cueRemoval:!a}}t.attachMedia(c)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,e=t.events;if(!e||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const n=this.timelinePos,i=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.timelinePos=n,e.length&&e[0].cue.pre){const n=t.findEventIndex(e[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){const e=this.timelinePos=n>0?n:0,i=t.findItemIndexAtTime(e);this.setSchedulePosition(i)}}else if(i&&!this.playingItem){const e=t.findItemIndex(i);this.setSchedulePosition(e)}}advanceAfterAssetEnded(t,e,n){const i=ia(t,n);if(t.isAssetPastPlayoutLimit(i)){const n=this.schedule.items;if(n){const i=e+1;if(i>=n.length)return void this.setSchedulePosition(-1);const r=t.resumeTime;this.timelinePos=0?n[t]:null,r=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(r)){var a;const u=r.event,h=this.playingAsset,c=null==h?void 0:h.identifier,d=c?this.getAssetPlayer(c):null;if(d&&c&&(!this.eventItemsMatch(r,i)||void 0!==e&&c!==(null==(a=u.assetList)?void 0:a[e].identifier))){var o;const e=u.findAssetIndex(h);this.log(`INTERSTITIAL_ASSET_ENDED ${e+1}/${u.assetList.length} ${ra(h)}`),this.endedAsset=h,this.playingAsset=null,this.hls.trigger(l.INTERSTITIAL_ASSET_ENDED,{asset:h,assetListIndex:e,event:u,schedule:n.slice(0),scheduleIndex:t,player:d}),this.retreiveMediaSource(c,i),!d.media||null!=(o=this.detachedData)&&o.mediaSource||d.detachMedia()}if(!this.eventItemsMatch(r,i)&&(this.endedItem=r,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${u} ${oa(r)}`),u.hasPlayed=!0,this.hls.trigger(l.INTERSTITIAL_ENDED,{event:u,schedule:n.slice(0),scheduleIndex:t}),u.cue.once)){this.updateSchedule();const t=this.schedule.items;if(i&&t){const n=this.schedule.findItemIndex(i);this.advanceSchedule(n,t,e,r,s)}return}}this.advanceSchedule(t,n,e,r,s)}advanceSchedule(t,e,n,i,r){const s=t>=0?e[t]:null,a=this.primaryMedia,o=this.playerQueue;if(o.length&&o.forEach((e=>{const n=e.interstitial,i=this.schedule.findEventIndex(n.identifier);(it+1)&&this.clearInterstitial(n,s)})),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const r=s.event;if(void 0===n){const e=ia(r,(n=this.schedule.findAssetIndex(r,this.timelinePos))-1);if(r.isAssetPastPlayoutLimit(e))return void this.advanceAfterAssetEnded(r,t,n);n=e}const o=this.waitingItem;this.assetsBuffered(s,a)||this.setBufferingItem(s);let u=this.preloadAssets(r,n);if(this.eventItemsMatch(s,o||i)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${oa(s)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(l.INTERSTITIAL_STARTED,{event:r,schedule:e.slice(0),scheduleIndex:t})),!r.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${r}`);if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!a)return void this.log(`Waiting for attachMedia to start Interstitial ${r}`);this.waitingItem=this.endedItem=null,this.playingItem=s;const h=r.assetList[n];if(!h){const i=e[t+1],s=this.media;return i&&s&&!this.isInterstitial(i)&&s.currentTime=t.end)&&(n=this.getPrimaryResumption(t,e),this.timelinePos=n),this.attachPrimary(n,t)}if(!n)return;const r=this.schedule.items;r&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${oa(t)}`),this.hls.trigger(l.INTERSTITIALS_PRIMARY_RESUMED,{schedule:r.slice(0),scheduleIndex:e}),this.checkBuffer())}getPrimaryResumption(t,e){const n=t.start;if(this.primaryLive){const t=this.primaryDetails;if(0===e)return this.hls.startPosition;if(t&&(nt.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(t){const e=this.getAssetPlayer(t.identifier);if(null!=e&&e.hls)return e.hls.bufferedToEnd;return Ke.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,e,n){e?this.setBufferingItem(e):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(t,n)),n||(this.timelinePos=t,this.startLoadingPrimaryAt(t,n))}startLoadingPrimaryAt(t,e){var n;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs(((null==(n=i.mainForwardBufferInfo)?void 0:n.start)||i.media.currentTime)-t)>.5?i.startLoad(t,e):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(l.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(l.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,e){if(-1===e.level)return;const n=this.hls.levels[e.level],i=w(w({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,e){const n=this.hls.audioTracks[e.id],i=this.mediaSelection;if(!i)return void(this.altSelection=w(w({},this.altSelection),{},{audio:n}));const r=w(w({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(t,e){const n=this.hls.subtitleTracks[e.id],i=this.mediaSelection;if(!i)return void(this.altSelection=w(w({},this.altSelection),{},{subtitles:n}));const r=w(w({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(t,e){const n=ne(e);this.playerQueue.forEach((t=>t.hls.setAudioOption(e)||t.hls.setAudioOption(n)))}onSubtitleTrackSwitch(t,e){const n=ne(e);this.playerQueue.forEach((t=>t.hls.setSubtitleOption(e)||-1!==e.id&&t.hls.setSubtitleOption(n)))}onBufferCodecs(t,e){const n=e.tracks;n&&(this.requiredTracks=n)}onBufferAppended(t,e){this.checkBuffer()}onBufferFlushed(t,e){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const t=this.timelinePos;this.bufferedPos=t,this.checkBuffer()}}onBufferedToEnd(t){const e=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach(((e,n)=>{t.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(e.identifier,null)}));const e=t.end+.25,n=Ke.bufferInfo(this.primaryMedia,e,0);(n.end>e||(n.nextStart||0)>e)&&(this.attachPrimary(e,null),this.flushFrontBuffer(e))}}itemsMatch(t,e){return!!e&&(t===e||t.event&&e.event&&this.eventItemsMatch(t,e)||!t.event&&!e.event&&this.findItemIndex(t)===this.findItemIndex(e))}eventItemsMatch(t,e){var n;return!!e&&(t===e||t.event.identifier===(null==(n=e.event)?void 0:n.identifier))}findItemIndex(t,e){return t?this.schedule.findItemIndex(t,e):-1}updateSchedule(){const t=this.mediaSelection;t&&this.schedule.updateSchedule(t,[])}checkBuffer(t){const e=this.schedule.items;if(!e)return;const n=Ke.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=n.len<1),this.updateBufferedPos(n.end,e,t)}updateBufferedPos(t,e,n){const i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>t)return;if(1===e.length&&this.itemsMatch(e[0],r))return void(this.bufferedPos=t);const s=this.playingItem,a=this.findItemIndex(s);let o=i.findItemIndexAtTime(t);if(this.bufferedPos=r.end||null!=(l=s.event)&&l.appendInPlace&&t+.01>=s.start)&&(o=i),i-a>1&&!1===(null==r||null==(u=r.event)?void 0:u.appendInPlace))return;if(this.bufferedPos=t,o>n&&o>a)this.bufferedToItem(s);else{const e=this.primaryDetails;this.primaryLive&&e&&t>e.edge-e.targetduration&&s.start{const n=this.getAssetPlayer(t.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(e))}))}setBufferingItem(t){const e=this.bufferingItem,n=this.schedule;if(this.itemsMatch(t,e))this.bufferingItem!==t&&(this.bufferingItem=t);else{const{items:i,events:r}=n;if(!i||!r)return e;const s=this.isInterstitial(t),a=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const o=a?a.remaining:e?e.end-this.timelinePos:0;this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${oa(t)}`+(e?` (${o.toFixed(2)} remaining)`:"")),this.playbackDisabled||(s?t.event.assetList.forEach((t=>{const e=this.getAssetPlayer(t.identifier);e&&e.resumeBuffering()})):(this.hls.resumeBuffering(),this.playerQueue.forEach((t=>t.pauseBuffering())))),this.hls.trigger(l.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}return e}bufferedToItem(t,e=0){const n=this.setBufferingItem(t);if(!this.playbackDisabled)if(this.isInterstitial(t))this.bufferedToEvent(t,e);else if(null!==n){this.bufferingAsset=null;const e=this.detachedData;if(e)if(e.mediaSource){const e=!0;this.attachPrimary(t.start,t,e)}else this.preloadPrimary(t);else this.preloadPrimary(t)}}preloadPrimary(t){const e=this.findItemIndex(t),n=this.getPrimaryResumption(t,e);this.startLoadingPrimaryAt(n)}bufferedToEvent(t,e){const n=t.event,i=0===n.assetList.length&&!n.assetListLoader,r=n.cue.once;if(i||!r){const t=this.preloadAssets(n,e);if(null!=t&&t.interstitial.appendInPlace){const i=n.assetList[e],r=this.primaryMedia;i&&r&&this.bufferAssetPlayer(t,r)}}}preloadAssets(t,e){const n=t.assetUrl,i=t.assetList.length,r=0===i&&!t.assetListLoader,s=t.cue.once;if(r){const r=t.timelineStart;if(t.appendInPlace){var a;const e=this.playingItem;this.isInterstitial(e)||(null==e||null==(a=e.nextEvent)?void 0:a.identifier)!==t.identifier||this.flushFrontBuffer(r+.25)}let s,o=0;if(!this.playingItem&&this.primaryLive&&(o=this.hls.startPosition,-1===o&&(o=this.hls.liveSyncPosition||0)),o&&!t.cue.pre&&!t.cue.post){const t=o-r;t>0&&(s=Math.round(1e3*t)/1e3)}if(this.log(`Load interstitial asset ${e+1}/${n?1:i} ${t}${s?` live-start: ${o} start-offset: ${s}`:""}`),n)return this.createAsset(t,0,0,r,t.duration,n);const l=this.assetListLoader.loadAssetList(t,s);l&&(t.assetListLoader=l)}else if(!s&&i){for(let n=e;n{this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:e})}))}getAssetPlayerQueueIndex(t){const e=this.playerQueue;for(let n=0;n1){const n=e.duration;n&&t{if(i.live){const e=new Error(`Interstitials MUST be VOD assets ${t}`),i={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:e};return void this.handleAssetItemError(i,t,this.schedule.findEventIndex(t.identifier),n,e.message)}const r=i.edge-i.fragmentStart,s=e.duration;(null===s||r>s)&&(this.log(`Interstitial asset "${f}" duration change ${s} > ${r}`),e.duration=r,this.updateSchedule())};m.on(l.LEVEL_UPDATED,((t,{details:e})=>v(e))),m.on(l.LEVEL_PTS_UPDATED,((t,{details:e})=>v(e)));const y=(t,e)=>{const n=this.getAssetPlayer(f);if(n&&e.tracks){n.off(l.BUFFER_CODECS,y),n.tracks=e.tracks;const t=this.primaryMedia;this.bufferingAsset===n.assetItem&&t&&!n.media&&this.bufferAssetPlayer(n,t)}};m.on(l.BUFFER_CODECS,y);const b=()=>{var n;const i=this.getAssetPlayer(f);if(this.log(`buffered to end of asset ${i}`),!i)return;const r=this.schedule.findEventIndex(t.identifier),s=null==(n=this.schedule.items)?void 0:n[r];if(this.isInterstitial(s)){const n=t.findAssetIndex(e),i=ia(t,n);if(t.isAssetPastPlayoutLimit(i)){var a;const t=null==(a=this.schedule.items)?void 0:a[r+1];t&&this.bufferedToItem(t)}else this.bufferedToItem(s,i)}};m.on(l.BUFFERED_TO_END,b);const E=e=>()=>{if(!this.getAssetPlayer(f))return;this.shouldPlay=!0;const n=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,n,e)};return m.once(l.MEDIA_ENDED,E(n)),m.once(l.PLAYOUT_LIMIT_REACHED,E(1/0)),m.on(l.ERROR,((e,i)=>{const r=this.getAssetPlayer(f);if(i.details!==o.BUFFER_STALLED_ERROR)this.handleAssetItemError(i,t,this.schedule.findEventIndex(t.identifier),n,`Asset player error ${i.error} ${t}`);else if(null!=r&&r.media){const e=r.currentTime,n=r.duration-e;e&&t.appendInPlace&&n/r.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${f} ${t} at ${r.media.currentTime}`),b()):(this.warn(`Stalled at ${e} of ${e+n} in asset ${f} ${t}`),this.onTimeupdate(),this.checkBuffer(!0))}})),m.on(l.DESTROYING,(()=>{if(!this.getAssetPlayer(f))return;const e=new Error(`Asset player destroyed unexpectedly ${f}`),i={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:e};this.handleAssetItemError(i,t,this.schedule.findEventIndex(t.identifier),n,e.message)})),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${ra(e)}`),this.hls.trigger(l.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:e,assetListIndex:n,event:t,player:m}),m}clearInterstitial(t,e){t.assetList.forEach((t=>{this.clearAssetPlayer(t.identifier,e)})),t.reset()}resetAssetPlayer(t){const e=this.getAssetPlayerQueueIndex(t);if(-1!==e){this.log(`reset asset player "${t}" after error`);const n=this.playerQueue[e];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(t,e){const n=this.getAssetPlayerQueueIndex(t);if(-1!==n){this.log(`clear asset player "${t}" toSegment: ${e?oa(e):e}`);const i=this.playerQueue[n];this.transferMediaFromPlayer(i,e),this.playerQueue.splice(n,1),i.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,e,n,i,r){const{interstitial:s,assetItem:a,assetId:o}=t,u=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=a,h&&h.identifier===o||(h&&(this.clearAssetPlayer(h.identifier,n[i]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${e+1}/${u} ${ra(a)}`),this.hls.trigger(l.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:e,event:s,schedule:n.slice(0),scheduleIndex:i,player:t})),this.bufferAssetPlayer(t,r)}bufferAssetPlayer(t,e){var n,i;const{interstitial:r,assetItem:s}=t,l=this.schedule.findEventIndex(r.identifier),u=null==(n=this.schedule.items)?void 0:n[l];if(!u)return;this.setBufferingItem(u),this.bufferingAsset=s;const h=this.getBufferingPlayer();if(h===t)return;const c=r.appendInPlace;if(c&&!1===(null==h?void 0:h.interstitial.appendInPlace))return;const d=(null==h?void 0:h.tracks)||(null==(i=this.detachedData)?void 0:i.tracks)||this.requiredTracks;if(c&&s!==this.playingAsset){if(!t.tracks)return;if(d&&!R(d,t.tracks)){const e=new Error(`Asset ${ra(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(d)}')`),n={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:e},i=r.findAssetIndex(s);return void this.handleAssetItemError(n,r,l,i,e.message)}}this.transferMediaTo(t,e)}handleAssetItemError(t,e,n,i,r){if(t.details===o.BUFFER_STALLED_ERROR)return;const s=e.assetList[i];this.warn(`INTERSTITIAL_ASSET_ERROR ${s?ra(s):s} ${t.error}`);const a=null==s?void 0:s.identifier,u=this.getAssetPlayerQueueIndex(a),h=this.playerQueue[u]||null,c=this.schedule.items,d=A({},t,{fatal:!1,errorAction:Te(!0),asset:s,assetListIndex:i,event:e,schedule:c,scheduleIndex:n,player:h});if(this.hls.trigger(l.INTERSTITIAL_ASSET_ERROR,d),!t.fatal)return;const f=this.playingAsset,p=new Error(r);if(s&&(this.clearAssetPlayer(a,null),s.error=p),e.assetList.some((t=>!t.error))){if(e.appendInPlace){for(let t=i;t"} error: ${t.error}`);let i=this.timelinePos;-1===i&&(i=this.hls.startPosition);const r=this.updateItem(n,i);this.itemsMatch(n,r)&&this.clearInterstitial(t,null),t.appendInPlace&&(this.attachPrimary(e,null),this.flushFrontBuffer(e));const s=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(t,e){var n;const i=e.event,r=i.identifier,s=e.assetListResponse.ASSETS;if(!this.schedule.hasEvent(r))return;const a=i.timelineStart,o=i.duration;let l=0;s.forEach(((t,e)=>{const n=parseFloat(t.DURATION);this.createAsset(i,e,l,a+l,n,t.URI),l+=n})),i.duration=l,this.log(`Loaded asset-list with duration: ${l} (was: ${o}) ${i}`);const u=this.waitingItem,h=(null==u?void 0:u.event.identifier)===r;this.updateSchedule();const c=null==(n=this.bufferingItem)?void 0:n.event;if(h){var d;const t=this.schedule.findEventIndex(r),e=null==(d=this.schedule.items)?void 0:d[t];if(e){if(!this.playingItem&&this.timelinePos>e.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==t)return i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),void this.primaryFallback(i)}this.setBufferingItem(e)}this.setSchedulePosition(t)}else if((null==c?void 0:c.identifier)===r&&c.appendInPlace){const t=i.assetList[0],e=this.getAssetPlayer(t.identifier),n=this.primaryMedia;t&&e&&n&&this.bufferAssetPlayer(e,n)}}onError(t,e){switch(e.details){case o.ASSET_LIST_PARSING_ERROR:case o.ASSET_LIST_LOAD_ERROR:case o.ASSET_LIST_LOAD_TIMEOUT:{const t=e.interstitial;t&&this.primaryFallback(t);break}case o.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}});function po(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(po):Object.keys(t).reduce(((e,n)=>(e[n]=po(t[n]),e)),{}):t}function go(t,e){const n=t.loader;if(n!==oo&&n!==co)e.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1})()&&(t.loader=oo,t.progressive=!0,t.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class mo extends Qe{constructor(t,e){super("gap-controller",t.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var t;null!=(t=this.media)&&t.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var t;this.hls&&(this.ended=(null==(t=this.media)?void 0:t.currentTime)||1,this.hls.trigger(l.MEDIA_ENDED,{stalled:!1}))},this.hls=t,this.fragmentTracker=e,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,e){this.setInterval(100),this.mediaSource=e.mediaSource;const n=this.media=e.media;js(n,"playing",this.onMediaPlaying),js(n,"waiting",this.onMediaWaiting),js(n,"ended",this.onMediaEnded)}onMediaDetaching(t,e){this.clearInterval();const{media:n}=this;n&&(Gs(n,"playing",this.onMediaPlaying),Gs(n,"waiting",this.onMediaWaiting),Gs(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,e){this.buffered=e.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(null==(t=this.media)||!t.readyState||!this.hasBuffered)return;const e=this.media.currentTime;this.poll(e,this.lastCurrentTime),this.lastCurrentTime=e}poll(t,e){var n,i;const r=null==(n=this.hls)?void 0:n.config;if(!r)return;const s=this.media;if(!s)return;const{seeking:a}=s,o=this.seeking&&!a,u=!this.seeking&&a,h=s.paused&&!a||s.ended||0===s.playbackRate;if(this.seeking=a,t!==e)return e&&(this.ended=0),this.moved=!0,a||(this.nudgeRetry=0,r.nudgeOnVideoHole&&!h&&t>e&&this.nudgeOnVideoHole(t,e)),void(0===this.waiting&&this.stallResolved(t));if(u||o)return void(o&&this.stallResolved(t));if(h)return this.nudgeRetry=0,this.stallResolved(t),void(!this.ended&&s.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(l.MEDIA_ENDED,{stalled:!1})));if(!Ke.getBuffered(s).length)return void(this.nudgeRetry=0);const c=Ke.bufferInfo(s,t,0),d=c.nextStart||0,f=this.fragmentTracker;if(a&&f&&this.hls){const e=vo(this.hls.inFlightFragments,t),n=c.len>2,i=!d||e||d-t>2&&!f.getPartialFragment(t);if(n||i)return;this.moved=!1}const p=null==(i=this.hls)?void 0:i.latestLevelDetails;if(!this.moved&&null!==this.stalled&&f){if(!(c.len>0)&&!d)return;const e=Math.max(d,c.start||0)-t,n=!(null==p||!p.live)?2*p.targetduration:2,i=f.getPartialFragment(t);if(e>0&&(e<=n||i))return void(s.paused||this._trySkipBufferHole(i))}const g=r.detectStallWithCurrentTimeMs,m=self.performance.now(),v=this.waiting;let y=this.stalled;if(null===y){if(!(v>0&&m-v=g||v)&&this.hls){var b;if("ended"===(null==(b=this.mediaSource)?void 0:b.readyState)&&(null==p||!p.live)&&Math.abs(t-((null==p?void 0:p.edge)||0))<1){if(this.ended)return;return this.ended=t||1,void this.hls.trigger(l.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(c),!this.media||!this.hls)return}const w=Ke.bufferInfo(s,t,r.maxBufferHole);this._tryFixBufferStall(w,A,t)}stallResolved(t){const e=this.stalled;if(e&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-e;this.log(`playback not stuck anymore @${t}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(l.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,e){var n;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&i&&i.length>1&&t>i.end(0)){const n=Ke.bufferedInfo(Ke.timeRangesToArray(this.buffered.audio),t,0);if(n.len>1&&e>=n.start){const n=Ke.timeRangesToArray(i),r=Ke.bufferedInfo(n,e,0).bufferedIndex;if(r>-1&&rr)&&s-i<1&&t-i<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${i} -> ${s} buffered index: ${e}`);this.warn(n.message),this.media.currentTime+=1e-6;const r=this.fragmentTracker.getPartialFragment(t)||void 0,u=Ke.bufferInfo(this.media,t,0);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:r,buffer:u.len,bufferInfo:u})}}}}}_tryFixBufferStall(t,e,n){var i,r;const{fragmentTracker:s,media:a}=this,o=null==(i=this.hls)?void 0:i.config;if(!a||!s||!o)return;const l=null==(r=this.hls)?void 0:r.latestLevelDetails,u=s.getPartialFragment(n);if(u||null!=l&&l.live&&n1&&t.len>o.maxBufferHole||t.nextStart&&(t.nextStart-n1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,e){const n=this.fragmentTracker,i=t.nextStart;if(n&&i){const t=n.getFragAtPos(e,f),r=n.getFragAtPos(i,f);if(t&&r)return r.sn-t.sn<2}return!1}_reportStall(t){const{hls:e,media:n,stallReported:i,stalled:r}=this;if(!i&&null!==r&&n&&e){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${$t(t)})`);this.warn(i.message),e.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len,bufferInfo:t,stalled:{start:r}})}}_trySkipBufferHole(t){var e;const{fragmentTracker:n,media:i}=this,r=null==(e=this.hls)?void 0:e.config;if(!i||!n||!r)return 0;const s=i.currentTime,u=Ke.bufferInfo(i,s,0),h=s0&&u.len<1&&i.readyState<3,p=h-s;if(p>0&&(e||d)){if(p>r.maxBufferHole){let e=!1;if(0===s){const t=n.getAppendedFrag(0,f);t&&h{const t=Ao();try{t&&new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Eo{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(l.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(t,e){var n;this.media=e.media,!1===(null==(n=e.overrides)?void 0:n.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){const t=this.hls.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(t,e){this.media=null;!!e.transferMedia||(this.id3Track&&(this.removeCues&&Ys(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const e=this.getID3Track(t.textTracks);return e.mode="hidden",e}getID3Track(t){if(this.media){for(let e=0;ewo&&(i=wo);i-n<=0&&(i=n+.25);for(let t=0;tt.type===$i.audioId3&&o:"video"===i?t=>t.type===$i.emsg&&a:t=>t.type===$i.audioId3&&o||t.type===$i.emsg&&a,Ks(r,e,n,t)}}onLevelUpdated(t,{details:e}){this.updateDateRangeCues(e,!0)}onLevelPtsUpdated(t,e){Math.abs(e.drift)>.01&&this.updateDateRangeCues(e.details)}updateDateRangeCues(t,e){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=t,s=Object.keys(r);let a=this.dateRangeCuesAppended;var o;if(n&&e)if(null!=(o=n.cues)&&o.length){const t=Object.keys(a).filter((t=>!s.includes(t)));for(let e=t.length;e--;){const i=t[e],r=a[i].cues;delete a[i],Object.keys(r).forEach((t=>{try{const e=r[t];e.removeEventListener("enter",this.onEventCueEnter),n.removeCue(e)}catch(t){}}))}}else a=this.dateRangeCuesAppended={};const l=t.fragments[t.fragments.length-1];if(0===s.length||!i(null==l?void 0:l.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const u=Ao();for(let t=0;t{if(e!==n.id){const i=r[e];if(i.class===n.class&&i.startDate>n.startDate&&(!t||n.startDate.01&&(s.startTime=i,s.endTime=f);else if(u){let t=n.attr[r];rn(r)&&(h=t,t=Uint8Array.from(h.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);const s=bo(u,i,f,{key:r,data:t},$i.dateRange);s&&(s.id=e,this.id3Track.addCue(s),l[r]=s,this.hls.config.interstitialsController&&("X-ASSET-LIST"!==r&&"X-ASSET-URL"!==r||s.addEventListener("enter",this.onEventCueEnter)))}}a[e]={cues:l,dateRange:n,durationKnown:d}}var h,c}}class xo{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,e=this.levelDetails;if(!t||!e)return;this.currentTime=t.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!e.live)return;const s=this.targetLatency;if(null===s)return;const a=n-s;if(a.05&&this.forwardBufferLength>1){const e=Math.min(2,Math.max(1,r)),n=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,i=Math.min(e,Math.max(1,n));this.changeMediaPlaybackRate(t,i)}else 1!==t.playbackRate&&0!==t.playbackRate&&this.changeMediaPlaybackRate(t,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return(null==(t=this.hls)?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(void 0!==t.liveMaxLatencyDuration)return t.liveMaxLatencyDuration;const e=this.levelDetails;return e?t.liveMaxLatencyDurationCount*e.targetduration:0}get targetLatency(){const t=this.levelDetails;if(null===t||null===this.hls)return null;const{holdBack:e,partHoldBack:n,targetduration:i}=t,{liveSyncDuration:r,liveSyncDurationCount:s,lowLatencyMode:a}=this.config,o=this.hls.userConfig;let l=a&&n||e;(this._targetLatencyUpdated||o.liveSyncDuration||o.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:s*i);const u=i;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,u)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),e=this.targetLatency;if(null===t||null===e)return null;const n=this.levelDetails;if(null===n)return null;const i=n.edge,r=t-e-this.edgeStalled,s=i-n.totalduration,a=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,r),a)}get drift(){const t=this.levelDetails;return null===t?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(null===t)return 0;const e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}get forwardBufferLength(){const{media:t}=this,e=this.levelDetails;if(!t||!e)return 0;const n=t.buffered.length;return(n?t.buffered.end(n-1):e.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.ERROR,this.onError,this))}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:e}){e.advanced&&this.onTimeupdate(),!e.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,e){var n;e.details===o.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,e){var n,i;t.playbackRate!==e&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(i=this.targetLatency)?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${e}`),t.playbackRate=e)}estimateLiveEdge(){const t=this.levelDetails;return null===t?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return null===t?null:t-this.currentTime}}class ko extends ts{constructor(t,e){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=e,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this),t.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this),t.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((t=>{t.loadError=0,t.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,e){this.resetLevels()}onManifestLoaded(t,e){const n=this.hls.config.preferManagedMediaSource,i=[],r={},s={};let a=!1,o=!1,l=!1;e.levels.forEach((t=>{const e=t.attrs;let{audioCodec:u,videoCodec:h}=t;u&&(t.audioCodec=u=Pt(u,n)||void 0),h&&(h=t.videoCodec=function(t){const e=t.split(",");for(let t=0;t2&&"avc1"===n[0]&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}(h));const{width:c,height:d,unknownCodecs:f}=t;let p=f?f.length:0;if(f)for(let e=p;e--;){const n=f[e];this.isAudioSupported(n)?(t.audioCodec=u=u?`${u},${n}`:n,p--,kt.audio[u.substring(0,4)]=2):this.isVideoSupported(n)&&(t.videoCodec=h=h?`${h},${n}`:n,p--,kt.video[h.substring(0,4)]=2)}if(a||(a=!(!c||!d)),o||(o=!!h),l||(l=!!u),p||u&&!this.isAudioSupported(u)||h&&!this.isVideoSupported(h))return void this.log(`Some or all CODECS not supported "${e.CODECS}"`);const{CODECS:g,"FRAME-RATE":m,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:A,"VIDEO-RANGE":b}=e,w=`${`${y||"."}-`}${t.bitrate}-${A}-${m}-${g}-${b}-${v}`;if(r[w])if(r[w].uri===t.url||t.attrs["PATHWAY-ID"])r[w].addGroupId("audio",e.AUDIO),r[w].addGroupId("text",e.SUBTITLES);else{const e=s[w]+=1;t.attrs["PATHWAY-ID"]=new Array(e+1).join(".");const n=this.createLevel(t);r[w]=n,i.push(n)}else{const e=this.createLevel(t);r[w]=e,s[w]=1,i.push(e)}})),this.filterAndSortMediaOptions(i,e,a,o,l)}createLevel(t){const e=new Wt(t),n=t.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const t=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(t.message),e.supportedResult=Ut(t,[])}return e}isAudioSupported(t){return Ct(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return Ct(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,e,n,i,r){let s=[],u=[],h=t;if((n||i)&&r&&(h=h.filter((({videoCodec:t,videoRange:e,width:n,height:i})=>{return(!!t||!(!n||!i))&&(!!(r=e)&&Ht.indexOf(r)>-1);var r}))),0===h.length)return void Promise.resolve().then((()=>{if(this.hls){let t="no level with compatible codecs found in manifest",n=t;e.levels.length&&(n=`one or more CODECS in variant not supported: ${$t(e.levels.map((t=>t.attrs.CODECS)).filter(((t,e,n)=>n.indexOf(t)===e)))}`,this.warn(n),t+=` (${n})`);const i=new Error(t);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:i,reason:n})}}));e.audioTracks&&(s=e.audioTracks.filter((t=>!t.audioCodec||this.isAudioSupported(t.audioCodec))),To(s)),e.subtitles&&(u=e.subtitles,To(u));const c=h.slice(0);h.sort(((t,e)=>{if(t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"])return(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&t.height!==e.height)return t.height-e.height;if(t.frameRate!==e.frameRate)return t.frameRate-e.frameRate;if(t.videoRange!==e.videoRange)return Ht.indexOf(t.videoRange)-Ht.indexOf(e.videoRange);if(t.videoCodec!==e.videoCodec){const n=It(t.videoCodec),i=It(e.videoCodec);if(n!==i)return i-n}if(t.uri===e.uri&&t.codecSet!==e.codecSet){const n=Rt(t.codecSet),i=Rt(e.codecSet);if(n!==i)return i-n}return t.averageBitrate!==e.averageBitrate?t.averageBitrate-e.averageBitrate:0}));let d=c[0];if(this.steering&&(h=this.steering.filterParsedLevels(h),h.length!==c.length))for(let t=0;tn&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=t)}break}const p=r&&!i,g=this.hls.config,m=!(!g.audioStreamController||!g.audioTrackController),v={levels:h,audioTracks:s,subtitleTracks:u,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:r,video:i,altAudio:m&&!p&&s.some((t=>!!t.url))};this.hls.trigger(l.MANIFEST_PARSED,v)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const e=this._levels;if(0===e.length)return;if(t<0||t>=e.length){const n=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:n,reason:n.message}),i)return;t=Math.min(t,e.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,s=e[t],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,n===t&&i&&r===u)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${n}${r?" with Pathway "+r:""}`);const h={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,h);const c=s.details;if(!c||c.live){const t=this.switchParams(s.uri,null==i?void 0:i.details,c);this.loadPlaylist(t)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(void 0===this._startLevel){const t=this.hls.config.startLevel;return void 0!==t?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const e=this.steering.pathways(),n=t.filter((t=>-1!==e.indexOf(t)));if(t.length<1)return void this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${e}`);this.steering.pathwayPriority=n}}onError(t,e){!e.fatal&&e.context&&e.context.type===h&&e.context.level===this.level&&this.checkRetry(e)}onFragBuffered(t,{frag:e}){if(void 0!==e&&e.type===f){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return;const n=this._levels[e.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(t,e){var n;const{level:i,details:r}=e,s=e.levelInfo;var a;if(!s)return this.warn(`Invalid level index ${i}`),void(null!=(a=e.deliveryDirectives)&&a.skip&&(r.deltaUpdateFailed=!0));if(s===this.currentLevel||e.withoutMultiVariant){0===s.fragmentError&&(s.loadError=0);let t=s.details;t===e.details&&t.advanced&&(t=void 0),this.playlistLoaded(i,e,t)}else null!=(n=e.deliveryDirectives)&&n.skip&&(r.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,e){super.loadingPlaylist(t,e);const n=this.getUrlWithDirectives(t.uri,e),i=this.currentLevelIndex,r=t.attrs["PATHWAY-ID"],s=t.details,a=null==s?void 0:s.age;this.log(`Loading level index ${i}${void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:""}${r?" Pathway "+r:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(l.LEVEL_LOADING,{url:n,level:i,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}removeLevel(t){var e;if(1===this._levels.length)return;const n=this._levels.filter(((e,n)=>n!==t||(this.steering&&this.steering.removeLevel(e),e===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,e.details&&e.details.fragments.forEach((t=>t.level=-1))),!1)));ri(n),this._levels=n,this.currentLevelIndex>-1&&null!=(e=this.currentLevel)&&e.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(l.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(t,{levels:e}){this._levels=e}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:e,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==e&&(this._maxAutoLevel=e,this.hls.trigger(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:e,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function To(t){const e={};t.forEach((t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++}))}function Co(){return self.SourceBuffer||self.WebKitSourceBuffer}function Do(){if(!I())return!1;const t=Co();return!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove}class So extends xi{constructor(t,e,n){super(t,e,n,"stream-controller",f),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const t=this.media,e=t?t.currentTime:null;if(null===e||!i(e))return;if(this.log(`Media seeked to ${e.toFixed(3)}`),!this.getBufferedFrag(e))return;const n=this.getFwdBufferInfoAtPos(t,e,f,0);null!==n&&0!==n.len?this.tick():this.warn(`Main forward buffer length at ${e} on "seeked" event ${n?n.len:"empty"})`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(l.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(l.BUFFER_CREATED,this.onBufferCreated,this),t.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(l.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(l.BUFFER_CREATED,this.onBufferCreated,this),t.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,e){if(this.levels){const{lastCurrentTime:n,hls:i}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let t=i.startLevel;-1===t&&(i.config.testBandwidth&&this.levels.length>1?(t=0,this.bitrateTest=!0):t=i.firstAutoLevel),i.nextLoadLevel=t,this.level=i.loadLevel,this._hasEnoughToStart=!!e}n>0&&-1===t&&!e&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),t=n),this.state=di,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=e?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=ci}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Ei:{const{levels:t,level:e}=this,n=null==t?void 0:t[e],i=null==n?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=di;break}if(this.hls.nextLoadLevel!==this.level){this.state=di;break}break}case gi:{var t;const e=self.performance.now(),n=this.retryDate;if(!n||e>=n||null!=(t=this.media)&&t.seeking){const{levels:t,level:e}=this,n=null==t?void 0:t[e];this.resetStartWhenNotLoaded(n||null),this.state=di}}}this.state===di&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),null!=(t=this.media)&&t.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:e,levels:n,media:i}=this;if(null===e||!i&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=this.buffering?t.nextLoadLevel:t.loadLevel;if(null==n||!n[r])return;const s=n[r],a=this.getMainFwdBufferInfo();if(null===a)return;const o=this.getLevelDetails();if(o&&this._streamEnded(a,o)){const t={};return 2===this.altAudio&&(t.type="video"),this.hls.trigger(l.BUFFER_EOS,t),void(this.state=Ai)}if(!this.buffering)return;t.loadLevel!==r&&-1===t.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=t.nextLoadLevel=r;const u=s.details;if(!u||this.state===Ei||this.waitForLive(s))return this.level=r,this.state=Ei,void(this.startFragRequested=!1);const h=a.len,c=this.getMaxBufferLength(s.maxBitrate);if(h>=c)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const d=this.backtrackFragment?this.backtrackFragment.start:a.end;let p=this.getNextFragment(d,u);if(this.couldBacktrack&&!this.fragPrevious&&p&&Y(p)&&this.fragmentTracker.getState(p)!==Ie){var g;const t=(null!=(g=this.backtrackFragment)?g:p).sn-u.startSN,e=u.fragments[t-1];e&&p.cc===e.cc&&(p=e,this.fragmentTracker.removeFragment(e))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(p&&this.isLoopLoading(p,d)){if(!p.gap){const t=this.audioOnly&&!this.altAudio?q:H,e=(t===H?this.videoBuffer:this.mediaBuffer)||this.media;e&&this.afterBufferFlushed(e,t,f)}p=this.getNextFragmentLoopLoading(p,u,a,f,c)}p&&(!p.initSegment||p.initSegment.data||this.bitrateTest||(p=p.initSegment),this.loadFragment(p,s,d))}loadFragment(t,e,n){const i=this.fragmentTracker.getState(t);i===Ce||i===Se?Y(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,e)):super.loadFragment(t,e,n):this._loadInitSegment(t,e):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,f)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:e}=this;if(null!=e&&e.readyState){let n;const i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const t=this.getMainFwdBufferInfo();if(!t||t.len<2*r.targetduration)return}if(!e.paused&&t){const e=t[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*e.maxBitrate/(1e3*i)+1:0}else n=0;const s=this.getBufferedFrag(e.currentTime+n);if(s){const t=this.followingBufferedFrag(s);if(t){this.abortCurrentFrag();const e=t.maxStartPTS?t.maxStartPTS:t.start,n=t.duration,i=Math.max(s.end,e+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case fi:case pi:case gi:case vi:case yi:this.state=di}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(t,e){super.flushMainBuffer(t,e,2===this.altAudio?"video":null)}onMediaAttached(t,e){super.onMediaAttached(t,e);const n=e.media;js(n,"playing",this.onMediaPlaying),js(n,"seeked",this.onMediaSeeked)}onMediaDetaching(t,e){const{media:n}=this;n&&(Gs(n,"playing",this.onMediaPlaying),Gs(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(t,e);!!e.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(l.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(t,e){let n=!1,i=!1;e.levels.forEach((t=>{const e=t.audioCodec;e&&(n=n||-1!==e.indexOf("mp4a.40.2"),i=i||-1!==e.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&i&&!function(){var t;const e=Co();return"function"==typeof(null==e||null==(t=e.prototype)?void 0:t.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1}onLevelLoading(t,e){const{levels:n}=this;if(!n||this.state!==di)return;const i=e.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=Ei)}onLevelLoaded(t,e){var n;const{levels:i,startFragRequested:r}=this,s=e.level,a=e.details,o=a.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${s}`);this.log(`Level ${s} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${o}`);const u=e.levelInfo,h=this.fragCurrent;!h||this.state!==pi&&this.state!==gi||h.level!==e.level&&h.loader&&this.abortCurrentFrag();let c=0;if(a.live||null!=(n=u.details)&&n.live){var d;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;c=this.alignPlaylists(a,u.details,null==(d=this.levelLastLoaded)?void 0:d.details)}if(u.details=a,this.levelLastLoaded=u,r||this.setStartPosition(a,c),this.hls.trigger(l.LEVEL_UPDATED,{details:a,level:s}),this.state===Ei){if(this.waitForCdnTuneIn(a))return;this.state=di}r&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(t){const{config:e,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=this.getLoadPosition(),s=t.fragmentStart,a=t.edge,o=r>=s-e.maxFragLookUpTolerance&&r<=a;if(null!==i&&n.duration>i&&(r{var t;null==(t=this.hls)||t.trigger(l.AUDIO_TRACK_SWITCHED,e)})),void n.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(l.AUDIO_TRACK_SWITCHED,e)}}onAudioTrackSwitched(t,e){const n=oe(e.url,this.hls);if(n){const t=this.videoBuffer;t&&this.mediaBuffer!==t&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=t)}this.altAudio=n?2:0,this.tick()}onBufferCreated(t,e){const n=e.tracks;let i,r,s=!1;for(const t in n){const e=n[t];if("main"===e.id){if(r=t,i=e,"video"===t){const e=n[t];e&&(this.videoBuffer=e.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,e){const{frag:n,part:i}=e,r=n.type===f;if(r){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===yi&&(this.state=di));const t=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*t.total/(t.buffering.end-t.loading.first)),Y(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}const s=this.media;s&&(!this._hasEnoughToStart&&Ke.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,e){var n;if(e.fatal)this.state=bi;else switch(e.details){case o.FRAG_GAP:case o.FRAG_PARSING_ERROR:case o.FRAG_DECRYPT_ERROR:case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f,e);break;case o.LEVEL_LOAD_ERROR:case o.LEVEL_LOAD_TIMEOUT:case o.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==Ei||(null==(n=e.context)?void 0:n.type)!==h||(this.state=di);break;case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:if("main"!==e.parent)return;this.resetLoadingState();break;case o.BUFFER_FULL_ERROR:if("main"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case o.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}onFragLoadEmergencyAborted(){this.state=di,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:e}){if(e!==q||!this.altAudio){const t=(e===H?this.videoBuffer:this.mediaBuffer)||this.media;t&&(this.afterBufferFlushed(t,e,f),this.tick())}}onLevelsUpdated(t,e){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=e.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const e=t.currentTime;let n=this.startPosition;if(n>=0&&e0&&(o{const{hls:n}=this,i=null==t?void 0:t.frag;if(!i||this.fragContextChanged(i))return;e.fragmentError=0,this.state=di,this.startFragRequested=!1,this.bitrateTest=!1;const r=i.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),n.trigger(l.FRAG_LOADED,t),i.bitrateTest=!1}))}_handleTransmuxComplete(t){var e;const n=this.playlistType,{hls:r}=this,{remuxResult:s,chunkMeta:a}=t,o=this.getCurrentContext(a);if(!o)return void this.resetWhenMissingContext(a);const{frag:u,part:h,level:c}=o,{video:d,text:f,id3:p,initSegment:g}=s,{details:m}=c,v=this.altAudio?void 0:s.audio;if(this.fragContextChanged(u))this.fragmentTracker.removeFragment(u);else{if(this.state=vi,g){if(null!=g&&g.tracks){const t=u.initSegment||u;this._bufferInitSegment(c,g.tracks,t,a),r.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:n,tracks:g.tracks})}const t=g.initPTS,e=g.timescale;i(t)&&(this.initPTS[u.cc]={baseTime:t,timescale:e},r.trigger(l.INIT_PTS_FOUND,{frag:u,id:n,initPTS:t,timescale:e}))}if(d&&m){v&&"audiovideo"===d.type&&this.logMuxedErr(u);const t=m.fragments[u.sn-1-m.startSN],e=u.sn===m.startSN,n=!t||u.cc>t.cc;if(!1!==s.independent){const{startPTS:t,endPTS:i,startDTS:r,endDTS:s}=d;if(h)h.elementaryStreams[d.type]={startPTS:t,endPTS:i,startDTS:r,endDTS:s};else if(d.firstKeyFrame&&d.independent&&1===a.id&&!n&&(this.couldBacktrack=!0),d.dropped&&d.independent){const r=this.getMainFwdBufferInfo(),a=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,o=d.firstKeyFramePTS?d.firstKeyFramePTS:t;if(!e&&a2&&(u.gap=!0);u.setElementaryStreamInfo(d.type,t,i,r,s),this.backtrackFragment&&(this.backtrackFragment=u),this.bufferFragmentData(d,u,h,a,e||n)}else{if(!e&&!n)return void this.backtrack(u);u.gap=!0}}if(v){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=v;h&&(h.elementaryStreams[q]={startPTS:t,endPTS:e,startDTS:n,endDTS:i}),u.setElementaryStreamInfo(q,t,e,n,i),this.bufferFragmentData(v,u,h,a)}if(m&&null!=p&&null!=(e=p.samples)&&e.length){const t={id:n,frag:u,details:m,samples:p.samples};r.trigger(l.FRAG_PARSING_METADATA,t)}if(m&&f){const t={id:n,frag:u,details:m,samples:f.samples};r.trigger(l.FRAG_PARSING_USERDATA,t)}}}logMuxedErr(t){this.warn(`${Y(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,e,n,i){if(this.state!==vi)return;this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&(delete e.audio,e.audiovideo&&this.logMuxedErr(n));const{audio:r,video:s,audiovideo:a}=e;if(r){let n=Ot(r.codec,t.audioCodec);"mp4a"===n&&(n="mp4a.40.5");const i=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){n&&(n=-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const t=r.metadata;t&&"channelCount"in t&&1!==(t.channelCount||1)&&-1===i.indexOf("firefox")&&(n="mp4a.40.5")}n&&-1!==n.indexOf("mp4a.40.5")&&-1!==i.indexOf("android")&&"audio/mpeg"!==r.container&&(n="mp4a.40.2",this.log(`Android: force audio codec to ${n}`)),t.audioCodec&&t.audioCodec!==n&&this.log(`Swapping manifest audio codec "${t.audioCodec}" for "${n}"`),r.levelCodec=n,r.id=f,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${n||""}/${t.audioCodec||""}/${r.codec}]`),delete e.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=f;const n=s.codec;if(4===(null==n?void 0:n.length))switch(n){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e"}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${n}]${s.codec!==n?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete e.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${t.codecs}/${a.codec}]`),delete e.video,delete e.audio);const o=Object.keys(e);if(o.length){if(this.hls.trigger(l.BUFFER_CODECS,e),!this.hls)return;o.forEach((t=>{const r=e[t].initSegment;null!=r&&r.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:t,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,f)}get maxBufferLength(){const{levels:t,level:e}=this,n=null==t?void 0:t[e];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=di}checkFragmentChanged(){const t=this.media;let e=null;if(t&&t.readyState>1&&!1===t.seeking){const n=t.currentTime;if(Ke.isBuffered(t,n)?e=this.getAppendedFrag(n):Ke.isBuffered(t,n+.1)&&(e=this.getAppendedFrag(n+.1)),e){this.backtrackFragment=null;const t=this.fragPlaying,n=e.level;t&&e.sn===t.sn&&t.level===n||(this.fragPlaying=e,this.hls.trigger(l.FRAG_CHANGED,{frag:e}),t&&t.level===n||this.hls.trigger(l.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const e=(null==(t=this.media)?void 0:t.currentTime)||this.lastCurrentTime;return i(e)?this.getAppendedFrag(e):null}get currentProgramDateTime(){var t;const e=(null==(t=this.media)?void 0:t.currentTime)||this.lastCurrentTime;if(i(e)){const t=this.getLevelDetails(),n=this.currentFrag||(t?ue(null,t.fragments,e):null);if(n){const t=n.programDateTime;if(null!==t){const i=t+1e3*(e-n.start);return new Date(i)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class Io{constructor(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const n in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[n].loader;if(i){var e;if(t&&t!==(null==(e=i.context)?void 0:e.frag.type))return;i.abort()}}}detach(){for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(t,e=o.KEY_LOAD_ERROR,n,i,r){return new He({type:a.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:r,error:n,networkDetails:i})}loadClear(t,e){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length)if(e.length){const{sn:n,cc:i}=t;for(let t=0;t{if(r.setKeyFormat(t),this.emeController&&this.config.requireKeySystemAccessOnStart){const e=yn(t);if(e)return this.emeController.getKeySystemAccess([e])}}))}}else if(this.config.requireKeySystemAccessOnStart){const t=Tn(this.config);if(t.length)return this.emeController.getKeySystemAccess(t)}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then((e=>this.loadInternal(t,e))):this.loadInternal(t)}loadInternal(t,e){var n,i;e&&t.setKeyFormat(e);const r=t.decryptdata;if(!r){const n=new Error(e?`Expected frag.decryptdata to be defined after setting format ${e}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,n))}const s=r.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let a=this.keyUriToKeyInfo[s];if(null!=(n=a)&&n.decryptdata.key)return r.key=a.decryptdata.key,Promise.resolve({frag:t,keyInfo:a});var l;if(null!=(i=a)&&i.keyLoadPromise)switch(null==(l=a.mediaKeySessionContext)?void 0:l.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return a.keyLoadPromise.then((e=>(r.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:a})))}switch(a=this.keyUriToKeyInfo[s]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(a,t):this.loadKeyEME(a,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(a,t);default:return Promise.reject(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(t,e){const n={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){const e=this.emeController.loadKey(n);if(e)return(t.keyLoadPromise=e.then((e=>(t.mediaKeySessionContext=e,n)))).catch((e=>{throw t.keyLoadPromise=null,e}))}return Promise.resolve(n)}loadKeyHTTP(t,e){const n=this.config,i=new(0,n.loader)(n);return e.keyLoader=t.loader=i,t.keyLoadPromise=new Promise(((r,s)=>{const a={keyInfo:t,frag:e,responseType:"arraybuffer",url:t.decryptdata.uri},l=n.keyLoadPolicy.default,u={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(t,e,n,i)=>{const{frag:a,keyInfo:l,url:u}=n;if(!a.decryptdata||l!==this.keyUriToKeyInfo[u])return s(this.createKeyLoadError(a,o.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));l.decryptdata.key=a.decryptdata.key=new Uint8Array(t.data),a.keyLoader=null,l.loader=null,r({frag:a,keyInfo:l})},onError:(t,n,i,r)=>{this.resetLoader(n),s(this.createKeyLoadError(e,o.KEY_LOAD_ERROR,new Error(`HTTP Error ${t.code} loading key ${t.text}`),i,w({url:a.url,data:void 0},t)))},onTimeout:(t,n,i)=>{this.resetLoader(n),s(this.createKeyLoadError(e,o.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(t,n,i)=>{this.resetLoader(n),s(this.createKeyLoadError(e,o.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(a,u,h)}))}resetLoader(t){const{frag:e,keyInfo:n,url:i}=t,r=n.loader;e.keyLoader===r&&(e.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}function Ro(t){const{type:e}=t;switch(e){case c:return p;case d:return g;default:return f}}function Lo(t,e){let n=t.url;return void 0!==n&&0!==n.indexOf("data:")||(n=e.url),n}class Bo{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(l.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_LOADING,this.onLevelLoading,this),t.off(l.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(l.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const e=this.hls.config,n=e.pLoader,i=e.loader,r=new(n||i)(e);return this.loaders[t.type]=r,r}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,e){const{url:n}=e;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:u,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,e){const{id:n,level:i,pathwayId:r,url:s,deliveryDirectives:a,levelInfo:o}=e;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:h,url:s,deliveryDirectives:a,levelOrTrack:o})}onAudioTrackLoading(t,e){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:a}=e;this.load({id:n,groupId:i,level:null,responseType:"text",type:c,url:r,deliveryDirectives:s,levelOrTrack:a})}onSubtitleTrackLoading(t,e){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:a}=e;this.load({id:n,groupId:i,level:null,responseType:"text",type:d,url:r,deliveryDirectives:s,levelOrTrack:a})}onLevelsUpdated(t,e){const n=this.loaders[h];if(n){const t=n.context;t&&!e.levels.some((e=>e===t.levelOrTrack))&&(n.abort(),delete this.loaders[h])}}load(t){var e;const n=this.hls.config;let r,s=this.getInternalLoader(t);if(s){const e=this.hls.logger,n=s.context;if(n&&n.levelOrTrack===t.levelOrTrack&&(n.url===t.url||n.deliveryDirectives&&!t.deliveryDirectives))return void(n.url===t.url?e.log(`[playlist-loader]: ignore ${t.url} ongoing request`):e.log(`[playlist-loader]: ignore ${t.url} in favor of ${n.url}`));e.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),s.abort()}if(r=t.type===u?n.manifestLoadPolicy.default:A({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),i(null==(e=t.deliveryDirectives)?void 0:e.part)){let e;if(t.type===h&&null!==t.level?e=this.hls.levels[t.level].details:t.type===c&&null!==t.id?e=this.hls.audioTracks[t.id].details:t.type===d&&null!==t.id&&(e=this.hls.subtitleTracks[t.id].details),e){const t=e.partTarget,n=e.targetduration;if(t&&n){const e=1e3*Math.max(3*t,.8*n);r=A({},r,{maxTimeToFirstByteMs:Math.min(e,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(e,r.maxTimeToFirstByteMs)})}}}const a=r.errorRetry||r.timeoutRetry||{},o={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(t,e,n,i)=>{const r=this.getInternalLoader(n);this.resetInternalLoader(n.type);const s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),Nn.isMediaPlaylist(s)||n.type!==u?this.handleTrackOrLevelPlaylist(t,e,n,i||null,r):this.handleMasterPlaylist(t,e,n,i)):this.handleManifestParsingError(t,n,new Error("no EXTM3U delimiter"),i||null,e)},onError:(t,e,n,i)=>{this.handleNetworkError(e,n,!1,t,i)},onTimeout:(t,e,n)=>{this.handleNetworkError(e,n,!0,void 0,t)}};s.load(t,o,l)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:e},forceStartLoad:n}=this.hls;(t||n)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${e}`),this.hls.startLoad(e))}handleMasterPlaylist(t,e,n,i){const r=this.hls,s=t.data,a=Lo(t,n),o=Nn.parseMasterPlaylist(s,a);if(o.playlistParsingError)return void this.handleManifestParsingError(t,n,o.playlistParsingError,i,e);const{contentSteering:u,levels:h,sessionData:c,sessionKeys:d,startTimeOffset:f,variableList:p}=o;this.variableList=p;const{AUDIO:g=[],SUBTITLES:m,"CLOSED-CAPTIONS":v}=Nn.parseMasterPlaylistMedia(s,a,o);if(g.length){g.some((t=>!t.url))||!h[0].audioCodec||h[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new nn({}),bitrate:0,url:""}))}r.trigger(l.MANIFEST_LOADED,{levels:h,audioTracks:g,subtitles:m,captions:v,contentSteering:u,url:a,stats:e,networkDetails:i,sessionData:c,sessionKeys:d,startTimeOffset:f,variableList:p})}handleTrackOrLevelPlaylist(t,e,n,r,s){const a=this.hls,{id:o,level:h,type:c}=n,d=Lo(t,n),f=i(h)?h:i(o)?o:0,p=Ro(n),g=Nn.parseLevelPlaylist(t.data,d,f,p,0,this.variableList);if(c===u){const t={attrs:new nn({}),bitrate:0,details:g,name:"",url:d};g.requestScheduled=e.loading.start+ti(g,0),a.trigger(l.MANIFEST_LOADED,{levels:[t],audioTracks:[],url:d,stats:e,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),n.levelDetails=g,this.handlePlaylistLoaded(g,t,e,n,r,s)}handleManifestParsingError(t,e,n,i,r){this.hls.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.MANIFEST_PARSING_ERROR,fatal:e.type===u,url:t.url,err:n,error:n,reason:n.message,response:t,context:e,networkDetails:i,stats:r})}handleNetworkError(t,e,n=!1,i,r){let s=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===h?s+=`: ${t.level} id: ${t.id}`:t.type!==c&&t.type!==d||(s+=` id: ${t.id} group-id: "${t.groupId}"`);const f=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let p=o.UNKNOWN,g=!1;const m=this.getInternalLoader(t);switch(t.type){case u:p=n?o.MANIFEST_LOAD_TIMEOUT:o.MANIFEST_LOAD_ERROR,g=!0;break;case h:p=n?o.LEVEL_LOAD_TIMEOUT:o.LEVEL_LOAD_ERROR,g=!1;break;case c:p=n?o.AUDIO_TRACK_LOAD_TIMEOUT:o.AUDIO_TRACK_LOAD_ERROR,g=!1;break;case d:p=n?o.SUBTITLE_TRACK_LOAD_TIMEOUT:o.SUBTITLE_LOAD_ERROR,g=!1}m&&this.resetInternalLoader(t.type);const v={type:a.NETWORK_ERROR,details:p,fatal:g,url:t.url,loader:m,context:t,error:f,networkDetails:e,stats:r};if(i){const n=(null==e?void 0:e.url)||t.url;v.response=w({url:n,data:void 0},i)}this.hls.trigger(l.ERROR,v)}handlePlaylistLoaded(t,e,n,i,r,s){const p=this.hls,{type:g,level:m,id:v,groupId:y,deliveryDirectives:A}=i,b=Lo(e,i),w=Ro(i),E="number"==typeof i.level&&w===f?m:void 0;if(!t.fragments.length){const s=t.playlistParsingError=new Error("No Segments found in Playlist");return void p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_EMPTY_ERROR,fatal:!1,url:b,error:s,reason:s.message,response:e,context:i,level:E,parent:w,networkDetails:r,stats:n})}t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));const x=t.playlistParsingError;if(x){if(this.hls.logger.warn(x),!p.config.ignorePlaylistParsingErrors)return void p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:b,error:x,reason:x.message,response:e,context:i,level:E,parent:w,networkDetails:r,stats:n});t.playlistParsingError=null}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),s.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),g){case u:case h:p.trigger(l.LEVEL_LOADED,{details:t,levelInfo:i.levelOrTrack||p.levels[0],level:E||0,id:v||0,stats:n,networkDetails:r,deliveryDirectives:A,withoutMultiVariant:g===u});break;case c:p.trigger(l.AUDIO_TRACK_LOADED,{details:t,track:i.levelOrTrack,id:v||0,groupId:y||"",stats:n,networkDetails:r,deliveryDirectives:A});break;case d:p.trigger(l.SUBTITLE_TRACK_LOADED,{details:t,track:i.levelOrTrack,id:v||0,groupId:y||"",stats:n,networkDetails:r,deliveryDirectives:A})}}}class Po{static get version(){return Ri}static isMSESupported(){return Do()}static isSupported(){return function(){if(!Do())return!1;const t=I();return"function"==typeof(null==t?void 0:t.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((e=>t.isTypeSupported(St(e,"video"))))||["mp4a.40.2","fLaC"].some((e=>t.isTypeSupported(St(e,"audio")))))}()}static getMediaSource(){return I()}static get Events(){return l}static get MetadataSchema(){return $i}static get ErrorTypes(){return a}static get ErrorDetails(){return o}static get DefaultConfig(){return Po.defaultConfig?Po.defaultConfig:fo}static set DefaultConfig(t){Po.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Ii,this._autoLevelCapping=-1,this._maxHdcpLevel=null,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.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const e=this.logger=function(t,e,n){const i=T();if("object"==typeof console&&!0===t||"object"==typeof t){const r=["debug","log","info","warn","error"];r.forEach((e=>{i[e]=C(e,t,n)}));try{i.log(`Debug logs enabled for "${e}" in hls.js version 1.6.5`)}catch(t){return T()}r.forEach((e=>{D[e]=C(e,t)}))}else A(D,i);return i}(t.debug||!1,"Hls instance",t.assetPlayerId),n=this.config=function(t,e,n){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const i=po(t),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((t=>{const s=`${"level"===t?"playlist":t}LoadPolicy`,a=void 0===e[s],o=[];r.forEach((n=>{const r=`${t}Loading${n}`,l=e[r];if(void 0!==l&&a){o.push(r);const t=i[s].default;switch(e[s]={default:t},n){case"TimeOut":t.maxLoadTimeMs=l,t.maxTimeToFirstByteMs=l;break;case"MaxRetry":t.errorRetry.maxNumRetry=l,t.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":t.errorRetry.retryDelayMs=l,t.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":t.errorRetry.maxRetryDelayMs=l,t.timeoutRetry.maxRetryDelayMs=l}}})),o.length&&n.warn(`hls.js config: "${o.join('", "')}" setting(s) are deprecated, use "${s}": ${$t(e[s])}`)})),w(w({},i),e)}(Po.DefaultConfig,t,e);this.userConfig=t,n.progressive&&go(n,e);const{abrController:i,bufferController:r,capLevelController:s,errorController:a,fpsController:o}=n,u=new a(this),h=this.abrController=new i(this),c=new Re(this),d=n.interstitialsController,f=d?this.interstitialsController=new d(this,Po):null,p=this.bufferController=new r(this,c),g=this.capLevelController=new s(this),m=new o(this),v=new Bo(this),y=n.contentSteeringController,b=y?new y(this):null,E=this.levelController=new ko(this,b),x=new Eo(this),k=new Io(this.config),S=this.streamController=new So(this,c,k),I=this.gapController=new mo(this,c);g.setStreamController(S),m.setStreamController(S);const R=[v,E,S];f&&R.splice(1,0,f),b&&R.splice(1,0,b),this.networkControllers=R;const L=[h,p,I,g,m,x,c];this.audioTrackController=this.createController(n.audioTrackController,R);const B=n.audioStreamController;B&&R.push(this.audioStreamController=new B(this,c,k)),this.subtitleTrackController=this.createController(n.subtitleTrackController,R);const P=n.subtitleStreamController;P&&R.push(this.subtititleStreamController=new P(this,c,k)),this.createController(n.timelineController,L),k.emeController=this.emeController=this.createController(n.emeController,L),this.cmcdController=this.createController(n.cmcdController,L),this.latencyController=this.createController(xo,L),this.coreComponents=L,R.push(u);const O=u.onErrorOut;"function"==typeof O&&this.on(l.ERROR,O,u),this.on(l.MANIFEST_LOADED,v.onManifestLoaded,v)}createController(t,e){if(t){const n=new t(this);return e&&e.push(n),n}return null}on(t,e,n=this){this._emitter.on(t,e,n)}once(t,e,n=this){this._emitter.once(t,e,n)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,e,n=this,i){this._emitter.off(t,e,n,i)}listeners(t){return this._emitter.listeners(t)}emit(t,e,n){return this._emitter.emit(t,e,n)}trigger(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),!this.triggeringException){this.triggeringException=!0;const n=t===l.ERROR;this.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,fatal:n,event:t,error:e}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((t=>t.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((t=>t.destroy())),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const e=new Error(`attachMedia failed: invalid argument (${t})`);return void this.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.ATTACH_MEDIA_ERROR,fatal:!0,error:e})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const e="media"in t,n=e?t.media:t,i=e?t:{media:n};this._media=n,this.trigger(l.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(l.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const e=this.media,n=this._url,i=this._url=j.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),e&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(l.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,e){this.logger.log(`startLoad(${t+(e?", ":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n{t.resumeBuffering&&t.resumeBuffering()})))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((t=>{t.pauseBuffering&&t.pauseBuffering()})))}get inFlightFragments(){const t={[f]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[p]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[g]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,e=null==t?void 0:t.currentTime;this.detachMedia(),t&&(this.attachMedia(t),e&&this.startLoad(e))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=function(){try{return crypto.randomUUID()}catch(t){try{const t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch(t){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}}}()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return-1===t&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){(function(t){return qt.indexOf(t)>-1})(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:e}}=this;if(!t)return 0;const n=t.length;for(let i=0;i=e)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:e,maxHdcpLevel:n}=this;let i;if(i=-1===e&&null!=t&&t.length?t.length-1:e,n)for(let e=i;e--;){const i=t[e].attrs["HDCP-LEVEL"];if(i&&i<=n)return e}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var e;return(null==(e=this.audioTrackController)?void 0:e.setAudioOption(t))||null}setSubtitleOption(t){var e;return(null==(e=this.subtitleTrackController)?void 0:e.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const e=this.audioTrackController;e&&(e.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}set subtitleDisplay(t){const e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!(null==(t=this.bufferController)||!t.bufferedToEnd)}get interstitialsManager(){var t;return(null==(t=this.interstitialsController)?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,e=this.allAudioTracks){return Gt(t,ee(e),navigator.mediaCapabilities)}}Po.defaultConfig=void 0}}]);
    \ No newline at end of file
    diff --git a/p__KnowledgeGraphs__Index__index.89547d17.async.js b/p__KnowledgeGraphs__Index__index.89547d17.async.js
    deleted file mode 100644
    index 794a57dc0f..0000000000
    --- a/p__KnowledgeGraphs__Index__index.89547d17.async.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk=self.webpackChunk||[]).push([[8186],{35593:function(t,e,n){"use strict";n.d(e,{Z:function(){return K}});var i=n(20439),r=n(50298),s=n(62646),a=n(43403),o=n(92310),l=n.n(o),u=n(29301),h=n(76846),c=n(96452),d=n(6089),f=n(80402),p=n(34280),g=n(49658),m=n(59301),v=n(14809),y=n(77900),A=n(8654);function b(t){var e=t.prefixCls,n=t.align,i=t.arrow,r=t.arrowPos,s=i||{},a=s.className,o=s.content,u=r.x,h=void 0===u?0:u,c=r.y,d=void 0===c?0:c,f=m.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],y=g[0],A=g[1],b=v[0],w=v[1];y!==b&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=d,A!==w&&["l","r"].includes(A)?"l"===A?p.left=0:p.right=0:p.left=h}return m.createElement("div",{ref:f,className:l()("".concat(e,"-arrow"),a),style:p},o)}function w(t){var e=t.prefixCls,n=t.open,i=t.zIndex,r=t.mask,s=t.motion;return r?m.createElement(y.ZP,(0,v.Z)({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return m.createElement("div",{style:{zIndex:i},className:l()("".concat(e,"-mask"),n)})})):null}var E=m.memo((function(t){return t.children}),(function(t,e){return e.cache}));var x=m.forwardRef((function(t,e){var n=t.popup,s=t.className,a=t.prefixCls,o=t.style,h=t.target,c=t.onVisibleChanged,d=t.open,f=t.keepDom,g=t.fresh,x=t.onClick,k=t.mask,T=t.arrow,C=t.arrowPos,D=t.align,S=t.motion,I=t.maskMotion,R=t.forceRender,L=t.getPopupContainer,B=t.autoDestroy,P=t.portal,O=t.zIndex,M=t.onMouseEnter,N=t.onMouseLeave,F=t.onPointerEnter,_=t.ready,U=t.offsetX,z=t.offsetY,j=t.offsetR,G=t.offsetB,H=t.onAlign,Q=t.onPrepare,q=t.stretch,V=t.targetWidth,Y=t.targetHeight,K="function"==typeof n?n():n,X=d||f,W=(null==L?void 0:L.length)>0,Z=m.useState(!L||!W),J=(0,r.Z)(Z,2),$=J[0],tt=J[1];if((0,p.Z)((function(){!$&&W&&h&&tt(!0)}),[$,W,h]),!$)return null;var et="auto",nt={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(_||!d){var it,rt=D.points,st=D.dynamicInset||(null===(it=D._experimental)||void 0===it?void 0:it.dynamicInset),at=st&&"r"===rt[0][1],ot=st&&"b"===rt[0][0];at?(nt.right=j,nt.left=et):(nt.left=U,nt.right=et),ot?(nt.bottom=G,nt.top=et):(nt.top=z,nt.bottom=et)}var lt={};return q&&(q.includes("height")&&Y?lt.height=Y:q.includes("minHeight")&&Y&&(lt.minHeight=Y),q.includes("width")&&V?lt.width=V:q.includes("minWidth")&&V&&(lt.minWidth=V)),d||(lt.pointerEvents="none"),m.createElement(P,{open:R||X,getContainer:L&&function(){return L(h)},autoDestroy:B},m.createElement(w,{prefixCls:a,open:d,zIndex:O,mask:k,motion:I}),m.createElement(u.Z,{onResize:H,disabled:!d},(function(t){return m.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:R,leavedClassName:"".concat(a,"-hidden")},S,{onAppearPrepare:Q,onEnterPrepare:Q,visible:d,onVisibleChanged:function(t){var e;null==S||null===(e=S.onVisibleChanged)||void 0===e||e.call(S,t),c(t)}}),(function(n,r){var u=n.className,h=n.style,c=l()(a,u,s);return m.createElement("div",{ref:(0,A.sQ)(t,e,r),className:c,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},nt),lt),h),{},{boxSizing:"border-box",zIndex:O},o),onMouseEnter:M,onMouseLeave:N,onPointerEnter:F,onClick:x},T&&m.createElement(b,{prefixCls:a,arrow:T,arrowPos:C,align:D}),m.createElement(E,{cache:!d&&!g},K))}))})))}));var k=m.forwardRef((function(t,e){var n=t.children,i=t.getTriggerDOMNode,r=(0,A.Yr)(n),s=m.useCallback((function(t){(0,A.mH)(e,i?i(t):t)}),[i]),a=(0,A.x1)(s,n.ref);return r?m.cloneElement(n,{ref:a}):n})),T=m.createContext(null);function C(t){return t?Array.isArray(t)?t:[t]:[]}function D(t,e,n,i){return m.useMemo((function(){var r=C(null!=n?n:e),s=C(null!=i?i:e),a=new Set(r),o=new Set(s);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[a,o]}),[t,e,n,i])}var S=n(29194);function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function R(t,e,n,i){for(var r=n.points,s=Object.keys(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function M(t){return O(parseFloat(t),0)}function N(t,e){var n=(0,i.Z)({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=B(t).getComputedStyle(t),i=e.overflow,r=e.overflowClipMargin,s=e.borderTopWidth,a=e.borderBottomWidth,o=e.borderLeftWidth,l=e.borderRightWidth,u=t.getBoundingClientRect(),h=t.offsetHeight,c=t.clientHeight,d=t.offsetWidth,f=t.clientWidth,p=M(s),g=M(a),m=M(o),v=M(l),y=O(Math.round(u.width/d*1e3)/1e3),A=O(Math.round(u.height/h*1e3)/1e3),b=(d-f-m-v)*y,w=(h-c-p-g)*A,E=p*A,x=g*A,k=m*y,T=v*y,C=0,D=0;if("clip"===i){var S=M(r);C=S*y,D=S*A}var I=u.x+k-C,R=u.y+E-D,L=I+u.width+2*C-k-T-b,P=R+u.height+2*D-E-x-w;n.left=Math.max(n.left,I),n.top=Math.max(n.top,R),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,P)}})),n}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),i=n.match(/^(.*)\%$/);return i?t*(parseFloat(i[1])/100):parseFloat(n)}function _(t,e){var n=e||[],i=(0,r.Z)(n,2),s=i[0],a=i[1];return[F(t.width,s),F(t.height,a)]}function U(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function z(t,e){var n,i=e[0],r=e[1];return n="t"===i?t.y:"b"===i?t.y+t.height:t.y+t.height/2,{x:"l"===r?t.x:"r"===r?t.x+t.width:t.x+t.width/2,y:n}}function j(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,i){return i===e?n[t]||"c":t})).join("")}function G(t,e,n,s,a,o,l){var u=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[s]||{}}),c=(0,r.Z)(u,2),f=c[0],g=c[1],v=m.useRef(0),y=m.useMemo((function(){return e?P(e):[]}),[e]),A=m.useRef({});t||(A.current={});var b=(0,d.Z)((function(){if(e&&n&&t){var u,c,d,f=e,p=f.ownerDocument,m=B(f).getComputedStyle(f),v=m.width,b=m.height,w=m.position,E=f.style.left,x=f.style.top,k=f.style.right,T=f.style.bottom,C=f.style.overflow,D=(0,i.Z)((0,i.Z)({},a[s]),o),I=p.createElement("div");if(null===(u=f.parentElement)||void 0===u||u.appendChild(I),I.style.left="".concat(f.offsetLeft,"px"),I.style.top="".concat(f.offsetTop,"px"),I.style.position=w,I.style.height="".concat(f.offsetHeight,"px"),I.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var R=n.getBoundingClientRect();d={x:R.x,y:R.y,width:R.width,height:R.height}}var L=f.getBoundingClientRect(),P=p.documentElement,M=P.clientWidth,F=P.clientHeight,G=P.scrollWidth,H=P.scrollHeight,Q=P.scrollTop,q=P.scrollLeft,V=L.height,Y=L.width,K=d.height,X=d.width,W={left:0,top:0,right:M,bottom:F},Z={left:-q,top:-Q,right:G-q,bottom:H-Q},J=D.htmlRegion,$="visible",tt="visibleFirst";"scroll"!==J&&J!==tt&&(J=$);var et=J===tt,nt=N(Z,y),it=N(W,y),rt=J===$?it:nt,st=et?it:rt;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var at=f.getBoundingClientRect();f.style.left=E,f.style.top=x,f.style.right=k,f.style.bottom=T,f.style.overflow=C,null===(c=f.parentElement)||void 0===c||c.removeChild(I);var ot=O(Math.round(Y/parseFloat(v)*1e3)/1e3),lt=O(Math.round(V/parseFloat(b)*1e3)/1e3);if(0===ot||0===lt||(0,h.Sh)(n)&&!(0,S.Z)(n))return;var ut=D.offset,ht=D.targetOffset,ct=_(L,ut),dt=(0,r.Z)(ct,2),ft=dt[0],pt=dt[1],gt=_(d,ht),mt=(0,r.Z)(gt,2),vt=mt[0],yt=mt[1];d.x-=vt,d.y-=yt;var At=D.points||[],bt=(0,r.Z)(At,2),wt=bt[0],Et=U(bt[1]),xt=U(wt),kt=z(d,Et),Tt=z(L,xt),Ct=(0,i.Z)({},D),Dt=kt.x-Tt.x+ft,St=kt.y-Tt.y+pt;function we(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt,i=L.x+t,r=L.y+e,s=i+Y,a=r+V,o=Math.max(i,n.left),l=Math.max(r,n.top),u=Math.min(s,n.right),h=Math.min(a,n.bottom);return Math.max(0,(u-o)*(h-l))}var It,Rt,Lt,Bt,Pt=we(Dt,St),Ot=we(Dt,St,it),Mt=z(d,["t","l"]),Nt=z(L,["t","l"]),Ft=z(d,["b","r"]),_t=z(L,["b","r"]),Ut=D.overflow||{},zt=Ut.adjustX,jt=Ut.adjustY,Gt=Ut.shiftX,Ht=Ut.shiftY,Qt=function(t){return"boolean"==typeof t?t:t>=0};function Ee(){It=L.y+St,Rt=It+V,Lt=L.x+Dt,Bt=Lt+Y}Ee();var qt=Qt(jt),Vt=xt[0]===Et[0];if(qt&&"t"===xt[0]&&(Rt>st.bottom||A.current.bt)){var Yt=St;Vt?Yt-=V-K:Yt=Mt.y-_t.y-pt;var Kt=we(Dt,Yt),Xt=we(Dt,Yt,it);Kt>Pt||Kt===Pt&&(!et||Xt>=Ot)?(A.current.bt=!0,St=Yt,pt=-pt,Ct.points=[j(xt,0),j(Et,0)]):A.current.bt=!1}if(qt&&"b"===xt[0]&&(ItPt||Zt===Pt&&(!et||Jt>=Ot)?(A.current.tb=!0,St=Wt,pt=-pt,Ct.points=[j(xt,0),j(Et,0)]):A.current.tb=!1}var $t=Qt(zt),te=xt[1]===Et[1];if($t&&"l"===xt[1]&&(Bt>st.right||A.current.rl)){var ee=Dt;te?ee-=Y-X:ee=Mt.x-_t.x-ft;var ne=we(ee,St),ie=we(ee,St,it);ne>Pt||ne===Pt&&(!et||ie>=Ot)?(A.current.rl=!0,Dt=ee,ft=-ft,Ct.points=[j(xt,1),j(Et,1)]):A.current.rl=!1}if($t&&"r"===xt[1]&&(LtPt||se===Pt&&(!et||ae>=Ot)?(A.current.lr=!0,Dt=re,ft=-ft,Ct.points=[j(xt,1),j(Et,1)]):A.current.lr=!1}Ee();var oe=!0===Gt?0:Gt;"number"==typeof oe&&(Ltit.right&&(Dt-=Bt-it.right-ft,d.x>it.right-oe&&(Dt+=d.x-it.right+oe)));var le=!0===Ht?0:Ht;"number"==typeof le&&(Itit.bottom&&(St-=Rt-it.bottom-pt,d.y>it.bottom-le&&(St+=d.y-it.bottom+le)));var ue=L.x+Dt,he=ue+Y,ce=L.y+St,de=ce+V,fe=d.x,pe=fe+X,ge=d.y,me=ge+K,ve=(Math.max(ue,fe)+Math.min(he,pe))/2-ue,ye=(Math.max(ce,ge)+Math.min(de,me))/2-ce;null==l||l(e,Ct);var Ae=at.right-L.x-(Dt+L.width),be=at.bottom-L.y-(St+L.height);g({ready:!0,offsetX:Dt/ot,offsetY:St/lt,offsetR:Ae/ot,offsetB:be/lt,arrowX:ve/ot,arrowY:ye/lt,scaleX:ot,scaleY:lt,align:Ct})}})),w=function(){g((function(t){return(0,i.Z)((0,i.Z)({},t),{},{ready:!1})}))};return(0,p.Z)(w,[s]),(0,p.Z)((function(){t||w()}),[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var t=v.current;Promise.resolve().then((function(){v.current===t&&b()}))}]}var H=n(95190);function Q(t,e,n,i,r){(0,p.Z)((function(){if(t&&e&&n){var s=n,a=P(e),o=P(s),l=B(s),u=new Set([l].concat((0,H.Z)(a),(0,H.Z)(o)));function h(){i(),r()}return u.forEach((function(t){t.addEventListener("scroll",h,{passive:!0})})),l.addEventListener("resize",h,{passive:!0}),i(),function(){u.forEach((function(t){t.removeEventListener("scroll",h),l.removeEventListener("resize",h)}))}}}),[t,e,n])}n(48736);var q=n(16089);function V(t,e,n,i,s,a,o,l){var u=m.useRef(t),h=m.useRef(!1);u.current!==t&&(h.current=!0,u.current=t),m.useEffect((function(){var t=(0,q.Z)((function(){h.current=!1}));return function(){q.Z.cancel(t)}}),[t]),m.useEffect((function(){if(e&&i&&(!s||a)){var t=function(){var t=!1;return[function(e){var n=e.target;t=o(n)},function(e){var n=e.target;h.current||!u.current||t||o(n)||l(!1)}]},d=t(),f=(0,r.Z)(d,2),p=f[0],g=f[1],m=t(),v=(0,r.Z)(m,2),y=v[0],A=v[1],b=B(i);b.addEventListener("mousedown",p,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0);var w=(0,c.A)(n);return w&&(w.addEventListener("mousedown",y,!0),w.addEventListener("click",A,!0),w.addEventListener("contextmenu",A,!0)),function(){b.removeEventListener("mousedown",p,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0),w&&(w.removeEventListener("mousedown",y,!0),w.removeEventListener("click",A,!0),w.removeEventListener("contextmenu",A,!0))}}}),[e,n,i,s,a])}var Y=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var K=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,e=m.forwardRef((function(e,n){var a=e.prefixCls,o=void 0===a?"rc-trigger-popup":a,v=e.children,y=e.action,A=void 0===y?"hover":y,b=e.showAction,w=e.hideAction,E=e.popupVisible,C=e.defaultPopupVisible,S=e.onPopupVisibleChange,I=e.afterPopupVisibleChange,B=e.mouseEnterDelay,P=e.mouseLeaveDelay,O=void 0===P?.1:P,M=e.focusDelay,N=e.blurDelay,F=e.mask,_=e.maskClosable,U=void 0===_||_,z=e.getPopupContainer,j=e.forceRender,H=e.autoDestroy,q=e.destroyPopupOnHide,K=e.popup,X=e.popupClassName,W=e.popupStyle,Z=e.popupPlacement,J=e.builtinPlacements,$=void 0===J?{}:J,tt=e.popupAlign,et=e.zIndex,nt=e.stretch,it=e.getPopupClassNameFromAlign,rt=e.fresh,st=e.alignPoint,at=e.onPopupClick,ot=e.onPopupAlign,lt=e.arrow,ut=e.popupMotion,ht=e.maskMotion,ct=e.popupTransitionName,dt=e.popupAnimation,ft=e.maskTransitionName,pt=e.maskAnimation,gt=e.className,mt=e.getTriggerDOMNode,vt=(0,s.Z)(e,Y),yt=H||q||!1,At=m.useState(!1),bt=(0,r.Z)(At,2),wt=bt[0],Et=bt[1];(0,p.Z)((function(){Et((0,g.Z)())}),[]);var xt=m.useRef({}),kt=m.useContext(T),Tt=m.useMemo((function(){return{registerSubPopup:function(t,e){xt.current[t]=e,null==kt||kt.registerSubPopup(t,e)}}}),[kt]),Ct=(0,f.Z)(),Dt=m.useState(null),St=(0,r.Z)(Dt,2),It=St[0],Rt=St[1],Lt=(0,d.Z)((function(t){(0,h.Sh)(t)&&It!==t&&Rt(t),null==kt||kt.registerSubPopup(Ct,t)})),Bt=m.useState(null),Pt=(0,r.Z)(Bt,2),Ot=Pt[0],Mt=Pt[1],Nt=m.useRef(null),Ft=(0,d.Z)((function(t){(0,h.Sh)(t)&&Ot!==t&&(Mt(t),Nt.current=t)})),_t=m.Children.only(v),Ut=(null==_t?void 0:_t.props)||{},zt={},jt=(0,d.Z)((function(t){var e,n,i=Ot;return(null==i?void 0:i.contains(t))||(null===(e=(0,c.A)(i))||void 0===e?void 0:e.host)===t||t===i||(null==It?void 0:It.contains(t))||(null===(n=(0,c.A)(It))||void 0===n?void 0:n.host)===t||t===It||Object.values(xt.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),Gt=L(o,ut,dt,ct),Ht=L(o,ht,pt,ft),Qt=m.useState(C||!1),qt=(0,r.Z)(Qt,2),Vt=qt[0],Yt=qt[1],Kt=null!=E?E:Vt,Xt=(0,d.Z)((function(t){void 0===E&&Yt(t)}));(0,p.Z)((function(){Yt(E||!1)}),[E]);var Wt=m.useRef(Kt);Wt.current=Kt;var Zt=m.useRef([]);Zt.current=[];var Jt=(0,d.Z)((function(t){var e;Xt(t),(null!==(e=Zt.current[Zt.current.length-1])&&void 0!==e?e:Kt)!==t&&(Zt.current.push(t),null==S||S(t))})),$t=m.useRef(),te=function(){clearTimeout($t.current)},ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;te(),0===e?Jt(t):$t.current=setTimeout((function(){Jt(t)}),1e3*e)};m.useEffect((function(){return te}),[]);var ne=m.useState(!1),ie=(0,r.Z)(ne,2),re=ie[0],se=ie[1];(0,p.Z)((function(t){t&&!Kt||se(!0)}),[Kt]);var ae=m.useState(null),oe=(0,r.Z)(ae,2),le=oe[0],ue=oe[1],he=m.useState([0,0]),ce=(0,r.Z)(he,2),de=ce[0],fe=ce[1],pe=function(t){fe([t.clientX,t.clientY])},ge=G(Kt,It,st?de:Ot,Z,$,tt,ot),me=(0,r.Z)(ge,11),ve=me[0],ye=me[1],Ae=me[2],be=me[3],we=me[4],Ee=me[5],xe=me[6],ke=me[7],Te=me[8],Ce=me[9],De=me[10],Se=D(wt,A,b,w),Ie=(0,r.Z)(Se,2),Re=Ie[0],Le=Ie[1],Be=Re.has("click"),Pe=Le.has("click")||Le.has("contextMenu"),Oe=(0,d.Z)((function(){re||De()}));Q(Kt,Ot,It,Oe,(function(){Wt.current&&st&&Pe&&ee(!1)})),(0,p.Z)((function(){Oe()}),[de,Z]),(0,p.Z)((function(){!Kt||null!=$&&$[Z]||Oe()}),[JSON.stringify(tt)]);var Me=m.useMemo((function(){var t=R($,o,Ce,st);return l()(t,null==it?void 0:it(Ce))}),[Ce,it,$,o,st]);m.useImperativeHandle(n,(function(){return{nativeElement:Nt.current,forceAlign:Oe}}));var Ne=m.useState(0),Fe=(0,r.Z)(Ne,2),_e=Fe[0],Ue=Fe[1],ze=m.useState(0),je=(0,r.Z)(ze,2),Ge=je[0],He=je[1],Qe=function(){if(nt&&Ot){var t=Ot.getBoundingClientRect();Ue(t.width),He(t.height)}};function qe(t,e,n,i){zt[t]=function(r){var s;null==i||i(r),ee(e,n);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l1?n-1:0),r=1;r1?n-1:0),r=1;r","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n")},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {","\t$0","}"].join("\n")},{label:"if",content:["if () {","\t$0","}"].join("\n")},{label:"for",content:["for(int j=0 ; j<10; j++){","\t$0","}"].join("\n")},{label:"trycatch",content:["try{","\t$0","}catch(ExceptionName e){","}"].join("\n")},{label:"using namespace std;",content:["using namespace std;"].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")}]},I={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("\n")}]},R={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join("\n")}]},L=n(53184),B=n.n(L),P={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"]}};var O=n(82100),M=n.n(O),N=n(29186),F=n.n(N),_=n(85573),U=n.n(_),z=function(){function t(e,n,i){var r=this;M()(this,t),this.placeholder=e,this.editor=n,this.monaco=i,n.onDidChangeModelContent((function(){return r.onDidChangeModelContent()})),this.onDidChangeModelContent()}return F()(t,[{key:"onDidChangeModelContent",value:function(){""===this.editor.getValue()?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}},{key:"getId",value:function(){return t.ID}},{key:"getDomNode",value:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}},{key:"getPosition",value:function(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}},{key:"dispose",value:function(){this.editor.removeContentWidget(this)}}]),t}();U()(z,"ID","editor.widget.placeholderHint");var j=z,G=n(96236),H=n(8591),Q=n(6848),q=n(89392),V=n(1499),Y=n(56102),K=n(37712),X=["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"];function W(t){return/^\d+$/.test(t)?"".concat(t,"px"):t}function Z(){}var J={"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",Scala:"scale",solidity:"sol"};function $(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t;if(Array.isArray(t)){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(!t||""===t.trim())return!0;for(var n=wt.current.instance.getModel(),i=n.getLineTokens(e),r=!1,s=0;s<2;s++)1===i.getStandardTokenType(s)&&(r=!0);return r};function Ot(t){(window.navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)&&83==t.keyCode&&(t.preventDefault(),N())}(0,c.useEffect)((function(){var t,e=null===(t=wt.current)||void 0===t?void 0:t.instance;if(e&&Lt&&z){var n=e.onDidBlurEditorWidget((function(){St.current=!1})),i=e.onDidFocusEditorText((function(){St.current=!0}));return function(){n.dispose(),i.dispose()}}}),[wt.current,Lt,z]),(0,c.useEffect)((function(){var t;if(null!==(t=wt.current)&&void 0!==t&&t.instance&&Lt&&vt){var e=wt.current.instance,n=e.getModel();if(!n)return;!function(){var t,i=[],r=[],s=n.getAllDecorations(),a=E()(s);try{for(a.s();!(t=a.n()).done;){var o,l=t.value;if("highlighted-line"===l.options.className)i.push(null==l||null===(o=l.range)||void 0===o?void 0:o.startLineNumber),r.push(null==l?void 0:l.id)}}catch(t){a.e(t)}finally{a.f()}if(gt!==i[0]){n.deltaDecorations(r,[]);var u=n.getLineCount();gt&><=u&&(e.deltaDecorations([],[{range:new tt.Range(gt,1,gt,n.getLineMaxColumn(gt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),e.revealLineInCenter(gt))}}();var i=function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=[],r=[],s=n.getAllDecorations(),a=E()(s);try{for(a.s();!(t=a.n()).done;){var o,l=t.value;if("breakpoints-select"===l.options.linesDecorationsClassName)i.push(null==l||null===(o=l.range)||void 0===o?void 0:o.startLineNumber),r.push(null==l?void 0:l.id)}}catch(t){a.e(t)}finally{a.f()}if(e)return{lines:i,ids:r};ot(i)},r=function(){var t=l()(a()().mark((function t(e){var r;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={range:new tt.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}},t.next=3,n.deltaDecorations([],[r]);case 3:i();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),s=function(){var t=l()(a()().mark((function t(r){var s,o,l,u,h;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=[],o=e.getLineDecorations(r),l=E()(o);try{for(l.s();!(u=l.n()).done;)"breakpoints-select"===(h=u.value).options.linesDecorationsClassName&&s.push(h.id)}catch(t){l.e(t)}finally{l.f()}return t.next=6,n.deltaDecorations(s,[]);case 6:i();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),o=function(t){var n,i=e.getLineDecorations(t),r=E()(i);try{for(r.s();!(n=r.n()).done;){if("breakpoints-select"===n.value.options.linesDecorationsClassName)return!0}}catch(t){r.e(t)}finally{r.f()}return!1};if(!(0,q.isEqual)(ut,i(!0).lines)){n.deltaDecorations(i(!0).ids,[]);var u=ut.map((function(t){return{range:new tt.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}}));n.deltaDecorations([],u)}var h=e.onDidChangeModelContent((function(t){var a=e.getPosition();if(a){var l=a.lineNumber;clearTimeout(Dt.current),Dt.current=setTimeout((function(){Pt(n.getLineContent(l),l)?s(l):o(l)?(s(l),r(l)):i()}),100)}})),c=e.onMouseDown((function(t){var e;if(t.target.detail&&null!==(e=t.target)&&void 0!==e&&null!==(e=e.element)&&void 0!==e&&null!==(e=e.className)&&void 0!==e&&e.includes("line-numbers")){var i=t.target.position.lineNumber;if(Pt(n.getLineContent(i),i))return;o(i)?s(i):r(i)}})),d=function(){kt.current=e.deltaDecorations(kt.current,[])},f=e.onMouseMove((function(t){var i;if(d(),t.target.detail&&null!==(i=t.target)&&void 0!==i&&null!==(i=i.element)&&void 0!==i&&null!==(i=i.className)&&void 0!==i&&i.includes("line-numbers")){var r=t.target.position.lineNumber;if(Pt(n.getLineContent(r),r))return;!function(t){var n={range:new tt.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kt.current=e.deltaDecorations(kt.current,[n])}(r)}})),p=e.onMouseLeave((function(){d()}));return function(){h.dispose(),c.dispose(),f.dispose(),p.dispose()}}}),[wt.current,Lt,ut,gt,vt,f]),(0,c.useEffect)((function(){var t;null!==(t=wt.current)&&void 0!==t&&t.instance&&vt&&wt.current.instance.setPosition({lineNumber:0,column:0})}),[gt]);var Mt=function(){if(_&&wt.current.instance){var t=wt.current.instance.getContentHeight();Qt(t0||i.target.offsetWidth>0)&&wt.current.instance.layout()}}catch(t){n.e(t)}finally{n.f()}}))).observe(bt.current),t}();return At&&"string"==typeof At&&new j(At,e,tt),Bt(!0),function(){var t=wt.current.instance;t.dispose();var e=t.getModel();e&&e.dispose(),wt.current.subscription&&wt.current.subscription.dispose(),r.unobserve(bt.current)}}catch(t){}}))}),[]),(0,c.useEffect)((function(){if(wt.current.instance&&Lt)return document.addEventListener("keydown",Ot,!1),function(){document.removeEventListener("keydown",Ot)}}),[N,Lt]),(0,c.useEffect)((function(){var t=wt.current.instance;if(t&&Lt){var e=$(f);tt.editor.setModelLanguage(t.getModel(),e)}}),[f,Lt]),(0,c.useEffect)((function(){wt.current.instance&&Lt&&tt.editor.setTheme(x)}),[x,Lt]),(0,c.useEffect)((function(){var t=wt.current.instance;Et.current=v,t&&Lt&&(t.updateOptions(r()({},v)),setTimeout((function(){t.getModel().updateOptions(r()({},v))}),200))}),[JSON.stringify(v),Lt]),(0,c.useEffect)((function(){var t=wt.current.instance;t&&Lt&&t.layout()}),[i,o,Lt]);var _t=(0,c.useState)(W(i)),Ut=h()(_t,2),zt=Ut[0],jt=(Ut[1],(0,c.useState)(W(o))),Gt=h()(jt,2),Ht=Gt[0],Qt=Gt[1],qt=r()(r()({},g),{},{width:zt,height:Ht,position:"relative"});return(0,K.jsx)("div",{className:"my-monaco-editor",ref:bt,style:qt,children:M&&(0,K.jsx)(Y.CopyToClipboard,{text:u,onCopy:function(){return H.ZP.success("复制成功")},children:(0,K.jsx)(Q.Z,{title:"复制代码",children:(0,K.jsxs)("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"},children:[(0,K.jsx)("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," 复制代码"]})})})})};var nt=n(1079),it=n(26613),rt=n(46172),st=n(67390),at=n(78318),ot=function(t){var e,n,i,s,o,u,p=t.editOffice,g=void 0===p?"view":p,m=t.data,v=(t.theme,t.type),A=t.filename,b=t.monacoEditor,w=t.className,E=t.style,x=t.close,k=t.onClose,T=t.hasMask,C=t.disabledDownload,D=t.onImgDimensions,S=t.showNodata,I=t.recordInfo,R=(0,c.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),L=h()(R,2),B=(L[0],L[1],(0,c.useState)("")),P=h()(B,2),O=(P[0],P[1]),M=(0,c.useState)(),N=h()(M,2),F=N[0],_=N[1],U="build"===window.ENV?"/react/build":"",z=location.host.startsWith("localhost")?st.Z.PROXY_SERVER:st.Z.API_SERVER,j=(0,c.useRef)();null!==(e=m)&&void 0!==e&&e.startsWith("/api")&&"txt"!==v&&(m=st.Z.API_SERVER+m);A&&b&&(b.filename=A),(0,c.useEffect)((function(){var t,e=null===(t=document.cookie)||void 0===t||null===(t=t.replace(/\s/g,""))||void 0===t?void 0:t.split(";");null==e||e.map((function(t){var e=t.split("=");"_educoder_session"===e[0]&&O(e[1])}))}),[]),(0,c.useEffect)((function(){var t;"office"===v&&(m.indexOf("bigfilescdn.")>-1||m.indexOf("bigfiles1")>-1?_({url:m,fileType:(t=m,t.substring(t.lastIndexOf("/")+1).split(".").pop()),model:m.indexOf("model=edit")?"edit":"view"}):G())}),[v,m]);var G=function(){var t=l()(a()().mark((function t(){var e,n,i;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("data:",m),e=m,m.startsWith("http")||(e=location.origin+e),n=new URL(e).pathname.split("/").pop(),t.next=6,(0,it.gJ)({attachment_id:n});case 6:(i=t.sent).url=z+i.url,_(i);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),H=function(){m.startsWith("http")||m.startsWith("blob:")?q():(0,nt.Sv)(A||"educoder",m,A)},q=function(){I&&(0,at.fc)({id:null==I?void 0:I.id,watch_type:1,course_id:null==I?void 0:I.course_id}),(0,nt.Nd)(A||"educoder",decodeURIComponent(m))};return(0,K.jsxs)("div",{style:r()({},E||{}),className:"".concat(T&&d.bgBlack," ").concat(v?d.wrp:"hide"),children:[x&&(0,K.jsxs)("div",{className:d.close,ref:j,children:[!!D&&(0,K.jsx)(Q.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return j.current},children:(0,K.jsx)("span",{onClick:function(){k(),D()},children:(0,K.jsx)("i",{className:"icon-yulanpizhu"})})}),!C&&(0,K.jsx)(Q.Z,{title:"点击下载此文件",getPopupContainer:function(){return j.current},children:(0,K.jsx)("span",{onClick:q,children:(0,K.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,K.jsx)(Q.Z,{title:"关闭",getPopupContainer:function(){return j.current},children:(0,K.jsx)("span",{className:"",onClick:k,children:(0,K.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,K.jsx)("div",{className:"".concat(d[w]," ").concat(w," ").concat(d.monaco," ").concat("txt"===v?"show":"hide"),children:"txt"===v&&(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(et,r()({},b))})}),"audio"===v&&(0,K.jsx)("audio",{src:"".concat((null===(n=m)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(i=m)||void 0===i?void 0:i.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(m),autoPlay:!0}),"video"===v&&(0,K.jsx)(K.Fragment,{children:(null===(s=m)||void 0===s?void 0:s.indexOf("http"))>-1?(0,K.jsx)("video",{controls:!0,src:"".concat(m),autoPlay:!0}):(0,K.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(m),autoPlay:!0})}),"office"===v&&F&&(0,K.jsx)("iframe",{src:"".concat(U,"/office.html?key=").concat(F.key,"&url=").concat(btoa(F.url),"&callbackUrl=").concat(z+(F.callbackUrl||""),"&fileType=").concat(F.fileType,"&title=").concat(F.title||"","&model=").concat(g,"&officeServer=").concat(st.Z.ONLYOFFICE,"&disabledDownload=").concat(!!C)}),"html"===v&&(0,K.jsx)("iframe",{src:m+"&disposition=inline"}),"pdf"===v&&(0,K.jsx)("iframe",{src:"".concat(U,"/js/pdfview/index.html?filename=").concat(A||"educoder.pdf","&url=").concat(encodeURIComponent(m),"&disabledDownload=").concat(!!C)}),"image"===v&&(0,K.jsx)("img",{src:"".concat((null===(o=m)||void 0===o?void 0:o.indexOf("http://"))>-1||(null===(u=m)||void 0===u?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(m)}),("other"===v||"download"===v)&&(0,K.jsx)(K.Fragment,{children:S?(0,K.jsx)(rt.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,K.jsx)(f.ZP,{icon:(0,K.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:H,disabled:C,children:"下载"})}):(0,K.jsxs)(f.ZP,{type:"primary",size:"middle",onClick:H,disabled:C,children:[(0,K.jsx)(y,{}),"点击下载"]})})]})}},5627:function(t,e,n){"use strict";n.d(e,{Z:function(){return q}});var i=n(82242),r=n.n(i),s=n(37205),a=n.n(s),o=n(91232),l=n.n(o),u=n(79800),h=n.n(u),c=n(59301),d=(n(8944),n(32834)),f=n.n(d),p=n(11690),g=1;var m=[],v=["
      "],y=new(f().Renderer),A=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){m.length=0,v=[""),v.join("")}var k={heading:function(t){var e=A.exec(t);if(g+=1,e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},fences:function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:h()(e,1)[0].length>=i.length?t.slice(i.length):t})).join("\n")}(n,e[3]||""),r=e[2]?e[2].trim():e[2];if(["latex","katex","math"].indexOf(r)>=0){var s=D(),a=i;i=s,S[s]={type:"block",expression:a}}return{type:"code",raw:n,lang:r,text:i}}}},T=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,D=function(){return"__special_katext_id_".concat(C++,"__")},S={};function I(){return S}function R(){C=0,S={}}function L(t){return t=t.replace(T,(function(t,e){var n=D();return S[n]={type:"inline",expression:e},n}))}var B=y.listitem;y.listitem=function(t){return B(L(t))};var P=y.paragraph;y.paragraph=function(t){return P(L(t))};var O=y.tablecell;y.tablecell=function(t,e){return O(L(t),e)},y.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"

      ".concat(t,"

      "):'
      ').concat(n?t:(0,p.escape)(t,!0),"
      \n"):'
      '+(n?t:(0,p.escape)(t,!0))+"
      "},y.heading=function(t,e,n){var i=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return m.push({anchor:i,level:e,text:t}),"'+t+""},f().setOptions({silent:!0,gfm:!0,pedantic:!1}),f().use({tokenizer:k,renderer:y});var M=f(),N=(n(64018),n(15360)),F=n(67390),_=(n(1079),n(15342)),U=n(1012),z=n(97562),j=n(37712),G=function(t){var e=t.html,n=(0,c.useRef)(null),i=(0,c.useRef)(null);return(0,c.useEffect)((function(){var t=n.current.attachShadow({mode:"open"});i.current=document.createElement("div"),i.current.className="markdown-body",i.current.innerHTML=e,t.appendChild(i.current);var r=document.createElement("style");return r.textContent='.markdown-body p {\n margin: 0 0 16px 0 !important;\n line-height: 28px;\n white-space: pre-wrap;\n }\n\n ol,\n ul,\n li {\n list-style-type: none\n }\n\n ol,\n ul,\n dl {\n margin-bottom: 0px;\n }\n\n .markdown-body {\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n color: #333;\n overflow: hidden;\n font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;\n word-break: break-word;\n font-size: 16px;\n line-height: 1.6;\n white-space: normal;\n word-wrap: break-word;\n position: relative;\n }\n\n .markdown-body ul>li {\n list-style-type: disc;\n }\n\n .markdown-body ol>li {\n list-style-type: decimal;\n }\n\n .markdown-body a {\n background: transparent;\n }\n\n .markdown-body a:active,\n .markdown-body a:hover {\n outline: 0;\n }\n\n .markdown-body strong {\n font-weight: bold;\n }\n\n .markdown-body h1 {\n font-size: 2em;\n margin: 0.67em 0;\n }\n\n .markdown-body img {\n border: 0;\n }\n\n .markdown-body hr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n }\n\n .markdown-body pre {\n overflow: auto;\n }\n\n .markdown-body code,\n .markdown-body kbd,\n .markdown-body pre {\n font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;\n font-size: 1em;\n }\n\n .markdown-body input {\n color: inherit;\n font: inherit;\n margin: 0;\n }\n\n .markdown-body html input[disabled] {\n cursor: default;\n }\n\n .markdown-body input {\n line-height: normal;\n }\n\n .markdown-body input[type="checkbox"] {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n padding: 0;\n }\n\n .markdown-body table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n .markdown-body td,\n .markdown-body th {\n padding: 0;\n }\n\n .markdown-body * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .markdown-body input {\n font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";\n }\n\n .markdown-body a {\n color: #4183c4;\n text-decoration: none;\n }\n\n .markdown-body a:hover,\n .markdown-body a:active {\n text-decoration: underline;\n }\n\n .markdown-body hr {\n height: 0;\n margin: 15px 0;\n overflow: hidden;\n background: transparent;\n border: 0;\n border-bottom: 1px solid #ddd;\n }\n\n .markdown-body hr:before {\n display: table;\n content: "";\n }\n\n .markdown-body hr:after {\n display: table;\n clear: both;\n content: "";\n }\n\n .markdown-body h1,\n .markdown-body h2,\n .markdown-body h3,\n .markdown-body h4,\n .markdown-body h5,\n .markdown-body h6 {\n margin-top: 15px;\n margin-bottom: 15px;\n line-height: 1.1;\n }\n\n .markdown-body h1 {\n font-size: 30px;\n }\n\n .markdown-body h2 {\n font-size: 21px;\n }\n\n .markdown-body h3 {\n font-size: 16px;\n }\n\n .markdown-body h4 {\n font-size: 14px;\n }\n\n .markdown-body h5 {\n font-size: 12px;\n }\n\n .markdown-body h6 {\n font-size: 11px;\n }\n\n .markdown-body blockquote {\n margin: 0;\n }\n\n .markdown-body ul,\n .markdown-body ol {\n padding: 0;\n margin-top: 0;\n margin-bottom: 0;\n }\n\n ul.linenums,\n ol.linenums {\n padding: 16px 0 0 36px !important;\n }\n\n .markdown-body ul,\n .markdown-body ol {\n padding-left: 2em;\n }\n\n\n .markdown-body ol ol,\n .markdown-body ul ol {\n list-style-type: lower-roman;\n }\n\n .markdown-body ul ul ol,\n .markdown-body ul ol ol,\n .markdown-body ol ul ol,\n .markdown-body ol ol ol {\n list-style-type: lower-alpha;\n }\n\n .markdown-body dd {\n margin-left: 0;\n }\n\n .markdown-body code {\n font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;\n font-size: 12px;\n }\n\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 0;\n font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n }\n\n .markdown-body .octicon {\n font: normal normal 16px octicons-anchor;\n line-height: 1;\n display: inline-block;\n text-decoration: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .markdown-body .octicon-link:before {\n content: \'\f05c\';\n }\n\n .markdown-body>*:first-child {\n margin-top: 0 !important;\n }\n\n .markdown-body>*:last-child {\n margin-bottom: 0 !important;\n }\n\n .markdown-body .anchor {\n position: absolute;\n top: 0;\n left: 0;\n display: block;\n padding-right: 6px;\n padding-left: 30px;\n margin-left: -30px;\n }\n\n .markdown-body .anchor:focus {\n outline: none;\n }\n\n .markdown-body h1,\n .markdown-body h2,\n .markdown-body h3,\n .markdown-body h4,\n .markdown-body h5,\n .markdown-body h6 {\n position: relative;\n margin-top: 1em;\n margin-bottom: 16px;\n font-weight: bold;\n line-height: 1.4;\n }\n\n .markdown-body h1 .octicon-link,\n .markdown-body h2 .octicon-link,\n .markdown-body h3 .octicon-link,\n .markdown-body h4 .octicon-link,\n .markdown-body h5 .octicon-link,\n .markdown-body h6 .octicon-link {\n display: none;\n color: #000;\n vertical-align: middle;\n }\n\n .markdown-body h1:hover .anchor,\n .markdown-body h2:hover .anchor,\n .markdown-body h3:hover .anchor,\n .markdown-body h4:hover .anchor,\n .markdown-body h5:hover .anchor,\n .markdown-body h6:hover .anchor {\n padding-left: 8px;\n margin-left: -30px;\n text-decoration: none;\n }\n\n .markdown-body h1:hover .anchor .octicon-link,\n .markdown-body h2:hover .anchor .octicon-link,\n .markdown-body h3:hover .anchor .octicon-link,\n .markdown-body h4:hover .anchor .octicon-link,\n .markdown-body h5:hover .anchor .octicon-link,\n .markdown-body h6:hover .anchor .octicon-link {\n display: inline-block;\n }\n\n .markdown-body h1 {\n padding-bottom: 0.3em;\n font-size: 2.25em;\n line-height: 1.2;\n border-bottom: 1px solid #eee;\n }\n\n .markdown-body h1 .anchor {\n line-height: 1;\n }\n\n .markdown-body h2 {\n padding-bottom: 0.3em;\n font-size: 1.75em;\n line-height: 1.225;\n border-bottom: 1px solid #eee;\n }\n\n .markdown-body h2 .anchor {\n line-height: 1;\n }\n\n .markdown-body h3 {\n font-size: 1.5em;\n line-height: 1.43;\n }\n\n .markdown-body h3 .anchor {\n line-height: 1.2;\n }\n\n .markdown-body h4 {\n font-size: 1.25em;\n }\n\n .markdown-body h4 .anchor {\n line-height: 1.2;\n }\n\n .markdown-body h5 {\n font-size: 1em;\n }\n\n .markdown-body h5 .anchor {\n line-height: 1.1;\n }\n\n .markdown-body h6 {\n font-size: 1em;\n color: #777;\n }\n\n .markdown-body h6 .anchor {\n line-height: 1.1;\n }\n\n .markdown-body p,\n .markdown-body blockquote,\n .markdown-body ul,\n .markdown-body ol,\n .markdown-body dl,\n .markdown-body table,\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 16px;\n }\n\n .markdown-body ul ul,\n .markdown-body ul ol,\n .markdown-body ol ol,\n .markdown-body ol ul {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n .markdown-body li>p {\n margin-top: 16px;\n }\n\n .markdown-body dl {\n padding: 0;\n }\n\n .markdown-body dl dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: bold;\n }\n\n .markdown-body dl dd {\n padding: 0 16px;\n margin-bottom: 16px;\n }\n\n .markdown-body blockquote {\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n .markdown-body blockquote> :first-child {\n margin-top: 0;\n }\n\n .markdown-body blockquote> :last-child {\n margin-bottom: 0;\n }\n\n .markdown-body table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n }\n\n .markdown-body table th {\n font-weight: bold;\n text-align: revert;\n }\n\n .markdown-body table th,\n .markdown-body table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n .markdown-body table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n }\n\n .markdown-body table tr:nth-child(2n) {\n background-color: #f8f8f8;\n }\n\n .markdown-body img {\n max-width: 100%;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .markdown-body code {\n padding: 0;\n padding-top: 0.2em;\n padding-bottom: 0.2em;\n margin: 0;\n font-size: 85%;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: 3px;\n }\n\n .markdown-body code:has(.katex) {\n background-color: transparent;\n }\n\n .markdown-body code:before,\n .markdown-body code:after {\n letter-spacing: -0.2em;\n content: "\\00a0";\n }\n\n .markdown-body pre>code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n }\n\n .markdown-body .highlight {\n margin-bottom: 16px;\n }\n\n .markdown-body .highlight pre,\n .markdown-body pre {\n padding: 16px;\n overflow: auto;\n font-size: 85%;\n line-height: 1.45;\n background-color: #f7f7f7;\n border-radius: 3px;\n }\n\n .markdown-body .highlight pre {\n margin-bottom: 0;\n word-break: normal;\n }\n\n .markdown-body pre {\n word-wrap: normal;\n }\n\n .markdown-body pre code {\n display: inline;\n max-width: initial;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0;\n }\n\n .markdown-body pre code:before,\n .markdown-body pre code:after {\n content: normal;\n }\n\n .markdown-body kbd {\n display: inline-block;\n padding: 3px 5px;\n font-size: 11px;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n }\n\n .markdown-body .pl-c {\n color: #969896;\n }\n\n .markdown-body .pl-c1,\n .markdown-body .pl-mdh,\n .markdown-body .pl-mm,\n .markdown-body .pl-mp,\n .markdown-body .pl-mr,\n .markdown-body .pl-s1 .pl-v,\n .markdown-body .pl-s3,\n .markdown-body .pl-sc,\n .markdown-body .pl-sv {\n color: #0086b3;\n }\n\n .markdown-body .pl-e,\n .markdown-body .pl-en {\n color: #795da3;\n }\n\n .markdown-body .pl-s1 .pl-s2,\n .markdown-body .pl-smi,\n .markdown-body .pl-smp,\n .markdown-body .pl-stj,\n .markdown-body .pl-vo,\n .markdown-body .pl-vpf {\n color: #333;\n }\n\n .markdown-body .pl-ent {\n color: #63a35c;\n }\n\n .markdown-body .pl-k,\n .markdown-body .pl-s,\n .markdown-body .pl-st {\n color: #a71d5d;\n }\n\n .markdown-body .pl-pds,\n .markdown-body .pl-s1,\n .markdown-body .pl-s1 .pl-pse .pl-s2,\n .markdown-body .pl-sr,\n .markdown-body .pl-sr .pl-cce,\n .markdown-body .pl-sr .pl-sra,\n .markdown-body .pl-sr .pl-sre,\n .markdown-body .pl-src {\n color: #df5000;\n }\n\n .markdown-body .pl-mo,\n .markdown-body .pl-v {\n color: #1d3e81;\n }\n\n .markdown-body .pl-id {\n color: #b52a1d;\n }\n\n .markdown-body .pl-ii {\n background-color: #b52a1d;\n color: #f8f8f8;\n }\n\n .markdown-body .pl-sr .pl-cce {\n color: #63a35c;\n font-weight: bold;\n }\n\n .markdown-body .pl-ml {\n color: #693a17;\n }\n\n .markdown-body .pl-mh,\n .markdown-body .pl-mh .pl-en,\n .markdown-body .pl-ms {\n color: #1d3e81;\n font-weight: bold;\n }\n\n .markdown-body .pl-mq {\n color: #008080;\n }\n\n .markdown-body .pl-mi {\n color: #333;\n font-style: italic;\n }\n\n .markdown-body .pl-mb {\n color: #333;\n font-weight: bold;\n }\n\n .markdown-body .pl-md,\n .markdown-body .pl-mdhf {\n background-color: #ffecec;\n color: #bd2c00;\n }\n\n .markdown-body .pl-mdht,\n .markdown-body .pl-mi1 {\n background-color: #eaffea;\n color: #55a532;\n }\n\n .markdown-body .pl-mdr {\n color: #795da3;\n font-weight: bold;\n }\n\n .markdown-body kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n }\n\n .markdown-body .task-list-item {\n list-style-type: none;\n }\n\n .markdown-body .task-list-item+.task-list-item {\n margin-top: 3px;\n }\n\n .markdown-body .task-list-item input {\n float: left;\n margin: 0.3em 0 0.25em -1.6em;\n vertical-align: middle;\n }\n\n .markdown-body :checked+.radio-label {\n z-index: 1;\n position: relative;\n border-color: #4183c4;\n }\n\n\n /*! Pretty printing styles. Used with prettify.js. */\n /* SPAN elements with the classes below are added by prettyprint. */\n .pln {\n color: #000\n }\n\n /* plain text */\n\n @media screen {\n .str {\n color: #080\n }\n\n /* string content */\n .kwd {\n color: #008\n }\n\n /* a keyword */\n .com {\n color: #800\n }\n\n /* a comment */\n .typ {\n color: #606\n }\n\n /* a type name */\n .lit {\n color: #066\n }\n\n /* a literal value */\n /* punctuation, lisp open bracket, lisp close bracket */\n .pun,\n .opn,\n .clo {\n color: #660\n }\n\n .tag {\n color: #008\n }\n\n /* a markup tag name */\n .atn {\n color: #606\n }\n\n /* a markup attribute name */\n .atv {\n color: #080\n }\n\n /* a markup attribute value */\n .dec,\n .var {\n color: #606\n }\n\n /* a declaration; a variable name */\n .fun {\n color: red\n }\n\n /* a function name */\n }\n\n /* Use higher contrast and text-weight for printable form. */\n @media print,\n projection {\n .str {\n color: #060\n }\n\n .kwd {\n color: #006;\n font-weight: bold\n }\n\n .com {\n color: #600;\n font-style: italic\n }\n\n .typ {\n color: #404;\n font-weight: bold\n }\n\n .lit {\n color: #044\n }\n\n .pun,\n .opn,\n .clo {\n color: #440\n }\n\n .tag {\n color: #006;\n font-weight: bold\n }\n\n .atn {\n color: #404\n }\n\n .atv {\n color: #060\n }\n }\n\n /* Put a border around prettyprinted code snippets. */\n pre.prettyprint {\n padding: 2px;\n /* border: 1px solid #888 */\n }\n\n /* Specify class=linenums on a pre to get line numbering */\n ol.linenums {\n margin-top: 0;\n margin-bottom: 0\n }\n\n /* IE indents via margin-left */\n li.L0,\n li.L1,\n li.L2,\n li.L3,\n li.L5,\n li.L6,\n li.L7,\n li.L8 {\n list-style-type: none\n }\n\n /* Alternate shading for lines */\n li.L1,\n li.L3,\n li.L5,\n li.L7,\n li.L9 {\n background: #eee\n }\n\n .markdown-body p,\n .markdown-body blockquote,\n .markdown-body ul,\n .markdown-body ol,\n .markdown-body dl,\n .markdown-body table,\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 16px;\n }',t.appendChild(r),function(){t.innerHTML=""}}),[]),(0,c.useEffect)((function(){i.current&&(i.current.innerHTML=e)}),[e]),(0,j.jsx)("div",{ref:n})},H="@▁@",Q=/]*>/g;var q=function(t){var e=t.value,n=void 0===e?"":e,i=t.className,s=t.showTextOnly,o=t.showLines,u=t.style,d=void 0===u?{}:u,f=t.stylesPrev,p=void 0===f?{}:f,g=t.highlightKeywords,m=t.showProgramFill,v=(t.isProgramFill,t.disabledFill),y=void 0!==v&&v,A=t.programFillValue,E=t.onFillChange,k=void 0===E?function(t){}:E,T=t.onFillBlur,C=void 0===T?function(){}:T,D=t.onFillFocus,S=void 0===D?function(){}:D,L=String(n),B=(0,c.useState)(""),P=h()(B,2),O=P[0],q=P[1],V=(0,c.useState)("office"),Y=h()(V,2),K=Y[0],X=Y[1],W=(0,c.useState)([]),Z=h()(W,2),J=Z[0],$=Z[1],tt=(0,c.useRef)("a"+(0,U.Z)()),et={};var nt=function(t){return t.replace(/([\s\S]+?)<\/style>/gim,(function(t,e){var n=e.replace(/(\n|\r)/g,"").split("}"),i=[];return n.map((function(t){""!=t&&i.push(".".concat(tt.current," ").concat(t))})),"")}))},it=(0,c.useMemo)((function(){try{L=L.replace(/\(\/attachments\/download\//g,"("+F.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+F.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+F.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+F.Z.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,"\n")}catch(t){}if(m){var t=-1;return L=L.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(e,n,i){var r;return function(t,e,n){var i=document.createElement(t===H?"input":"textarea");i.style.width="100%",i.style.height=t===H?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=e;var r=Object.keys(et).length;return et[r]=i,'')}(e,++t,null==A||null===(r=A[t])||void 0===r?void 0:r.value.replaceAll("<","<").replaceAll(">",">"))})),'
      '.concat(nt(L||""),"
      ")}var e=nt(L);e=M(e);var n=I();L.match(/\[TOC\]/)&&(e=e.replace("

      [TOC]

      ",x()),b()),e=e.replace(/(__special_katext_id_\d+__)/g,(function(t,e){var i=n[e],r=i.type,s=i.expression;return(0,_.renderToString)(function(t){var e=document.createElement("div");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),e=e.replace(/▁/g,"▁▁▁▁▁"),R();var i=document.createElement("div");return i.innerHTML=e,s?i.innerText:g?(ot(i,g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return ht()}),500),i.innerHTML)}),[L,g]);(0,c.useEffect)((function(){lt.current&<.current.querySelectorAll(["input","textarea"]).forEach((function(t){t.oninput=rt,t.onblur=st,t.onfocus=at}))}),[J]),(0,c.useEffect)((function(){if(null!=A&&A.length)try{var t,e=lt.current.querySelectorAll(".edu-program-fill-score"),n=lt.current.querySelectorAll('[name="edu-program-fill"]'),i=l()(n.entries());try{for(i.s();!(t=i.n()).done;){var r,s,a,o=h()(t.value,2),u=o[0],c=o[1];c.value=(null==A||null===(r=A[u])||void 0===r?void 0:r.value)||"","warning"===(null==A||null===(s=A[u])||void 0===s?void 0:s.type)?c.className="program-fill-warning":"success"===(null==A||null===(a=A[u])||void 0===a?void 0:a.type)?c.className="program-fill-success":c.className=""}}catch(t){i.e(t)}finally{i.f()}var d,f=l()(e.entries());try{for(f.s();!(d=f.n()).done;){var p,g,m=h()(d.value,2),v=m[0];m[1].innerHTML=null!=A&&null!==(p=A[v])&&void 0!==p&&p.score?"".concat(null==A||null===(g=A[v])||void 0===g?void 0:g.score,"分"):""}}catch(t){f.e(t)}finally{f.f()}$(A)}catch(t){console.log(t,"error")}}),[A]);var rt=function(t){J[t.target.dataset.id]=J[t.target.dataset.id]||{},J[t.target.dataset.id].value=t.target.value,$(a()(J)),k(J,t.target.dataset.id)},st=function(t){J[t.target.dataset.id]=J[t.target.dataset.id]||{},J[t.target.dataset.id].value=t.target.value,$(a()(J)),C(J,t.target.dataset.id)},at=function(t){J[t.target.dataset.id]=J[t.target.dataset.id]||{},J[t.target.dataset.id].value=t.target.value,$(a()(J)),S(J,t.target.dataset.id)};function ot(t,e){return t.childNodes.forEach((function(t){if(t.childNodes.length>0)ot(t,e);else if("IMG"!==t.nodeName)if(t.innerHTML){var n;t.innerHTML=null===(n=t.innerHTML)||void 0===n?void 0:n.replace(new RegExp(e,"gi"),'$&')}else{var i=document.createElement("span");i.innerHTML=t.textContent.replace(new RegExp(e,"gi"),'$&'),t.replaceWith(i)}}))}var lt=(0,c.useRef)();function ut(t){var e=t.target;if("A"===e.tagName.toUpperCase()){var n=e.getAttribute("href");if(n.indexOf("office")>-1)t.preventDefault(),q(n),X("office");else if(n.indexOf("application/pdf")>-1)t.preventDefault(),q(n),X("pdf");else if(n.indexOf("text/html")>-1)t.preventDefault(),q(n),X("html");else if(n.startsWith("#")){t.preventDefault();var i=document.getElementById(n.replace("#",""));i&&i.scrollIntoView(!0)}}}w.WebkitLineClamp=o,o&&(d=r()(r()({},d),w));var ht=function(){var t,e=null===(t=lt.current)||void 0===t?void 0:t.querySelectorAll("video");null==e||e.forEach((function(t){if(t.oncontextmenu=function(){return!1},t.src.indexOf(".m3u8")>-1)if(t.canPlayType("application/vnd.apple.mpegurl"));else if(N.ZP.isSupported()){var e=new N.ZP;e.loadSource(t.src),e.attachMedia(t)}}))};(0,c.useEffect)((function(){if(lt.current&&it&&it.match(Q)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",ut),function(){var t;null===(t=lt.current)||void 0===t||t.removeEventListener("click",ut),R(),b()}}),[it,lt.current,ut]),(0,c.useEffect)((function(){var t,e=function(t){t.preventDefault(),t.clipboardData.setData("text",window.getSelection().toString())};return null===(t=lt.current)||void 0===t||t.addEventListener("copy",e),function(){var t;null===(t=lt.current)||void 0===t||t.removeEventListener("copy",e)}}),[lt.current]);var ct=function(t){return//i.test(t||"")};return(0,j.jsxs)(j.Fragment,{children:[s&&(0,j.jsx)("div",{ref:lt,children:it}),!s&&!ct(it)&&(0,j.jsx)("div",{ref:lt,style:r()({},d),className:"".concat(i||""," ").concat(y?"disabled-fill":""," markdown-body ").concat(tt.current),dangerouslySetInnerHTML:{__html:it}}),!s&&ct(it)&&(0,j.jsx)(G,{html:it}),(0,j.jsx)(z.Z,{close:!0,data:O,type:null!=O&&O.length?K:"",style:r()({},p),onClose:function(){return q("")}})]})}},46691:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return at}});var i=n(7557),r=n.n(i),s=n(82242),a=n.n(s),o=n(41498),l=n.n(o),u=n(79800),h=n.n(u),c=n(39647),d=n.n(c),f=n(59301),p=n(94706),g=n(37205),m=n.n(g),v=n(71418),y=n(6848),A=n(95237),b=n(43604),w=n(91454),E="content___RauL0",x="bg___f8yHR",k="leftcent___f7fUQ",T="leftitem___qmeSO",C="leftright___FOSLf",D="lefttitle___FJZBU",S="leftcontent___agWiX",I="rightones___o1K1n",R="cbg___ItXeP",L="noDataImg____pgf3",B="cbgleft___tFr3h",P="leftbg___KIKm4",O="cbitem___gCa5M",M="cbitemtitle___g7i3E",N="bottomleft___YgUx3",F="bottomitem___XZBUp",_="bottomitemtitle___z5ayq",U="bottomitemcent___J9sPZ",z="bottomright___WpY0J",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAA0CAYAAADIZmusAAAAAXNSR0IArs4c6QAAC0hJREFUaEPdmQtwVNUZx//nvu++spslCQlJIEDkDcJEi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JY2JqnLaR0mJQdeViiuI5FTiX4ESZmPZRV2lmyFSyOYcNxk+VVgocQxw5mqGvcYIN1veYNT2fTzE+plogOKyJUjTQOVMDZsdX9wO3ygaIWg7ovU7+cTyurwD1ygRvkV7T09hLRczzdeLCJDZexboGkRlnRLf9tojzTSIixsKurUxTz5dnjCpH8hlN9es1cqJIqCeGpo+J9LemSqORkFcsRkl1dBGn0QMBQCv4yWrLL6fnu/knDU/pWLmHANr6UPQvoLaRXvqRSrDptlnwpv6dbvGfaTXJFzFxqfVenbW1aeLSOeRchq89wTDZOqmGm6gjtxpjFDQdV8lyCaMuk44RcgNAG763IBdPtATaTaoODKB+cCNtCbahu4MjD351txW60gZZuL8OWZ6+2yL2KmU2ny9IHA18+UE0wFAC7QaggZVQr7+xdjzUrtJjCJD9AmS/xw+uhNrvnQ6PP5QZ+P+dMFeIWnFR/AAAAABJRU5ErkJggg==",K=n(37712),X=["globalSetting","user","dispatch","DataProps"],W=(0,p.connect)((function(t){return{globalSetting:t.globalSetting,user:t.user}}))((function(t){t.globalSetting,t.user,t.dispatch;var e,i=t.DataProps,r=(d()(t,X),function(t){var e=t.title,i=t.className,r=void 0===i?"":i,s=t.style,o=void 0===s?{}:s;return(0,K.jsxs)("div",{className:"flex item-center justify-center absolute ".concat(r),style:a()({width:"115px",height:"32px",fontSize:"13px",left:"50%",transform:"translateX(-50%)",bottom:"10px",background:"url(".concat(n(71677),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",color:"#fff",fontWeight:600},o),children:[" ",e," "]})}),s=function(t){var e=t.DataProps,n=void 0===e?[]:e,i=t.angleStep,r=void 0===i?.2:i,s=t.radius,o=void 0===s?500:s,l=t.top,u=void 0===l?0:l,h=t.verticalRadius,c=void 0===h?o:h,d=t.startPosition,p=void 0===d?Math.PI:d,g=(0,f.useRef)(null),m=p+(Math.PI-((null==n?void 0:n.length)-1)*r)/2,v=function(t){var e=t.DataProps,n=void 0===e?{}:e,i=t.style,r=void 0===i?{}:i;return(0,K.jsxs)("div",{className:"flex flex-col item-center c-white absolute",style:a()({fontSize:"14px"},r),children:[(0,K.jsx)(y.Z,{title:n,placement:"topLeft",children:(0,K.jsx)("div",{style:{color:"#113588",fontSize:"12px"},className:"multi_ellipsis1",children:n})}),(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnduzZMlV3r/MXXXO6dM3zYx6RiMGRhIGjzQECMmBwBCD5IAAgksowE34UW88+I9w+9UPfnGEH/xiPxomCMIWCgvJDyCCQDIaERJIjBFIDGI0l1ar1fdzTtXOtL6VueqsypO5965z6R45VDE9p2rfqmr/6ltr5cqVmQ7ff/x/dQfc9/63iaf4HVz8Xr8fp3gzzvpWnCa443zW7w3YbxGgjxrWcQCX57w1gD9ioKcA8hpO7ztcwymZ3EcH9/RuxuiPfCK80wQ0+plOeMBGP4CHA/mMgU6AeFYAvzyi3OdPS43Fj2IU8tmCPSOgIyBPCnEM1gmFtzr9JNAfEdhTBNqAeBx4DwvYScFvCnwQ8uko9xSAnhLI7xWItR/BpmB5jSrck0M9JtAKxE2U+LDh8YbzBvIzPqz33gTyKcI9BtAC5lsA5NWrddv54lcI0YWr/zGeu7+DnStv4sF/u+b2cDV25TkvvnhS+ztw/lS4pwB2Q6DHhHlKqmiBs7fy+lfgrrwP8cXfdv3HrsWdm5fwI4j4iAN+IgCfBfD5x+/gbwj26u/FbgzjqYI+FtjNzPAEoMcwrycEWIIjpLEbnyAi0Kz+OrDT7eLngsd7PfC+6HAhAsEBHhG3ncffhYC/2F7iiy/u4Q6v/WHuG3nwPewhJ4I9Be4RxY7DHb1RgAE6xbweE6aFOAXgnacPIb/0O26Ba9Ff3cWTS4d3B4dfdg7PRGCHIEtOHqAyHwD4RujxaZzD1//nDbyuYHnti6+Nt1MV8JmC3RDqCNANYJ4hSAtP4fCGq2n9jf8U3+kO8H4AL7iIdwQnwEYfzmVoEf8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58px"})]})};return(0,K.jsx)("div",{ref:g,className:"relative",children:null==n?void 0:n.map((function(t,e){var n=m+e*r,i=o*Math.cos(n),s=c*Math.sin(n);return(0,K.jsx)(v,{DataProps:t,style:{left:"calc(50% + ".concat(i,"px)"),bottom:"".concat(s+c+u,"px"),transform:"translateX(-50%)"}},e)}))})};return(0,K.jsxs)("div",{className:"flex flex-col item-center justify-center w-full h-full",style:{gap:"80px",marginLeft:18},children:[null==i||null===(e=i.knowledge_statistics)||void 0===e?void 0:e.map((function(t,e){return(0,K.jsxs)(K.Fragment,{children:[0==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-center justify-center",style:{background:"url(".concat(n(79394),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"176px",height:"61px",marginTop:"153px",zIndex:4},children:[(0,K.jsx)(s,{startPosition:0,DataProps:null==t?void 0:t.node_types,angleStep:.8,radius:70,top:-40,verticalRadius:20}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e),1==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-end justify-center",style:{background:"url(".concat(n(83253),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"240px",height:"100px",marginTop:"90px",zIndex:3},children:[(0,K.jsxs)("div",{className:"absolute",style:{left:"-4px",top:"0px"},children:[(0,K.jsx)("img",{src:Y,style:{width:"56px"}}),(0,K.jsx)("div",{className:"absolute",style:{top:"5px",left:"-25px",transform:"rotate(-47deg)",color:"#113588",fontSize:"12px"},children:null==t?void 0:t.relation})]}),(0,K.jsx)(s,{DataProps:null==t?void 0:t.node_types,angleStep:.1}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e),2==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-end justify-center",style:{background:"url(".concat(n(13815),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"321px",height:"135px",zIndex:2,marginTop:36},children:[(0,K.jsxs)("div",{className:"absolute",style:{left:"-10px",top:"24px"},children:[(0,K.jsx)("img",{src:Y,style:{width:"68px"}}),(0,K.jsx)("div",{className:"absolute",style:{top:"20px",left:"-15px",transform:"rotate(-47deg)",color:"#113588",fontSize:"12px"},children:null==t?void 0:t.relation})]}),(0,K.jsx)(s,{DataProps:null==t?void 0:t.node_types,angleStep:.1}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e),3==e&&(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsxs)("div",{className:"relative flex item-end justify-center",style:{background:"url(".concat(n(61993),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"452px",height:"153px",zIndex:1},children:[(0,K.jsxs)("div",{className:"absolute",style:{left:"-2px",top:"25px"},children:[(0,K.jsx)("img",{src:Y,style:{width:"74px"}}),(0,K.jsx)("div",{className:"absolute",style:{top:"7px",left:"0px",transform:"rotate(-47deg)",color:"#113588",fontSize:"12px"},children:null==t?void 0:t.relation})]}),(0,K.jsx)(s,{DataProps:null==t?void 0:t.node_types,angleStep:.1}),(0,K.jsx)(r,{title:null==t?void 0:t.title})]})},e)]})})),(0,K.jsx)("div",{className:"flex item-center justify-center",style:{height:0},children:(0,K.jsx)("img",{src:n(6772),width:"362px",height:"280px",style:{marginTop:"-190px",backgroundSize:"contain"}})})]})})),Z=n.p+"static/kxld.1eaed609.png",J=n.p+"static/kxdb.46599d03.png",$=n(25950),tt=n(54877),et=n(88136),nt=n(93298),it=["loading","globalSetting","user","total","dispatch","list","setlist","getlist","tonk","gettonk","pathsDetail"],rt=(0,p.connect)((function(t){return{globalSetting:t.globalSetting,pathsDetail:t.pathsDetail,user:t.user}}))((function(t){t.loading,t.globalSetting,t.user,t.total,t.dispatch,t.list,t.setlist,t.getlist,t.tonk,t.gettonk,t.pathsDetail,d()(t,it);var e,n,i,s,a,o,u,c,g,Y,X,rt,st,at,ot,lt=(0,q.cV)().questionable_id,ut=(0,q.cV)().url,ht=(0,f.useState)({page:1,page_size:20,name:""}),ct=h()(ht,2),dt=(ct[0],ct[1],(0,f.useState)({})),ft=h()(dt,2),pt=(ft[0],ft[1]),gt=(0,f.useState)(!1),mt=h()(gt,2),vt=mt[0],yt=mt[1],At=(0,p.useSearchParams)(),bt=(h()(At,1)[0],(0,f.useState)(lt?1:2)),wt=h()(bt,2),Et=wt[0],xt=wt[1],kt=(0,f.useState)(),Tt=h()(kt,2),Ct=Tt[0],Dt=Tt[1],St=(0,f.useState)(),It=h()(St,2),Rt=It[0],Lt=It[1],Bt=(0,f.useState)(),Pt=h()(Bt,2),Ot=Pt[0],Mt=Pt[1],Nt=(0,f.useRef)(null),Ft=(0,f.useState)(0),_t=h()(Ft,2),Ut=(_t[0],_t[1]);function zt(){return(zt=l()(r()().mark((function t(){var e,n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,H.ZP)("/api/v2/knowledge_graphs/subject/".concat(lt,".json"),{method:"get"});case 2:return 0===(null==(e=t.sent)?void 0:e.status)&&(Dt(null==e?void 0:e.data),Lt(m()((null==e||null===(n=e.data)||void 0===n||null===(n=n.subject_members)||void 0===n?void 0:n.splice(0,12))||[]))),t.next=6,(0,H.ZP)("/api/knowledge/v2/subject_knowledge_statistic.json",{method:"get",params:{subject_id:lt}});case 6:0===(null==(i=t.sent)?void 0:i.status)&&Mt(null==i?void 0:i.data);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function jt(){return(jt=l()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return yt(!0),t.next=3,(0,H.ZP)("/api/ai/knowledge_graph/statistics.json",{method:"get"});case 3:e=t.sent,yt(!1),0===(null==e?void 0:e.status)&&pt(null==e?void 0:e.data);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}(0,f.useEffect)((function(){lt?function(){zt.apply(this,arguments)}():function(){jt.apply(this,arguments)}()}),[]),(0,f.useEffect)((function(){setTimeout((function(){var t=(0,q.ZR)(Nt.current,"px",1);Ut(t)}),1e3)}),[null==Ct?void 0:Ct.description]);var Gt=lt?[{id:1,name:"Subject"===(0,q.cV)().questionable_type?"本课程知识图谱概览":"我的知识图谱概览"},{id:0,name:"知识图谱开发空间"},{id:2,name:"知识图谱简介"}]:[{id:2,name:"知识图谱简介"}];return(0,K.jsx)("div",{className:x,children:(0,K.jsxs)("div",{className:E,children:[(0,K.jsx)($.Z,{title:"知识图谱",subTitle:"让知识可见,让学习有径可循"}),(0,K.jsx)(tt.Z,{dataSource:Gt,className:"mt20",value:Et,onChange:function(t){0===t?window.open("".concat(ut,"/knowledgegraph/").concat(lt)):xt(t)}}),2===Et&&(0,K.jsxs)(v.Z,{spinning:vt,children:[(0,K.jsx)("div",{children:(0,K.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:30},children:[(0,K.jsxs)("div",{className:k,children:[(0,K.jsx)("div",{style:{display:"flex",gap:10},children:null===(e=[{name:"学情分析",content:"能够精准分析学生对每个知识点的掌握程度",img:j},{name:"个性化学习路径",content:"为学生推荐个性化的学习资源和学习路径",img:j}])||void 0===e?void 0:e.map((function(t){return(0,K.jsxs)("div",{className:T,children:[(0,K.jsx)("img",{src:null==t?void 0:t.img}),(0,K.jsxs)("div",{className:C,children:[(0,K.jsx)("div",{className:D,children:null==t?void 0:t.name}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.content,children:(0,K.jsx)("div",{className:S,children:null==t?void 0:t.content})})]})]})}))}),(0,K.jsx)("img",{src:G,style:{marginTop:30,objectFit:"fill",width:520}}),(0,K.jsx)("div",{style:{color:"#3567A4",fontSize:20,position:"absolute",fontWeight:600,top:470,left:240},children:"四大功能层"}),(0,K.jsx)("div",{style:{display:"flex",gap:10,position:"absolute",bottom:"19px",left:27,right:27},children:null===(n=[{name:"多知识图谱",content:"课程图谱、大纲图谱、思政图谱、思维图谱为教育领域提供了多维支持",img:j},{name:"智慧资源",content:"整合教材、视频、实验、作业等多模态资源,构建结构化知识网络",img:j}])||void 0===n?void 0:n.map((function(t){return(0,K.jsxs)("div",{className:T,children:[(0,K.jsx)("img",{src:null==t?void 0:t.img}),(0,K.jsxs)("div",{className:C,children:[(0,K.jsx)("div",{className:D,children:null==t?void 0:t.name}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.content,children:(0,K.jsx)("div",{className:S,children:null==t?void 0:t.content})})]})]})}))})]}),(0,K.jsxs)("div",{style:{marginLeft:20,width:440},children:[(0,K.jsx)("div",{className:I,style:{backgroundImage:"url(".concat(Z,")")}}),(0,K.jsx)("div",{className:I,style:{marginTop:20,height:230,backgroundImage:"url(".concat(J,")")}})]})]})}),(0,K.jsx)(nt.Z,{className:"mt20",link:"https://www.educoder.net/forums/40560"})]}),1===Et&&(0,K.jsxs)("div",{style:{marginTop:30},className:"".concat(R," ").concat(null!=Ct&&null!==(i=Ct.nodes)&&void 0!==i&&i.length&&(null==Ct||null===(s=Ct.nodes)||void 0===s?void 0:s.length)<2?L:""),children:[!(null==Ct||null===(a=Ct.nodes)||void 0===a||!a.length)&&(null==Ct||null===(o=Ct.nodes)||void 0===o?void 0:o.length)>=2&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{style:{display:"flex"},children:[(0,K.jsxs)("div",{className:B,children:[(0,K.jsx)("div",{className:P,style:{backgroundImage:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAK0CAYAAAC3AOvFAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfQm4HEXV9qleZr9LcpNAEpYgy6fCByiBsH1sgoCEXUBABRVRAUXBBVBkkcUFUVRkERXZVMAEZAcFJDchCRFEwABhDSH7XWef7q7z/6eqa7q6p2fu3IAKucyTJzPTXae6znve857q6r49DNbhdVdv/yYH7z5+6TqYvmNN2LqM7I7evmMO273nj+ti+061WScgZs/t++nhu/V89Z3q1LqMa92AmNM3//D/69l5XQ74TrUZNRD3LsFkZdX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CC",")")}}),(0,K.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,K.jsxs)("div",{style:{textAlign:"center"},children:[(0,K.jsx)("div",{children:(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAiCAYAAAAtZZsLAAAAAXNSR0IArs4c6QAADcpJREFUWEfNmG1wG/Wdxz+7q9WTJVmyLVl+ku3ECYnzCCEJeYASjgRImISbHtMc5QbClEIpvbm+YI7etdebGzpcoZ3rlbYHPe7oFThaIIQDShJoGkIIeSAPduInjGPZ8aMsy5L1sNJK2t2bXUMemHvV8uJ2vF75L+3+P/o9fn8W+H9+CF803+Cr/71cVEvVLV+95+AX8ewvFHBg9wsbGvree14q5Ksnr7rx65G77//tnwr5hQGO/+on3w73f/B4LJFwqIZBo8/DdOvaf820rvrbBVu3qn8s6J8M+MnbbwerBg7/vCp66s5z2TKviLWILid/XppksaCSrVv8YWL+9V9buHNn7x8DeRGw++WX7aF07+aCJ+S3lxRJ0suCogsCaKJg6CKGLqAbgmCt6ZQQESXZGZzsfVicGGp7t+Cit3UFq69fg7fCRV9XH6GuE1ybG0f0Vc/EG5b+OG+Tp2WjLIiCaFiwgmBgCIZhPlmSdblcNDTRYeg2e7mUiiWXZV37LwKO/fv3XqycPn+XoBmYdxu6jqCbr3Uwr4aBoRuUNR1V0/GJZZwlhRlFZw8hjFXr+NL6VdSHQ0iSxGwmTWfPJ2SOfsCaiR4CgkpetDOl2RBFAVkSEczvaj7XmOO1fn+6VtJ0ss0rnrYAu3Y/tzrYd/BDyprNQJi74dMbLbBPT62sU9TKyCI06FmG00XeckYIbriRdVcvJRh0Y7fr1mbFkkQ2U+bjoRFGP3yfFdEOGsQSY2WZVFlHstmw2USTaA50zqTWj7m9rmkoSHnrncmnvv2WPzm8TdNF03SX4CwLmn8KaIaBioRPAEd+lg+zIh81LGXpxhtYvtCOx93LzOQImVQem02i0u/A468mrbQzmqjkk46ThM8eY4WWRZNkJvIF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NdOfw+L6vmSSTiUSoD9cxfeDXC7BscPHaG//hgMV6XQVqB+6/vJ5uXeemjFjwug4xicN/6Xq5qaEKrup3pySh9PR14K2sYSrmsJFm7sILZdIqecQlfhZM1CxwU1RmSymV1sLPz5dZ6v62nXDackmT2Ux2lULBqm4iIWiqRUwpMTyepDIRpswDf5A9HT/PLg/PxuE3dZ/DATVEL8MWjDVbiZPPwtRsGWNwUQQvcTnxykN6eTmpDATwu58WhSRDBIdusEdRMHnOqi886L7n42LHdjWFfsVfTDY9Z9a3THDs1swOYp0apqJGYSREMNXLV4lWIqdfZf/gET+1vsVycVgz++tYRMoqN594Pz8WlYvDNm6Msm9eGVrWd2NgAZztPEwz6cdht2CRzkuPTkdO8zv3HwRwFUqrnuouK2jAM4RfP/mRRfGrW9ZkeLn1+TitBQSsYS5YsWDY/0nCLXDgsfXx+RH+7u63ktOlCvoRx65JBWVVtHByIlJyyQUGFW9oH5KC3UlTd6/RMLtd58kz/O05JF+DTna6cs6xdK+xyua6uufd/ATPk7fmFhvsTAAAAAElFTkSuQmCC",style:{width:16,height:16}})}),(0,K.jsx)("div",{style:{color:"#666666",fontSize:12},children:"学校"})]}),(0,K.jsx)("div",{style:{marginLeft:13},children:(0,K.jsx)("div",{style:{padding:"6px 20px",fontSize:12,background:"linear-gradient( 136deg, #EFF1FF 0%, #F0F4FF 100%)",borderRadius:4},children:null==Ct?void 0:Ct.school})})]}),(0,K.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"start"},children:[(0,K.jsxs)("div",{style:{textAlign:"center"},children:[(0,K.jsx)("div",{children:(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAoCAYAAACSN4jeAAAAAXNSR0IArs4c6QAAD3hJREFUWEfNmHmUVOWZh5/vbrV1dXV3dW290TSIgojIRBGDUQyORBERcMnEaGIWk5OZM1GRbCeTmcQxk80hyRgTo0EB0Sw6EyGAIgdZolGQRAWBXqC7eqvu6r26lrvPuZckJ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LjLnX9T9f44Itr8+9PWxsntfWbfRdYtyxaBc1imWdHqHp1hxYQ23ve98ypZCsVTCMkxC4TABTcXWC2zaeYrXTpdpSVcTCmlUhQMENIVwUCEWdB9bt6T5o39qVPAnwXYc7l81OO3+3HIkDNNB102mi2U6ugeZLpQZHZtm8fm1XLqohemy7Se9JAnf6b0rqAn2HDrDqb4SifooqqbQ0pAgVR8jFFSQsUmE3U+uWzrz+38M7k+CPb4/+/rItLvIrzUXTMOkp6Mdo+8Vmi84h3AoyPKGBrSghvVbGD/+juNv2x5jsWyAUFGqq8hv2sKzc66nrTnlq+flVn3YGfjI8tmN7xhs275T5+WN8AndAtcy/WKoVHQOfvMujGqVe6+8gmtqaujS9d+PxTzFPK38J3W9vuPsXXVspufOZ+DIUZ6uuoKZzUkCmowrZEKaIB0sXXDrsnn/a+r4RxV7eOfbG4oi+jVZkqmUy6iy4ufWjrvfx6v9XdyF4FuRECf1iq+mz+Cp5bp4PYf3J+/tVbawHUptbeRXrePnTStpa0n5cw8loPoDv2pn+u67Vs7b+D9V+6NgG7ef2Gur1VcFFJlisewPSgzTZM99KznY08nn6+q4J17HacNA/QOos4BgIXxA/yqVMOecy8Qli3kqs4q25iSaqhIMaf7DCGPq4D03nP+edwT29f88dlwL1zV7T6brun/CNiyTPZ+/uerVbKe4N17Hp2IxumwbIUu+UuZvT/BB10EVUPZHSy7hSplyaxvDF1/GrsYV5dbGejscDroBLYDjpWRlqnP96nl+Lv/h9d8+ckl9Oq9zngAAAABJRU5ErkJggg==",style:{width:16,height:16}})}),(0,K.jsx)("div",{style:{color:"#666666",fontSize:12},children:"教师"})]}),(0,K.jsx)(A.Z,{gutter:[4,4],style:{width:"100%",marginLeft:5,gap:4},children:null==Rt?void 0:Rt.map((function(t,e){var n,i;return(0,K.jsx)(b.Z,{style:{cursor:11===e&&"pointer",maxWidth:63,maxHeight:65},span:4,children:11===e?(0,K.jsx)(w.Z,{content:(0,K.jsx)(A.Z,{gutter:[2,10],style:{width:540,marginLeft:5},children:null==Ct||null===(n=Ct.subject_members)||void 0===n?void 0:n.map((function(t,e){return(0,K.jsx)(b.Z,{span:4,children:(0,K.jsxs)("div",{className:O,children:[(0,K.jsx)("img",{src:V.Z.IMG_SERVER+"/images/"+(null==t?void 0:t.avatar)}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.username,children:(0,K.jsx)("div",{className:M,children:null==t?void 0:t.username})})]})})}))}),trigger:"click",placement:"bottom",children:(0,K.jsxs)("div",{className:O,children:[(0,K.jsxs)("div",{style:{minWidth:32,minHeight:32,background:"#D5DBF3",borderRadius:"50%",lineHeight:"32px",textAlign:"center"},children:["+",(null==Ct||null===(i=Ct.subject_members)||void 0===i?void 0:i.length)+1]}),(0,K.jsx)(y.Z,{title:"...更多...",children:(0,K.jsx)("div",{className:M,children:"...更多..."})})]})}):(0,K.jsxs)("div",{className:O,children:[(0,K.jsx)("img",{src:V.Z.IMG_SERVER+"/images/"+(null==t?void 0:t.avatar)}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.username,children:(0,K.jsx)("div",{className:M,children:null==t?void 0:t.username})})]})})}))})]})]}),(0,K.jsx)("div",{className:"relative",style:{flex:1,height:274},children:(0,K.jsx)(W,{DataProps:Ot||{}})})]}),(0,K.jsxs)("div",{style:{marginTop:10,padding:"20px 0px",background:"rgba(255,255,255,0.8)",borderRadius:4,display:"flex",height:122},children:[(0,K.jsxs)("div",{className:N,children:[(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABZCAYAAAA+TwS/AAAAAXNSR0IArs4c6QAACrJJREFUWEetWWdwVNcZPfftSuyqo0IRCCFBEhsbCM0IJIEQxQQIINFsbJIQbAhjTCaJ4ziZyR/PZOwwA54k1GBEERijMRBwCOOAwSCBKEam96KChLTaVduVVtKWl7ntlQWPY9D+QFvePe/7vnO+8937IACwt7gufU52z/v0/bO+CAXYd8r1Zn5mwuZnBaPrGeD+EteevKyEBV0CqKoq2V/S6MjPjk/qEs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UBWPSeoWfeRYwluf9R53qveo2TB4ZF+rqT4VNTl311NY1dvTsskf3e0tcfyYq3u9KwAyiorTLAIuKVEtY78b6vOz4+KcqWsgiRsT+ksbP8rK6z+0ywH+VNCybnRW/qcsA9xY3pc/JjuuS/9f7HwAzL4Lx1Oe7AAAAAElFTkSuQmCC"}),null===(u=[{value:null==Ct||null===(c=Ct.knowledge_statistics)||void 0===c?void 0:c.course_count,title:"应用课堂(个)"},{value:null==Ct||null===(g=Ct.knowledge_statistics)||void 0===g?void 0:g.school_count,title:"应用院校(个)"},{value:null==Ct||null===(Y=Ct.knowledge_statistics)||void 0===Y?void 0:Y.initiative_study_count,title:"自主学习人数(人)"},{value:null==Ct||null===(X=Ct.knowledge_statistics)||void 0===X?void 0:X.course_study_count,title:"课堂学习人数(人)"},{value:null==Ct||null===(rt=Ct.knowledge_statistics)||void 0===rt?void 0:rt.knowledge_visits,title:"累计浏览次数(次)"}])||void 0===u?void 0:u.map((function(t,e){return(0,K.jsxs)("div",{className:F,children:[(0,K.jsx)(y.Z,{title:null==t?void 0:t.value,children:(0,K.jsx)("div",{className:_,children:null==t?void 0:t.value})}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.title,children:(0,K.jsx)("div",{className:U,children:null==t?void 0:t.title})})]})}))]}),(0,K.jsxs)("div",{className:z,children:[(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABZCAYAAAA+TwS/AAAAAXNSR0IArs4c6QAAC0RJREFUWEetWQtUVNUa/vaZ4SUvBVQgUCCvWhgIqGCBGqa11K46GmmaPezl6la31rK6j2r1uD0sb3Wt1JuQmma6RFKvPbSXgoKkiEiipSIgwsDMMMNrUGbm3LX3PvucM4Pd6spmuc6cffb+9vd//7///ZAAQGGxOWleztBz9PfVFkIBdhy0Pmi6KfLDqwWj/RlgUYl169zsyDv7BVCWZVJU0tZiyokY3C+AOw+1pbndngpTTiRje7WF7CixLYcsr+g3wPKf2s0XzL1D+g2wzu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izoA++4CIZWSLO+XJamkp72jOC4uzOo7ZUlDi0u9TBO7W/4k9O7GTiR8Knvkz6VBhu+GENJ5hWnvVUXqW1yy4ijOkl9GNhIZr7mcUkF8PHH+Goj+O6k3a8uoxA6WnvcC4PfXIUN+nc2VBiL1ZuXwSEgPkfFA/FDj5t/DqI+GdeZe2e2W4S9hYly0f9nVgDEv1zZdls80dmPauIFXyrO/G58UV7W7Wh29hn67ut9RbDsAyDn9BlhYYn2OyHipPwGziIzSfgPctk02+MW0tc7NiYj43R64Qgfm2aKStu1zswfN7zfAz0psD8/Jjljbb4CFxfakeTkD++X/9f4LYe+ZfKlN57QAAAAASUVORK5CYII="}),null==Ct||null===(st=Ct.knowledge_statistics)||void 0===st||null===(st=st.resource_data)||void 0===st?void 0:st.map((function(t,e){return(0,K.jsxs)("div",{className:F,children:[(0,K.jsx)(y.Z,{title:null==t?void 0:t.num,children:(0,K.jsx)("div",{className:_,children:null==t?void 0:t.num})}),(0,K.jsx)(y.Z,{title:null==t?void 0:t.node_type,children:(0,K.jsx)("div",{className:U,children:null==t?void 0:t.node_type})})]})}))]})]})]}),!(null==Ct||null===(at=Ct.nodes)||void 0===at||!at.length)&&(null==Ct||null===(ot=Ct.nodes)||void 0===ot?void 0:ot.length)<2&&(0,K.jsx)(et.Z,{style:{marginTop:84},text:"您还未创建自己的知识图谱,请点击下方“知识图谱开发空间”按钮进行创建",btnText:"知识图谱开发空间",onClick:function(){return window.open("".concat(ut,"/knowledgegraph/").concat(lt))}})]}),1===Et&&(0,K.jsxs)("div",{style:{background:"#fff",borderRadius:18,padding:20,marginTop:20},children:[(0,K.jsxs)("div",{className:"flex item-center",style:{marginBottom:15},children:[(0,K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAO9JREFUOBFj3H//P8ePj//a/jMyRDH8/y/uZcDCyAAEoZP//QfRxAHG54yMDIv+izHUsYANY/hfyECCdkxL/kv+/89QzviKkYGFgZEhGpdhEvwMDJNiwQ6Gm5G3+D/Di49wLgoDaGgc0///QIdSDfyXZKKaWVCDiDLwxUeQN4kLZBZ8LgSGCcP2i/8Zlh6HqIq2/A9MCPh0MAAjBQ94+YmBYf5hhAJkNkIUlUWUl1G14OeNGog/fIiRHQ1DYkIJvxomRgbG5/iVkCLL+BxoIMMiUrTgUwsqtVlkWZnqHv/+Bypj44BZXxKfBtxyiCoAAHADSWb7p5YAAAAAAElFTkSuQmCC",style:{marginRight:"10px"}}),(0,K.jsx)("b",{className:"c-grey-333 font16",children:"课程介绍"})]}),(0,K.jsx)("div",{children:(0,K.jsx)(Q.Z,{style:{color:"#333",fontSize:16},value:(null==Ct?void 0:Ct.description)||""})})]})]})})})),st=["globalSetting","user","dispatch","location"],at=(0,p.connect)((function(t){return{globalSetting:t.globalSetting,user:t.user}}))((function(t){t.globalSetting,t.user,t.dispatch,t.location,d()(t,st);var e=(0,f.useState)([{name:"",description:""}]),n=h()(e,2),i=(n[0],n[1]),s=(0,f.useState)([]),o=h()(s,2),u=(o[0],o[1],(0,f.useState)(1)),c=h()(u,2),p=(c[0],c[1]),g=(0,f.useState)(),m=h()(g,2),v=(m[0],m[1]),y=(0,f.useState)(!1),A=h()(y,2),b=A[0],w=A[1];function E(){return(E=l()(r()().mark((function t(e){var n,s,o,l;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return w(!0),t.next=3,(0,H.ZP)("/api/ai/bishengs_url/workflow/list.json",{method:"get",params:a()({},e)});case 3:n=t.sent,w(!1),200===(null==n?void 0:n.status_code)&&(i(null==n||null===(s=n.data)||void 0===s?void 0:s.data),v(null==n||null===(o=n.data)||void 0===o?void 0:o.total),0===(null==n||null===(l=n.data)||void 0===l?void 0:l.total)&&1===e.oneindex&&p(2));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,f.useEffect)((function(){!function(t){E.apply(this,arguments)}({page:1,page_size:20,oneindex:1})}),[]),console.log("loading:",b),(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(rt,{})})}))},8944:function(){},36785:function(t,e,n){"use strict";n.d(e,{o2:function(){return o},yT:function(){return l}});var i=n(95190),r=n(33166);const s=r.i.map((t=>`${t}-inverse`)),a=["success","processing","error","default","warning"];function o(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?[].concat((0,i.Z)(s),(0,i.Z)(r.i)).includes(t):r.i.includes(t)}function l(t){return a.includes(t)}},79676:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(60293);const r={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},s={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function o(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:l,borderRadius:u,visibleFirst:h}=t,c=e/2,d={};return Object.keys(r).forEach((t=>{const f=o&&s[t]||r[t],p=Object.assign(Object.assign({},f),{offset:[0,0]});switch(d[t]=p,a.has(t)&&(p.autoArrow=!1),t){case"top":case"topLeft":case"topRight":p.offset[1]=-c-l;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=c+l;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-c-l;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=c+l}const g=(0,i.fS)({contentRadius:u,limitVerticalRadius:!0});if(o)switch(t){case"topLeft":case"bottomLeft":p.offset[0]=-g.dropdownArrowOffset-c;break;case"topRight":case"bottomRight":p.offset[0]=g.dropdownArrowOffset+c;break;case"leftTop":case"rightTop":p.offset[1]=-g.dropdownArrowOffset-c;break;case"leftBottom":case"rightBottom":p.offset[1]=g.dropdownArrowOffset+c}p.overflow=function(t,e,n,i){if(!1===i)return{adjustX:!1,adjustY:!1};const r=i&&"object"==typeof i?i:{},s={};switch(t){case"top":case"bottom":s.shiftX=2*e.dropdownArrowOffset+n;break;case"left":case"right":s.shiftY=2*e.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},s),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(t,g,e,n),h&&(p.htmlRegion="visibleFirst")})),d}},69507:function(t,e,n){"use strict";n.d(e,{ZP:function(){return a},c4:function(){return s}});var i=n(59301),r=n(88088);const s=["xxl","xl","lg","md","sm","xs"];function a(){const[,t]=(0,r.Z)(),e=(t=>({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`}))((t=>{const e=t,n=[].concat(s).reverse();return n.forEach(((t,i)=>{const r=t.toUpperCase(),s=`screen${r}Min`,a=`screen${r}`;if(!(e[s]<=e[a]))throw new Error(`${s}<=${a} fails : !(${e[s]}<=${e[a]})`);if(i{const t=new Map;let n=-1,i={};return{matchHandlers:{},dispatch(e){return i=e,t.forEach((t=>t(i))),t.size>=1},subscribe(e){return t.size||this.register(),n+=1,t.set(n,e),e(i),n},unsubscribe(e){t.delete(e),t.size||this.unregister()},unregister(){Object.keys(e).forEach((t=>{const n=e[t],i=this.matchHandlers[n];null==i||i.mql.removeListener(null==i?void 0:i.listener)})),t.clear()},register(){Object.keys(e).forEach((t=>{const n=e[t],r=e=>{let{matches:n}=e;this.dispatch(Object.assign(Object.assign({},i),{[t]:n}))},s=window.matchMedia(n);s.addListener(r),this.matchHandlers[n]={mql:s,listener:r},r(s)}))},responsiveMap:e}}),[t])}},43604:function(t,e,n){"use strict";var i=n(37028);e.Z=i.Z},6700:function(t,e,n){"use strict";const i=(0,n(59301).createContext)({});e.Z=i},37028:function(t,e,n){"use strict";var i=n(59301),r=n(92310),s=n.n(r),a=n(36355),o=n(6700),l=n(98242),u=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{getPrefixCls:n,direction:r}=i.useContext(a.E_),{gutter:c,wrap:d}=i.useContext(o.Z),{prefixCls:f,span:p,order:g,offset:m,push:v,pull:y,className:A,children:b,flex:w,style:E}=t,x=u(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),k=n("col",f),[T,C]=(0,l.c)(k);let D={};h.forEach((e=>{let n={};const i=t[e];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),delete x[e],D=Object.assign(Object.assign({},D),{[`${k}-${e}-${n.span}`]:void 0!==n.span,[`${k}-${e}-order-${n.order}`]:n.order||0===n.order,[`${k}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${k}-${e}-push-${n.push}`]:n.push||0===n.push,[`${k}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${k}-${e}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${k}-rtl`]:"rtl"===r})}));const S=s()(k,{[`${k}-${p}`]:void 0!==p,[`${k}-order-${g}`]:g,[`${k}-offset-${m}`]:m,[`${k}-push-${v}`]:v,[`${k}-pull-${y}`]:y},A,D,C),I={};if(c&&c[0]>0){const t=c[0]/2;I.paddingLeft=t,I.paddingRight=t}return w&&(I.flex=function(t){return"number"==typeof t?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}(w),!1!==d||I.minWidth||(I.minWidth=0)),T(i.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign({},I),E),className:S,ref:e}),b))}));e.Z=c},27382:function(t,e,n){"use strict";var i=n(59301),r=n(92310),s=n.n(r),a=n(69507),o=n(36355),l=n(6700),u=n(98242),h=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{(()=>{if("string"==typeof t&&r(t),"object"==typeof t)for(let n=0;n{const{prefixCls:n,justify:r,align:d,className:f,style:p,children:g,gutter:m=0,wrap:v}=t,y=h(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:A,direction:b}=i.useContext(o.E_),[w,E]=i.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,k]=i.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),T=c(d,x),C=c(r,x),D=i.useRef(m),S=(0,a.ZP)();i.useEffect((()=>{const t=S.subscribe((t=>{k(t);const e=D.current||0;(!Array.isArray(e)&&"object"==typeof e||Array.isArray(e)&&("object"==typeof e[0]||"object"==typeof e[1]))&&E(t)}));return()=>S.unsubscribe(t)}),[]);const I=A("row",n),[R,L]=(0,u.V)(I),B=(()=>{const t=[void 0,void 0];return(Array.isArray(m)?m:[m,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let i=0;i0?B[0]/-2:void 0;M&&(O.marginLeft=M,O.marginRight=M),[,O.rowGap]=B;const[N,F]=B,_=i.useMemo((()=>({gutter:[N,F],wrap:v})),[N,F,v]);return R(i.createElement(l.Z.Provider,{value:_},i.createElement("div",Object.assign({},y,{className:P,style:Object.assign(Object.assign({},O),p),ref:e}),g)))}));e.Z=d},98242:function(t,e,n){"use strict";n.d(e,{V:function(){return l},c:function(){return u}});var i=n(83116),r=n(37613);const s=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},o=(t,e)=>((t,e)=>{const{componentCls:n,gridColumns:i}=t,r={};for(let t=i;t>=0;t--)0===t?(r[`${n}${e}-${t}`]={display:"none"},r[`${n}-push-${t}`]={insetInlineStart:"auto"},r[`${n}-pull-${t}`]={insetInlineEnd:"auto"},r[`${n}${e}-push-${t}`]={insetInlineStart:"auto"},r[`${n}${e}-pull-${t}`]={insetInlineEnd:"auto"},r[`${n}${e}-offset-${t}`]={marginInlineStart:0},r[`${n}${e}-order-${t}`]={order:0}):(r[`${n}${e}-${t}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${t/i*100}%`,maxWidth:t/i*100+"%"}],r[`${n}${e}-push-${t}`]={insetInlineStart:t/i*100+"%"},r[`${n}${e}-pull-${t}`]={insetInlineEnd:t/i*100+"%"},r[`${n}${e}-offset-${t}`]={marginInlineStart:t/i*100+"%"},r[`${n}${e}-order-${t}`]={order:t});return r})(t,e),l=(0,i.Z)("Grid",(t=>[s(t)])),u=(0,i.Z)("Grid",(t=>{const e=(0,r.TS)(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[a(e),o(e,""),o(e,"-xs"),Object.keys(n).map((t=>((t,e,n)=>({[`@media (min-width: ${e}px)`]:Object.assign({},o(t,n))}))(e,n[t],t))).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})]}))},91454:function(t,e,n){"use strict";n.d(e,{Z:function(){return D}});var i=n(92310),r=n.n(i),s=n(59301);const a=t=>t?"function"==typeof t?t():t:null;var o=n(62892),l=n(36355),u=n(6848),h=n(55477),c=n(17313),d=n(29878),f=n(60293),p=n(33166),g=n(83116),m=n(37613);const v=t=>{const{componentCls:e,popoverColor:n,minWidth:i,fontWeightStrong:r,popoverPadding:s,boxShadowSecondary:a,colorTextHeading:o,borderRadiusLG:l,zIndexPopup:u,marginXS:h,colorBgElevated:d,popoverBg:p}=t;return[{[e]:Object.assign(Object.assign({},(0,c.Wf)(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:s},[`${e}-title`]:{minWidth:i,marginBottom:h,color:o,fontWeight:r},[`${e}-inner-content`]:{color:n}})},(0,f.ZP)(t,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},y=t=>{const{componentCls:e}=t;return{[e]:p.i.map((n=>{const i=t[`${n}6`];return{[`&${e}-${n}`]:{"--antd-arrow-background-color":i,[`${e}-inner`]:{backgroundColor:i},[`${e}-arrow`]:{background:"transparent"}}}}))}},A=t=>{const{componentCls:e,lineWidth:n,lineType:i,colorSplit:r,paddingSM:s,controlHeight:a,fontSize:o,lineHeight:l,padding:u}=t,h=a-Math.round(o*l);return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${h/2}px ${u}px ${h/2-n}px`,borderBottom:`${n}px ${i} ${r}`},[`${e}-inner-content`]:{padding:`${s}px ${u}px`}}}};var b=(0,g.Z)("Popover",(t=>{const{colorBgElevated:e,colorText:n,wireframe:i}=t,r=(0,m.TS)(t,{popoverPadding:12,popoverBg:e,popoverColor:n});return[v(r),y(r),i&&A(r),(0,d._y)(r,"zoom-big")]}),(t=>({width:177,minWidth:177,zIndexPopup:t.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]}),w=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{hashId:e,prefixCls:n,className:i,style:o,placement:l="top",title:u,content:c,children:d}=t;return s.createElement("div",{className:r()(e,n,`${n}-pure`,`${n}-placement-${l}`,i),style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(h.G,Object.assign({},t,{className:e,prefixCls:n}),d||((t,e,n)=>{if(e||n)return s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${t}-title`},a(e)),s.createElement("div",{className:`${t}-inner-content`},a(n)))})(n,u,c)))};var x=t=>{const{prefixCls:e}=t,n=w(t,["prefixCls"]),{getPrefixCls:i}=s.useContext(l.E_),r=i("popover",e),[a,o]=b(r);return a(s.createElement(E,Object.assign({},n,{prefixCls:r,hashId:o})))},k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{let{title:e,content:n,prefixCls:i}=t;return s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${i}-title`},a(e)),s.createElement("div",{className:`${i}-inner-content`},a(n)))},C=s.forwardRef(((t,e)=>{const{prefixCls:n,title:i,content:a,overlayClassName:h,placement:c="top",trigger:d="hover",mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,overlayStyle:g={}}=t,m=k(t,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:v}=s.useContext(l.E_),y=v("popover",n),[A,w]=b(y),E=v(),x=r()(h,w);return A(s.createElement(u.Z,Object.assign({placement:c,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:g},m,{prefixCls:y,overlayClassName:x,ref:e,overlay:i||a?s.createElement(T,{prefixCls:y,title:i,content:a}):null,transitionName:(0,o.m)(E,"zoom-big",m.transitionName),"data-popover-inject":!0})))}));C._InternalPanelDoNotUseOrYouWillBeFired=x;var D=C},95237:function(t,e,n){"use strict";var i=n(27382);e.Z=i.Z},60293:function(t,e,n){"use strict";n.d(e,{qN:function(){return r},ZP:function(){return o},fS:function(){return s}});const i=(t,e,n,i,r)=>{const s=t/2,a=s,o=1*n/Math.sqrt(2),l=s-n*(1-1/Math.sqrt(2)),u=s-e*(1/Math.sqrt(2)),h=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),c=2*s-u,d=h,f=2*s-o,p=l,g=2*s-0,m=a,v=s*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:i,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*s-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${o} ${l} L ${u} ${h} A ${e} ${e} 0 0 1 ${c} ${d} L ${f} ${p} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},r=8;function s(t){const e=r,{contentRadius:n,limitVerticalRadius:i}=t,s=n>12?n+2:12;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:i?e:s}}function a(t,e){return t?e:{}}function o(t,e){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:l,boxShadowPopoverArrow:u}=t,{colorBg:h,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:d,arrowDistance:f=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=e,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:m}=s({contentRadius:c,limitVerticalRadius:d});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},i(r,o,l,h,u)),{"&:before":{background:h}})]},a(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),a(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),a(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:g},[`&-placement-leftBottom ${n}-arrow`]:{bottom:g}})),a(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:g},[`&-placement-rightBottom ${n}-arrow`]:{bottom:g}}))}}},33166:function(t,e,n){"use strict";n.d(e,{i:function(){return i}});const i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(33166);function r(t,e){return i.i.reduce(((n,i)=>{const r=t[`${i}1`],s=t[`${i}3`],a=t[`${i}6`],o=t[`${i}7`];return Object.assign(Object.assign({},n),e(i,{lightColor:r,lightBorderColor:s,darkColor:a,textColor:o}))}),{})}},6848:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var i=n(59301),r=n(92310),s=n.n(r),a=n(55477),o=n(18929),l=n(62892),u=n(79676),h=n(92343),c=n(36355),d=n(33234),f=n(88088),p=n(17313),g=n(29878),m=n(60293),v=n(45157),y=n(37613),A=n(83116);const b=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:r,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:o,boxShadowSecondary:l,paddingSM:u,paddingXS:h,tooltipRadiusOuter:c}=t;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(t)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${e}-inner`]:{minWidth:o,minHeight:o,padding:`${u/2}px ${h}px`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:s,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(s,m.qN)}},[`${e}-content`]:{position:"relative"}}),(0,v.Z)(t,((t,n)=>{let{darkColor:i}=n;return{[`&${e}-${t}`]:{[`${e}-inner`]:{backgroundColor:i},[`${e}-arrow`]:{"--antd-arrow-background-color":i}}}}))),{"&-rtl":{direction:"rtl"}})},(0,m.ZP)((0,y.TS)(t,{borderRadiusOuter:c}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:s,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]};var w=(t,e)=>(0,A.Z)("Tooltip",(t=>{if(!1===e)return[];const{borderRadius:n,colorTextLightSolid:i,colorBgDefault:r,borderRadiusOuter:s}=t,a=(0,y.TS)(t,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:s>4?4:s});return[b(a),(0,g._y)(t,"zoom-big-fast")]}),(t=>{let{zIndexPopupBase:e,colorBgSpotlight:n}=t;return{zIndexPopup:e+70,colorBgDefault:n}}),{resetStyle:!1})(t),E=n(36785);function x(t,e){const n=(0,E.o2)(e),i=s()({[`${t}-${e}`]:e&&n}),r={},a={};return e&&!n&&(r.background=e,a["--antd-arrow-background-color"]=e),{className:i,overlayStyle:r,arrowStyle:a}}var k=t=>{const{prefixCls:e,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:u}=t,{getPrefixCls:h}=i.useContext(c.E_),d=h("tooltip",e),[f,p]=w(d,!0),g=x(d,l),m=g.arrowStyle,v=Object.assign(Object.assign({},u),g.overlayStyle),y=s()(p,d,`${d}-pure`,`${d}-placement-${r}`,n,g.className);return f(i.createElement("div",{className:y,style:m},i.createElement("div",{className:`${d}-arrow`}),i.createElement(a.G,Object.assign({},t,{className:p,prefixCls:d,overlayInnerStyle:v}),o)))},T=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const n={},i=Object.assign({},t);return e.forEach((e=>{t&&e in t&&(n[e]=t[e],delete i[e])})),{picked:n,omitted:i}})(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:t.props.block?"100%":void 0}),o=Object.assign(Object.assign({},r),{pointerEvents:"none"}),l=(0,h.Tm)(t,{style:o,className:null});return i.createElement("span",{style:a,className:s()(t.props.className,`${e}-disabled-compatible-wrapper`)},l)}return t}const D=i.forwardRef(((t,e)=>{var n,r;const{prefixCls:p,openClassName:g,getTooltipContainer:m,overlayClassName:v,color:y,overlayInnerStyle:A,children:b,afterOpenChange:E,afterVisibleChange:k,destroyTooltipOnHide:D,arrow:S=!0,title:I,overlay:R,builtinPlacements:L,arrowPointAtCenter:B=!1,autoAdjustOverflow:P=!0}=t,O=!!S,[,M]=(0,f.Z)(),{getPopupContainer:N,getPrefixCls:F,direction:_}=i.useContext(c.E_),U=i.useRef(null),z=()=>{var t;null===(t=U.current)||void 0===t||t.forceAlign()};i.useImperativeHandle(e,(()=>({forceAlign:z,forcePopupAlign:()=>{z()}})));const[j,G]=(0,o.Z)(!1,{value:null!==(n=t.open)&&void 0!==n?n:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),H=!I&&!R&&0!==I,Q=i.useMemo((()=>{var t,e;let n=B;return"object"==typeof S&&(n=null!==(e=null!==(t=S.pointAtCenter)&&void 0!==t?t:S.arrowPointAtCenter)&&void 0!==e?e:B),L||(0,u.Z)({arrowPointAtCenter:n,autoAdjustOverflow:P,arrowWidth:O?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})}),[B,S,L,M]),q=i.useMemo((()=>0===I?I:R||I||""),[R,I]),V=i.createElement(d.BR,null,"function"==typeof q?q():q),{getPopupContainer:Y,placement:K="top",mouseEnterDelay:X=.1,mouseLeaveDelay:W=.1,overlayStyle:Z,rootClassName:J}=t,$=T(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),tt=F("tooltip",p),et=F(),nt=t["data-popover-inject"];let it=j;"open"in t||"visible"in t||!H||(it=!1);const rt=C((0,h.l$)(b)&&!(0,h.M2)(b)?b:i.createElement("span",null,b),tt),st=rt.props,at=st.className&&"string"!=typeof st.className?st.className:s()(st.className,g||`${tt}-open`),[ot,lt]=w(tt,!nt),ut=x(tt,y),ht=ut.arrowStyle,ct=Object.assign(Object.assign({},A),ut.overlayStyle),dt=s()(v,{[`${tt}-rtl`]:"rtl"===_},ut.className,J,lt);return ot(i.createElement(a.Z,Object.assign({},$,{showArrow:O,placement:K,mouseEnterDelay:X,mouseLeaveDelay:W,prefixCls:tt,overlayClassName:dt,overlayStyle:Object.assign(Object.assign({},ht),Z),getTooltipContainer:Y||m||N,ref:U,builtinPlacements:Q,overlay:V,visible:it,onVisibleChange:e=>{var n,i;G(!H&&e),H||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(i=t.onVisibleChange)||void 0===i||i.call(t,e))},afterVisibleChange:null!=E?E:k,overlayInnerStyle:ct,arrowContent:i.createElement("span",{className:`${tt}-arrow-content`}),motion:{motionName:(0,l.m)(et,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!D}),it?(0,h.Tm)(rt,{className:at}):rt))}));D._InternalPanelDoNotUseOrYouWillBeFired=k;var S=D},64018:function(){window.PR_SHOULD_USE_CONTINUATION=!0,function(){var t=window,e=["break,continue,do,else,for,if,return,while"],n=[[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"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],i=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="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",l=[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"],u=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],h=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],c=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,d="str",f="com",p="typ",g="lit",m="pun",v="pln",y="atv";function A(t,e,n,i,r){if(n){var s={sourceNode:t,pre:1,langExtension:null,numberLines:null,sourceCode:n,spans:null,basePos:e,decorations:null};i(s),r.push.apply(r,s.decorations)}}var b=/\S/;function w(t){for(var e=void 0,n=t.firstChild;n;n=n.nextSibling){var i=n.nodeType;e=1===i?e?t:n:3===i&&b.test(n.nodeValue)?t:e}return e===t?void 0:e}function E(t,e){var n,i={};!function(){for(var r=t.concat(e),s=[],a={},o=0,l=r.length;o=0;)i[h.charAt(c)]=u;var d=u[1],f=""+d;a.hasOwnProperty(f)||(s.push(d),a[f]=null)}s.push(/[\0-\uffff]/),n=function(t){for(var e=0,n=!1,i=!1,r=0,s=t.length;r122||(h<65||c>90||n.push([32|Math.max(65,c),32|Math.min(h,90)]),h<97||c>122||n.push([-33&Math.max(97,c),-33&Math.min(h,122)]))}}n.sort((function(t,e){return t[0]-e[0]||e[1]-t[1]}));var d=[],f=[];for(s=0;sp[0]&&(p[1]+1>p[0]&&r.push("-"),r.push(l(p[1])))}return r.push("]"),r.join("")}function h(t){for(var i=t.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")),r=i.length,s=[],a=0,o=0;a=2&&"["===d?i[a]=u(c):"\\"!==d&&(i[a]=c.replace(/[a-zA-Z]/g,(function(t){var e=t.charCodeAt(0);return"["+String.fromCharCode(-33&e,32|e)+"]"})))}return i.join("")}var c=[];for(r=0,s=t.length;r=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[m]=y)}var x=h;if(h+=m.length,g){var k=b[1],T=m.indexOf(k),C=T+k.length;b[2]&&(T=(C=m.length-b[2].length)-k.length);var D=y.substring(5);A(l,o+x,m.substring(0,T),s,u),A(l,o+x+T,k,S(D,k),u),A(l,o+x+C,m.substring(C),s,u)}else u.push(o+x,y)}t.decorations=u};return s}function x(t){var e=[],n=[];t.tripleQuotedStrings?e.push([d,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):t.multiLineStrings?e.push([d,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):e.push([d,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),t.verbatimStrings&&n.push([d,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var i=t.hashComments;i&&(t.cStyleComments?(i>1?e.push([f,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):e.push([f,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([d,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):e.push([f,/^#[^\r\n]*/,null,"#"])),t.cStyleComments&&(n.push([f,/^\/\/[^\r\n]*/,null]),n.push([f,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r=t.regexLiterals;if(r){var s=r>1?"":"\n\r",a=s?".":"[\\S\\s]",o="/(?=[^/*"+s+"])(?:[^/\\x5B\\x5C"+s+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+s+"]|\\x5C"+a+")*(?:\\x5D|$))+/";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+o+")")])}var l=t.types;l&&n.push([p,l]);var u=(""+t.keywords).replace(/^ | $/g,"");u.length&&n.push(["kwd",new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),e.push([v,/^\s+/,null," \r\n\t "]);var h="^.[^\\s\\w.$@'\"`/\\\\]*";return t.regexLiterals&&(h+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[p,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[m,new RegExp(h),null]),E(e,n)}var k=x({keywords:[i,s,r,a,o,l,u,h],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function T(t,e,n){for(var i=/(?:^|\s)nocode(?:\s|$)/,r=/\r\n?|\n/,s=t.ownerDocument,a=s.createElement("li");t.firstChild;)a.appendChild(t.firstChild);var o=[a];function l(t){var e=t.nodeType;if(1!=e||i.test(t.className)){if((3==e||4==e)&&n){var a=t.nodeValue,o=a.match(r);if(o){var h=a.substring(0,o.index);t.nodeValue=h;var c=a.substring(o.index+o[0].length);if(c)t.parentNode.insertBefore(s.createTextNode(c),t.nextSibling);u(t),h||t.parentNode.removeChild(t)}}}else if("br"===t.nodeName)u(t),t.parentNode&&t.parentNode.removeChild(t);else for(var d=t.firstChild;d;d=d.nextSibling)l(d)}function u(t){for(;!t.nextSibling;)if(!(t=t.parentNode))return;for(var e,n=function t(e,n){var i=n?e.cloneNode(!1):e,r=e.parentNode;if(r){var s=t(r,1),a=e.nextSibling;s.appendChild(i);for(var o=a;o;o=a)a=o.nextSibling,s.appendChild(o)}return i}(t.nextSibling,0);(e=n.parentNode)&&1===e.nodeType;)n=e;o.push(n)}for(var h=0;h=0;){var r=n[i];C.hasOwnProperty(r)?t.console&&console.warn("cannot override language handler %s",r):C[r]=e}}function S(t,e){return t&&C.hasOwnProperty(t)||(t=/^\s*=b&&(h+=2),o>=w&&(f+=2)}}finally{v&&(v.style.display=y)}}(e)}catch(e){t.console&&console.log(e&&e.stack||e)}}function R(t,e,n){var i=n||!1,r=e||null,s=document.createElement("div");return s.innerHTML="
      "+t+"
      ",s=s.firstChild,i&&T(s,i,!0),I({langExtension:r,numberLines:i,sourceNode:s,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),s.innerHTML}function L(e,n){var i=n||document.body,r=i.ownerDocument||document;function s(t){return i.getElementsByTagName(t)}for(var a=[s("pre"),s("code"),s("xmp")],o=[],l=0;l]*(?:>|$)/],[f,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),D(E([[v,/^[\s]+/,null," \t\r\n"],[y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["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"]),D(E([],[[y,/^[\s\S]+/]]),["uq.val"]),D(x({keywords:i,hashComments:!0,cStyleComments:!0,types:c}),["c","cc","cpp","cxx","cyc","m"]),D(x({keywords:"null,true,false"}),["json"]),D(x({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:c}),["cs"]),D(x({keywords:r,cStyleComments:!0}),["java"]),D(x({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),D(x({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),D(x({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),D(x({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),D(x({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),D(x({keywords:"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",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),D(E([],[[d,/^[\s\S]+/]]),["regex"]);var B=t.PR={createSimpleLexer:E,registerLangHandler:D,sourceDecorator:x,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:f,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:v,PR_PUNCTUATION:m,PR_SOURCE:"src",PR_STRING:d,PR_TAG:"tag",PR_TYPE:p,prettyPrintOne:R,prettyPrint:L},P=t.define;"function"==typeof P&&P.amd&&P("google-code-prettify",[],(function(){return B}))}()},25769:function(t,e,n){"use strict";var i=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,s,a,o,l,u,h=!1;e||(e={}),n=e.debug||!1;try{if(a=i(),o=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=t,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(i){if(i.stopPropagation(),e.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=r[e.format]||r.default;window.clipboardData.setData(s,t)}else i.clipboardData.clearData(),i.clipboardData.setData(e.format,t);e.onCopy&&(i.preventDefault(),e.onCopy(i.clipboardData))})),document.body.appendChild(u),o.selectNodeContents(u),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");h=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),s=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(s,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return h}},53184:function(t,e,n){"use strict";var i,r;i=[n(58553),n(87804),n(40998)],void 0===(r=function(t,e,n){return function(t,e,n){var i=function(e,n){return t.js_beautify(e,n)};return i.js=t.js_beautify,i.css=e.css_beautify,i.html=n.html_beautify,i.js_beautify=t.js_beautify,i.css_beautify=e.css_beautify,i.html_beautify=n.html_beautify,i}(t,e,n)}.apply(e,i))||(t.exports=r)},87804:function(t,e){var n;!function(){var i;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},,,,function(t){function e(t,e){this.raw_options=n(t,e),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(t,e){var n,r={};for(n in t=i(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function i(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},e.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=i,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var i=n(16).Beautifier,r=n(17).Options;t.exports=function(t,e){return new i(t,e).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,h=/(?:\s|\n)+/g,c=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(t,e){this._source_text=t||"",this._options=new i(e),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"]}f.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},f.prototype.eatWhitespace=function(t){for(var e=u.test(this._input.peek()),n=0;u.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===n||n0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&o.test(t||"")&&(e=t.match(o)[0]));var n=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,f,p=0,g=!1,m=!1,v=!1,y=!1,A=!1,b=this._ch,w=!1;i=""!==this._input.read(h),f=b,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),b=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var E=this._input.read(c),x=a.get_directives(E);x&&"start"===x.ignore&&(E+=a.readIgnored(this._input)),this.print_string(E),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(d)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,""),this.print_string(k),this._output.space_before_token=!0),0===p&&-1!==k.indexOf(":")&&(m=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var T=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);T.match(/[ :]$/)&&(T=this.eatString(": ").replace(/\s+$/,""),this.print_string(T),this._output.space_before_token=!0),0===p&&-1!==T.indexOf(":")?(m=!0,this.indent()):T in this.NESTED_AT_RULE?(this._nestedLevel+=1,T in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==p||m||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)m&&(m=!1,this.outdent()),y=!1,v?(v=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&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(),"{"===f&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!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),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var C=0;C"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var I='"'===f||"'"===f;this.preserveSingleSpace(I||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&w&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else 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&&u.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=f},function(t,e,n){var i=n(6).Options;function r(t){i.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},function(t){t.exports.Token=function(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(t){function e(t,e){this.raw_options=n(t,e),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(t,e){var n,r={};for(n in t=i(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function i(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},e.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=i,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,a=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();for(var e=new r(o.START,""),n=null,i=[],a=new s;e.type!==o.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(o.RAW,n):this._create_token(o.EOF,"")},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){return new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=o},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),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}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in r)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=s},,,,function(t,e,n){var i=n(19).Beautifier,r=n(20).Options;t.exports=function(t,e,n,r){return new i(t,e,n,r).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(20).Options,r=n(2).Output,s=n(21).Tokenizer,a=n(21).TOKEN,o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new r(t,e)};u.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},u.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},u.prototype.print_preserved_newlines=function(t){var e=0;t.type!==a.TEXT&&t.previous.type!==a.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},u.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(t){this._output.add_new_line(t)},u.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},u.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)};var h=function(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=function(t){for(var e=null,n=t.next;n.type!==a.EOF&&t.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(e=n.next.next.text);break}n=n.next}return e}(e)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function c(t,e){return-1!==e.indexOf(t)}function d(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function f(t){this._printer=t,this._current_frame=null}function p(t,e,n,r){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var s=new i(e,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(t){var e=new d(this._current_frame,t,this._printer.indent_level);this._current_frame=e},f.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},f.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&o.test(t)&&(e=t.match(o)[0]));var n=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new g(this._options),h=new u(this._options,n),c=new s(t,this._options).tokenize();this._tag_stack=new f(h);for(var d=null,p=c.next();p.type!==a.EOF;)p.type===a.TAG_OPEN||p.type===a.COMMENT?r=d=this._handle_tag_open(h,p,r,i,c):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!r.tag_complete?d=this._handle_inside_tag(h,p,r,i):p.type===a.TAG_CLOSE?d=this._handle_tag_close(h,p,r):p.type===a.TEXT?d=this._handle_text(h,p,r):p.type===a.CONTROL_FLOW_OPEN?d=this._handle_control_flow_open(h,p):p.type===a.CONTROL_FLOW_CLOSE?d=this._handle_control_flow_close(h,p):h.add_raw_token(p),i=d,p=c.next();return h._output.get_code(e)},p.prototype._handle_control_flow_open=function(t,e){var n={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),e.newlines?t.print_preserved_newlines(e):t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),t.print_token(e),t.indent(),n},p.prototype._handle_control_flow_close=function(t,e){var n={text:e.text,type:e.type};return t.deindent(),e.newlines?t.print_preserved_newlines(e):t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),t.print_token(e),n},p.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},p.prototype._handle_inside_tag=function(t,e,n,i){var r=n.has_wrapped_attrs,s={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):"{"===n.tag_start_char&&e.type===a.TEXT?t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e):(e.type===a.ATTRIBUTE?t.set_space_before_token(!0):(e.type===a.EQUALS||e.type===a.VALUE&&e.previous.type===a.EQUALS)&&t.set_space_before_token(!1),e.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),r=r||0!==e.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(t.print_newline(!1),r=!0)),t.print_token(e),r=r||t.previous_token_wrapped(),n.has_wrapped_attrs=r),s},p.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},p.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var r,s=e.text,a=1,o="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(t,e){return new p(t,e,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-t.indent_level);var u=t.get_full_indent(a);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(|]]>)$/.exec(s);if(!h)return void t.add_raw_token(e);o=u+h[1]+"\n",s=h[4],h[5]&&(l=u+h[5]),s=s.replace(/\n[ \t]*$/,""),(h[2]||-1!==h[3].indexOf("\n"))&&(h=h[3].match(/[ \t]+$/))&&(e.whitespace_before=h[0])}if(s)if(r){var c=function(){this.eol="\n"};c.prototype=this._options.raw_options,s=r(u+s,new c)}else{var d=e.whitespace_before;d&&(s=s.replace(new RegExp("\n("+d+")?","g"),"\n")),s=u+s.replace(/\n/g,"\n"+u)}o&&(s=s?o+s+"\n"+l:o+l),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},p.prototype._handle_tag_open=function(t,e,n,i,r){var s=this._get_tag_open_token(e);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==a.TAG_OPEN||s.is_start_tag?(t.traverse_whitespace(e),this._set_tag_position(t,e,s,n,i),s.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),s.start_tag_token=this._tag_stack.try_pop(s.tag_name)),s.is_start_tag&&this._is_wrap_attributes_force){var o,l=0;do{(o=r.peek(l)).type===a.ATTRIBUTE&&(s.attr_count+=1),l+=1}while(o.type!==a.EOF&&o.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(s.alignment_size=e.text.length+1),s.tag_complete||s.is_unformatted||(t.alignment_size=s.alignment_size),s};var g=function(t,e,n){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",n){var i;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(i=n.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||n.closed&&"/>"===n.closed.text;var r=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(r=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!t.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}else this.tag_complete=!0};p.prototype._get_tag_open_token=function(t){var e=new g(this._options,this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||c(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&c(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&c(e.tag_check,this._options.content_unformatted),e.is_inline_element=c(e.tag_name,this._options.inline)||this._options.inline_custom_elements&&e.tag_name.includes("-")||"{"===e.tag_start_char,e},p.prototype._set_tag_position=function(t,e,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=h(n.tag_check,e)))),c(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))}else if(n.is_end_tag){var s=!1;s=(s=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&t.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n)},p.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];p.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=(e=e||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==m.indexOf(t.tag_name)){var n=t.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?e=(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?e=(e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===t.tag_name?e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==t.tag_name&&"td"!==t.tag_name||(e=(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=p},function(t,e,n){var i=n(6).Options;function r(t){i.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(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_min_attrs=this._get_number("wrap_attributes_min_attrs",2),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.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),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 i,t.exports.Options=r},function(t,e,n){var i=n(9).Tokenizer,r=n(9).TOKEN,s=n(13).Directives,a=n(14).TemplatablePattern,o=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_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},u=new s(/<\!--/,/-->/),h=function(t,e){i.call(this,t,e),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new o(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(s).until_after(s)}};(h.prototype=new i)._is_comment=function(t){return!1},h.prototype._is_opening=function(t){return t.type===l.TAG_OPEN||t.type===l.CONTROL_FLOW_OPEN},h.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])||t.type===l.CONTROL_FLOW_CLOSE&&"}"===t.text&&e.text.endsWith("{")},h.prototype._reset=function(){this._current_tag_name=""},h.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,e))||this._read_attribute(i,t,e))||this._read_close(i,e))||this._read_script_and_style(i,t))||this._read_control_flows(i,e))||this._read_raw_content(i,t,e))||this._read_content_word(i,e))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,e))||this._create_token(l.UNKNOWN,this._input.next())},h.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;"<"===t&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=u.get_directives(n))&&"start"===i.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=i));return e},h.prototype._read_processing=function(t){var e=null,n=null;if("<"===t){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=null)}return e},h.prototype._read_open=function(t,e){var n=null,i=null;return e&&e.type!==l.CONTROL_FLOW_OPEN||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},h.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e&&e.type!==l.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===t&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},h.prototype._read_control_flows=function(t,e){var n="",i=null;if(!this._options.templating.includes("angular"))return i;if("@"===t){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||r!==s;){var a=this._input.next();if(null===a)break;"("===a?r++:")"===a&&s++,n+=a}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===t&&e&&e.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},h.prototype._read_close=function(t,e){var n=null,i=null;return e&&e.type===l.TAG_OPEN&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},h.prototype._read_attribute=function(t,e,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===t)i=this._create_token(l.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,s)}else(r=this.__patterns.attribute.read())&&(i=e.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},h.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},h.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var r=e.opened.text.substr(1).toLowerCase();this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(l.TEXT,i):null},h.prototype._read_script_and_style=function(t,e){if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var n=e.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var i=this._read_comment_or_cdata(t);if(i)return i.type=l.TEXT,i;var r=this._input.readUntil(new RegExp("","ig"));if(r)return this._create_token(l.TEXT,r)}}return null},h.prototype._read_content_word=function(t,e){var n="";return this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=e&&e.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n?this._create_token(l.TEXT,n):null},t.exports.Tokenizer=h,t.exports.TOKEN=l}],e={};var n=function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}(18);s=n}();var a=s;i=[n,n(58553),n(87804)],r=function(t){var e=n(58553),i=n(87804);return{html_beautify:function(t,n){return a(t,n,e.js_beautify,i.css_beautify)}}}.apply(e,i),void 0===r||(t.exports=r)}()},58553:function(t,e){var n;!function(){var i;!function(){"use strict";var t=[function(t,e,n){var i=n(1).Beautifier,r=n(5).Options;t.exports=function(t,e){return new i(t,e).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(2).Output,r=n(3).Token,s=n(4),a=n(5).Options,o=n(7).Tokenizer,l=n(7).line_starters,u=n(7).positionable_operators,h=n(7).TOKEN;function c(t,e){return-1!==e.indexOf(t)}function d(t,e){return t&&t.type===h.RESERVED&&t.text===e}function f(t,e){return t&&t.type===h.RESERVED&&c(t.text,e)}var p=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},n=0;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new r(h.START_BLOCK,""),last_word:t?t.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:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},D.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v);var n=new o(t,this._options);return this._tokens=n.tokenize(),t},D.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&s.lineBreak.test(t||"")&&(e=t.match(s.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},D.prototype.handle_token=function(t,e){t.type===h.START_EXPR?this.handle_start_expr(t):t.type===h.END_EXPR?this.handle_end_expr(t):t.type===h.START_BLOCK?this.handle_start_block(t):t.type===h.END_BLOCK?this.handle_end_block(t):t.type===h.WORD||t.type===h.RESERVED?this.handle_word(t):t.type===h.SEMICOLON?this.handle_semicolon(t):t.type===h.STRING?this.handle_string(t):t.type===h.EQUALS?this.handle_equals(t):t.type===h.OPERATOR?this.handle_operator(t):t.type===h.COMMA?this.handle_comma(t):t.type===h.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===h.COMMENT?this.handle_comment(t,e):t.type===h.DOT?this.handle_dot(t):t.type===h.EOF?this.handle_eof(t):(t.type,h.UNKNOWN,this.handle_unknown(t,e))},D.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,i=this._options.keep_array_indentation&&T(this._flags.mode);if(t.comments_before)for(var r=t.comments_before.next();r;)this.handle_whitespace_and_comments(r,e),this.handle_token(r,e),r=t.comments_before.next();if(i)for(var s=0;s0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var a=1;a0&&(!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))},D.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},D.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&k(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},D.prototype.start_of_object_property=function(){return this._flags.parent.mode===A&&this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"]))},D.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||f(this._flags.last_token,["var","let","const"])&&t.type===h.WORD)||d(this._flags.last_token,"do"))||!(this._flags.parent.mode===A&&this._flags.mode===y)&&f(this._flags.last_token,S)&&!t.newlines)||d(this._flags.last_token,"else")&&!(d(t,"if")&&!t.comments_before))||this._flags.last_token.type===h.END_EXPR&&(this._previous_flags.mode===w||this._previous_flags.mode===E))||this._flags.last_token.type===h.WORD&&this._flags.mode===v&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==h.WORD&&t.type!==h.RESERVED)||this._flags.mode===A&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,f(t,["do","for","if","while"])),!0)},D.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=x;if("["===t.text){if(this._flags.last_token.type===h.WORD||")"===this._flags.last_token.text)return f(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=b,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()),c(this._flags.last_token.type,[h.START_EXPR,h.END_EXPR,h.WORD,h.OPERATOR,h.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===h.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=w):c(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=E):c(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(c(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===h.EQUALS||this._flags.last_token.type===h.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===h.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);f(n,["async","function"])||"*"===n.text&&f(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===A?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.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(t);(this._flags.last_token.type===h.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(c(this._last_last_text,["function","yield"])||this._flags.mode===A&&c(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===h.START_BLOCK?this.print_newline():this._flags.last_token.type!==h.END_EXPR&&this._flags.last_token.type!==h.START_EXPR&&this._flags.last_token.type!==h.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==h.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},D.prototype.handle_end_expr=function(t){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==h.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),k(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===E&&(this._previous_flags.mode=x,this._flags.do_block=!1,this._flags.do_while=!1)},D.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===h.END_EXPR?(this.set_mode(v),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v):n&&(c(n.text,[":",","])&&c(e.type,[h.STRING,h.WORD,h.RESERVED])||c(e.text,["get","set","..."])&&c(n.type,[h.WORD,h.RESERVED]))?c(this._last_last_text,["class","interface"])&&!c(n.text,[":",","])?this.set_mode(v):this.set_mode(A):this._flags.last_token.type===h.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v):c(this._flags.last_token.type,[h.EQUALS,h.START_EXPR,h.COMMA,h.OPERATOR])||f(this._flags.last_token,["return","throw","import","default"])?this.set_mode(A):this.set_mode(v),this._flags.last_token&&f(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!e.comments_before&&"}"===e.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===h.END_EXPR;if(this._options.brace_preserve_inline){var s=0,a=null;this._flags.inline_frame=!0;do{if(s+=1,(a=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==h.EOF&&(a.type!==h.END_BLOCK||a.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==h.OPERATOR&&(r||this._flags.last_token.type===h.EQUALS||f(this._flags.last_token,p)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!T(this._previous_flags.mode)||this._flags.last_token.type!==h.START_EXPR&&this._flags.last_token.type!==h.COMMA||((this._flags.last_token.type===h.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===h.COMMA||this._flags.last_token.type===h.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==h.OPERATOR&&this._flags.last_token.type!==h.START_EXPR&&(c(this._flags.last_token.type,[h.START_BLOCK,h.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(t),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},D.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===y;)this.restore_mode();var e=this._flags.last_token.type===h.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(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(t)},D.prototype.handle_word=function(t){if(t.type===h.RESERVED)if(c(t.text,["set","get"])&&this._flags.mode!==A)t.type=h.WORD;else if("import"===t.text&&c(this._tokens.peek().text,["(","."]))t.type=h.WORD;else if(c(t.text,["as","from"])&&!this._flags.import_block)t.type=h.WORD;else if(this._flags.mode===A){":"===this._tokens.peek().text&&(t.type=h.WORD)}if(this.start_of_statement(t)?f(this._flags.last_token,["var","let","const"])&&t.type===h.WORD&&(this._flags.declaration_statement=!0):!t.newlines||C(this._flags.mode)||this._flags.last_token.type===h.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===h.EQUALS||!this._options.preserve_newlines&&f(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&f(t,["case","default"]))return 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(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==h.COMMA&&this._flags.last_token.type!==h.START_EXPR&&this._flags.last_token.type!==h.EQUALS&&this._flags.last_token.type!==h.OPERATOR||this.start_of_object_property()||c(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===A||this.allow_wrap_or_preserved_newline(t),d(t,"function"))return(c(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!c(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==h.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===h.RESERVED||this._flags.last_token.type===h.WORD?f(this._flags.last_token,["get","set","new","export"])||f(this._flags.last_token,S)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===h.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!C(this._flags.mode)&&!T(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";(this._flags.last_token.type===h.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":f(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):e="NEWLINE":this._flags.last_token.type===h.SEMICOLON&&this._flags.mode===v?e="NEWLINE":this._flags.last_token.type===h.SEMICOLON&&C(this._flags.mode)?e="SPACE":this._flags.last_token.type===h.STRING?e="NEWLINE":this._flags.last_token.type===h.RESERVED||this._flags.last_token.type===h.WORD||"*"===this._flags.last_token.text&&(c(this._last_last_text,["function","yield"])||this._flags.mode===A&&c(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===h.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===h.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),f(t,l)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),f(t,["else","catch","finally"]))?(this._flags.last_token.type!==h.END_BLOCK||this._previous_flags.mode!==v||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?f(this._flags.last_token,p)||"declare"===this._flags.last_token.text&&f(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==h.END_EXPR?this._flags.last_token.type===h.START_EXPR&&f(t,["var","let","const"])||":"===this._flags.last_token.text||(d(t,"if")&&d(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):f(t,l)&&")"!==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():"SPACE"===e&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==h.WORD&&t.previous.type!==h.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===h.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&d(t,"from")&&(this._flags.import_block=!1))},D.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&d(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},D.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==h.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===h.RESERVED||this._flags.last_token.type===h.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===h.COMMA||this._flags.last_token.type===h.START_EXPR||this._flags.last_token.type===h.EQUALS||this._flags.last_token.type===h.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==h.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},D.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},D.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(C(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(t)):this._flags.mode===A||this._flags.mode===y&&this._flags.parent.mode===A?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},D.prototype.handle_operator=function(t){var e="*"===t.text&&(f(this._flags.last_token,["function","yield"])||c(this._flags.last_token.type,[h.START_BLOCK,h.COMMA,h.END_BLOCK,h.SEMICOLON])),n=c(t.text,["-","+"])&&(c(this._flags.last_token.type,[h.START_BLOCK,h.START_EXPR,h.EQUALS,h.OPERATOR])||c(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var i=!e;this.handle_whitespace_and_comments(t,i)}if("*"!==t.text||this._flags.last_token.type!==h.DOT)if("::"!==t.text)if(c(t.text,["-","+"])&&this.start_of_object_property())this.print_token(t);else{if(this._flags.last_token.type===h.OPERATOR&&c(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==h.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var r=!0,s=!0,a=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,a=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&c(t.text,u)){var o=":"===t.text,d=o&&a,A=o&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!A,this.print_token(t),o&&!d||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!o||d?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case g.preserve_newline:return A||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||A),this._output.space_before_token=r,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),r=!1;var b=this._tokens.peek();s=b&&c(b.type,[h.WORD,h.RESERVED])}else if("..."===t.text)this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===h.START_BLOCK,s=!1;else if(c(t.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==h.COMMA&&this._flags.last_token.type!==h.START_EXPR||this.allow_wrap_or_preserved_newline(t),r=!1,s=!1,t.newlines&&("--"===t.text||"++"===t.text||"~"===t.text)){var w=f(this._flags.last_token,p)&&t.newlines;w&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(w,!0)}";"===this._flags.last_token.text&&C(this._flags.mode)&&(r=!0),this._flags.last_token.type===h.RESERVED?r=!0:this._flags.last_token.type===h.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===h.OPERATOR&&(r=c(t.text,["--","-","++","+"])&&c(this._flags.last_token.text,["--","-","++","+"]),c(t.text,["+","-"])&&c(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==v||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},D.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):s.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},D.prototype.print_block_commment=function(t,e){var n,i=function(t){for(var e=[],n=(t=t.replace(s.allLineBreaks,"\n")).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),r=!1,a=!1,o=t.whitespace_before,l=o.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(i[0]),this.print_newline(!1,e),i.length>1){for(r=function(t,e){for(var n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},function(t){t.exports.Token=function(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(t,e){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\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",s="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+s+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+i+"])",o="(?:"+s+"|["+n+i+r+"])*";e.identifier=new RegExp(a+o,"g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:"+s+"|["+n+i+r+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){var i=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function s(t){i.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var s=0;s>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=(v="\\?\\.(?!\\d) "+(v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var y,A=new RegExp(v),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),w=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),E=new RegExp("^(?:"+w.join("|")+")$"),x=function(t,e){r.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),i=new u(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(o.identifier).matching(o.identifierMatch),number:n.matching(f),punct:n.matching(A),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(o.lineBreak),shebang:n.starting_with(/#!/).until_after(o.lineBreak),xml:n.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:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};(x.prototype=new r)._is_comment=function(t){return t.type===c.COMMENT||t.type===c.BLOCK_COMMENT||t.type===c.UNKNOWN},x.prototype._is_opening=function(t){return t.type===c.START_BLOCK||t.type===c.START_EXPR},x.prototype._is_closing=function(t,e){return(t.type===c.END_BLOCK||t.type===c.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},x.prototype._reset=function(){y=!1},x.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(c.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(i))||this._read_string(i))||this._read_pair(i,this._input.peek(1)))||this._read_word(t))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,t))||this._read_xml(i,t))||this._read_punctuation())||this._create_token(c.UNKNOWN,this._input.next())},x.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(o.allLineBreaks,"\n"),t.type!==c.DOT&&(t.type!==c.RESERVED||"set"!==t.text&&"get"!==t.text)&&E.test(e)?"in"!==e&&"of"!==e||t.type!==c.WORD&&t.type!==c.STRING?this._create_token(c.RESERVED,e):this._create_token(c.OPERATOR,e):this._create_token(c.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(c.WORD,e):void 0},x.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(c.START_EXPR,t):")"===t||"]"===t?e=this._create_token(c.END_EXPR,t):"{"===t?e=this._create_token(c.START_BLOCK,t):"}"===t?e=this._create_token(c.END_BLOCK,t):";"===t?e=this._create_token(c.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(c.DOT,t):","===t&&(e=this._create_token(c.COMMA,t)),e&&this._input.next(),e},x.prototype._read_pair=function(t,e){var n=null;return"#"===t&&"{"===e&&(n=this._create_token(c.START_BLOCK,t+e)),n&&(this._input.next(),this._input.next()),n},x.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(c.EQUALS,t):"?."===t?this._create_token(c.DOT,t):this._create_token(c.OPERATOR,t)},x.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(c.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(c.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(p)){do{n+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(c.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)e+=this._input.next();return y=!0,this._create_token(c.COMMENT,e)}}else if(y&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(c.COMMENT,e);return null},x.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=d.get_directives(n);i&&"start"===i.ignore&&(n+=d.readIgnored(this._input)),n=n.replace(o.allLineBreaks,"\n"),(e=this._create_token(c.BLOCK_COMMENT,n)).directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(c.COMMENT,n))}return e},x.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){var e="",n=0,r=new i(t),s=null;for(;r.hasNext();)if((s=r.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=s[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())s=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){e+="\\",r.hasNext()&&(e+=r.next());continue}(s=r.match(/u([0-9A-Fa-f]{4})/g))||(s=r.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!s)return t;if((n=parseInt(s[1],16))>126&&n<=255&&0===s[0].indexOf("x"))return t;e+=n>=0&&n<32||n>1114111?"\\"+s[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(o.allLineBreaks,"\n"),this._create_token(c.STRING,e)}return null},x.prototype._allow_regexp_or_xml=function(t){return t.type===c.RESERVED&&h(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===c.END_EXPR&&")"===t.text&&t.opened.previous.type===c.RESERVED&&h(t.opened.previous.text,["if","while","for"])||h(t.type,[c.COMMENT,c.START_EXPR,c.START_BLOCK,c.START,c.END_BLOCK,c.OPERATOR,c.EQUALS,c.EOF,c.SEMICOLON,c.COMMA])},x.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),i=!1,r=!1;this._input.hasNext()&&(i||r||this._input.peek()!==t)&&!this._input.testChar(o.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(o.identifier)),this._create_token(c.STRING,n)}return null},x.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",i=this.__patterns.xml.read_match();if(i){for(var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===r.indexOf("{"),a=0;i;){var l=!!i[1],u=i[2];if(!(!!i[i.length-1]||"![CDATA["===u.slice(0,8))&&(u===r||s&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=i[0],a<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(o.allLineBreaks,"\n"),this._create_token(c.STRING,n)}}return null},x.prototype._read_string_recursive=function(t,e,n){var i,r;"'"===t?r=this.__patterns.single_quote:'"'===t?r=this.__patterns.double_quote:"`"===t?r=this.__patterns.template_text:"}"===t&&(r=this.__patterns.template_expression);for(var s=r.read(),a="";this._input.hasNext();){if((a=this._input.next())===t||!e&&o.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(a+=this._input.next()))),s+=a+=r.read()}return s},t.exports.Tokenizer=x,t.exports.TOKEN=c,t.exports.positionable_operators=m.slice(),t.exports.line_starters=b.slice()},function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,a=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();for(var e=new r(o.START,""),n=null,i=[],a=new s;e.type!==o.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(o.RAW,n):this._create_token(o.EOF,"")},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){return new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=o},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),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}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in r)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=s}],e={};var n=function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}(0);i=n}();var r=i;void 0===(n=function(){return{js_beautify:r}}.apply(e,[]))||(t.exports=n)}()},15342:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){},function(t,e,n){"use strict";n.r(e),n(0);var i=function(){function t(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}return t.range=function(e,n){return n?e&&e.loc&&n.loc&&e.loc.lexer===n.loc.lexer?new t(e.loc.lexer,e.loc.start,n.loc.end):null:e&&e.loc},t}(),r=function(){function t(t,e){this.text=void 0,this.loc=void 0,this.text=t,this.loc=e}return t.prototype.range=function(e,n){return new t(n,i.range(this,e))},t}(),s=function t(e,n){this.position=void 0;var i,r="KaTeX parse error: "+e,s=n&&n.loc;if(s&&s.start<=s.end){var a=s.lexer.input;i=s.start;var o=s.end;i===a.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=a.slice(i,o).replace(/[^]/g,"$&̲");r+=(i>15?"…"+a.slice(i-15,i):a.slice(0,i))+l+(o+15":">","<":"<",'"':""","'":"'"},u=/[&><"']/g,h=function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},c={contains:function(t,e){return-1!==t.indexOf(e)},deflt:function(t,e){return void 0===t?e:t},escape:function(t){return String(t).replace(u,(function(t){return l[t]}))},hyphenate:function(t){return t.replace(o,"-$1").toLowerCase()},getBaseElem:h,isCharacterBox:function(t){var e=h(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(t){var e=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return null!=e?e[1]:"_relative"}},d=function(){function t(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,t=t||{},this.displayMode=c.deflt(t.displayMode,!1),this.output=c.deflt(t.output,"htmlAndMathml"),this.leqno=c.deflt(t.leqno,!1),this.fleqn=c.deflt(t.fleqn,!1),this.throwOnError=c.deflt(t.throwOnError,!0),this.errorColor=c.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.minRuleThickness=Math.max(0,c.deflt(t.minRuleThickness,0)),this.colorIsTextColor=c.deflt(t.colorIsTextColor,!1),this.strict=c.deflt(t.strict,"warn"),this.trust=c.deflt(t.trust,!1),this.maxSize=Math.max(0,c.deflt(t.maxSize,1/0)),this.maxExpand=Math.max(0,c.deflt(t.maxExpand,1e3))}var e=t.prototype;return e.reportNonstrict=function(t,e,n){var i=this.strict;if("function"==typeof i&&(i=i(t,e,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",n);"warn"===i?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+e+" ["+t+"]")}},e.useStrictBehavior=function(t,e,n){var i=this.strict;if("function"==typeof i)try{i=i(t,e,n)}catch(t){i="error"}return!(!i||"ignore"===i||!0!==i&&"error"!==i&&("warn"===i?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+e+" ["+t+"]"),1)))},e.isTrusted=function(t){t.url&&!t.protocol&&(t.protocol=c.protocolFromUrl(t.url));var e="function"==typeof this.trust?this.trust(t):this.trust;return Boolean(e)},t}(),f=function(){function t(t,e,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=n}var e=t.prototype;return e.sup=function(){return p[g[this.id]]},e.sub=function(){return p[m[this.id]]},e.fracNum=function(){return p[v[this.id]]},e.fracDen=function(){return p[y[this.id]]},e.cramp=function(){return p[A[this.id]]},e.text=function(){return p[b[this.id]]},e.isTight=function(){return this.size>=2},t}(),p=[new f(0,0,!1),new f(1,0,!0),new f(2,1,!1),new f(3,1,!0),new f(4,2,!1),new f(5,2,!0),new f(6,3,!1),new f(7,3,!0)],g=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],v=[2,3,4,5,6,7,6,7],y=[3,3,5,5,7,7,7,7],A=[1,1,3,3,5,5,7,7],b=[0,1,2,3,2,3,2,3],w={DISPLAY:p[0],TEXT:p[2],SCRIPT:p[4],SCRIPTSCRIPT:p[6]},E=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],x=[];function k(t){for(var e=0;e=x[e]&&t<=x[e+1])return!0;return!1}E.forEach((function(t){return t.blocks.forEach((function(t){return x.push.apply(x,t)}))}));var T=80,C={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},D=function(){function t(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var e=t.prototype;return e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e"},B=function(){function t(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,I.call(this,t,n,i),this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){return R.call(this,"span")},e.toMarkup=function(){return L.call(this,"span")},t}(),P=function(){function t(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,I.call(this,e,i),this.children=n||[],this.setAttribute("href",t)}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){return R.call(this,"a")},e.toMarkup=function(){return L.call(this,"a")},t}(),O=function(){function t(t,e,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=t,this.classes=["mord"],this.style=n}var e=t.prototype;return e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){var t=document.createElement("img");for(var e in t.src=this.src,t.alt=this.alt,t.className="mord",this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t},e.toMarkup=function(){var t=""+this.alt+"=r[0]&&t<=r[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=M[this.text])}var e=t.prototype;return e.hasClass=function(t){return c.contains(this.classes,t)},e.toNode=function(){var t=document.createTextNode(this.text),e=null;for(var n in this.italic>0&&((e=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((e=e||document.createElement("span")).className=S(this.classes)),this.style)this.style.hasOwnProperty(n)&&((e=e||document.createElement("span")).style[n]=this.style[n]);return e?(e.appendChild(t),e):t},e.toMarkup=function(){var t=!1,e="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=c.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,e+=' style="'+c.escape(n)+'"');var r=c.escape(this.text);return t?(e+=">",e+=r,e+=""):r},t}(),F=function(){function t(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var n=0;n":""},t}(),U=function(){function t(t){this.attributes=void 0,this.attributes=t||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","line");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);return t},e.toMarkup=function(){var t="",">"),W(Z,$,ut,":",":"),W(Z,$,ut,"≈","\\approx",!0),W(Z,$,ut,"≅","\\cong",!0),W(Z,$,ut,"≥","\\ge"),W(Z,$,ut,"≥","\\geq",!0),W(Z,$,ut,"←","\\gets"),W(Z,$,ut,">","\\gt"),W(Z,$,ut,"∈","\\in",!0),W(Z,$,ut,"","\\@not"),W(Z,$,ut,"⊂","\\subset",!0),W(Z,$,ut,"⊃","\\supset",!0),W(Z,$,ut,"⊆","\\subseteq",!0),W(Z,$,ut,"⊇","\\supseteq",!0),W(Z,tt,ut,"⊈","\\nsubseteq",!0),W(Z,tt,ut,"⊉","\\nsupseteq",!0),W(Z,$,ut,"⊨","\\models"),W(Z,$,ut,"←","\\leftarrow",!0),W(Z,$,ut,"≤","\\le"),W(Z,$,ut,"≤","\\leq",!0),W(Z,$,ut,"<","\\lt"),W(Z,$,ut,"→","\\rightarrow",!0),W(Z,$,ut,"→","\\to"),W(Z,tt,ut,"≱","\\ngeq",!0),W(Z,tt,ut,"≰","\\nleq",!0),W(Z,$,ht," ","\\ "),W(Z,$,ht," ","~"),W(Z,$,ht," ","\\space"),W(Z,$,ht," ","\\nobreakspace"),W(J,$,ht," ","\\ "),W(J,$,ht," ","~"),W(J,$,ht," ","\\space"),W(J,$,ht," ","\\nobreakspace"),W(Z,$,ht,null,"\\nobreak"),W(Z,$,ht,null,"\\allowbreak"),W(Z,$,lt,",",","),W(Z,$,lt,";",";"),W(Z,tt,nt,"⊼","\\barwedge",!0),W(Z,tt,nt,"⊻","\\veebar",!0),W(Z,$,nt,"⊙","\\odot",!0),W(Z,$,nt,"⊕","\\oplus",!0),W(Z,$,nt,"⊗","\\otimes",!0),W(Z,$,ct,"∂","\\partial",!0),W(Z,$,nt,"⊘","\\oslash",!0),W(Z,tt,nt,"⊚","\\circledcirc",!0),W(Z,tt,nt,"⊡","\\boxdot",!0),W(Z,$,nt,"△","\\bigtriangleup"),W(Z,$,nt,"▽","\\bigtriangledown"),W(Z,$,nt,"†","\\dagger"),W(Z,$,nt,"⋄","\\diamond"),W(Z,$,nt,"⋆","\\star"),W(Z,$,nt,"◃","\\triangleleft"),W(Z,$,nt,"▹","\\triangleright"),W(Z,$,ot,"{","\\{"),W(J,$,ct,"{","\\{"),W(J,$,ct,"{","\\textbraceleft"),W(Z,$,it,"}","\\}"),W(J,$,ct,"}","\\}"),W(J,$,ct,"}","\\textbraceright"),W(Z,$,ot,"{","\\lbrace"),W(Z,$,it,"}","\\rbrace"),W(Z,$,ot,"[","\\lbrack"),W(J,$,ct,"[","\\lbrack"),W(Z,$,it,"]","\\rbrack"),W(J,$,ct,"]","\\rbrack"),W(Z,$,ot,"(","\\lparen"),W(Z,$,it,")","\\rparen"),W(J,$,ct,"<","\\textless"),W(J,$,ct,">","\\textgreater"),W(Z,$,ot,"⌊","\\lfloor",!0),W(Z,$,it,"⌋","\\rfloor",!0),W(Z,$,ot,"⌈","\\lceil",!0),W(Z,$,it,"⌉","\\rceil",!0),W(Z,$,ct,"\\","\\backslash"),W(Z,$,ct,"∣","|"),W(Z,$,ct,"∣","\\vert"),W(J,$,ct,"|","\\textbar"),W(Z,$,ct,"∥","\\|"),W(Z,$,ct,"∥","\\Vert"),W(J,$,ct,"∥","\\textbardbl"),W(J,$,ct,"~","\\textasciitilde"),W(J,$,ct,"\\","\\textbackslash"),W(J,$,ct,"^","\\textasciicircum"),W(Z,$,ut,"↑","\\uparrow",!0),W(Z,$,ut,"⇑","\\Uparrow",!0),W(Z,$,ut,"↓","\\downarrow",!0),W(Z,$,ut,"⇓","\\Downarrow",!0),W(Z,$,ut,"↕","\\updownarrow",!0),W(Z,$,ut,"⇕","\\Updownarrow",!0),W(Z,$,at,"∐","\\coprod"),W(Z,$,at,"⋁","\\bigvee"),W(Z,$,at,"⋀","\\bigwedge"),W(Z,$,at,"⨄","\\biguplus"),W(Z,$,at,"⋂","\\bigcap"),W(Z,$,at,"⋃","\\bigcup"),W(Z,$,at,"∫","\\int"),W(Z,$,at,"∫","\\intop"),W(Z,$,at,"∬","\\iint"),W(Z,$,at,"∭","\\iiint"),W(Z,$,at,"∏","\\prod"),W(Z,$,at,"∑","\\sum"),W(Z,$,at,"⨂","\\bigotimes"),W(Z,$,at,"⨁","\\bigoplus"),W(Z,$,at,"⨀","\\bigodot"),W(Z,$,at,"∮","\\oint"),W(Z,$,at,"∯","\\oiint"),W(Z,$,at,"∰","\\oiiint"),W(Z,$,at,"⨆","\\bigsqcup"),W(Z,$,at,"∫","\\smallint"),W(J,$,rt,"…","\\textellipsis"),W(Z,$,rt,"…","\\mathellipsis"),W(J,$,rt,"…","\\ldots",!0),W(Z,$,rt,"…","\\ldots",!0),W(Z,$,rt,"⋯","\\@cdots",!0),W(Z,$,rt,"⋱","\\ddots",!0),W(Z,$,ct,"⋮","\\varvdots"),W(Z,$,et,"ˊ","\\acute"),W(Z,$,et,"ˋ","\\grave"),W(Z,$,et,"¨","\\ddot"),W(Z,$,et,"~","\\tilde"),W(Z,$,et,"ˉ","\\bar"),W(Z,$,et,"˘","\\breve"),W(Z,$,et,"ˇ","\\check"),W(Z,$,et,"^","\\hat"),W(Z,$,et,"⃗","\\vec"),W(Z,$,et,"˙","\\dot"),W(Z,$,et,"˚","\\mathring"),W(Z,$,st,"ı","\\imath",!0),W(Z,$,st,"ȷ","\\jmath",!0),W(J,$,ct,"ı","\\i",!0),W(J,$,ct,"ȷ","\\j",!0),W(J,$,ct,"ß","\\ss",!0),W(J,$,ct,"æ","\\ae",!0),W(J,$,ct,"æ","\\ae",!0),W(J,$,ct,"œ","\\oe",!0),W(J,$,ct,"ø","\\o",!0),W(J,$,ct,"Æ","\\AE",!0),W(J,$,ct,"Œ","\\OE",!0),W(J,$,ct,"Ø","\\O",!0),W(J,$,et,"ˊ","\\'"),W(J,$,et,"ˋ","\\`"),W(J,$,et,"ˆ","\\^"),W(J,$,et,"˜","\\~"),W(J,$,et,"ˉ","\\="),W(J,$,et,"˘","\\u"),W(J,$,et,"˙","\\."),W(J,$,et,"˚","\\r"),W(J,$,et,"ˇ","\\v"),W(J,$,et,"¨",'\\"'),W(J,$,et,"˝","\\H"),W(J,$,et,"◯","\\textcircled");var dt={"--":!0,"---":!0,"``":!0,"''":!0};W(J,$,ct,"–","--"),W(J,$,ct,"–","\\textendash"),W(J,$,ct,"—","---"),W(J,$,ct,"—","\\textemdash"),W(J,$,ct,"‘","`"),W(J,$,ct,"‘","\\textquoteleft"),W(J,$,ct,"’","'"),W(J,$,ct,"’","\\textquoteright"),W(J,$,ct,"“","``"),W(J,$,ct,"“","\\textquotedblleft"),W(J,$,ct,"”","''"),W(J,$,ct,"”","\\textquotedblright"),W(Z,$,ct,"°","\\degree",!0),W(J,$,ct,"°","\\degree"),W(J,$,ct,"°","\\textdegree",!0),W(Z,$,st,"£","\\pounds"),W(Z,$,st,"£","\\mathsterling",!0),W(J,$,st,"£","\\pounds"),W(J,$,st,"£","\\textsterling",!0),W(Z,tt,ct,"✠","\\maltese"),W(J,tt,ct,"✠","\\maltese"),W(J,$,ht," ","\\ "),W(J,$,ht," "," "),W(J,$,ht," ","~");for(var ft='0123456789/@."',pt=0;pt=5?0:t>=3?1:2]){var n=q[e]={cssEmPerMu:G.quad[e]/18};for(var i in G)G.hasOwnProperty(i)&&(n[i]=G[i][e])}return q[e]}(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":this.color},t}();Mt.BASESIZE=6;var Nt=Mt,Ft={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},_t={ex:!0,em:!0,mu:!0},Ut=function(t){return"string"!=typeof t&&(t=t.unit),t in Ft||t in _t||"ex"===t},zt=function(t,e){var n;if(t.unit in Ft)n=Ft[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)n=e.fontMetrics().cssEmPerMu;else{var i;if(i=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===t.unit)n=i.fontMetrics().xHeight;else{if("em"!==t.unit)throw new a("Invalid unit: '"+t.unit+"'");n=i.fontMetrics().quad}i!==e&&(n*=i.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*n,e.maxSize)},jt=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],Gt=function(t,e,n){return X[n][t]&&X[n][t].replace&&(t=X[n][t].replace),{value:t,metrics:Q(t,e,n)}},Ht=function(t,e,n,i,r){var s,a=Gt(t,e,n),o=a.metrics;if(t=a.value,o){var l=o.italic;("text"===n||i&&"mathit"===i.font)&&(l=0),s=new N(t,o.height,o.depth,l,o.skew,o.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"' and mode '"+n+"'"),s=new N(t,0,0,0,0,0,r);if(i){s.maxFontSize=i.sizeMultiplier,i.style.isTight()&&s.classes.push("mtight");var u=i.getColor();u&&(s.style.color=u)}return s},Qt=function(t,e){if(S(t.classes)!==S(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},qt=function(t){for(var e=0,n=0,i=0,r=0;re&&(e=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=e,t.depth=n,t.maxFontSize=i},Vt=function(t,e,n,i){var r=new B(t,e,n,i);return qt(r),r},Yt=function(t,e,n,i){return new B(t,e,n,i)},Kt=function(t){var e=new D(t);return qt(e),e},Xt=function(t,e,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}return i+"-"+("textbf"===e&&"textit"===n?"BoldItalic":"textbf"===e?"Bold":"textit"===e?"Italic":"Regular")},Wt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Zt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Jt={fontMap:Wt,makeSymbol:Ht,mathsym:function(t,e,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&Gt(t,"Main-Bold",e).metrics?Ht(t,"Main-Bold",e,n,i.concat(["mathbf"])):"\\"===t||"main"===X[e][t].font?Ht(t,"Main-Regular",e,n,i):Ht(t,"AMS-Regular",e,n,i.concat(["amsrm"]))},makeSpan:Vt,makeSvgSpan:Yt,makeLineSpan:function(t,e,n){var i=Vt([t],[],e);return i.height=Math.max(n||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),i.style.borderBottomWidth=i.height+"em",i.maxFontSize=1,i},makeAnchor:function(t,e,n,i){var r=new P(t,e,n,i);return qt(r),r},makeFragment:Kt,wrapFragment:function(t,e){return t instanceof D?Vt([],[t],e):t},makeVList:function(t,e){for(var n=function(t){if("individualShift"===t.positionType){for(var e=t.children,n=[e[0]],i=-e[0].shift-e[0].elem.depth,r=i,s=1;s0&&(s.push(De(a,e)),a=[]),s.push(r[o]));a.length>0&&s.push(De(a,e)),n&&((i=De(be(n,e,!0))).classes=["tag"],s.push(i));var u=ge(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),i){var h=i.children[0];h.style.height=u.height+u.depth+"em",h.style.verticalAlign=-u.depth+"em"}return u}function Ie(t){return new D(t)}var Re=function(){function t(t,e){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=t,this.attributes={},this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.getAttribute=function(t){return this.attributes[t]},e.toNode=function(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var n=0;n"},e.toText=function(){return this.children.map((function(t){return t.toText()})).join("")},t}(),Le=function(){function t(t){this.text=void 0,this.text=t}var e=t.prototype;return e.toNode=function(){return document.createTextNode(this.text)},e.toMarkup=function(){return c.escape(this.toText())},e.toText=function(){return this.text},t}(),Be={MathNode:Re,TextNode:Le,SpaceNode:function(){function t(t){this.width=void 0,this.character=void 0,this.width=t,this.character=t>=.05555&&t<=.05556?" ":t>=.1666&&t<=.1667?" ":t>=.2222&&t<=.2223?" ":t>=.2777&&t<=.2778?"  ":t>=-.05556&&t<=-.05555?" ⁣":t>=-.1667&&t<=-.1666?" ⁣":t>=-.2223&&t<=-.2222?" ⁣":t>=-.2778&&t<=-.2777?" ⁣":null}var e=t.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",this.width+"em"),t},e.toMarkup=function(){return this.character?""+this.character+"":''},e.toText=function(){return this.character?this.character:" "},t}(),newDocumentFragment:Ie},Pe=function(t,e,n){return!X[e][t]||!X[e][t].replace||55349===t.charCodeAt(0)||dt.hasOwnProperty(t)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(t=X[e][t].replace),new Be.TextNode(t)},Oe=function(t){return 1===t.length?t[0]:new Be.MathNode("mrow",t)},Me=function(t,e){if("texttt"===e.fontFamily)return"monospace";if("textsf"===e.fontFamily)return"textit"===e.fontShape&&"textbf"===e.fontWeight?"sans-serif-bold-italic":"textit"===e.fontShape?"sans-serif-italic":"textbf"===e.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===e.fontShape&&"textbf"===e.fontWeight)return"bold-italic";if("textit"===e.fontShape)return"italic";if("textbf"===e.fontWeight)return"bold";var n=e.font;if(!n||"mathnormal"===n)return null;var i=t.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=t.text;return c.contains(["\\imath","\\jmath"],r)?null:(X[i][r]&&X[i][r].replace&&(r=X[i][r].replace),Q(r,Jt.fontMap[n].fontName,i)?Jt.fontMap[n].variant:null)},Ne=function(t,e,n){if(1===t.length){var i=_e(t[0],e);return n&&i instanceof Re&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var r,s=[],a=0;a0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),s.pop())}}}s.push(o),r=o}return s},Fe=function(t,e,n){return Oe(Ne(t,e,n))},_e=function(t,e){if(!t)return new Be.MathNode("mrow");if(ce[t.type])return ce[t.type](t,e);throw new a("Got group of unknown type: '"+t.type+"'")};function Ue(t,e,n,i){var r,s=Ne(t,n);r=1===s.length&&s[0]instanceof Re&&c.contains(["mrow","mtable"],s[0].type)?s[0]:new Be.MathNode("mrow",s);var a=new Be.MathNode("annotation",[new Be.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var o=new Be.MathNode("semantics",[r,a]),l=new Be.MathNode("math",[o]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var u=i?"katex":"katex-mathml";return Jt.makeSpan([u],[l])}var ze=function(t){return new Nt({style:t.displayMode?w.DISPLAY:w.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},je=function(t,e){if(e.displayMode){var n=["katex-display"];e.leqno&&n.push("leqno"),e.fleqn&&n.push("fleqn"),t=Jt.makeSpan(n,[t])}return t},Ge=function(t,e,n){var i,r=ze(n);if("mathml"===n.output)return Ue(t,e,r,!0);if("html"===n.output){var s=Se(t,r);i=Jt.makeSpan(["katex"],[s])}else{var a=Ue(t,e,r,!1),o=Se(t,r);i=Jt.makeSpan(["katex"],[a,o])}return je(i,n)},He={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},Qe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},qe=function(t,e,n,i){var r,s=t.height+t.depth+2*n;if(/fbox|color/.test(e)){if(r=Jt.makeSpan(["stretchy",e],[],i),"fbox"===e){var a=i.color&&i.getColor();a&&(r.style.borderColor=a)}}else{var o=[];/^[bx]cancel$/.test(e)&&o.push(new U({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&o.push(new U({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new F(o,{width:"100%",height:s+"em"});r=Jt.makeSvgSpan([],[l],i)}return r.height=s,r.style.height=s+"em",r},Ve=function(t){var e=new Be.MathNode("mo",[new Be.TextNode(He[t.substr(1)])]);return e.setAttribute("stretchy","true"),e},Ye=function(t,e){var n=function(){var n=4e5,i=t.label.substr(1);if(c.contains(["widehat","widecheck","widetilde","utilde"],i)){var r,s,a,o="ordgroup"===(p=t.base).type?p.body.length:1;if(o>5)"widehat"===i||"widecheck"===i?(r=420,n=2364,a=.42,s=i+"4"):(r=312,n=2340,a=.34,s="tilde4");else{var l=[1,1,2,2,3,3][o];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][l],r=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],s=i+l):(n=[0,600,1033,2339,2340][l],r=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],s="tilde"+l)}var u=new _(s),h=new F([u],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:Jt.makeSvgSpan([],[h],e),minWidth:0,height:a}}var d,f,p,g=[],m=Qe[i],v=m[0],y=m[1],A=m[2],b=A/1e3,w=v.length;if(1===w)d=["hide-tail"],f=[m[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var E=0;E0&&(i.style.minWidth=r+"em"),i},Ke=function(t,e){var n,i,r,s=te(t,"supsub");s?(n=(i=$t(s.base,"accent")).base,s.base=n,r=function(t){if(t instanceof B)return t;throw new Error("Expected span but got "+String(t)+".")}(Ce(s,e)),s.base=i):n=(i=$t(t,"accent")).base;var a=Ce(n,e.havingCrampedStyle()),o=0;if(i.isShifty&&c.isCharacterBox(n)){var l=c.getBaseElem(n);o=z(Ce(l,e.havingCrampedStyle())).skew}var u,h=Math.min(a.height,e.fontMetrics().xHeight);if(i.isStretchy)u=Ye(i,e),u=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+2*o+"em)",marginLeft:2*o+"em"}:void 0}]},e);else{var d,f;"\\vec"===i.label?(d=Jt.staticSvg("vec",e),f=Jt.svgData.vec[1]):((d=z(d=Jt.makeOrd({mode:i.mode,text:i.label},e,"textord"))).italic=0,f=d.width),u=Jt.makeSpan(["accent-body"],[d]);var p="\\textcircled"===i.label;p&&(u.classes.push("accent-full"),h=a.height);var g=o;p||(g-=f/2),u.style.left=g+"em","\\textcircled"===i.label&&(u.style.top=".2em"),u=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:u}]},e)}var m=Jt.makeSpan(["mord","accent"],[u],e);return r?(r.children[0]=m,r.height=Math.max(m.height,r.height),r.classes[0]="mord",r):m},Xe=function(t,e){var n=t.isStretchy?Ve(t.label):new Be.MathNode("mo",[Pe(t.label,t.mode)]),i=new Be.MathNode("mover",[_e(t.base,e),n]);return i.setAttribute("accent","true"),i},We=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(t){return"\\"+t})).join("|"));de({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,e){var n=e[0],i=!We.test(t.funcName),r=!i||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:i,isShifty:r,base:n}},htmlBuilder:Ke,mathmlBuilder:Xe}),de({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var n=e[0];return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ke,mathmlBuilder:Xe}),de({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];return{type:"accentUnder",mode:n.mode,label:i,base:r}},htmlBuilder:function(t,e){var n=Ce(t.base,e),i=Ye(t,e),r="\\utilde"===t.label?.12:0,s=Jt.makeVList({positionType:"bottom",positionData:i.height+r,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},e);return Jt.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:function(t,e){var n=Ve(t.label),i=new Be.MathNode("munder",[_e(t.base,e),n]);return i.setAttribute("accentunder","true"),i}});var Ze=function(t){var e=new Be.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};de({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(t,e,n){var i=t.parser,r=t.funcName;return{type:"xArrow",mode:i.mode,label:r,body:e[0],below:n[0]}},htmlBuilder:function(t,e){var n,i=e.style,r=e.havingStyle(i.sup()),s=Jt.wrapFragment(Ce(t.body,r,e),e);s.classes.push("x-arrow-pad"),t.below&&(r=e.havingStyle(i.sub()),(n=Jt.wrapFragment(Ce(t.below,r,e),e)).classes.push("x-arrow-pad"));var a,o=Ye(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;if((s.depth>.25||"\\xleftequilibrium"===t.label)&&(u-=s.depth),n){var h=-e.fontMetrics().axisHeight+n.height+.5*o.height+.111;a=Jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:n,shift:h}]},e)}else a=Jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:o,shift:l}]},e);return a.children[0].children[0].children[1].classes.push("svg-align"),Jt.makeSpan(["mrel","x-arrow"],[a],e)},mathmlBuilder:function(t,e){var n,i=Ve(t.label);if(t.body){var r=Ze(_e(t.body,e));if(t.below){var s=Ze(_e(t.below,e));n=new Be.MathNode("munderover",[i,s,r])}else n=new Be.MathNode("mover",[i,r])}else if(t.below){var a=Ze(_e(t.below,e));n=new Be.MathNode("munder",[i,a])}else n=Ze(),n=new Be.MathNode("mover",[i,n]);return n}}),de({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var n=t.parser,i=$t(e[0],"ordgroup").body,r="",s=0;s","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fn=[0,1.2,1.8,2.4,3],pn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],gn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"stack"}],mn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=function(t){if("small"===t.type)return"Main-Regular";if("large"===t.type)return"Size"+t.size+"-Regular";if("stack"===t.type)return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},yn=function(t,e,n,i){for(var r=Math.min(2,3-i.style.size);re)return n[r]}return n[n.length-1]},An=function(t,e,n,i,r,s){var a;"<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),a=c.contains(dn,t)?pn:c.contains(hn,t)?mn:gn;var o=yn(t,e,a,i);return"small"===o.type?function(t,e,n,i,r,s){var a=Jt.makeSymbol(t,"Main-Regular",r,i),o=en(a,e,i,s);return n&&nn(o,i,e),o}(t,o.style,n,i,r,s):"large"===o.type?rn(t,o.size,n,i,r,s):on(t,e,n,i,r,s)},bn=function(t,e){var n,i,r=e.havingBaseSizing(),s=yn("\\surd",t*r.sizeMultiplier,mn,r),a=r.sizeMultiplier,o=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness),l=0,u=0,h=0;return"small"===s.type?(t<1?a=1:t<1.4&&(a=.7),u=(1+o)/a,(n=un("sqrtMain",l=(1+o+ln)/a,h=1e3+1e3*o+80,o,e)).style.minWidth="0.853em",i=.833/a):"large"===s.type?(h=1080*fn[s.size],u=(fn[s.size]+o)/a,l=(fn[s.size]+o+ln)/a,(n=un("sqrtSize"+s.size,l,h,o,e)).style.minWidth="1.02em",i=1/a):(l=t+o+ln,u=t+o,h=Math.floor(1e3*t+o)+80,(n=un("sqrtTall",l,h,o,e)).style.minWidth="0.742em",i=1.056),n.height=u,n.style.height=l+"em",{span:n,advanceWidth:i,ruleWidth:(e.fontMetrics().sqrtRuleThickness+o)*a}},wn=function(t,e,n,i,r){if("<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),c.contains(hn,t)||c.contains(dn,t))return rn(t,e,!1,n,i,r);if(c.contains(cn,t))return on(t,fn[e],!1,n,i,r);throw new a("Illegal delimiter: '"+t+"'")},En=An,xn=function(t,e,n,i,r,s){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,o=5/i.fontMetrics().ptPerEm,l=Math.max(e-a,n+a),u=Math.max(l/500*901,2*l-o);return An(t,u,!0,i,r,s)},kn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Tn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Cn(t,e){var n=ie(t);if(n&&c.contains(Tn,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(t))+"' after '"+e.funcName+"'",t)}function Dn(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}de({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(t,e){var n=Cn(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:kn[t.funcName].size,mclass:kn[t.funcName].mclass,delim:n.text}},htmlBuilder:function(t,e){return"."===t.delim?Jt.makeSpan([t.mclass]):wn(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(Pe(t.delim,t.mode));var n=new Be.MathNode("mo",e);return"mopen"===t.mclass||"mclose"===t.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),de({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){var n=t.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Cn(e[0],t).text,color:n}}}),de({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var n=Cn(e[0],t),i=t.parser;++i.leftrightDepth;var r=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=$t(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:r,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:function(t,e){Dn(t);for(var n,i,r=be(t.body,e,!0,["mopen","mclose"]),s=0,a=0,o=!1,l=0;l-1?"mpadded":"menclose",[_e(t.body,e)]);switch(t.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===t.label){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);i.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return t.backgroundColor&&i.setAttribute("mathbackground",t.backgroundColor),i};de({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(t,e,n){var i=t.parser,r=t.funcName,s=$t(e[0],"color-token").color,a=e[1];return{type:"enclose",mode:i.mode,label:r,backgroundColor:s,body:a}},htmlBuilder:Sn,mathmlBuilder:In}),de({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(t,e,n){var i=t.parser,r=t.funcName,s=$t(e[0],"color-token").color,a=$t(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:i.mode,label:r,backgroundColor:a,borderColor:s,body:o}},htmlBuilder:Sn,mathmlBuilder:In}),de({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(t,e){return{type:"enclose",mode:t.parser.mode,label:"\\fbox",body:e[0]}}}),de({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(t,e,n){var i=t.parser,r=t.funcName,s=e[0];return{type:"enclose",mode:i.mode,label:r,body:s}},htmlBuilder:Sn,mathmlBuilder:In});var Rn={};function Ln(t){for(var e=t.type,n=t.names,i=t.props,r=t.handler,s=t.htmlBuilder,a=t.mathmlBuilder,o={type:e,numArgs:i.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:r},l=0;l0&&(A+=.25),u.push({pos:A,isDashed:t[e]})}for(b(s[0]),n=0;n0&&(k<(S+=y)&&(k=S),S=0),t.addJot&&(k+=g),T.height=x,T.depth=k,A+=x,T.pos=A,A+=k+S,l[n]=T,b(s[n+1])}var I,R,L=A/2+e.fontMetrics().axisHeight,B=t.cols||[],P=[];for(i=0,R=0;i=o)){var _=void 0;(i>0||t.hskipBeforeAndAfter)&&0!==(_=c.deflt(O.pregap,f))&&((I=Jt.makeSpan(["arraycolsep"],[])).style.width=_+"em",P.push(I));var U=[];for(n=0;n0){for(var H=Jt.makeLineSpan("hline",e,h),Q=Jt.makeLineSpan("hdashline",e,h),q=[{type:"elem",elem:l,shift:0}];u.length>0;){var V=u.pop(),Y=V.pos-L;V.isDashed?q.push({type:"elem",elem:Q,shift:Y}):q.push({type:"elem",elem:H,shift:Y})}l=Jt.makeVList({positionType:"individualShift",children:q},e)}return Jt.makeSpan(["mord"],[l],e)},Nn={c:"center ",l:"left ",r:"right "},Fn=function(t,e){var n=new Be.MathNode("mtable",t.body.map((function(t){return new Be.MathNode("mtr",t.map((function(t){return new Be.MathNode("mtd",[_e(t,e)])})))}))),i=.5===t.arraystretch?.1:.16+t.arraystretch-1+(t.addJot?.09:0);n.setAttribute("rowspacing",i+"em");var r="",s="";if(t.cols){var a=t.cols,o="",l=!1,u=0,h=a.length;"separator"===a[0].type&&(r+="top ",u=1),"separator"===a[a.length-1].type&&(r+="bottom ",h-=1);for(var c=u;c0?"left ":"",r+=m[m.length-1].length>0?"right ":"";for(var v=1;v0&&c&&(p=1),i[d]={type:"align",align:f,pregap:p,postgap:0}}return r.colSeparationType=c?"align":"alignat",r};Ln({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var n={cols:(ie(e[0])?[e[0]]:$t(e[0],"ordgroup").body).map((function(t){var e=ne(t).text;if(-1!=="lcr".indexOf(e))return{type:"align",align:e};if("|"===e)return{type:"separator",separator:"|"};if(":"===e)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+e,t)})),hskipBeforeAndAfter:!0};return Pn(t.parser,n,On(t.envName))},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName],n=Pn(t.parser,{hskipBeforeAndAfter:!1},On(t.envName));return e?{type:"leftright",mode:t.mode,body:[n],left:e[0],right:e[1],rightColor:void 0}:n},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(t){var e=Pn(t.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["subarray"],props:{numArgs:1},handler:function(t,e){var n=(ie(e[0])?[e[0]]:$t(e[0],"ordgroup").body).map((function(t){var e=ne(t).text;if(-1!=="lc".indexOf(e))return{type:"align",align:e};throw new a("Unknown column alignment: "+e,t)}));if(n.length>1)throw new a("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=Pn(t.parser,i,"script")).body[0].length>1)throw new a("{subarray} can contain only one column");return i},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(t){var e=Pn(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},On(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["aligned"],props:{numArgs:0},handler:_n,htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){return Pn(t.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Mn,mathmlBuilder:Fn}),Ln({type:"array",names:["alignedat"],props:{numArgs:1},handler:_n,htmlBuilder:Mn,mathmlBuilder:Fn}),de({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t,e){throw new a(t.funcName+" valid only within array environment")}});var Un=Rn;de({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];if("ordgroup"!==r.type)throw new a("Invalid environment name",r);for(var s="",o=0;o=w.SCRIPT.id?n.text():w.DISPLAY:"text"===t&&n.size===w.DISPLAY.size?n=w.TEXT:"script"===t?n=w.SCRIPT:"scriptscript"===t&&(n=w.SCRIPTSCRIPT),n},Kn=function(t,e){var n,i=Yn(t.size,e.style),r=i.fracNum(),s=i.fracDen();n=e.havingStyle(r);var a=Ce(t.numer,n,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;a.height=a.height0?3*c:7*c,p=e.fontMetrics().denom1):(h>0?(d=e.fontMetrics().num2,f=c):(d=e.fontMetrics().num3,f=3*c),p=e.fontMetrics().denom2),u){var b=e.fontMetrics().axisHeight;d-a.depth-(b+.5*h)0&&(e="."===(e=t)?null:e),e};de({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(t,e){var n=t.parser,i=e[4],r=e[5],s=te(e[0],"atom");s&&(s=ee(e[0],"open"));var a=s?Zn(s.text):null,o=te(e[1],"atom");o&&(o=ee(e[1],"close"));var l,u=o?Zn(o.text):null,h=$t(e[2],"size"),c=null;l=!!h.isBlank||(c=h.value).number>0;var d="auto",f=te(e[3],"ordgroup");if(f){if(f.body.length>0){var p=$t(f.body[0],"textord");d=Wn[Number(p.text)]}}else f=$t(e[3],"textord"),d=Wn[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:i,denom:r,continued:!1,hasBarLine:l,barSize:c,leftDelim:a,rightDelim:u,size:d}},htmlBuilder:Kn,mathmlBuilder:Xn}),de({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(t,e){var n=t.parser,i=(t.funcName,t.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:$t(e[0],"size").value,token:i}}}),de({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var n=t.parser,i=(t.funcName,e[0]),r=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}($t(e[1],"infix").size),s=e[2],a=r.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:a,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Kn,mathmlBuilder:Xn});var Jn=function(t,e){var n,i,r=e.style,s=te(t,"supsub");s?(n=s.sup?Ce(s.sup,e.havingStyle(r.sup()),e):Ce(s.sub,e.havingStyle(r.sub()),e),i=$t(s.base,"horizBrace")):i=$t(t,"horizBrace");var a,o=Ce(i.base,e.havingBaseStyle(w.DISPLAY)),l=Ye(i,e);if(i.isOver?(a=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(a=Jt.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},e)).children[0].children[0].children[0].classes.push("svg-align"),n){var u=Jt.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);a=i.isOver?Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},e):Jt.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return Jt.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)};de({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(t,e){var n=t.parser,i=t.funcName;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:e[0]}},htmlBuilder:Jn,mathmlBuilder:function(t,e){var n=Ve(t.label);return new Be.MathNode(t.isOver?"mover":"munder",[_e(t.base,e),n])}}),de({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var n=t.parser,i=e[1],r=$t(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:pe(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(t,e){var n=be(t.body,e,!1);return Jt.makeAnchor(t.href,[],n,e)},mathmlBuilder:function(t,e){var n=Fe(t.body,e);return n instanceof Re||(n=new Re("mrow",[n])),n.setAttribute("href",t.href),n}}),de({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){var n=t.parser,i=$t(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var r=[],s=0;s0&&(i=zt(t.totalheight,e)-n,i=Number(i.toFixed(2)));var r=0;t.width.number>0&&(r=zt(t.width,e));var s={height:n+i+"em"};r>0&&(s.width=r+"em"),i>0&&(s.verticalAlign=-i+"em");var a=new O(t.src,t.alt,s);return a.height=n,a.depth=i,a},mathmlBuilder:function(t,e){var n=new Be.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var i=zt(t.height,e),r=0;if(t.totalheight.number>0&&(r=(r=zt(t.totalheight,e)-i).toFixed(2),n.setAttribute("valign","-"+r+"em")),n.setAttribute("height",i+r+"em"),t.width.number>0){var s=zt(t.width,e);n.setAttribute("width",s+"em")}return n.setAttribute("src",t.src),n}}),de({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(t,e){var n=t.parser,i=t.funcName,r=$t(e[0],"size");if(n.settings.strict){var s="m"===i[1],a="mu"===r.value.unit;s?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:function(t,e){return Jt.makeGlue(t.dimension,e)},mathmlBuilder:function(t,e){var n=zt(t.dimension,e);return new Be.SpaceNode(n)}}),de({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:r}},htmlBuilder:function(t,e){var n;"clap"===t.alignment?(n=Jt.makeSpan([],[Ce(t.body,e)]),n=Jt.makeSpan(["inner"],[n],e)):n=Jt.makeSpan(["inner"],[Ce(t.body,e)]);var i=Jt.makeSpan(["fix"],[]),r=Jt.makeSpan([t.alignment],[n,i],e),s=Jt.makeSpan(["strut"]);return s.style.height=r.height+r.depth+"em",s.style.verticalAlign=-r.depth+"em",r.children.unshift(s),r=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},e),Jt.makeSpan(["mord"],[r],e)},mathmlBuilder:function(t,e){var n=new Be.MathNode("mpadded",[_e(t.body,e)]);if("rlap"!==t.alignment){var i="llap"===t.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),de({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var n=t.funcName,i=t.parser,r=i.mode;i.switchMode("math");var s="\\("===n?"\\)":"$",a=i.parseExpression(!1,s);return i.expect(s),i.switchMode(r),{type:"styling",mode:i.mode,style:"text",body:a}}}),de({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t,e){throw new a("Mismatched "+t.funcName)}});var ti=function(t,e){switch(e.style.size){case w.DISPLAY.size:return t.display;case w.TEXT.size:return t.text;case w.SCRIPT.size:return t.script;case w.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};de({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(t,e){return{type:"mathchoice",mode:t.parser.mode,display:pe(e[0]),text:pe(e[1]),script:pe(e[2]),scriptscript:pe(e[3])}},htmlBuilder:function(t,e){var n=ti(t,e),i=be(n,e,!1);return Jt.makeFragment(i)},mathmlBuilder:function(t,e){var n=ti(t,e);return Fe(n,e)}});var ei=function(t,e,n,i,r,s,a){var o,l,u;if(t=Jt.makeSpan([],[t]),e){var h=Ce(e,i.havingStyle(r.sup()),i);l={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var c=Ce(n,i.havingStyle(r.sub()),i);o={elem:c,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-c.height)}}if(l&&o){var d=i.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+t.depth+a;u=Jt.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:-s+"em"},{type:"kern",size:o.kern},{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:s+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(o){var f=t.height-a;u=Jt.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:-s+"em"},{type:"kern",size:o.kern},{type:"elem",elem:t}]},i)}else{if(!l)return t;var p=t.depth+a;u=Jt.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:s+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}return Jt.makeSpan(["mop","op-limits"],[u],i)},ni=["\\smallint"],ii=function(t,e){var n,i,r,s=!1,a=te(t,"supsub");a?(n=a.sup,i=a.sub,r=$t(a.base,"op"),s=!0):r=$t(t,"op");var o,l=e.style,u=!1;if(l.size===w.DISPLAY.size&&r.symbol&&!c.contains(ni,r.name)&&(u=!0),r.symbol){var h=u?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(d=r.name.substr(1),r.name="oiint"===d?"\\iint":"\\iiint"),o=Jt.makeSymbol(r.name,h,"math",e,["mop","op-symbol",u?"large-op":"small-op"]),d.length>0){var f=o.italic,p=Jt.staticSvg(d+"Size"+(u?"2":"1"),e);o=Jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:u?.08:0}]},e),r.name="\\"+d,o.classes.unshift("mop"),o.italic=f}}else if(r.body){var g=be(r.body,e,!0);1===g.length&&g[0]instanceof N?(o=g[0]).classes[0]="mop":o=Jt.makeSpan(["mop"],Jt.tryCombineChars(g),e)}else{for(var m=[],v=1;v0){for(var l=r.body.map((function(t){var e=t.text;return"string"==typeof e?{type:"textord",mode:t.mode,text:e}:t})),u=be(l,e.withFont("mathrm"),!0),h=0;h=0?o.setAttribute("height","+"+r+"em"):(o.setAttribute("height",r+"em"),o.setAttribute("depth","+"+-r+"em")),o.setAttribute("voffset",r+"em"),o}});var ui=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];de({type:"sizing",names:ui,props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.breakOnTokenText,i=t.funcName,r=t.parser,s=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:ui.indexOf(i)+1,body:s}},htmlBuilder:function(t,e){var n=e.havingSize(t.size);return li(t.body,n,e)},mathmlBuilder:function(t,e){var n=e.havingSize(t.size),i=Ne(t.body,n),r=new Be.MathNode("mstyle",i);return r.setAttribute("mathsize",n.sizeMultiplier+"em"),r}}),de({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(t,e,n){var i=t.parser,r=!1,s=!1,a=n[0]&&$t(n[0],"ordgroup");if(a)for(var o="",l=0;ln.height+n.depth+s&&(s=(s+c-n.height-n.depth)/2);var d=l.height-n.height-s-u;n.style.paddingLeft=h+"em";var f=Jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:u}]},e);if(t.index){var p=e.havingStyle(w.SCRIPTSCRIPT),g=Ce(t.index,p,e),m=.6*(f.height-f.depth),v=Jt.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:g}]},e),y=Jt.makeSpan(["root"],[v]);return Jt.makeSpan(["mord","sqrt"],[y,f],e)}return Jt.makeSpan(["mord","sqrt"],[f],e)},mathmlBuilder:function(t,e){var n=t.body,i=t.index;return i?new Be.MathNode("mroot",[_e(n,e),_e(i,e)]):new Be.MathNode("msqrt",[_e(n,e)])}});var hi={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};de({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.breakOnTokenText,i=t.funcName,r=t.parser,s=r.parseExpression(!0,n),a=i.slice(1,i.length-5);return{type:"styling",mode:r.mode,style:a,body:s}},htmlBuilder:function(t,e){var n=hi[t.style],i=e.havingStyle(n).withFont("");return li(t.body,i,e)},mathmlBuilder:function(t,e){var n=hi[t.style],i=e.havingStyle(n),r=Ne(t.body,i),s=new Be.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return s.setAttribute("scriptlevel",a[0]),s.setAttribute("displaystyle",a[1]),s}}),fe({type:"supsub",htmlBuilder:function(t,e){var n=function(t,e){var n=t.base;return n?"op"===n.type?n.limits&&(e.style.size===w.DISPLAY.size||n.alwaysHandleSupSub)?ii:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(e.style.size===w.DISPLAY.size||n.limits)?oi:null:"accent"===n.type?c.isCharacterBox(n.base)?Ke:null:"horizBrace"===n.type&&!t.sub===n.isOver?Jn:null:null}(t,e);if(n)return n(t,e);var i,r,s,a=t.base,o=t.sup,l=t.sub,u=Ce(a,e),h=e.fontMetrics(),d=0,f=0,p=a&&c.isCharacterBox(a);if(o){var g=e.havingStyle(e.style.sup());i=Ce(o,g,e),p||(d=u.height-g.fontMetrics().supDrop*g.sizeMultiplier/e.sizeMultiplier)}if(l){var m=e.havingStyle(e.style.sub());r=Ce(l,m,e),p||(f=u.depth+m.fontMetrics().subDrop*m.sizeMultiplier/e.sizeMultiplier)}s=e.style===w.DISPLAY?h.sup1:e.style.cramped?h.sup3:h.sup2;var v,y=e.sizeMultiplier,A=.5/h.ptPerEm/y+"em",b=null;if(r){var E=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(u instanceof N||E)&&(b=-u.italic+"em")}if(i&&r){d=Math.max(d,s,i.depth+.25*h.xHeight),f=Math.max(f,h.sub2);var x=4*h.defaultRuleThickness;if(d-i.depth-(r.height-f)0&&(d+=k,f-=k)}var T=[{type:"elem",elem:r,shift:f,marginRight:A,marginLeft:b},{type:"elem",elem:i,shift:-d,marginRight:A}];v=Jt.makeVList({positionType:"individualShift",children:T},e)}else if(r){f=Math.max(f,h.sub1,r.height-.8*h.xHeight);var C=[{type:"elem",elem:r,marginLeft:b,marginRight:A}];v=Jt.makeVList({positionType:"shift",positionData:f,children:C},e)}else{if(!i)throw new Error("supsub must have either sup or sub.");d=Math.max(d,s,i.depth+.25*h.xHeight),v=Jt.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:i,marginRight:A}]},e)}var D=ke(u,"right")||"mord";return Jt.makeSpan([D],[u,Jt.makeSpan(["msupsub"],[v])],e)},mathmlBuilder:function(t,e){var n,i=!1,r=te(t.base,"horizBrace");r&&!!t.sup===r.isOver&&(i=!0,n=r.isOver),!t.base||"op"!==t.base.type&&"operatorname"!==t.base.type||(t.base.parentIsSupSub=!0);var s,a=[_e(t.base,e)];if(t.sub&&a.push(_e(t.sub,e)),t.sup&&a.push(_e(t.sup,e)),i)s=n?"mover":"munder";else if(t.sub)if(t.sup){var o=t.base;s=o&&"op"===o.type&&o.limits&&e.style===w.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(e.style===w.DISPLAY||o.limits)?"munderover":"msubsup"}else{var l=t.base;s=l&&"op"===l.type&&l.limits&&(e.style===w.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||e.style===w.DISPLAY)?"munder":"msub"}else{var u=t.base;s=u&&"op"===u.type&&u.limits&&(e.style===w.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||e.style===w.DISPLAY)?"mover":"msup"}return new Be.MathNode(s,a)}}),fe({type:"atom",htmlBuilder:function(t,e){return Jt.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var n=new Be.MathNode("mo",[Pe(t.text,t.mode)]);if("bin"===t.family){var i=Me(t,e);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===t.family?n.setAttribute("separator","true"):"open"!==t.family&&"close"!==t.family||n.setAttribute("stretchy","false");return n}});var ci={mi:"italic",mn:"normal",mtext:"normal"};fe({type:"mathord",htmlBuilder:function(t,e){return Jt.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var n=new Be.MathNode("mi",[Pe(t.text,t.mode,e)]),i=Me(t,e)||"italic";return i!==ci[n.type]&&n.setAttribute("mathvariant",i),n}}),fe({type:"textord",htmlBuilder:function(t,e){return Jt.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var n,i=Pe(t.text,t.mode,e),r=Me(t,e)||"normal";return n="text"===t.mode?new Be.MathNode("mtext",[i]):/[0-9]/.test(t.text)?new Be.MathNode("mn",[i]):"\\prime"===t.text?new Be.MathNode("mo",[i]):new Be.MathNode("mi",[i]),r!==ci[n.type]&&n.setAttribute("mathvariant",r),n}});var di={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},fi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};fe({type:"spacing",htmlBuilder:function(t,e){if(fi.hasOwnProperty(t.text)){var n=fi[t.text].className||"";if("text"===t.mode){var i=Jt.makeOrd(t,e,"textord");return i.classes.push(n),i}return Jt.makeSpan(["mspace",n],[Jt.mathsym(t.text,t.mode,e)],e)}if(di.hasOwnProperty(t.text))return Jt.makeSpan(["mspace",di[t.text]],[],e);throw new a('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t,e){if(!fi.hasOwnProperty(t.text)){if(di.hasOwnProperty(t.text))return new Be.MathNode("mspace");throw new a('Unknown type of space "'+t.text+'"')}return new Be.MathNode("mtext",[new Be.TextNode(" ")])}});var pi=function(){var t=new Be.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};fe({type:"tag",mathmlBuilder:function(t,e){var n=new Be.MathNode("mtable",[new Be.MathNode("mtr",[pi(),new Be.MathNode("mtd",[Fe(t.body,e)]),pi(),new Be.MathNode("mtd",[Fe(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var gi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},mi={"\\textbf":"textbf","\\textmd":"textmd"},vi={"\\textit":"textit","\\textup":"textup"},yi=function(t,e){var n=t.font;return n?gi[n]?e.withTextFontFamily(gi[n]):mi[n]?e.withTextFontWeight(mi[n]):e.withTextFontShape(vi[n]):e};de({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(t,e){var n=t.parser,i=t.funcName,r=e[0];return{type:"text",mode:n.mode,body:pe(r),font:i}},htmlBuilder:function(t,e){var n=yi(t,e),i=be(t.body,n,!0);return Jt.makeSpan(["mord","text"],Jt.tryCombineChars(i),n)},mathmlBuilder:function(t,e){var n=yi(t,e);return Fe(t.body,n)}}),de({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){return{type:"underline",mode:t.parser.mode,body:e[0]}},htmlBuilder:function(t,e){var n=Ce(t.body,e),i=Jt.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,s=Jt.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:i},{type:"kern",size:3*r},{type:"elem",elem:n}]},e);return Jt.makeSpan(["mord","underline"],[s],e)},mathmlBuilder:function(t,e){var n=new Be.MathNode("mo",[new Be.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new Be.MathNode("munder",[_e(t.body,e),n]);return i.setAttribute("accentunder","true"),i}}),de({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(t,e,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var n=Ai(t),i=[],r=e.havingStyle(e.style.text()),s=0;s0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(t)&&(r[t]=this.current[t])}this.current[t]=e},t}(),Ri={},Li=Ri;function Bi(t,e){Ri[t]=e}Bi("\\@firstoftwo",(function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}})),Bi("\\@secondoftwo",(function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}})),Bi("\\@ifnextchar",(function(t){var e=t.consumeArgs(3),n=t.future();return 1===e[0].length&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}})),Bi("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Bi("\\TextOrMath",(function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}}));var Pi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Bi("\\char",(function(t){var e,n=t.popToken(),i="";if("'"===n.text)e=8,n=t.popToken();else if('"'===n.text)e=16,n=t.popToken();else if("`"===n.text)if("\\"===(n=t.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");i=n.text.charCodeAt(0)}else e=10;if(e){if(null==(i=Pi[n.text])||i>=e)throw new a("Invalid base-"+e+" digit "+n.text);for(var r;null!=(r=Pi[t.future().text])&&r":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Bi("\\dots",(function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Ni?e=Ni[n]:("\\not"===n.substr(0,4)||n in X.math&&c.contains(["bin","rel"],X.math[n].group))&&(e="\\dotsb"),e}));var Fi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Bi("\\dotso",(function(t){return t.future().text in Fi?"\\ldots\\,":"\\ldots"})),Bi("\\dotsc",(function(t){var e=t.future().text;return e in Fi&&","!==e?"\\ldots\\,":"\\ldots"})),Bi("\\cdots",(function(t){return t.future().text in Fi?"\\@cdots\\,":"\\@cdots"})),Bi("\\dotsb","\\cdots"),Bi("\\dotsm","\\cdots"),Bi("\\dotsi","\\!\\cdots"),Bi("\\dotsx","\\ldots\\,"),Bi("\\DOTSI","\\relax"),Bi("\\DOTSB","\\relax"),Bi("\\DOTSX","\\relax"),Bi("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Bi("\\,","\\tmspace+{3mu}{.1667em}"),Bi("\\thinspace","\\,"),Bi("\\>","\\mskip{4mu}"),Bi("\\:","\\tmspace+{4mu}{.2222em}"),Bi("\\medspace","\\:"),Bi("\\;","\\tmspace+{5mu}{.2777em}"),Bi("\\thickspace","\\;"),Bi("\\!","\\tmspace-{3mu}{.1667em}"),Bi("\\negthinspace","\\!"),Bi("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Bi("\\negthickspace","\\tmspace-{5mu}{.277em}"),Bi("\\enspace","\\kern.5em "),Bi("\\enskip","\\hskip.5em\\relax"),Bi("\\quad","\\hskip1em\\relax"),Bi("\\qquad","\\hskip2em\\relax"),Bi("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Bi("\\tag@paren","\\tag@literal{({#1})}"),Bi("\\tag@literal",(function(t){if(t.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Bi("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Bi("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Bi("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Bi("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Bi("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Bi("\\\\","\\newline"),Bi("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _i=j["Main-Regular"]["T".charCodeAt(0)][1]-.7*j["Main-Regular"]["A".charCodeAt(0)][1]+"em";Bi("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+_i+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Bi("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+_i+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Bi("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Bi("\\@hspace","\\hskip #1\\relax"),Bi("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Bi("\\ordinarycolon",":"),Bi("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Bi("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Bi("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Bi("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Bi("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Bi("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Bi("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Bi("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Bi("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Bi("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Bi("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Bi("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Bi("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Bi("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Bi("∷","\\dblcolon"),Bi("∹","\\eqcolon"),Bi("≔","\\coloneqq"),Bi("≕","\\eqqcolon"),Bi("⩴","\\Coloneqq"),Bi("\\ratio","\\vcentcolon"),Bi("\\coloncolon","\\dblcolon"),Bi("\\colonequals","\\coloneqq"),Bi("\\coloncolonequals","\\Coloneqq"),Bi("\\equalscolon","\\eqqcolon"),Bi("\\equalscoloncolon","\\Eqqcolon"),Bi("\\colonminus","\\coloneq"),Bi("\\coloncolonminus","\\Coloneq"),Bi("\\minuscolon","\\eqcolon"),Bi("\\minuscoloncolon","\\Eqcolon"),Bi("\\coloncolonapprox","\\Colonapprox"),Bi("\\coloncolonsim","\\Colonsim"),Bi("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Bi("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Bi("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Bi("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Bi("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Bi("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Bi("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Bi("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Bi("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Bi("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Bi("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Bi("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Bi("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Bi("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Bi("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Bi("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Bi("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Bi("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Bi("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Bi("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Bi("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Bi("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Bi("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Bi("⟦","\\llbracket"),Bi("⟧","\\rrbracket"),Bi("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Bi("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Bi("⦃","\\lBrace"),Bi("⦄","\\rBrace"),Bi("\\darr","\\downarrow"),Bi("\\dArr","\\Downarrow"),Bi("\\Darr","\\Downarrow"),Bi("\\lang","\\langle"),Bi("\\rang","\\rangle"),Bi("\\uarr","\\uparrow"),Bi("\\uArr","\\Uparrow"),Bi("\\Uarr","\\Uparrow"),Bi("\\N","\\mathbb{N}"),Bi("\\R","\\mathbb{R}"),Bi("\\Z","\\mathbb{Z}"),Bi("\\alef","\\aleph"),Bi("\\alefsym","\\aleph"),Bi("\\Alpha","\\mathrm{A}"),Bi("\\Beta","\\mathrm{B}"),Bi("\\bull","\\bullet"),Bi("\\Chi","\\mathrm{X}"),Bi("\\clubs","\\clubsuit"),Bi("\\cnums","\\mathbb{C}"),Bi("\\Complex","\\mathbb{C}"),Bi("\\Dagger","\\ddagger"),Bi("\\diamonds","\\diamondsuit"),Bi("\\empty","\\emptyset"),Bi("\\Epsilon","\\mathrm{E}"),Bi("\\Eta","\\mathrm{H}"),Bi("\\exist","\\exists"),Bi("\\harr","\\leftrightarrow"),Bi("\\hArr","\\Leftrightarrow"),Bi("\\Harr","\\Leftrightarrow"),Bi("\\hearts","\\heartsuit"),Bi("\\image","\\Im"),Bi("\\infin","\\infty"),Bi("\\Iota","\\mathrm{I}"),Bi("\\isin","\\in"),Bi("\\Kappa","\\mathrm{K}"),Bi("\\larr","\\leftarrow"),Bi("\\lArr","\\Leftarrow"),Bi("\\Larr","\\Leftarrow"),Bi("\\lrarr","\\leftrightarrow"),Bi("\\lrArr","\\Leftrightarrow"),Bi("\\Lrarr","\\Leftrightarrow"),Bi("\\Mu","\\mathrm{M}"),Bi("\\natnums","\\mathbb{N}"),Bi("\\Nu","\\mathrm{N}"),Bi("\\Omicron","\\mathrm{O}"),Bi("\\plusmn","\\pm"),Bi("\\rarr","\\rightarrow"),Bi("\\rArr","\\Rightarrow"),Bi("\\Rarr","\\Rightarrow"),Bi("\\real","\\Re"),Bi("\\reals","\\mathbb{R}"),Bi("\\Reals","\\mathbb{R}"),Bi("\\Rho","\\mathrm{P}"),Bi("\\sdot","\\cdot"),Bi("\\sect","\\S"),Bi("\\spades","\\spadesuit"),Bi("\\sub","\\subset"),Bi("\\sube","\\subseteq"),Bi("\\supe","\\supseteq"),Bi("\\Tau","\\mathrm{T}"),Bi("\\thetasym","\\vartheta"),Bi("\\weierp","\\wp"),Bi("\\Zeta","\\mathrm{Z}"),Bi("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Bi("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Bi("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Bi("\\blue","\\textcolor{##6495ed}{#1}"),Bi("\\orange","\\textcolor{##ffa500}{#1}"),Bi("\\pink","\\textcolor{##ff00af}{#1}"),Bi("\\red","\\textcolor{##df0030}{#1}"),Bi("\\green","\\textcolor{##28ae7b}{#1}"),Bi("\\gray","\\textcolor{gray}{#1}"),Bi("\\purple","\\textcolor{##9d38bd}{#1}"),Bi("\\blueA","\\textcolor{##ccfaff}{#1}"),Bi("\\blueB","\\textcolor{##80f6ff}{#1}"),Bi("\\blueC","\\textcolor{##63d9ea}{#1}"),Bi("\\blueD","\\textcolor{##11accd}{#1}"),Bi("\\blueE","\\textcolor{##0c7f99}{#1}"),Bi("\\tealA","\\textcolor{##94fff5}{#1}"),Bi("\\tealB","\\textcolor{##26edd5}{#1}"),Bi("\\tealC","\\textcolor{##01d1c1}{#1}"),Bi("\\tealD","\\textcolor{##01a995}{#1}"),Bi("\\tealE","\\textcolor{##208170}{#1}"),Bi("\\greenA","\\textcolor{##b6ffb0}{#1}"),Bi("\\greenB","\\textcolor{##8af281}{#1}"),Bi("\\greenC","\\textcolor{##74cf70}{#1}"),Bi("\\greenD","\\textcolor{##1fab54}{#1}"),Bi("\\greenE","\\textcolor{##0d923f}{#1}"),Bi("\\goldA","\\textcolor{##ffd0a9}{#1}"),Bi("\\goldB","\\textcolor{##ffbb71}{#1}"),Bi("\\goldC","\\textcolor{##ff9c39}{#1}"),Bi("\\goldD","\\textcolor{##e07d10}{#1}"),Bi("\\goldE","\\textcolor{##a75a05}{#1}"),Bi("\\redA","\\textcolor{##fca9a9}{#1}"),Bi("\\redB","\\textcolor{##ff8482}{#1}"),Bi("\\redC","\\textcolor{##f9685d}{#1}"),Bi("\\redD","\\textcolor{##e84d39}{#1}"),Bi("\\redE","\\textcolor{##bc2612}{#1}"),Bi("\\maroonA","\\textcolor{##ffbde0}{#1}"),Bi("\\maroonB","\\textcolor{##ff92c6}{#1}"),Bi("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Bi("\\maroonD","\\textcolor{##ca337c}{#1}"),Bi("\\maroonE","\\textcolor{##9e034e}{#1}"),Bi("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Bi("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Bi("\\purpleC","\\textcolor{##aa87ff}{#1}"),Bi("\\purpleD","\\textcolor{##7854ab}{#1}"),Bi("\\purpleE","\\textcolor{##543b78}{#1}"),Bi("\\mintA","\\textcolor{##f5f9e8}{#1}"),Bi("\\mintB","\\textcolor{##edf2df}{#1}"),Bi("\\mintC","\\textcolor{##e0e5cc}{#1}"),Bi("\\grayA","\\textcolor{##f6f7f7}{#1}"),Bi("\\grayB","\\textcolor{##f0f1f2}{#1}"),Bi("\\grayC","\\textcolor{##e3e5e6}{#1}"),Bi("\\grayD","\\textcolor{##d6d8da}{#1}"),Bi("\\grayE","\\textcolor{##babec2}{#1}"),Bi("\\grayF","\\textcolor{##888d93}{#1}"),Bi("\\grayG","\\textcolor{##626569}{#1}"),Bi("\\grayH","\\textcolor{##3b3e40}{#1}"),Bi("\\grayI","\\textcolor{##21242c}{#1}"),Bi("\\kaBlue","\\textcolor{##314453}{#1}"),Bi("\\kaGreen","\\textcolor{##71B307}{#1}");var Ui={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},zi=function(){function t(t,e,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=e,this.expansionCount=0,this.feed(t),this.macros=new Ii(Li,e.macros),this.mode=n,this.stack=[]}var e=t.prototype;return e.feed=function(t){this.lexer=new Si(t,this.settings)},e.switchMode=function(t){this.mode=t},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(t){this.stack.push(t)},e.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},e.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},e.consumeArgs=function(t){for(var e=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var i=n.tokens;if(n.numArgs)for(var r=this.consumeArgs(n.numArgs),s=(i=i.slice()).length-1;s>=0;--s){var o=i[s];if("#"===o.text){if(0===s)throw new a("Incomplete placeholder at end of macro body",o);if("#"===(o=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(o.text))throw new a("Not a valid argument number",o);var l;(l=i).splice.apply(l,[s,2].concat(r[+o.text-1]))}}}return this.pushTokens(i),i},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof r){if("\\relax"!==t.text)return this.stack.pop();this.stack.pop()}}throw new Error},e.expandMacro=function(t){if(this.macros.get(t)){var e=[],n=this.stack.length;for(this.pushToken(new r(t));this.stack.length>n;)this.expandOnce()instanceof r&&e.push(this.stack.pop());return e}},e.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map((function(t){return t.text})).join(""):e},e._getExpansion=function(t){var e=this.macros.get(t);if(null==e)return e;var n="function"==typeof e?e(this):e;if("string"==typeof n){var i=0;if(-1!==n.indexOf("#"))for(var r=n.replace(/##/g,"");-1!==r.indexOf("#"+(i+1));)++i;for(var s=new Si(n,this.settings),a=[],o=s.lex();"EOF"!==o.text;)a.push(o),o=s.lex();return a.reverse(),{tokens:a,numArgs:i}}return n},e.isDefined=function(t){return this.macros.has(t)||bi.hasOwnProperty(t)||X.math.hasOwnProperty(t)||X.text.hasOwnProperty(t)||Ui.hasOwnProperty(t)},t}(),ji={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},Gi={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},Hi=function(){function t(t,e){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new zi(t,e,this.mode),this.settings=e,this.leftrightDepth=0}var e=t.prototype;return e.expect=function(t,e){if(void 0===e&&(e=!0),this.fetch().text!==t)throw new a("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());e&&this.consume()},e.consume=function(){this.nextToken=null},e.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},e.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},e.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var t=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),t},e.parseExpression=function(e,n){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==t.endOfExpression.indexOf(r.text))break;if(n&&r.text===n)break;if(e&&bi[r.text]&&bi[r.text].infix)break;var s=this.parseAtom(n);if(!s)break;i.push(s)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)},e.handleInfixNodes=function(t){for(var e,n=-1,i=0;i0&&!u||0===o&&!u&&"math"===this.mode,c=this.parseGroupOfType("argument to '"+t+"'",l,u,i,h);if(!c){if(u){s.push(null);continue}throw new a("Expected group after '"+t+"'",this.fetch())}(u?s:r).push(c)}return{args:r,optArgs:s}},e.parseGroupOfType=function(t,e,n,i,r){switch(e){case"color":return r&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return r&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,r);case"math":case"text":return this.parseGroup(t,n,i,void 0,e,r);case"hbox":var s=this.parseGroup(t,n,i,void 0,"text",r);return s?{type:"styling",mode:s.mode,body:[s],style:"text"}:s;case"raw":if(r&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var o=this.parseStringGroup("raw",n,!0);if(o)return{type:"raw",mode:"text",string:o.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(t,n,i,void 0,void 0,r);default:throw new a("Unknown group type as "+t,this.fetch())}},e.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},e.parseStringGroup=function(t,e,n){var i=e?"[":"{",r=e?"]":"}",s=this.fetch();if(s.text!==i){if(e)return null;if(n&&"EOF"!==s.text&&/[^{}[\]]/.test(s.text))return this.consume(),s}var o=this.mode;this.mode="text",this.expect(i);for(var l,u="",h=this.fetch(),c=0,d=h;(l=this.fetch()).text!==r||n&&c>0;){switch(l.text){case"EOF":throw new a("Unexpected end of input in "+t,h.range(d,u));case i:c++;break;case r:c--}u+=(d=l).text,this.consume()}return this.expect(r),this.mode=o,h.range(d,u)},e.parseRegexGroup=function(t,e){var n=this.mode;this.mode="text";for(var i,r=this.fetch(),s=r,o="";"EOF"!==(i=this.fetch()).text&&t.test(o+i.text);)o+=(s=i).text,this.consume();if(""===o)throw new a("Invalid "+e+": '"+r.text+"'",r);return this.mode=n,r.range(s,o)},e.parseColorGroup=function(t){var e=this.parseStringGroup("color",t);if(!e)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!n)throw new a("Invalid color: '"+e.text+"'",e);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}},e.parseSizeGroup=function(t){var e,n=!1;if(!(e=t||"{"===this.fetch().text?this.parseStringGroup("size",t):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;t||0!==e.text.length||(e.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!i)throw new a("Invalid size: '"+e.text+"'",e);var r={number:+(i[1]+i[2]),unit:i[3]};if(!Ut(r))throw new a("Invalid unit: '"+r.unit+"'",e);return{type:"size",mode:this.mode,value:r,isBlank:n}},e.parseUrlGroup=function(t,e){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",t,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}},e.parseGroup=function(e,n,r,s,o,l){var u=this.mode;o&&this.switchMode(o),l&&this.consumeSpaces();var h,c=this.fetch(),d=c.text;if(n?"["===d:"{"===d||"\\begingroup"===d){this.consume();var f=t.endOfGroup[d];this.gullet.beginGroup();var p=this.parseExpression(!1,f),g=this.fetch();this.expect(f),this.gullet.endGroup(),h={type:"ordgroup",mode:this.mode,loc:i.range(c,g),body:p,semisimple:"\\begingroup"===d||void 0}}else if(n)h=null;else if(null==(h=this.parseFunction(s,e,r)||this.parseSymbol())&&"\\"===d[0]&&!Ui.hasOwnProperty(d)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+d,c);h=this.formatUnsupportedCmd(d),this.consume()}return o&&this.switchMode(u),h},e.formLigatures=function(t){for(var e=t.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var l,u=X[this.mode][e].group,h=i.range(t);if(V.hasOwnProperty(u)){var c=u;l={type:"atom",mode:this.mode,family:c,loc:h,text:e}}else l={type:u,mode:this.mode,loc:h,text:e};s=l}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(k(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),s={type:"textord",mode:"text",loc:i.range(t),text:e}}if(this.consume(),o)for(var d=0;dt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s={exports:{}};function a(){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 o(t){s.exports.defaults=t}s.exports={defaults:a(),getDefaults:a,changeDefaults:o};var l=/[&<>"']/,u=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(t){return d[t]};function p(t,e){if(e){if(l.test(t))return t.replace(u,f)}else if(h.test(t))return t.replace(c,f);return t}var g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(t){return t.replace(g,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var v=/(^|[^\[])\^/g;function y(t,e){t=t.source||t,e=e||"";var n={replace:function(e,i){return i=(i=i.source||i).replace(v,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n}var A=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(t,e,n){if(t){var i;try{i=decodeURIComponent(m(n)).replace(A,"").toLowerCase()}catch(t){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!b.test(n)&&(n=C(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}var E={},x=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(t,e){E[" "+t]||(x.test(t)?E[" "+t]=t+"/":E[" "+t]=I(t,"/",!0));var n=-1===(t=E[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(k,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(T,"$1")+e:t+e}function D(t){for(var e,n,i=1;i=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>e)n.splice(e);else for(;n.length1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}var P={escape:p,unescape:m,edit:y,cleanUrl:w,resolveUrl:C,noopTest:{exec:function(){}},merge:D,splitCells:S,rtrim:I,findClosingBracket:R,checkSanitizeDeprecation:L,repeatString:B},O=s.exports.defaults,M=P.rtrim,N=P.splitCells,F=P.escape,_=P.findClosingBracket;function U(t,e,n){var i=e.href,r=e.title?F(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:s}:{type:"image",raw:n,href:i,title:r,text:F(s)}}function z(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=i.length?t.slice(i.length):t})).join("\n")}var j=function(){function t(t){this.options=t||O}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:M(n,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=z(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:i}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=M(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:N(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,s,a,o,l,u,h,c=e[0],d=e[2],f=d.length>1,p={type:"list",raw:c,ordered:f,start:f?+d.slice(0,-1):"",loose:!1,items:[]},g=e[0].match(this.rules.block.item),m=!1,v=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var y=0;yr[1].length:s[1].length>=r[0].length||s[1].length>3){g.splice(y,2,g[y]+(!this.options.pedantic&&s[1].length/i.test(i[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):F(i[0]):i[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=M(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=_(e[2],"()");if(r>-1){var s=(0===e[0].indexOf("!")?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,s).trim(),e[3]=""}}var a=e[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],o=l[3])}else o=e[3]?e[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),U(e,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=e[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return U(n,i,n[0])}},e.emStrong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(t);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\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\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uD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E67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var s,a,o=i[0].length-1,l=o,u=0,h="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+o);null!=(i=h.exec(e));)if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=s.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!((l-=a)>0))return a=Math.min(a,a+l+u),Math.min(o,a)%2?{type:"em",raw:t.slice(0,o+i.index+a+1),text:t.slice(1,o+i.index+a)}:{type:"strong",raw:t.slice(0,o+i.index+a+1),text:t.slice(2,o+i.index+a-1)}}else u+=a}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=F(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return i="@"===r[2]?"mailto:"+(n=F(this.options.mangle?e(r[1]):r[1])):n=F(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])r="mailto:"+(i=F(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=F(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},e.inlineText=function(t,e,n){var i,r=this.rules.inline.text.exec(t);if(r)return i=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):F(r[0]):r[0]:F(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},t}(),G=P.noopTest,H=P.edit,Q=P.merge,q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\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})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:G,table:G,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};q.def=H(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,q.item=H(q.item,"gm").replace(/bull/g,q.bullet).getRegex(),q.listItemStart=H(/^( *)(bull) */).replace("bull",q.bullet).getRegex(),q.list=H(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._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",q._comment=/|$)/,q.html=H(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=H(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.blockquote=H(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=Q({},q),q.gfm=Q({},q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.nptable=H(q.gfm.nptable).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.gfm.table=H(q.gfm.table).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.pedantic=Q({},q.normal,{html:H("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:G,paragraph:H(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:G,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=H(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=H(q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=H(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=H(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=H(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._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])?)+(?![-_])/,V.autolink=H(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=H(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=H(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=H(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=H(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=Q({},V),V.pedantic=Q({},V.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:H(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:H(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=Q({},V.normal,{escape:H(V.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var et=function(){function t(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||X,this.options.tokenizer=this.options.tokenizer||new K,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:W.normal,inline:Z.normal};this.options.pedantic?(e.block=W.pedantic,e.inline=Z.pedantic):this.options.gfm&&(e.block=W.gfm,this.options.breaks?e.inline=Z.breaks:e.inline=Z.gfm),this.tokenizer.rules=e}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n=t.prototype;return n.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(t,e,n){var i,r,s,a;for(void 0===e&&(e=[]),void 0===n&&(n=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(i=this.tokenizer.space(t))t=t.substring(i.raw.length),i.type&&e.push(i);else if(i=this.tokenizer.code(t))t=t.substring(i.raw.length),(a=e[e.length-1])&&"paragraph"===a.type?(a.raw+="\n"+i.raw,a.text+="\n"+i.text):e.push(i);else if(i=this.tokenizer.fences(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.heading(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.nptable(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.hr(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.blockquote(t))t=t.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),e.push(i);else if(i=this.tokenizer.list(t)){for(t=t.substring(i.raw.length),s=i.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(u));)h.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,a.index)+"["+J("a",a[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,a.index)+"["+J("a",a[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,a.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(o||(l=""),o=!1,r=this.tokenizer.escape(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.tag(t,n,i)){t=t.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var c=e[e.length-1];c&&"text"===r.type&&"text"===c.type?(c.raw+=r.raw,c.text+=r.text):e.push(r)}else if(r=this.tokenizer.link(t))t=t.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),e.push(r);else if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);var d=e[e.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),e.push(r)):d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):e.push(r)}else if(r=this.tokenizer.emStrong(t,u,l))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.codespan(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.br(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.del(t))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.autolink(t,tt))t=t.substring(r.raw.length),e.push(r);else if(n||!(r=this.tokenizer.url(t,tt))){if(r=this.tokenizer.inlineText(t,i,$))t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),o=!0,(s=e[e.length-1])&&"text"===s.type?(s.raw+=r.raw,s.text+=r.text):e.push(r);else if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}else t=t.substring(r.raw.length),e.push(r);return e},e(t,null,[{key:"rules",get:function(){return{block:W,inline:Z}}}]),t}(),nt=s.exports.defaults,it=P.cleanUrl,rt=P.escape,st=function(){function t(t){this.options=t||nt}var e=t.prototype;return e.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'
      '+(n?t:rt(t,!0))+"
      \n":"
      "+(n?t:rt(t,!0))+"
      \n"},e.blockquote=function(t){return"
      \n"+t+"
      \n"},e.html=function(t){return t},e.heading=function(t,e,n,i){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
      \n":"
      \n"},e.list=function(t,e,n){var i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
    • "+t+"
    • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

      "+t+"

      \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
      \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
      ":"
      "},e.del=function(t){return""+t+""},e.link=function(t,e,n){if(null===(t=it(this.options.sanitize,this.options.baseUrl,t)))return n;var i='"},e.image=function(t,e,n){if(null===(t=it(this.options.sanitize,this.options.baseUrl,t)))return n;var i=''+n+'":">"},e.text=function(t){return t},t}(),at=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),ot=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{n=t+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),lt=st,ut=at,ht=ot,ct=s.exports.defaults,dt=P.unescape,ft=et,pt=function(){function t(t){this.options=t||ct,this.options.renderer=this.options.renderer||new lt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ut,this.slugger=new ht}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,s,a,o,l,u,h,c,d,f,p,g,m,v,y,A,b="",w=t.length;for(n=0;n0&&"text"===m.tokens[0].type?(m.tokens[0].text=A+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=A+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:A}):g+=A),g+=this.parse(m.tokens,p),h+=this.renderer.listitem(g,y,v);b+=this.renderer.list(h,d,f);continue;case"html":b+=this.renderer.html(c.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(h=c.tokens?this.parseInline(c.tokens):c.text;n+1An error occurred:

      "+wt(t.message+"",!0)+"
      ";throw t}}return Tt.options=Tt.setOptions=function(t){return At(Tt.defaults,t),xt(Tt.defaults),Tt},Tt.getDefaults=Et,Tt.defaults=kt,Tt.use=function(t){var e=At({},t);if(t.renderer&&function(){var n=Tt.defaults.renderer||new mt,i=function(e){var i=n[e];n[e]=function(){for(var r=arguments.length,s=new Array(r),a=0;aAn error occurred:

      "+wt(t.message+"",!0)+"
      ";throw t}},Tt.Parser=pt,Tt.parser=pt.parse,Tt.Renderer=mt,Tt.TextRenderer=vt,Tt.Lexer=ft,Tt.lexer=ft.lex,Tt.Tokenizer=gt,Tt.Slugger=yt,Tt.parse=Tt,Tt}()},11690:function(t){const e=/[&<>"']/,n=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},a=t=>s[t];const o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(t){return t.replace(o,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const u=/(^|[^\[])\^/g;const h=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},f=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(t,e){d[" "+t]||(f.test(t)?d[" "+t]=t+"/":d[" "+t]=v(t,"/",!0));const n=-1===(t=d[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(p,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(g,"$1")+e:t+e}function v(t,e,n){const i=t.length;if(0===i)return"";let r=0;for(;r(i=(i=i.source||i).replace(u,"$1"),t=t.replace(e,i),n),getRegex:()=>new RegExp(t,e)};return n},cleanUrl:function(t,e,n){if(t){let t;try{t=decodeURIComponent(l(n)).replace(h,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!c.test(n)&&(n=m(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},resolveUrl:m,noopTest:{exec:function(){}},merge:function(t){let e,n,i=1;for(;i{let i=!1,r=e;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n.length>e)n.splice(e);else for(;n.length1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}}},75918:function(t,e,n){"use strict";n.d(e,{Wi:function(){return l},Z0:function(){return u},aU:function(){return o},eZ:function(){return c},wY:function(){return h}});var i=n(4348),r=n(69323),s=n(13268),a=function(t,e,n,i){return new(n||(n=Promise))((function(r,s){function a(t){try{l(i.next(t))}catch(t){s(t)}}function o(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,o)}l((i=i.apply(t,e||[])).next())}))};class o extends r.JT{constructor(t,e="",n="",r=!0,s){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=t,this._label=e,this._cssClass=n,this._enabled=r,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(t){this._setLabel(t)}_setLabel(t){this._label!==t&&(this._label=t,this._onDidChange.fire({label:t}))}get tooltip(){return this._tooltip||""}set tooltip(t){this._setTooltip(t)}_setTooltip(t){this._tooltip!==t&&(this._tooltip=t,this._onDidChange.fire({tooltip:t}))}get class(){return this._cssClass}set class(t){this._setClass(t)}_setClass(t){this._cssClass!==t&&(this._cssClass=t,this._onDidChange.fire({class:t}))}get enabled(){return this._enabled}set enabled(t){this._setEnabled(t)}_setEnabled(t){this._enabled!==t&&(this._enabled=t,this._onDidChange.fire({enabled:t}))}get checked(){return this._checked}set checked(t){this._setChecked(t)}_setChecked(t){this._checked!==t&&(this._checked=t,this._onDidChange.fire({checked:t}))}run(t,e){return a(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(t))}))}}class l extends r.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(t,e){return a(this,void 0,void 0,(function*(){if(!t.enabled)return;let n;this._onBeforeRun.fire({action:t});try{yield this.runAction(t,e)}catch(t){n=t}this._onDidRun.fire({action:t,error:n})}))}runAction(t,e){return a(this,void 0,void 0,(function*(){yield t.run(e)}))}}class u extends o{constructor(t){super(u.ID,t,t?"separator text":"separator"),this.checked=!1,this.enabled=!1}}u.ID="vs.actions.separator";class h{constructor(t,e,n,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=t,this.label=e,this.class=i,this._actions=n}get actions(){return this._actions}dispose(){}run(){return a(this,void 0,void 0,(function*(){}))}}class c extends o{constructor(){super(c.ID,s.N("submenu.empty","(empty)"),void 0,!1)}}c.ID="vs.actions.empty"},76068:function(t,e,n){"use strict";function i(t,e){if(!t)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}n.d(e,{ok:function(){return i}})},52615:function(t,e,n){"use strict";n.d(e,{CM:function(){return a},JL:function(){return o},dT:function(){return u},fK:function(){return s},lA:function(){return l}});var i=n(4348);const r=new class{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(t){const e=this._icons.get(t.id);e?t.description?e.description=t.description:console.error(`Duplicate registration of codicon ${t.id}`):(this._icons.set(t.id,t),this._onDidRegister.fire(t))}get(t){return this._icons.get(t)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},s=r;function a(t,e){return new l(t,e)}function o(t){return t?t.replace(/\$\((.*?)\)/g,((t,e)=>` ${e} `)).trim():""}class l{constructor(t,e,n){this.id=t,this.definition=e,this.description=n,r.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var u;!function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9\\-]+",t.iconModifierExpression="~[A-Za-z]+";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(t){if(t instanceof l)return["codicon","codicon-"+t.id];const i=e.exec(t.id);if(!i)return n(l.error);let[,r,s]=i;const a=["codicon","codicon-"+r];return s&&a.push("codicon-modifier-"+s.substr(1)),a}t.asClassNameArray=n,t.asClassName=function(t){return n(t).join(" ")},t.asCSSSelector=function(t){return"."+n(t).join(".")}}(u||(u={})),function(t){t.add=new t("add",{fontCharacter:"\\ea60"}),t.plus=new t("plus",t.add.definition),t.gistNew=new t("gist-new",t.add.definition),t.repoCreate=new t("repo-create",t.add.definition),t.lightbulb=new t("lightbulb",{fontCharacter:"\\ea61"}),t.lightBulb=new t("light-bulb",{fontCharacter:"\\ea61"}),t.repo=new t("repo",{fontCharacter:"\\ea62"}),t.repoDelete=new t("repo-delete",{fontCharacter:"\\ea62"}),t.gistFork=new t("gist-fork",{fontCharacter:"\\ea63"}),t.repoForked=new t("repo-forked",{fontCharacter:"\\ea63"}),t.gitPullRequest=new t("git-pull-request",{fontCharacter:"\\ea64"}),t.gitPullRequestAbandoned=new t("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),t.recordKeys=new t("record-keys",{fontCharacter:"\\ea65"}),t.keyboard=new t("keyboard",{fontCharacter:"\\ea65"}),t.tag=new t("tag",{fontCharacter:"\\ea66"}),t.tagAdd=new t("tag-add",{fontCharacter:"\\ea66"}),t.tagRemove=new t("tag-remove",{fontCharacter:"\\ea66"}),t.person=new t("person",{fontCharacter:"\\ea67"}),t.personFollow=new t("person-follow",{fontCharacter:"\\ea67"}),t.personOutline=new t("person-outline",{fontCharacter:"\\ea67"}),t.personFilled=new t("person-filled",{fontCharacter:"\\ea67"}),t.gitBranch=new t("git-branch",{fontCharacter:"\\ea68"}),t.gitBranchCreate=new t("git-branch-create",{fontCharacter:"\\ea68"}),t.gitBranchDelete=new t("git-branch-delete",{fontCharacter:"\\ea68"}),t.sourceControl=new t("source-control",{fontCharacter:"\\ea68"}),t.mirror=new t("mirror",{fontCharacter:"\\ea69"}),t.mirrorPublic=new t("mirror-public",{fontCharacter:"\\ea69"}),t.star=new t("star",{fontCharacter:"\\ea6a"}),t.starAdd=new t("star-add",{fontCharacter:"\\ea6a"}),t.starDelete=new t("star-delete",{fontCharacter:"\\ea6a"}),t.starEmpty=new t("star-empty",{fontCharacter:"\\ea6a"}),t.comment=new t("comment",{fontCharacter:"\\ea6b"}),t.commentAdd=new t("comment-add",{fontCharacter:"\\ea6b"}),t.alert=new t("alert",{fontCharacter:"\\ea6c"}),t.warning=new t("warning",{fontCharacter:"\\ea6c"}),t.search=new t("search",{fontCharacter:"\\ea6d"}),t.searchSave=new t("search-save",{fontCharacter:"\\ea6d"}),t.logOut=new t("log-out",{fontCharacter:"\\ea6e"}),t.signOut=new t("sign-out",{fontCharacter:"\\ea6e"}),t.logIn=new t("log-in",{fontCharacter:"\\ea6f"}),t.signIn=new t("sign-in",{fontCharacter:"\\ea6f"}),t.eye=new t("eye",{fontCharacter:"\\ea70"}),t.eyeUnwatch=new t("eye-unwatch",{fontCharacter:"\\ea70"}),t.eyeWatch=new t("eye-watch",{fontCharacter:"\\ea70"}),t.circleFilled=new t("circle-filled",{fontCharacter:"\\ea71"}),t.primitiveDot=new t("primitive-dot",{fontCharacter:"\\ea71"}),t.closeDirty=new t("close-dirty",{fontCharacter:"\\ea71"}),t.debugBreakpoint=new t("debug-breakpoint",{fontCharacter:"\\ea71"}),t.debugBreakpointDisabled=new t("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),t.debugHint=new t("debug-hint",{fontCharacter:"\\ea71"}),t.primitiveSquare=new t("primitive-square",{fontCharacter:"\\ea72"}),t.edit=new t("edit",{fontCharacter:"\\ea73"}),t.pencil=new t("pencil",{fontCharacter:"\\ea73"}),t.info=new t("info",{fontCharacter:"\\ea74"}),t.issueOpened=new t("issue-opened",{fontCharacter:"\\ea74"}),t.gistPrivate=new t("gist-private",{fontCharacter:"\\ea75"}),t.gitForkPrivate=new t("git-fork-private",{fontCharacter:"\\ea75"}),t.lock=new t("lock",{fontCharacter:"\\ea75"}),t.mirrorPrivate=new t("mirror-private",{fontCharacter:"\\ea75"}),t.close=new t("close",{fontCharacter:"\\ea76"}),t.removeClose=new t("remove-close",{fontCharacter:"\\ea76"}),t.x=new t("x",{fontCharacter:"\\ea76"}),t.repoSync=new t("repo-sync",{fontCharacter:"\\ea77"}),t.sync=new t("sync",{fontCharacter:"\\ea77"}),t.clone=new t("clone",{fontCharacter:"\\ea78"}),t.desktopDownload=new t("desktop-download",{fontCharacter:"\\ea78"}),t.beaker=new t("beaker",{fontCharacter:"\\ea79"}),t.microscope=new t("microscope",{fontCharacter:"\\ea79"}),t.vm=new t("vm",{fontCharacter:"\\ea7a"}),t.deviceDesktop=new t("device-desktop",{fontCharacter:"\\ea7a"}),t.file=new t("file",{fontCharacter:"\\ea7b"}),t.fileText=new t("file-text",{fontCharacter:"\\ea7b"}),t.more=new t("more",{fontCharacter:"\\ea7c"}),t.ellipsis=new t("ellipsis",{fontCharacter:"\\ea7c"}),t.kebabHorizontal=new t("kebab-horizontal",{fontCharacter:"\\ea7c"}),t.mailReply=new t("mail-reply",{fontCharacter:"\\ea7d"}),t.reply=new t("reply",{fontCharacter:"\\ea7d"}),t.organization=new t("organization",{fontCharacter:"\\ea7e"}),t.organizationFilled=new t("organization-filled",{fontCharacter:"\\ea7e"}),t.organizationOutline=new t("organization-outline",{fontCharacter:"\\ea7e"}),t.newFile=new t("new-file",{fontCharacter:"\\ea7f"}),t.fileAdd=new t("file-add",{fontCharacter:"\\ea7f"}),t.newFolder=new t("new-folder",{fontCharacter:"\\ea80"}),t.fileDirectoryCreate=new t("file-directory-create",{fontCharacter:"\\ea80"}),t.trash=new t("trash",{fontCharacter:"\\ea81"}),t.trashcan=new t("trashcan",{fontCharacter:"\\ea81"}),t.history=new t("history",{fontCharacter:"\\ea82"}),t.clock=new t("clock",{fontCharacter:"\\ea82"}),t.folder=new t("folder",{fontCharacter:"\\ea83"}),t.fileDirectory=new t("file-directory",{fontCharacter:"\\ea83"}),t.symbolFolder=new t("symbol-folder",{fontCharacter:"\\ea83"}),t.logoGithub=new t("logo-github",{fontCharacter:"\\ea84"}),t.markGithub=new t("mark-github",{fontCharacter:"\\ea84"}),t.github=new t("github",{fontCharacter:"\\ea84"}),t.terminal=new t("terminal",{fontCharacter:"\\ea85"}),t.console=new t("console",{fontCharacter:"\\ea85"}),t.repl=new t("repl",{fontCharacter:"\\ea85"}),t.zap=new t("zap",{fontCharacter:"\\ea86"}),t.symbolEvent=new t("symbol-event",{fontCharacter:"\\ea86"}),t.error=new t("error",{fontCharacter:"\\ea87"}),t.stop=new t("stop",{fontCharacter:"\\ea87"}),t.variable=new t("variable",{fontCharacter:"\\ea88"}),t.symbolVariable=new t("symbol-variable",{fontCharacter:"\\ea88"}),t.array=new t("array",{fontCharacter:"\\ea8a"}),t.symbolArray=new t("symbol-array",{fontCharacter:"\\ea8a"}),t.symbolModule=new t("symbol-module",{fontCharacter:"\\ea8b"}),t.symbolPackage=new t("symbol-package",{fontCharacter:"\\ea8b"}),t.symbolNamespace=new t("symbol-namespace",{fontCharacter:"\\ea8b"}),t.symbolObject=new t("symbol-object",{fontCharacter:"\\ea8b"}),t.symbolMethod=new t("symbol-method",{fontCharacter:"\\ea8c"}),t.symbolFunction=new t("symbol-function",{fontCharacter:"\\ea8c"}),t.symbolConstructor=new t("symbol-constructor",{fontCharacter:"\\ea8c"}),t.symbolBoolean=new t("symbol-boolean",{fontCharacter:"\\ea8f"}),t.symbolNull=new t("symbol-null",{fontCharacter:"\\ea8f"}),t.symbolNumeric=new t("symbol-numeric",{fontCharacter:"\\ea90"}),t.symbolNumber=new t("symbol-number",{fontCharacter:"\\ea90"}),t.symbolStructure=new t("symbol-structure",{fontCharacter:"\\ea91"}),t.symbolStruct=new t("symbol-struct",{fontCharacter:"\\ea91"}),t.symbolParameter=new t("symbol-parameter",{fontCharacter:"\\ea92"}),t.symbolTypeParameter=new t("symbol-type-parameter",{fontCharacter:"\\ea92"}),t.symbolKey=new t("symbol-key",{fontCharacter:"\\ea93"}),t.symbolText=new t("symbol-text",{fontCharacter:"\\ea93"}),t.symbolReference=new t("symbol-reference",{fontCharacter:"\\ea94"}),t.goToFile=new t("go-to-file",{fontCharacter:"\\ea94"}),t.symbolEnum=new t("symbol-enum",{fontCharacter:"\\ea95"}),t.symbolValue=new t("symbol-value",{fontCharacter:"\\ea95"}),t.symbolRuler=new t("symbol-ruler",{fontCharacter:"\\ea96"}),t.symbolUnit=new t("symbol-unit",{fontCharacter:"\\ea96"}),t.activateBreakpoints=new t("activate-breakpoints",{fontCharacter:"\\ea97"}),t.archive=new t("archive",{fontCharacter:"\\ea98"}),t.arrowBoth=new t("arrow-both",{fontCharacter:"\\ea99"}),t.arrowDown=new t("arrow-down",{fontCharacter:"\\ea9a"}),t.arrowLeft=new t("arrow-left",{fontCharacter:"\\ea9b"}),t.arrowRight=new t("arrow-right",{fontCharacter:"\\ea9c"}),t.arrowSmallDown=new t("arrow-small-down",{fontCharacter:"\\ea9d"}),t.arrowSmallLeft=new t("arrow-small-left",{fontCharacter:"\\ea9e"}),t.arrowSmallRight=new t("arrow-small-right",{fontCharacter:"\\ea9f"}),t.arrowSmallUp=new t("arrow-small-up",{fontCharacter:"\\eaa0"}),t.arrowUp=new t("arrow-up",{fontCharacter:"\\eaa1"}),t.bell=new t("bell",{fontCharacter:"\\eaa2"}),t.bold=new t("bold",{fontCharacter:"\\eaa3"}),t.book=new t("book",{fontCharacter:"\\eaa4"}),t.bookmark=new t("bookmark",{fontCharacter:"\\eaa5"}),t.debugBreakpointConditionalUnverified=new t("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),t.debugBreakpointConditional=new t("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),t.debugBreakpointConditionalDisabled=new t("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),t.debugBreakpointDataUnverified=new t("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),t.debugBreakpointData=new t("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),t.debugBreakpointDataDisabled=new t("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),t.debugBreakpointLogUnverified=new t("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),t.debugBreakpointLog=new t("debug-breakpoint-log",{fontCharacter:"\\eaab"}),t.debugBreakpointLogDisabled=new t("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),t.briefcase=new t("briefcase",{fontCharacter:"\\eaac"}),t.broadcast=new t("broadcast",{fontCharacter:"\\eaad"}),t.browser=new t("browser",{fontCharacter:"\\eaae"}),t.bug=new t("bug",{fontCharacter:"\\eaaf"}),t.calendar=new t("calendar",{fontCharacter:"\\eab0"}),t.caseSensitive=new t("case-sensitive",{fontCharacter:"\\eab1"}),t.check=new t("check",{fontCharacter:"\\eab2"}),t.checklist=new t("checklist",{fontCharacter:"\\eab3"}),t.chevronDown=new t("chevron-down",{fontCharacter:"\\eab4"}),t.dropDownButton=new t("drop-down-button",t.chevronDown.definition),t.chevronLeft=new t("chevron-left",{fontCharacter:"\\eab5"}),t.chevronRight=new t("chevron-right",{fontCharacter:"\\eab6"}),t.chevronUp=new t("chevron-up",{fontCharacter:"\\eab7"}),t.chromeClose=new t("chrome-close",{fontCharacter:"\\eab8"}),t.chromeMaximize=new t("chrome-maximize",{fontCharacter:"\\eab9"}),t.chromeMinimize=new t("chrome-minimize",{fontCharacter:"\\eaba"}),t.chromeRestore=new t("chrome-restore",{fontCharacter:"\\eabb"}),t.circleOutline=new t("circle-outline",{fontCharacter:"\\eabc"}),t.debugBreakpointUnverified=new t("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),t.circleSlash=new t("circle-slash",{fontCharacter:"\\eabd"}),t.circuitBoard=new t("circuit-board",{fontCharacter:"\\eabe"}),t.clearAll=new t("clear-all",{fontCharacter:"\\eabf"}),t.clippy=new t("clippy",{fontCharacter:"\\eac0"}),t.closeAll=new t("close-all",{fontCharacter:"\\eac1"}),t.cloudDownload=new t("cloud-download",{fontCharacter:"\\eac2"}),t.cloudUpload=new t("cloud-upload",{fontCharacter:"\\eac3"}),t.code=new t("code",{fontCharacter:"\\eac4"}),t.collapseAll=new t("collapse-all",{fontCharacter:"\\eac5"}),t.colorMode=new t("color-mode",{fontCharacter:"\\eac6"}),t.commentDiscussion=new t("comment-discussion",{fontCharacter:"\\eac7"}),t.compareChanges=new t("compare-changes",{fontCharacter:"\\eafd"}),t.creditCard=new t("credit-card",{fontCharacter:"\\eac9"}),t.dash=new t("dash",{fontCharacter:"\\eacc"}),t.dashboard=new t("dashboard",{fontCharacter:"\\eacd"}),t.database=new t("database",{fontCharacter:"\\eace"}),t.debugContinue=new t("debug-continue",{fontCharacter:"\\eacf"}),t.debugDisconnect=new t("debug-disconnect",{fontCharacter:"\\ead0"}),t.debugPause=new t("debug-pause",{fontCharacter:"\\ead1"}),t.debugRestart=new t("debug-restart",{fontCharacter:"\\ead2"}),t.debugStart=new t("debug-start",{fontCharacter:"\\ead3"}),t.debugStepInto=new t("debug-step-into",{fontCharacter:"\\ead4"}),t.debugStepOut=new t("debug-step-out",{fontCharacter:"\\ead5"}),t.debugStepOver=new t("debug-step-over",{fontCharacter:"\\ead6"}),t.debugStop=new t("debug-stop",{fontCharacter:"\\ead7"}),t.debug=new t("debug",{fontCharacter:"\\ead8"}),t.deviceCameraVideo=new t("device-camera-video",{fontCharacter:"\\ead9"}),t.deviceCamera=new t("device-camera",{fontCharacter:"\\eada"}),t.deviceMobile=new t("device-mobile",{fontCharacter:"\\eadb"}),t.diffAdded=new t("diff-added",{fontCharacter:"\\eadc"}),t.diffIgnored=new t("diff-ignored",{fontCharacter:"\\eadd"}),t.diffModified=new t("diff-modified",{fontCharacter:"\\eade"}),t.diffRemoved=new t("diff-removed",{fontCharacter:"\\eadf"}),t.diffRenamed=new t("diff-renamed",{fontCharacter:"\\eae0"}),t.diff=new t("diff",{fontCharacter:"\\eae1"}),t.discard=new t("discard",{fontCharacter:"\\eae2"}),t.editorLayout=new t("editor-layout",{fontCharacter:"\\eae3"}),t.emptyWindow=new t("empty-window",{fontCharacter:"\\eae4"}),t.exclude=new t("exclude",{fontCharacter:"\\eae5"}),t.extensions=new t("extensions",{fontCharacter:"\\eae6"}),t.eyeClosed=new t("eye-closed",{fontCharacter:"\\eae7"}),t.fileBinary=new t("file-binary",{fontCharacter:"\\eae8"}),t.fileCode=new t("file-code",{fontCharacter:"\\eae9"}),t.fileMedia=new t("file-media",{fontCharacter:"\\eaea"}),t.filePdf=new t("file-pdf",{fontCharacter:"\\eaeb"}),t.fileSubmodule=new t("file-submodule",{fontCharacter:"\\eaec"}),t.fileSymlinkDirectory=new t("file-symlink-directory",{fontCharacter:"\\eaed"}),t.fileSymlinkFile=new t("file-symlink-file",{fontCharacter:"\\eaee"}),t.fileZip=new t("file-zip",{fontCharacter:"\\eaef"}),t.files=new t("files",{fontCharacter:"\\eaf0"}),t.filter=new t("filter",{fontCharacter:"\\eaf1"}),t.flame=new t("flame",{fontCharacter:"\\eaf2"}),t.foldDown=new t("fold-down",{fontCharacter:"\\eaf3"}),t.foldUp=new t("fold-up",{fontCharacter:"\\eaf4"}),t.fold=new t("fold",{fontCharacter:"\\eaf5"}),t.folderActive=new t("folder-active",{fontCharacter:"\\eaf6"}),t.folderOpened=new t("folder-opened",{fontCharacter:"\\eaf7"}),t.gear=new t("gear",{fontCharacter:"\\eaf8"}),t.gift=new t("gift",{fontCharacter:"\\eaf9"}),t.gistSecret=new t("gist-secret",{fontCharacter:"\\eafa"}),t.gist=new t("gist",{fontCharacter:"\\eafb"}),t.gitCommit=new t("git-commit",{fontCharacter:"\\eafc"}),t.gitCompare=new t("git-compare",{fontCharacter:"\\eafd"}),t.gitMerge=new t("git-merge",{fontCharacter:"\\eafe"}),t.githubAction=new t("github-action",{fontCharacter:"\\eaff"}),t.githubAlt=new t("github-alt",{fontCharacter:"\\eb00"}),t.globe=new t("globe",{fontCharacter:"\\eb01"}),t.grabber=new t("grabber",{fontCharacter:"\\eb02"}),t.graph=new t("graph",{fontCharacter:"\\eb03"}),t.gripper=new t("gripper",{fontCharacter:"\\eb04"}),t.heart=new t("heart",{fontCharacter:"\\eb05"}),t.home=new t("home",{fontCharacter:"\\eb06"}),t.horizontalRule=new t("horizontal-rule",{fontCharacter:"\\eb07"}),t.hubot=new t("hubot",{fontCharacter:"\\eb08"}),t.inbox=new t("inbox",{fontCharacter:"\\eb09"}),t.issueClosed=new t("issue-closed",{fontCharacter:"\\eba4"}),t.issueReopened=new t("issue-reopened",{fontCharacter:"\\eb0b"}),t.issues=new t("issues",{fontCharacter:"\\eb0c"}),t.italic=new t("italic",{fontCharacter:"\\eb0d"}),t.jersey=new t("jersey",{fontCharacter:"\\eb0e"}),t.json=new t("json",{fontCharacter:"\\eb0f"}),t.kebabVertical=new t("kebab-vertical",{fontCharacter:"\\eb10"}),t.key=new t("key",{fontCharacter:"\\eb11"}),t.law=new t("law",{fontCharacter:"\\eb12"}),t.lightbulbAutofix=new t("lightbulb-autofix",{fontCharacter:"\\eb13"}),t.linkExternal=new t("link-external",{fontCharacter:"\\eb14"}),t.link=new t("link",{fontCharacter:"\\eb15"}),t.listOrdered=new t("list-ordered",{fontCharacter:"\\eb16"}),t.listUnordered=new t("list-unordered",{fontCharacter:"\\eb17"}),t.liveShare=new t("live-share",{fontCharacter:"\\eb18"}),t.loading=new t("loading",{fontCharacter:"\\eb19"}),t.location=new t("location",{fontCharacter:"\\eb1a"}),t.mailRead=new t("mail-read",{fontCharacter:"\\eb1b"}),t.mail=new t("mail",{fontCharacter:"\\eb1c"}),t.markdown=new t("markdown",{fontCharacter:"\\eb1d"}),t.megaphone=new t("megaphone",{fontCharacter:"\\eb1e"}),t.mention=new t("mention",{fontCharacter:"\\eb1f"}),t.milestone=new t("milestone",{fontCharacter:"\\eb20"}),t.mortarBoard=new t("mortar-board",{fontCharacter:"\\eb21"}),t.move=new t("move",{fontCharacter:"\\eb22"}),t.multipleWindows=new t("multiple-windows",{fontCharacter:"\\eb23"}),t.mute=new t("mute",{fontCharacter:"\\eb24"}),t.noNewline=new t("no-newline",{fontCharacter:"\\eb25"}),t.note=new t("note",{fontCharacter:"\\eb26"}),t.octoface=new t("octoface",{fontCharacter:"\\eb27"}),t.openPreview=new t("open-preview",{fontCharacter:"\\eb28"}),t.package_=new t("package",{fontCharacter:"\\eb29"}),t.paintcan=new t("paintcan",{fontCharacter:"\\eb2a"}),t.pin=new t("pin",{fontCharacter:"\\eb2b"}),t.play=new t("play",{fontCharacter:"\\eb2c"}),t.run=new t("run",{fontCharacter:"\\eb2c"}),t.plug=new t("plug",{fontCharacter:"\\eb2d"}),t.preserveCase=new t("preserve-case",{fontCharacter:"\\eb2e"}),t.preview=new t("preview",{fontCharacter:"\\eb2f"}),t.project=new t("project",{fontCharacter:"\\eb30"}),t.pulse=new t("pulse",{fontCharacter:"\\eb31"}),t.question=new t("question",{fontCharacter:"\\eb32"}),t.quote=new t("quote",{fontCharacter:"\\eb33"}),t.radioTower=new t("radio-tower",{fontCharacter:"\\eb34"}),t.reactions=new t("reactions",{fontCharacter:"\\eb35"}),t.references=new t("references",{fontCharacter:"\\eb36"}),t.refresh=new t("refresh",{fontCharacter:"\\eb37"}),t.regex=new t("regex",{fontCharacter:"\\eb38"}),t.remoteExplorer=new t("remote-explorer",{fontCharacter:"\\eb39"}),t.remote=new t("remote",{fontCharacter:"\\eb3a"}),t.remove=new t("remove",{fontCharacter:"\\eb3b"}),t.replaceAll=new t("replace-all",{fontCharacter:"\\eb3c"}),t.replace=new t("replace",{fontCharacter:"\\eb3d"}),t.repoClone=new t("repo-clone",{fontCharacter:"\\eb3e"}),t.repoForcePush=new t("repo-force-push",{fontCharacter:"\\eb3f"}),t.repoPull=new t("repo-pull",{fontCharacter:"\\eb40"}),t.repoPush=new t("repo-push",{fontCharacter:"\\eb41"}),t.report=new t("report",{fontCharacter:"\\eb42"}),t.requestChanges=new t("request-changes",{fontCharacter:"\\eb43"}),t.rocket=new t("rocket",{fontCharacter:"\\eb44"}),t.rootFolderOpened=new t("root-folder-opened",{fontCharacter:"\\eb45"}),t.rootFolder=new t("root-folder",{fontCharacter:"\\eb46"}),t.rss=new t("rss",{fontCharacter:"\\eb47"}),t.ruby=new t("ruby",{fontCharacter:"\\eb48"}),t.saveAll=new t("save-all",{fontCharacter:"\\eb49"}),t.saveAs=new t("save-as",{fontCharacter:"\\eb4a"}),t.save=new t("save",{fontCharacter:"\\eb4b"}),t.screenFull=new t("screen-full",{fontCharacter:"\\eb4c"}),t.screenNormal=new t("screen-normal",{fontCharacter:"\\eb4d"}),t.searchStop=new t("search-stop",{fontCharacter:"\\eb4e"}),t.server=new t("server",{fontCharacter:"\\eb50"}),t.settingsGear=new t("settings-gear",{fontCharacter:"\\eb51"}),t.settings=new t("settings",{fontCharacter:"\\eb52"}),t.shield=new t("shield",{fontCharacter:"\\eb53"}),t.smiley=new t("smiley",{fontCharacter:"\\eb54"}),t.sortPrecedence=new t("sort-precedence",{fontCharacter:"\\eb55"}),t.splitHorizontal=new t("split-horizontal",{fontCharacter:"\\eb56"}),t.splitVertical=new t("split-vertical",{fontCharacter:"\\eb57"}),t.squirrel=new t("squirrel",{fontCharacter:"\\eb58"}),t.starFull=new t("star-full",{fontCharacter:"\\eb59"}),t.starHalf=new t("star-half",{fontCharacter:"\\eb5a"}),t.symbolClass=new t("symbol-class",{fontCharacter:"\\eb5b"}),t.symbolColor=new t("symbol-color",{fontCharacter:"\\eb5c"}),t.symbolConstant=new t("symbol-constant",{fontCharacter:"\\eb5d"}),t.symbolEnumMember=new t("symbol-enum-member",{fontCharacter:"\\eb5e"}),t.symbolField=new t("symbol-field",{fontCharacter:"\\eb5f"}),t.symbolFile=new t("symbol-file",{fontCharacter:"\\eb60"}),t.symbolInterface=new t("symbol-interface",{fontCharacter:"\\eb61"}),t.symbolKeyword=new t("symbol-keyword",{fontCharacter:"\\eb62"}),t.symbolMisc=new t("symbol-misc",{fontCharacter:"\\eb63"}),t.symbolOperator=new t("symbol-operator",{fontCharacter:"\\eb64"}),t.symbolProperty=new t("symbol-property",{fontCharacter:"\\eb65"}),t.wrench=new t("wrench",{fontCharacter:"\\eb65"}),t.wrenchSubaction=new t("wrench-subaction",{fontCharacter:"\\eb65"}),t.symbolSnippet=new t("symbol-snippet",{fontCharacter:"\\eb66"}),t.tasklist=new t("tasklist",{fontCharacter:"\\eb67"}),t.telescope=new t("telescope",{fontCharacter:"\\eb68"}),t.textSize=new t("text-size",{fontCharacter:"\\eb69"}),t.threeBars=new t("three-bars",{fontCharacter:"\\eb6a"}),t.thumbsdown=new t("thumbsdown",{fontCharacter:"\\eb6b"}),t.thumbsup=new t("thumbsup",{fontCharacter:"\\eb6c"}),t.tools=new t("tools",{fontCharacter:"\\eb6d"}),t.triangleDown=new t("triangle-down",{fontCharacter:"\\eb6e"}),t.triangleLeft=new t("triangle-left",{fontCharacter:"\\eb6f"}),t.triangleRight=new t("triangle-right",{fontCharacter:"\\eb70"}),t.triangleUp=new t("triangle-up",{fontCharacter:"\\eb71"}),t.twitter=new t("twitter",{fontCharacter:"\\eb72"}),t.unfold=new t("unfold",{fontCharacter:"\\eb73"}),t.unlock=new t("unlock",{fontCharacter:"\\eb74"}),t.unmute=new t("unmute",{fontCharacter:"\\eb75"}),t.unverified=new t("unverified",{fontCharacter:"\\eb76"}),t.verified=new t("verified",{fontCharacter:"\\eb77"}),t.versions=new t("versions",{fontCharacter:"\\eb78"}),t.vmActive=new t("vm-active",{fontCharacter:"\\eb79"}),t.vmOutline=new t("vm-outline",{fontCharacter:"\\eb7a"}),t.vmRunning=new t("vm-running",{fontCharacter:"\\eb7b"}),t.watch=new t("watch",{fontCharacter:"\\eb7c"}),t.whitespace=new t("whitespace",{fontCharacter:"\\eb7d"}),t.wholeWord=new t("whole-word",{fontCharacter:"\\eb7e"}),t.window=new t("window",{fontCharacter:"\\eb7f"}),t.wordWrap=new t("word-wrap",{fontCharacter:"\\eb80"}),t.zoomIn=new t("zoom-in",{fontCharacter:"\\eb81"}),t.zoomOut=new t("zoom-out",{fontCharacter:"\\eb82"}),t.listFilter=new t("list-filter",{fontCharacter:"\\eb83"}),t.listFlat=new t("list-flat",{fontCharacter:"\\eb84"}),t.listSelection=new t("list-selection",{fontCharacter:"\\eb85"}),t.selection=new t("selection",{fontCharacter:"\\eb85"}),t.listTree=new t("list-tree",{fontCharacter:"\\eb86"}),t.debugBreakpointFunctionUnverified=new t("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),t.debugBreakpointFunction=new t("debug-breakpoint-function",{fontCharacter:"\\eb88"}),t.debugBreakpointFunctionDisabled=new t("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),t.debugStackframeActive=new t("debug-stackframe-active",{fontCharacter:"\\eb89"}),t.debugStackframeDot=new t("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),t.debugStackframe=new t("debug-stackframe",{fontCharacter:"\\eb8b"}),t.debugStackframeFocused=new t("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),t.debugBreakpointUnsupported=new t("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),t.symbolString=new t("symbol-string",{fontCharacter:"\\eb8d"}),t.debugReverseContinue=new t("debug-reverse-continue",{fontCharacter:"\\eb8e"}),t.debugStepBack=new t("debug-step-back",{fontCharacter:"\\eb8f"}),t.debugRestartFrame=new t("debug-restart-frame",{fontCharacter:"\\eb90"}),t.callIncoming=new t("call-incoming",{fontCharacter:"\\eb92"}),t.callOutgoing=new t("call-outgoing",{fontCharacter:"\\eb93"}),t.menu=new t("menu",{fontCharacter:"\\eb94"}),t.expandAll=new t("expand-all",{fontCharacter:"\\eb95"}),t.feedback=new t("feedback",{fontCharacter:"\\eb96"}),t.groupByRefType=new t("group-by-ref-type",{fontCharacter:"\\eb97"}),t.ungroupByRefType=new t("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),t.account=new t("account",{fontCharacter:"\\eb99"}),t.bellDot=new t("bell-dot",{fontCharacter:"\\eb9a"}),t.debugConsole=new t("debug-console",{fontCharacter:"\\eb9b"}),t.library=new t("library",{fontCharacter:"\\eb9c"}),t.output=new t("output",{fontCharacter:"\\eb9d"}),t.runAll=new t("run-all",{fontCharacter:"\\eb9e"}),t.syncIgnored=new t("sync-ignored",{fontCharacter:"\\eb9f"}),t.pinned=new t("pinned",{fontCharacter:"\\eba0"}),t.githubInverted=new t("github-inverted",{fontCharacter:"\\eba1"}),t.debugAlt=new t("debug-alt",{fontCharacter:"\\eb91"}),t.serverProcess=new t("server-process",{fontCharacter:"\\eba2"}),t.serverEnvironment=new t("server-environment",{fontCharacter:"\\eba3"}),t.pass=new t("pass",{fontCharacter:"\\eba4"}),t.stopCircle=new t("stop-circle",{fontCharacter:"\\eba5"}),t.playCircle=new t("play-circle",{fontCharacter:"\\eba6"}),t.record=new t("record",{fontCharacter:"\\eba7"}),t.debugAltSmall=new t("debug-alt-small",{fontCharacter:"\\eba8"}),t.vmConnect=new t("vm-connect",{fontCharacter:"\\eba9"}),t.cloud=new t("cloud",{fontCharacter:"\\ebaa"}),t.merge=new t("merge",{fontCharacter:"\\ebab"}),t.exportIcon=new t("export",{fontCharacter:"\\ebac"}),t.graphLeft=new t("graph-left",{fontCharacter:"\\ebad"}),t.magnet=new t("magnet",{fontCharacter:"\\ebae"}),t.notebook=new t("notebook",{fontCharacter:"\\ebaf"}),t.redo=new t("redo",{fontCharacter:"\\ebb0"}),t.checkAll=new t("check-all",{fontCharacter:"\\ebb1"}),t.pinnedDirty=new t("pinned-dirty",{fontCharacter:"\\ebb2"}),t.passFilled=new t("pass-filled",{fontCharacter:"\\ebb3"}),t.circleLargeFilled=new t("circle-large-filled",{fontCharacter:"\\ebb4"}),t.circleLargeOutline=new t("circle-large-outline",{fontCharacter:"\\ebb5"}),t.combine=new t("combine",{fontCharacter:"\\ebb6"}),t.gather=new t("gather",{fontCharacter:"\\ebb6"}),t.table=new t("table",{fontCharacter:"\\ebb7"}),t.variableGroup=new t("variable-group",{fontCharacter:"\\ebb8"}),t.typeHierarchy=new t("type-hierarchy",{fontCharacter:"\\ebb9"}),t.typeHierarchySub=new t("type-hierarchy-sub",{fontCharacter:"\\ebba"}),t.typeHierarchySuper=new t("type-hierarchy-super",{fontCharacter:"\\ebbb"}),t.gitPullRequestCreate=new t("git-pull-request-create",{fontCharacter:"\\ebbc"}),t.runAbove=new t("run-above",{fontCharacter:"\\ebbd"}),t.runBelow=new t("run-below",{fontCharacter:"\\ebbe"}),t.notebookTemplate=new t("notebook-template",{fontCharacter:"\\ebbf"}),t.debugRerun=new t("debug-rerun",{fontCharacter:"\\ebc0"}),t.workspaceTrusted=new t("workspace-trusted",{fontCharacter:"\\ebc1"}),t.workspaceUntrusted=new t("workspace-untrusted",{fontCharacter:"\\ebc2"}),t.workspaceUnspecified=new t("workspace-unspecified",{fontCharacter:"\\ebc3"}),t.terminalCmd=new t("terminal-cmd",{fontCharacter:"\\ebc4"}),t.terminalDebian=new t("terminal-debian",{fontCharacter:"\\ebc5"}),t.terminalLinux=new t("terminal-linux",{fontCharacter:"\\ebc6"}),t.terminalPowershell=new t("terminal-powershell",{fontCharacter:"\\ebc7"}),t.terminalTmux=new t("terminal-tmux",{fontCharacter:"\\ebc8"}),t.terminalUbuntu=new t("terminal-ubuntu",{fontCharacter:"\\ebc9"}),t.terminalBash=new t("terminal-bash",{fontCharacter:"\\ebca"}),t.arrowSwap=new t("arrow-swap",{fontCharacter:"\\ebcb"}),t.copy=new t("copy",{fontCharacter:"\\ebcc"}),t.personAdd=new t("person-add",{fontCharacter:"\\ebcd"}),t.filterFilled=new t("filter-filled",{fontCharacter:"\\ebce"}),t.wand=new t("wand",{fontCharacter:"\\ebcf"}),t.debugLineByLine=new t("debug-line-by-line",{fontCharacter:"\\ebd0"}),t.inspect=new t("inspect",{fontCharacter:"\\ebd1"}),t.layers=new t("layers",{fontCharacter:"\\ebd2"}),t.layersDot=new t("layers-dot",{fontCharacter:"\\ebd3"}),t.layersActive=new t("layers-active",{fontCharacter:"\\ebd4"}),t.compass=new t("compass",{fontCharacter:"\\ebd5"}),t.compassDot=new t("compass-dot",{fontCharacter:"\\ebd6"}),t.compassActive=new t("compass-active",{fontCharacter:"\\ebd7"}),t.azure=new t("azure",{fontCharacter:"\\ebd8"}),t.issueDraft=new t("issue-draft",{fontCharacter:"\\ebd9"}),t.gitPullRequestClosed=new t("git-pull-request-closed",{fontCharacter:"\\ebda"}),t.gitPullRequestDraft=new t("git-pull-request-draft",{fontCharacter:"\\ebdb"}),t.debugAll=new t("debug-all",{fontCharacter:"\\ebdc"}),t.debugCoverage=new t("debug-coverage",{fontCharacter:"\\ebdd"}),t.runErrors=new t("run-errors",{fontCharacter:"\\ebde"}),t.folderLibrary=new t("folder-library",{fontCharacter:"\\ebdf"}),t.debugContinueSmall=new t("debug-continue-small",{fontCharacter:"\\ebe0"}),t.beakerStop=new t("beaker-stop",{fontCharacter:"\\ebe1"}),t.graphLine=new t("graph-line",{fontCharacter:"\\ebe2"}),t.graphScatter=new t("graph-scatter",{fontCharacter:"\\ebe3"}),t.pieChart=new t("pie-chart",{fontCharacter:"\\ebe4"}),t.bracket=new t("bracket",t.json.definition),t.bracketDot=new t("bracket-dot",{fontCharacter:"\\ebe5"}),t.bracketError=new t("bracket-error",{fontCharacter:"\\ebe6"}),t.lockSmall=new t("lock-small",{fontCharacter:"\\ebe7"}),t.azureDevops=new t("azure-devops",{fontCharacter:"\\ebe8"}),t.verifiedFilled=new t("verified-filled",{fontCharacter:"\\ebe9"})}(l||(l={}))},79881:function(t,e,n){"use strict";n.d(e,{B8:function(){return d},Cp:function(){return s},F0:function(){return u},L6:function(){return c},VV:function(){return l},b1:function(){return h},dL:function(){return r},ri:function(){return a}});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout((()=>{if(t.stack)throw new Error(t.message+"\n\n"+t.stack);throw t}),0)}}emit(t){this.listeners.forEach((e=>{e(t)}))}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}};function r(t){l(t)||i.onUnexpectedError(t)}function s(t){l(t)||i.onUnexpectedExternalError(t)}function a(t){if(t instanceof Error){let{name:e,message:n}=t;return{$isError:!0,name:e,message:n,stack:t.stacktrace||t.stack}}return t}const o="Canceled";function l(t){return t instanceof Error&&t.name===o&&t.message===o}function u(){const t=new Error(o);return t.name=t.message,t}function h(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function c(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class d extends Error{constructor(t){super("NotSupported"),t&&(this.message=t)}}},4348:function(t,e,n){"use strict";n.d(e,{D0:function(){return c},E7:function(){return d},K3:function(){return h},Q5:function(){return u},ZD:function(){return f},ju:function(){return i}});var i,r=n(79881),s=n(69323),a=n(34502),o=n(95830);!function(t){function e(t){return(e,n=null,i)=>{let r,s=!1;return r=t((t=>{if(!s)return r?r.dispose():s=!0,e.call(n,t)}),null,i),s&&r.dispose(),r}}function n(t,e){return o(((n,i=null,r)=>t((t=>n.call(i,e(t))),null,r)))}function i(t,e){return o(((n,i=null,r)=>t((t=>{e(t),n.call(i,t)}),null,r)))}function r(t,e){return o(((n,i=null,r)=>t((t=>e(t)&&n.call(i,t)),null,r)))}function a(t,e,i){let r=i;return n(t,(t=>(r=e(r,t),r)))}function o(t){let e;const n=new u({onFirstListenerAdd(){e=t(n.fire,n)},onLastListenerRemove(){e.dispose()}});return n.event}function l(t,e,n=100,i=!1,r){let s,a,o,l=0;const h=new u({leakWarningThreshold:r,onFirstListenerAdd(){s=t((t=>{l++,a=e(a,t),i&&!o&&(h.fire(a),a=void 0),clearTimeout(o),o=setTimeout((()=>{const t=a;a=void 0,o=void 0,(!i||l>1)&&h.fire(t),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return h.event}function h(t,e=((t,e)=>t===e)){let n,i=!0;return r(t,(t=>{const r=i||!e(t,n);return i=!1,n=t,r}))}t.None=()=>s.JT.None,t.once=e,t.map=n,t.forEach=i,t.filter=r,t.signal=function(t){return t},t.any=function(...t){return(e,n=null,i)=>(0,s.F8)(...t.map((t=>t((t=>e.call(n,t)),null,i))))},t.reduce=a,t.debounce=l,t.latch=h,t.split=function(e,n){return[t.filter(e,n),t.filter(e,(t=>!n(t)))]},t.buffer=function(t,e=!1,n=[]){let i=n.slice(),r=t((t=>{i?i.push(t):a.fire(t)}));const s=()=>{i&&i.forEach((t=>a.fire(t))),i=null},a=new u({onFirstListenerAdd(){r||(r=t((t=>a.fire(t))))},onFirstListenerDidAdd(){i&&(e?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}});return a.event};class c{constructor(t){this.event=t}map(t){return new c(n(this.event,t))}forEach(t){return new c(i(this.event,t))}filter(t){return new c(r(this.event,t))}reduce(t,e){return new c(a(this.event,t,e))}latch(){return new c(h(this.event))}debounce(t,e=100,n=!1,i){return new c(l(this.event,t,e,n,i))}on(t,e,n){return this.event(t,e,n)}once(t,n,i){return e(this.event)(t,n,i)}}t.chain=function(t){return new c(t)},t.fromNodeEventEmitter=function(t,e,n=(t=>t)){const i=(...t)=>r.fire(n(...t)),r=new u({onFirstListenerAdd:()=>t.on(e,i),onLastListenerRemove:()=>t.removeListener(e,i)});return r.event},t.fromDOMEventEmitter=function(t,e,n=(t=>t)){const i=(...t)=>r.fire(n(...t)),r=new u({onFirstListenerAdd:()=>t.addEventListener(e,i),onLastListenerRemove:()=>t.removeEventListener(e,i)});return r.event},t.toPromise=function(t){return new Promise((n=>e(t)(n)))}}(i||(i={}));class l{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${l._idPool++}`}start(t){this._stopWatch=new o.G(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class u{constructor(t){var e;this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=(null===(e=this._options)||void 0===e?void 0:e._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(t,e,n)=>{var i;this._listeners||(this._listeners=new a.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(e?[t,e]:t);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,e);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),u=(0,s.OF)((()=>{if(l&&l(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof s.SL?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(t){var e,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a.S);for(let e of this._listeners)this._deliveryQueue.push([e,t]);for(null===(e=this._perfMon)||void 0===e||e.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[t,e]=this._deliveryQueue.shift();try{"function"==typeof t?t.call(void 0,e):t[0].call(t[1],e)}catch(t){(0,r.dL)(t)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var t,e,n,i,r;this._disposed||(this._disposed=!0,null===(t=this._listeners)||void 0===t||t.clear(),null===(e=this._deliveryQueue)||void 0===e||e.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class h extends u{constructor(t){super(t),this._isPaused=0,this._eventQueue=new a.S,this._mergeFn=null==t?void 0:t.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const t=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):super.fire(t))}}class c extends h{constructor(t){var e;super(t),this._delay=null!==(e=t.delay)&&void 0!==e?e:100}fire(t){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(t)}}class d{constructor(){this.buffers=[]}wrapEvent(t){return(e,n,i)=>t((t=>{const i=this.buffers[this.buffers.length-1];i?i.push((()=>e.call(n,t))):e.call(n,t)}),void 0,i)}bufferEvents(t){const e=[];this.buffers.push(e);const n=t();return this.buffers.pop(),e.forEach((t=>t())),n}}class f{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=s.JT.None,this.emitter=new u({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(t){this.inputEvent=t,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=t(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(t,e,n){"use strict";function i(t){const e=this;let n,i=!1;return function(){return i||(i=!0,n=t.apply(e,arguments)),n}}n.d(e,{I:function(){return i}})},88226:function(t,e,n){"use strict";var i;n.d(e,{$:function(){return i}}),function(t){t.is=function(t){return t&&"object"==typeof t&&"function"==typeof t[Symbol.iterator]};const e=Object.freeze([]);t.empty=function(){return e},t.single=function*(t){yield t},t.from=function(t){return t||e},t.isEmpty=function(t){return!t||!0===t[Symbol.iterator]().next().done},t.first=function(t){return t[Symbol.iterator]().next().value},t.some=function(t,e){for(const n of t)if(e(n))return!0;return!1},t.find=function(t,e){for(const n of t)if(e(n))return n},t.filter=function*(t,e){for(const n of t)e(n)&&(yield n)},t.map=function*(t,e){let n=0;for(const i of t)yield e(i,n++)},t.concat=function*(...t){for(const e of t)for(const t of e)yield t},t.concatNested=function*(t){for(const e of t)for(const t of e)yield t},t.reduce=function(t,e,n){let i=n;for(const n of t)i=e(i,n);return i},t.slice=function*(t,e,n=t.length){for(e<0&&(e+=t.length),n<0?n+=t.length:n>t.length&&(n=t.length);et===e)){const i=t[Symbol.iterator](),r=e[Symbol.iterator]();for(;;){const t=i.next(),e=r.next();if(t.done!==e.done)return!1;if(t.done)return!0;if(!n(t.value,e.value))return!1}}}(i||(i={}))},69323:function(t,e,n){"use strict";n.d(e,{B9:function(){return d},F8:function(){return f},JT:function(){return m},Jz:function(){return y},OF:function(){return p},SL:function(){return g},Wf:function(){return c},XK:function(){return v},dk:function(){return u}});var i=n(17845),r=n(88226);let s=null;function a(t){return null==s||s.trackDisposable(t),t}function o(t){null==s||s.markAsDisposed(t)}function l(t,e){null==s||s.setParent(t,e)}function u(t){return null==s||s.markAsSingleton(t),t}class h extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`),this.errors=t}}function c(t){return"function"==typeof t.dispose&&0===t.dispose.length}function d(t){if(r.$.is(t)){let e=[];for(const n of t)if(n)try{n.dispose()}catch(t){e.push(t)}if(1===e.length)throw e[0];if(e.length>1)throw new h(e);return Array.isArray(t)?[]:t}if(t)return t.dispose(),t}function f(...t){const e=p((()=>d(t)));return function(t,e){if(s)for(const n of t)s.setParent(n,e)}(t,e),e}function p(t){const e=a({dispose:(0,i.I)((()=>{o(e),t()}))});return e}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(o(this),this._isDisposed=!0,this.clear())}clear(){try{d(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 l(t,this),this._isDisposed?g.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}}g.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new g,a(this),l(this._store,this)}dispose(){o(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}m.None=Object.freeze({dispose(){}});class v{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var e;this._isDisposed||t===this._value||(null===(e=this._value)||void 0===e||e.dispose(),t&&l(t,this),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,o(this),null===(t=this._value)||void 0===t||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&l(t,null),t}}class y{constructor(t){this.object=t}dispose(){}}},34502:function(t,e,n){"use strict";n.d(e,{S:function(){return r}});class i{constructor(t){this.element=t,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let t=this._first;for(;t!==i.Undefined;){const e=t.next;t.prev=i.Undefined,t.next=i.Undefined,t=e}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,e){const n=new i(t);if(this._first===i.Undefined)this._first=n,this._last=n;else if(e){const t=this._last;this._last=n,n.prev=t,t.next=n}else{const t=this._first;this._first=n,n.next=t,t.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==i.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==i.Undefined&&t.next!==i.Undefined){const e=t.prev;e.next=t.next,t.next.prev=e}else t.prev===i.Undefined&&t.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):t.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):t.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==i.Undefined;)yield t.element,t=t.next}}},23345:function(t,e,n){"use strict";n.d(e,{$L:function(){return T},ED:function(){return w},IJ:function(){return x},OS:function(){return I},WE:function(){return D},dz:function(){return E},gn:function(){return C},li:function(){return v},r:function(){return B},tY:function(){return k},xS:function(){return S}});var i,r=n(97671);const s="en";let a,o,l=!1,u=!1,h=!1,c=!1,d=!1,f=!1,p=!1,g=null,m=null;const v="object"==typeof self?self:"object"==typeof n.g?n.g:{};let y;void 0!==v.vscode&&void 0!==v.vscode.process?y=v.vscode.process:void 0!==r&&(y=r);const A="string"==typeof(null===(i=null==y?void 0:y.versions)||void 0===i?void 0:i.electron)&&"renderer"===y.type;if("object"!=typeof navigator||A)if("object"==typeof y){l="win32"===y.platform,u="darwin"===y.platform,h="linux"===y.platform,c=h&&!!y.env.SNAP&&!!y.env.SNAP_REVISION,a=s,g=s;const t=y.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];a=e.locale,g=n||s,m=e._translationsConfigFile}catch(t){}d=!0}else console.error("Unable to resolve platform.");else o=navigator.userAgent,l=o.indexOf("Windows")>=0,u=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,f=!0,a=navigator.language,g=a;let b=0;u?b=1:l?b=3:h&&(b=2);const w=l,E=u,x=h,k=d,T=f,C=p,D=o,S=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"==typeof v.postMessage&&!v.importScripts){let t=[];v.addEventListener("message",(e=>{if(e.data&&e.data.vscodeSetImmediateId)for(let n=0,i=t.length;n{const i=++e;t.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const t=Promise.resolve();return e=>t.then(e)}(),I=u||p?2:l?1:3;let R=!0,L=!1;function B(){if(!L){L=!0;const t=new Uint8Array(2);t[0]=1,t[1]=2;const e=new Uint16Array(t.buffer);R=513===e[0]}return R}},95830:function(t,e,n){"use strict";n.d(e,{G:function(){return s}});var i=n(23345);const r=i.li.performance&&"function"==typeof i.li.performance.now;class s{constructor(t){this._highResolution=r&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new s(t)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function(t,e,n){"use strict";function i(t){return!t||"string"!=typeof t||0===t.trim().length}n.d(e,{$i:function(){return G},C8:function(){return Y},GF:function(){return f},HO:function(){return N},IO:function(){return p},K7:function(){return V},Kw:function(){return W},LC:function(){return v},Mh:function(){return S},P1:function(){return I},PJ:function(){return Z},Qe:function(){return H},R1:function(){return d},RP:function(){return z},S6:function(){return J},TT:function(){return w},Ut:function(){return _},V8:function(){return y},WU:function(){return s},YK:function(){return L},YU:function(){return a},ZG:function(){return R},ZH:function(){return P},ab:function(){return Q},c1:function(){return K},df:function(){return T},ec:function(){return o},fi:function(){return $},fy:function(){return l},j3:function(){return u},j_:function(){return x},m5:function(){return i},mK:function(){return k},mr:function(){return g},oH:function(){return et},oL:function(){return h},ok:function(){return D},ow:function(){return A},qq:function(){return C},qu:function(){return b},rL:function(){return B},uS:function(){return X},un:function(){return c},uq:function(){return m},vH:function(){return M},xe:function(){return q},zY:function(){return E}});const r=/{(\d+)}/g;function s(t,...e){return 0===e.length?t:t.replace(r,(function(t,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=e.length?t:e[i]}))}function a(t){return t.replace(/[<>&]/g,(function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";default:return t}}))}function o(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(t,e=" "){return h(u(t,e),e)}function u(t,e){if(!t||!e)return t;const n=e.length;if(0===n||0===t.length)return t;let i=0;for(;t.indexOf(e,i)===i;)i+=n;return t.substring(i)}function h(t,e){if(!t||!e)return t;const n=e.length,i=t.length;if(0===n||0===i)return t;let r=i,s=-1;for(;s=t.lastIndexOf(e,r-1),-1!==s&&s+n===r;){if(0===s)return"";r=s}return t.substring(0,r)}function c(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(t){return t.replace(/\*/g,"")}function f(t,e,n={}){if(!t)throw new Error("Cannot create regex from empty string");e||(t=o(t)),n.wholeWord&&(/\B/.test(t.charAt(0))||(t="\\b"+t),/\B/.test(t.charAt(t.length-1))||(t+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(t,i)}function p(t){if("^"===t.source||"^$"===t.source||"$"===t.source||"^\\s*$"===t.source)return!1;return!(!t.exec("")||0!==t.lastIndex)}function g(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")}function m(t){return t.split(/\r\n|\r|\n/)}function v(t){for(let e=0,n=t.length;e=0;n--){const e=t.charCodeAt(n);if(32!==e&&9!==e)return n}return-1}function b(t,e){return te?1:0}function w(t,e,n=0,i=t.length,r=0,s=e.length){for(;ns)return 1}const a=i-n,o=s-r;return ao?1:0}function E(t,e){return x(t,e,0,t.length,0,e.length)}function x(t,e,n=0,i=t.length,r=0,s=e.length){for(;n=128||o>=128)return w(t.toLowerCase(),e.toLowerCase(),n,i,r,s);k(a)&&(a-=32),k(o)&&(o-=32);const l=a-o;if(0!==l)return l}const a=i-n,o=s-r;return ao?1:0}function k(t){return t>=97&&t<=122}function T(t){return t>=65&&t<=90}function C(t,e){return t.length===e.length&&0===x(t,e)}function D(t,e){const n=e.length;return!(e.length>t.length)&&0===x(t,e,0,n)}function S(t,e){let n,i=Math.min(t.length,e.length);for(n=0;n1){const i=t.charCodeAt(e-2);if(R(i))return B(i,n)}return n}function M(t,e){const n=tt.getInstance(),i=e,r=t.length,s=P(t,r,e);e+=s>=65536?2:1;let a=n.getGraphemeBreakType(s);for(;e=65536?2:1,a=s}return e-i}function N(t,e){const n=tt.getInstance(),i=e,r=O(t,e);e-=r>=65536?2:1;let s=n.getGraphemeBreakType(r);for(;e>0;){const i=O(t,e),r=n.getGraphemeBreakType(i);if($(r,s))break;e-=i>=65536?2:1,s=r}return i-e}const F=/(?:[\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 _(t){return F.test(t)}const U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function z(t){return U.test(t)}const j=/^[\t\n\r\x20-\x7E]*$/;function G(t){return j.test(t)}const H=/[\u2028\u2029]/;function Q(t){return H.test(t)}function q(t){for(let e=0,n=t.length;e=11904&&t<=55215||t>=63744&&t<=64255||t>=65281&&t<=65374}function Y(t){return t>=127462&&t<=127487||8986===t||8987===t||9200===t||9203===t||t>=9728&&t<=10175||11088===t||11093===t||t>=127744&&t<=128591||t>=128640&&t<=128764||t>=128992&&t<=129003||t>=129280&&t<=129535||t>=129648&&t<=129750}const K=String.fromCharCode(65279);function X(t){return!!(t&&t.length>0&&65279===t.charCodeAt(0))}function W(t,e=!1){return!!t&&(e&&(t=t.replace(/\\./g,"")),t.toLowerCase()!==t)}function Z(t){return(t%=52)<26?String.fromCharCode(97+t):String.fromCharCode(65+t-26)}function J(t){return tt.getInstance().getGraphemeBreakType(t)}function $(t,e){return 0===t?5!==e&&7!==e:(2!==t||3!==e)&&(4===t||2===t||3===t||(4===e||2===e||3===e||(8!==t||8!==e&&9!==e&&11!==e&&12!==e)&&((11!==t&&9!==t||9!==e&&10!==e)&&((12!==t&&10!==t||10!==e)&&(5!==e&&13!==e&&(7!==e&&(1!==t&&((13!==t||14!==e)&&(6!==t||6!==e)))))))))}class tt{constructor(){this._data=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]")}static getInstance(){return tt._INSTANCE||(tt._INSTANCE=new tt),tt._INSTANCE}getGraphemeBreakType(t){if(t<32)return 10===t?3:13===t?2:4;if(t<127)return 0;const e=this._data,n=e.length/3;let i=1;for(;i<=n;)if(te[3*i+1]))return e[3*i+2];i=2*i+1}return 0}}function et(t,e){if(0===t)return 0;const n=function(t,e){let n=O(e,t);t-=nt(n);for(;it(n)||65039===n||8419===n;){if(0===t)return;n=O(e,t),t-=nt(n)}if(!Y(n))return;if(t>=0){const n=O(e,t);8205===n&&(t-=nt(n))}return t}(t,e);if(void 0!==n)return n;return t-=nt(O(e,t))}function nt(t){return t>=65536?2:1}function it(t){return 127995<=t&&t<=127999}tt._INSTANCE=null},72999:function(t,e,n){"use strict";function i(t){return Array.isArray(t)}function r(t){return"string"==typeof t}function s(t){return!("object"!=typeof t||null===t||Array.isArray(t)||t instanceof RegExp||t instanceof Date)}function a(t){return"number"==typeof t&&!isNaN(t)}function o(t){return!0===t||!1===t}function l(t){return void 0===t}function u(t){return!h(t)}function h(t){return l(t)||null===t}function c(t,e){if(!t)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function d(t){if(h(t))throw new Error("Assertion Failed: argument is undefined or null");return t}function f(t){return"function"==typeof t}function p(t,e){const n=Math.min(t.length,e.length);for(let i=0;ifunction(){const n=Array.prototype.slice.call(arguments,0);return e(t,n)};let i={};for(const e of t)i[e]=n(e);return i}function y(t){return null===t?void 0:t}function A(t,e="Unreachable"){throw new Error(e)}n.d(e,{$E:function(){return m},$K:function(){return u},D8:function(){return p},HD:function(){return r},IU:function(){return v},Jp:function(){return h},Kn:function(){return s},cW:function(){return d},f6:function(){return y},hj:function(){return a},jn:function(){return o},kJ:function(){return i},mf:function(){return f},o8:function(){return l},p_:function(){return c},vE:function(){return A}})},13268:function(t,e,n){"use strict";function i(t,e,...n){return function(t,e){let n;return n=0===e.length?t:t.replace(/\{(\d+)\}/g,(function(t,n){const i=n[0];return void 0!==e[i]?e[i]:t})),n}(e,n)}n.d(e,{N:function(){return i}})},96236:function(t,e,n){"use strict";n.d(e,{BH:function(){return y},NZ:function(){return A},U8:function(){return b},co:function(){return v},eH:function(){return m},vr:function(){return g}});var i=n(75918),r=n(52615),s=n(4348),a=n(88226),o=n(69323),l=n(34502),u=n(35884),h=n(90689),c=n(16925),d=n(49055),f=function(t,e,n,i){var r,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(s<3?r(a):s>3?r(e,n,a):r(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},p=function(t,e){return function(n,i){e(n,i,t)}};function g(t){return void 0!==t.command}class m{constructor(t){this.id=m._idPool++,this._debugName=t}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const v=(0,c.yh)("menuService"),y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:t=>t===m.CommandPalette}}addCommand(t){return this.addCommands(a.$.single(t))}addCommands(t){for(const e of t)this._commands.set(e.id,e);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,o.OF)((()=>{let e=!1;for(const n of t)e=this._commands.delete(n.id)||e;e&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)}))}getCommand(t){return this._commands.get(t)}getCommands(){const t=new Map;return this._commands.forEach(((e,n)=>t.set(n,e))),t}appendMenuItem(t,e){return this.appendMenuItems(a.$.single({id:t,item:e}))}appendMenuItems(t){const e=new Set,n=new l.S;for(const{id:i,item:r}of t){let t=this._menuItems.get(i);t||(t=new l.S,this._menuItems.set(i,t)),n.push(t.push(r)),e.add(i)}return this._onDidChangeMenu.fire(e),(0,o.OF)((()=>{if(n.size>0){for(let t of n)t();this._onDidChangeMenu.fire(e),n.clear()}}))}getMenuItems(t){let e;return e=this._menuItems.has(t)?[...this._menuItems.get(t)]:[],t===m.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(t){const e=new Set;for(const n of t)g(n)&&(e.add(n.command.id),n.alt&&e.add(n.alt.id));this._commands.forEach(((n,i)=>{e.has(i)||t.push({command:n})}))}};class A extends i.wY{constructor(t,e,n,i){super(`submenuitem.${t.submenu.id}`,"string"==typeof t.title?t.title:t.title.value,[],"submenu"),this.item=t,this._menuService=e,this._contextKeyService=n,this._options=i}get actions(){const t=[],e=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=e.getActions(this._options);e.dispose();for(const[,e]of n)e.length>0&&(t.push(...e),t.push(new i.Z0));return t.length&&t.pop(),t}}let b=class t{constructor(e,n,i,s,a){var o,l;if(this._commandService=a,this.id=e.id,this.label=(null==i?void 0:i.renderShortTitle)&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value,this.tooltip=null!==(l="string"==typeof e.tooltip?e.tooltip:null===(o=e.tooltip)||void 0===o?void 0:o.value)&&void 0!==l?l:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"==typeof t.tooltip?t.tooltip:t.tooltip.value),t.title&&(this.label="string"==typeof t.title?t.title:t.title.value)}this.item=e,this.alt=n?new t(n,void 0,i,s,a):void 0,this._options=i,d.kS.isThemeIcon(e.icon)&&(this.class=r.dT.asClassName(e.icon))}dispose(){}run(...t){var e,n;let i=[];return(null===(e=this._options)||void 0===e?void 0:e.arg)&&(i=[...i,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(i=[...i,...t]),this._commandService.executeCommand(this.id,...i)}};b=f([p(3,h.i6),p(4,u.H)],b)},35884:function(t,e,n){"use strict";n.d(e,{H:function(){return l},P:function(){return u}});var i=n(4348),r=n(88226),s=n(69323),a=n(34502),o=n(72999);const l=(0,n(16925).yh)("commandService"),u=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(t,e){if(!t)throw new Error("invalid command");if("string"==typeof t){if(!e)throw new Error("invalid command");return this.registerCommand({id:t,handler:e})}if(t.description){const e=[];for(let n of t.description.args)e.push(n.constraint);const n=t.handler;t.handler=function(t,...i){return(0,o.D8)(i,e),n(t,...i)}}const{id:n}=t;let i=this._commands.get(n);i||(i=new a.S,this._commands.set(n,i));let r=i.unshift(t),l=(0,s.OF)((()=>{r();const t=this._commands.get(n);(null==t?void 0:t.isEmpty())&&this._commands.delete(n)}));return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(t,e){return u.registerCommand(t,((t,...n)=>t.get(l).executeCommand(e,...n)))}getCommand(t){const e=this._commands.get(t);if(e&&!e.isEmpty())return r.$.first(e)}getCommands(){const t=new Map;for(const e of this._commands.keys()){const n=this.getCommand(e);n&&t.set(e,n)}return t}};u.registerCommand("noop",(()=>{}))},90689:function(t,e,n){"use strict";n.d(e,{Ao:function(){return u},Eq:function(){return B},Fb:function(){return h},K8:function(){return M},i6:function(){return L},uy:function(){return R}});var i=n(23345),r=n(82983),s=n(16925);let a=i.WE||"";const o=new Map;o.set("false",!1),o.set("true",!0),o.set("isMac",i.dz),o.set("isLinux",i.IJ),o.set("isWindows",i.ED),o.set("isWeb",i.$L),o.set("isMacNative",i.dz&&!i.$L),o.set("isEdge",a.indexOf("Edg/")>=0),o.set("isFirefox",a.indexOf("Firefox")>=0),o.set("isChrome",a.indexOf("Chrome")>=0),o.set("isSafari",a.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class u{static has(t){return p.create(t)}static equals(t,e){return g.create(t,e)}static regex(t,e){return T.create(t,e)}static not(t){return A.create(t)}static and(...t){return S.create(t,null)}static or(...t){return I.create(t,null,!0)}static deserialize(t,e=!1){if(t)return this._deserializeOrExpression(t,e)}static _deserializeOrExpression(t,e){let n=t.split("||");return I.create(n.map((t=>this._deserializeAndExpression(t,e))),null,!0)}static _deserializeAndExpression(t,e){let n=t.split("&&");return S.create(n.map((t=>this._deserializeOne(t,e))),null)}static _deserializeOne(t,e){if((t=t.trim()).indexOf("!=")>=0){let n=t.split("!=");return y.create(n[0].trim(),this._deserializeValue(n[1],e))}if(t.indexOf("==")>=0){let n=t.split("==");return g.create(n[0].trim(),this._deserializeValue(n[1],e))}if(t.indexOf("=~")>=0){let n=t.split("=~");return T.create(n[0].trim(),this._deserializeRegexValue(n[1],e))}if(t.indexOf(" in ")>=0){let e=t.split(" in ");return m.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(t)){const e=t.split(">=");return E.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(t)){const e=t.split(">");return w.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(t)){const e=t.split("<=");return k.create(e[0].trim(),e[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(t)){const e=t.split("<");return x.create(e[0].trim(),e[1].trim())}return/^\!\s*/.test(t)?A.create(t.substr(1).trim()):p.create(t)}static _deserializeValue(t,e){if("true"===(t=t.trim()))return!0;if("false"===t)return!1;let n=/^'([^']*)'$/.exec(t);return n?n[1].trim():t}static _deserializeRegexValue(t,e){if((0,r.m5)(t)){if(e)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=t.indexOf("/"),i=t.lastIndexOf("/");if(n===i||n<0){if(e)throw new Error(`bad regexp-value '${t}', missing /-enclosure`);return console.warn(`bad regexp-value '${t}', missing /-enclosure`),null}let s=t.slice(n+1,i),a="i"===t[i+1]?"i":"";try{return new RegExp(s,a)}catch(n){if(e)throw new Error(`bad regexp-value '${t}', parse error: ${n}`);return console.warn(`bad regexp-value '${t}', parse error: ${n}`),null}}}function h(t,e){const n=t?t.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!n&&!i||!(!n||!i)&&n.equals(i)}function c(t,e){return t.cmp(e)}class d{constructor(){this.type=0}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!1}serialize(){return"false"}keys(){return[]}negate(){return f.INSTANCE}}d.INSTANCE=new d;class f{constructor(){this.type=1}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}f.INSTANCE=new f;class p{constructor(t,e){this.key=t,this.negated=e,this.type=2}static create(t,e=null){const n=o.get(t);return"boolean"==typeof n?n?f.INSTANCE:d.INSTANCE:new p(t,e)}cmp(t){return t.type!==this.type?this.type-t.type:P(this.key,t.key)}equals(t){return t.type===this.type&&this.key===t.key}substituteConstants(){const t=o.get(this.key);return"boolean"==typeof t?t?f.INSTANCE:d.INSTANCE:this}evaluate(t){return!!t.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}class g{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=4}static create(t,e,n=null){if("boolean"==typeof e)return e?p.create(t,n):A.create(t,n);const i=o.get(t);if("boolean"==typeof i){return e===(i?"true":"false")?f.INSTANCE:d.INSTANCE}return new g(t,e,n)}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){const t=o.get(this.key);if("boolean"==typeof t){const e=t?"true":"false";return this.value===e?f.INSTANCE:d.INSTANCE}return this}evaluate(t){return t.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 m{constructor(t,e){this.key=t,this.valueKey=e,this.type=10,this.negated=null}static create(t,e){return new m(t,e)}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.valueKey,t.key,t.valueKey)}equals(t){return t.type===this.type&&(this.key===t.key&&this.valueKey===t.valueKey)}substituteConstants(){return this}evaluate(t){const e=t.getValue(this.valueKey),n=t.getValue(this.key);return Array.isArray(e)?e.indexOf(n)>=0:"string"==typeof n&&"object"==typeof e&&null!==e&&l.call(e,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(t){this._actual=t,this.type=11}static create(t){return new v(t)}cmp(t){return t.type!==this.type?this.type-t.type:this._actual.cmp(t._actual)}equals(t){return t.type===this.type&&this._actual.equals(t._actual)}substituteConstants(){return this}evaluate(t){return!this._actual.evaluate(t)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=5}static create(t,e,n=null){if("boolean"==typeof e)return e?A.create(t,n):p.create(t,n);const i=o.get(t);if("boolean"==typeof i){return e===(i?"true":"false")?d.INSTANCE:f.INSTANCE}return new y(t,e,n)}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){const t=o.get(this.key);if("boolean"==typeof t){const e=t?"true":"false";return this.value===e?d.INSTANCE:f.INSTANCE}return this}evaluate(t){return t.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class A{constructor(t,e){this.key=t,this.negated=e,this.type=3}static create(t,e=null){const n=o.get(t);return"boolean"==typeof n?n?d.INSTANCE:f.INSTANCE:new A(t,e)}cmp(t){return t.type!==this.type?this.type-t.type:P(this.key,t.key)}equals(t){return t.type===this.type&&this.key===t.key}substituteConstants(){const t=o.get(this.key);return"boolean"==typeof t?t?d.INSTANCE:f.INSTANCE:this}evaluate(t){return!t.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 b(t,e){if("string"==typeof t){const e=parseFloat(t);isNaN(e)||(t=e)}return"string"==typeof t||"number"==typeof t?e(t):d.INSTANCE}class w{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=12}static create(t,e,n=null){return b(e,(e=>new w(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class E{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=13}static create(t,e,n=null){return b(e,(e=>new E(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class x{constructor(t,e,n){this.key=t,this.value=e,this.negated=n,this.type=14}static create(t,e,n=null){return b(e,(e=>new x(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))new k(t,e,n)))}cmp(t){return t.type!==this.type?this.type-t.type:O(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type&&(this.key===t.key&&this.value===t.value)}substituteConstants(){return this}evaluate(t){return"string"!=typeof this.value&&parseFloat(t.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class T{constructor(t,e){this.key=t,this.regexp=e,this.type=7,this.negated=null}static create(t,e){return new T(t,e)}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.keyt.key)return 1;const e=this.regexp?this.regexp.source:"",n=t.regexp?t.regexp.source:"";return en?1:0}equals(t){if(t.type===this.type){const e=this.regexp?this.regexp.source:"",n=t.regexp?t.regexp.source:"";return this.key===t.key&&e===n}return!1}substituteConstants(){return this}evaluate(t){let e=t.getValue(this.key);return!!this.regexp&&this.regexp.test(e)}serialize(){const t=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${t}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this)),this.negated}}class C{constructor(t){this._actual=t,this.type=8}static create(t){return new C(t)}cmp(t){return t.type!==this.type?this.type-t.type:this._actual.cmp(t._actual)}equals(t){return t.type===this.type&&this._actual.equals(t._actual)}substituteConstants(){return this}evaluate(t){return!this._actual.evaluate(t)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function D(t){let e=null;for(let n=0,i=t.length;nt.expr.length)return 1;for(let e=0,n=this.expr.length;e1;){const t=n[n.length-1];if(9!==t.type)break;n.pop();const e=n.pop(),i=0===n.length,r=I.create(t.expr.map((t=>S.create([t,e],null))),null,i);r&&(n.push(r),n.sort(c))}return 1===n.length?n[0]:new S(n,e)}}serialize(){return this.expr.map((t=>t.serialize())).join(" && ")}keys(){const t=[];for(let e of this.expr)t.push(...e.keys());return t}negate(){if(!this.negated){const t=[];for(let e of this.expr)t.push(e.negate());this.negated=I.create(t,this,!0)}return this.negated}}class I{constructor(t,e){this.expr=t,this.negated=e,this.type=9}static create(t,e,n){return I._normalizeArr(t,e,n)}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.lengtht.expr.length)return 1;for(let e=0,n=this.expr.length;et.serialize())).join(" || ")}keys(){const t=[];for(let e of this.expr)t.push(...e.keys());return t}negate(){if(!this.negated){let t=[];for(let e of this.expr)t.push(e.negate());for(;t.length>1;){const e=t.shift(),n=t.shift(),i=[];for(const t of N(e))for(const e of N(n))i.push(S.create([t,e],null));const r=0===t.length;t.unshift(I.create(i,null,r))}this.negated=t[0]}return this.negated}}class R extends p{constructor(t,e,n){super(t,null),this._defaultValue=e,"object"==typeof n?R._info.push(Object.assign(Object.assign({},n),{key:t})):!0!==n&&R._info.push({key:t,description:n,type:null!=e?typeof e:void 0})}static all(){return R._info.values()}bindTo(t){return t.createKey(this.key,this._defaultValue)}getValue(t){return t.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(t){return g.create(this.key,t)}}R._info=[];const L=(0,s.yh)("contextKeyService"),B="setContext";function P(t,e){return te?1:0}function O(t,e,n,i){return tn?1:ei?1:0}function M(t,e){if(6===e.type&&9!==t.type&&6!==t.type)for(const n of e.expr)if(t.equals(n))return!0;const n=N(t.negate()).concat(N(e));n.sort(c);for(let t=0;tt,i.serviceIds.set(t,e),e}function o(t){return function(e,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(t,e,i,!0)}}},44650:function(t,e,n){"use strict";n.d(e,{B:function(){return s}});var i=n(76068),r=n(72999);const s=new class{constructor(){this.data=new Map}add(t,e){i.ok(r.HD(t)),i.ok(r.Kn(e)),i.ok(!this.data.has(t),"There is already an extension with this id"),this.data.set(t,e)}as(t){return this.data.get(t)||null}}},66213:function(t,e,n){"use strict";var i;n.d(e,{e:function(){return i}}),function(t){t.DARK="dark",t.LIGHT="light",t.HIGH_CONTRAST="hc"}(i||(i={}))},49055:function(t,e,n){"use strict";n.d(e,{EN:function(){return d},IP:function(){return p},Ic:function(){return m},XE:function(){return u},bB:function(){return v},kS:function(){return c},m6:function(){return f}});var i=n(52615),r=n(4348),s=n(69323),a=n(16925),o=n(44650),l=n(66213);const u=(0,a.yh)("themeService");var h,c;function d(t){return{id:t}}function f(t){switch(t){case l.e.DARK:return"vs-dark";case l.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(t){t.isThemeColor=function(t){return t&&"object"==typeof t&&"string"==typeof t.id}}(h||(h={})),function(t){t.isThemeIcon=function(t){return t&&"object"==typeof t&&"string"==typeof t.id&&(void 0===t.color||h.isThemeColor(t.color))};const e=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);t.fromString=function(t){const n=e.exec(t);if(!n)return;let[,i]=n;return{id:i}},t.modify=function(t,e){let n=t.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),e&&(n=`${n}~${e}`),{id:n}},t.isEqual=function(t,e){var n,i;return t.id===e.id&&(null===(n=t.color)||void 0===n?void 0:n.id)===(null===(i=e.color)||void 0===i?void 0:i.id)},t.asThemeIcon=function(t,e){return{id:t.id,color:e?d(e):void 0}},t.asClassNameArray=i.dT.asClassNameArray,t.asClassName=i.dT.asClassName,t.asCSSSelector=i.dT.asCSSSelector}(c||(c={}));const p={ThemingContribution:"base.contributions.theming"};let g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.Q5}onColorThemeChange(t){return this.themingParticipants.push(t),this.onThemingParticipantAddedEmitter.fire(t),(0,s.OF)((()=>{const e=this.themingParticipants.indexOf(t);this.themingParticipants.splice(e,1)}))}getThemingParticipants(){return this.themingParticipants}};function m(t){return g.onColorThemeChange(t)}o.B.add(p.ThemingContribution,g);class v extends s.JT{constructor(t){super(),this.themeService=t,this.theme=t.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((t=>this.onThemeChange(t))))}onThemeChange(t){this.theme=t,this.updateStyles()}updateStyles(){}}},29301:function(t,e,n){"use strict";n.d(e,{Z:function(){return x}});var i=n(14809),r=n(59301),s=n(11592),a=(n(48736),n(20439)),o=n(93664),l=n(76846),u=n(8654),h=r.createContext(null);var c=n(76374),d=new Map;var f=new c.Z((function(t){t.forEach((function(t){var e,n=t.target;null===(e=d.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));var p=n(99153),g=n(84851),m=n(19257),v=n(54941),y=function(t){(0,m.Z)(n,t);var e=(0,v.Z)(n);function n(){return(0,p.Z)(this,n),e.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function A(t,e){var n=t.children,i=t.disabled,s=r.useRef(null),c=r.useRef(null),p=r.useContext(h),g="function"==typeof n,m=g?n(s):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),A=!g&&r.isValidElement(m)&&(0,u.Yr)(m),b=A?(0,u.C4)(m):null,w=(0,u.x1)(b,s),E=function(){var t;return(0,l.ZP)(s.current)||(s.current&&"object"===(0,o.Z)(s.current)?(0,l.ZP)(null===(t=s.current)||void 0===t?void 0:t.nativeElement):null)||(0,l.ZP)(c.current)};r.useImperativeHandle(e,(function(){return E()}));var x=r.useRef(t);x.current=t;var k=r.useCallback((function(t){var e=x.current,n=e.onResize,i=e.data,r=t.getBoundingClientRect(),s=r.width,o=r.height,l=t.offsetWidth,u=t.offsetHeight,h=Math.floor(s),c=Math.floor(o);if(v.current.width!==h||v.current.height!==c||v.current.offsetWidth!==l||v.current.offsetHeight!==u){var d={width:h,height:c,offsetWidth:l,offsetHeight:u};v.current=d;var f=l===Math.round(s)?s:l,g=u===Math.round(o)?o:u,m=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:f,offsetHeight:g});null==p||p(m,t,i),n&&Promise.resolve().then((function(){n(m,t)}))}}),[]);return r.useEffect((function(){var t,e,n=E();return n&&!i&&(t=n,e=k,d.has(t)||(d.set(t,new Set),f.observe(t)),d.get(t).add(e)),function(){return function(t,e){d.has(t)&&(d.get(t).delete(e),d.get(t).size||(f.unobserve(t),d.delete(t)))}(n,k)}}),[s.current,i]),r.createElement(y,{ref:c},A?r.cloneElement(m,{ref:w}):m)}var b=r.forwardRef(A);function w(t,e){var n=t.children;return("function"==typeof n?[n]:(0,s.Z)(n)).map((function(n,s){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(s);return r.createElement(b,(0,i.Z)({},t,{key:a,ref:0===s?e:void 0}),n)}))}var E=r.forwardRef(w);E.Collection=function(t){var e=t.children,n=t.onBatchResize,i=r.useRef(0),s=r.useRef([]),a=r.useContext(h),o=r.useCallback((function(t,e,r){i.current+=1;var o=i.current;s.current.push({size:t,element:e,data:r}),Promise.resolve().then((function(){o===i.current&&(null==n||n(s.current),s.current=[])})),null==a||a(t,e,r)}),[n,a]);return r.createElement(h.Provider,{value:o},e)};var x=E},55477:function(t,e,n){"use strict";n.d(e,{G:function(){return p},Z:function(){return v}});var i=n(14809),r=n(20439),s=n(62646),a=n(35593),o=n(59301),l={shiftX:64,adjustY:1},u={adjustX:1,shiftY:!0},h=[0,0],c={left:{points:["cr","cl"],overflow:u,offset:[-4,0],targetOffset:h},right:{points:["cl","cr"],overflow:u,offset:[4,0],targetOffset:h},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:h},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:h},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:h},leftTop:{points:["tr","tl"],overflow:u,offset:[-4,0],targetOffset:h},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:h},rightTop:{points:["tl","tr"],overflow:u,offset:[4,0],targetOffset:h},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:h},rightBottom:{points:["bl","br"],overflow:u,offset:[4,0],targetOffset:h},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:h},leftBottom:{points:["br","bl"],overflow:u,offset:[-4,0],targetOffset:h}},d=n(92310),f=n.n(d);function p(t){var e=t.children,n=t.prefixCls,i=t.id,r=t.overlayInnerStyle,s=t.className,a=t.style;return o.createElement("div",{className:f()("".concat(n,"-content"),s),style:a},o.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:r},"function"==typeof e?e():e))}var g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(t,e){var n=t.overlayClassName,l=t.trigger,u=void 0===l?["hover"]:l,h=t.mouseEnterDelay,d=void 0===h?0:h,f=t.mouseLeaveDelay,m=void 0===f?.1:f,v=t.overlayStyle,y=t.prefixCls,A=void 0===y?"rc-tooltip":y,b=t.children,w=t.onVisibleChange,E=t.afterVisibleChange,x=t.transitionName,k=t.animation,T=t.motion,C=t.placement,D=void 0===C?"right":C,S=t.align,I=void 0===S?{}:S,R=t.destroyTooltipOnHide,L=void 0!==R&&R,B=t.defaultVisible,P=t.getTooltipContainer,O=t.overlayInnerStyle,M=(t.arrowContent,t.overlay),N=t.id,F=t.showArrow,_=void 0===F||F,U=(0,s.Z)(t,g),z=(0,o.useRef)(null);(0,o.useImperativeHandle)(e,(function(){return z.current}));var j=(0,r.Z)({},U);"visible"in t&&(j.popupVisible=t.visible);return o.createElement(a.Z,(0,i.Z)({popupClassName:n,prefixCls:A,popup:function(){return o.createElement(p,{key:"content",prefixCls:A,id:N,overlayInnerStyle:O},M)},action:u,builtinPlacements:c,popupPlacement:D,ref:z,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:E,popupTransitionName:x,popupAnimation:k,popupMotion:T,defaultPopupVisible:B,autoDestroy:L,mouseLeaveDelay:m,popupStyle:v,mouseEnterDelay:d,arrow:_},j),b)},v=(0,o.forwardRef)(m)},49658:function(t,e){"use strict";e.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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(null==t?void 0:t.substr(0,4))}},83145:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var i=s(n(59301)),r=s(n(25769));function s(t){return t&&t.__esModule?t:{default:t}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;o.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new i,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),i=new w(e,n,this);E.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var k=void 0!==s.ResizeObserver?s.ResizeObserver:x;e.Z=k},98040:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(){return A=Object.assign?Object.assign.bind():function(t){for(var e=1;e`):x}(t,n)}const D=T();const S=D;function I(t=!0){if("undefined"==typeof self)return;return(t||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function R(t,e){const n=Object.keys(t),i=Object.keys(e),r=n.length,s=i.length;return!r||!s||r===s&&!n.some((t=>-1===i.indexOf(t)))}function L(t,e=!1){if("undefined"!=typeof TextDecoder){const n=new TextDecoder("utf-8").decode(t);if(e){const t=n.indexOf("\0");return-1!==t?n.substring(0,t):n}return n.replace(/\0/g,"")}const n=t.length;let i,r,s,a="",o=0;for(;o>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:r=t[o++],a+=String.fromCharCode((31&i)<<6|63&r);break;case 14:r=t[o++],s=t[o++],a+=String.fromCharCode((15&i)<<12|(63&r)<<6|(63&s)<<0)}}return a}const B=function(t){let e="";for(let n=0;n1||1===e&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){i(t)?this._programDateTime=t:this._programDateTime=this.rawProgramDateTime=null}get ref(){return Y(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){if(this.levelkeys){const e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}}abortRequests(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()}setElementaryStreamInfo(t,e,n,i,r,s=!1){const{elementaryStreams:a}=this,o=a[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,n),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,r)):a[t]={startPTS:e,endPTS:n,startDTS:i,endDTS:r,partial:s}}}class X extends V{constructor(t,e,n,i,r){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=e,this.index=i;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function W(t,e){const n=Object.getPrototypeOf(t);if(n){const t=Object.getOwnPropertyDescriptor(n,e);return t||W(n,e)}}const Z=Math.pow(2,32)-1,J=[].push,$={video:1,audio:2,id3:3,text:4};function tt(t){return String.fromCharCode.apply(null,t)}function et(t,e){const n=t[e]<<8|t[e+1];return n<0?65536+n:n}function nt(t,e){const n=rt(t,e);return n<0?4294967296+n:n}function it(t,e){let n=nt(t,e);return n*=Math.pow(2,32),n+=nt(t,e+4),n}function rt(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function st(t,e,n){t[e]=n>>24,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function at(t,e){const n=[];if(!e.length)return n;const i=t.byteLength;for(let r=0;r1?r+s:i;if(tt(t.subarray(r+4,r+8))===e[0])if(1===e.length)n.push(t.subarray(r+8,a));else{const i=at(t.subarray(r+8,a),e.slice(1));i.length&&J.apply(n,i)}r=a}return n}function ot(t){const e=[],n=t[0];let i=8;const r=nt(t,i);i+=4;let s=0,a=0;0===n?(s=nt(t,i),a=nt(t,i+4),i+=8):(s=it(t,i),a=it(t,i+8),i+=16),i+=2;let o=t.length+a;const l=et(t,i);i+=2;for(let n=0;n>>31)return S.warn("SIDX has hierarchical references (not supported)"),null;const l=nt(t,n);n+=4,e.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:o,end:o+a-1}}),o+=a,n+=4,i=n}return{earliestPresentationTime:s,timescale:r,version:n,referencesCount:l,references:e}}function lt(t){const e=[],n=at(t,["moov","trak"]);for(let t=0;t{const n=nt(t,4),i=e[n];i&&(i.default={duration:nt(t,12),flags:nt(t,20)})})),e}function ut(t){const e=t.subarray(8),n=e.subarray(86),i=tt(e.subarray(4,8));let r,s=i;const a="enca"===i||"encv"===i;if(a){const t=at(e,[i])[0];at(t.subarray("enca"===i?28:78),["sinf"]).forEach((t=>{const e=at(t,["schm"])[0];if(e){const n=tt(e.subarray(4,8));if("cbcs"===n||"cenc"===n){const e=at(t,["frma"])[0];e&&(s=tt(e))}}}))}const o=s;switch(s){case"avc1":case"avc2":case"avc3":case"avc4":{const t=at(n,["avcC"])[0];t&&t.length>3&&(s+="."+dt(t[1])+dt(t[2])+dt(t[3]),r=ht("avc1"===o?"dva1":"dvav",n));break}case"mp4a":{const t=at(e,[i])[0],n=at(t.subarray(28),["esds"])[0];if(n&&n.length>7){let t=4;if(3!==n[t++])break;t=ct(n,t),t+=2;const e=n[t++];if(128&e&&(t+=2),64&e&&(t+=n[t++]),4!==n[t++])break;t=ct(n,t);const i=n[t++];if(64!==i)break;if(s+="."+dt(i),t+=12,5!==n[t++])break;t=ct(n,t);const r=n[t++];let a=(248&r)>>3;31===a&&(a+=1+((7&r)<<3)+((224&n[t])>>5)),s+="."+a}break}case"hvc1":case"hev1":{const t=at(n,["hvcC"])[0];if(t&&t.length>12){const e=t[1],n=["","A","B","C"][e>>6],i=31&e,r=nt(t,2),a=(32&e)>>5?"H":"L",o=t[12],l=t.subarray(6,12);s+="."+n+i,s+="."+function(t){let e=0;for(let n=0;n<32;n++)e|=(t>>n&1)<<31-n;return e>>>0}(r).toString(16).toUpperCase(),s+="."+a+o;let u="";for(let t=l.length;t--;){const e=l[t];if(e||u){u="."+e.toString(16).toUpperCase()+u}}s+=u}r=ht("hev1"==o?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":s=ht(s,n)||s;break;case"vp09":{const t=at(n,["vpcC"])[0];if(t&&t.length>6){const e=t[4],n=t[5],i=t[6]>>4&15;s+="."+ft(e)+"."+ft(n)+"."+ft(i)}break}case"av01":{const t=at(n,["av1C"])[0];if(t&&t.length>2){const e=t[1]>>>5,i=31&t[1],a=t[2]>>>7?"H":"M",o=(64&t[2])>>6,l=(32&t[2])>>5,u=2===e&&o?l?12:10:o?10:8,h=(16&t[2])>>4,c=(8&t[2])>>3,d=(4&t[2])>>2,f=3&t[2],p=1,g=1,m=1,v=0;s+="."+e+"."+ft(i)+a+"."+ft(u)+"."+h+"."+c+d+f+"."+ft(p)+"."+ft(g)+"."+ft(m)+"."+v,r=ht("dav1",n)}break}}return{codec:s,encrypted:a,supplemental:r}}function ht(t,e){const n=at(e,["dvvC"]),i=n.length?n[0]:at(e,["dvcC"])[0];if(i){const e=i[2]>>1&127,n=i[2]<<5&32|i[3]>>3&31;return t+"."+ft(e)+"."+ft(n)}}function ct(t,e){const n=e+5;for(;128&t[e++]&&e{const l=o.byteOffset-8;at(o,["traf"]).map((o=>{const u=at(o,["tfdt"]).map((t=>{const e=t[0];let n=nt(t,4);return 1===e&&(n*=Math.pow(2,32),n+=nt(t,8)),n/r}))[0];return void 0!==u&&(t=u),at(o,["tfhd"]).map((u=>{const h=nt(u,4),c=16777215&nt(u,0);let d=0;const f=0!=(16&c);let p=0;const g=0!=(32&c);let m=8;h===s&&(0!=(1&c)&&(m+=8),0!=(2&c)&&(m+=4),0!=(8&c)&&(d=nt(u,m),m+=4),f&&(p=nt(u,m),m+=4),g&&(m+=4),"video"===e.type&&(a=vt(e.codec)),at(o,["trun"]).map((s=>{const o=s[0],u=16777215&nt(s,0),h=0!=(1&u);let c=0;const f=0!=(4&u),g=0!=(256&u);let m=0;const v=0!=(512&u);let y=0;const A=0!=(1024&u),b=0!=(2048&u);let w=0;const E=nt(s,4);let x=8;h&&(c=nt(s,x),x+=4),f&&(x+=4);let k=c+l;for(let l=0;l>1&63;return 39===t||40===t}return 6===(31&e)}function At(t,e,n,i){const r=bt(t);let s=0;s+=e;let a=0,o=0,l=0;for(;s=r.length)break;l=r[s++],a+=l}while(255===l);o=0;do{if(s>=r.length)break;l=r[s++],o+=l}while(255===l);const t=r.length-s;let e=s;if(ot){S.error(`Malformed SEI payload. ${o} is too small, only ${t} bytes left to parse.`);break}if(4===a){if(181===r[e++]){const t=et(r,e);if(e+=2,49===t){const t=nt(r,e);if(e+=4,1195456820===t){const t=r[e++];if(3===t){const s=r[e++],o=64&s,l=o?2+3*(31&s):0,u=new Uint8Array(l);if(o){u[0]=s;for(let t=1;t16){const t=[];for(let n=0;n<16;n++){const i=r[e++].toString(16);t.push(1==i.length?"0"+i:i),3!==n&&5!==n&&7!==n&&9!==n||t.push("-")}const s=o-16,l=new Uint8Array(s);for(let t=0;t0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),function(t,...e){const n=e.length;let i=8,r=n;for(;r--;)i+=e[r].byteLength;const s=new Uint8Array(i);for(s[0]=i>>24&255,s[1]=i>>16&255,s[2]=i>>8&255,s[3]=255&i,s.set(t,4),r=0,i=8;r>>24;if(0!==r&&1!==r)return{offset:n,size:e};const s=t.buffer,a=B(new Uint8Array(s,n+12,16)),o=t.getUint32(28);let l=null,u=null;if(0===r){if(e-32/\(Windows.+Firefox\//i.test(navigator.userAgent),kt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Tt(t,e){const n=kt[e];return!!n&&!!n[t.slice(0,4)]}function Ct(t,e,n=!0){return!t.split(",").some((t=>!Dt(t,e,n)))}function Dt(t,e,n=!0){var i;const r=I(n);return null!=(i=null==r?void 0:r.isTypeSupported(St(t,e)))&&i}function St(t,e){return`${e}/mp4;codecs=${t}`}function It(t){if(t){const e=t.substring(0,4);return kt.video[e]}return 2}function Rt(t){const e=xt();return t.split(",").reduce(((t,n)=>{const i=e&&vt(n)?9:kt.video[n];return i?(2*i+t)/(t?3:2):(kt.audio[n]+t)/(t?2:1)}),0)}const Lt={};const Bt=/flac|opus|mp4a\.40\.34/i;function Pt(t,e=!0){return t.replace(Bt,(t=>function(t,e=!0){if(Lt[t])return Lt[t];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[t];for(let r=0;r4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(t)))return t;if(e){const n=e.split(",");if(n.length>1){if(t)for(let e=n.length;e--;)if(n[e].substring(0,4)===t.substring(0,4))return n[e];return n[0]}}return e||t}function Mt(t){if(t.startsWith("av01.")){const e=t.split("."),n=["0","111","01","01","01","0"];for(let t=e.length;t>4&&t<10;t++)e[t]=n[t-4];return e.join(".")}return t}function Nt(t){const e=I(t)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Ft(t){return t.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const _t={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Ut(t,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:t}}const zt={};function jt(t,e,n,r,s,a){const o=t.audioCodec?t.audioGroups:null,l=null==a?void 0:a.audioCodec,u=null==a?void 0:a.channels,h=u?parseInt(u):l?1/0:2;let c=null;if(null!=o&&o.length)try{c=1===o.length&&o[0]?e.groups[o[0]].channels:o.reduce(((t,n)=>{if(n){const i=e.groups[n];if(!i)throw new Error(`Audio track group ${n} not found`);Object.keys(i.channels).forEach((e=>{t[e]=(t[e]||0)+i.channels[e]}))}return t}),{2:0})}catch(t){return!0}return void 0!==t.videoCodec&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(r,30)||"SDR"!==t.videoRange&&t.videoRange!==n||t.bitrate>Math.max(s,8e6))||!!c&&i(h)&&Object.keys(c).some((t=>parseInt(t)>h))}function Gt(t,e,n){const r=t.videoCodec,s=t.audioCodec;if(!r&&!s||!n)return Promise.resolve(_t);const a=[];if(r){const e={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(.9*t.bitrate,t.averageBitrate)),framerate:t.frameRate||30},n=t.videoRange;"SDR"!==n&&(e.transferFunction=n.toLowerCase());const i=r.split(","),s=navigator.userAgent;if(i.some((t=>vt(t)))&&xt())return Promise.resolve(Ut(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${s})`),a));a.push.apply(a,i.map((t=>({type:"media-source",video:w(w({},e),{},{contentType:St(Mt(t),"video")})}))))}return s&&t.audioGroups&&t.audioGroups.forEach((t=>{var n;t&&(null==(n=e.groups[t])||n.tracks.forEach((e=>{if(e.groupId===t){const t=e.channels||"",n=parseFloat(t);i(n)&&n>2&&a.push.apply(a,s.split(",").map((t=>({type:"media-source",audio:{contentType:St(t,"audio"),channels:""+n}}))))}})))})),Promise.all(a.map((t=>{const e=function(t){const{audio:e,video:n}=t,i=n||e;if(i){const t=Ft(i.contentType);if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${t}_${Math.ceil(n.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${t}`}return""}(t);return zt[e]||(zt[e]=n.decodingInfo(t))}))).then((t=>({supported:!t.some((t=>!t.supported)),configurations:a,decodingInfoResults:t}))).catch((t=>({supported:!1,configurations:a,decodingInfoResults:[],error:t})))}const Ht=["NONE","TYPE-0","TYPE-1",null];const Qt=["SDR","PQ","HLG"];var qt="",Vt="YES",Yt="v2";function Kt(t){const{canSkipUntil:e,canSkipDateRanges:n,age:i}=t;return e&&i!!t)).map((t=>t.substring(0,4))).join(","),"supplemental"in t){var e;this.supplemental=t.supplemental;const n=null==(e=t.supplemental)?void 0:e.videoCodec;n&&n!==t.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return Zt(this._audioGroups,t)}hasSubtitleGroup(t){return Zt(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,e){if(e)if("audio"===t){let t=this._audioGroups;t||(t=this._audioGroups=[]),-1===t.indexOf(e)&&t.push(e)}else if("text"===t){let t=this._subtitleGroups;t||(t=this._subtitleGroups=[]),-1===t.indexOf(e)&&t.push(e)}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return null==(t=this.audioGroups)?void 0:t[0]}get textGroupId(){var t;return null==(t=this.subtitleGroups)?void 0:t[0]}addFallback(){}}function Zt(t,e){return!(!e||!t)&&-1!==t.indexOf(e)}function Jt(t,e){let n=!1,i=[];if(t&&(n="SDR"!==t,i=[t]),e){i=e.allowedVideoRanges||Qt.slice(0);const t="SDR"!==i.join("")&&!e.videoCodec;n=void 0!==e.preferHDR?e.preferHDR:t&&function(){if("function"==typeof matchMedia){const t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return!0===t.matches}return!1}(),n||(i=["SDR"])}return{preferHDR:n,allowedVideoRanges:i}}const $t=(t,e)=>JSON.stringify(t,(t=>{const e=new WeakSet;return(n,i)=>{if(t&&(i=t(n,i)),"object"==typeof i&&null!==i){if(e.has(i))return;e.add(i)}return i}})(e));function te(t,e){S.log(`[abr] start candidates with "${t}" ignored because ${e}`)}function ee(t){return t.reduce(((t,e)=>{let n=t.groups[e.groupId];n||(n=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(e);const i=e.channels||"2";return n.channels[i]=(n.channels[i]||0)+1,n.hasDefault=n.hasDefault||e.default,n.hasAutoSelect=n.hasAutoSelect||e.autoselect,n.hasDefault&&(t.hasDefaultAudio=!0),n.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ne(t){if(!t)return t;const{lang:e,assocLang:n,characteristics:i,channels:r,audioCodec:s}=t;return{lang:e,assocLang:n,characteristics:i,channels:r,audioCodec:s}}function ie(t,e,n){if("attrs"in t){const n=e.indexOf(t);if(-1!==n)return n}for(let i=0;i-1===i.indexOf(t)))}(t.characteristics||"",e.characteristics))&&(void 0===n||n(t,e))}function se(t,e){const{audioCodec:n,channels:i}=t;return!(void 0!==n&&(e.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==i&&i!==(e.channels||"2"))}function ae(t,e,n){for(let i=e;i>-1;i--)if(n(t[i]))return i;for(let i=e+1;i0)n=r+1;else{if(!(a<0))return s;i=r-1}}return null};function ue(t,e,n=0,i=0,r=.005){let s=null;if(t){s=e[1+t.sn-e[0].sn]||null;const i=t.endDTS-n;i>0&&i<15e-7&&(n+=15e-7),s&&t.level!==s.level&&s.end<=t.end&&(s=e[2+t.sn-e[0].sn]||null)}else 0===n&&0===e[0].start&&(s=e[0]);if(s&&((!t||t.level===s.level)&&0===he(n,i,s)||function(t,e,n){if(e&&0===e.start&&e.level0){const i=e.tagList.reduce(((t,e)=>("INF"===e[0]&&(t+=parseFloat(e[1])),t)),n);return t.start<=i}return!1}(s,t,Math.min(r,i))))return s;const a=le(e,he.bind(null,n,i));return!a||a===t&&s?s:a}function he(t=0,e=0,n){if(n.start<=t&&n.start+n.duration>t)return 0;const i=Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=t?1:n.start-i>t&&n.start?-1:0}function ce(t,e,n){const i=1e3*Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>t}function de(t,e,n){if(t&&t.startCC<=e&&t.endCC>=e){let i=t.fragments;const{fragmentHint:r}=t;let s;return r&&(i=i.concat(r)),le(i,(t=>t.cce?-1:(s=t,t.end<=n?1:t.start>n?-1:0))),s||null}return null}function fe(t){switch(t.details){case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_TIMEOUT:case o.LEVEL_LOAD_TIMEOUT:case o.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function pe(t,e){const n=fe(e);return t.default[(n?"timeout":"error")+"Retry"]}function ge(t,e){const n="linear"===t.backoff?1:Math.pow(2,e);return Math.min(n*t.retryDelayMs,t.maxRetryDelayMs)}function me(t){return w(w({},t),{errorRetry:null,timeoutRetry:null})}function ve(t,e,n,i){if(!t)return!1;const r=null==i?void 0:i.code,s=e499)}(r)||!!n);return t.shouldRetry?t.shouldRetry(t,e,n,i,s):s}var ye=0,Ae=2,be=3,we=5,Ee=0,xe=1,ke=2;function Te(t){const e={action:ye,flags:Ee};return t&&(e.resolved=!0),e}var Ce="NOT_LOADED",De="APPENDING",Se="PARTIAL",Ie="OK";class Re{constructor(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.BUFFER_APPENDED,this.onBufferAppended,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this),t.on(l.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.BUFFER_APPENDED,this.onBufferAppended,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this),t.off(l.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(t,e){const n=this.activePartLists[e];if(n)for(let e=n.length;e--;){const i=n[e];if(!i)break;const r=i.end;if(i.start<=t&&null!==r&&t<=r)return i}return this.getBufferedFrag(t,e)}getBufferedFrag(t,e){return this.getFragAtPos(t,e,!0)}getFragAtPos(t,e,n){const{fragments:i}=this,r=Object.keys(i);for(let s=r.length;s--;){const a=i[r[s]];if((null==a?void 0:a.body.type)===e&&(!n||a.buffered)){const e=a.body;if(e.start<=t&&t<=e.end)return e}}return null}detectEvictedFragments(t,e,n,i,r){this.timeRanges&&(this.timeRanges[t]=e);const s=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const a=this.fragments[i];if(!a)return;if(s>=a.body.sn)return;if(!a.buffered&&(!a.loaded||r))return void(a.body.type===n&&this.removeFragment(a.body));const o=a.range[t];o&&(0!==o.time.length?o.time.some((t=>{const n=!this.isTimeBuffered(t.startPTS,t.endPTS,e);return n&&this.removeFragment(a.body),n})):this.removeFragment(a.body))}))}detectPartialFragments(t){const e=this.timeRanges;if(!e||"initSegment"===t.frag.sn)return;const n=t.frag,i=Be(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;const s=!n.relurl;if(Object.keys(e).forEach((i=>{const a=n.elementaryStreams[i];if(!a)return;const o=e[i],l=s||!0===a.partial;r.range[i]=this.getBufferedTimes(n,t.part,l,o)})),r.loaded=null,Object.keys(r.range).length){r.buffered=!0;(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),Le(r)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(r.body)}removeParts(t,e){const n=this.activePartLists[e];n&&(this.activePartLists[e]=Pe(n,(e=>e.fragment.sn>=t)))}fragBuffered(t,e){const n=Be(t);let i=this.fragments[n];!i&&e&&(i=this.fragments[n]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,e,n,i){const r={time:[],partial:n},s=t.start,a=t.end,o=t.minEndPTS||a,l=t.maxStartPTS||s;for(let t=0;t=e&&o<=n){r.time.push({startPTS:Math.max(s,i.start(t)),endPTS:Math.min(a,i.end(t))});break}if(se){const e=Math.max(s,i.start(t)),n=Math.min(a,i.end(t));n>e&&(r.partial=!0,r.time.push({startPTS:e,endPTS:n}))}else if(a<=e)break}return r}getPartialFragment(t){let e,n,i,r=null,s=0;const{bufferPadding:a,fragments:o}=this;return Object.keys(o).forEach((l=>{const u=o[l];u&&Le(u)&&(n=u.body.start-a,i=u.body.end+a,t>=n&&t<=i&&(e=Math.min(t-n,i-t),s<=e&&(r=u.body,s=e)))})),r}isEndListAppended(t){const e=this.endListFragments[t];return void 0!==e&&(e.buffered||Le(e))}getState(t){const e=Be(t),n=this.fragments[e];return n?n.buffered?Le(n)?Se:Ie:De:Ce}isTimeBuffered(t,e,n){let i,r;for(let s=0;s=i&&e<=r)return!0;if(e<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,e){if("initSegment"===e.frag.sn||e.frag.bitrateTest)return;const n=e.frag,i=e.part?null:e,r=Be(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(t,e){const{frag:n,part:i,timeRanges:r,type:s}=e;if("initSegment"===n.sn)return;const a=n.type;if(i){let t=this.activePartLists[a];t||(this.activePartLists[a]=t=[]),t.push(i)}this.timeRanges=r;const o=r[s];this.detectEvictedFragments(s,o,a,i)}onFragBuffered(t,e){this.detectPartialFragments(e)}hasFragment(t){const e=Be(t);return!!this.fragments[e]}hasFragments(t){const{fragments:e}=this,n=Object.keys(e);if(!t)return n.length>0;for(let i=n.length;i--;){const r=e[n[i]];if((null==r?void 0:r.body.type)===t)return!0}return!1}hasParts(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)}removeFragmentsInRange(t,e,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((s=>{const a=this.fragments[s];if(!a)return;const o=a.body;o.type!==n||i&&!o.gap||o.startt&&(a.buffered||r)&&this.removeFragment(o)}))}removeFragment(t){const e=Be(t);t.clearElementaryStreamInfo();const n=this.activePartLists[t.type];if(n){const e=t.sn;this.activePartLists[t.type]=Pe(n,(t=>t.fragment.sn!==e))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t,e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=null==(t=this.hls)||null==(e=t.latestLevelDetails)?void 0:e.partList;n&&n.forEach((t=>t.clearElementaryStreamInfo()))}}function Le(t){var e,n,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(n=t.range.audio)?void 0:n.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function Be(t){return`${t.type}_${t.level}_${t.sn}`}function Pe(t,e){return t.filter((t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n}))}var Oe=0,Me=1;class Ne{constructor(t,e,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=e,this.aesMode=n}decrypt(t,e){switch(this.aesMode){case Oe:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t);case Me:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},e,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class Fe{constructor(){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()}uint8ArrayToUint32Array_(t){const e=new DataView(t),n=new Uint32Array(4);for(let t=0;t<4;t++)n[t]=e.getUint32(4*t);return n}initTable(){const t=this.sBox,e=this.invSBox,n=this.subMix,i=n[0],r=n[1],s=n[2],a=n[3],o=this.invSubMix,l=o[0],u=o[1],h=o[2],c=o[3],d=new Uint32Array(256);let f=0,p=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){let n=p^p<<1^p<<2^p<<3^p<<4;n=n>>>8^255&n^99,t[f]=n,e[n]=f;const o=d[f],g=d[o],m=d[g];let v=257*d[n]^16843008*n;i[f]=v<<24|v>>>8,r[f]=v<<16|v>>>16,s[f]=v<<8|v>>>24,a[f]=v,v=16843009*m^65537*g^257*o^16843008*f,l[n]=v<<24|v>>>8,u[n]=v<<16|v>>>16,h[n]=v<<8|v>>>24,c[n]=v,f?(f=o^d[d[d[m^o]]],p^=d[d[p]]):f=p=1}}expandKey(t){const e=this.uint8ArrayToUint32Array_(t);let n=!0,i=0;for(;i{const a=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(a,e,n,i);const o=this.flush();o?r(o.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(t),e,n,i)}softwareDecrypt(t,e,n,i){const{currentIV:r,currentResult:s,remainderData:a}=this;if(i!==Oe||16!==e.byteLength)return S.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(t=gt(a,t),this.remainderData=null);const o=this.getValidChunk(t);if(!o.length)return null;r&&(n=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new Fe),l.expandKey(e);const u=s;return this.currentResult=l.decrypt(o.buffer,0,n),this.currentIV=o.slice(-16).buffer,u||null}webCryptoDecrypt(t,e,n,i){if(this.key!==e||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,e,n,i));this.key=e,this.fastAesKey=new _e(this.subtle,e,i)}return this.fastAesKey.expandKey().then((e=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new Ne(this.subtle,new Uint8Array(n),i).decrypt(t.buffer,e)})).catch((r=>(S.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(t,e,n,i))))}onWebCryptoError(t,e,n,i){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,n,i);const r=this.flush();if(r)return r.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let e=t;const n=t.length-t.length%16;return n!==t.length&&(e=t.slice(0,n),this.remainderData=t.slice(n)),e}logOnce(t){this.logEnabled&&(S.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const ze=Math.pow(2,17);class je{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,e){const n=t.url;if(!n)return Promise.reject(new Qe({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),t.gap){if(t.tagList.some((t=>"GAP"===t[0])))return void u(He(t));t.gap=!1}const h=this.loader=r?new r(i):new s(i),c=Ge(t);t.loader=h;const d=me(i.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:ze};t.stats=h.stats;const p={onSuccess:(e,n,i,r)=>{this.resetLoader(t,h);let s=e.data;i.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),l({frag:t,part:null,payload:s,networkDetails:r})},onError:(e,i,r,s)=>{this.resetLoader(t,h),u(new Qe({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:w({url:n,data:void 0},e),error:new Error(`HTTP Error ${e.code} ${e.text}`),networkDetails:r,stats:s}))},onAbort:(e,n,i)=>{this.resetLoader(t,h),u(new Qe({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:i,stats:e}))},onTimeout:(e,n,i)=>{this.resetLoader(t,h),u(new Qe({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:i,stats:e}))}};e&&(p.onProgress=(n,i,r,s)=>e({frag:t,part:null,payload:r,networkDetails:s})),h.load(c,f,p)}))}loadPart(t,e,n){this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),t.gap||e.gap)return void u(He(t,e));const h=this.loader=r?new r(i):new s(i),c=Ge(t,e);t.loader=h;const d=me(i.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:ze};e.stats=h.stats,h.load(c,f,{onSuccess:(i,r,s,a)=>{this.resetLoader(t,h),this.updateStatsFromPart(t,e);const o={frag:t,part:e,payload:i.data,networkDetails:a};n(o),l(o)},onError:(n,i,r,s)=>{this.resetLoader(t,h),u(new Qe({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:w({url:c.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:s}))},onAbort:(n,i,r)=>{t.stats.aborted=e.stats.aborted,this.resetLoader(t,h),u(new Qe({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:t,part:e,error:new Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>{this.resetLoader(t,h),u(new Qe({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:r,stats:n}))}})}))}updateStatsFromPart(t,e){const n=t.stats,i=e.stats,r=i.total;if(n.loaded+=i.loaded,r){const i=Math.round(t.duration/e.duration),s=Math.min(Math.round(n.loaded/r),i),a=(i-s)*Math.round(n.loaded/s);n.total=n.loaded+a}else n.total=Math.max(n.loaded,n.total);const s=n.loading,a=i.loading;s.start?s.first+=a.first-a.start:(s.start=a.start,s.first=a.first),s.end=a.end}resetLoader(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()}}function Ge(t,e=null){const n=e||t,r={frag:t,part:e,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},s=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(i(s)&&i(a)){var o;let e=s,n=a;if("initSegment"===t.sn&&("AES-128"===(l=null==(o=t.decryptdata)?void 0:o.method)||"AES-256"===l)){const t=a-s;t%16&&(n=a+(16-t%16)),0!==s&&(r.resetIV=!0,e=s-16)}r.rangeStart=e,r.rangeEnd=n}var l;return r}function He(t,e){const n=new Error(`GAP ${t.gap?"tag":"attribute"} found`),i={type:a.MEDIA_ERROR,details:o.FRAG_GAP,fatal:!1,frag:t,error:n,networkDetails:null};return e&&(i.part=e),(e||t).stats.aborted=!0,new Qe(i)}class Qe extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class qe extends E{constructor(t,e){super(t,e),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Ve{constructor(t,e,n,i=0,r=-1,s=!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={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=n,this.size=i,this.part=r,this.partial=s}}const Ye={length:0,start:()=>0,end:()=>0};class Ke{static isBuffered(t,e){if(t){const n=Ke.getBuffered(t);for(let t=n.length;t--;)if(e>=n.start(t)&&e<=n.end(t))return!0}return!1}static bufferedRanges(t){if(t){const e=Ke.getBuffered(t);return Ke.timeRangesToArray(e)}return[]}static timeRangesToArray(t){const e=[];for(let n=0;n1&&t.sort(((t,e)=>t.start-e.start||e.end-t.end));let i=-1,r=[];if(n)for(let s=0;s=t[s].start&&e<=t[s].end&&(i=s);const a=r.length;if(a){const e=r[a-1].end;t[s].start-ee&&(r[a-1].end=t[s].end):r.push(t[s])}else r.push(t[s])}else r=t;let s,a=0,o=e,l=e;for(let t=0;t=u&&e<=h&&(i=t),e+n>=u&&e{const i=e.substring(2,e.length-1),r=null==n?void 0:n[i];return void 0===r?(t.playlistParsingError||(t.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),e):r}))}return e}function Je(t,e,n){let i,r,s=t.variableList;if(s||(t.variableList=s={}),"QUERYPARAM"in e){i=e.QUERYPARAM;try{const t=new self.URL(n).searchParams;if(!t.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`);r=t.get(i)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${e.message}`))}}else i=e.NAME,r=e.VALUE;i in s?t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):s[i]=r||""}function $e(t,e,n){const i=e.IMPORT;if(n&&i in n){let e=t.variableList;e||(t.variableList=e={}),e[i]=n[i]}else t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}const tn=/^(\d+)x(\d+)$/,en=/(.+?)=(".*?"|.*?)(?:,|$)/g;class nn{constructor(t,e){"string"==typeof t&&(t=nn.parseAttrList(t,e)),A(this,t)}get clientAttrs(){return Object.keys(this).filter((t=>"X-"===t.substring(0,2)))}decimalInteger(t){const e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e}hexadecimalInteger(t){if(this[t]){let e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;const n=new Uint8Array(e.length/2);for(let t=0;tNumber.MAX_SAFE_INTEGER?1/0:e}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,e){const n=this[t];return n?parseFloat(n):e}enumeratedString(t){return this[t]}enumeratedStringList(t,e){const n=this[t];return(n?n.split(/[ ,]+/):[]).reduce(((t,e)=>(t[e.toLowerCase()]=!0,t)),e)}bool(t){return"YES"===this[t]}decimalResolution(t){const e=tn.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}}static parseAttrList(t,e){let n;const i={};for(en.lastIndex=0;null!==(n=en.exec(t));){const r=n[1].trim();let s=n[2];const a=0===s.indexOf('"')&&s.lastIndexOf('"')===s.length-1;let o=!1;if(a)s=s.slice(1,-1);else switch(r){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(e&&(a||o))s=Ze(e,s);else if(!o&&!a)switch(r){case"CLOSED-CAPTIONS":if("NONE"===s)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":S.warn(`${t}: attribute ${r} is missing quotes`)}i[r]=s}return i}}function rn(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t||"SCTE35-CMD"===t}class sn{constructor(t,e,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==e?void 0:e.tagAnchor)||null,this.tagOrder=null!=(r=null==e?void 0:e.tagOrder)?r:n,e){const n=e.attr;for(const e in n)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==n[e]){S.warn(`DATERANGE tag attribute: "${e}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=e;break}t=A(new nn({}),n,t)}if(this.attr=t,e?(this._startDate=e._startDate,this._cue=e._cue,this._endDate=e._endDate,this._dateAtEnd=e._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const t=(null==e?void 0:e.endDate)||new Date(this.attr["END-DATE"]);i(t.getTime())&&(this._endDate=t)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return void 0===t?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return null===t||null===t.programDateTime?(S.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const e=this.duration;return null!==e?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*e):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(i(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&i(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}class an{constructor(t){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.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,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.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t)return this.advanced=!0,void(this.updated=!0);const e=this.lastPartSn-t.lastPartSn,n=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!n||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&i(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const t=this.driftEndTime-this.driftStartTime;if(t>0){return 1e3*(this.driftEnd-this.driftStart)/t}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const e=this.lastPartIndex;if(-1!==e){for(let n=t.length;n--;)if(t[n].index>e)return t[n].index;return e}}return 0}get lastPartSn(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function on(t){return"AES-128"===t||"AES-256"===t||"AES-256-CTR"===t}function ln(t){switch(t){case"AES-128":case"AES-256":return Oe;case"AES-256-CTR":return Me;default:throw new Error(`invalid full segment method ${t}`)}}function un(t){return Uint8Array.from(atob(t),(t=>t.charCodeAt(0)))}function hn(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(t=>t.charCodeAt(0)))}function cn(t){const e=t.split(":");let n=null;if("data"===e[0]&&2===e.length){const t=e[1].split(";"),i=t[t.length-1].split(",");if(2===i.length){const e="base64"===i[0],r=i[1];e?(t.splice(-1,1),n=un(r)):n=function(t){const e=hn(t).subarray(0,16),n=new Uint8Array(16);return n.set(e,16-e.length),n}(r)}}return n}const dn="undefined"!=typeof self?self:void 0;var fn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},pn="org.w3.clearkey",gn="com.apple.streamingkeydelivery",mn="com.microsoft.playready",vn="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function yn(t){switch(t){case gn:return fn.FAIRPLAY;case mn:return fn.PLAYREADY;case vn:return fn.WIDEVINE;case pn:return fn.CLEARKEY}}var An="1077efecc0b24d02ace33c1e52e2fb4b",bn="e2719d58a985b3c9781ab030af78d30e",wn="9a04f07998404286ab92e65be0885f95",En="edef8ba979d64acea3c827dcd51d21ed";function xn(t){return t===En?fn.WIDEVINE:t===wn?fn.PLAYREADY:t===An||t===bn?fn.CLEARKEY:void 0}function kn(t){switch(t){case fn.FAIRPLAY:return gn;case fn.PLAYREADY:return mn;case fn.WIDEVINE:return vn;case fn.CLEARKEY:return pn}}function Tn(t){const{drmSystems:e,widevineLicenseUrl:n}=t,i=e?[fn.FAIRPLAY,fn.WIDEVINE,fn.PLAYREADY,fn.CLEARKEY].filter((t=>!!e[t])):[];return!i[fn.WIDEVINE]&&n&&i.push(fn.WIDEVINE),i}const Cn=null!=dn&&null!=(Dn=dn.navigator)&&Dn.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var Dn;function Sn(t){const e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),n=String.fromCharCode.apply(null,Array.from(e)),i=n.substring(n.indexOf("<"),n.length),r=(new DOMParser).parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(r){const t=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(t){const e=un(t).subarray(0,16);return function(t){const e=function(t,e,n){const i=t[e];t[e]=t[n],t[n]=i};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(e),e}}return null}let In={};class Rn{static clearKeyUriToKeyIdMap(){In={}}constructor(t,e,n,i=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=e,this.keyFormat=n,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&!on(t)}isSupported(){if(this.method){if(on(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case gn:case vn:case mn:case pn:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(t){if(!this.encrypted||!this.uri)return null;if(on(this.method)&&this.uri&&!this.iv){"number"!=typeof t&&(S.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0);const e=function(t){const e=new Uint8Array(16);for(let n=12;n<16;n++)e[n]=t>>8*(15-n)&255;return e}(t);return new Rn(this.method,this.uri,"identity",this.keyFormatVersions,e)}const e=cn(this.uri);if(e)switch(this.keyFormat){case vn:this.pssh=e,e.length>=22&&(this.keyId=e.subarray(e.length-22,e.length-6));break;case mn:{const t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=wt(t,0,e),this.keyId=Sn(e);break}default:{let t=e.subarray(0,16);if(16!==t.length){const e=new Uint8Array(16);e.set(t,16-t.length),t=e}this.keyId=t;break}}if(!this.keyId||16!==this.keyId.byteLength){let t=In[this.uri];if(!t){const e=Object.keys(In).length%Number.MAX_SAFE_INTEGER;t=new Uint8Array(16);new DataView(t.buffer,12,4).setUint32(0,e),In[this.uri]=t}this.keyId=t}return this}}const Ln=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Bn=/#EXT-X-MEDIA:(.*)/g,Pn=/^#EXT(?:INF|-X-TARGETDURATION):/m,On=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Mn=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Nn{static findGroup(t,e){for(let n=0;n0&&i.length({id:t.attrs.AUDIO,audioCodec:t.audioCodec}))),SUBTITLES:s.map((t=>({id:t.attrs.SUBTITLES,textCodec:t.textCodec}))),"CLOSED-CAPTIONS":[]};let o=0;for(Bn.lastIndex=0;null!==(i=Bn.exec(t));){const t=new nn(i[1],n),s=t.TYPE;if(s){const n=a[s],i=r[s]||[];r[s]=i;const l=t.LANGUAGE,u=t["ASSOC-LANGUAGE"],h=t.CHANNELS,c=t.CHARACTERISTICS,d=t["INSTREAM-ID"],f={attrs:t,bitrate:0,id:o++,groupId:t["GROUP-ID"]||"",name:t.NAME||l||"",type:s,default:t.bool("DEFAULT"),autoselect:t.bool("AUTOSELECT"),forced:t.bool("FORCED"),lang:l,url:t.URI?Nn.resolve(t.URI,e):""};if(u&&(f.assocLang=u),h&&(f.channels=h),c&&(f.characteristics=c),d&&(f.instreamId=d),null!=n&&n.length){const t=Nn.findGroup(n,f.groupId)||n[0];Gn(f,t,"audioCodec"),Gn(f,t,"textCodec")}i.push(f)}}return r}static parseLevelPlaylist(t,e,n,r,s,a){var o;const l={url:e},u=new an(e),h=u.fragments,c=[];let d,f,p,g,m=null,v=0,y=0,b=0,w=0,E=0,x=null,k=new K(r,l),T=-1,C=!1,D=null;if(On.lastIndex=0,u.m3u8=t,u.hasVariableRefs=We(t),"#EXTM3U"!==(null==(o=On.exec(t))?void 0:o[0]))return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;null!==(d=On.exec(t));){C&&(C=!1,k=new K(r,l),k.playlistOffset=b,k.start=b,k.sn=v,k.cc=w,E&&(k.bitrate=E),k.level=n,m&&(k.initSegment=m,m.rawProgramDateTime&&(k.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),D&&(k.setByteRange(D),D=null)));const t=d[1];if(t){k.duration=parseFloat(t);const e=(" "+d[2]).slice(1);k.title=e||null,k.tagList.push(e?["INF",t,e]:["INF",t])}else if(d[3]){if(i(k.duration)){k.playlistOffset=b,k.start=b,p&&qn(k,p,u),k.sn=v,k.level=n,k.cc=w,h.push(k);const t=(" "+d[3]).slice(1);k.relurl=Ze(u,t),Hn(k,x,c),x=k,b+=k.duration,v++,y=0,C=!0}}else{if(d=d[0].match(Mn),!d){S.warn("No matches on slow regex match for level playlist!");continue}for(f=1;f0&&Yn(u,t,d),v=u.startSN=parseInt(s);break;case"SKIP":{u.skippedSegments&&Vn(u,t,d);const e=new nn(s,u),n=e.decimalInteger("SKIPPED-SEGMENTS");if(i(n)){u.skippedSegments+=n;for(let t=n;t--;)h.push(null);v+=n}const r=e.enumeratedString("RECENTLY-REMOVED-DATERANGES");r&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(r.split("\t")));break}case"TARGETDURATION":0!==u.targetduration&&Vn(u,t,d),u.targetduration=Math.max(parseInt(s),1);break;case"VERSION":null!==u.version&&Vn(u,t,d),u.version=parseInt(s);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||Vn(u,t,d),u.live=!1;break;case"#":(s||o)&&k.tagList.push(o?[s,o]:[s]);break;case"DISCONTINUITY":w++,k.tagList.push(["DIS"]);break;case"GAP":k.gap=!0,k.tagList.push([t]);break;case"BITRATE":k.tagList.push([t,s]),E=1e3*parseInt(s),i(E)?k.bitrate=E:E=0;break;case"DATERANGE":{const t=new nn(s,u),e=new sn(t,u.dateRanges[t.ID],u.dateRangeTagCount);u.dateRangeTagCount++,e.isValid||u.skippedSegments?u.dateRanges[e.id]=e:S.warn(`Ignoring invalid DATERANGE tag: "${s}"`),k.tagList.push(["EXT-X-DATERANGE",s]);break}case"DEFINE":{const t=new nn(s,u);"IMPORT"in t?$e(u,t,a):Je(u,t,e)}break;case"DISCONTINUITY-SEQUENCE":0!==u.startCC?Vn(u,t,d):h.length>0&&Yn(u,t,d),u.startCC=w=parseInt(s);break;case"KEY":{const t=Un(s,e,u);if(t.isSupported()){if("NONE"===t.method){p=void 0;break}p||(p={}),p[t.keyFormat]&&(p=A({},p)),p[t.keyFormat]=t}else S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${s}"`);break}case"START":u.startTimeOffset=zn(s);break;case"MAP":{const t=new nn(s,u);if(k.duration){const e=new K(r,l);Qn(e,t,n,p),m=e,k.initSegment=m,m.rawProgramDateTime&&!k.rawProgramDateTime&&(k.rawProgramDateTime=m.rawProgramDateTime)}else{const e=k.byteRangeEndOffset;if(e){const t=k.byteRangeStartOffset;D=`${e-t}@${t}`}else D=null;Qn(k,t,n,p),m=k,C=!0}m.cc=w;break}case"SERVER-CONTROL":g&&Vn(u,t,d),g=new nn(s),u.canBlockReload=g.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=g.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&g.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=g.optionalFloat("PART-HOLD-BACK",0),u.holdBack=g.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{u.partTarget&&Vn(u,t,d);const e=new nn(s);u.partTarget=e.decimalFloatingPoint("PART-TARGET");break}case"PART":{let t=u.partList;t||(t=u.partList=[]);const e=y>0?t[t.length-1]:void 0,n=y++,i=new nn(s,u),r=new X(i,k,l,n,e);t.push(r),k.duration+=r.duration;break}case"PRELOAD-HINT":{const t=new nn(s,u);u.preloadHint=t;break}case"RENDITION-REPORT":{const t=new nn(s,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(t);break}default:S.warn(`line parsed but not handled: ${d}`)}}}x&&!x.relurl?(h.pop(),b-=x.duration,u.partList&&(u.fragmentHint=x)):u.partList&&(Hn(k,x,c),k.cc=w,u.fragmentHint=k,p&&qn(k,p,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const I=h.length,R=h[0],L=h[I-1];if(b+=u.skippedSegments*u.targetduration,b>0&&I&&L){u.averagetargetduration=b/I;const t=L.sn;u.endSN="initSegment"!==t?t:0,u.live||(L.endList=!0),R&&void 0===u.startCC&&(u.startCC=R.cc),T>0&&(!function(t,e){let n=t[e];for(let i=e;i--;){const e=t[i];if(!e)return;e.programDateTime=n.programDateTime-1e3*e.duration,n=e}}(h,T),R&&c.unshift(R))}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(b+=u.fragmentHint.duration),u.totalduration=b,c.length&&u.dateRangeTagCount&&R&&Fn(c,u),u.endCC=w,u}}function Fn(t,e){const n=t.length;if(!n)return;const i=t[n-1],r=e.live?1/0:e.totalduration,s=Object.keys(e.dateRanges);for(let a=s.length;a--;){const o=e.dateRanges[s[a]],l=o.startDate.getTime();o.tagAnchor=i.ref;for(let i=n;i--;){const n=_n(e,l,t,i,r);if(-1!==n){o.tagAnchor=e.fragments[n].ref;break}}}}function _n(t,e,n,i,r){const s=n[i];if(s){const o=s.programDateTime;if(e>=o||0===i){var a;if(e<=o+1e3*(((null==(a=n[i+1])?void 0:a.start)||r)-s.start)){const r=n[i].sn-t.startSN,s=t.fragments;if(s.length>n.length){for(let a=(n[i+1]||s[s.length-1]).sn-t.startSN;a>r;a--){const t=s[a].programDateTime;if(e>=t&&et));["video","audio","text"].forEach((t=>{const i=n.filter((e=>Tt(e,t)));i.length&&(e[`${t}Codec`]=i.map((t=>t.split("/")[0])).join(","),n=n.filter((t=>-1===i.indexOf(t))))})),e.unknownCodecs=n}function Gn(t,e,n){const i=e[n];i&&(t[n]=i)}function Hn(t,e,n){t.rawProgramDateTime?n.push(t):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime)}function Qn(t,e,n,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=n,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function qn(t,e,n){t.levelkeys=e;const{encryptedFragments:i}=n;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some((t=>e[t].isCommonEncryption))||i.push(t)}function Vn(t,e,n){t.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${n[0]})`)}function Yn(t,e,n){t.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${n[0]})`)}function Kn(t,e){const n=e.startPTS;if(i(n)){let i,r=0;e.sn>t.sn?(r=n-t.start,i=t):(r=t.start-n,i=e),i.duration!==r&&i.setDuration(r)}else if(e.sn>t.sn){t.cc===e.cc&&t.minEndPTS?e.setStart(t.start+(t.minEndPTS-t.start)):e.setStart(t.start+t.duration)}else e.setStart(Math.max(t.start-e.duration,0))}function Xn(t,e,n,r,s,a){r-n<=0&&(S.warn("Fragment should have a positive duration",e),r=n+e.duration,a=s+e.duration);let o=n,l=r;const u=e.startPTS,h=e.endPTS;if(i(u)){const t=Math.abs(u-n);i(e.deltaPTS)?e.deltaPTS=Math.max(t,e.deltaPTS):e.deltaPTS=t,o=Math.max(n,u),n=Math.min(n,u),s=Math.min(s,e.startDTS),l=Math.min(r,h),r=Math.max(r,h),a=Math.max(a,e.endDTS)}const c=n-e.start;0!==e.start&&e.setStart(n),e.setDuration(r-e.start),e.startPTS=n,e.maxStartPTS=o,e.startDTS=s,e.endPTS=r,e.minEndPTS=l,e.endDTS=a;const d=e.sn;if(!t||dt.endSN)return 0;let f;const p=d-t.startSN,g=t.fragments;for(g[p]=e,f=p;f>0;f--)Kn(g[f],g[f-1]);for(f=p;f=0;t--){const e=r[t].initSegment;if(e){n=e;break}}let s;t.fragmentHint&&delete t.fragmentHint.endPTS,function(t,e,n){const i=e.skippedSegments,r=Math.max(t.startSN,e.startSN)-e.startSN,s=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,a=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;for(let u=r;u<=s;u++){const r=l[a+u];let s=o[u];if(i&&!s&&r&&(s=e.fragments[u]=r),r&&s){if(n(r,s,u,o),r.url&&r.url!==s.url)return void(e.playlistParsingError=Zn(`media sequence mismatch ${s.sn}:`,t,e,r,s));if(r.cc!==s.cc)return void(e.playlistParsingError=Zn(`discontinuity sequence mismatch (${r.cc}!=${s.cc})`,t,e,r,s))}}}(t,e,((t,r,a,o)=>{if((!e.startCC||e.skippedSegments)&&r.cc!==t.cc){const n=t.cc-r.cc;for(let t=a;t{var e;!t||t.initSegment&&t.initSegment.relurl!==(null==(e=n)?void 0:e.relurl)||(t.initSegment=n)})),e.skippedSegments){if(e.deltaUpdateFailed=a.some((t=>!t)),e.deltaUpdateFailed){S.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let t=e.skippedSegments;t--;)a.shift();e.startSN=a[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=function(t,e){const{dateRanges:n,recentlyRemovedDateranges:i}=e,r=A({},t);i&&i.forEach((t=>{delete r[t]}));const s=Object.keys(r).length;s&&Object.keys(n).forEach((t=>{const e=r[t],i=new sn(n[t].attr,e);i.isValid?(r[t]=i,e||(i.tagOrder+=s)):S.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${$t(n[t].attr)}"`)}));return r}(t.dateRanges,e));const n=t.fragments.filter((t=>t.rawProgramDateTime));if(t.hasProgramDateTime&&!e.hasProgramDateTime)for(let t=1;t{e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),s?Xn(e,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):Jn(t,e),a.length&&(e.totalduration=e.edge-a[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const t=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=t),e.driftEndTime=u,e.driftEnd=t}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime;-1===e.requestScheduled&&(e.requestScheduled=t.requestScheduled)}function Zn(t,e,n,i,r){return new Error(`${t} ${r.url}\nPlaylist starting @${e.startSN}\n${e.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function Jn(t,e,n=!0){const i=e.startSN+e.skippedSegments-t.startSN,r=t.fragments,s=i>=0;let a=0;if(s&&ie){const t=1e3*i[i.length-1].duration;t{var n;null==(n=t.details)||n.fragments.forEach((t=>{t.level=e,t.initSegment&&(t.initSegment.level=e)}))}))}function si(t,e){for(let i=0,r=t.length;it.startCC)}(e,t))return;const n=Math.min(e.endCC,t.endCC),i=si(e.fragments,n),r=si(t.fragments,n);if(!i||!r)return;S.log(`Aligning playlist at start of dicontinuity sequence ${n}`);oi(i.start-r.start,t)}function ui(t,e){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;const n=t.fragments,i=e.fragments;if(!n.length||!i.length)return;let r,s;const a=Math.min(e.endCC,t.endCC);e.startCC{const{config:t,fragCurrent:e,media:n,mediaBuffer:r,state:s}=this,a=n?n.currentTime:0,o=Ke.bufferInfo(r||n,a,t.maxBufferHole);if(this.log(`media seeking to ${i(a)?a.toFixed(3):a}, state: ${s}`),this.state===Ai)this.resetLoadingState();else if(e){const n=t.maxFragLookUpTolerance,i=e.start-n,r=e.start+e.duration+n;if(!o.len||ro.end){const t=a>r;(athis.lastCurrentTime&&(this.lastCurrentTime=a),!this.loadingParts){const t=Math.max(o.end,a),e=this.shouldLoadParts(this.getLevelDetails(),t);e&&(this.log(`LL-Part loading ON after seeking to ${a.toFixed(2)} with buffer @${t.toFixed(2)}`),this.loadingParts=e)}}this.hls.hasEnoughToStart||o.len||(this.log(`setting startPosition to ${a} because of seek before start`),this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=s,this.hls=t,this.fragmentLoader=new je(t.config),this.keyLoader=n,this.fragmentTracker=e,this.config=t.config,this.decrypter=new Ue(t.config)}registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===ci)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=ci}get startPositionValue(){const{nextLoadPosition:t,startPosition:e}=this;return-1===e&&t?t:e}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,e){if(e.live||!this.media)return!1;const n=t.end||0,i=this.config.timelineOffset||0;if(n<=i)return!1;const r=t.buffered;this.config.maxBufferHole&&r&&r.length>1&&(t=Ke.bufferedInfo(r,t.start,0));const s=t.nextStart;if(s&&s>i&&s{const e=t.frag;if(this.fragContextChanged(e))return this.warn(`${e.type} sn: ${e.sn}${t.part?" part: "+t.part.index:""} of ${this.fragInfo(e,!1,t.part)}) was dropped during download.`),void this.fragmentTracker.removeFragment(e);e.stats.chunkCount++,this._handleFragmentLoadProgress(t)})).then((t=>{if(!t)return;const e=this.state,n=t.frag;this.fragContextChanged(n)?(e===pi||!this.fragCurrent&&e===vi)&&(this.fragmentTracker.removeFragment(n),this.state=di):("payload"in t&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(l.FRAG_LOADED,t)),this._handleFragmentLoadComplete(t))})).catch((e=>{this.state!==ci&&this.state!==bi&&(this.warn(`Frag error: ${(null==e?void 0:e.message)||e}`),this.resetFragmentLoading(t))}))}clearTrackerIfNeeded(t){var e;const{fragmentTracker:n}=this;if(n.getState(t)===De){const e=t.type,i=this.getFwdBufferInfo(this.mediaBuffer,e),r=Math.max(t.duration,i?i.len:this.config.maxBufferLength),s=this.backtrackFragment;(1===(s?t.sn-s.sn:0)||this.reduceMaxBufferLength(r,t.duration))&&n.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?n.removeAllFragments():n.hasParts(t.type)&&(n.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),n.getState(t)===Se&&n.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const e=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const e=t.details;return(null==e?void 0:e.live)&&"EVENT"!==e.type&&(this.levelLastLoaded!==t||e.expired)}flushMainBuffer(t,e,n=null){if(!(t-e))return;const i={startOffset:t,endOffset:e,type:n};this.hls.trigger(l.BUFFER_FLUSHING,i)}_loadInitSegment(t,e){this._doFragLoad(t,e).then((t=>{const e=null==t?void 0:t.frag;if(!e||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return t})).then((t=>{const{hls:e}=this,{frag:n,payload:i}=t,r=n.decryptdata;if(i&&i.byteLength>0&&null!=r&&r.key&&r.iv&&on(r.method)){const s=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer,ln(r.method)).catch((t=>{throw e.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:n}),t})).then((i=>{const r=self.performance.now();return e.trigger(l.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:s,tdecrypt:r}}),t.payload=i,this.completeInitSegmentLoad(t)}))}return this.completeInitSegmentLoad(t)})).catch((e=>{this.state!==ci&&this.state!==bi&&(this.warn(e),this.resetFragmentLoading(t))}))}completeInitSegmentLoad(t){const{levels:e}=this;if(!e)throw new Error("init load aborted, missing levels");const n=t.frag.stats;this.state!==ci&&(this.state=di),t.frag.data=new Uint8Array(t.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(t){const{fragCurrent:e}=this;return!t||!e||t.sn!==e.sn||t.level!==e.level}fragBufferedComplete(t,e){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.fragInfo(t,!1,e)} > buffer:${n?hi(Ke.getBuffered(n)):"(detached)"})`),Y(t)){var i;if(t.type!==g){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return void(this.state=di)}const e=null==(i=this.levels)?void 0:i[t.level];null!=e&&e.fragmentError&&(this.log(`Resetting level fragment error count of ${e.fragmentError} on frag buffered`),e.fragmentError=0)}this.state=di}_handleFragmentLoadComplete(t){const{transmuxer:e}=this;if(!e)return;const{frag:n,part:i,partsLoaded:r}=t,s=!r||0===r.length||r.some((t=>!t)),a=new Ve(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!s);e.flush(a)}_handleFragmentLoadProgress(t){}_doFragLoad(t,e,n=null,r){var s;this.fragCurrent=t;const a=null==e?void 0:e.details;if(!this.levels||!a)throw new Error(`frag load aborted, missing level${a?"":" detail"}s`);let o=null;!t.encrypted||null!=(s=t.decryptdata)&&s.key?t.encrypted||(o=this.keyLoader.loadClear(t,a.encryptedFragments),o&&this.log("[eme] blocking frag load until media-keys acquired")):(this.log(`Loading key for ${t.sn} of [${a.startSN}-${a.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=fi,this.fragCurrent=t,o=this.keyLoader.load(t).then((t=>{if(!this.fragContextChanged(t.frag))return this.hls.trigger(l.KEY_LOADED,t),this.state===fi&&(this.state=di),t})),this.hls.trigger(l.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING"))));const u=this.fragPrevious;if(Y(t)&&(!u||t.sn!==u.sn)){const n=this.shouldLoadParts(e.details,t.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==u?void 0:u.sn}->${t.sn}`),this.loadingParts=n)}if(n=Math.max(t.start,n||0),this.loadingParts&&Y(t)){const i=a.partList;if(i&&r){n>t.end&&a.fragmentHint&&(t=a.fragmentHint);const s=this.getNextPart(i,t,n);if(s>-1){const u=i[s];let h;return t=this.fragCurrent=u.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${u.index} (${s}/${i.length-1}) of ${this.fragInfo(t,!1,u)}) cc: ${t.cc} [${a.startSN}-${a.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=u.start+u.duration,this.state=pi,h=o?o.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(t,u,e,r))).catch((t=>this.handleFragLoadError(t))):this.doFragPartsLoad(t,u,e,r).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(l.FRAG_LOADING,{frag:t,part:u,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}if(!t.url||this.loadedEndOfParts(i,n))return Promise.resolve(null)}}if(Y(t)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${a?"["+a.startSN+"-"+a.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),i(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=pi;const h=this.config.progressive;let c;return c=h&&o?o.then((e=>!e||this.fragContextChanged(null==e?void 0:e.frag)?null:this.fragmentLoader.load(t,r))).catch((t=>this.handleFragLoadError(t))):Promise.all([this.fragmentLoader.load(t,h?r:void 0),o]).then((([t])=>(!h&&t&&r&&r(t),t))).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(l.FRAG_LOADING,{frag:t,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(t,e,n,i){return new Promise(((r,s)=>{var a;const o=[],u=null==(a=n.details)?void 0:a.partList,h=e=>{this.fragmentLoader.loadPart(t,e,i).then((i=>{o[e.index]=i;const s=i.part;this.hls.trigger(l.FRAG_LOADED,i);const a=ni(n.details,t.sn,e.index+1)||ii(u,t.sn,e.index+1);if(!a)return r({frag:t,part:s,partsLoaded:o});h(a)})).catch(s)};h(e)}))}handleFragLoadError(t){if("data"in t){const e=t.data;t.data&&e.details===o.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(l.ERROR,e)}else this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const e=this.getCurrentContext(t);if(!e||this.state!==vi)return void(this.fragCurrent||this.state===ci||this.state===bi||(this.state=di));const{frag:n,part:i,level:r}=e,s=self.performance.now();n.stats.parsing.end=s,i&&(i.stats.parsing.end=s);const a=this.getLevelDetails(),o=a&&n.sn>a.endSN||this.shouldLoadParts(a,n.end);o!==this.loadingParts&&(this.log(`LL-Part loading ${o?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=o),this.updateLevelTiming(n,i,r,t.partial)}shouldLoadParts(t,e){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(null!=t&&t.partList){var n;const r=t.partList[0];if(e>=r.end+((null==(n=t.fragmentHint)?void 0:n.duration)||0)){var i;if((this.hls.hasEnoughToStart?(null==(i=this.media)?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:e,fragCurrent:n}=this,{level:i,sn:r,part:s}=t;if(null==e||!e[i])return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const a=e[i],o=a.details,l=s>-1?ni(o,r,s):null,u=l?l.fragment:ei(o,r,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:a}):null}bufferFragmentData(t,e,n,i,r){var s;if(!t||this.state!==vi)return;const{data1:a,data2:o}=t;let u=a;if(a&&o&&(u=gt(a,o)),null==(s=u)||!s.length)return;const h={type:t.type,frag:e,part:n,chunkMeta:i,parent:e.type,data:u};if(this.hls.trigger(l.BUFFER_APPENDING,h),t.dropped&&t.independent&&!n){if(r)return;this.flushBufferGap(e)}}flushBufferGap(t){const e=this.media;if(!e)return;if(!Ke.isBuffered(e,e.currentTime))return void this.flushMainBuffer(0,t.start);const n=e.currentTime,i=Ke.bufferInfo(e,n,0),r=t.duration,s=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),a=Math.max(Math.min(t.start-s,i.end-s),n+s);t.start-a>s&&this.flushMainBuffer(a,t.start)}getFwdBufferInfo(t,e){var n;const r=this.getLoadPosition();if(!i(r))return null;const s=this.lastCurrentTime>r||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,r,e,s)}getFwdBufferInfoAtPos(t,e,n,i){const r=Ke.bufferInfo(t,e,i);if(0===r.len&&void 0!==r.nextStart){const s=this.fragmentTracker.getBufferedFrag(e,n);if(s&&(r.nextStart<=s.end||s.gap)){const n=Math.max(Math.min(r.nextStart,s.end)-e,i);return Ke.bufferInfo(t,e,n)}}return r}getMaxBufferLength(t){const{config:e}=this;let n;return n=t?Math.max(8*e.maxBufferSize/t,e.maxBufferLength):e.maxBufferLength,Math.min(n,e.maxMaxBufferLength)}reduceMaxBufferLength(t,e){const n=this.config,i=Math.max(Math.min(t-e,n.maxBufferLength),e),r=Math.max(t-3*e,n.maxMaxBufferLength/2,i);return r>=i&&(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(t,e=f){var n;const i=null==(n=this.fragmentTracker)?void 0:n.getAppendedFrag(t,e);return i&&"fragment"in i?i.fragment:i}getNextFragment(t,e){const n=e.fragments,i=n.length;if(!i)return null;const{config:r}=this,s=n[0].start,a=r.lowLatencyMode&&!!e.partList;let o=null;if(e.live){const n=r.initialLiveManifestSize;if(i=s?n:i)||o.start:t;this.log(`Setting startPosition to ${r} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${i} frag.start: ${null==(l=o)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=r}}else t<=s&&(o=n[0]);if(!o){const n=this.loadingParts?e.partEnd:e.fragmentEnd;o=this.getFragmentAtPosition(t,n,e)}let u=this.filterReplacedPrimary(o,e);if(!u&&o){const t=o.sn-e.startSN;u=this.filterReplacedPrimary(n[t+1]||null,e)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(t,e){const n=this.fragmentTracker.getState(t);return(n===Ie||n===Se&&!!t.gap)&&this.nextLoadPosition>e}getNextFragmentLoopLoading(t,e,n,i,r){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,e),s&&!s.gap&&n.nextStart)){const t=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i,0);if(null!==t&&n.len+t.len>=r){const t=s.sn;return this.loopSn!==t&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${t}`),this.loopSn=t),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ki(this.hls.config)){var t,e;if(null==(t=this.hls.interstitialsManager)||null==(e=t.playingItem)?void 0:e.event)return!0}return!1}filterReplacedPrimary(t,e){if(!t)return t;if(ki(this.hls.config)&&t.type!==g){const n=this.hls.interstitialsManager,i=null==n?void 0:n.bufferingItem;if(i){const n=i.event;if(n){if(n.appendInPlace||Math.abs(t.start-i.start)>1||0===i.start)return null}else{if(t.end<=i.start&&!1===(null==e?void 0:e.live))return null;if(t.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||t.start-i.end>1))return null}}const r=null==n?void 0:n.playerQueue;if(r)for(let e=r.length;e--;){const n=r[e].interstitial;if(n.appendInPlace&&t.start>=n.startTime&&t.end<=n.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment}getNextPart(t,e,n){let i=-1,r=!1,s=!0;for(let a=0,o=t.length;a-1&&nn.start&&n.loaded}getInitialLiveFragment(t){const e=t.fragments,n=this.fragPrevious;let r=null;if(n){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=function(t,e,n){if(null===e||!Array.isArray(t)||!t.length||!i(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;for(let i=0;i=t.startSN&&i<=t.endSN){const s=e[i-t.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=de(t,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const e=this.hls.liveSyncPosition;null!==e&&(r=this.getFragmentAtPosition(e,this.bitrateTest?t.fragmentEnd:t.edge,t))}return r}getFragmentAtPosition(t,e,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:s,endSN:a}=n;const{fragmentHint:o}=n,{maxFragLookUpTolerance:l}=i,u=n.partList,h=!!(this.loadingParts&&null!=u&&u.length&&o);let c;if(h&&o&&!this.bitrateTest&&u[u.length-1].fragment.sn===o.sn&&(s=s.concat(o),a=o.sn),te-l||null!=(d=this.media)&&d.paused||!this.startFragRequested?0:l)}else c=s[s.length-1];if(c){const t=c.sn-n.startSN,e=this.fragmentTracker.getState(c);if((e===Ie||e===Se&&c.gap)&&(r=c),r&&c.sn===r.sn&&(!h||u[0].fragment.sn>c.sn||!n.live&&!h)){if(r&&c.level===r.level){const e=s[t+1];c=c.sn${t.startSN} fragments: ${r}`),i}return s}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)}setStartPosition(t,e){let n=this.startPosition;n=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(t,e){this.transmuxer&&t.type===this.playlistType&&Y(t)&&t.stats.aborted&&(this.warn(`Fragment ${t.sn}${e?" part "+e.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===gi)||(this.state=di)}onFragmentOrKeyLoadError(t,e){if(e.chunkMeta&&!e.frag){const t=this.getCurrentContext(e.chunkMeta);t&&(e.frag=t.frag)}const n=e.frag;if(!n||n.type!==t||!this.levels)return;var i;if(this.fragContextChanged(n))return void this.warn(`Frag load error must match current frag to retry ${n.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const r=e.details===o.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(n,!0);const s=e.errorAction,{action:a,flags:l,retryCount:u=0,retryConfig:h}=s||{},c=!!s&&!!h,d=c&&a===we,f=c&&!s.resolved&&l===xe;if(!d&&f&&Y(n)&&!n.endList)this.resetFragmentErrors(t),this.treatAsGap(n),s.resolved=!0;else if((d||f)&&u.5;r&&this.reduceMaxBufferLength(i.len,(null==e?void 0:e.duration)||10);const s=!r;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),e&&(this.fragmentTracker.removeFragment(e),this.nextLoadPosition=e.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===p&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==ci&&(this.state=di)}afterBufferFlushed(t,e,n){if(!t)return;const i=Ke.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,n),this.state===Ai&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==ci&&(this.state=di)}resetStartWhenNotLoaded(t){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=t?t.details:null;null!=e&&e.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(e,e.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.warn(`The loading context changed while buffering fragment ${t.sn} of ${this.playlistLabel()} ${t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,e,n,i){const r=n.details;if(!r)return void this.warn("level.details undefined");var s;if(!Object.keys(t.elementaryStreams).reduce(((e,s)=>{const a=t.elementaryStreams[s];if(a){const o=a.endPTS-a.startPTS;if(o<=0)return this.warn(`Could not parse fragment ${t.sn} ${s} duration reliably (${o})`),e||!1;const u=i?0:Xn(r,t,a.startPTS,a.endPTS,a.startDTS,a.endDTS);return this.hls.trigger(l.LEVEL_PTS_UPDATED,{details:r,level:n,drift:u,type:s,frag:t,start:a.startPTS,end:a.endPTS}),!0}return e}),!1)&&(0===n.fragmentError&&this.treatAsGap(t,n),null===(null==(s=this.transmuxer)?void 0:s.error))){const e=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(e.message),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,error:e,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=yi,this.log(`Parsed ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.fragInfo(t,!1,e)})`),this.hls.trigger(l.FRAG_PARSED,{frag:t,part:e})}playlistLabel(){return this.playlistType===f?"level":"track"}fragInfo(t,e=!0,n){var i,r;return`${this.playlistLabel()} ${t.level} (${n?"part":"frag"}:[${(null!=(i=e&&!n?t.startPTS:(n||t).start)?i:NaN).toFixed(3)}-${(null!=(r=e&&!n?t.endPTS:(n||t).end)?r:NaN).toFixed(3)}]${n&&"main"===t.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(t,e){e&&e.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;null==(t=this.transmuxer)||t.reset()}recoverWorkerError(t){"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(t){const e=this._state;e!==t&&(this._state=t,this.log(`${e}->${t}`))}get state(){return this._state}}function ki(t){return!!t.interstitialsController&&!1!==t.enableInterstitialPlayback}class Ti{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:e}=this;let n;return t.length?(n=1===t.length?t[0]:function(t,e){const n=new Uint8Array(e);let i=0;for(let e=0;e0)return t.subarray(n,n+i)}function Ni(t,e){return 255===t[e]&&240==(246&t[e+1])}function Fi(t,e){return 1&t[e+1]?7:9}function _i(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function Ui(t,e){return e+1=t.length)return!1;const i=_i(t,e);if(i<=n)return!1;const r=e+i;return r===t.length||Ui(t,r)}return!1}function ji(t,e,n,i,r){if(!t.samplerate){const s=function(t,e,n,i){const r=e[n+2],s=r>>2&15;if(s>12){const e=new Error(`invalid ADTS sampling index:${s}`);return void t.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!0,error:e,reason:e.message})}const u=1+(r>>6&3),h=e[n+3]>>6&3|(1&r)<<2,c="mp4a.40."+u,d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][s];let f=s;5!==u&&29!==u||(f-=3);const p=[u<<3|(14&f)>>1,(1&f)<<7|h<<3];return S.log(`manifest codec:${i}, parsed codec:${c}, channels:${h}, rate:${d} (ADTS object type:${u} sampling index:${s})`),{config:p,samplerate:d,channelCount:h,codec:c,parsedCodec:c,manifestCodec:i}}(e,n,i,r);if(!s)return;A(t,s)}}function Gi(t){return 9216e4/t}function Hi(t,e,n,i,r){const s=i+r*Gi(t.samplerate),a=function(t,e){const n=Fi(t,e);if(e+n<=t.length){const i=_i(t,e)-n;if(i>0)return{headerLength:n,frameLength:i}}}(e,n);let o;if(a){const{frameLength:i,headerLength:r}=a,l=r+i,u=Math.max(0,n+l-e.length);u?(o=new Uint8Array(l-r),o.set(e.subarray(n+r,e.length),0)):o=e.subarray(n+r,n+l);const h={unit:o,pts:s};return u||t.samples.push(h),{sample:h,length:l,missing:u}}const l=e.length-n;o=new Uint8Array(l),o.set(e.subarray(n,e.length),0);return{sample:{unit:o,pts:s},length:l,missing:-1}}function Qi(t,e){return Pi(t,e)&&Oi(t,e+6)+10<=t.length-e}function qi(t,e=0,n=1/0){return function(t,e,n,i){const r=function(t){return t instanceof ArrayBuffer?t:t.buffer}(t);let s=1;"BYTES_PER_ELEMENT"in i&&(s=i.BYTES_PER_ELEMENT);const a=(c=t,c&&c.buffer instanceof ArrayBuffer&&void 0!==c.byteLength&&void 0!==c.byteOffset?t.byteOffset:0),o=(a+t.byteLength)/s,l=(a+e)/s,u=Math.floor(Math.max(0,Math.min(l,o))),h=Math.floor(Math.min(u+Math.max(n,0),o));var c;return new i(r,u,h-u)}(t,e,n,Uint8Array)}function Vi(t){const e={key:t.type,description:"",data:"",mimeType:null,pictureType:null};if(t.size<2)return;if(3!==t.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=t.data.subarray(1).indexOf(0);if(-1===n)return;const i=L(qi(t.data,1,n)),r=t.data[2+n],s=t.data.subarray(3+n).indexOf(0);if(-1===s)return;const a=L(qi(t.data,3+n,s));let o;return o="--\x3e"===i?L(qi(t.data,4+n+s)):function(t){return t instanceof ArrayBuffer?t:0==t.byteOffset&&t.byteLength==t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer}(t.data.subarray(4+n+s)),e.mimeType=i,e.pictureType=r,e.description=a,e.data=o,e}function Yi(t){return"PRIV"===t.type?function(t){if(t.size<2)return;const e=L(t.data,!0),n=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:n.buffer}}(t):"W"===t.type[0]?function(t){if("WXXX"===t.type){if(t.size<2)return;let e=1;const n=L(t.data.subarray(e),!0);e+=n.length+1;const i=L(t.data.subarray(e));return{key:t.type,info:n,data:i}}const e=L(t.data);return{key:t.type,info:"",data:e}}(t):"APIC"===t.type?Vi(t):function(t){if(t.size<2)return;if("TXXX"===t.type){let e=1;const n=L(t.data.subarray(e),!0);e+=n.length+1;const i=L(t.data.subarray(e));return{key:t.type,info:n,data:i}}const e=L(t.data.subarray(1));return{key:t.type,info:"",data:e}}(t)}function Ki(t){const e=String.fromCharCode(t[0],t[1],t[2],t[3]),n=Oi(t,4);return{type:e,size:n,data:t.subarray(10,10+n)}}function Xi(t){let e=0;const n=[];for(;Pi(t,e);){const i=Oi(t,e+6);t[e+5]>>6&1&&(e+=10),e+=10;const r=e+i;for(;e+100&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:$i.audioId3,duration:Number.POSITIVE_INFINITY});s{if(i(t))return 90*t;return 9e4*e+(n?9e4*n.baseTime/n.timescale:0)};let ir=null;const rr=[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],sr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],ar=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],or=[0,1,1,4];function lr(t,e,n,i,r){if(n+24>e.length)return;const s=ur(e,n);if(s&&n+s.frameLength<=e.length){const a=i+r*(9e4*s.samplesPerFrame/s.sampleRate),o={unit:e.subarray(n,n+s.frameLength),pts:a,dts:a};return t.config=[],t.channelCount=s.channelCount,t.samplerate=s.sampleRate,t.samples.push(o),{sample:o,length:s.frameLength,missing:0}}}function ur(t,e){const n=t[e+1]>>3&3,i=t[e+1]>>1&3,r=t[e+2]>>4&15,s=t[e+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==s){const a=t[e+2]>>1&1,o=t[e+3]>>6,l=1e3*rr[14*(3===n?3-i:3===i?3:4)+r-1],u=sr[3*(3===n?0:2===n?1:2)+s],h=3===o?1:2,c=ar[n][i],d=or[i],f=8*c*d,p=Math.floor(c*l/u+a)*d;if(null===ir){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ir=t?parseInt(t[1]):0}return!!ir&&ir<=87&&2===i&&l>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:u,channelCount:h,frameLength:p,samplesPerFrame:f}}}function hr(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function cr(t,e){return e+1{let n=0,i=5;e+=i;const r=new Uint32Array(1),s=new Uint32Array(1),a=new Uint8Array(1);for(;i>0;){a[0]=t[e];const o=Math.min(i,8),l=8-o;s[0]=4278190080>>>24+l<>l,n=n?n<e.length)return-1;if(11!==e[n]||119!==e[n+1])return-1;const s=e[n+4]>>6;if(s>=3)return-1;const a=[48e3,44100,32e3][s],o=63&e[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+s];if(n+l>e.length)return-1;const u=e[n+6]>>5;let h=0;2===u?h+=2:(1&u&&1!==u&&(h+=2),4&u&&(h+=2));const c=(e[n+6]<<8|e[n+7])>>12-h&1,d=[2,1,2,3,3,4,4,5][u]+c,f=e[n+5]>>3,p=7&e[n+5],g=new Uint8Array([s<<6|f<<1|p>>2,(3&p)<<6|u<<3|c<<2|o>>4,o<<4&224]),m=i+r*(1536/a*9e4),v=e.subarray(n,n+l);return t.config=g,t.channelCount=d,t.samplerate=a,t.samples.push({unit:v,pts:m}),l}const mr=/\/emsg[-/]ID3/i;function vr(t,e){return i(t.presentationTime)?t.presentationTime/t.timeScale:e+t.presentationTimeDelta/t.timeScale}class yr{constructor(t,e,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Ue(e,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,Oe)}decryptAacSample(t,e,n){const i=t[e].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),s=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(s).then((r=>{const s=new Uint8Array(r);i.set(s,16),this.decrypter.isSync()||this.decryptAacSamples(t,e+1,n)}))}decryptAacSamples(t,e,n){for(;;e++){if(e>=t.length)return void n();if(!(t[e].unit.length<32)&&(this.decryptAacSample(t,e,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const e=16*Math.floor((t.length-48)/160)+16,n=new Int8Array(e);let i=0;for(let e=32;e{r.data=this.getAvcDecryptedUnit(s,a),this.decrypter.isSync()||this.decryptAvcSamples(t,e,n+1,i)}))}decryptAvcSamples(t,e,n,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,n=0){if(e>=t.length)return void i();const r=t[e].units;for(;!(n>=r.length);n++){const s=r[n];if(!(s.data.length<=48||1!==s.type&&5!==s.type||(this.decryptAvcSample(t,e,n,i,s),this.decrypter.isSync())))return}}}}class Ar{constructor(){this.VideoSample=null}createVideoSample(t,e,n){return{key:t,frame:!1,pts:e,dts:n,units:[],length:0}}getLastNalUnit(t){var e;let n,i=this.VideoSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){const t=i.units;n=t[t.length-1]}return n}pushAccessUnit(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){const n=e.samples,i=n.length;if(!i)return void e.dropped++;{const e=n[i-1];t.pts=e.pts,t.dts=e.dts}}e.samples.push(t)}}parseNALu(t,e,n){const i=e.byteLength;let r=t.naluState||0;const s=r,a=[];let o,l,u,h=0,c=-1,d=0;for(-1===r&&(c=0,d=this.getNALuType(e,0),r=0,h=1);h=0){const t={data:e.subarray(c,l),type:d};a.push(t)}else{const n=this.getLastNalUnit(t.samples);n&&(s&&h<=4-s&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-s)),l>0&&(n.data=gt(n.data,e.subarray(0,l)),n.state=0))}h=0&&r>=0){const t={data:e.subarray(c,i),type:d,state:r};a.push(t)}if(0===a.length){const n=this.getLastNalUnit(t.samples);n&&(n.data=gt(n.data,e))}return t.naluState=r,a}}class br{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,e=this.bytesAvailable,n=t.byteLength-e,i=new Uint8Array(4),r=Math.min(4,e);if(0===r)throw new Error("no bytes available");i.set(t.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(t){let e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(e=(t-=this.bitsAvailable)>>3,t-=e<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let e=Math.min(this.bitsAvailable,t);const n=this.word>>>32-e;if(t>32&&S.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return e=t-e,e>0&&this.bitsAvailable?n<>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class wr extends Ar{parsePES(t,e,n,i){const r=this.parseNALu(t,n.data,i);let s,a=this.VideoSample,o=!1;n.data=null,a&&r.length&&!t.audFound&&(this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach((i=>{var r,l;switch(i.type){case 1:{let e=!1;s=!0;const r=i.data;if(o&&r.length>4){const t=this.readSliceType(r);2!==t&&4!==t&&7!==t&&9!==t||(e=!0)}var u;if(e)null!=(u=a)&&u.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.frame=!0,a.key=e;break}case 5:s=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 6:s=!0,At(i.data,1,n.pts,e.samples);break;case 7:{var h,c;s=!0,o=!0;const e=i.data,n=this.readSPS(e);if(!t.sps||t.width!==n.width||t.height!==n.height||(null==(h=t.pixelRatio)?void 0:h[0])!==n.pixelRatio[0]||(null==(c=t.pixelRatio)?void 0:c[1])!==n.pixelRatio[1]){t.width=n.width,t.height=n.height,t.pixelRatio=n.pixelRatio,t.sps=[e];const i=e.subarray(1,4);let r="avc1.";for(let t=0;t<3;t++){let e=i[t].toString(16);e.length<2&&(e="0"+e),r+=e}t.codec=r}break}case 8:s=!0,t.pps=[i.data];break;case 9:s=!0,t.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,t),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:s=!0;break;default:s=!1}if(a&&s){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null)}getNALuType(t,e){return 31&t[e]}readSliceType(t){const e=new br(t);return e.readUByte(),e.readUEG(),e.readUEG()}skipScalingList(t,e){let n,i=8,r=8;for(let s=0;s{var r,l;switch(i.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.frame=!0,s=!0;break;case 16:case 17:case 18:case 21:var u;if(s=!0,o)null!=(u=a)&&u.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:s=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 39:s=!0,At(i.data,2,n.pts,e.samples);break;case 32:s=!0,t.vps||("object"!=typeof t.params&&(t.params={}),t.params=A(t.params,this.readVPS(i.data)),this.initVPS=i.data),t.vps=[i.data];break;case 33:if(s=!0,o=!0,void 0===t.vps||t.vps[0]===this.initVPS||void 0===t.sps||this.matchSPS(t.sps[0],i.data)||(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const e=this.readSPS(i.data);t.width=e.width,t.height=e.height,t.pixelRatio=e.pixelRatio,t.codec=e.codecString,t.sps=[],"object"!=typeof t.params&&(t.params={});for(const n in e.params)t.params[n]=e.params[n]}this.pushParameterSet(t.sps,i.data,t.vps),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0;break;case 34:if(s=!0,"object"==typeof t.params){if(!t.pps){t.pps=[];const e=this.readPPS(i.data);for(const n in e)t.params[n]=e[n]}this.pushParameterSet(t.pps,i.data,t.vps)}break;case 35:s=!0,t.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,t),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:s=!1}if(a&&s){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null)}pushParameterSet(t,e,n){(n&&n[0]===this.initVPS||!n&&!t.length)&&t.push(e)}getNALuType(t,e){return(126&t[e])>>>1}ebsp2rbsp(t){const e=new Uint8Array(t.byteLength);let n=0;for(let i=0;i=2&&3===t[i]&&0===t[i-1]&&0===t[i-2]||(e[n]=t[i],n++);return new Uint8Array(e.buffer,0,n)}pushAccessUnit(t,e){super.pushAccessUnit(t,e),this.initVPS&&(this.initVPS=null)}readVPS(t){const e=new br(t);e.readUByte(),e.readUByte(),e.readBits(4),e.skipBits(2),e.readBits(6);return{numTemporalLayers:e.readBits(3)+1,temporalIdNested:e.readBoolean()}}readSPS(t){const e=new br(this.ebsp2rbsp(t));e.readUByte(),e.readUByte(),e.readBits(4);const n=e.readBits(3);e.readBoolean();const i=e.readBits(2),r=e.readBoolean(),s=e.readBits(5),a=e.readUByte(),o=e.readUByte(),l=e.readUByte(),u=e.readUByte(),h=e.readUByte(),c=e.readUByte(),d=e.readUByte(),f=e.readUByte(),p=e.readUByte(),g=e.readUByte(),m=e.readUByte(),v=[],y=[];for(let t=0;t0)for(let t=n;t<8;t++)e.readBits(2);for(let t=0;t1&&e.readEG();for(let t=0;t0&&t<16?(P=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][t-1],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][t-1]):255===t&&(P=e.readBits(16),O=e.readBits(16))}e.readBoolean()&&e.readBoolean();if(e.readBoolean()){e.readBits(3),e.readBoolean();e.readBoolean()&&(e.readUByte(),e.readUByte(),e.readUByte())}e.readBoolean()&&(e.readUEG(),e.readUEG()),e.readBoolean(),e.readBoolean(),e.readBoolean(),_=e.readBoolean(),_&&(x+=e.readUEG(),k+=e.readUEG(),T+=e.readUEG(),C+=e.readUEG());if(e.readBoolean()){N=e.readBits(32),F=e.readBits(32);e.readBoolean()&&e.readUEG();if(e.readBoolean()){const t=e.readBoolean(),i=e.readBoolean();let r=!1;(t||i)&&(r=e.readBoolean(),r&&(e.readUByte(),e.readBits(5),e.readBoolean(),e.readBits(5)),e.readBits(4),e.readBits(4),r&&e.readBits(4),e.readBits(5),e.readBits(5),e.readBits(5));for(let s=0;s<=n;s++){M=e.readBoolean();let n=!1;M||e.readBoolean()?e.readEG():n=e.readBoolean();const s=n?1:e.readUEG()+1;if(t)for(let t=0;t>t&1)<<31-t)>>>0;let Q=H.toString(16);1===s&&"2"===Q&&(Q="6");return{codecString:`hvc1.${j}${s}.${Q}.${r?"H":"L"}${m}.B0`,params:{general_tier_flag:r,general_profile_idc:s,general_profile_space:i,general_profile_compatibility_flags:[a,o,l,u],general_constraint_indicator_flags:[h,c,d,f,p,g],general_level_idc:m,bit_depth:D+8,bit_depth_luma_minus8:D,bit_depth_chroma_minus8:S,min_spatial_segmentation_idc:B,chroma_format_idc:A,frame_rate:{fixed:M,fps:F/N}},width:U,height:z,pixelRatio:[P,O]}}readPPS(t){const e=new br(this.ebsp2rbsp(t));e.readUByte(),e.readUByte(),e.skipUEG(),e.skipUEG(),e.skipBits(2),e.skipBits(3),e.skipBits(2),e.skipUEG(),e.skipUEG(),e.skipEG(),e.skipBits(2);e.readBoolean()&&e.skipUEG(),e.skipEG(),e.skipEG(),e.skipBits(4);const n=e.readBoolean(),i=e.readBoolean();let r=1;return i&&n?r=0:i?r=3:n&&(r=2),{parallelismType:r}}matchSPS(t,e){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,e).substr(3)}}const xr=188;class kr{constructor(t,e,n,i){this.logger=void 0,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._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=n,this.logger=i,this.videoParser=null}static probe(t,e){const n=kr.syncOffset(t);return n>0&&e.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(t){const e=t.length;let n=Math.min(940,e-xr)+1,i=0;for(;i1&&(0===s&&a>2||o+xr>n))return s}i++}return-1}static createTrack(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:$[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}}resetInitSegment(t,e,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=kr.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=kr.createTrack("audio",i),this._id3Track=kr.createTrack("id3"),this._txtTrack=kr.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=e,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:e,_id3Track:n}=this;t&&(t.pesData=null),e&&(e.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,e,n=!1,i=!1){let r;n||(this.sampleAes=null);const s=this._videoTrack,a=this._audioTrack,o=this._id3Track,l=this._txtTrack;let u=s.pid,h=s.pesData,c=a.pid,d=o.pid,f=a.pesData,p=o.pesData,g=null,m=this.pmtParsed,v=this._pmtId,y=t.length;if(this.remainderData&&(y=(t=gt(this.remainderData,t)).length,this.remainderData=null),y>4>1){if(b=e+5+t[e+4],b===e+xr)continue}else b=e+4;switch(y){case u:if(i){if(h&&(r=Rr(h,this.logger))){if(null===this.videoParser)switch(s.segmentCodec){case"avc":this.videoParser=new wr;break;case"hevc":this.videoParser=new Er}null!==this.videoParser&&this.videoParser.parsePES(s,l,r,!1)}h={data:[],size:0}}h&&(h.data.push(t.subarray(b,e+xr)),h.size+=e+xr-b);break;case c:if(i){if(f&&(r=Rr(f,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,r);break;case"mp3":this.parseMPEGPES(a,r);break;case"ac3":this.parseAC3PES(a,r)}f={data:[],size:0}}f&&(f.data.push(t.subarray(b,e+xr)),f.size+=e+xr-b);break;case d:i&&(p&&(r=Rr(p,this.logger))&&this.parseID3PES(o,r),p={data:[],size:0}),p&&(p.data.push(t.subarray(b,e+xr)),p.size+=e+xr-b);break;case 0:i&&(b+=t[b]+1),v=this._pmtId=Cr(t,b);break;case v:{i&&(b+=t[b]+1);const r=Dr(t,b,this.typeSupported,n,this.observer,this.logger);u=r.videoPid,u>0&&(s.pid=u,s.segmentCodec=r.segmentVideoCodec),c=r.audioPid,c>0&&(a.pid=c,a.segmentCodec=r.segmentAudioCodec),d=r.id3Pid,d>0&&(o.pid=d),null===g||m||(this.logger.warn(`MPEG-TS PMT found at ${e} after unknown PID '${g}'. Backtracking to sync byte @${A} to parse all TS packets.`),g=null,e=A-188),m=this.pmtParsed=!0;break}case 17:case 8191:break;default:g=y}}else b++;b>0&&Sr(this.observer,new Error(`Found ${b} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=h,a.pesData=f,o.pesData=p;const w={audioTrack:a,videoTrack:s,id3Track:o,textTrack:l};return i&&this.extractRemainingSamples(w),w}flush(){const{remainderData:t}=this;let e;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(t){const{audioTrack:e,videoTrack:n,id3Track:i,textTrack:r}=t,s=n.pesData,a=e.pesData,o=i.pesData;let l;if(s&&(l=Rr(s,this.logger))){if(null===this.videoParser)switch(n.segmentCodec){case"avc":this.videoParser=new wr;break;case"hevc":this.videoParser=new Er}null!==this.videoParser&&(this.videoParser.parsePES(n,r,l,!0),n.pesData=null)}else n.pesData=s;if(a&&(l=Rr(a,this.logger))){switch(e.segmentCodec){case"aac":this.parseAACPES(e,l);break;case"mp3":this.parseMPEGPES(e,l);break;case"ac3":this.parseAC3PES(e,l)}e.pesData=null}else null!=a&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),e.pesData=a;o&&(l=Rr(o,this.logger))?(this.parseID3PES(i,l),i.pesData=null):i.pesData=o}demuxSampleAes(t,e,n){const i=this.demux(t,n,!0,!this.config.progressive),r=this.sampleAes=new yr(this.observer,this.config,e);return this.decrypt(i,r)}decrypt(t,e){return new Promise((n=>{const{audioTrack:i,videoTrack:r}=t;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,(()=>{r.samples?e.decryptAvcSamples(r.samples,0,0,(()=>{n(t)})):n(t)})):r.samples&&e.decryptAvcSamples(r.samples,0,0,(()=>{n(t)}))}))}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,e){let n=0;const i=this.aacOverFlow;let r,s,a,o=e.data;if(i){this.aacOverFlow=null;const e=i.missing,r=i.sample.unit.byteLength;if(-1===e)o=gt(i.sample.unit,o);else{const s=r-e;i.sample.unit.set(o.subarray(0,e),s),t.samples.push(i.sample),n=i.missing}}for(r=n,s=o.length;r0;)o+=s}}parseID3PES(t,e){if(void 0===e.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=A({},e,{type:this._videoTrack?$i.emsg:$i.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(n)}}function Tr(t,e){return((31&t[e+1])<<8)+t[e+2]}function Cr(t,e){return(31&t[e+10])<<8|t[e+11]}function Dr(t,e,n,i,r,s){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e0){let i=e+5,r=l;for(;r>2;){if(106===t[i])!0!==n.ac3?s.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=o,a.segmentAudioCodec="ac3");const e=t[i+1]+2;i+=e,r-=e}}break;case 194:case 135:return Sr(r,new Error("Unsupported EC-3 in M2TS found"),void 0,s),a;case 36:-1===a.videoPid&&(a.videoPid=o,a.segmentVideoCodec="hevc",s.log("HEVC in M2TS found"))}e+=l+5}return a}function Sr(t,e,n,i){i.warn(`parsing error: ${e.message}`),t.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:e,reason:e.message})}function Ir(t,e){e.log(`${t} with AES-128-CBC encryption found in unencrypted stream`)}function Rr(t,e){let n,i,r,s,a,o=0;const l=t.data;if(!t||0===t.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=gt(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(i=(n[4]<<8)+n[5],i&&i>t.size-6)return null;const u=n[7];192&u&&(s=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&u?(a=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,s-a>54e5&&(e.warn(`${Math.round((s-a)/9e4)}s delta between PTS and DTS, align them`),s=a)):a=s),r=n[8];let h=r+9;if(t.size<=h)return null;t.size-=h;const c=new Uint8Array(t.size);for(let t=0,e=l.length;te){h-=e;continue}n=n.subarray(h),e-=h,h=0}c.set(n,o),o+=e}return i&&(i-=r+3),{data:c,pts:s,dts:a,len:i}}return null}class Lr{static getSilentFrame(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)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(6===e)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])}else{if(1===e)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(2===e)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(3===e)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])}}}const Br=Math.pow(2,32)-1;class Pr{static init(){let t;for(t in Pr.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},Pr.types)Pr.types.hasOwnProperty(t)&&(Pr.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const 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]),n=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]);Pr.HDLR_TYPES={video:e,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);Pr.STTS=Pr.STSC=Pr.STCO=r,Pr.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Pr.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Pr.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Pr.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);Pr.FTYP=Pr.box(Pr.types.ftyp,s,o,s,a),Pr.DINF=Pr.box(Pr.types.dinf,Pr.box(Pr.types.dref,i))}static box(t,...e){let n=8,i=e.length;const r=i;for(;i--;)n+=e[i].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=255&n,s.set(t,4),i=0,n=8;i>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(t){return Pr.box(Pr.types.mdia,Pr.mdhd(t.timescale||0,t.duration||0),Pr.hdlr(t.type),Pr.minf(t))}static mfhd(t){return Pr.box(Pr.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}static minf(t){return"audio"===t.type?Pr.box(Pr.types.minf,Pr.box(Pr.types.smhd,Pr.SMHD),Pr.DINF,Pr.stbl(t)):Pr.box(Pr.types.minf,Pr.box(Pr.types.vmhd,Pr.VMHD),Pr.DINF,Pr.stbl(t))}static moof(t,e,n){return Pr.box(Pr.types.moof,Pr.mfhd(t),Pr.traf(n,e))}static moov(t){let e=t.length;const n=[];for(;e--;)n[e]=Pr.trak(t[e]);return Pr.box.apply(null,[Pr.types.moov,Pr.mvhd(t[0].timescale||0,t[0].duration||0)].concat(n).concat(Pr.mvex(t)))}static mvex(t){let e=t.length;const n=[];for(;e--;)n[e]=Pr.trex(t[e]);return Pr.box.apply(null,[Pr.types.mvex,...n])}static mvhd(t,e){e*=t;const n=Math.floor(e/(Br+1)),i=Math.floor(e%(Br+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,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 Pr.box(Pr.types.mvhd,r)}static sdtp(t){const e=t.samples||[],n=new Uint8Array(4+e.length);let i,r;for(i=0;i>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(e=0;e>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(n));const a=Pr.box(Pr.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|t.sps.length].concat(r).concat([t.pps.length]).concat(s))),o=t.width,l=t.height,u=t.pixelRatio[0],h=t.pixelRatio[1];return Pr.box(Pr.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o>>8&255,255&o,l>>8&255,255&l,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,Pr.box(Pr.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Pr.box(Pr.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,h>>24,h>>16&255,h>>8&255,255&h])))}static esds(t){const e=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...e,6,1,2])}static audioStsd(t){const e=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,e>>8&255,255&e,0,0])}static mp4a(t){return Pr.box(Pr.types.mp4a,Pr.audioStsd(t),Pr.box(Pr.types.esds,Pr.esds(t)))}static mp3(t){return Pr.box(Pr.types[".mp3"],Pr.audioStsd(t))}static ac3(t){return Pr.box(Pr.types["ac-3"],Pr.audioStsd(t),Pr.box(Pr.types.dac3,t.config))}static stsd(t){const{segmentCodec:e}=t;if("audio"===t.type){if("aac"===e)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.mp4a(t));if("ac3"===e&&t.config)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.ac3(t));if("mp3"===e&&"mp3"===t.codec)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.mp3(t))}else{if(!t.pps||!t.sps)throw new Error("video track missing pps or sps");if("avc"===e)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.avc1(t));if("hevc"===e&&t.vps)return Pr.box(Pr.types.stsd,Pr.STSD,Pr.hvc1(t))}throw new Error(`unsupported ${t.type} segment codec (${e}/${t.codec})`)}static tkhd(t){const e=t.id,n=(t.duration||0)*(t.timescale||0),i=t.width||0,r=t.height||0,s=Math.floor(n/(Br+1)),a=Math.floor(n%(Br+1));return Pr.box(Pr.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,255&e,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,a>>24,a>>16&255,a>>8&255,255&a,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,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(t,e){const n=Pr.sdtp(t),i=t.id,r=Math.floor(e/(Br+1)),s=Math.floor(e%(Br+1));return Pr.box(Pr.types.traf,Pr.box(Pr.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),Pr.box(Pr.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,s>>24,s>>16&255,s>>8&255,255&s])),Pr.trun(t,n.length+16+20+8+16+8+8),n)}static trak(t){return t.duration=t.duration||4294967295,Pr.box(Pr.types.trak,Pr.tkhd(t),Pr.mdia(t))}static trex(t){const e=t.id;return Pr.box(Pr.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,e){const n=t.samples||[],i=n.length,r=12+16*i,s=new Uint8Array(r);let a,o,l,u,h,c;for(e+=8+r,s.set(["video"===t.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0),a=0;a>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,61440&h.degradPrio,15&h.degradPrio,c>>>24&255,c>>>16&255,c>>>8&255,255&c],12+16*a);return Pr.box(Pr.types.trun,s)}static initSegment(t){Pr.types||Pr.init();const e=Pr.moov(t);return gt(Pr.FTYP,e)}static hvc1(t){const e=t.params,n=[t.vps,t.sps,t.pps],i=new Uint8Array([1,e.general_profile_space<<6|(e.general_tier_flag?32:0)|e.general_profile_idc,e.general_profile_compatibility_flags[0],e.general_profile_compatibility_flags[1],e.general_profile_compatibility_flags[2],e.general_profile_compatibility_flags[3],e.general_constraint_indicator_flags[0],e.general_constraint_indicator_flags[1],e.general_constraint_indicator_flags[2],e.general_constraint_indicator_flags[3],e.general_constraint_indicator_flags[4],e.general_constraint_indicator_flags[5],e.general_level_idc,240|e.min_spatial_segmentation_idc>>8,255&e.min_spatial_segmentation_idc,252|e.parallelismType,252|e.chroma_format_idc,248|e.bit_depth_luma_minus8,248|e.bit_depth_chroma_minus8,0,parseInt(e.frame_rate.fps),3|e.temporal_id_nested<<2|e.num_temporal_layers<<3|(e.frame_rate.fixed?64:0),n.length]);let r=i.length;for(let t=0;t>8,255&n[t][e].length]),r),r+=2,s.set(n[t][e],r),r+=n[t][e].length}const o=Pr.box(Pr.types.hvcC,s),l=t.width,u=t.height,h=t.pixelRatio[0],c=t.pixelRatio[1];return Pr.box(Pr.types.hvc1,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,l>>8&255,255&l,u>>8&255,255&u,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]),o,Pr.box(Pr.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Pr.box(Pr.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,c>>24,c>>16&255,c>>8&255,255&c])))}}Pr.types=void 0,Pr.HDLR_TYPES=void 0,Pr.STTS=void 0,Pr.STSC=void 0,Pr.STCO=void 0,Pr.STSZ=void 0,Pr.VMHD=void 0,Pr.SMHD=void 0,Pr.STSD=void 0,Pr.FTYP=void 0,Pr.DINF=void 0;function Or(t,e,n=1,i=!1){const r=t*e*n;return i?Math.round(r):r}function Mr(t,e=!1){return Or(t,1e3,1/9e4,e)}let Nr,Fr=null,_r=null;function Ur(t,e,n,i){return{duration:e,size:n,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1}}}class zr{constructor(t,e,n,i){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=n,this.logger=i,this.ISGenerated=!1,null===Fr){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Fr=t?parseInt(t[1]):0}if(null===_r){const t=navigator.userAgent.match(/Safari\/(\d+)/i);_r=t?parseInt(t[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let e=!1;const n=t[0].pts,i=t.reduce(((t,i)=>{let r=i.pts,s=r-t;return s<-4294967296&&(e=!0,r=jr(r,n),s=r-t),s>0?t:r}),n);return e&&this.logger.debug("PTS rollover detected"),i}remux(t,e,n,i,r,s,a,o){let l,u,h,c,d,f,g=r,m=r;const v=t.pid>-1,y=e.pid>-1,A=e.samples.length,b=t.samples.length>0,w=a&&A>0||A>1;if((!v||b)&&(!y||w)||this.ISGenerated||a){if(this.ISGenerated){var E,x,k,T;const t=this.videoTrackConfig;(t&&(e.width!==t.width||e.height!==t.height||(null==(E=e.pixelRatio)?void 0:E[0])!==(null==(x=t.pixelRatio)?void 0:x[0])||(null==(k=e.pixelRatio)?void 0:k[1])!==(null==(T=t.pixelRatio)?void 0:T[1]))||!t&&w||null===this.nextAudioPts&&b)&&this.resetInitSegment()}this.ISGenerated||(h=this.generateIS(t,e,r,s));const n=this.isVideoContiguous;let i,a=-1;if(w&&(a=function(t){for(let e=0;e0){this.logger.warn(`[mp4-remuxer]: Dropped ${a} out of ${A} video samples due to a missing keyframe`);const t=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(a),e.dropped+=a,m+=(e.samples[0].pts-t)/e.inputTimeScale,i=m}else-1===a&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${A} video samples`),f=!1);if(this.ISGenerated){if(b&&w){const n=this.getVideoStartPts(e.samples),i=(jr(t.samples[0].pts,n)-n)/e.inputTimeScale;g+=Math.max(0,i),m+=Math.max(0,-i)}if(b){if(t.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(t,e,r,s)),u=this.remuxAudio(t,g,this.isAudioContiguous,s,y||w||o===p?m:void 0),w){const i=u?u.endPTS-u.startPTS:0;e.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(t,e,r,s)),l=this.remuxVideo(e,m,n,i)}}else w&&(l=this.remuxVideo(e,m,n,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(d=Gr(n,r,this._initPTS,this._initDTS)),i.samples.length&&(c=Hr(i,r,this._initPTS))),{audio:u,video:l,initSegment:h,independent:f,text:c,id3:d}}generateIS(t,e,n,i){const r=t.samples,s=e.samples,a=this.typeSupported,o={},l=this._initPTS;let u,h,c,d,f=!l||i,p="audio/mp4";if(f&&(u=h=1/0),t.config&&r.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":a.mpeg?(p="audio/mpeg",t.codec=""):a.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3"}o.audio={id:"audio",container:p,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&a.mpeg?new Uint8Array(0):Pr.initSegment([t]),metadata:{channelCount:t.channelCount}},f&&(d=t.id,c=t.inputTimeScale,l&&c===l.timescale?f=!1:u=h=r[0].pts-Math.round(c*n))}if(e.sps&&e.pps&&s.length){if(e.timescale=e.inputTimeScale,o.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:Pr.initSegment([e]),metadata:{width:e.width,height:e.height}},f)if(d=e.id,c=e.inputTimeScale,l&&c===l.timescale)f=!1;else{const t=this.getVideoStartPts(s),e=Math.round(c*n);h=Math.min(h,jr(s[0].dts,t)-e),u=Math.min(u,t-e)}this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio}}if(Object.keys(o).length)return this.ISGenerated=!0,f?(this._initPTS={baseTime:u,timescale:c},this._initDTS={baseTime:h,timescale:c}):u=c=void 0,{tracks:o,initPTS:u,timescale:c,trackId:d}}remuxVideo(t,e,n,i){const r=t.inputTimeScale,s=t.samples,u=[],h=s.length,c=this._initPTS;let d,f,p=this.nextAvcDts,g=8,m=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,b=!1;if(!n||null===p){const t=e*r,i=s[0].pts-jr(s[0].dts,s[0].pts);Fr&&null!==p&&Math.abs(t-i-p)<15e3?n=!0:p=t-i}const w=c.baseTime*r/c.timescale;for(let t=0;t0?t-1:t].dts&&(b=!0)}b&&s.sort((function(t,e){const n=t.dts-e.dts,i=t.pts-e.pts;return n||i})),d=s[0].dts,f=s[s.length-1].dts;const E=f-d,x=E?Math.round(E/(h-1)):m||t.inputTimeScale/30;if(n){const n=d-p,i=n>x,r=n<-1;if((i||r)&&(i?this.logger.warn(`${(t.segmentCodec||"").toUpperCase()}: ${Mr(n,!0)} ms (${n}dts) hole between fragments detected at ${e.toFixed(3)}`):this.logger.warn(`${(t.segmentCodec||"").toUpperCase()}: ${Mr(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${e.toFixed(3)}`),!r||p>=s[0].pts||Fr)){d=p;const t=s[0].pts-n;if(i)s[0].dts=d,s[0].pts=t;else{let e=!0;for(let i=0;it&&e);i++){const t=s[i].pts;if(s[i].dts-=n,s[i].pts-=n,i0?e.dts-s[t-1].dts:x;if(a=t>0?e.pts-s[t-1].pts:x,n.stretchShortVideoTrack&&null!==this.nextAudioPts){const t=Math.floor(n.maxBufferHole*r),s=(i?v+i*r:this.nextAudioPts)-e.pts;s>t?(m=s-o,m<0?m=o:R=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${s/90} ms to the next segment; using duration ${m/90} ms for the last video frame.`)):m=o}else m=o}const l=Math.round(e.pts-e.dts);L=Math.min(L,m),P=Math.max(P,m),B=Math.min(B,a),O=Math.max(O,a),u.push(Ur(e.key,m,o,l))}if(u.length)if(Fr){if(Fr<70){const t=u[0].flags;t.dependsOn=2,t.isNonSync=0}}else if(_r&&O-B0&&(i&&Math.abs(b-y)<9e3||Math.abs(jr(m[0].pts-w,b)-y)<20*c),m.forEach((function(t){t.pts=jr(t.pts-w,b)})),!n||y<0){if(m=m.filter((t=>t.pts>=0)),!m.length)return;y=0===r?0:i&&!g?Math.max(0,b):m[0].pts}if("aac"===t.segmentCodec){const e=this.config.maxAudioFramesDrift;for(let n=0,i=y;n=e*c&&l<1e4&&g){let e=Math.round(o/c);i=a-e*c,i<0&&(e--,i+=c),0===n&&(this.nextAudioPts=y=i),this.logger.warn(`[mp4-remuxer]: Injecting ${e} audio frame @ ${(i/s).toFixed(3)}s due to ${Math.round(1e3*o/s)} ms gap.`);for(let s=0;s0))return;T+=v;try{E=new Uint8Array(T)}catch(t){return void this.observer.emit(l.ERROR,l.ERROR,{type:a.MUX_ERROR,details:o.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:T,reason:`fail allocating audio mdat ${T}`})}if(!f){new DataView(E.buffer).setUint32(0,T),E.set(Pr.types.mdat,4)}}E.set(r,v);const c=r.byteLength;v+=c,p.push(Ur(!0,h,c,0)),k=s}const D=p.length;if(!D)return;const S=p[p.length-1];this.nextAudioPts=y=k+u*S.duration;const I=f?new Uint8Array(0):Pr.moof(t.sequenceNumber++,x/u,A({},t,{samples:p}));t.samples=[];const R=x/s,L=y/s,B={data1:I,data2:E,startPTS:R,endPTS:L,startDTS:R,endDTS:L,type:"audio",hasAudio:!0,hasVideo:!1,nb:D};return this.isAudioContiguous=!0,B}}function jr(t,e){let n;if(null===e)return t;for(n=e4294967296;)t+=n;return t}function Gr(t,e,n,i){const r=t.samples.length;if(!r)return;const s=t.inputTimeScale;for(let a=0;at.pts-e.pts));const s=t.samples;return t.samples=[],{samples:s}}function Qr(t,e,n=!1){return void 0!==(null==t?void 0:t.start)?(t.start+(n?t.duration:0))/t.timescale:e}function qr(t,e,n){const i=null==t?void 0:t.codec;if(i&&i.length>4)return i;if(e===H){if("ec-3"===i||"ac-3"===i||"alac"===i)return i;if("fLaC"===i||"Opus"===i){return Pt(i,!1)}return n.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"}return n.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1"}try{Nr=self.performance.now.bind(self.performance)}catch(t){Nr=Date.now}const Vr=[{demux:class{constructor(t,e){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=e}resetTimeStamp(){}resetInitSegment(t,e,n,i){const r=this.videoTrack=tr("video",1),s=this.audioTrack=tr("audio",1),a=this.txtTrack=tr("text",1);if(this.id3Track=tr("id3",1),this.timeOffset=0,null==t||!t.byteLength)return;const o=lt(t);if(o.video){const{id:t,timescale:e,codec:n,supplemental:i}=o.video;r.id=t,r.timescale=a.timescale=e,r.codec=n,r.supplemental=i}if(o.audio){const{id:t,timescale:e,codec:n}=o.audio;s.id=t,s.timescale=e,s.codec=n}a.id=$.text,r.sampleDuration=0,r.duration=s.duration=i}resetContiguity(){this.remainderData=null}static probe(t){return function(t){const e=t.byteLength;for(let n=0;n8&&109===t[n+4]&&111===t[n+5]&&111===t[n+6]&&102===t[n+7])return!0;n=i>1?n+i:e}return!1}(t)}demux(t,e){this.timeOffset=e;let n=t;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=gt(this.remainderData,t));const e=function(t){const e={valid:null,remainder:null},n=at(t,["moof"]);if(n.length<2)return e.remainder=t,e;const i=n[n.length-1];return e.valid=t.slice(0,i.byteOffset-8),e.remainder=t.slice(i.byteOffset-8),e}(n);this.remainderData=e.remainder,i.samples=e.valid||new Uint8Array}else i.samples=n;const s=this.extractID3Track(i,e);return r.samples=mt(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const t=this.timeOffset,e=this.videoTrack,n=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(e,this.timeOffset);return n.samples=mt(t,e),{videoTrack:e,audioTrack:tr(),id3Track:i,textTrack:tr()}}extractID3Track(t,e){const n=this.id3Track;if(t.samples.length){const i=at(t.samples,["emsg"]);i&&i.forEach((t=>{const i=function(t){const e=t[0];let n="",i="",s=0,a=0,o=0,l=0,u=0,h=0;if(0===e){for(;"\0"!==tt(t.subarray(h,h+1));)n+=tt(t.subarray(h,h+1)),h+=1;for(n+=tt(t.subarray(h,h+1)),h+=1;"\0"!==tt(t.subarray(h,h+1));)i+=tt(t.subarray(h,h+1)),h+=1;i+=tt(t.subarray(h,h+1)),h+=1,s=nt(t,12),a=nt(t,16),l=nt(t,20),u=nt(t,24),h=28}else if(1===e){h+=4,s=nt(t,h),h+=4;const e=nt(t,h);h+=4;const a=nt(t,h);for(h+=4,o=2**32*e+a,r(o)||(o=Number.MAX_SAFE_INTEGER,S.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=nt(t,h),h+=4,u=nt(t,h),h+=4;"\0"!==tt(t.subarray(h,h+1));)n+=tt(t.subarray(h,h+1)),h+=1;for(n+=tt(t.subarray(h,h+1)),h+=1;"\0"!==tt(t.subarray(h,h+1));)i+=tt(t.subarray(h,h+1)),h+=1;i+=tt(t.subarray(h,h+1)),h+=1}return{schemeIdUri:n,value:i,timeScale:s,presentationTime:o,presentationTimeDelta:a,eventDuration:l,id:u,payload:t.subarray(h,t.byteLength)}}(t);if(mr.test(i.schemeIdUri)){const t=vr(i,e);let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const s=i.payload;n.samples.push({data:s,len:s.byteLength,dts:t,pts:t,type:$i.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const t=vr(i,e);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:t,pts:t,type:$i.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return n}demuxSampleAes(t,e,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}},remux:class{constructor(t,e,n,i){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1,this.logger=i}destroy(){}resetTimeStamp(t){this.initPTS=t,this.lastEndTime=null}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,e,n,i){this.audioCodec=e,this.videoCodec=n,this.generateInitSegment(function(t,e){if(!t||!e)return t;const n=e.keyId;n&&e.isCommonEncryption&&at(t,["moov","trak"]).forEach((t=>{const e=at(t,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=at(e,["enca"]);const r=i.length>0;r||(i=at(e,["encv"])),i.forEach((t=>{at(r?t.subarray(28):t.subarray(78),["sinf"]).forEach((t=>{const e=pt(t);if(e){const t=e.subarray(8,24);t.some((t=>0!==t))||(S.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${B(t)} -> ${B(n)}`),e.set(n,8))}}))}))}));return t}(t,i)),this.emitInitSegment=!0}generateInitSegment(t){let{audioCodec:e,videoCodec:n}=this;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const i=this.initData=lt(t);i.audio&&(e=qr(i.audio,H,this.logger)),i.video&&(n=qr(i.video,Q,this.logger));const r={};i.audio&&i.video?r.audiovideo={container:"video/mp4",codec:e+","+n,supplemental:i.video.supplemental,initSegment:t,id:"main"}:i.audio?r.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?r.video={container:"video/mp4",codec:n,supplemental:i.video.supplemental,initSegment:t,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(t,e,n,r,s,a){var o,l;let{initPTS:u,lastEndTime:h}=this;const c={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};i(h)||(h=this.lastEndTime=s||0);const d=e.samples;if(null==d||!d.length)return c;const f={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if(null!=(o=p)&&o.length||(this.generateInitSegment(d),p=this.initData),null==(l=p)||!l.length)return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),c;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=!1);const g=function(t,e,n){const r={},s=at(t,["moof","traf"]);for(let t=0;tr[t].duration))){let e=1/0,n=0;const s=at(t,["sidx"]);for(let t=0;tt+e.info.duration||0),0);n=Math.max(n,t+i.earliestPresentationTime/i.timescale)}}n&&i(n)&&Object.keys(r).forEach((t=>{r[t].duration||(r[t].duration=n*r[t].timescale-r[t].start)}))}return r}(d,p,this.logger),m=p.audio?g[p.audio.id]:null,v=p.video?g[p.video.id]:null,y=Qr(v,1/0),A=Qr(m,1/0),b=Qr(v,0,!0),w=Qr(m,0,!0);let E,x=s,k=0;if(m&&(!v||!u&&Ar}(u,x,s,k)&&f.timescale===u.timescale||(f.initPTS=x-s,u&&1===u.timescale&&this.logger.warn(`Adjusting initPTS @${s} from ${u.baseTime/u.timescale} to ${f.initPTS}`),this.initPTS=u={baseTime:f.initPTS,timescale:1});const T=t?x-u.baseTime/u.timescale:h;!function(t,e,n){at(e,["moof","traf"]).forEach((e=>{at(e,["tfhd"]).forEach((i=>{const r=nt(i,4),s=t[r];if(!s)return;const a=s.timescale||9e4;at(e,["tfdt"]).forEach((t=>{const e=t[0],i=n*a;if(i){let n=nt(t,4);if(0===e)n-=i,n=Math.max(n,0),st(t,4,n);else{n*=Math.pow(2,32),n+=nt(t,8),n-=i,n=Math.max(n,0);const e=Math.floor(n/(Z+1)),r=Math.floor(n%(Z+1));st(t,4,e),st(t,8,r)}}}))}))}))}(p,d,u.baseTime/u.timescale);const C=T+k;k>0?this.lastEndTime=C:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const D=!!p.audio,S=!!p.video;let I="";D&&(I+="audio"),S&&(I+="video");const R={data1:d,startPTS:T,startDTS:T,endPTS:C,endDTS:C,type:I,hasAudio:D,hasVideo:S,nb:1,dropped:0};c.audio=D&&!S?R:void 0,c.video=S?R:void 0;const L=null==v?void 0:v.sampleCount;if(L){const t=v.keyFrameIndex,e=-1!==t;R.nb=L,R.dropped=0===t||this.isVideoContiguous?0:e?t:L,R.independent=e,R.firstKeyFrame=t,e&&v.keyFrameStart&&(R.firstKeyFramePTS=v.keyFrameStart-u.baseTime/u.timescale),this.isVideoContiguous||(c.independent=e),this.isVideoContiguous||(this.isVideoContiguous=e),R.dropped&&this.logger.warn(`fmp4 does not start with IDR: firstIDR ${t}/${L} dropped: ${R.dropped} pts: ${R.firstKeyFramePTS||"NA"}`)}return c.initSegment=f,c.id3=Gr(n,s,u,u),r.samples.length&&(c.text=Hr(r,s,u)),c}}},{demux:kr,remux:zr},{demux:class extends er{constructor(t,e){super(),this.observer=void 0,this.config=void 0,this.observer=t,this.config=e}resetInitSegment(t,e,n,i){super.resetInitSegment(t,e,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t,e){if(!t)return!1;const n=Mi(t,0);let i=(null==n?void 0:n.length)||0;if(dr(t,i))return!1;for(let n=t.length;i0&&null!=(null==e?void 0:e.key)&&null!==e.iv&&null!=e.method&&(n=e);return n}(s,e);if(E&&on(E.method)){const t=this.getDecrypter(),e=ln(E.method);if(!t.isSync())return this.asyncResult=!0,this.decryptionPromise=t.webCryptoDecrypt(s,E.key.buffer,E.iv.buffer,e).then((t=>{const e=this.push(t,null,n);return this.decryptionPromise=null,e})),this.decryptionPromise;{let i=t.softwareDecrypt(s,E.key.buffer,E.iv.buffer,e);if(n.part>-1){const e=t.flush();i=e?e.buffer:e}if(!i)return r.executeEnd=Nr(),Kr(n);s=new Uint8Array(i)}}const x=this.needsProbing(d,f);if(x){const t=this.configureTransmuxer(s);if(t)return this.logger.warn(`[transmuxer] ${t.message}`),this.observer.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,error:t,reason:t.message}),r.executeEnd=Nr(),Kr(n)}(d||f||m||x)&&this.resetInitSegment(w,v,y,b,e),(d||m||x)&&this.resetInitialTimestamp(A),c||this.resetContiguity();const k=this.transmux(s,E,g,p,n);this.asyncResult=Xr(k);const T=this.currentTransmuxState;return T.contiguous=!0,T.discontinuity=!1,T.trackSwitch=!1,r.executeEnd=Nr(),k}flush(t){const e=t.transmuxing;e.executeStart=Nr();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then((()=>this.flush(t)));const s=[],{timeOffset:a}=i;if(n){const e=n.flush();e&&s.push(this.push(e.buffer,null,t))}const{demuxer:o,remuxer:l}=this;if(!o||!l){e.executeEnd=Nr();const n=[Kr(t)];return this.asyncResult?Promise.resolve(n):n}const u=o.flush(a);return Xr(u)?(this.asyncResult=!0,u.then((e=>(this.flushRemux(s,e,t),s)))):(this.flushRemux(s,u,t),this.asyncResult?Promise.resolve(s):s)}flushRemux(t,e,n){const{audioTrack:i,videoTrack:r,id3Track:s,textTrack:a}=e,{accurateTimeOffset:o,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===f?"level":"track"} ${n.level}`);const u=this.remuxer.remux(i,r,s,a,l,o,!0,this.id);t.push({remuxResult:u,chunkMeta:n}),n.transmuxing.executeEnd=Nr()}resetInitialTimestamp(t){const{demuxer:e,remuxer:n}=this;e&&n&&(e.resetTimeStamp(t),n.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:e}=this;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())}resetInitSegment(t,e,n,i,r){const{demuxer:s,remuxer:a}=this;s&&a&&(s.resetInitSegment(t,e,n,i),a.resetInitSegment(t,e,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,e,n,i,r){let s;return s=e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,n,i,r):this.transmuxUnencrypted(t,n,i,r),s}transmuxUnencrypted(t,e,n,i){const{audioTrack:r,videoTrack:s,id3Track:a,textTrack:o}=this.demuxer.demux(t,e,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,s,a,o,e,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,e,n,i,r){return this.demuxer.demuxSampleAes(t,e,n).then((t=>({remuxResult:this.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,n,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(t){const{config:e,observer:n,typeSupported:i}=this;let r;for(let e=0,n=Vr.length;e({remuxResult:{},chunkMeta:t});function Xr(t){return"then"in t&&t.then instanceof Function}class Wr{constructor(t,e,n,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=n,this.duration=i,this.defaultInitPts=r||null}}class Zr{constructor(t,e,n,i,r,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=n,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=s}}let Jr=0;class $r{constructor(t,e,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Jr++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=t=>{const e=t.data,n=this.hls;if(n&&null!=e&&e.event&&e.instanceNo===this.instanceNo)switch(e.event){case"init":{var i;const t=null==(i=this.workerContext)?void 0:i.objectURL;t&&self.URL.revokeObjectURL(t);break}case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":n.logger[e.data.logType]&&n.logger[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.part=this.part,e.data.id=this.id,n.trigger(e.event,e.data)}},this.onWorkerError=t=>{if(!this.hls)return;const e=new Error(`${t.message} (${t.filename}:${t.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:e})};const r=t.config;this.hls=t,this.id=e,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const s=(t,e)=>{(e=e||{}).frag=this.frag||void 0,t===l.ERROR&&(e.parent=this.id,e.part=this.part,this.error=e.error),this.hls.trigger(t,e)};this.observer=new Ii,this.observer.on(l.FRAG_DECRYPTED,s),this.observer.on(l.ERROR,s);const u=Nt(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(n.log(`loading Web Worker ${r.workerPath} for "${e}"`),this.workerContext=function(t){const e=Li[t];if(e)return e.clientCount++,e;const n=new self.URL(t,self.location.href).href,i={worker:new self.Worker(n),scriptURL:n,clientCount:1};return Li[t]=i,i}(r.workerPath)):(n.log(`injecting Web Worker for "${e}"`),this.workerContext=function(){const t=Li[Ri];if(t)return t.clientCount++,t;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(e),i={worker:new self.Worker(n),objectURL:n,clientCount:1};return Li[Ri]=i,i}());const{worker:t}=this.workerContext;t.addEventListener("message",this.onWorkerMessage),t.addEventListener("error",this.onWorkerError),t.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:u,id:e,config:$t(r)})}catch(i){n.warn(`Error setting up "${e}" Web Worker, fallback to inline`,i),this.terminateWorker(),this.error=null,this.transmuxer=new Yr(this.observer,u,r,"",e,t.logger)}return}}this.transmuxer=new Yr(this.observer,u,r,"",e,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Jr++;const e=this.hls.config,n=Nt(e.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:n,id:this.id,config:$t(e)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),function(t){const e=Li[t||Ri];if(e&&1==e.clientCount--){const{worker:n,objectURL:i}=e;delete Li[t||Ri],i&&self.URL.revokeObjectURL(i),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,e,n,i,r,s,a,o,l,u){var h,c;l.transmuxing.start=self.performance.now();const{instanceNo:d,transmuxer:p}=this,g=s?s.start:r.start,m=r.decryptdata,v=this.frag,y=!(v&&r.cc===v.cc),A=!(v&&l.level===v.level),b=v?l.sn-v.sn:-1,w=this.part?l.part-this.part.index:-1,E=0===b&&l.id>1&&l.id===(null==v?void 0:v.stats.chunkCount),x=!A&&(1===b||0===b&&(1===w||E&&w<=0)),k=self.performance.now();(A||b||0===r.stats.parsing.start)&&(r.stats.parsing.start=k),!s||!w&&x||(s.stats.parsing.start=k);const T=!(v&&(null==(h=r.initSegment)?void 0:h.url)===(null==(c=v.initSegment)?void 0:c.url)),C=new Zr(y,x,o,A,g,T);if(!x||y||T){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===f?"level":"track"}: ${l.level} id: ${l.id}\n discontinuity: ${y}\n trackSwitch: ${A}\n contiguous: ${x}\n accurateTimeOffset: ${o}\n timeOffset: ${g}\n initSegmentChange: ${T}`);const t=new Wr(n,i,e,a,u);this.configureTransmuxer(t)}if(this.frag=r,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:d,cmd:"demux",data:t,decryptdata:m,chunkMeta:l,state:C},t instanceof ArrayBuffer?[t]:[]);else if(p){const e=p.push(t,m,l,C);Xr(e)?e.then((t=>{this.handleTransmuxComplete(t)})).catch((t=>{this.transmuxerError(t,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(e)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:e,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:e,cmd:"flush",chunkMeta:t});else if(n){const e=n.flush(t);Xr(e)?e.then((e=>{this.handleFlushResult(e,t)})).catch((e=>{this.transmuxerError(e,t,"transmuxer-interface flush error")})):this.handleFlushResult(e,t)}}transmuxerError(t,e,n){this.hls&&(this.error=t,this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,chunkMeta:e,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:n}))}handleFlushResult(t,e){t.forEach((t=>{this.handleTransmuxComplete(t)})),this.onFlush(e)}configureTransmuxer(t){const{instanceNo:e,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:e,cmd:"configure",config:t}):n&&n.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}class ts extends E{constructor(t,e){super(e,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,e,n){const i=null==e?void 0:e.renditionReports;if(i){let r=-1;for(let n=0;n=0&&t>e.partTarget&&(a+=1)}const o=n&&Kt(n);return new Xt(s,a>=0?a:void 0,o)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,e){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,e){if(e)try{return e.addDirectives(t)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}return t}playlistLoaded(t,e,n){const{details:i,stats:r}=e,s=self.performance.now(),u=r.loading.first?Math.max(0,s-r.loading.first):0;i.advancedDateTime=Date.now()-u;const h=this.hls.config.timelineOffset;if(h!==i.appliedTimelineOffset){const t=Math.max(h||0,0);i.appliedTimelineOffset=t,i.fragments.forEach((e=>{e.start=e.playlistOffset+t}))}if(i.live||null!=n&&n.live){const h="levelInfo"in e?e.levelInfo:e.track;if(i.reloaded(n),n&&i.fragments.length>0){Wn(n,i);const t=i.playlistParsingError;if(t){this.warn(t);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var c;const{networkDetails:s}=e;return void n.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:t,reason:t.message,level:e.level||void 0,parent:null==(c=i.fragments[0])?void 0:c.type,networkDetails:s,stats:r})}i.playlistParsingError=null}}-1===i.requestScheduled&&(i.requestScheduled=r.loading.start);const d=this.hls.mainForwardBufferInfo,f=d?d.end-d.len:0,p=ti(i,1e3*(i.edge-f));if(i.requestScheduled+p0){if(c>3*i.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),m=void 0,v=void 0;else if(null!=n&&n.tuneInGoal&&c-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${d} with playlist age: ${i.age}`),d=0;else{const t=Math.floor(d/i.targetduration);if(m+=t,void 0!==v){v+=Math.round(d%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${d} skip sn ${t} to part ${v}`)}i.tuneInGoal=d}if(g=this.getDeliveryDirectives(i,e.deliveryDirectives,m,v),t||!l)return i.requestScheduled=s,void this.loadingPlaylist(h,g)}else(i.canBlockReload||i.canSkipUntil)&&(g=this.getDeliveryDirectives(i,e.deliveryDirectives,m,v));g&&void 0!==m&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(p-2*u,p/2)),this.scheduleLoading(h,g,i)}else this.clearTimer()}scheduleLoading(t,e,n){const i=n||t.details;if(!i)return void this.loadingPlaylist(t,e);const r=self.performance.now(),s=i.requestScheduled;if(r>=s)return void this.loadingPlaylist(t,e);const a=s-r;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(t,e)),a)}getDeliveryDirectives(t,e,n,i){let r=Kt(t);return null!=e&&e.skip&&t.deltaUpdateFailed&&(n=e.msn,i=e.part,r=qt),new Xt(n,i,r)}checkRetry(t){const e=t.details,n=fe(t),i=t.errorAction,{action:r,retryCount:s=0,retryConfig:a}=i||{},o=!!i&&!!a&&(r===we||!i.resolved&&r===Ae);if(o){var l;if(s>=a.maxNumRetry)return!1;if(n&&null!=(l=t.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${e}" without delivery-directives`),this.loadPlaylist();else{const t=ge(a,s);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),t),this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${e}" in ${t}ms`)}t.levelRetry=!0,i.resolved=!0}return o}}function es(t,e){if(t.length!==e.length)return!1;for(let n=0;nt[n]!==e[n]))}function is(t,e){return e.label.toLowerCase()===t.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(t.lang||"").toLowerCase())}class rs{constructor(t){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=t}destroy(){this.tracks=this.queues=null}append(t,e,n){if(null===this.queues||null===this.tracks)return;const i=this.queues[e];i.push(t),1!==i.length||n||this.executeNext(e)}appendBlocker(t){return new Promise((e=>{const n={label:"async-blocker",execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,t)}))}prependBlocker(t){return new Promise((e=>{if(this.queues){const n={label:"async-blocker-prepend",execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(n)}}))}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach((t=>{var e;const n=null==(e=t[0])?void 0:e.label;"async-blocker"!==n&&"async-blocker-prepend"!==n||(t[0].execute(),t.splice(0,1))}))}unblockAudio(t){if(null===this.queues)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(null===this.queues||null===this.tracks)return;const e=this.queues[t];if(e.length){const i=e[0];try{i.execute()}catch(e){var n;if(i.onError(e),null===this.queues||null===this.tracks)return;const r=null==(n=this.tracks[t])?void 0:n.buffer;null!=r&&r.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){null!==this.queues&&(this.queues[t].shift(),this.executeNext(t))}current(t){var e;return(null==(e=this.queues)?void 0:e[t][0])||null}toString(){const{queues:t,tracks:e}=this;return null===t||null===e?"":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(t){var e,n;return null!=(e=this.queues)&&e[t]||null!=(n=this.tracks)&&n[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var e;const n=null==(e=this.tracks)?void 0:e[t],i=null==n?void 0:n.buffer;return i?`SourceBuffer${i.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(t){var e;return(null==(e=this.queues)?void 0:e[t].map((t=>t.label)).join(", "))||""}}const ss=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,as="HlsJsTrackRemovedError";class os extends Error{constructor(t){super(t),this.name=as}}function ls(t){const e=t.querySelectorAll("source");[].slice.call(e).forEach((e=>{t.removeChild(e)}))}function us(t){return"audio"===t?1:0}class hs{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.BUFFER_CODECS,this.onBufferCodecs,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.BUFFER_CODECS,this.onBufferCodecs,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,e){const n=this.hls.levels[e.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,e){const n=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,n.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onLevelsUpdated(t,e){this.timer&&i(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const t=this.hls.levels;if(t.length){const e=this.hls,n=this.getMaxLevel(t.length-1);n!==this.autoLevelCapping&&e.logger.log(`Setting autoLevelCapping to ${n}: ${t[n].height}p@${t[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),e.autoLevelCapping=n,e.autoLevelEnabled&&e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}}getMaxLevel(t){const e=this.hls.levels;if(!e.length)return-1;const n=e.filter(((e,n)=>this.isLevelAllowed(e)&&n<=t));return this.clientRect=null,hs.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,e={width:0,height:0};if(t){const n=t.getBoundingClientRect();e.width=n.width,e.height=n.height,e.width||e.height||(e.width=n.right-n.left||t.width||0,e.height=n.bottom-n.top||t.height||0)}return this.clientRect=e,e}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some((e=>t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height))}static getMaxLevelByMediaSize(t,e,n){if(null==t||!t.length)return-1;let i=t.length-1;const r=Math.max(e,n);for(let e=0;e=r||n.height>=r)&&(s=n,!(a=t[e+1])||s.width!==a.width||s.height!==a.height)){i=e;break}}var s,a;return i}}const cs={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},ds={HLS:"h"},fs="CMCD-Request",ps={["CMCD-Object"]:["br","d","ot","tb"],[fs]:["bl","dl","mtp","nor","nrr","su"],["CMCD-Session"]:["cid","pr","sf","sid","st","v"],["CMCD-Status"]:["bs","rtp"]};class gs{constructor(t,e){Array.isArray(t)&&(t=t.map((t=>t instanceof gs?t:new gs(t)))),this.value=t,this.params=e}}function ms(t,e,n,i){return new Error(`failed to ${t} "${r=e,Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":"object"==typeof r?JSON.stringify(r):String(r)}" as ${n}`,{cause:i});var r}function vs(t,e,n){return ms("serialize",t,e,n)}class ys{constructor(t){this.description=t}}const As="Bare Item";function bs(t){if(!1===ArrayBuffer.isView(t))throw vs(t,"Byte Sequence");return`:${e=t,btoa(String.fromCharCode(...e))}:`;var e}function ws(t){if(function(t){return t<-999999999999999||99999999999999912)throw vs(t,"Decimal");const n=e.toString();return n.includes(".")?n:`${n}.0`}const ks=/[\x00-\x1f\x7f]+/;function Ts(t){const e=(n=t).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e))throw vs(e,"Token");return e}function Cs(t){switch(typeof t){case"number":if(!i(t))throw vs(t,As);return Number.isInteger(t)?ws(t):xs(t);case"string":return function(t){if(ks.test(t))throw vs(t,"String");return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(t);case"symbol":return Ts(t);case"boolean":return function(t){if("boolean"!=typeof t)throw vs(t,"Boolean");return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return`@${ws(t.getTime()/1e3)}`}(t);if(t instanceof Uint8Array)return bs(t);if(t instanceof ys)return Ts(t);default:throw vs(t,As)}}function Ds(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw vs(t,"Key");return t}function Ss(t){return null==t?"":Object.entries(t).map((([t,e])=>!0===e?`;${Ds(t)}`:`;${Ds(t)}=${Cs(e)}`)).join("")}function Is(t){return t instanceof gs?`${Cs(t.value)}${Ss(t.params)}`:Cs(t)}function Rs(t,e={whitespace:!0}){if("object"!=typeof t)throw vs(t,"Dict");const n=t instanceof Map?t.entries():Object.entries(t),i=(null==e?void 0:e.whitespace)?" ":"";return Array.from(n).map((([t,e])=>{e instanceof gs==!1&&(e=new gs(e));let n=Ds(t);var i;return!0===e.value?n+=Ss(e.params):(n+="=",Array.isArray(e.value)?n+=`(${(i=e).value.map(Is).join(" ")})${Ss(i.params)}`:n+=Is(e)),n})).join(`,${i}`)}const Ls=t=>Math.round(t),Bs=t=>100*Ls(t/100),Ps={br:Ls,d:Ls,bl:Bs,dl:Bs,mtp:Bs,nor:(t,e)=>((null==e?void 0:e.baseUrl)&&(t=function(t,e){const n=new URL(t),i=new URL(e);if(n.origin!==i.origin)return t;const r=n.pathname.split("/").slice(1),s=i.pathname.split("/").slice(1,-1);for(;r[0]===s[0];)r.shift(),s.shift();for(;s.length;)s.shift(),r.unshift("..");return r.join("/")}(t,e.baseUrl)),encodeURIComponent(t)),rtp:Bs,tb:Ls};function Os(t,e){const n={};if(null==t||"object"!=typeof t)return n;const r=Object.keys(t).sort(),s=A({},Ps,null==e?void 0:e.formatters),a=null==e?void 0:e.filter;return r.forEach((r=>{if(null==a?void 0:a(r))return;let o=t[r];const l=s[r];l&&(o=l(o,e)),"v"===r&&1===o||"pr"==r&&1===o||function(t){return"number"==typeof t?i(t):null!=t&&""!==t&&!1!==t}(o)&&(function(t){return"ot"===t||"sf"===t||"st"===t}(r)&&"string"==typeof o&&(o=new ys(o)),n[r]=o)})),n}function Ms(t,e={}){return t?function(t,e){return Rs(t,e)}(Os(t,e),A({whitespace:!1},e)):""}function Ns(t,e,n){return A(t,function(t,e={}){const n={};if(!t)return n;const i=Object.entries(t),r=Object.entries(ps).concat(Object.entries((null==e?void 0:e.customHeaderMap)||{})),s=i.reduce(((t,e)=>{var n,i;const[s,a]=e,o=(null===(n=r.find((t=>t[1].includes(s))))||void 0===n?void 0:n[0])||fs;return null!==(i=t[o])&&void 0!==i||(t[o]={}),t[o][s]=a,t}),{});return Object.entries(s).reduce(((t,[n,i])=>(t[n]=Ms(i,e),t)),n)}(e,n))}const Fs=/CMCD=[^&#]+/;function _s(t,e,n){const i=function(t,e={}){if(!t)return"";const n=Ms(t,e);return`CMCD=${encodeURIComponent(n)}`}(e,n);if(!i)return t;if(Fs.test(t))return t.replace(Fs,i);const r=t.includes("?")?"&":"?";return`${t}${r}${i}`}function Us(t,e,n,i){t&&Object.keys(e).forEach((r=>{const s=t.filter((t=>t.groupId===r)).map((t=>{const s=A({},t);return s.details=void 0,s.attrs=new nn(s.attrs),s.url=s.attrs.URI=zs(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),s.groupId=s.attrs["GROUP-ID"]=e[r],s.attrs["PATHWAY-ID"]=i,s}));t.push(...s)}))}function zs(t,e,n,i){const{HOST:r,PARAMS:s,[n]:a}=i;let o;e&&(o=null==a?void 0:a[e],o&&(t=o));const l=new self.URL(t);return r&&!o&&(l.host=r),s&&Object.keys(s).sort().forEach((t=>{t&&l.searchParams.set(t,s[t])})),l.href}function js(t,e,n){Gs(t,e,n),t.addEventListener(e,n)}function Gs(t,e,n){t.removeEventListener(e,n)}class Hs extends E{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Hs.CDMCleanupPromise?[Hs.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:e,initData:n}=t,i=`"${t.type}" event: init data type: "${e}"`;if(this.debug(i),null!==n){if(!this.keyFormatPromise){let t=Object.keys(this.keySystemAccessPromises);t.length||(t=Tn(this.config));const e=t.map(kn).filter((t=>!!t));this.keyFormatPromise=this.getKeyFormatPromise(e)}this.keyFormatPromise.then((r=>{const s=yn(r);let a,o;if("sinf"===e){if(s!==fn.FAIRPLAY)return void this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${e}" for selected key-system ${s}`);const r=tt(new Uint8Array(n));try{const t=pt(un(JSON.parse(r).sinf));if(!t)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(t.subarray(8,24)),o=fn.FAIRPLAY}catch(t){return void this.warn(`${i} Failed to parse sinf: ${t}`)}}else{if(s!==fn.WIDEVINE&&s!==fn.PLAYREADY)return void this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${e}" for selected key-system ${s}`);const r=function(t){const e=[];if(t instanceof ArrayBuffer){const n=t.byteLength;let i=0;for(;i+32!!t.systemId&&xn(t.systemId)===s));l.length>1&&this.warn(`${i} Using first of ${l.length} pssh found for selected key-system ${s}`);const u=l[0];if(!u)return void(0===r.length||r.some((t=>!t.systemId))?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${r.map((t=>xn(t.systemId))).join(",")} pssh data in favor of playlist keys`));if(o=xn(u.systemId),0===u.version&&u.data)if(o===fn.WIDEVINE){const t=u.data.length-22;a=new Uint8Array(u.data.subarray(t,t+16))}else o===fn.PLAYREADY&&(a=Sn(u.data))}if(!o||!a)return;const l=B(a),{keyIdToKeySessionPromise:u,mediaKeySessions:h}=this;let c=u[l];for(let t=0;tthis.generateRequestWithPreferredKeySession(i,e,n,"encrypted-event-key-match"))),c.catch((t=>this.handleError(t)));break}}if(!c){if(o!==s)return void this.log(`Ignoring "${t.type}" event with ${o} init data for selected key-system ${s}`);c=u[l]=this.getKeySystemSelectionPromise([o]).then((({keySystem:t,mediaKeys:i})=>{var r;this.throwIfDestroyed();const s=new Rn("ISO-23001-7",l,null!=(r=kn(t))?r:"");return s.pssh=new Uint8Array(n),s.keyId=a,this.attemptSetMediaKeys(t,i).then((()=>{this.throwIfDestroyed();const r=this.createMediaKeySessionContext({decryptdata:s,keySystem:t,mediaKeys:i});return this.generateRequestWithPreferredKeySession(r,e,n,"encrypted-event-no-match")}))})),c.catch((t=>this.handleError(t)))}}))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(l.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(l.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:e,widevineLicenseUrl:n}=this.config,i=e[t];return i?i.licenseUrl:t===fn.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(t){const e=this.getLicenseServerUrl(t);if(void 0===e)throw new Error(`no license server URL configured for key-system "${t}"`);return e}getServerCertificateUrl(t){const{drmSystems:e}=this.config,n=e[t];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const e=this.hls.levels,n=(t,e,n)=>!!t&&n.indexOf(t)===e,i=e.map((t=>t.audioCodec)).filter(n),r=e.map((t=>t.videoCodec)).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((e,n)=>{const s=t=>{const l=t.shift();this.getMediaKeysPromise(l,i,r).then((t=>e({keySystem:l,mediaKeys:t}))).catch((e=>{t.length?s(t):n(e instanceof Qs?e:new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))};s(t)}))}requestMediaKeySystemAccess(t,e){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let t=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===Cn&&"http:"===self.location.protocol&&(t=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(t))}return n(t,e)}getMediaKeysPromise(t,e,n){const i=function(t,e,n,i){let r;switch(t){case fn.FAIRPLAY:r=["cenc","sinf"];break;case fn.WIDEVINE:case fn.PLAYREADY:r=["cenc"];break;case fn.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${t}`)}return function(t,e,n,i){return[{initDataTypes:t,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map((t=>({contentType:`audio/mp4; codecs=${t}`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:n.map((t=>({contentType:`video/mp4; codecs=${t}`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,e,n,i)}(t,e,n,this.config.drmSystemOptions),r=this.keySystemAccessPromises[t];let s=null==r?void 0:r.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${t}" key-system access with config: ${$t(i)}`),s=this.requestMediaKeySystemAccess(t,i);const e=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch((e=>{this.log(`Failed to obtain access to key-system "${t}": ${e}`)})),s.then((n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);const i=this.fetchServerCertificate(t);return this.log(`Create media-keys for "${t}"`),e.mediaKeys=n.createMediaKeys().then((n=>(this.log(`Media-keys created for "${t}"`),e.hasMediaKeys=!0,i.then((e=>e?this.setMediaKeysServerCertificate(n,t,e):n))))),e.mediaKeys.catch((e=>{this.error(`Failed to create media-keys for "${t}"}: ${e}`)})),e.mediaKeys}))}return s.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:t,keySystem:e,mediaKeys:n}){this.log(`Creating key-system session "${e}" keyId: ${B(t.keyId||[])}`);const i=n.createSession(),r={decryptdata:t,keySystem:e,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(t){const e=t.decryptdata;if(e.pssh){const n=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,e.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}getKeyIdString(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return B(t.keyId)}updateKeySession(t,e){var n;const i=t.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${B((null==(n=t.decryptdata)?void 0:n.keyId)||[])}\n } (data length: ${e?e.byteLength:e})`),i.update(e)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map((t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys}))).filter((({hasMediaKeys:t})=>!!t)).map((({keySystem:t})=>kn(t))).filter((t=>!!t))}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then((({keySystem:t,mediaKeys:e})=>this.attemptSetMediaKeys(t,e)))}selectKeySystem(t){return new Promise(((e,n)=>this.getKeySystemSelectionPromise(t).then((({keySystem:t})=>{const i=kn(t);i?e(i):n(new Error(`Unable to find format for key-system "${t}"`))})).catch(n)))}selectKeySystemFormat(t){const e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise}getKeyFormatPromise(t){const e=Tn(this.config),n=t.map(yn).filter((t=>!!t&&-1!==e.indexOf(t)));return this.selectKeySystem(n)}loadKey(t){const e=t.keyInfo.decryptdata,n=this.getKeyIdString(e),i=`(keyId: ${n} format: "${e.keyFormat}" method: ${e.method} uri: ${e.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[n];if(!r){r=this.getKeySystemForKeyPromise(e).then((({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:e})))))));(this.keyIdToKeySessionPromise[n]=r.then((t=>{const n=e.pssh?e.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(t,"cenc",n,"playlist-key")}))).catch((t=>this.handleError(t)))}return r}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t){this.hls&&(this.error(t.message),t instanceof Qs?this.hls.trigger(l.ERROR,t.data):this.hls.trigger(l.ERROR,{type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))}getKeySystemForKeyPromise(t){const e=this.getKeyIdString(t),n=this.keyIdToKeySessionPromise[e];if(!n){const e=yn(t.keyFormat),n=e?[e]:Tn(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(t){if(t.length||(t=Tn(this.config)),0===t.length)throw new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${$t({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,e){if(this.mediaKeys===e)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(n).then((()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(e)}));return this.mediaKeys=e,this.setMediaKeysQueue.push(i),i.then((()=>{this.log(`Media-keys set for "${t}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((t=>-1===n.indexOf(t)))}))}generateRequestWithPreferredKeySession(t,e,n,i){var r,s;const l=null==(r=this.config.drmSystems)||null==(s=r[t.keySystem])?void 0:s.generateRequest;if(l)try{const i=l.call(this.hls,e,n,t);if(!i)throw new Error("Invalid response from configured generateRequest filter");e=i.initDataType,n=i.initData?i.initData:null,t.decryptdata.pssh=n?new Uint8Array(n):null}catch(t){var u;if(this.warn(t.message),null!=(u=this.hls)&&u.config.debug)throw t}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const h=this.getKeyIdString(t.decryptdata);this.log(`Generating key-session request for "${i}": ${h} (init data type: ${e} length: ${n?n.byteLength:null})`);const c=new Ii,d=t._onmessage=e=>{const n=t.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:i,message:r}=e;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(t,r).catch((t=>{c.eventNames().length?c.emit("error",t):this.handleError(t)})):"license-release"===i?t.keySystem===fn.FAIRPLAY&&(this.updateKeySession(t,hn("acknowledged")),this.removeSession(t)):this.warn(`unhandled media key message type "${i}"`)},f=t._onkeystatuseschange=e=>{if(!t.mediaKeysSession)return void c.emit("error",new Error("invalid state"));this.onKeyStatusChange(t);const n=t.keyStatus;c.emit("keyStatus",n),"expired"===n&&(this.warn(`${t.keySystem} expired for key ${h}`),this.renewKeySession(t))};js(t.mediaKeysSession,"message",d),js(t.mediaKeysSession,"keystatuseschange",f);const p=new Promise(((t,e)=>{c.on("error",e),c.on("keyStatus",(n=>{n.startsWith("usable")?t():"output-restricted"===n?e(new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?e(new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?e(new Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)}))}));return t.mediaKeysSession.generateRequest(e,n).then((()=>{var e;this.log(`Request generated for key-session "${null==(e=t.mediaKeysSession)?void 0:e.sessionId}" keyId: ${h}`)})).catch((t=>{throw new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},`Error generating key-session request: ${t}`)})).then((()=>p)).catch((e=>{throw c.removeAllListeners(),this.removeSession(t),e})).then((()=>(c.removeAllListeners(),t)))}onKeyStatusChange(t){t.mediaKeysSession.keyStatuses.forEach(((e,n)=>{if("string"==typeof n&&"object"==typeof e){const t=n;n=e,e=t}this.log(`key status change "${e}" for keyStatuses keyId: ${B("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${B(new Uint8Array(t.decryptdata.keyId||[]))} uri: ${t.decryptdata.uri}`),t.keyStatus=e}))}fetchServerCertificate(t){const e=this.config,n=new(0,e.loader)(e),i=this.getServerCertificateUrl(t);return i?(this.log(`Fetching server certificate for "${t}"`),new Promise(((r,s)=>{const l={responseType:"arraybuffer",url:i},u=e.certLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,e,n,i)=>{r(t.data)},onError:(e,n,r,u)=>{s(new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:w({url:l.url,data:void 0},e)},`"${t}" certificate request failed (${i}). Status: ${e.code} (${e.text})`))},onTimeout:(e,n,r)=>{s(new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:l.url,data:void 0}},`"${t}" certificate request timed out (${i})`))},onAbort:(t,e,n)=>{s(new Error("aborted"))}};n.load(l,h,c)}))):Promise.resolve()}setMediaKeysServerCertificate(t,e,n){return new Promise(((i,r)=>{t.setServerCertificate(n).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${e}"`),i(t)})).catch((t=>{r(new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))}))}))}renewLicense(t,e){return this.requestLicense(t,new Uint8Array(e)).then((e=>this.updateKeySession(t,new Uint8Array(e)).catch((t=>{throw new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)}))))}unpackPlayReadyKeyMessage(t,e){const n=String.fromCharCode.apply(null,new Uint16Array(e.buffer));if(!n.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),e;const i=(new DOMParser).parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let e;for(let n=0,i=r.length;n in key message");return hn(atob(l))}setupLicenseXHR(t,e,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,t,e,n,i)})).catch((s=>{if(!n.decryptdata)throw s;return t.open("POST",e,!0),r.call(this.hls,t,e,n,i)})).then((n=>{t.readyState||t.open("POST",e,!0);return{xhr:t,licenseChallenge:n||i}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,e){const n=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return r(new Error("invalid state"));if(4===l.readyState)if(200===l.status){this._requestLicenseFailureCount=0;let e=l.response;this.log(`License received ${e instanceof ArrayBuffer?e.byteLength:e}`);const n=this.config.licenseResponseCallback;if(n)try{e=n.call(this.hls,l,s,t)}catch(t){this.error(t)}i(e)}else{const u=n.errorRetry,h=u?u.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>h||l.status>=400&&l.status<500)r(new Qs({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const n=h-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(t,e).then(i,r)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=l,this.setupLicenseXHR(l,s,t,e).then((({xhr:e,licenseChallenge:n})=>{t.keySystem==fn.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(e,n)),e.send(n)}))}))}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,e){if(!this.config.emeEnabled)return;const n=e.media;this.media=n,js(n,"encrypted",this.onMediaEncrypted),js(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(Gs(t,"encrypted",this.onMediaEncrypted),Gs(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const e=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Rn.clearKeyUriToKeyIdMap();const i=n.length;Hs.CDMCleanupPromise=Promise.all(n.map((t=>this.removeSession(t))).concat(null==e||null==(t=e.setMediaKeys(null))?void 0:t.catch((t=>{var e;this.log(`Could not clear media keys: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${t}`)})})))).catch((t=>{var e;this.log(`Could not close sessions and clear media keys: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${t}`)})})).then((()=>{i&&this.log("finished closing key sessions and clearing media keys")}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(t,{sessionKeys:e}){if(e&&this.config.emeEnabled&&!this.keyFormatPromise){const t=e.reduce(((t,e)=>(-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t)),[]);this.log(`Selecting key-system from session-keys ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)}}removeSession(t){const{mediaKeysSession:e,licenseXhr:n}=t;if(e){this.log(`Remove licenses and keys and close session ${e.sessionId}`),t._onmessage&&(e.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(e.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);i>-1&&this.mediaKeySessions.splice(i,1);const{drmSystemOptions:r}=this.config,s=function(t){var e;return"persistent-license"===t.sessionType||!(null==(e=t.sessionTypes)||!e.some((t=>"persistent-license"===t)))}(r)?new Promise(((t,n)=>{self.setTimeout((()=>n(new Error("MediaKeySession.remove() timeout"))),8e3),e.remove().then(t)})):Promise.resolve();return s.catch((t=>{var e;this.log(`Could not remove session: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${t}`)})})).then((()=>e.close())).catch((t=>{var e;this.log(`Could not close session: ${t}`),null==(e=this.hls)||e.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${t}`)})}))}}}Hs.CDMCleanupPromise=void 0;class Qs extends Error{constructor(t,e){super(e),this.data=void 0,t.error||(t.error=new Error(e)),this.data=t,t.err=t.error}}function qs(t,e){let n;try{n=new Event("addtrack")}catch(t){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=t,e.dispatchEvent(n)}function Vs(t,e){const n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){S.debug(`[texttrack-utils]: ${n}`);try{const n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,t.addCue(n)}catch(t){S.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${t}`)}}"disabled"===n&&(t.mode=n)}function Ys(t,e){const n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues)for(let n=t.cues.length;n--;)e&&t.cues[n].removeEventListener("enter",e),t.removeCue(t.cues[n]);"disabled"===n&&(t.mode=n)}function Ks(t,e,n,i){const r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&t.cues.length>0){const r=function(t,e,n){const i=[],r=function(t,e){if(e<=t[0].startTime)return 0;const n=t.length-1;if(e>t[n].endTime)return-1;let i,r=0,s=n;for(;r<=s;)if(i=Math.floor((s+r)/2),et[i].startTime&&r-1)for(let s=r,a=t.length;s=e&&r.endTime<=n)i.push(r);else if(r.startTime>n)return i}return i}(t.cues,e,n);for(let e=0;e>>0).toString()}const Zs=.025;let Js=function(t){return t[t.Point=0]="Point",t[t.Range=1]="Range",t}({});function $s(t,e,n){return`${t.identifier}-${n+1}-${Ws(e)}`}class ta{constructor(t,e){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=e,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,null==(t=this.assetListLoader)||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var e;if(t>0&&t>=this.assetList.length)return!0;const n=this.playoutLimit;if(t<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(e=this.assetList[t])?void 0:e.startOffset)||0)>n}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const e=this.dateRange.tagAnchor;if(e)return ea(t,e)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const e=this.dateRange.startTime;return e-ea(e,t)<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,e=i(t)?t:this.duration;return this.cumulativeDuration+e}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const e=this.resumeAnchor;if(e)return ea(t,e)}return t}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)0||null!==this.assetListResponse}toString(){return`["${(t=this).identifier}" ${t.cue.pre?"
      ":t.cue.post?"":""}${t.timelineStart.toFixed(2)}-${t.resumeTime.toFixed(2)}]`;var t}}function ea(t,e){return t-e.start{this.reachedPlayout(this.currentTime)&&this.hls.trigger(l.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new t(e);this.interstitial=n,this.assetItem=i;let s=i.uri;try{s=na(s,e.primarySessionId).href}catch(t){}r.loadSource(s);const a=()=>{this.hasDetails=!0};r.once(l.LEVEL_LOADED,a),r.once(l.AUDIO_TRACK_LOADED,a),r.once(l.SUBTITLE_TRACK_LOADED,a),r.on(l.MEDIA_ATTACHING,((t,{media:e})=>{this.removeMediaListeners(),this.mediaAttached=e;this.interstitial.playoutLimit&&(e.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(l.BUFFER_APPENDED,(()=>{const t=this.bufferedEnd;this.reachedPlayout(t)&&(this._bufferedEosTime=t,r.trigger(l.BUFFERED_TO_END,void 0))})))}))}get appendInPlace(){var t;return(null==(t=this.interstitial)?void 0:t.appendInPlace)||!1}bufferedInPlaceToEnd(t){var e;if(!this.appendInPlace)return!1;if(null!=(e=this.hls)&&e.bufferedToEnd)return!0;if(!t||!this._bufferedEosTime)return!1;const n=this.timelineOffset,i=Ke.bufferInfo(t,n,0);return this.getAssetTime(i.end)>=this._bufferedEosTime-.02}reachedPlayout(t){const e=this.interstitial.playoutLimit;return this.startOffset+t>=e}get destroyed(){var t;return!(null!=(t=this.hls)&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return(null==(t=this.hls)?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const e=Ke.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(e.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;return t||0}get remaining(){const t=this.duration;return t?Math.max(0,t-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var t;return(null==(t=this.hls)?void 0:t.config.timelineOffset)||0}set timelineOffset(t){const e=this.timelineOffset;if(t!==e){const n=t-e;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const e=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,t-e),n)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var t;this.mediaAttached&&(null!=(t=this.hls)&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){this.hls.attachMedia(t)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}resetDetails(){const t=this.hls;if(this.hasDetails){t.stopLoad();const e=t=>delete t.details;t.levels.forEach(e),t.allAudioTracks.forEach(e),t.allSubtitleTracks.forEach(e),this.hasDetails=!1}}on(t,e,n){this.hls.on(t,e)}once(t,e,n){this.hls.once(t,e)}off(t,e,n){this.hls.off(t,e)}toString(){var t;return`HlsAssetPlayer: ${ra(this.assetItem)} ${null==(t=this.hls)?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}class aa extends E{constructor(t,e){super("interstitials-sched",e),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((t=>t.reset())),this.events=this.items=null}resetErrorsInRange(t,e){return this.events?this.events.reduce(((n,i)=>t<=i.startOffset&&e>i.startOffset?(delete i.error,n+1):n),0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,e){if(t.event)return this.findEventIndex(t.event.identifier);let n=-1;t.nextEvent?n=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(n=this.findEventIndex(t.previousEvent.identifier)+1);const i=this.items;if(i)for(i[n]||(void 0===e&&(e=t.start),n=this.findItemIndexAtTime(e));n>=0&&null!=(r=i[n])&&r.event;){var r;n--}return n}findItemIndexAtTime(t,e){const n=this.items;if(n)for(let i=0;ir.start&&t1)for(let t=0;tn&&e!a.includes(t.identifier))):[];s.length&&s.sort(((t,e)=>{const n=t.cue.pre,i=t.cue.post,r=e.cue.pre,s=e.cue.post;if(n&&!r)return-1;if(r&&!n)return 1;if(i&&!s)return 1;if(s&&!i)return-1;if(!(n||r||i||s)){const n=t.startTime,i=e.startTime;if(n!==i)return n-i}return t.dateRange.tagOrder-e.dateRange.tagOrder})),this.events=s,o.forEach((t=>{this.removeEvent(t)})),this.updateSchedule(t,o)}updateSchedule(t,e=[]){const n=this.events||[];if(n.length||e.length||this.length<2){const i=this.items,r=this.parseSchedule(n,t);(e.length||(null==i?void 0:i.length)!==r.length||r.some(((t,e)=>Math.abs(t.playout.start-i[e].playout.start)>.005||Math.abs(t.playout.end-i[e].playout.end)>.005)))&&(this.items=r,this.onScheduleUpdate(e,i))}}parseDateRanges(t,e,n){const i=[],r=Object.keys(t);for(let s=0;s!(t.error||t.cue.once&&t.hasPlayed)))).length){this.resolveOffsets(t,e);let i=0,o=0;if(t.forEach(((e,a)=>{const l=e.cue.pre,u=e.cue.post,h=t[a-1]||null,c=e.appendInPlace,d=u?r:e.startOffset,f=e.duration,p=e.timelineOccupancy===Js.Range?f:0,g=e.resumptionOffset,m=(null==h?void 0:h.startTime)===d,v=d+e.cumulativeDuration;let y=c?v+f:d+g;if(l||!u&&d<=0){const t=o;o+=p,e.timelineStart=v;const i=s;s+=f,n.push({event:e,start:v,end:y,playout:{start:i,end:s},integrated:{start:t,end:o}})}else{if(!(d<=r))return;{if(!m){const r=d-i;if(r>.033){const l=i,u=o;o+=r;const h=s;s+=r;const c={previousEvent:t[a-1]||null,nextEvent:e,start:l,end:l+r,playout:{start:h,end:s},integrated:{start:u,end:o}};n.push(c)}else r>0&&h&&(h.cumulativeDuration+=r,n[n.length-1].end=d)}u&&(y=v),e.timelineStart=v;const r=o;o+=p;const l=s;s+=f,n.push({event:e,start:v,end:y,playout:{start:l,end:s},integrated:{start:r,end:o}})}}const A=e.resumeTime;i=u||A>r?r:A})),i{const u=o.cue.pre,h=o.cue.post,c=u?0:h?r:o.startTime;this.updateAssetDurations(o);if(a===c?o.cumulativeDuration=s:(s=0,a=c),!h&&o.snapOptions.in&&(o.resumeAnchor=ue(null,n.fragments,o.startOffset+o.resumptionOffset,0,0)||void 0),o.appendInPlace&&!o.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(o,e)||(o.appendInPlace=!1)}if(!o.appendInPlace&&l+1Zs)return this.log(`"${t.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1;if(!e)return this.log(`"${t.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1;return!Object.keys(e).some((i=>{const r=e[i].details,s=r.edge;if(n>=s)return this.log(`"${t.identifier}" resumption ${n} past ${i} playlist end ${s}`),!1;const a=ue(null,r.fragments,n);if(!a)return this.log(`"${t.identifier}" resumption ${n} does not align with any fragments in ${i} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;const o="audio"===i?.175:0;return!(Math.abs(a.start-n){const a=e+n;t.startOffset=n,t.timelineStart=a,i||(i=null===t.duration),r||(r=!!t.error);const o=t.error?0:t.duration||0;n+=o})),t.duration=i&&!r?Math.max(n,t.duration):n}removeEvent(t){t.reset(),delete this.eventMap[t.identifier]}}function oa(t){return`[${t.event?'"'+t.event.identifier+'"':"primary"}: ${t.start.toFixed(2)}-${t.end.toFixed(2)}]`}class la{constructor(t){this.hls=void 0,this.hls=t}destroy(){this.hls=null}loadAssetList(t,e){const n=t.assetListUrl;let i;try{i=na(n,this.hls.sessionId,t.baseUrl)}catch(e){const i=this.assignAssetListError(t,o.ASSET_LIST_LOAD_ERROR,e,n);return void this.hls.trigger(l.ERROR,i)}e&&"data:"!==i.protocol&&i.searchParams.set("_HLS_start_offset",""+e);const r=this.hls.config,s=new(0,r.loader)(r),a={responseType:"json",url:i.href},u=r.interstitialAssetListLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,n,i,r)=>{const s=e.data,a=null==s?void 0:s.ASSETS;if(Array.isArray(a))t.assetListResponse=s,this.hls.trigger(l.ASSET_LIST_LOADED,{event:t,assetListResponse:s,networkDetails:r});else{const e=this.assignAssetListError(t,o.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),i.url,n,r);this.hls.trigger(l.ERROR,e)}},onError:(e,n,i,r)=>{const s=this.assignAssetListError(t,o.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${e.code} ${e.text} (${n.url})`),n.url,r,i);this.hls.trigger(l.ERROR,s)},onTimeout:(e,n,i)=>{const r=this.assignAssetListError(t,o.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,e,i);this.hls.trigger(l.ERROR,r)}};return s.load(a,h,c),this.hls.trigger(l.ASSET_LIST_LOADING,{event:t}),s}assignAssetListError(t,e,n,i,r,s){return t.error=n,{type:a.NETWORK_ERROR,details:e,fatal:!1,interstitial:t,url:i,error:n,networkDetails:s,stats:r}}}function ua(t){null==t||t.play().catch((()=>{}))}class ha{constructor(t){this.buffered=void 0;const e=(e,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${e}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return t[n][e]};this.buffered={get length(){return t.length},end(n){return e("end",n,t.length)},start(n){return e("start",n,t.length)}}}}const ca={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},da=t=>String.fromCharCode(ca[t]||t),fa=15,pa=100,ga={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ma={17:2,18:4,21:6,22:8,23:10,19:13,20:15},va={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ya={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Aa=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class ba{constructor(){this.time=null,this.verboseLevel=0}log(t,e){if(this.verboseLevel>=t){const n="function"==typeof e?e():e;S.log(`${this.time} [${t}] ${n}`)}}}const wa=function(t){const e=[];for(let n=0;npa&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=pa)}moveCursor(t){const e=this.pos+t;if(t>1)for(let t=this.pos+1;t=144&&this.backSpace();const e=da(t);this.pos>=pa?this.logger.log(0,(()=>"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))}clearFromPos(t){let e;for(e=t;e"pacData = "+$t(t)));let e=t.row-1;if(this.nrRollUpRows&&e"bkgData = "+$t(t))),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const e=[];let n="",i=-1;for(let n=0;n0&&(n=t?"["+e.join(" | ")+"]":e.join("\n")),n}getTextAndFormat(){return this.rows}}class Ca{constructor(t,e,n){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=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Ta(n),this.nonDisplayedMemory=new Ta(n),this.lastOutputScreen=new Ta(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(()=>"MODE="+t)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let e=0;ee+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{const n=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=i[n]}this.logger.log(2,"MIDROW: "+$t(e)),this.writeScreen.setPen(e)}outputDataUpdate(t=!1){const e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class Da{constructor(t,e,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const i=this.logger=new ba;this.channels=[null,new Ca(t,e,i),new Ca(t+1,n,i)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,e){this.channels[t].setHandler(e)}addData(t,e){this.logger.time=t;for(let t=0;t"["+wa([e[t],e[t+1]])+"] -> ("+wa([n,i])+")"));const a=this.cmdHistory;if(n>=16&&n<=31){if(Ia(n,i,a)){Sa(null,null,a),this.logger.log(3,(()=>"Repeated command ("+wa([n,i])+") is dropped"));continue}Sa(n,i,this.cmdHistory),r=this.parseCmd(n,i),r||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i))}else Sa(null,null,a);if(!r&&(s=this.parseChars(n,i),s)){const t=this.currentChannel;if(t&&t>0){this.channels[t].insertChars(s)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||s||this.logger.log(2,(()=>"Couldn't parse cleaned data "+wa([n,i])+" orig: "+wa([e[t],e[t+1]])))}}parseCmd(t,e){if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=33&&e<=35))return!1;const n=20===t||21===t||23===t?1:2,i=this.channels[n];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),this.currentChannel=n,!0}parseMidrow(t,e){let n=0;if((17===t||25===t)&&e>=32&&e<=47){if(n=17===t?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[n];return!!i&&(i.ccMIDROW(e),this.logger.log(3,(()=>"MIDROW ("+wa([t,e])+")")),!0)}return!1}parsePAC(t,e){let n;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127)&&!((16===t||24===t)&&e>=64&&e<=95))return!1;const i=t<=23?1:2;n=e>=64&&e<=95?1===i?ga[t]:va[t]:1===i?ma[t]:ya[t];const r=this.channels[i];return!!r&&(r.setPAC(this.interpretPAC(n,e)),this.currentChannel=i,!0)}interpretPAC(t,e){let n;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return n=e>95?e-96:e-64,i.underline=1==(1&n),n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(t,e){let n,i=null,r=null;if(t>=25?(n=2,r=t-8):(n=1,r=t),r>=17&&r<=19){let t;t=17===r?e+80:18===r?e+112:e+144,this.logger.log(2,(()=>"Special char '"+da(t)+"' in channel "+n)),i=[t]}else t>=32&&t<=127&&(i=0===e?[t]:[t,e]);return i&&this.logger.log(3,(()=>"Char codes =  "+wa(i).join(","))),i}parseBackgroundAttributes(t,e){if(!((16===t||24===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=45&&e<=47))return!1;let n;const i={};16===t||24===t?(n=Math.floor((e-32)/2),i.background=Aa[n],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));const r=t<=23?1:2;return this.channels[r].setBkgData(i),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");A=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",r({},l,{get:function(){return b},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",r({},l,{get:function(){return w},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",r({},l,{get:function(){return E},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");E=e,this.hasBeenReset=!0}})),o.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class La{decode(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function Ba(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+parseFloat(i||0)}const n=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?e(n[2],n[3],0,n[4]):e(n[1],n[2],n[3],n[4]):null}class Pa{constructor(){this.values=Object.create(null)}set(t,e){this.get(t)||""===e||(this.values[t]=e)}get(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e}has(t){return t in this.values}alt(t,e,n){for(let i=0;i=0&&n<=100)return this.set(t,n),!0}return!1}}function Oa(t,e,n,i){const r=i?t.split(i):[t];for(const t in r){if("string"!=typeof r[t])continue;const i=r[t].split(n);if(2!==i.length)continue;e(i[0],i[1])}}const Ma=new Ra(0,0,""),Na="middle"===Ma.align?"middle":"center";function Fa(t,e,n){const i=t;function r(){const e=Ba(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function s(){t=t.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),s(),e.endTime=r(),s(),function(t,e){const i=new Pa;Oa(t,(function(t,e){let r;switch(t){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":r=e.split(","),i.integer(t,r[0]),i.percent(t,r[0])&&i.set("snapToLines",!1),i.alt(t,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",Na,"end"]);break;case"position":r=e.split(","),i.percent(t,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",Na,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",Na,"end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===Ma.line&&(r=-1),e.line=r,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",Na);let s=i.get("position","auto");"auto"===s&&50===Ma.position&&(s="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=s}(t,e)}function _a(t){return t.replace(//gi,"\n")}class Ua{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new La,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const e=this;function n(){let t=e.buffer,n=0;for(t=_a(t);n0&&h.push(t)},l.onparsingerror=function(t){d=t},l.onflush=function(){d?o(d):a(h)},u.forEach((t=>{if(m){if(ja(t,"X-TIMESTAMP-MAP=")){m=!1,t.slice(16).split(",").forEach((t=>{ja(t,"LOCAL:")?f=t.slice(6):ja(t,"MPEGTS:")&&(p=parseInt(t.slice(7)))}));try{g=function(t){let e=parseInt(t.slice(-3));const n=parseInt(t.slice(-6,-4)),r=parseInt(t.slice(-9,-7)),s=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(i(e)&&i(n)&&i(r)&&i(s)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return e+=1e3*n,e+=6e4*r,e+=36e5*s,e}(f)/1e3}catch(t){d=t}return}""===t&&(m=!1)}l.parse(t+"\n")})),l.flush()}const Qa="stpp.ttml.im1t",qa=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Va=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Ya={left:"start",center:"center",right:"end",start:"start",end:"end"};function Ka(t,e,n,i){const r=at(new Uint8Array(t),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const s=r.map((t=>L(t))),a=function(t,e,n=1,i=!1){return Or(t,e,1/n,i)}(e.baseTime,1,e.timescale);try{s.forEach((t=>n(function(t,e){const n=(new DOMParser).parseFromString(t,"text/xml"),i=n.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(r).reduce(((t,e)=>(t[e]=i.getAttribute(`ttp:${e}`)||r[e],t)),{}),a="preserve"!==i.getAttribute("xml:space"),o=Wa(Xa(i,"styling","style")),l=Wa(Xa(i,"layout","region")),u=Xa(i,"body","[begin]");return[].map.call(u,(t=>{const n=Za(t,a);if(!n||!t.hasAttribute("begin"))return null;const i=to(t.getAttribute("begin"),s),r=to(t.getAttribute("dur"),s);let u=to(t.getAttribute("end"),s);if(null===i)throw $a(t);if(null===u){if(null===r)throw $a(t);u=i+r}const h=new Ra(i-e,u-e,n);h.id=Ga(h.startTime,h.endTime,h.text);const c=function(t,e,n){const i="http://www.w3.org/ns/ttml#styling";let r=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;a&&n.hasOwnProperty(a)&&(r=n[a]);return s.reduce(((n,s)=>{const a=Ja(e,i,s)||Ja(t,i,s)||Ja(r,i,s);return a&&(n[s]=a),n}),{})}(l[t.getAttribute("region")],o[t.getAttribute("style")],o),{textAlign:d}=c;if(d){const t=Ya[d];t&&(h.lineAlign=t),h.align=d}return A(h,c),h})).filter((t=>null!==t))}(t,a))))}catch(t){i(t)}}function Xa(t,e,n){const i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function Wa(t){return t.reduce(((t,e)=>{const n=e.getAttribute("xml:id");return n&&(t[n]=e),t}),{})}function Za(t,e){return[].slice.call(t.childNodes).reduce(((t,n,i)=>{var r;return"br"===n.nodeName&&i?t+"\n":null!=(r=n.childNodes)&&r.length?Za(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent}),"")}function Ja(t,e,n){return t&&t.hasAttributeNS(e,n)?t.getAttributeNS(e,n):null}function $a(t){return new Error(`Could not parse ttml timestamp ${t}`)}function to(t,e){if(!t)return null;let n=Ba(t);return null===n&&(qa.test(t)?n=function(t,e){const n=qa.exec(t),i=(0|n[4])+(0|n[5])/e.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+i/e.frameRate}(t,e):Va.test(t)&&(n=function(t,e){const n=Va.exec(t),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),n}class eo{constructor(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,e,n){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function no(t){return t.characteristics&&/transcribes-spoken-dialog/gi.test(t.characteristics)&&/describes-music-and-sound/gi.test(t.characteristics)?"captions":"subtitles"}function io(t,e){return!!t&&t.kind===no(e)&&is(e,t)}const ro=/\s/,so={newCue(t,e,n,i){const r=[];let s,a,o,l,u;const h=self.VTTCue||self.TextTrackCue;for(let d=0;d=16?l--:l++;const i=_a(u.trim()),f=Ga(e,n,i);null!=t&&null!=(c=t.cues)&&c.getCueById(f)||(a=new h(e,n,i),a.id=f,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(a))}return t&&r.length&&(r.sort(((t,e)=>"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line)),r.forEach((e=>Vs(t,e)))),r}};const ao=/(\d+)-(\d+)\/(\d+)/;class oo{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||lo,this.controller=new self.AbortController,this.stats=new G}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,e,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const s=function(t,e){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(A({},t.headers))};t.rangeEnd&&n.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1));return n}(t,this.controller.signal),a="arraybuffer"===t.responseType,o=a?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=e.loadPolicy;this.context=t,this.config=e,this.callbacks=n,this.request=this.fetchSetup(t,s),self.clearTimeout(this.requestTimeout),e.timeout=l&&i(l)?l:u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,t,this.response))}),e.timeout);(Xr(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((n=>{var s;this.response=this.loader=n;const o=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),e.timeout=u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,t,this.response))}),u-(o-r.loading.start)),!n.ok){const{status:t,statusText:e}=n;throw new uo(e||"fetch, bad network response",t,n)}r.loading.first=o,r.total=function(t){const e=t.get("Content-Range");if(e){const t=function(t){const e=ao.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(i(t))return t}const n=t.get("Content-Length");if(n)return parseInt(n)}(n.headers)||r.total;const l=null==(s=this.callbacks)?void 0:s.onProgress;return l&&i(e.highWaterMark)?this.loadProgressively(n,r,t,e.highWaterMark,l):a?n.arrayBuffer():"json"===t.responseType?n.json():n.text()})).then((n=>{var s,a;const l=this.response;if(!l)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const u=n[o];u&&(r.loaded=r.total=u);const h={url:l.url,data:n,code:l.status},c=null==(s=this.callbacks)?void 0:s.onProgress;c&&!i(e.highWaterMark)&&c(r,t,n,l),null==(a=this.callbacks)||a.onSuccess(h,r,t,l)})).catch((e=>{var n;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const i=e&&e.code||0,s=e?e.message:null;null==(n=this.callbacks)||n.onError({code:i,text:s},t,e?e.details:null,r)}))}getCacheAge(){let t=null;if(this.response){const e=this.response.headers.get("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,e,n,i=0,r){const s=new Ti,a=t.body.getReader(),o=()=>a.read().then((a=>{if(a.done)return s.dataLength&&r(e,n,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const l=a.value,u=l.length;return e.loaded+=u,u=i&&r(e,n,s.flush().buffer,t)):r(e,n,l.buffer,t),o()})).catch((()=>Promise.reject()));return o()}}function lo(t,e){return new self.Request(t.url,e)}class uo extends Error{constructor(t,e,n){super(t),this.code=void 0,this.details=void 0,this.code=e,this.details=n}}const ho=/^age:\s*[\d.]+\s*$/im;class co{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new G,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,e,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:t,context:e}=this;if(!t||!e)return;const n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return r(n,e.url)})).catch((t=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",e.url,!0),r(n,e.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,e,t)})).catch((t=>{var r;null==(r=this.callbacks)||r.onError({code:n.status,text:t.message},e,n,i)})):this.openAndSendXhr(n,e,t)}openAndSendXhr(t,e,n){t.readyState||t.open("GET",e.url,!0);const r=e.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const e in r)t.setRequestHeader(e,r[e]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),n.timeout=s&&i(s)?s:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),t.send()}readystatechange(){const{context:t,loader:e,stats:n}=this;if(!t||!e)return;const i=e.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;const i=e.status,l="text"===e.responseType?e.responseText:null;if(i>=200&&i<300){const r=null!=l?l:e.response;if(null!=r){var s,a;n.loading.end=Math.max(self.performance.now(),n.loading.first);const o="arraybuffer"===e.responseType?r.byteLength:r.length;n.loaded=n.total=o,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(s=this.callbacks)?void 0:s.onProgress;l&&l(n,t,r,e);const u={url:e.responseURL,data:r,code:i};return void(null==(a=this.callbacks)||a.onSuccess(u,n,t,e))}}const u=r.loadPolicy.errorRetry;var o;if(ve(u,n.retry,!1,{url:t.url,data:void 0,code:i}))this.retry(u);else S.error(`${i} while loading ${t.url}`),null==(o=this.callbacks)||o.onError({code:i,text:e.statusText},t,e,n)}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry;if(ve(t,this.stats.retry,!0))this.retry(t);else{var e;S.warn(`timeout while loading ${null==(e=this.context)?void 0:e.url}`);const t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:e,stats:n}=this;this.retryDelay=ge(t,n.retry),n.retry++,S.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==e?void 0:e.url}, retrying ${n.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)}getCacheAge(){let t=null;if(this.loader&&ho.test(this.loader.getAllResponseHeaders())){const e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const fo=w(w({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:co,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends E{constructor(t){super("abr",t.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var e;const{fragCurrent:n,partCurrent:r,hls:s}=this,{autoLevelEnabled:a,media:o}=s;if(!n||!o)return;const u=performance.now(),h=r?r.stats:n.stats,c=r?r.duration:n.duration,d=u-h.loading.start,f=s.minAutoLevel,p=n.level,g=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||p<=f)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!a)return;const m=g>-1&&g!==p,v=!!t||m;if(!v&&(o.paused||!o.playbackRate||!o.readyState))return;const y=s.mainForwardBufferInfo;if(!v&&null===y)return;const A=this.bwEstimator.getEstimateTTFB(),b=Math.abs(o.playbackRate);if(d<=Math.max(A,c/(2*b)*1e3))return;const w=y?y.len/b:0,E=h.loading.first?h.loading.first-h.loading.start:-1,x=h.loaded&&E>-1,k=this.getBwEstimate(),T=s.levels,C=T[p],D=Math.max(h.loaded,Math.round(c*(n.bitrate||C.averageBitrate)/8));let S=x?d-E:d;S<1&&x&&(S=Math.min(d,8*h.loaded/k));const I=x?1e3*h.loaded/S:0,R=A/1e3,L=I?(D-h.loaded)/I:8*D/k+R;if(L<=w)return;const B=I?8*I:k,P=!0===(null==(e=(null==t?void 0:t.details)||this.hls.latestLevelDetails)?void 0:e.live),O=this.hls.config.abrBandWidthUpFactor;let M,N=Number.POSITIVE_INFINITY;for(M=p-1;M>f;M--){const t=T[M].maxBitrate,e=!T[M].details||P;if(N=this.getTimeToLoadFrag(R,B,c*t,e),N=L)return;if(N>10*c)return;x?this.bwEstimator.sample(d-Math.min(A,E),h.loaded):this.bwEstimator.sampleTTFB(d);const F=T[M].maxBitrate;this.getBwEstimate()*O>F&&this.resetEstimator(F);const _=this.findBestLevel(F,f,M,0,w,1,1);_>-1&&(M=_),this.warn(`Fragment ${n.sn}${r?" part "+r.index:""} of level ${p} is loading too slowly;\n      Fragment duration: ${n.duration.toFixed(3)}\n      Time to underbuffer: ${w.toFixed(3)} s\n      Estimated load time for current fragment: ${L.toFixed(3)} s\n      Estimated load time for down switch fragment: ${N.toFixed(3)} s\n      TTFB estimate: ${0|E} ms\n      Current BW estimate: ${i(k)?0|k:"Unknown"} bps\n      New BW estimate: ${0|this.getBwEstimate()} bps\n      Switching to level ${M} @ ${0|F} bps`),s.nextLoadLevel=s.nextAutoLevel=M,this.clearTimer();const U=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===M&&M>0){const t=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${M>0?"and switching down":""}\n      Fragment duration: ${n.duration.toFixed(3)} s\n      Time to underbuffer: ${t.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,M>f){let e=this.findBestLevel(this.hls.levels[f].bitrate,f,M,0,t,1,1);-1===e&&(e=f),this.hls.nextLoadLevel=this.hls.nextAutoLevel=e,this.resetEstimator(this.hls.levels[e].bitrate)}}};m||L>2*N?U():this.timer=self.setInterval(U,1e3*N),s.trigger(l.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:h})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new v(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.FRAG_LOADING,this.onFragLoading,this),t.on(l.FRAG_LOADED,this.onFragLoaded,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this),t.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.FRAG_LOADING,this.onFragLoading,this),t.off(l.FRAG_LOADED,this.onFragLoaded,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this),t.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(l.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,e){const n=e.frag;if(!this.ignoreFragment(n)){var i;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(i=e.part)?i:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,e){this.clearTimer()}onError(t,e){if(!e.fatal)switch(e.details){case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case o.FRAG_LOAD_TIMEOUT:{const t=e.frag,{fragCurrent:n,partCurrent:i}=this;if(t&&n&&t.sn===n.sn&&t.level===n.level){const e=performance.now(),n=i?i.stats:t.stats,r=e-n.loading.start,s=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&s>-1){const t=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(t,s),n.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(t,e,n,i){return t+n/e+(i?t+this.lastLevelLoadSec:0)}onLevelLoaded(t,e){const n=this.hls.config,{loading:r}=e.stats,s=r.end-r.first;i(s)&&(this.lastLevelLoadSec=s/1e3),e.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(e.levelInfo)}onFragLoaded(t,{frag:e,part:n}){const i=n?n.stats:e.stats;if(e.type===f&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(e)){if(this.clearTimer(),e.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const t=n?n.duration:e.duration,r=this.hls.levels[e.level],s=(r.loaded?r.loaded.bytes:0)+i.loaded,a=(r.loaded?r.loaded.duration:0)+t;r.loaded={bytes:s,duration:a},r.realBitrate=Math.round(8*s/a)}if(e.bitrateTest){const t={stats:i,frag:e,part:n,id:e.type};this.onFragBuffered(l.FRAG_BUFFERED,t),e.bitrateTest=!1}else this.lastLoadedFragLevel=e.level}}onFragBuffered(t,e){const{frag:n,part:i}=e,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted)return;if(this.ignoreFragment(n))return;const s=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==f||"initSegment"===t.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:e}=this.hls,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,e,t,0,i,1,1);if(r>-1)return r;const s=this.hls.firstLevel,a=Math.min(Math.max(s,e),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,e=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===t||e&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return t;const i=e&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==t){const e=this.hls.levels;if(e.length>Math.max(t,i)&&e[t].loadError<=e[i].loadError)return t}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:e,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:i,config:r,minAutoLevel:s}=n,a=e?e.duration:t?t.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let u=r.abrBandWidthFactor,h=r.abrBandWidthUpFactor;if(l){const t=this.findBestLevel(o,s,i,l,0,u,h);if(t>=0)return this.rebufferNotice=-1,t}let c=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){const t=this.bitrateTestDelay;if(t){c=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-t,this.info(`bitrate test took ${Math.round(1e3*t)}ms, set first fragment max fetchDuration to ${Math.round(1e3*c)} ms`),u=h=1}}const d=this.findBestLevel(o,s,i,l,c,u,h);if(this.rebufferNotice!==d&&(this.rebufferNotice=d,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${d}`)),d>-1)return d;const f=n.levels[s],p=n.loadLevelObj;return p&&(null==f?void 0:f.bitrate){if(!n.codecSet)return t;const r=n.audioGroups;let s=t[n.codecSet];s||(t[n.codecSet]=s={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:i,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),s.minBitrate=Math.min(s.minBitrate,n.bitrate);const a=Math.min(n.height,n.width);return s.minHeight=Math.min(s.minHeight,a),s.minFramerate=Math.min(s.minFramerate,n.frameRate),s.minIndex=Math.min(s.minIndex,i),s.maxScore=Math.max(s.maxScore,n.score),s.fragmentError+=n.fragmentError,s.videoRanges[n.videoRange]=(s.videoRanges[n.videoRange]||0)+1,r&&r.forEach((t=>{if(!t)return;const n=e.groups[t];n&&(s.hasDefaultAudio=s.hasDefaultAudio||e.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(n.channels).forEach((t=>{s.channels[t]=(s.channels[t]||0)+n.channels[t]})))})),t}),{})}(p,C,e,n)),s=function(t,e,n,r,s){const a=Object.keys(t),o=null==r?void 0:r.channels,l=null==r?void 0:r.audioCodec,u=null==s?void 0:s.videoCodec,h=o&&2===parseInt(o);let c=!1,d=!1,f=1/0,p=1/0,g=1/0,m=1/0,v=0,y=[];const{preferHDR:A,allowedVideoRanges:b}=Jt(e,s);for(let e=a.length;e--;){const n=t[a[e]];c||(c=n.channels[2]>0),f=Math.min(f,n.minHeight),p=Math.min(p,n.minFramerate),g=Math.min(g,n.minBitrate),b.filter((t=>n.videoRanges[t]>0)).length>0&&(d=!0)}f=i(f)?f:0,p=i(p)?p:0;const w=Math.max(1080,f),E=Math.max(30,p);g=i(g)?g:n,n=Math.max(g,n),d||(e=void 0);const x=a.length>1;return{codecSet:a.reduce(((e,i)=>{const r=t[i];if(i===e)return e;if(y=d?b.filter((t=>r.videoRanges[t]>0)):[],x){if(r.minBitrate>n)return te(i,`min bitrate of ${r.minBitrate} > current estimate of ${n}`),e;if(!r.hasDefaultAudio)return te(i,"no renditions with default or auto-select sound found"),e;if(l&&i.indexOf(l.substring(0,4))%5!=0)return te(i,`audio codec preference "${l}" not found`),e;if(o&&!h){if(!r.channels[o])return te(i,`no renditions with ${o} channel sound found (channels options: ${Object.keys(r.channels)})`),e}else if((!l||h)&&c&&0===r.channels[2])return te(i,"no renditions with stereo sound found"),e;if(r.minHeight>w)return te(i,`min resolution of ${r.minHeight} > maximum of ${w}`),e;if(r.minFramerate>E)return te(i,`min framerate of ${r.minFramerate} > maximum of ${E}`),e;if(!y.some((t=>r.videoRanges[t]>0)))return te(i,`no variants with VIDEO-RANGE of ${$t(y)} found`),e;if(u&&i.indexOf(u.substring(0,4))%5!=0)return te(i,`video codec preference "${u}" not found`),e;if(r.maxScore=Rt(e)||r.fragmentError>t[e].fragmentError)?e:(m=r.minIndex,v=r.maxScore,i)}),void 0),videoRanges:y,preferHDR:A,minFramerate:p,minBitrate:g,minIndex:m}}(r,E,t,k,T),{codecSet:a,videoRanges:o,minFramerate:l,minBitrate:u,minIndex:h,preferHDR:c}=s;D=h,w=a,E=c?o[o.length-1]:o[0],x=l,t=Math.max(t,u),this.log(`picked start tier ${$t(s)}`)}else w=null==y?void 0:y.codecSet,E=null==y?void 0:y.videoRange;const S=f?f.duration:d?d.duration:0,I=this.bwEstimator.getEstimateTTFB()/1e3,R=[];for(let l=n;l>=e;l--){var L;const e=p[l],d=l>c;if(!e)continue;if(v.useMediaCapabilities&&!e.supportedResult&&!e.supportedPromise){const n=navigator.mediaCapabilities;"function"==typeof(null==n?void 0:n.decodingInfo)&&(jt(e,C,E,x,t,k)||vt(e.videoCodec))?(e.supportedPromise=Gt(e,C,n),e.supportedPromise.then((t=>{if(!this.hls)return;e.supportedResult=t;const n=this.hls.levels,i=n.indexOf(e);t.error?this.warn(`MediaCapabilities decodingInfo error: "${t.error}" for level ${i} ${$t(t)}`):t.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${i} ${$t(t)}`),i>-1&&n.length>1&&(this.log(`Removing unsupported level ${i}`),this.hls.removeLevel(i),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}))):e.supportedResult=_t}if((w&&e.codecSet!==w||E&&e.videoRange!==E||d&&x>e.frameRate||!d&&x>0&&x=2*S&&0===s?e.averageBitrate:e.maxBitrate,P=this.getTimeToLoadFrag(I,T,B*y,void 0===g);if(T>=B&&(l===h||0===e.loadError&&0===e.fragmentError)&&(P<=I||!i(P)||A&&!this.bitrateTestDelay||P${l} adjustedbw(${Math.round(T)})-bitrate=${Math.round(T-B)} ttfb:${I.toFixed(1)} avgDuration:${y.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${P.toFixed(1)} firstSelection:${b} codecSet:${e.codecSet} videoRange:${e.videoRange} hls.loadLevel:${m}`)),b&&(this.firstSelection=l),l}}return-1}set nextAutoLevel(t){const e=this.deriveNextAutoLevel(t);this._nextAutoLevel!==e&&(this.nextAutoLevelKey="",this._nextAutoLevel=e)}deriveNextAutoLevel(t){const{maxAutoLevel:e,minAutoLevel:n}=this.hls;return Math.min(Math.max(t,n),e)}},bufferController:class extends E{constructor(t,e){var n;super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=t=>{var e;this.hls&&"open"===(null==(e=this.mediaSource)?void 0:e.readyState)&&this.hls.pauseBuffering()},this._onStartStreaming=t=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=t=>{const{media:e,mediaSource:n}=this;t&&this.log("Media source opened"),e&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(l.MEDIA_ATTACHED,{media:e,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:t,_objectUrl:e}=this;t!==e&&this.error(`Media element src was set while attaching MediaSource (${e} > ${t})`)},this.hls=t,this.fragmentTracker=e,this.appendSource=(n=I(t.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.BUFFER_RESET,this.onBufferReset,this),t.on(l.BUFFER_APPENDING,this.onBufferAppending,this),t.on(l.BUFFER_CODECS,this.onBufferCodecs,this),t.on(l.BUFFER_EOS,this.onBufferEos,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.FRAG_PARSED,this.onFragParsed,this),t.on(l.FRAG_CHANGED,this.onFragChanged,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.BUFFER_RESET,this.onBufferReset,this),t.off(l.BUFFER_APPENDING,this.onBufferAppending,this),t.off(l.BUFFER_CODECS,this.onBufferCodecs,this),t.off(l.BUFFER_EOS,this.onBufferEos,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.FRAG_PARSED,this.onFragParsed,this),t.off(l.FRAG_CHANGED,this.onFragChanged,this),t.off(l.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:e}=this;if(!t)return null;const n={};if(this.operationQueue){const t=this.isUpdating();t||this.operationQueue.removeBlockers();const e=this.isQueued();(t||e)&&this.warn(`Transfering MediaSource with${e?" operations in queue":""}${t?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===e?A(n,i.tracks):this.sourceBuffers.forEach((t=>{const[e]=t;e&&(n[e]=A({},this.tracks[e]),this.removeBuffer(e)),t[0]=t[1]=null})),{media:t,mediaSource:e,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,e){var n;let i=2;(e.audio&&!e.video||!e.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(t,e){const n=this.media=e.media,i=I(this.appendSource);if(this.transferData=this.overrides=void 0,n&&i){const t=!!e.mediaSource;(t||e.overrides)&&(this.transferData=e,this.overrides=e.overrides);const r=this.mediaSource=e.mediaSource||new i;if(this.assignMediaSource(r),t)this._objectUrl=n.src,this.attachTransferred();else{const t=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{n.removeAttribute("src");const e=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||e&&r instanceof e,ls(n),function(t,e){const n=self.document.createElement("source");n.type="video/mp4",n.src=e,t.appendChild(n)}(n,t),n.load()}catch(e){n.src=t}else n.src=t}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var e,n;this.log(`${(null==(e=this.transferData)?void 0:e.mediaSource)===t?"transferred":"created"} media source: ${null==(n=t.constructor)?void 0:n.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,e=this.transferData;if(!e||!t)return;const n=this.tracks,i=e.tracks,r=i?Object.keys(i):null,s=r?r.length:0,a=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(i&&r&&s){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})\nrequired tracks: ${$t(n,((t,e)=>"initSegment"===t?void 0:e))};\ntransfer tracks: ${$t(i,((t,e)=>"initSegment"===t?void 0:e))}}`),!R(i,n)){e.mediaSource=null,e.tracks=void 0;const r=t.currentTime,s=this.details,a=Math.max(r,(null==s?void 0:s.fragments[0].start)||0);return a-r>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${a} currentTime: ${r}`),this.onMediaDetaching(l.MEDIA_DETACHING,{}),this.onMediaAttaching(l.MEDIA_ATTACHING,e),void(t.currentTime=a))}this.transferData=void 0,r.forEach((t=>{const e=t,n=i[e];if(n){const t=n.buffer;if(t){const i=this.fragmentTracker,r=n.id;if(i.hasFragments(r)||i.hasParts(r)){const n=Ke.getBuffered(t);i.detectEvictedFragments(e,n,r,null,!0)}const s=us(e),a=[e,t];this.sourceBuffers[s]=a,t.updating&&this.operationQueue&&this.operationQueue.prependBlocker(e),this.trackSourceBuffer(e,n)}}})),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var t;const e=null==(t=this.mediaSource)?void 0:t.readyState;return"open"===e||"ended"===e}onMediaDetaching(t,e){const n=!!e.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:r,_objectUrl:s}=this;if(r){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((([t])=>{t&&this.removeBuffer(t)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const t="open"===r.readyState;try{const e=r.sourceBuffers;for(let n=e.length;n--;)t&&e[n].abort(),r.removeSourceBuffer(e[n]);t&&r.endOfStream()}catch(t){this.warn(`onMediaDetaching: ${t.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&ls(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(l.MEDIA_DETACHED,e)}onBufferReset(){this.sourceBuffers.forEach((([t])=>{t&&this.resetBuffer(t)})),this.initTracks()}resetBuffer(t){var e;const n=null==(e=this.tracks[t])?void 0:e.buffer;if(this.removeBuffer(t),n)try{var i;null!=(i=this.mediaSource)&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(e){this.warn(`onBufferReset ${t}`,e)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[us(t)]=[null,null];const e=this.tracks[t];e&&(e.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new rs(this.tracks)}onBufferCodecs(t,e){const n=this.tracks,i=Object.keys(e);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const r="audiovideo"in e&&(n.audio||n.video)||n.audiovideo&&("audio"in e||"video"in e),s=!r&&this.sourceBufferCount&&this.media&&i.some((t=>!n[t]));r||s?this.warn(`Unsupported transition between "${Object.keys(n)}" and "${i}" SourceBuffers`):(i.forEach((t=>{var i,r,s;const a=e[t],{id:o,codec:l,levelCodec:u,container:h,metadata:c,supplemental:d}=a;let f=n[t];const p=null==(i=this.transferData)||null==(r=i.tracks)?void 0:r[t],g=null!=p&&p.buffer?p:f,m=(null==g?void 0:g.pendingCodec)||(null==g?void 0:g.codec),v=null==g?void 0:g.levelCodec;f||(f=n[t]={buffer:void 0,listeners:[],codec:l,supplemental:d,container:h,levelCodec:u,metadata:c,id:o});const y=Ot(m,v),A=null==y?void 0:y.replace(ss,"$1");let b=Ot(l,u);const w=null==(s=b)?void 0:s.replace(ss,"$1");b&&y&&A!==w&&("audio"===t.slice(0,5)&&(b=Pt(b,this.appendSource)),this.log(`switching codec ${m} to ${b}`),b!==(f.pendingCodec||f.codec)&&(f.pendingCodec=b),f.container=h,this.appendChangeType(t,h,b))})),(this.tracksReady||this.sourceBufferCount)&&(e.tracks=this.sourceBufferTracks),this.sourceBufferCount||this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce(((t,e)=>{const n=this.tracks[e];return t[e]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},t}),{})}appendChangeType(t,e,n){const i=`${e};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{const r=this.tracks[t];if(r){const s=r.buffer;null!=s&&s.changeType&&(this.log(`changing ${t} sourceBuffer type to ${i}`),s.changeType(i),r.codec=n,r.container=e)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn(`Failed to change ${t} SourceBuffer type`,e)}};this.append(r,t,this.isPending(this.tracks[t]))}blockAudio(t){var e;const n=t.start,i=n+.05*t.duration;if(!0===(null==(e=this.fragmentTracker.getAppendedFrag(n,f))?void 0:e.gap))return;const r={label:"block-audio",execute:()=>{var t;const e=this.tracks.video;(this.lastVideoAppendEnd>i||null!=e&&e.buffer&&Ke.isBuffered(e.buffer,i)||!0===(null==(t=this.fragmentTracker.getAppendedFrag(i,f))?void 0:t.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn("Error executing block-audio operation",t)}};this.blockedAudioAppend={op:r,frag:t},this.append(r,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:e}=this;t&&e&&(this.blockedAudioAppend=null,e.unblockAudio(t.op))}onBufferAppending(t,e){const{tracks:n}=this,{data:i,type:r,parent:s,frag:u,part:h,chunkMeta:c}=e,d=c.buffering[r],f=u.sn,p=self.performance.now();d.start=p;const g=u.stats.buffering,m=h?h.stats.buffering:null;0===g.start&&(g.start=p),m&&0===m.start&&(m.start=p);const v=n.audio;let y=!1;"audio"===r&&"audio/mpeg"===(null==v?void 0:v.container)&&(y=!this.lastMpegAudioChunk||1===c.id||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const A=this.tracks.video,b=null==A?void 0:A.buffer;if(b&&"initSegment"!==f){const t=h||u,e=this.blockedAudioAppend;if("audio"!==r||"main"===s||this.blockedAudioAppend){if("video"===r){const n=t.end;if(e){const t=e.frag.start;(n>t||n{if(d.executeStart=self.performance.now(),y){const t=this.tracks[r];if(t){const e=t.buffer;if(e){const t=w-e.timestampOffset;Math.abs(t)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${w} (delta: ${t}) sn: ${f})`),e.timestampOffset=w)}}}this.appendExecutor(i,r)},onStart:()=>{},onComplete:()=>{const t=self.performance.now();d.executeEnd=d.end=t,0===g.first&&(g.first=t),m&&0===m.first&&(m.first=t);const e={};this.sourceBuffers.forEach((([t,n])=>{t&&(e[t]=Ke.getBuffered(n))})),this.appendErrors[r]=0,"audio"===r||"video"===r?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(l.BUFFER_APPENDED,{type:r,frag:u,part:h,chunkMeta:c,parent:u.type,timeRanges:e})},onError:t=>{var e;const n={type:a.MEDIA_ERROR,parent:u.type,details:o.BUFFER_APPEND_ERROR,sourceBufferName:r,frag:u,part:h,chunkMeta:c,error:t,err:t,fatal:!1},i=null==(e=this.media)?void 0:e.error;if(t.code===DOMException.QUOTA_EXCEEDED_ERR)n.details=o.BUFFER_FULL_ERROR;else if(t.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!i)n.errorAction=Te(!0);else if(t.name===as&&0===this.sourceBufferCount)n.errorAction=Te(!0);else{const t=++this.appendErrors[r];this.warn(`Failed ${t}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer (${i||"no media error"})`),(t>=this.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}this.hls.trigger(l.ERROR,n)}};this.append(E,r,this.isPending(this.tracks[r]))}getFlushOp(t,e,n){return this.log(`queuing "${t}" remove ${e}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(t,e,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(l.BUFFER_FLUSHED,{type:t})},onError:i=>{this.warn(`Failed to remove ${e}-${n} from "${t}" SourceBuffer`,i)}}}onBufferFlushing(t,e){const{type:n,startOffset:i,endOffset:r}=e;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach((([t])=>{t&&this.append(this.getFlushOp(t,i,r),t)}))}onFragParsed(t,e){const{frag:n,part:i}=e,r=[],s=i?i.elementaryStreams:n.elementaryStreams;s[q]?r.push("audiovideo"):(s[H]&&r.push("audio"),s[Q]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers((()=>{const t=self.performance.now();n.stats.buffering.end=t,i&&(i.stats.buffering.end=t);const e=i?i.stats:n.stats;this.hls.trigger(l.FRAG_BUFFERED,{frag:n,part:i,stats:e,id:n.type})}),r).catch((t=>{this.warn(`Fragment buffered callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)}))}onFragChanged(t,e){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some((([t])=>{var e,n;return t&&(!(null!=(e=this.tracks[t])&&e.ended)||(null==(n=this.tracks[t])?void 0:n.ending))}))}onBufferEos(t,e){var n;this.sourceBuffers.forEach((([t])=>{if(t){const n=this.tracks[t];e.type&&e.type!==t||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${t} buffer reached EOS`)))}}));const i=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((([t])=>{var e;return t&&!(null!=(e=this.tracks[t])&&e.ended)}))&&(i?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:t}=this;t&&"open"===t.readyState?(this.log("Calling mediaSource.endOfStream()"),t.endOfStream(),this.hls.trigger(l.BUFFERED_TO_END,void 0)):t&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${t.readyState}`)}))):(this.tracksEnded(),this.hls.trigger(l.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach((([t])=>{if(null!==t){const e=this.tracks[t];e&&(e.ending=!1)}}))}onLevelUpdated(t,{details:e}){e.fragments.length&&(this.details=e,this.updateDuration())}updateDuration(){const t=this.getDurationAndRange();t&&this.blockUntilOpen((()=>this.updateMediaSource(t)))}onError(t,e){if(e.details===o.BUFFER_APPEND_ERROR&&e.frag){var n;const t=null==(n=e.errorAction)?void 0:n.nextAutoLevel;i(t)&&t!==e.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:e,media:n}=this;if(!n||null===e)return;if(!this.sourceBufferCount)return;const r=t.config,s=n.currentTime,a=e.levelTargetDuration,o=e.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(i(o)&&o>=0){const t=Math.max(o,a),e=Math.floor(s/a)*a-t;this.flushBackBuffer(s,a,e)}if(i(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const t=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),e=Math.max(t,a),n=Math.floor(s/a)*a+e;this.flushFrontBuffer(s,a,n)}}flushBackBuffer(t,e,n){this.sourceBuffers.forEach((([t,e])=>{if(e){const r=Ke.getBuffered(e);if(r.length>0&&n>r.start(0)){var i;this.hls.trigger(l.BACK_BUFFER_REACHED,{bufferEnd:n});const e=this.tracks[t];if(null!=(i=this.details)&&i.live)this.hls.trigger(l.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=e&&e.ended)return void this.log(`Cannot flush ${t} back buffer while SourceBuffer is in ended state`);this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:t})}}}))}flushFrontBuffer(t,e,n){this.sourceBuffers.forEach((([e,i])=>{if(i){const r=Ke.getBuffered(i),s=r.length;if(s<2)return;const a=r.start(s-1),o=r.end(s-1);if(n>a||t>=a&&t<=o)return;this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:e})}}))}getDurationAndRange(){var t;const{details:e,mediaSource:n}=this;if(!e||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const r=e.edge;if(e.live&&this.hls.config.liveDurationInfinity){if(e.fragments.length&&e.live&&n.setLiveSeekableRange){const t=Math.max(0,e.fragmentStart);return{duration:1/0,start:t,end:Math.max(t,r)}}return{duration:1/0}}const s=null==(t=this.overrides)?void 0:t.duration;if(s)return i(s)?{duration:s}:null;const a=this.media.duration;return r>(i(n.duration)?n.duration:0)&&r>a||!i(a)?{duration:r}:null}updateMediaSource({duration:t,start:e,end:n}){const r=this.mediaSource;this.media&&r&&"open"===r.readyState&&(r.duration!==t&&(i(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),r.duration=t),void 0!==e&&void 0!==n&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${e}-${n}.`),r.setLiveSeekableRange(e,n)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:e,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${e} codec events expected: ${t}) ${$t(n)}`),this.tracksReady){var i;const t=null==(i=this.transferData)?void 0:i.tracks;t&&Object.keys(t).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach((([e,n])=>{if(e){const i=this.tracks[e];t[e]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}})),this.hls.trigger(l.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach((([t])=>{this.executeNext(t)}))}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:e,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const r in t){const s=r,u=t[s];if(this.isPending(u)){const t=this.getTrackCodec(u,s),r=`${u.container};codecs=${t}`;u.codec=t,this.log(`creating sourceBuffer(${r})${this.currentOp(s)?" Queued":""} ${$t(u)}`);try{const t=n.addSourceBuffer(r),i=us(s),a=[s,t];e[i]=a,u.buffer=t}catch(t){var i;return this.error(`error while trying to add sourceBuffer: ${t.message}`),this.shiftAndExecuteNext(s),null==(i=this.operationQueue)||i.removeBlockers(),delete this.tracks[s],void this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,sourceBufferName:s,mimeType:r,parent:u.id})}this.trackSourceBuffer(s,u)}}this.bufferCreated()}getTrackCodec(t,e){const n=t.supplemental;let i=t.codec;n&&("video"===e||"audiovideo"===e)&&Ct(n,"video")&&(i=function(t,e){const n=[];if(t){const e=t.split(",");for(let t=0;t{const n=e.removedRanges;null!=n&&n.length&&this.hls.trigger(l.BUFFER_FLUSHED,{type:t})}))}get mediaSrc(){var t,e;const n=(null==(t=this.media)||null==(e=t.querySelector)?void 0:e.call(t,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(t){const e=this.currentOp(t);e&&e.onStart()}onSBUpdateEnd(t){var e;if("closed"===(null==(e=this.mediaSource)?void 0:e.readyState))return void this.resetBuffer(t);const n=this.currentOp(t);n&&(n.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,e){var n;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${i}`,e),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});const r=this.currentOp(t);r&&r.onError(i)}removeExecutor(t,e,n){const{media:r,mediaSource:s}=this,a=this.tracks[t],o=null==a?void 0:a.buffer;if(!r||!s||!o)return this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(t);const l=i(r.duration)?r.duration:1/0,u=i(s.duration)?s.duration:1/0,h=Math.max(0,e),c=Math.min(n,l,u);c>h&&(!a.ending||a.ended)?(a.ended=!1,this.log(`Removing [${h},${c}] from the ${t} SourceBuffer`),o.remove(h,c)):this.shiftAndExecuteNext(t)}appendExecutor(t,e){const n=this.tracks[e],i=null==n?void 0:n.buffer;if(!i)throw new os(`Attempting to append to the ${e} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch((t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)}));else try{t()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some((([t,e])=>t&&e.updating))}isQueued(){return this.sourceBuffers.some((([t])=>t&&!!this.currentOp(t)))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,e=this.sourceBufferTypes){if(!e.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:n}=this,i=e.map((t=>this.appendBlocker(t)));return e.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then((e=>{n===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(t){t.forEach((t=>{var e;const n=null==(e=this.tracks[t])?void 0:e.buffer;n&&!n.updating&&this.shiftAndExecuteNext(t)}))}append(t,e,n){this.operationQueue&&this.operationQueue.append(t,e,n)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce(((t,e)=>t+(this.isPending(this.tracks[e])?1:0)),0)}get sourceBufferCount(){return this.sourceBuffers.reduce(((t,[e])=>t+(e?1:0)),0)}get sourceBufferTypes(){return this.sourceBuffers.map((([t])=>t)).filter((t=>!!t))}addBufferListener(t,e,n){const i=this.tracks[t];if(!i)return;const r=i.buffer;if(!r)return;const s=n.bind(this,t);i.listeners.push({event:e,listener:s}),r.addEventListener(e,s)}removeBufferListeners(t){const e=this.tracks[t];if(!e)return;const n=e.buffer;n&&(e.listeners.forEach((t=>{n.removeEventListener(t.event,t.listener)})),e.listeners.length=0)}},capLevelController:hs,errorController:class extends E{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(l.ERROR,this.onError,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(l.ERROR,this.onError,this),t.off(l.ERROR,this.onErrorOut,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return(null==t?void 0:t.type)===f?t.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(t,e){var n;if(e.fatal)return;const i=this.hls,r=e.context;switch(e.details){case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case o.FRAG_PARSING_ERROR:if(null!=(n=e.frag)&&n.gap)return void(e.errorAction=Te());case o.FRAG_GAP:case o.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=Ae);case o.LEVEL_EMPTY_ERROR:case o.LEVEL_PARSING_ERROR:{var s,l;const t=e.parent===f?e.level:i.loadLevel;e.details===o.LEVEL_EMPTY_ERROR&&null!=(s=e.context)&&null!=(l=s.levelDetails)&&l.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,t):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t))}return;case o.LEVEL_LOAD_ERROR:case o.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,r.level)));case o.AUDIO_TRACK_LOAD_ERROR:case o.AUDIO_TRACK_LOAD_TIMEOUT:case o.SUBTITLE_LOAD_ERROR:case o.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const t=i.loadLevelObj;if(t&&(r.type===c&&t.hasAudioGroup(r.groupId)||r.type===d&&t.hasSubtitleGroup(r.groupId)))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,i.loadLevel),e.errorAction.action=Ae,void(e.errorAction.flags=xe)}return;case o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const t=i.loadLevelObj,n=null==t?void 0:t.attrs["HDCP-LEVEL"];n?e.errorAction={action:Ae,flags:ke,hdcpLevel:n}:this.keySystemError(e)}return;case o.BUFFER_ADD_CODEC_ERROR:case o.REMUX_ALLOC_ERROR:case o.BUFFER_APPEND_ERROR:var u;if(!e.errorAction)e.errorAction=this.getLevelSwitchAction(e,null!=(u=e.level)?u:i.loadLevel);return;case o.INTERNAL_EXCEPTION:case o.BUFFER_APPENDING_ERROR:case o.BUFFER_FULL_ERROR:case o.LEVEL_SWITCH_ERROR:case o.BUFFER_STALLED_ERROR:case o.BUFFER_SEEK_OVER_HOLE:case o.BUFFER_NUDGE_ON_STALL:return void(e.errorAction=Te())}e.type===a.KEY_SYSTEM_ERROR&&this.keySystemError(e)}keySystemError(t){const e=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e)}getPlaylistRetryOrSwitchAction(t,e){const n=pe(this.hls.config.playlistLoadPolicy,t),i=this.playlistError++;if(ve(n,i,fe(t),t.response))return{action:we,flags:Ee,retryConfig:n,retryCount:i};const r=this.getLevelSwitchAction(t,e);return n&&(r.retryConfig=n,r.retryCount=i),r}getFragRetryOrSwitchAction(t){const e=this.hls,n=this.getVariantLevelIndex(t.frag),i=e.levels[n],{fragLoadPolicy:r,keyLoadPolicy:s}=e.config,a=pe(t.details.startsWith("key")?s:r,t),l=e.levels.reduce(((t,e)=>t+e.fragmentError),0);if(i){t.details!==o.FRAG_GAP&&i.fragmentError++;if(ve(a,l,fe(t),t.response))return{action:we,flags:Ee,retryConfig:a,retryCount:l}}const u=this.getLevelSwitchAction(t,n);return a&&(u.retryConfig=a,u.retryCount=l),u}getLevelSwitchAction(t,e){const n=this.hls;null==e&&(e=n.loadLevel);const i=this.hls.levels[e];if(i){var r,s;const e=t.details;i.loadError++,e===o.BUFFER_APPEND_ERROR&&i.fragmentError++;let u=-1;const{levels:h,loadLevel:m,minAutoLevel:v,maxAutoLevel:y}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const A=null==(r=t.frag)?void 0:r.type,b=(A===p&&e===o.FRAG_PARSING_ERROR||"audio"===t.sourceBufferName&&(e===o.BUFFER_ADD_CODEC_ERROR||e===o.BUFFER_APPEND_ERROR))&&h.some((({audioCodec:t})=>i.audioCodec!==t)),w="video"===t.sourceBufferName&&(e===o.BUFFER_ADD_CODEC_ERROR||e===o.BUFFER_APPEND_ERROR)&&h.some((({codecSet:t,audioCodec:e})=>i.codecSet!==t&&i.audioCodec===e)),{type:E,groupId:x}=null!=(s=t.context)?s:{};for(let n=h.length;n--;){const r=(n+m)%h.length;if(r!==m&&r>=v&&r<=y&&0===h[r].loadError){var a,l;const n=h[r];if(e===o.FRAG_GAP&&A===f&&t.frag){const e=h[r].details;if(e){const n=ue(t.frag,e.fragments,t.frag.start);if(null!=n&&n.gap)continue}}else{if(E===c&&n.hasAudioGroup(x)||E===d&&n.hasSubtitleGroup(x))continue;if(A===p&&null!=(a=i.audioGroups)&&a.some((t=>n.hasAudioGroup(t)))||A===g&&null!=(l=i.subtitleGroups)&&l.some((t=>n.hasSubtitleGroup(t)))||b&&i.audioCodec===n.audioCodec||!b&&i.audioCodec!==n.audioCodec||w&&i.codecSet===n.codecSet)continue}u=r;break}}if(u>-1&&n.loadLevel!==u)return t.levelRetry=!0,this.playlistError=0,{action:Ae,flags:Ee,nextAutoLevel:u}}return{action:Ae,flags:xe}}onErrorOut(t,e){var n;switch(null==(n=e.errorAction)?void 0:n.action){case ye:break;case Ae:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===o.FRAG_GAP?/MediaSource readyState: ended/.test(e.error.message)&&(this.warn(`MediaSource ended after "${e.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):e.fatal=!0}e.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(t){const e=this.hls,n=t.errorAction;if(!n)return;const{flags:i,hdcpLevel:r,nextAutoLevel:s}=n;switch(i){case Ee:this.switchLevel(t,s);break;case ke:r&&(e.maxHdcpLevel=Ht[Ht.indexOf(r)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${e.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(t,s)}switchLevel(t,e){if(void 0!==e&&t.errorAction&&(this.warn(`switching to level ${e} after ${t.details}`),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,t.details===o.BUFFER_ADD_CODEC_ERROR&&t.mimeType&&"audiovideo"!==t.sourceBufferName)){const e=Ft(t.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${t.sourceBufferName}Codec`]===e&&this.hls.removeLevel(i)}}},fpsController:class{constructor(t){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=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(l.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,e){const n=this.hls.config;if(n.capLevelOnFPSDrop){const t=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=t,t&&"function"==typeof t.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,e,n){const i=performance.now();if(e){if(this.lastTime){const t=i-this.lastTime,r=n-this.lastDroppedFrames,s=e-this.lastDecodedFrames,a=1e3*r/t,o=this.hls;if(o.trigger(l.FPS_DROP,{currentDropped:r,currentDecoded:s,totalDroppedFrames:n}),a>0&&r>o.config.fpsDroppedMonitoringThreshold*s){let t=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+t),t>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=t)&&(t-=1,o.trigger(l.FPS_DROP_LEVEL_CAPPING,{level:t,droppedLevel:o.currentLevel}),o.autoLevelCapping=t,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=n,this.lastDecodedFrames=e}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Cn,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:so,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends xi{constructor(t,e,n){super(t,e,n,"subtitle-stream-controller",g),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(l.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(l.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,e){this.stopLoad(),this.state=di,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=e?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,e){this.tracksBuffered=[],super.onMediaDetaching(t,e)}onLevelLoaded(t,e){this.mainDetails=e.details}onSubtitleFragProcessed(t,e){const{frag:n,success:i}=e;if(Y(n)&&(this.fragPrevious=n),this.state=di,!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let s;const a=n.start;for(let t=0;t=r[t].start&&a<=r[t].end){s=r[t];break}const o=n.start+n.duration;s?s.end=o:(s={start:a,end:o},r.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(t,e){const{startOffset:n,endOffset:i}=e;if(0===n&&i!==Number.POSITIVE_INFINITY){const t=i-1;if(t<=0)return;e.endOffsetSubtitles=Math.max(0,t),this.tracksBuffered.forEach((e=>{for(let n=0;nnew Wt(t))):(this.tracksBuffered=[],this.levels=e.map((t=>{const e=new Wt(t);return this.tracksBuffered[e.id]=[],e})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,g),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(t,e){var n;if(this.currentTrackId=e.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==ci&&this.setInterval(500)}onSubtitleTrackLoaded(t,e){var n;const{currentTrackId:i,levels:r}=this,{details:s,id:a}=e;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const o=r[a];if(a>=r.length||!o)return;this.log(`Subtitle track ${a} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let u=0;if(s.live||null!=(n=o.details)&&n.live){const t=this.mainDetails;if(s.deltaUpdateFailed||!t)return;const e=t.fragments[0];var h;if(o.details)u=this.alignPlaylists(s,o.details,null==(h=this.levelLastLoaded)?void 0:h.details),0===u&&e&&(u=e.start,$n(s,u));else s.hasProgramDateTime&&t.hasProgramDateTime?(ui(s,t),u=s.fragmentStart):e&&(u=e.start,$n(s,u))}if(o.details=s,this.levelLastLoaded=o,a===i&&(this.hls.trigger(l.SUBTITLE_TRACK_UPDATED,{details:s,id:a,groupId:e.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===di)){ue(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)}}_handleFragmentLoadComplete(t){const{frag:e,payload:n}=t,i=e.decryptdata,r=this.hls;if(!this.fragContextChanged(e)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&on(i.method)){const t=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,ln(i.method)).catch((t=>{throw r.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((n=>{const i=performance.now();r.trigger(l.FRAG_DECRYPTED,{frag:e,payload:n,stats:{tstart:t,tdecrypt:i}})})).catch((t=>{this.warn(`${t.name}: ${t.message}`),this.state=di}))}}doTick(){if(this.media){if(this.state===di){const{currentTrackId:t,levels:e}=this,n=null==e?void 0:e[t];if(!n||!e.length||!n.details)return;if(this.waitForLive(n))return;const{config:i}=this,r=this.getLoadPosition(),s=Ke.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:a,len:o}=s,l=n.details;if(o>this.hls.maxBufferLength+l.levelTargetDuration)return;const u=l.fragments,h=u.length,c=l.edge;let d=null;const f=this.fragPrevious;if(ac-t?0:t;d=ue(f,u,Math.max(u[0].start,a),e),!d&&f&&f.startthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const e=Xs(this.media.textTracks);for(let n=0;n-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVEL_LOADING,this.onLevelLoading,this),t.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(l.ERROR,this.onError,this)}onMediaAttached(t,e){this.media=e.media,this.media&&(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))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,e){const n=this.media;if(!n)return;const i=!!e.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;Xs(n.textTracks).forEach((t=>{Ys(t)}))}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.subtitleTracks}onSubtitleTrackLoaded(t,e){const{id:n,groupId:i,details:r}=e,s=this.tracksInGroup[n];if(!s||s.groupId!==i)return void this.warn(`Subtitle track with id:${n} and group:${i} not found in active group ${null==s?void 0:s.groupId}`);const a=s.details;s.details=e.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,e,a)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const n=e.subtitleGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((t=>-1===(null==i?void 0:i.indexOf(t))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const t=this.tracks.filter((t=>!n||-1!==n.indexOf(t.groupId)));if(t.length)this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),t.forEach(((t,e)=>{t.id=e}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=t;const e=this.hls.config.subtitlePreference;if(!r&&e){this.selectDefaultTrack=!1;const n=ie(e,t);if(n>-1)r=t[n];else{const t=ie(e,this.tracks);r=this.tracks[t]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const s={subtitleTracks:t};this.log(`Updating subtitle tracks, ${t.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(l.SUBTITLE_TRACKS_UPDATED,s),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}}findTrackId(t){const e=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i-1){const t=this.tracksInGroup[i];return this.setSubtitleTrack(i),t}if(n)return null;{const n=ie(t,e);if(n>-1)return e[n]}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,e){super.loadingPlaylist(t,e);const n=t.id,i=t.groupId,r=this.getUrlWithDirectives(t.url,e),s=t.details,a=null==s?void 0:s.age;this.log(`Loading subtitle ${n} "${t.name}" lang:${t.lang} group:${i}${void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${r}`),this.hls.trigger(l.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:e||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const e=Xs(t.textTracks),n=this.currentTrack;let i;if(n&&(i=e.filter((t=>is(n,t)))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(e).forEach((t=>{"disabled"!==t.mode&&t!==i&&(t.mode="disabled")})),i){const t=this.subtitleDisplay?"showing":"hidden";i.mode!==t&&(i.mode=t)}}setSubtitleTrack(t){const e=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=t);if(t<-1||t>=e.length||!i(t))return void this.warn(`Invalid subtitle track id: ${t}`);this.selectDefaultTrack=!1;const n=this.currentTrack,r=e[t]||null;if(this.trackId=t,this.currentTrack=r,this.toggleTrackModes(),!r)return void this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:t});const s=!!r.details&&!r.details.live;if(t===this.trackId&&r===n&&s)return;this.log(`Switching to subtitle-track ${t}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:a,groupId:o="",name:u,type:h,url:c}=r;this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:u,type:h,url:c});const d=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(d)}},timelineController:class{constructor(t){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.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.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}},t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(l.FRAG_LOADING,this.onFragLoading,this),t.on(l.FRAG_LOADED,this.onFragLoaded,this),t.on(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(l.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(l.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(l.FRAG_LOADING,this.onFragLoading,this),t.off(l.FRAG_LOADED,this.onFragLoaded,this),t.off(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(l.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(l.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new eo(this,"textTrack1"),e=new eo(this,"textTrack2"),n=new eo(this,"textTrack3"),i=new eo(this,"textTrack4");this.cea608Parser1=new Da(1,t,e),this.cea608Parser2=new Da(3,n,i)}addCues(t,e,n,i,r){let s=!1;for(let t=r.length;t--;){const i=r[t],l=(a=i[0],o=i[1],u=e,h=n,Math.min(o,h)-Math.max(a,u));if(l>=0&&(i[0]=Math.min(i[0],e),i[1]=Math.max(i[1],n),s=!0,l/(n-e)>.5))return}var a,o,u,h;if(s||r.push([e,n]),this.config.renderTextTracksNatively){const r=this.captionsTracks[t];this.Cues.newCue(r,e,n,i)}else{const r=this.Cues.newCue(null,e,n,i);this.hls.trigger(l.CUES_PARSED,{type:"captions",cues:r,track:t})}}onInitPtsFound(t,{frag:e,id:n,initPTS:i,timescale:r}){const{unparsedVttFrags:s}=this;n===f&&(this.initPTS[e.cc]={baseTime:i,timescale:r}),s.length&&(this.unparsedVttFrags=[],s.forEach((t=>{this.onFragLoaded(l.FRAG_LOADED,t)})))}getExistingTrack(t,e){const{media:n}=this;if(n)for(let i=0;i{Ys(i[t]),delete i[t]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const e=t.textTracks;if(e)for(let t=0;tt.textCodec===Qa));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(es(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const t=this.media,e=t?Xs(t.textTracks):null;if(this.tracks.forEach(((t,n)=>{let i;if(e){let n=null;for(let i=0;inull!==t)).map((t=>t.label));t.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${t.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const t=this.tracks.map((t=>({label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t})));this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:t})}}}onManifestLoaded(t,e){this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((t=>{const e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(!e)return;const n=`textTrack${e[1]}`,i=this.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}))}closedCaptionsForLevel(t){const e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,e){if(this.enabled&&e.frag.type===f){var n,i;const{cea608Parser1:t,cea608Parser2:r,lastSn:s}=this,{cc:a,sn:o}=e.frag,l=null!=(n=null==(i=e.part)?void 0:i.index)?n:-1;t&&r&&(o!==s+1||o===s&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(t.reset(),r.reset()),this.lastCc=a,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(t,e){const{frag:n,payload:i}=e;if(n.type===g)if(i.byteLength){const t=n.decryptdata,r="stats"in e;if(null==t||!t.encrypted||r){const t=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),t&&t.textCodec===Qa?this._parseIMSC1(n,i):this._parseVTTs(e)}}else this.hls.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,e){const n=this.hls;Ka(e,this.initPTS[t.cc],(e=>{this._appendCues(e,t.level),n.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(e=>{n.logger.log(`Failed to parse IMSC1: ${e}`),n.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))}_parseVTTs(t){var e;const{frag:n,payload:i}=t,{initPTS:r,unparsedVttFrags:s}=this,a=r.length-1;if(!r[n.cc]&&-1===a)return void s.push(t);const o=this.hls;Ha(null!=(e=n.initSegment)&&e.data?gt(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(t=>{this._appendCues(t,n.level),o.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(e=>{const r="Missing initPTS for VTT MPEGTS"===e.message;r?s.push(t):this._fallbackToIMSC1(n,i),o.logger.log(`Failed to parse VTT cue: ${e}`),r&&a>n.cc||o.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:e})}))}_fallbackToIMSC1(t,e){const n=this.tracks[t.level];n.textCodec||Ka(e,this.initPTS[t.cc],(()=>{n.textCodec=Qa,this._parseIMSC1(t,e)}),(()=>{n.textCodec="wvtt"}))}_appendCues(t,e){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[e];if(!n||"disabled"===n.mode)return;t.forEach((t=>Vs(n,t)))}else{const i=this.tracks[e];if(!i)return;const r=i.default?"default":"subtitles"+e;n.trigger(l.CUES_PARSED,{type:"subtitles",cues:t,track:r})}}onFragDecrypted(t,e){const{frag:n}=e;n.type===g&&this.onFragLoaded(l.FRAG_LOADED,e)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,e){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:i}=e;if(n.type!==f||"NONE"!==this.closedCaptionsForLevel(n))for(let t=0;tKs(t[i],e,n)))}if(this.config.renderTextTracksNatively&&0===e&&void 0!==i){const{textTracks:t}=this;Object.keys(t).forEach((n=>Ks(t[n],e,i)))}}}extractCea608Data(t){const e=[[],[]],n=31&t[0];let i=2;for(let r=0;r=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,e){var n;const i=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(e&&(null==i?void 0:i.cc)===e.cc)return;const r=(i||t).cc,s=de(this.getLevelDetails(),r,this.getLoadPosition());s&&(this.log(`Waiting fragment cc (${null==e?void 0:e.cc}) cancelled because video is at cc ${t.cc}`),this.startFragRequested=!1,this.nextLoadPosition=s.start,this.resetLoadingState(),this.state===di&&this.doTickIdle())}startLoad(t,e){if(!this.levels)return this.startPosition=t,void(this.state=ci);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===t?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),t=n,this.state=di):this.state=mi,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=e?-1:t,this.tick()}doTick(){switch(this.state){case di:this.doTickIdle();break;case mi:{const{levels:t,trackId:e}=this,n=null==t?void 0:t[e],i=null==n?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=wi}break}case gi:{var t;const e=performance.now(),n=this.retryDate;if(!n||e>=n||null!=(t=this.media)&&t.seeking){const{levels:t,trackId:e}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==t?void 0:t[e])||null),this.state=di}break}case wi:{const t=this.waitingData;if(t){const{frag:e,part:n,cache:i,complete:r}=t,s=this.mainAnchor;if(void 0!==this.initPTS[e.cc]){this.waitingData=null,this.state=pi;const t={frag:e,part:n,payload:i.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(t),r&&super._handleFragmentLoadComplete(t)}else s&&s.cc!==t.frag.cc&&this.syncWithAnchor(s,t.frag)}else this.state=di}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:e,levels:n,media:i,trackId:r}=this,s=e.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||null==n||!n[r])return;const a=n[r],o=a.details;if(!o||this.waitForLive(a)||this.waitForCdnTuneIn(o))return this.state=mi,void(this.startFragRequested=!1);const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,H,p));const h=this.getFwdBufferInfo(u,p);if(null===h)return;if(!this.switchingTrack&&this._streamEnded(h,o))return e.trigger(l.BUFFER_EOS,{type:"audio"}),void(this.state=Ai);const c=h.len,d=e.maxBufferLength,g=o.fragments,m=g[0].start,v=this.getLoadPosition(),y=this.flushing?v:h.end;if(this.switchingTrack&&i){const t=v;o.PTSKnown&&tm||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=m+.05)}if(c>=d&&!this.switchingTrack&&yb.end){const t=this.fragmentTracker.getFragAtPos(y,f);t&&t.end>b.end&&(b=t,this.mainFragLoading={frag:t,targetBufferTime:null})}if(A.start>b.end)return}this.loadFragment(A,a,y)}onMediaDetaching(t,e){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,e)}onAudioTracksUpdated(t,{audioTracks:e}){this.resetTransmuxer(),this.levels=e.map((t=>new Wt(t)))}onAudioTrackSwitching(t,e){const n=!!e.url;this.trackId=e.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=e,this.flushAudioIfNeeded(e),this.state!==ci&&(this.setInterval(100),this.state=di,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=e,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,e){this.mainDetails=e.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(l.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(t,e){var n;const{levels:i}=this,{details:r,id:s,groupId:a,track:o}=e;if(!i)return void this.warn(`Audio tracks reset while loading track ${s} "${o.name}" of "${a}"`);const u=this.mainDetails;if(!u||r.endCC>u.endCC||u.expired)return this.cachedTrackLoadedData=e,void(this.state!==ci&&(this.state=mi));this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${o.name}" of "${a}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const h=i[s];let c=0;if(r.live||null!=(n=h.details)&&n.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;var d;if(h.details)c=this.alignPlaylists(r,h.details,null==(d=this.levelLastLoaded)?void 0:d.details);r.alignedSliding||(li(r,u),r.alignedSliding||ui(r,u),c=r.fragmentStart)}h.details=r,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(u,c),this.hls.trigger(l.AUDIO_TRACK_UPDATED,{details:r,id:s,groupId:e.groupId}),this.state!==mi||this.waitForCdnTuneIn(r)||(this.state=di),this.tick()}_handleFragmentLoadProgress(t){var e;const n=t.frag,{part:i,payload:r}=t,{config:s,trackId:a,levels:o}=this;if(!o)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=o[a];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const h=s.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let c=this.transmuxer;c||(c=this.transmuxer=new $r(this.hls,p,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const d=this.initPTS[n.cc],f=null==(e=n.initSegment)?void 0:e.data;if(void 0!==d){const t=!1,e=i?i.index:-1,s=-1!==e,a=new Ve(n.level,n.sn,n.stats.chunkCount,r.byteLength,e,s);c.push(r,f,h,"",n,i,u.totalduration,t,a,d)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${a}`);const{cache:t}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new Ti,complete:!1};t.push(new Uint8Array(r)),this.state!==ci&&(this.state=wi)}}_handleFragmentLoadComplete(t){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,e){this.bufferFlushed=this.flushing=!1;const n=e.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(t,e){!this.audioOnly&&e.frag.type===f&&Y(e.frag)&&(this.mainFragLoading=e,this.state===di&&this.tick())}onFragBuffered(t,e){const{frag:n,part:i}=e;if(n.type===p)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(Y(n)){this.fragPrevious=n;const t=this.switchingTrack;t&&(this.bufferedTrack=t,this.switchingTrack=null,this.hls.trigger(l.AUDIO_TRACK_SWITCHED,w({},t)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}else this.audioOnly||n.type!==f||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(t,e){var n;if(e.fatal)this.state=bi;else switch(e.details){case o.FRAG_GAP:case o.FRAG_PARSING_ERROR:case o.FRAG_DECRYPT_ERROR:case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p,e);break;case o.AUDIO_TRACK_LOAD_ERROR:case o.AUDIO_TRACK_LOAD_TIMEOUT:case o.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==mi||(null==(n=e.context)?void 0:n.type)!==c||(this.state=di);break;case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:if("audio"!==e.parent)return;this.resetLoadingState();break;case o.BUFFER_FULL_ERROR:if("audio"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case o.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}onBufferFlushing(t,{type:e}){e!==Q&&(this.flushing=!0)}onBufferFlushed(t,{type:e}){if(e!==Q){this.flushing=!1,this.bufferFlushed=!0,this.state===Ai&&(this.state=di);const t=this.mediaBuffer||this.media;t&&(this.afterBufferFlushed(t,e,p),this.tick())}}_handleTransmuxComplete(t){var e;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:s}=t,a=this.getCurrentContext(s);if(!a)return void this.resetWhenMissingContext(s);const{frag:o,part:u,level:h}=a,{details:c}=h,{audio:d,text:f,id3:p,initSegment:g}=r;if(!this.fragContextChanged(o)&&c){if(this.state=vi,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=g&&g.tracks){const t=o.initSegment||o;this._bufferInitSegment(h,g.tracks,t,s),i.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:n,tracks:g.tracks})}if(d){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=d;u&&(u.elementaryStreams[H]={startPTS:t,endPTS:e,startDTS:n,endDTS:i}),o.setElementaryStreamInfo(H,t,e,n,i),this.bufferFragmentData(d,o,u,s)}if(null!=p&&null!=(e=p.samples)&&e.length){const t=A({id:n,frag:o,details:c},p);i.trigger(l.FRAG_PARSING_METADATA,t)}if(f){const t=A({id:n,frag:o,details:c},f);i.trigger(l.FRAG_PARSING_USERDATA,t)}}else this.fragmentTracker.removeFragment(o)}_bufferInitSegment(t,e,n,i){if(this.state!==vi)return;if(e.video&&delete e.video,e.audiovideo&&delete e.audiovideo,!e.audio)return;const r=e.audio;r.id=p;const s=t.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${s}/${r.codec}]`),s&&1===s.split(",").length&&(r.levelCodec=s),this.hls.trigger(l.BUFFER_CODECS,e);const a=r.initSegment;if(null!=a&&a.byteLength){const t={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:a};this.hls.trigger(l.BUFFER_APPENDING,t)}this.tickImmediate()}loadFragment(t,e,n){const i=this.fragmentTracker.getState(t);var r;if(this.switchingTrack||i===Ce||i===Se)if(Y(t))if(null!=(r=e.details)&&r.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=wi;const n=this.mainDetails;n&&n.fragmentStart!==e.details.fragmentStart&&ui(e.details,n)}else super.loadFragment(t,e,n);else this._loadInitSegment(t,e);else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:e,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:a}=this.bufferedTrack;re({name:e,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:a},t,se)||(oe(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:e}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,e.trigger(l.AUDIO_TRACK_SWITCHED,w({},t))}},audioTrackController:class extends ts{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVEL_LOADING,this.onLevelLoading,this),t.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(l.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.audioTracks||[]}onAudioTrackLoaded(t,e){const{id:n,groupId:i,details:r}=e,s=this.tracksInGroup[n];if(!s||s.groupId!==i)return void this.warn(`Audio track with id:${n} and group:${i} not found in active group ${null==s?void 0:s.groupId}`);const a=s.details;s.details=e.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,e,a)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const n=e.audioGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((t=>-1===(null==i?void 0:i.indexOf(t))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const t=this.tracks.filter((t=>!n||-1!==n.indexOf(t.groupId)));if(t.length)this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),t.forEach(((t,e)=>{t.id=e}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=t;const e=this.hls.config.audioPreference;if(!r&&e){const n=ie(e,t,se);if(n>-1)r=t[n];else{const t=ie(e,this.tracks);r=this.tracks[t]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const u={audioTracks:t};this.log(`Updating audio tracks, ${t.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(l.AUDIO_TRACKS_UPDATED,u);const h=this.trackId;if(-1!==i&&-1===h)this.setAudioTrack(i);else if(t.length&&-1===h){var s;const e=new Error(`No audio track selected for current audio group-ID(s): ${null==(s=this.groupIds)?void 0:s.join(",")} track count: ${t.length}`);this.warn(e.message),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:e})}}}onError(t,e){!e.fatal&&e.context&&(e.context.type!==c||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||this.checkRetry(e))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const e=this.hls;if(e.config.audioPreference=t,t){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const i=this.currentTrack;if(i&&re(t,i,se))return i;const r=ie(t,this.tracksInGroup,se);if(r>-1){const t=this.tracksInGroup[r];return this.setAudioTrack(r),t}if(i){let i=e.loadLevel;-1===i&&(i=e.firstAutoLevel);const r=function(t,e,n,i,r){const s=e[i],a=e.reduce(((t,e,n)=>{const i=e.uri;return(t[i]||(t[i]=[])).push(n),t}),{})[s.uri];a.length>1&&(i=Math.max.apply(Math,a));const o=s.videoRange,l=s.frameRate,u=s.codecSet.substring(0,4),h=ae(e,i,(e=>{if(e.videoRange!==o||e.frameRate!==l||e.codecSet.substring(0,4)!==u)return!1;const i=e.audioGroups,s=n.filter((t=>!i||-1!==i.indexOf(t.groupId)));return ie(t,s,r)>-1}));return h>-1?h:ae(e,i,(e=>{const i=e.audioGroups,s=n.filter((t=>!i||-1!==i.indexOf(t.groupId)));return ie(t,s,r)>-1}))}(t,e.levels,n,i,se);if(-1===r)return null;e.nextLoadLevel=r}if(t.channels||t.audioCodec){const e=ie(t,n);if(e>-1)return n[e]}}}return null}setAudioTrack(t){const e=this.tracksInGroup;if(t<0||t>=e.length)return void this.warn(`Invalid audio track id: ${t}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=e[t],r=i.details&&!i.details.live;if(t===this.trackId&&i===n&&r)return;if(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(l.AUDIO_TRACK_SWITCHING,w({},i)),r)return;const s=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(s)}findTrackId(t){const e=this.tracksInGroup;for(let n=0;n{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=t=>{try{this.apply(t,{ot:cs.MANIFEST,su:!this.initialized})}catch(t){this.hls.logger.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=t=>{try{const{frag:e,part:n}=t,i=this.hls.levels[e.level],r=this.getObjectType(e),s={d:1e3*(n||e).duration,ot:r};r!==cs.VIDEO&&r!==cs.AUDIO&&r!=cs.MUXED||(s.br=i.bitrate/1e3,s.tb=this.getTopBandwidth(r)/1e3,s.bl=this.getBufferLength(r));const a=n?this.getNextPart(n):this.getNextFrag(e);null!=a&&a.url&&a.url!==e.url&&(s.nor=a.url),this.apply(t,s)}catch(t){this.hls.logger.warn("Could not generate segment CMCD data.",t)}},this.hls=t;const e=this.config=t.config,{cmcd:n}=e;null!=n&&(e.pLoader=this.createPlaylistLoader(),e.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||t.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHED,this.onMediaDetached,this),t.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHED,this.onMediaDetached,this),t.off(l.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,e){var n,i;this.audioBuffer=null==(n=e.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer}createData(){var t;return{v:1,sf:ds.HLS,sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,e={}){A(e,this.createData());const n=e.ot===cs.INIT||e.ot===cs.VIDEO||e.ot===cs.MUXED;this.starved&&n&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering);const{includeKeys:i}=this;i&&(e=Object.keys(e).reduce(((t,n)=>(i.includes(n)&&(t[n]=e[n]),t)),{}));const r={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),Ns(t.headers,e,r)):t.url=_s(t.url,e,r)}getNextFrag(t){var e;const n=null==(e=this.hls.levels[t.level])?void 0:e.details;if(n){const e=t.sn-n.startSN;return n.fragments[e+1]}}getNextPart(t){var e,n;const{index:i,fragment:r}=t,s=null==(e=this.hls.levels[r.level])||null==(n=e.details)?void 0:n.partList;if(s){const{sn:t}=r;for(let e=s.length-1;e>=0;e--){const n=s[e];if(n.index===i&&n.fragment.sn===t)return s[e+1]}}}getObjectType(t){const{type:e}=t;return"subtitle"===e?cs.TIMED_TEXT:"initSegment"===t.sn?cs.INIT:"audio"===e?cs.AUDIO:"main"===e?this.hls.audioTracks.length?cs.VIDEO:cs.MUXED:void 0}getTopBandwidth(t){let e,n=0;const i=this.hls;if(t===cs.AUDIO)e=i.audioTracks;else{const t=i.maxAutoLevel,n=t>-1?t+1:i.levels.length;e=i.levels.slice(0,n)}return e.forEach((t=>{t.bitrate>n&&(n=t.bitrate)})),n>0?n:NaN}getBufferLength(t){const e=this.media,n=t===cs.AUDIO?this.audioBuffer:this.videoBuffer;if(!n||!e)return NaN;return 1e3*Ke.bufferInfo(n,e.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:t}=this.config,e=this.applyPlaylistData,n=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new n(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,n,i){e(t),this.loader.load(t,n,i)}}}createFragmentLoader(){const{fLoader:t}=this.config,e=this.applyFragmentData,n=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new n(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,n,i){e(t),this.loader.load(t,n,i)}}}},contentSteeringController:class extends E{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((t,e)=>(-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t)),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=1e3*this.timeToLoad-(performance.now()-this.updated);if(t>0)return void this.scheduleRefresh(this.uri,t)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const e=this.levels;e&&(this.levels=e.filter((e=>e!==t)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,e){const{contentSteering:n}=e;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks}onError(t,e){const{errorAction:n}=e;if((null==n?void 0:n.action)===Ae&&n.flags===xe){const t=this.levels;let i=this._pathwayPriority,r=this.pathwayId;if(e.context){const{groupId:n,pathwayId:i,type:s}=e.context;n&&t?r=this.getPathwayForGroupId(n,s,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&t&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==r),n.resolved||this.warn(`Could not resolve ${e.details} ("${e.error.message}") with content-steering for Pathway: ${r} levels: ${t?t.length:t} priorities: ${$t(i)} penalized: ${$t(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){const n=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),e=this.getLevelsForPathway(n),this.pathwayId=n}return e.length!==t.length&&this.log(`Found ${e.length}/${t.length} levels in Pathway "${this.pathwayId}"`),e}getLevelsForPathway(t){return null===this.levels?[]:this.levels.filter((e=>t===e.pathwayId))}updatePathwayPriority(t){let e;this._pathwayPriority=t;const n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach((t=>{i-n[t]>3e5&&delete n[t]}));for(let i=0;i0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,ri(e),this.hls.trigger(l.LEVELS_UPDATED,{levels:e});const t=this.hls.levels[s];a&&t&&this.levels&&(t.attrs["STABLE-VARIANT-ID"]!==a.attrs["STABLE-VARIANT-ID"]&&t.bitrate!==a.bitrate&&this.log(`Unstable Pathways change from bitrate ${a.bitrate} to ${t.bitrate}`),this.hls.nextLoadLevel=s);break}}}getPathwayForGroupId(t,e,n){const i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n{const{ID:r,"BASE-ID":s,"URI-REPLACEMENT":a}=t;if(e.some((t=>t.pathwayId===r)))return;const o=this.getLevelsForPathway(s).map((t=>{const e=new nn(t.attrs);e["PATHWAY-ID"]=r;const s=e.AUDIO&&`${e.AUDIO}_clone_${r}`,o=e.SUBTITLES&&`${e.SUBTITLES}_clone_${r}`;s&&(n[e.AUDIO]=s,e.AUDIO=s),o&&(i[e.SUBTITLES]=o,e.SUBTITLES=o);const l=zs(t.uri,e["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",a),u=new Wt({attrs:e,audioCodec:t.audioCodec,bitrate:t.bitrate,height:t.height,name:t.name,url:l,videoCodec:t.videoCodec,width:t.width});if(t.audioGroups)for(let e=1;e{this.log(`Loaded steering manifest: "${i}"`);const s=t.data;if(1!==(null==s?void 0:s.VERSION))return void this.log(`Steering VERSION ${s.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=s.TTL;const{"RELOAD-URI":a,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":u}=s;if(a)try{this.uri=new self.URL(a,i).href}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${a}`)}this.scheduleRefresh(this.uri||n.url),o&&this.clonePathways(o);const h={steeringManifest:s,url:i.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,h),u&&this.updatePathwayPriority(u)},onError:(t,e,n,i)=>{if(this.log(`Error loading steering manifest: ${t.code} ${t.text} (${e.url})`),this.stopLoad(),410===t.code)return this.enabled=!1,void this.log(`Steering manifest ${e.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==t.code)this.scheduleRefresh(this.uri||e.url,r);else{const t=this.loader;if("function"==typeof(null==t?void 0:t.getResponseHeader)){const e=t.getResponseHeader("Retry-After");e&&(r=1e3*parseFloat(e))}this.log(`Steering manifest ${e.url} rate limited`)}},onTimeout:(t,e,n)=>{this.log(`Timeout loading steering manifest (${e.url})`),this.scheduleRefresh(this.uri||e.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,o,u)}scheduleRefresh(t,e=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var e;const n=null==(e=this.hls)?void 0:e.media;!n||n.ended?this.scheduleRefresh(t,1e3*this.timeToLoad):this.loadSteeringManifest(t)}),e)}},interstitialsController:class extends E{constructor(t,e){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const t=this.currentTime;if(void 0===t||this.playbackDisabled)return;const e=t-this.timelinePos;if(Math.abs(e)<1/7056e5)return;const n=e<=-.01;this.timelinePos=t,this.bufferedPos=t;const i=this.playingItem;if(!i)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(t,t-e)&&this.updateSchedule()}if(this.checkBuffer(),n&&t=i.end){var r;const t=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(i)&&null!=(r=this.media)&&r.paused&&(this.shouldPlay=!1),!n){const e=this.findItemIndex(i);if(t>e){const n=this.schedule.findJumpRestrictedIndex(e+1,t);if(n>e)return void this.setSchedulePosition(n)}}return void this.setSchedulePosition(t)}const s=this.playingAsset;if(!s){if(this.playingLastItem&&this.isInterstitial(i)){const e=i.event.assetList[0];e&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(t,e))}return}const a=s.timelineStart,o=s.duration||0;(n&&t=a+o)&&this.setScheduleToAssetAtTime(t,s)},this.onTimeupdate=()=>{const t=this.currentTime;if(void 0===t||this.playbackDisabled)return;if(!(t>this.timelinePos))return;this.timelinePos=t,t>this.bufferedPos&&this.checkBuffer();const e=this.playingItem;if(!e||this.playingLastItem)return;if(t>=e.end){this.timelinePos=e.end;const t=this.findItemIndex(e);this.setSchedulePosition(t+1)}const n=this.playingAsset;if(!n)return;t>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(t,n)},this.onScheduleUpdate=(t,e)=>{const n=this.schedule,i=this.playingItem,r=n.events||[],s=n.items||[],a=n.durations,o=t.map((t=>t.identifier)),u=!(!r.length&&!o.length);(u||e)&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r}\nSchedule: ${s.map((t=>oa(t)))} pos: ${this.timelinePos}`),o.length&&this.log(`Removed events ${o}`),this.playerQueue.forEach((t=>{if(t.interstitial.appendInPlace){const e=t.assetItem.timelineStart,n=t.timelineOffset-e;if(n)try{t.timelineOffset=e}catch(i){Math.abs(n)>Zs&&this.warn(`${i} ("${t.assetId}" ${t.timelineOffset}->${e})`)}}}));let h=null;if(i){const t=this.updateItem(i,this.timelinePos);this.itemsMatch(i,t)&&(this.playingItem=t,this.waitingItem=this.endedItem=null,h=()=>this.trimInPlace(t,i))}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const c=this.bufferingItem;if(c){const t=this.updateItem(c,this.bufferedPos);this.itemsMatch(c,t)?(this.bufferingItem=t,h||(h=()=>this.trimInPlace(t,c))):c.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(c.event,null))}if(t.forEach((t=>{t.assetList.forEach((t=>{this.clearAssetPlayer(t.identifier,null)}))})),u||e){if(this.hls.trigger(l.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:s.slice(0),durations:a,removedIds:o}),this.isInterstitial(i)&&o.includes(i.event.identifier))return this.warn(`Interstitial "${i.event.identifier}" removed while playing`),void this.primaryFallback(i.event);h&&h(),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=e,this.assetListLoader=new la(t),this.schedule=new aa(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(l.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(l.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(l.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(l.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(l.BUFFER_APPENDED,this.onBufferAppended,this),t.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(l.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(l.MEDIA_ENDED,this.onMediaEnded,this),t.on(l.ERROR,this.onError,this),t.on(l.DESTROYING,this.onDestroying,this)}unregisterListeners(){const t=this.hls;t&&(t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(l.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(l.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(l.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(l.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(l.BUFFER_CODECS,this.onBufferCodecs,this),t.off(l.BUFFER_APPENDED,this.onBufferAppended,this),t.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(l.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(l.MEDIA_ENDED,this.onMediaEnded,this),t.off(l.ERROR,this.onError,this),t.off(l.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;null==(t=this.getBufferingPlayer())||t.resumeBuffering()}pauseBuffering(){var t;null==(t=this.getBufferingPlayer())||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){Gs(t,"play",this.onPlay),Gs(t,"pause",this.onPause),Gs(t,"seeking",this.onSeeking),Gs(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,e){const n=this.media=e.media;js(n,"seeking",this.onSeeking),js(n,"timeupdate",this.onTimeupdate),js(n,"play",this.onPlay),js(n,"pause",this.onPause)}onMediaAttached(t,e){const n=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!i){this.clearScheduleState();const t=this.findItemIndex(n);this.setSchedulePosition(t)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,e){const n=!!e.transferMedia,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){const t=this.getBufferingPlayer();t&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,t.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const t=this,e=()=>t.bufferingItem||t.waitingItem,n=e=>e?t.getAssetPlayer(e.identifier):e,i=(e,i,r,a,o)=>{if(e){let l=e[i].start;const u=e.event;if(u){if("playout"===i||u.timelineOccupancy!==Js.Point){const t=n(r);(null==t?void 0:t.interstitial)===u&&(l+=t.assetItem.startOffset+t[o])}}else{l+=("bufferedPos"===a?s():t[a])-e.start}return l}return 0},r=(e,n)=>{if(0!==e&&"primary"!==n&&t.schedule.length){var i;const r=t.schedule.findItemIndexAtTime(e),s=null==(i=t.schedule.items)?void 0:i[r];if(s){return e+(s[n].start-s.start)}}return e},s=()=>{const e=t.bufferedPos;return e===Number.MAX_VALUE?a("primary"):Math.max(e,0)},a=e=>{var n;return null!=(n=t.primaryDetails)&&n.live?t.primaryDetails.edge:t.schedule.durations[e]},o=(e,r)=>{var s,a;const o=t.effectivePlayingItem;if(null!=o&&null!=(s=o.event)&&s.restrictions.skip)return;t.log(`seek to ${e} "${r}"`);const l=t.effectivePlayingItem,u=t.schedule.findItemIndexAtTime(e,r),h=null==(a=t.schedule.items)?void 0:a[u],c=t.getBufferingPlayer(),d=null==c?void 0:c.interstitial,f=null==d?void 0:d.appendInPlace,p=l&&t.itemsMatch(l,h);if(l&&(f||p)){const s=n(t.playingAsset),a=(null==s?void 0:s.media)||t.primaryMedia;if(a){const n="primary"===r?a.currentTime:i(l,r,t.playingAsset,"timelinePos","currentTime"),o=e-n,u=(f?n:a.currentTime)+o;if(u>=0&&(!s||f||u<=s.duration))return void(a.currentTime=u)}}if(h){let n=e;if("primary"!==r){const t=e-h[r].start;n=h.start+t}const i=!t.isInterstitial(h);if(t.isInterstitial(l)&&!l.event.appendInPlace||!i&&!h.event.appendInPlace){if(l){const s=t.findItemIndex(l);if(u>s){const e=t.schedule.findJumpRestrictedIndex(s+1,u);if(e>s)return void t.setSchedulePosition(e)}let a=0;if(i)t.timelinePos=n,t.checkBuffer();else{var g;const t=null==h||null==(g=h.event)?void 0:g.assetList;if(t){const n=e-(h[r]||h).start;for(let e=t.length;e--;){const i=t[e];if(i.duration&&n>=i.startOffset&&n{const n=t.effectivePlayingItem;if(t.isInterstitial(n))return n;const i=e();return t.isInterstitial(i)?i:null},u={get currentTime(){const e=l(),n=t.effectivePlayingItem;return n&&n===e?i(n,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(e){const n=l(),i=t.effectivePlayingItem;i&&i===n&&o(e+i.playout.start,"playout")},get duration(){const t=l();return t?t.playout.end-t.playout.start:0},get assetPlayers(){var e;const n=null==(e=l())?void 0:e.event.assetList;return n?n.map((e=>t.getAssetPlayer(e.identifier))):[]},get playingIndex(){var e;const n=null==(e=l())?void 0:e.event;return n&&t.effectivePlayingAsset?n.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return l()}};this.manager={get events(){var e,n;return(null==(e=t.schedule)||null==(n=e.events)?void 0:n.slice(0))||[]},get schedule(){var e,n;return(null==(e=t.schedule)||null==(n=e.items)?void 0:n.slice(0))||[]},get interstitialPlayer(){return l()?u:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return e()},get bufferingIndex(){const n=e();return t.findItemIndex(n)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const e=t.effectivePlayingItem;return t.findItemIndex(e)},primary:{get bufferedEnd(){return s()},get currentTime(){const e=t.timelinePos;return e>0?e:0},set currentTime(t){o(t,"primary")},get duration(){return a("primary")},get seekableStart(){var e;return(null==(e=t.primaryDetails)?void 0:e.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(e(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(t){o(t,"integrated")},get duration(){return a("integrated")},get seekableStart(){var e;return r((null==(e=t.primaryDetails)?void 0:e.fragmentStart)||0,"integrated")}},skip:()=>{const e=t.effectivePlayingItem,n=null==e?void 0:e.event;if(n&&!n.restrictions.skip){const i=t.findItemIndex(e);if(n.appendInPlace){const t=e.playout.start+e.event.duration;o(t+.001,"playout")}else t.advanceAfterAssetEnded(n,i,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const e=this.playingItem,n=null==(t=this.schedule)?void 0:t.items;return!!(this.playbackStarted&&e&&n)&&this.findItemIndex(e)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var t,e,n;if(null===this.mediaSelection)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let s=this.media;!s&&null!=(t=this.bufferingItem)&&null!=(e=t.event)&&e.appendInPlace&&(s=this.primaryMedia);const a=null==(n=s)?void 0:n.currentTime;return void 0!==a&&i(a)?a:void 0}get primaryMedia(){var t;return this.media||(null==(t=this.detachedData)?void 0:t.media)||null}isInterstitial(t){return!(null==t||!t.event)}retreiveMediaSource(t,e){const n=this.getAssetPlayer(t);n&&this.transferMediaFromPlayer(n,e)}transferMediaFromPlayer(t,e){const n=t.interstitial.appendInPlace,i=t.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!e||this.isInterstitial(e)&&!e.event.appendInPlace)&&e&&i)return void(this.detachedData={media:i});const n=t.transferMedia();this.log(`transfer MediaSource from ${t} ${$t(n)}`),this.detachedData=n}else e&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(t,e){var n,i;if(t.media===e)return;let r=null;const s=this.hls,a=t!==s,o=a&&t.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let u;if(s.media)o&&(r=s.transferMedia(),this.detachedData=r),u="Primary";else if(l){const t=this.getBufferingPlayer();t?(r=t.transferMedia(),u=`${t}`):u="detached MediaSource"}else u="detached media";if(!r)if(l)r=this.detachedData,this.log(`using detachedData: MediaSource ${$t(r)}`);else if(!this.detachedData||s.media===e){const t=this.playerQueue;t.length>1&&t.forEach((t=>{if(a&&t.interstitial.appendInPlace!==o){const e=t.interstitial;this.clearInterstitial(t.interstitial,null),e.appendInPlace=!1,e.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${e}`)}})),this.hls.detachMedia(),this.detachedData={media:e}}const h=r&&"mediaSource"in r&&"closed"!==(null==(i=r.mediaSource)?void 0:i.readyState),c=h&&r?r:e;if(this.log(`${h?"transfering MediaSource":"attaching media"} to ${a?t:"Primary"} from ${u}`),c===r){const e=a&&t.assetId===this.schedule.assetIdAtEnd;c.overrides={duration:this.schedule.duration,endOfStream:!a||e,cueRemoval:!a}}t.attachMedia(c)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,e=t.events;if(!e||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const n=this.timelinePos,i=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.timelinePos=n,e.length&&e[0].cue.pre){const n=t.findEventIndex(e[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){const e=this.timelinePos=n>0?n:0,i=t.findItemIndexAtTime(e);this.setSchedulePosition(i)}}else if(i&&!this.playingItem){const e=t.findItemIndex(i);this.setSchedulePosition(e)}}advanceAfterAssetEnded(t,e,n){const i=ia(t,n);if(t.isAssetPastPlayoutLimit(i)){const n=this.schedule.items;if(n){const i=e+1;if(i>=n.length)return void this.setSchedulePosition(-1);const r=t.resumeTime;this.timelinePos=0?n[t]:null,r=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(r)){var a;const u=r.event,h=this.playingAsset,c=null==h?void 0:h.identifier,d=c?this.getAssetPlayer(c):null;if(d&&c&&(!this.eventItemsMatch(r,i)||void 0!==e&&c!==(null==(a=u.assetList)?void 0:a[e].identifier))){var o;const e=u.findAssetIndex(h);this.log(`INTERSTITIAL_ASSET_ENDED ${e+1}/${u.assetList.length} ${ra(h)}`),this.endedAsset=h,this.playingAsset=null,this.hls.trigger(l.INTERSTITIAL_ASSET_ENDED,{asset:h,assetListIndex:e,event:u,schedule:n.slice(0),scheduleIndex:t,player:d}),this.retreiveMediaSource(c,i),!d.media||null!=(o=this.detachedData)&&o.mediaSource||d.detachMedia()}if(!this.eventItemsMatch(r,i)&&(this.endedItem=r,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${u} ${oa(r)}`),u.hasPlayed=!0,this.hls.trigger(l.INTERSTITIAL_ENDED,{event:u,schedule:n.slice(0),scheduleIndex:t}),u.cue.once)){this.updateSchedule();const t=this.schedule.items;if(i&&t){const n=this.schedule.findItemIndex(i);this.advanceSchedule(n,t,e,r,s)}return}}this.advanceSchedule(t,n,e,r,s)}advanceSchedule(t,e,n,i,r){const s=t>=0?e[t]:null,a=this.primaryMedia,o=this.playerQueue;if(o.length&&o.forEach((e=>{const n=e.interstitial,i=this.schedule.findEventIndex(n.identifier);(it+1)&&this.clearInterstitial(n,s)})),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const r=s.event;if(void 0===n){const e=ia(r,(n=this.schedule.findAssetIndex(r,this.timelinePos))-1);if(r.isAssetPastPlayoutLimit(e))return void this.advanceAfterAssetEnded(r,t,n);n=e}const o=this.waitingItem;this.assetsBuffered(s,a)||this.setBufferingItem(s);let u=this.preloadAssets(r,n);if(this.eventItemsMatch(s,o||i)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${oa(s)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(l.INTERSTITIAL_STARTED,{event:r,schedule:e.slice(0),scheduleIndex:t})),!r.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${r}`);if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!a)return void this.log(`Waiting for attachMedia to start Interstitial ${r}`);this.waitingItem=this.endedItem=null,this.playingItem=s;const h=r.assetList[n];if(!h){const i=e[t+1],s=this.media;return i&&s&&!this.isInterstitial(i)&&s.currentTime=t.end)&&(n=this.getPrimaryResumption(t,e),this.timelinePos=n),this.attachPrimary(n,t)}if(!n)return;const r=this.schedule.items;r&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${oa(t)}`),this.hls.trigger(l.INTERSTITIALS_PRIMARY_RESUMED,{schedule:r.slice(0),scheduleIndex:e}),this.checkBuffer())}getPrimaryResumption(t,e){const n=t.start;if(this.primaryLive){const t=this.primaryDetails;if(0===e)return this.hls.startPosition;if(t&&(nt.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(t){const e=this.getAssetPlayer(t.identifier);if(null!=e&&e.hls)return e.hls.bufferedToEnd;return Ke.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,e,n){e?this.setBufferingItem(e):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(t,n)),n||(this.timelinePos=t,this.startLoadingPrimaryAt(t,n))}startLoadingPrimaryAt(t,e){var n;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs(((null==(n=i.mainForwardBufferInfo)?void 0:n.start)||i.media.currentTime)-t)>.5?i.startLoad(t,e):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(l.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(l.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,e){if(-1===e.level)return;const n=this.hls.levels[e.level],i=w(w({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,e){const n=this.hls.audioTracks[e.id],i=this.mediaSelection;if(!i)return void(this.altSelection=w(w({},this.altSelection),{},{audio:n}));const r=w(w({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(t,e){const n=this.hls.subtitleTracks[e.id],i=this.mediaSelection;if(!i)return void(this.altSelection=w(w({},this.altSelection),{},{subtitles:n}));const r=w(w({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(t,e){const n=ne(e);this.playerQueue.forEach((t=>t.hls.setAudioOption(e)||t.hls.setAudioOption(n)))}onSubtitleTrackSwitch(t,e){const n=ne(e);this.playerQueue.forEach((t=>t.hls.setSubtitleOption(e)||-1!==e.id&&t.hls.setSubtitleOption(n)))}onBufferCodecs(t,e){const n=e.tracks;n&&(this.requiredTracks=n)}onBufferAppended(t,e){this.checkBuffer()}onBufferFlushed(t,e){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const t=this.timelinePos;this.bufferedPos=t,this.checkBuffer()}}onBufferedToEnd(t){const e=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach(((e,n)=>{t.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(e.identifier,null)}));const e=t.end+.25,n=Ke.bufferInfo(this.primaryMedia,e,0);(n.end>e||(n.nextStart||0)>e)&&(this.attachPrimary(e,null),this.flushFrontBuffer(e))}}itemsMatch(t,e){return!!e&&(t===e||t.event&&e.event&&this.eventItemsMatch(t,e)||!t.event&&!e.event&&this.findItemIndex(t)===this.findItemIndex(e))}eventItemsMatch(t,e){var n;return!!e&&(t===e||t.event.identifier===(null==(n=e.event)?void 0:n.identifier))}findItemIndex(t,e){return t?this.schedule.findItemIndex(t,e):-1}updateSchedule(){const t=this.mediaSelection;t&&this.schedule.updateSchedule(t,[])}checkBuffer(t){const e=this.schedule.items;if(!e)return;const n=Ke.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=n.len<1),this.updateBufferedPos(n.end,e,t)}updateBufferedPos(t,e,n){const i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>t)return;if(1===e.length&&this.itemsMatch(e[0],r))return void(this.bufferedPos=t);const s=this.playingItem,a=this.findItemIndex(s);let o=i.findItemIndexAtTime(t);if(this.bufferedPos=r.end||null!=(l=s.event)&&l.appendInPlace&&t+.01>=s.start)&&(o=i),i-a>1&&!1===(null==r||null==(u=r.event)?void 0:u.appendInPlace))return;if(this.bufferedPos=t,o>n&&o>a)this.bufferedToItem(s);else{const e=this.primaryDetails;this.primaryLive&&e&&t>e.edge-e.targetduration&&s.start{const n=this.getAssetPlayer(t.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(e))}))}setBufferingItem(t){const e=this.bufferingItem,n=this.schedule;if(this.itemsMatch(t,e))this.bufferingItem!==t&&(this.bufferingItem=t);else{const{items:i,events:r}=n;if(!i||!r)return e;const s=this.isInterstitial(t),a=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const o=a?a.remaining:e?e.end-this.timelinePos:0;this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${oa(t)}`+(e?` (${o.toFixed(2)} remaining)`:"")),this.playbackDisabled||(s?t.event.assetList.forEach((t=>{const e=this.getAssetPlayer(t.identifier);e&&e.resumeBuffering()})):(this.hls.resumeBuffering(),this.playerQueue.forEach((t=>t.pauseBuffering())))),this.hls.trigger(l.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}return e}bufferedToItem(t,e=0){const n=this.setBufferingItem(t);if(!this.playbackDisabled)if(this.isInterstitial(t))this.bufferedToEvent(t,e);else if(null!==n){this.bufferingAsset=null;const e=this.detachedData;if(e)if(e.mediaSource){const e=!0;this.attachPrimary(t.start,t,e)}else this.preloadPrimary(t);else this.preloadPrimary(t)}}preloadPrimary(t){const e=this.findItemIndex(t),n=this.getPrimaryResumption(t,e);this.startLoadingPrimaryAt(n)}bufferedToEvent(t,e){const n=t.event,i=0===n.assetList.length&&!n.assetListLoader,r=n.cue.once;if(i||!r){const t=this.preloadAssets(n,e);if(null!=t&&t.interstitial.appendInPlace){const i=n.assetList[e],r=this.primaryMedia;i&&r&&this.bufferAssetPlayer(t,r)}}}preloadAssets(t,e){const n=t.assetUrl,i=t.assetList.length,r=0===i&&!t.assetListLoader,s=t.cue.once;if(r){const r=t.timelineStart;if(t.appendInPlace){var a;const e=this.playingItem;this.isInterstitial(e)||(null==e||null==(a=e.nextEvent)?void 0:a.identifier)!==t.identifier||this.flushFrontBuffer(r+.25)}let s,o=0;if(!this.playingItem&&this.primaryLive&&(o=this.hls.startPosition,-1===o&&(o=this.hls.liveSyncPosition||0)),o&&!t.cue.pre&&!t.cue.post){const t=o-r;t>0&&(s=Math.round(1e3*t)/1e3)}if(this.log(`Load interstitial asset ${e+1}/${n?1:i} ${t}${s?` live-start: ${o} start-offset: ${s}`:""}`),n)return this.createAsset(t,0,0,r,t.duration,n);const l=this.assetListLoader.loadAssetList(t,s);l&&(t.assetListLoader=l)}else if(!s&&i){for(let n=e;n{this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:e})}))}getAssetPlayerQueueIndex(t){const e=this.playerQueue;for(let n=0;n1){const n=e.duration;n&&t{if(i.live){const e=new Error(`Interstitials MUST be VOD assets ${t}`),i={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:e};return void this.handleAssetItemError(i,t,this.schedule.findEventIndex(t.identifier),n,e.message)}const r=i.edge-i.fragmentStart,s=e.duration;(null===s||r>s)&&(this.log(`Interstitial asset "${f}" duration change ${s} > ${r}`),e.duration=r,this.updateSchedule())};m.on(l.LEVEL_UPDATED,((t,{details:e})=>v(e))),m.on(l.LEVEL_PTS_UPDATED,((t,{details:e})=>v(e)));const y=(t,e)=>{const n=this.getAssetPlayer(f);if(n&&e.tracks){n.off(l.BUFFER_CODECS,y),n.tracks=e.tracks;const t=this.primaryMedia;this.bufferingAsset===n.assetItem&&t&&!n.media&&this.bufferAssetPlayer(n,t)}};m.on(l.BUFFER_CODECS,y);const b=()=>{var n;const i=this.getAssetPlayer(f);if(this.log(`buffered to end of asset ${i}`),!i)return;const r=this.schedule.findEventIndex(t.identifier),s=null==(n=this.schedule.items)?void 0:n[r];if(this.isInterstitial(s)){const n=t.findAssetIndex(e),i=ia(t,n);if(t.isAssetPastPlayoutLimit(i)){var a;const t=null==(a=this.schedule.items)?void 0:a[r+1];t&&this.bufferedToItem(t)}else this.bufferedToItem(s,i)}};m.on(l.BUFFERED_TO_END,b);const E=e=>()=>{if(!this.getAssetPlayer(f))return;this.shouldPlay=!0;const n=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,n,e)};return m.once(l.MEDIA_ENDED,E(n)),m.once(l.PLAYOUT_LIMIT_REACHED,E(1/0)),m.on(l.ERROR,((e,i)=>{const r=this.getAssetPlayer(f);if(i.details!==o.BUFFER_STALLED_ERROR)this.handleAssetItemError(i,t,this.schedule.findEventIndex(t.identifier),n,`Asset player error ${i.error} ${t}`);else if(null!=r&&r.media){const e=r.currentTime,n=r.duration-e;e&&t.appendInPlace&&n/r.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${f} ${t} at ${r.media.currentTime}`),b()):(this.warn(`Stalled at ${e} of ${e+n} in asset ${f} ${t}`),this.onTimeupdate(),this.checkBuffer(!0))}})),m.on(l.DESTROYING,(()=>{if(!this.getAssetPlayer(f))return;const e=new Error(`Asset player destroyed unexpectedly ${f}`),i={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:e};this.handleAssetItemError(i,t,this.schedule.findEventIndex(t.identifier),n,e.message)})),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${ra(e)}`),this.hls.trigger(l.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:e,assetListIndex:n,event:t,player:m}),m}clearInterstitial(t,e){t.assetList.forEach((t=>{this.clearAssetPlayer(t.identifier,e)})),t.reset()}resetAssetPlayer(t){const e=this.getAssetPlayerQueueIndex(t);if(-1!==e){this.log(`reset asset player "${t}" after error`);const n=this.playerQueue[e];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(t,e){const n=this.getAssetPlayerQueueIndex(t);if(-1!==n){this.log(`clear asset player "${t}" toSegment: ${e?oa(e):e}`);const i=this.playerQueue[n];this.transferMediaFromPlayer(i,e),this.playerQueue.splice(n,1),i.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,e,n,i,r){const{interstitial:s,assetItem:a,assetId:o}=t,u=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=a,h&&h.identifier===o||(h&&(this.clearAssetPlayer(h.identifier,n[i]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${e+1}/${u} ${ra(a)}`),this.hls.trigger(l.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:e,event:s,schedule:n.slice(0),scheduleIndex:i,player:t})),this.bufferAssetPlayer(t,r)}bufferAssetPlayer(t,e){var n,i;const{interstitial:r,assetItem:s}=t,l=this.schedule.findEventIndex(r.identifier),u=null==(n=this.schedule.items)?void 0:n[l];if(!u)return;this.setBufferingItem(u),this.bufferingAsset=s;const h=this.getBufferingPlayer();if(h===t)return;const c=r.appendInPlace;if(c&&!1===(null==h?void 0:h.interstitial.appendInPlace))return;const d=(null==h?void 0:h.tracks)||(null==(i=this.detachedData)?void 0:i.tracks)||this.requiredTracks;if(c&&s!==this.playingAsset){if(!t.tracks)return;if(d&&!R(d,t.tracks)){const e=new Error(`Asset ${ra(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(d)}')`),n={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:e},i=r.findAssetIndex(s);return void this.handleAssetItemError(n,r,l,i,e.message)}}this.transferMediaTo(t,e)}handleAssetItemError(t,e,n,i,r){if(t.details===o.BUFFER_STALLED_ERROR)return;const s=e.assetList[i];this.warn(`INTERSTITIAL_ASSET_ERROR ${s?ra(s):s} ${t.error}`);const a=null==s?void 0:s.identifier,u=this.getAssetPlayerQueueIndex(a),h=this.playerQueue[u]||null,c=this.schedule.items,d=A({},t,{fatal:!1,errorAction:Te(!0),asset:s,assetListIndex:i,event:e,schedule:c,scheduleIndex:n,player:h});if(this.hls.trigger(l.INTERSTITIAL_ASSET_ERROR,d),!t.fatal)return;const f=this.playingAsset,p=new Error(r);if(s&&(this.clearAssetPlayer(a,null),s.error=p),e.assetList.some((t=>!t.error))){if(e.appendInPlace){for(let t=i;t"} error: ${t.error}`);let i=this.timelinePos;-1===i&&(i=this.hls.startPosition);const r=this.updateItem(n,i);this.itemsMatch(n,r)&&this.clearInterstitial(t,null),t.appendInPlace&&(this.attachPrimary(e,null),this.flushFrontBuffer(e));const s=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(t,e){var n;const i=e.event,r=i.identifier,s=e.assetListResponse.ASSETS;if(!this.schedule.hasEvent(r))return;const a=i.timelineStart,o=i.duration;let l=0;s.forEach(((t,e)=>{const n=parseFloat(t.DURATION);this.createAsset(i,e,l,a+l,n,t.URI),l+=n})),i.duration=l,this.log(`Loaded asset-list with duration: ${l} (was: ${o}) ${i}`);const u=this.waitingItem,h=(null==u?void 0:u.event.identifier)===r;this.updateSchedule();const c=null==(n=this.bufferingItem)?void 0:n.event;if(h){var d;const t=this.schedule.findEventIndex(r),e=null==(d=this.schedule.items)?void 0:d[t];if(e){if(!this.playingItem&&this.timelinePos>e.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==t)return i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),void this.primaryFallback(i)}this.setBufferingItem(e)}this.setSchedulePosition(t)}else if((null==c?void 0:c.identifier)===r&&c.appendInPlace){const t=i.assetList[0],e=this.getAssetPlayer(t.identifier),n=this.primaryMedia;t&&e&&n&&this.bufferAssetPlayer(e,n)}}onError(t,e){switch(e.details){case o.ASSET_LIST_PARSING_ERROR:case o.ASSET_LIST_LOAD_ERROR:case o.ASSET_LIST_LOAD_TIMEOUT:{const t=e.interstitial;t&&this.primaryFallback(t);break}case o.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}});function po(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(po):Object.keys(t).reduce(((e,n)=>(e[n]=po(t[n]),e)),{}):t}function go(t,e){const n=t.loader;if(n!==oo&&n!==co)e.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1})()&&(t.loader=oo,t.progressive=!0,t.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class mo extends qe{constructor(t,e){super("gap-controller",t.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var t;null!=(t=this.media)&&t.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var t;this.hls&&(this.ended=(null==(t=this.media)?void 0:t.currentTime)||1,this.hls.trigger(l.MEDIA_ENDED,{stalled:!1}))},this.hls=t,this.fragmentTracker=e,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,e){this.setInterval(100),this.mediaSource=e.mediaSource;const n=this.media=e.media;js(n,"playing",this.onMediaPlaying),js(n,"waiting",this.onMediaWaiting),js(n,"ended",this.onMediaEnded)}onMediaDetaching(t,e){this.clearInterval();const{media:n}=this;n&&(Gs(n,"playing",this.onMediaPlaying),Gs(n,"waiting",this.onMediaWaiting),Gs(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,e){this.buffered=e.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(null==(t=this.media)||!t.readyState||!this.hasBuffered)return;const e=this.media.currentTime;this.poll(e,this.lastCurrentTime),this.lastCurrentTime=e}poll(t,e){var n,i;const r=null==(n=this.hls)?void 0:n.config;if(!r)return;const s=this.media;if(!s)return;const{seeking:a}=s,o=this.seeking&&!a,u=!this.seeking&&a,h=s.paused&&!a||s.ended||0===s.playbackRate;if(this.seeking=a,t!==e)return e&&(this.ended=0),this.moved=!0,a||(this.nudgeRetry=0,r.nudgeOnVideoHole&&!h&&t>e&&this.nudgeOnVideoHole(t,e)),void(0===this.waiting&&this.stallResolved(t));if(u||o)return void(o&&this.stallResolved(t));if(h)return this.nudgeRetry=0,this.stallResolved(t),void(!this.ended&&s.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(l.MEDIA_ENDED,{stalled:!1})));if(!Ke.getBuffered(s).length)return void(this.nudgeRetry=0);const c=Ke.bufferInfo(s,t,0),d=c.nextStart||0,f=this.fragmentTracker;if(a&&f&&this.hls){const e=vo(this.hls.inFlightFragments,t),n=c.len>2,i=!d||e||d-t>2&&!f.getPartialFragment(t);if(n||i)return;this.moved=!1}const p=null==(i=this.hls)?void 0:i.latestLevelDetails;if(!this.moved&&null!==this.stalled&&f){if(!(c.len>0)&&!d)return;const e=Math.max(d,c.start||0)-t,n=!(null==p||!p.live)?2*p.targetduration:2,i=f.getPartialFragment(t);if(e>0&&(e<=n||i))return void(s.paused||this._trySkipBufferHole(i))}const g=r.detectStallWithCurrentTimeMs,m=self.performance.now(),v=this.waiting;let y=this.stalled;if(null===y){if(!(v>0&&m-v=g||v)&&this.hls){var b;if("ended"===(null==(b=this.mediaSource)?void 0:b.readyState)&&(null==p||!p.live)&&Math.abs(t-((null==p?void 0:p.edge)||0))<1){if(this.ended)return;return this.ended=t||1,void this.hls.trigger(l.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(c),!this.media||!this.hls)return}const w=Ke.bufferInfo(s,t,r.maxBufferHole);this._tryFixBufferStall(w,A,t)}stallResolved(t){const e=this.stalled;if(e&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-e;this.log(`playback not stuck anymore @${t}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(l.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,e){var n;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&i&&i.length>1&&t>i.end(0)){const n=Ke.bufferedInfo(Ke.timeRangesToArray(this.buffered.audio),t,0);if(n.len>1&&e>=n.start){const n=Ke.timeRangesToArray(i),r=Ke.bufferedInfo(n,e,0).bufferedIndex;if(r>-1&&rr)&&s-i<1&&t-i<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${i} -> ${s} buffered index: ${e}`);this.warn(n.message),this.media.currentTime+=1e-6;const r=this.fragmentTracker.getPartialFragment(t)||void 0,u=Ke.bufferInfo(this.media,t,0);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:r,buffer:u.len,bufferInfo:u})}}}}}_tryFixBufferStall(t,e,n){var i,r;const{fragmentTracker:s,media:a}=this,o=null==(i=this.hls)?void 0:i.config;if(!a||!s||!o)return;const l=null==(r=this.hls)?void 0:r.latestLevelDetails,u=s.getPartialFragment(n);if(u||null!=l&&l.live&&n1&&t.len>o.maxBufferHole||t.nextStart&&(t.nextStart-n1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,e){const n=this.fragmentTracker,i=t.nextStart;if(n&&i){const t=n.getFragAtPos(e,f),r=n.getFragAtPos(i,f);if(t&&r)return r.sn-t.sn<2}return!1}_reportStall(t){const{hls:e,media:n,stallReported:i,stalled:r}=this;if(!i&&null!==r&&n&&e){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${$t(t)})`);this.warn(i.message),e.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len,bufferInfo:t,stalled:{start:r}})}}_trySkipBufferHole(t){var e;const{fragmentTracker:n,media:i}=this,r=null==(e=this.hls)?void 0:e.config;if(!i||!n||!r)return 0;const s=i.currentTime,u=Ke.bufferInfo(i,s,0),h=s0&&u.len<1&&i.readyState<3,p=h-s;if(p>0&&(e||d)){if(p>r.maxBufferHole){let e=!1;if(0===s){const t=n.getAppendedFrag(0,f);t&&h{const t=Ao();try{t&&new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Eo{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(l.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:t}=this;t.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(t,e){var n;this.media=e.media,!1===(null==(n=e.overrides)?void 0:n.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){const t=this.hls.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(t,e){this.media=null;!!e.transferMedia||(this.id3Track&&(this.removeCues&&Ys(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const e=this.getID3Track(t.textTracks);return e.mode="hidden",e}getID3Track(t){if(this.media){for(let e=0;ewo&&(i=wo);i-n<=0&&(i=n+.25);for(let t=0;tt.type===$i.audioId3&&o:"video"===i?t=>t.type===$i.emsg&&a:t=>t.type===$i.audioId3&&o||t.type===$i.emsg&&a,Ks(r,e,n,t)}}onLevelUpdated(t,{details:e}){this.updateDateRangeCues(e,!0)}onLevelPtsUpdated(t,e){Math.abs(e.drift)>.01&&this.updateDateRangeCues(e.details)}updateDateRangeCues(t,e){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=t,s=Object.keys(r);let a=this.dateRangeCuesAppended;var o;if(n&&e)if(null!=(o=n.cues)&&o.length){const t=Object.keys(a).filter((t=>!s.includes(t)));for(let e=t.length;e--;){const i=t[e],r=a[i].cues;delete a[i],Object.keys(r).forEach((t=>{try{const e=r[t];e.removeEventListener("enter",this.onEventCueEnter),n.removeCue(e)}catch(t){}}))}}else a=this.dateRangeCuesAppended={};const l=t.fragments[t.fragments.length-1];if(0===s.length||!i(null==l?void 0:l.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const u=Ao();for(let t=0;t{if(e!==n.id){const i=r[e];if(i.class===n.class&&i.startDate>n.startDate&&(!t||n.startDate.01&&(s.startTime=i,s.endTime=f);else if(u){let t=n.attr[r];rn(r)&&(h=t,t=Uint8Array.from(h.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);const s=bo(u,i,f,{key:r,data:t},$i.dateRange);s&&(s.id=e,this.id3Track.addCue(s),l[r]=s,this.hls.config.interstitialsController&&("X-ASSET-LIST"!==r&&"X-ASSET-URL"!==r||s.addEventListener("enter",this.onEventCueEnter)))}}a[e]={cues:l,dateRange:n,durationKnown:d}}var h,c}}class xo{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,e=this.levelDetails;if(!t||!e)return;this.currentTime=t.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!e.live)return;const s=this.targetLatency;if(null===s)return;const a=n-s;if(a.05&&this.forwardBufferLength>1){const e=Math.min(2,Math.max(1,r)),n=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,i=Math.min(e,Math.max(1,n));this.changeMediaPlaybackRate(t,i)}else 1!==t.playbackRate&&0!==t.playbackRate&&this.changeMediaPlaybackRate(t,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return(null==(t=this.hls)?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(void 0!==t.liveMaxLatencyDuration)return t.liveMaxLatencyDuration;const e=this.levelDetails;return e?t.liveMaxLatencyDurationCount*e.targetduration:0}get targetLatency(){const t=this.levelDetails;if(null===t||null===this.hls)return null;const{holdBack:e,partHoldBack:n,targetduration:i}=t,{liveSyncDuration:r,liveSyncDurationCount:s,lowLatencyMode:a}=this.config,o=this.hls.userConfig;let l=a&&n||e;(this._targetLatencyUpdated||o.liveSyncDuration||o.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:s*i);const u=i;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,u)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),e=this.targetLatency;if(null===t||null===e)return null;const n=this.levelDetails;if(null===n)return null;const i=n.edge,r=t-e-this.edgeStalled,s=i-n.totalduration,a=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,r),a)}get drift(){const t=this.levelDetails;return null===t?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(null===t)return 0;const e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}get forwardBufferLength(){const{media:t}=this,e=this.levelDetails;if(!t||!e)return 0;const n=t.buffered.length;return(n?t.buffered.end(n-1):e.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(l.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(l.ERROR,this.onError,this))}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:e}){e.advanced&&this.onTimeupdate(),!e.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,e){var n;e.details===o.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,e){var n,i;t.playbackRate!==e&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(i=this.targetLatency)?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${e}`),t.playbackRate=e)}estimateLiveEdge(){const t=this.levelDetails;return null===t?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return null===t?null:t-this.currentTime}}class ko extends ts{constructor(t,e){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=e,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this),t.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this),t.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((t=>{t.loadError=0,t.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,e){this.resetLevels()}onManifestLoaded(t,e){const n=this.hls.config.preferManagedMediaSource,i=[],r={},s={};let a=!1,o=!1,l=!1;e.levels.forEach((t=>{const e=t.attrs;let{audioCodec:u,videoCodec:h}=t;u&&(t.audioCodec=u=Pt(u,n)||void 0),h&&(h=t.videoCodec=function(t){const e=t.split(",");for(let t=0;t2&&"avc1"===n[0]&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}(h));const{width:c,height:d,unknownCodecs:f}=t;let p=f?f.length:0;if(f)for(let e=p;e--;){const n=f[e];this.isAudioSupported(n)?(t.audioCodec=u=u?`${u},${n}`:n,p--,kt.audio[u.substring(0,4)]=2):this.isVideoSupported(n)&&(t.videoCodec=h=h?`${h},${n}`:n,p--,kt.video[h.substring(0,4)]=2)}if(a||(a=!(!c||!d)),o||(o=!!h),l||(l=!!u),p||u&&!this.isAudioSupported(u)||h&&!this.isVideoSupported(h))return void this.log(`Some or all CODECS not supported "${e.CODECS}"`);const{CODECS:g,"FRAME-RATE":m,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:A,"VIDEO-RANGE":b}=e,w=`${`${y||"."}-`}${t.bitrate}-${A}-${m}-${g}-${b}-${v}`;if(r[w])if(r[w].uri===t.url||t.attrs["PATHWAY-ID"])r[w].addGroupId("audio",e.AUDIO),r[w].addGroupId("text",e.SUBTITLES);else{const e=s[w]+=1;t.attrs["PATHWAY-ID"]=new Array(e+1).join(".");const n=this.createLevel(t);r[w]=n,i.push(n)}else{const e=this.createLevel(t);r[w]=e,s[w]=1,i.push(e)}})),this.filterAndSortMediaOptions(i,e,a,o,l)}createLevel(t){const e=new Wt(t),n=t.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const t=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(t.message),e.supportedResult=Ut(t,[])}return e}isAudioSupported(t){return Ct(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return Ct(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,e,n,i,r){let s=[],u=[],h=t;if((n||i)&&r&&(h=h.filter((({videoCodec:t,videoRange:e,width:n,height:i})=>{return(!!t||!(!n||!i))&&(!!(r=e)&&Qt.indexOf(r)>-1);var r}))),0===h.length)return void Promise.resolve().then((()=>{if(this.hls){let t="no level with compatible codecs found in manifest",n=t;e.levels.length&&(n=`one or more CODECS in variant not supported: ${$t(e.levels.map((t=>t.attrs.CODECS)).filter(((t,e,n)=>n.indexOf(t)===e)))}`,this.warn(n),t+=` (${n})`);const i=new Error(t);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:i,reason:n})}}));e.audioTracks&&(s=e.audioTracks.filter((t=>!t.audioCodec||this.isAudioSupported(t.audioCodec))),To(s)),e.subtitles&&(u=e.subtitles,To(u));const c=h.slice(0);h.sort(((t,e)=>{if(t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"])return(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&t.height!==e.height)return t.height-e.height;if(t.frameRate!==e.frameRate)return t.frameRate-e.frameRate;if(t.videoRange!==e.videoRange)return Qt.indexOf(t.videoRange)-Qt.indexOf(e.videoRange);if(t.videoCodec!==e.videoCodec){const n=It(t.videoCodec),i=It(e.videoCodec);if(n!==i)return i-n}if(t.uri===e.uri&&t.codecSet!==e.codecSet){const n=Rt(t.codecSet),i=Rt(e.codecSet);if(n!==i)return i-n}return t.averageBitrate!==e.averageBitrate?t.averageBitrate-e.averageBitrate:0}));let d=c[0];if(this.steering&&(h=this.steering.filterParsedLevels(h),h.length!==c.length))for(let t=0;tn&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=t)}break}const p=r&&!i,g=this.hls.config,m=!(!g.audioStreamController||!g.audioTrackController),v={levels:h,audioTracks:s,subtitleTracks:u,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:r,video:i,altAudio:m&&!p&&s.some((t=>!!t.url))};this.hls.trigger(l.MANIFEST_PARSED,v)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const e=this._levels;if(0===e.length)return;if(t<0||t>=e.length){const n=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:n,reason:n.message}),i)return;t=Math.min(t,e.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,s=e[t],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,n===t&&i&&r===u)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${n}${r?" with Pathway "+r:""}`);const h={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,h);const c=s.details;if(!c||c.live){const t=this.switchParams(s.uri,null==i?void 0:i.details,c);this.loadPlaylist(t)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(void 0===this._startLevel){const t=this.hls.config.startLevel;return void 0!==t?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const e=this.steering.pathways(),n=t.filter((t=>-1!==e.indexOf(t)));if(t.length<1)return void this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${e}`);this.steering.pathwayPriority=n}}onError(t,e){!e.fatal&&e.context&&e.context.type===h&&e.context.level===this.level&&this.checkRetry(e)}onFragBuffered(t,{frag:e}){if(void 0!==e&&e.type===f){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return;const n=this._levels[e.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(t,e){var n;const{level:i,details:r}=e,s=e.levelInfo;var a;if(!s)return this.warn(`Invalid level index ${i}`),void(null!=(a=e.deliveryDirectives)&&a.skip&&(r.deltaUpdateFailed=!0));if(s===this.currentLevel||e.withoutMultiVariant){0===s.fragmentError&&(s.loadError=0);let t=s.details;t===e.details&&t.advanced&&(t=void 0),this.playlistLoaded(i,e,t)}else null!=(n=e.deliveryDirectives)&&n.skip&&(r.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,e){super.loadingPlaylist(t,e);const n=this.getUrlWithDirectives(t.uri,e),i=this.currentLevelIndex,r=t.attrs["PATHWAY-ID"],s=t.details,a=null==s?void 0:s.age;this.log(`Loading level index ${i}${void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:""}${r?" Pathway "+r:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(l.LEVEL_LOADING,{url:n,level:i,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}removeLevel(t){var e;if(1===this._levels.length)return;const n=this._levels.filter(((e,n)=>n!==t||(this.steering&&this.steering.removeLevel(e),e===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,e.details&&e.details.fragments.forEach((t=>t.level=-1))),!1)));ri(n),this._levels=n,this.currentLevelIndex>-1&&null!=(e=this.currentLevel)&&e.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(l.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(t,{levels:e}){this._levels=e}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:e,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==e&&(this._maxAutoLevel=e,this.hls.trigger(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:e,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function To(t){const e={};t.forEach((t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++}))}function Co(){return self.SourceBuffer||self.WebKitSourceBuffer}function Do(){if(!I())return!1;const t=Co();return!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove}class So extends xi{constructor(t,e,n){super(t,e,n,"stream-controller",f),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const t=this.media,e=t?t.currentTime:null;if(null===e||!i(e))return;if(this.log(`Media seeked to ${e.toFixed(3)}`),!this.getBufferedFrag(e))return;const n=this.getFwdBufferInfoAtPos(t,e,f,0);null!==n&&0!==n.len?this.tick():this.warn(`Main forward buffer length at ${e} on "seeked" event ${n?n.len:"empty"})`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(l.MANIFEST_PARSED,this.onManifestParsed,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.LEVEL_LOADED,this.onLevelLoaded,this),t.on(l.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(l.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(l.BUFFER_CREATED,this.onBufferCreated,this),t.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(l.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(l.MANIFEST_PARSED,this.onManifestParsed,this),t.off(l.LEVEL_LOADED,this.onLevelLoaded,this),t.off(l.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(l.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(l.BUFFER_CREATED,this.onBufferCreated,this),t.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(l.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,e){if(this.levels){const{lastCurrentTime:n,hls:i}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let t=i.startLevel;-1===t&&(i.config.testBandwidth&&this.levels.length>1?(t=0,this.bitrateTest=!0):t=i.firstAutoLevel),i.nextLoadLevel=t,this.level=i.loadLevel,this._hasEnoughToStart=!!e}n>0&&-1===t&&!e&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),t=n),this.state=di,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=e?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=ci}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Ei:{const{levels:t,level:e}=this,n=null==t?void 0:t[e],i=null==n?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=di;break}if(this.hls.nextLoadLevel!==this.level){this.state=di;break}break}case gi:{var t;const e=self.performance.now(),n=this.retryDate;if(!n||e>=n||null!=(t=this.media)&&t.seeking){const{levels:t,level:e}=this,n=null==t?void 0:t[e];this.resetStartWhenNotLoaded(n||null),this.state=di}}}this.state===di&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),null!=(t=this.media)&&t.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:e,levels:n,media:i}=this;if(null===e||!i&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=this.buffering?t.nextLoadLevel:t.loadLevel;if(null==n||!n[r])return;const s=n[r],a=this.getMainFwdBufferInfo();if(null===a)return;const o=this.getLevelDetails();if(o&&this._streamEnded(a,o)){const t={};return 2===this.altAudio&&(t.type="video"),this.hls.trigger(l.BUFFER_EOS,t),void(this.state=Ai)}if(!this.buffering)return;t.loadLevel!==r&&-1===t.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=t.nextLoadLevel=r;const u=s.details;if(!u||this.state===Ei||this.waitForLive(s))return this.level=r,this.state=Ei,void(this.startFragRequested=!1);const h=a.len,c=this.getMaxBufferLength(s.maxBitrate);if(h>=c)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const d=this.backtrackFragment?this.backtrackFragment.start:a.end;let p=this.getNextFragment(d,u);if(this.couldBacktrack&&!this.fragPrevious&&p&&Y(p)&&this.fragmentTracker.getState(p)!==Ie){var g;const t=(null!=(g=this.backtrackFragment)?g:p).sn-u.startSN,e=u.fragments[t-1];e&&p.cc===e.cc&&(p=e,this.fragmentTracker.removeFragment(e))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(p&&this.isLoopLoading(p,d)){if(!p.gap){const t=this.audioOnly&&!this.altAudio?H:Q,e=(t===Q?this.videoBuffer:this.mediaBuffer)||this.media;e&&this.afterBufferFlushed(e,t,f)}p=this.getNextFragmentLoopLoading(p,u,a,f,c)}p&&(!p.initSegment||p.initSegment.data||this.bitrateTest||(p=p.initSegment),this.loadFragment(p,s,d))}loadFragment(t,e,n){const i=this.fragmentTracker.getState(t);i===Ce||i===Se?Y(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,e)):super.loadFragment(t,e,n):this._loadInitSegment(t,e):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,f)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:e}=this;if(null!=e&&e.readyState){let n;const i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const t=this.getMainFwdBufferInfo();if(!t||t.len<2*r.targetduration)return}if(!e.paused&&t){const e=t[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*e.maxBitrate/(1e3*i)+1:0}else n=0;const s=this.getBufferedFrag(e.currentTime+n);if(s){const t=this.followingBufferedFrag(s);if(t){this.abortCurrentFrag();const e=t.maxStartPTS?t.maxStartPTS:t.start,n=t.duration,i=Math.max(s.end,e+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case fi:case pi:case gi:case vi:case yi:this.state=di}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(t,e){super.flushMainBuffer(t,e,2===this.altAudio?"video":null)}onMediaAttached(t,e){super.onMediaAttached(t,e);const n=e.media;js(n,"playing",this.onMediaPlaying),js(n,"seeked",this.onMediaSeeked)}onMediaDetaching(t,e){const{media:n}=this;n&&(Gs(n,"playing",this.onMediaPlaying),Gs(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(t,e);!!e.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(l.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(t,e){let n=!1,i=!1;e.levels.forEach((t=>{const e=t.audioCodec;e&&(n=n||-1!==e.indexOf("mp4a.40.2"),i=i||-1!==e.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&i&&!function(){var t;const e=Co();return"function"==typeof(null==e||null==(t=e.prototype)?void 0:t.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1}onLevelLoading(t,e){const{levels:n}=this;if(!n||this.state!==di)return;const i=e.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=Ei)}onLevelLoaded(t,e){var n;const{levels:i,startFragRequested:r}=this,s=e.level,a=e.details,o=a.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${s}`);this.log(`Level ${s} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${o}`);const u=e.levelInfo,h=this.fragCurrent;!h||this.state!==pi&&this.state!==gi||h.level!==e.level&&h.loader&&this.abortCurrentFrag();let c=0;if(a.live||null!=(n=u.details)&&n.live){var d;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;c=this.alignPlaylists(a,u.details,null==(d=this.levelLastLoaded)?void 0:d.details)}if(u.details=a,this.levelLastLoaded=u,r||this.setStartPosition(a,c),this.hls.trigger(l.LEVEL_UPDATED,{details:a,level:s}),this.state===Ei){if(this.waitForCdnTuneIn(a))return;this.state=di}r&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(t){const{config:e,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=this.getLoadPosition(),s=t.fragmentStart,a=t.edge,o=r>=s-e.maxFragLookUpTolerance&&r<=a;if(null!==i&&n.duration>i&&(r{var t;null==(t=this.hls)||t.trigger(l.AUDIO_TRACK_SWITCHED,e)})),void n.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(l.AUDIO_TRACK_SWITCHED,e)}}onAudioTrackSwitched(t,e){const n=oe(e.url,this.hls);if(n){const t=this.videoBuffer;t&&this.mediaBuffer!==t&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=t)}this.altAudio=n?2:0,this.tick()}onBufferCreated(t,e){const n=e.tracks;let i,r,s=!1;for(const t in n){const e=n[t];if("main"===e.id){if(r=t,i=e,"video"===t){const e=n[t];e&&(this.videoBuffer=e.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,e){const{frag:n,part:i}=e,r=n.type===f;if(r){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===yi&&(this.state=di));const t=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*t.total/(t.buffering.end-t.loading.first)),Y(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}const s=this.media;s&&(!this._hasEnoughToStart&&Ke.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,e){var n;if(e.fatal)this.state=bi;else switch(e.details){case o.FRAG_GAP:case o.FRAG_PARSING_ERROR:case o.FRAG_DECRYPT_ERROR:case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f,e);break;case o.LEVEL_LOAD_ERROR:case o.LEVEL_LOAD_TIMEOUT:case o.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==Ei||(null==(n=e.context)?void 0:n.type)!==h||(this.state=di);break;case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:if("main"!==e.parent)return;this.resetLoadingState();break;case o.BUFFER_FULL_ERROR:if("main"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case o.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}onFragLoadEmergencyAborted(){this.state=di,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:e}){if(e!==H||!this.altAudio){const t=(e===Q?this.videoBuffer:this.mediaBuffer)||this.media;t&&(this.afterBufferFlushed(t,e,f),this.tick())}}onLevelsUpdated(t,e){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=e.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const e=t.currentTime;let n=this.startPosition;if(n>=0&&e0&&(o{const{hls:n}=this,i=null==t?void 0:t.frag;if(!i||this.fragContextChanged(i))return;e.fragmentError=0,this.state=di,this.startFragRequested=!1,this.bitrateTest=!1;const r=i.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),n.trigger(l.FRAG_LOADED,t),i.bitrateTest=!1}))}_handleTransmuxComplete(t){var e;const n=this.playlistType,{hls:r}=this,{remuxResult:s,chunkMeta:a}=t,o=this.getCurrentContext(a);if(!o)return void this.resetWhenMissingContext(a);const{frag:u,part:h,level:c}=o,{video:d,text:f,id3:p,initSegment:g}=s,{details:m}=c,v=this.altAudio?void 0:s.audio;if(this.fragContextChanged(u))this.fragmentTracker.removeFragment(u);else{if(this.state=vi,g){if(null!=g&&g.tracks){const t=u.initSegment||u;this._bufferInitSegment(c,g.tracks,t,a),r.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:n,tracks:g.tracks})}const t=g.initPTS,e=g.timescale;i(t)&&(this.initPTS[u.cc]={baseTime:t,timescale:e},r.trigger(l.INIT_PTS_FOUND,{frag:u,id:n,initPTS:t,timescale:e}))}if(d&&m){v&&"audiovideo"===d.type&&this.logMuxedErr(u);const t=m.fragments[u.sn-1-m.startSN],e=u.sn===m.startSN,n=!t||u.cc>t.cc;if(!1!==s.independent){const{startPTS:t,endPTS:i,startDTS:r,endDTS:s}=d;if(h)h.elementaryStreams[d.type]={startPTS:t,endPTS:i,startDTS:r,endDTS:s};else if(d.firstKeyFrame&&d.independent&&1===a.id&&!n&&(this.couldBacktrack=!0),d.dropped&&d.independent){const r=this.getMainFwdBufferInfo(),a=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,o=d.firstKeyFramePTS?d.firstKeyFramePTS:t;if(!e&&a2&&(u.gap=!0);u.setElementaryStreamInfo(d.type,t,i,r,s),this.backtrackFragment&&(this.backtrackFragment=u),this.bufferFragmentData(d,u,h,a,e||n)}else{if(!e&&!n)return void this.backtrack(u);u.gap=!0}}if(v){const{startPTS:t,endPTS:e,startDTS:n,endDTS:i}=v;h&&(h.elementaryStreams[H]={startPTS:t,endPTS:e,startDTS:n,endDTS:i}),u.setElementaryStreamInfo(H,t,e,n,i),this.bufferFragmentData(v,u,h,a)}if(m&&null!=p&&null!=(e=p.samples)&&e.length){const t={id:n,frag:u,details:m,samples:p.samples};r.trigger(l.FRAG_PARSING_METADATA,t)}if(m&&f){const t={id:n,frag:u,details:m,samples:f.samples};r.trigger(l.FRAG_PARSING_USERDATA,t)}}}logMuxedErr(t){this.warn(`${Y(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,e,n,i){if(this.state!==vi)return;this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&(delete e.audio,e.audiovideo&&this.logMuxedErr(n));const{audio:r,video:s,audiovideo:a}=e;if(r){let n=Ot(r.codec,t.audioCodec);"mp4a"===n&&(n="mp4a.40.5");const i=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){n&&(n=-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const t=r.metadata;t&&"channelCount"in t&&1!==(t.channelCount||1)&&-1===i.indexOf("firefox")&&(n="mp4a.40.5")}n&&-1!==n.indexOf("mp4a.40.5")&&-1!==i.indexOf("android")&&"audio/mpeg"!==r.container&&(n="mp4a.40.2",this.log(`Android: force audio codec to ${n}`)),t.audioCodec&&t.audioCodec!==n&&this.log(`Swapping manifest audio codec "${t.audioCodec}" for "${n}"`),r.levelCodec=n,r.id=f,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${n||""}/${t.audioCodec||""}/${r.codec}]`),delete e.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=f;const n=s.codec;if(4===(null==n?void 0:n.length))switch(n){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e"}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${n}]${s.codec!==n?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete e.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${t.codecs}/${a.codec}]`),delete e.video,delete e.audio);const o=Object.keys(e);if(o.length){if(this.hls.trigger(l.BUFFER_CODECS,e),!this.hls)return;o.forEach((t=>{const r=e[t].initSegment;null!=r&&r.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:t,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,f)}get maxBufferLength(){const{levels:t,level:e}=this,n=null==t?void 0:t[e];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=di}checkFragmentChanged(){const t=this.media;let e=null;if(t&&t.readyState>1&&!1===t.seeking){const n=t.currentTime;if(Ke.isBuffered(t,n)?e=this.getAppendedFrag(n):Ke.isBuffered(t,n+.1)&&(e=this.getAppendedFrag(n+.1)),e){this.backtrackFragment=null;const t=this.fragPlaying,n=e.level;t&&e.sn===t.sn&&t.level===n||(this.fragPlaying=e,this.hls.trigger(l.FRAG_CHANGED,{frag:e}),t&&t.level===n||this.hls.trigger(l.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const e=(null==(t=this.media)?void 0:t.currentTime)||this.lastCurrentTime;return i(e)?this.getAppendedFrag(e):null}get currentProgramDateTime(){var t;const e=(null==(t=this.media)?void 0:t.currentTime)||this.lastCurrentTime;if(i(e)){const t=this.getLevelDetails(),n=this.currentFrag||(t?ue(null,t.fragments,e):null);if(n){const t=n.programDateTime;if(null!==t){const i=t+1e3*(e-n.start);return new Date(i)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class Io{constructor(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const n in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[n].loader;if(i){var e;if(t&&t!==(null==(e=i.context)?void 0:e.frag.type))return;i.abort()}}}detach(){for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(t,e=o.KEY_LOAD_ERROR,n,i,r){return new Qe({type:a.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:r,error:n,networkDetails:i})}loadClear(t,e){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length)if(e.length){const{sn:n,cc:i}=t;for(let t=0;t{if(r.setKeyFormat(t),this.emeController&&this.config.requireKeySystemAccessOnStart){const e=yn(t);if(e)return this.emeController.getKeySystemAccess([e])}}))}}else if(this.config.requireKeySystemAccessOnStart){const t=Tn(this.config);if(t.length)return this.emeController.getKeySystemAccess(t)}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then((e=>this.loadInternal(t,e))):this.loadInternal(t)}loadInternal(t,e){var n,i;e&&t.setKeyFormat(e);const r=t.decryptdata;if(!r){const n=new Error(e?`Expected frag.decryptdata to be defined after setting format ${e}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,n))}const s=r.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let a=this.keyUriToKeyInfo[s];if(null!=(n=a)&&n.decryptdata.key)return r.key=a.decryptdata.key,Promise.resolve({frag:t,keyInfo:a});var l;if(null!=(i=a)&&i.keyLoadPromise)switch(null==(l=a.mediaKeySessionContext)?void 0:l.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return a.keyLoadPromise.then((e=>(r.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:a})))}switch(a=this.keyUriToKeyInfo[s]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(a,t):this.loadKeyEME(a,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(a,t);default:return Promise.reject(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(t,e){const n={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){const e=this.emeController.loadKey(n);if(e)return(t.keyLoadPromise=e.then((e=>(t.mediaKeySessionContext=e,n)))).catch((e=>{throw t.keyLoadPromise=null,e}))}return Promise.resolve(n)}loadKeyHTTP(t,e){const n=this.config,i=new(0,n.loader)(n);return e.keyLoader=t.loader=i,t.keyLoadPromise=new Promise(((r,s)=>{const a={keyInfo:t,frag:e,responseType:"arraybuffer",url:t.decryptdata.uri},l=n.keyLoadPolicy.default,u={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(t,e,n,i)=>{const{frag:a,keyInfo:l,url:u}=n;if(!a.decryptdata||l!==this.keyUriToKeyInfo[u])return s(this.createKeyLoadError(a,o.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));l.decryptdata.key=a.decryptdata.key=new Uint8Array(t.data),a.keyLoader=null,l.loader=null,r({frag:a,keyInfo:l})},onError:(t,n,i,r)=>{this.resetLoader(n),s(this.createKeyLoadError(e,o.KEY_LOAD_ERROR,new Error(`HTTP Error ${t.code} loading key ${t.text}`),i,w({url:a.url,data:void 0},t)))},onTimeout:(t,n,i)=>{this.resetLoader(n),s(this.createKeyLoadError(e,o.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(t,n,i)=>{this.resetLoader(n),s(this.createKeyLoadError(e,o.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(a,u,h)}))}resetLoader(t){const{frag:e,keyInfo:n,url:i}=t,r=n.loader;e.keyLoader===r&&(e.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}function Ro(t){const{type:e}=t;switch(e){case c:return p;case d:return g;default:return f}}function Lo(t,e){let n=t.url;return void 0!==n&&0!==n.indexOf("data:")||(n=e.url),n}class Bo{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(l.MANIFEST_LOADING,this.onManifestLoading,this),t.on(l.LEVEL_LOADING,this.onLevelLoading,this),t.on(l.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(l.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(l.MANIFEST_LOADING,this.onManifestLoading,this),t.off(l.LEVEL_LOADING,this.onLevelLoading,this),t.off(l.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(l.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const e=this.hls.config,n=e.pLoader,i=e.loader,r=new(n||i)(e);return this.loaders[t.type]=r,r}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,e){const{url:n}=e;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:u,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,e){const{id:n,level:i,pathwayId:r,url:s,deliveryDirectives:a,levelInfo:o}=e;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:h,url:s,deliveryDirectives:a,levelOrTrack:o})}onAudioTrackLoading(t,e){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:a}=e;this.load({id:n,groupId:i,level:null,responseType:"text",type:c,url:r,deliveryDirectives:s,levelOrTrack:a})}onSubtitleTrackLoading(t,e){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:a}=e;this.load({id:n,groupId:i,level:null,responseType:"text",type:d,url:r,deliveryDirectives:s,levelOrTrack:a})}onLevelsUpdated(t,e){const n=this.loaders[h];if(n){const t=n.context;t&&!e.levels.some((e=>e===t.levelOrTrack))&&(n.abort(),delete this.loaders[h])}}load(t){var e;const n=this.hls.config;let r,s=this.getInternalLoader(t);if(s){const e=this.hls.logger,n=s.context;if(n&&n.levelOrTrack===t.levelOrTrack&&(n.url===t.url||n.deliveryDirectives&&!t.deliveryDirectives))return void(n.url===t.url?e.log(`[playlist-loader]: ignore ${t.url} ongoing request`):e.log(`[playlist-loader]: ignore ${t.url} in favor of ${n.url}`));e.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),s.abort()}if(r=t.type===u?n.manifestLoadPolicy.default:A({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),i(null==(e=t.deliveryDirectives)?void 0:e.part)){let e;if(t.type===h&&null!==t.level?e=this.hls.levels[t.level].details:t.type===c&&null!==t.id?e=this.hls.audioTracks[t.id].details:t.type===d&&null!==t.id&&(e=this.hls.subtitleTracks[t.id].details),e){const t=e.partTarget,n=e.targetduration;if(t&&n){const e=1e3*Math.max(3*t,.8*n);r=A({},r,{maxTimeToFirstByteMs:Math.min(e,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(e,r.maxTimeToFirstByteMs)})}}}const a=r.errorRetry||r.timeoutRetry||{},o={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(t,e,n,i)=>{const r=this.getInternalLoader(n);this.resetInternalLoader(n.type);const s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),Nn.isMediaPlaylist(s)||n.type!==u?this.handleTrackOrLevelPlaylist(t,e,n,i||null,r):this.handleMasterPlaylist(t,e,n,i)):this.handleManifestParsingError(t,n,new Error("no EXTM3U delimiter"),i||null,e)},onError:(t,e,n,i)=>{this.handleNetworkError(e,n,!1,t,i)},onTimeout:(t,e,n)=>{this.handleNetworkError(e,n,!0,void 0,t)}};s.load(t,o,l)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:e},forceStartLoad:n}=this.hls;(t||n)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${e}`),this.hls.startLoad(e))}handleMasterPlaylist(t,e,n,i){const r=this.hls,s=t.data,a=Lo(t,n),o=Nn.parseMasterPlaylist(s,a);if(o.playlistParsingError)return void this.handleManifestParsingError(t,n,o.playlistParsingError,i,e);const{contentSteering:u,levels:h,sessionData:c,sessionKeys:d,startTimeOffset:f,variableList:p}=o;this.variableList=p;const{AUDIO:g=[],SUBTITLES:m,"CLOSED-CAPTIONS":v}=Nn.parseMasterPlaylistMedia(s,a,o);if(g.length){g.some((t=>!t.url))||!h[0].audioCodec||h[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new nn({}),bitrate:0,url:""}))}r.trigger(l.MANIFEST_LOADED,{levels:h,audioTracks:g,subtitles:m,captions:v,contentSteering:u,url:a,stats:e,networkDetails:i,sessionData:c,sessionKeys:d,startTimeOffset:f,variableList:p})}handleTrackOrLevelPlaylist(t,e,n,r,s){const a=this.hls,{id:o,level:h,type:c}=n,d=Lo(t,n),f=i(h)?h:i(o)?o:0,p=Ro(n),g=Nn.parseLevelPlaylist(t.data,d,f,p,0,this.variableList);if(c===u){const t={attrs:new nn({}),bitrate:0,details:g,name:"",url:d};g.requestScheduled=e.loading.start+ti(g,0),a.trigger(l.MANIFEST_LOADED,{levels:[t],audioTracks:[],url:d,stats:e,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),n.levelDetails=g,this.handlePlaylistLoaded(g,t,e,n,r,s)}handleManifestParsingError(t,e,n,i,r){this.hls.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.MANIFEST_PARSING_ERROR,fatal:e.type===u,url:t.url,err:n,error:n,reason:n.message,response:t,context:e,networkDetails:i,stats:r})}handleNetworkError(t,e,n=!1,i,r){let s=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===h?s+=`: ${t.level} id: ${t.id}`:t.type!==c&&t.type!==d||(s+=` id: ${t.id} group-id: "${t.groupId}"`);const f=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let p=o.UNKNOWN,g=!1;const m=this.getInternalLoader(t);switch(t.type){case u:p=n?o.MANIFEST_LOAD_TIMEOUT:o.MANIFEST_LOAD_ERROR,g=!0;break;case h:p=n?o.LEVEL_LOAD_TIMEOUT:o.LEVEL_LOAD_ERROR,g=!1;break;case c:p=n?o.AUDIO_TRACK_LOAD_TIMEOUT:o.AUDIO_TRACK_LOAD_ERROR,g=!1;break;case d:p=n?o.SUBTITLE_TRACK_LOAD_TIMEOUT:o.SUBTITLE_LOAD_ERROR,g=!1}m&&this.resetInternalLoader(t.type);const v={type:a.NETWORK_ERROR,details:p,fatal:g,url:t.url,loader:m,context:t,error:f,networkDetails:e,stats:r};if(i){const n=(null==e?void 0:e.url)||t.url;v.response=w({url:n,data:void 0},i)}this.hls.trigger(l.ERROR,v)}handlePlaylistLoaded(t,e,n,i,r,s){const p=this.hls,{type:g,level:m,id:v,groupId:y,deliveryDirectives:A}=i,b=Lo(e,i),w=Ro(i),E="number"==typeof i.level&&w===f?m:void 0;if(!t.fragments.length){const s=t.playlistParsingError=new Error("No Segments found in Playlist");return void p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_EMPTY_ERROR,fatal:!1,url:b,error:s,reason:s.message,response:e,context:i,level:E,parent:w,networkDetails:r,stats:n})}t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));const x=t.playlistParsingError;if(x){if(this.hls.logger.warn(x),!p.config.ignorePlaylistParsingErrors)return void p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:b,error:x,reason:x.message,response:e,context:i,level:E,parent:w,networkDetails:r,stats:n});t.playlistParsingError=null}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),s.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),g){case u:case h:p.trigger(l.LEVEL_LOADED,{details:t,levelInfo:i.levelOrTrack||p.levels[0],level:E||0,id:v||0,stats:n,networkDetails:r,deliveryDirectives:A,withoutMultiVariant:g===u});break;case c:p.trigger(l.AUDIO_TRACK_LOADED,{details:t,track:i.levelOrTrack,id:v||0,groupId:y||"",stats:n,networkDetails:r,deliveryDirectives:A});break;case d:p.trigger(l.SUBTITLE_TRACK_LOADED,{details:t,track:i.levelOrTrack,id:v||0,groupId:y||"",stats:n,networkDetails:r,deliveryDirectives:A})}}}class Po{static get version(){return Ri}static isMSESupported(){return Do()}static isSupported(){return function(){if(!Do())return!1;const t=I();return"function"==typeof(null==t?void 0:t.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((e=>t.isTypeSupported(St(e,"video"))))||["mp4a.40.2","fLaC"].some((e=>t.isTypeSupported(St(e,"audio")))))}()}static getMediaSource(){return I()}static get Events(){return l}static get MetadataSchema(){return $i}static get ErrorTypes(){return a}static get ErrorDetails(){return o}static get DefaultConfig(){return Po.defaultConfig?Po.defaultConfig:fo}static set DefaultConfig(t){Po.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Ii,this._autoLevelCapping=-1,this._maxHdcpLevel=null,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.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const e=this.logger=function(t,e,n){const i=T();if("object"==typeof console&&!0===t||"object"==typeof t){const r=["debug","log","info","warn","error"];r.forEach((e=>{i[e]=C(e,t,n)}));try{i.log(`Debug logs enabled for "${e}" in hls.js version 1.6.5`)}catch(t){return T()}r.forEach((e=>{D[e]=C(e,t)}))}else A(D,i);return i}(t.debug||!1,"Hls instance",t.assetPlayerId),n=this.config=function(t,e,n){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const i=po(t),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((t=>{const s=`${"level"===t?"playlist":t}LoadPolicy`,a=void 0===e[s],o=[];r.forEach((n=>{const r=`${t}Loading${n}`,l=e[r];if(void 0!==l&&a){o.push(r);const t=i[s].default;switch(e[s]={default:t},n){case"TimeOut":t.maxLoadTimeMs=l,t.maxTimeToFirstByteMs=l;break;case"MaxRetry":t.errorRetry.maxNumRetry=l,t.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":t.errorRetry.retryDelayMs=l,t.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":t.errorRetry.maxRetryDelayMs=l,t.timeoutRetry.maxRetryDelayMs=l}}})),o.length&&n.warn(`hls.js config: "${o.join('", "')}" setting(s) are deprecated, use "${s}": ${$t(e[s])}`)})),w(w({},i),e)}(Po.DefaultConfig,t,e);this.userConfig=t,n.progressive&&go(n,e);const{abrController:i,bufferController:r,capLevelController:s,errorController:a,fpsController:o}=n,u=new a(this),h=this.abrController=new i(this),c=new Re(this),d=n.interstitialsController,f=d?this.interstitialsController=new d(this,Po):null,p=this.bufferController=new r(this,c),g=this.capLevelController=new s(this),m=new o(this),v=new Bo(this),y=n.contentSteeringController,b=y?new y(this):null,E=this.levelController=new ko(this,b),x=new Eo(this),k=new Io(this.config),S=this.streamController=new So(this,c,k),I=this.gapController=new mo(this,c);g.setStreamController(S),m.setStreamController(S);const R=[v,E,S];f&&R.splice(1,0,f),b&&R.splice(1,0,b),this.networkControllers=R;const L=[h,p,I,g,m,x,c];this.audioTrackController=this.createController(n.audioTrackController,R);const B=n.audioStreamController;B&&R.push(this.audioStreamController=new B(this,c,k)),this.subtitleTrackController=this.createController(n.subtitleTrackController,R);const P=n.subtitleStreamController;P&&R.push(this.subtititleStreamController=new P(this,c,k)),this.createController(n.timelineController,L),k.emeController=this.emeController=this.createController(n.emeController,L),this.cmcdController=this.createController(n.cmcdController,L),this.latencyController=this.createController(xo,L),this.coreComponents=L,R.push(u);const O=u.onErrorOut;"function"==typeof O&&this.on(l.ERROR,O,u),this.on(l.MANIFEST_LOADED,v.onManifestLoaded,v)}createController(t,e){if(t){const n=new t(this);return e&&e.push(n),n}return null}on(t,e,n=this){this._emitter.on(t,e,n)}once(t,e,n=this){this._emitter.once(t,e,n)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,e,n=this,i){this._emitter.off(t,e,n,i)}listeners(t){return this._emitter.listeners(t)}emit(t,e,n){return this._emitter.emit(t,e,n)}trigger(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),!this.triggeringException){this.triggeringException=!0;const n=t===l.ERROR;this.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,fatal:n,event:t,error:e}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((t=>t.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((t=>t.destroy())),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const e=new Error(`attachMedia failed: invalid argument (${t})`);return void this.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.ATTACH_MEDIA_ERROR,fatal:!0,error:e})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const e="media"in t,n=e?t.media:t,i=e?t:{media:n};this._media=n,this.trigger(l.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(l.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const e=this.media,n=this._url,i=this._url=j.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),e&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(l.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,e){this.logger.log(`startLoad(${t+(e?", ":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n{t.resumeBuffering&&t.resumeBuffering()})))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((t=>{t.pauseBuffering&&t.pauseBuffering()})))}get inFlightFragments(){const t={[f]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[p]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[g]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,e=null==t?void 0:t.currentTime;this.detachMedia(),t&&(this.attachMedia(t),e&&this.startLoad(e))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=function(){try{return crypto.randomUUID()}catch(t){try{const t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch(t){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}}}()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return-1===t&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){(function(t){return Ht.indexOf(t)>-1})(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:e}}=this;if(!t)return 0;const n=t.length;for(let i=0;i=e)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:e,maxHdcpLevel:n}=this;let i;if(i=-1===e&&null!=t&&t.length?t.length-1:e,n)for(let e=i;e--;){const i=t[e].attrs["HDCP-LEVEL"];if(i&&i<=n)return e}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var e;return(null==(e=this.audioTrackController)?void 0:e.setAudioOption(t))||null}setSubtitleOption(t){var e;return(null==(e=this.subtitleTrackController)?void 0:e.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const e=this.audioTrackController;e&&(e.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}set subtitleDisplay(t){const e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!(null==(t=this.bufferController)||!t.bufferedToEnd)}get interstitialsManager(){var t;return(null==(t=this.interstitialsController)?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,e=this.allAudioTracks){return Gt(t,ee(e),navigator.mediaCapabilities)}}Po.defaultConfig=void 0}}]);
      \ No newline at end of file
      diff --git a/p__SmartResources__index.27af236f.async.js b/p__SmartResources__index.27af236f.async.js
      deleted file mode 100644
      index fdc6871fb7..0000000000
      --- a/p__SmartResources__index.27af236f.async.js
      +++ /dev/null
      @@ -1 +0,0 @@
      -(self.webpackChunk=self.webpackChunk||[]).push([[1346],{40001:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},84105:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},18785:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},15277:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},33853:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},12893:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},38819:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},47472:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},35593:function(t,e,n){"use strict";n.d(e,{Z:function(){return X}});var i=n(20439),r=n(50298),o=n(62646),a=n(43403),s=n(92310),l=n.n(s),u=n(29301),c=n(76846),h=n(96452),d=n(6089),f=n(80402),p=n(34280),g=n(49658),m=n(59301),v=n(14809),y=n(77900),w=n(8654);function b(t){var e=t.prefixCls,n=t.align,i=t.arrow,r=t.arrowPos,o=i||{},a=o.className,s=o.content,u=r.x,c=void 0===u?0:u,h=r.y,d=void 0===h?0:h,f=m.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],y=g[0],w=g[1],b=v[0],x=v[1];y!==b&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=d,w!==x&&["l","r"].includes(w)?"l"===w?p.left=0:p.right=0:p.left=c}return m.createElement("div",{ref:f,className:l()("".concat(e,"-arrow"),a),style:p},s)}function x(t){var e=t.prefixCls,n=t.open,i=t.zIndex,r=t.mask,o=t.motion;return r?m.createElement(y.ZP,(0,v.Z)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return m.createElement("div",{style:{zIndex:i},className:l()("".concat(e,"-mask"),n)})})):null}var S=m.memo((function(t){return t.children}),(function(t,e){return e.cache}));var P=m.forwardRef((function(t,e){var n=t.popup,o=t.className,a=t.prefixCls,s=t.style,c=t.target,h=t.onVisibleChanged,d=t.open,f=t.keepDom,g=t.fresh,P=t.onClick,k=t.mask,C=t.arrow,A=t.arrowPos,M=t.align,E=t.motion,L=t.maskMotion,T=t.forceRender,N=t.getPopupContainer,j=t.autoDestroy,I=t.portal,B=t.zIndex,O=t.onMouseEnter,D=t.onMouseLeave,R=t.onPointerEnter,F=t.ready,z=t.offsetX,G=t.offsetY,U=t.offsetR,H=t.offsetB,_=t.onAlign,Z=t.onPrepare,W=t.stretch,V=t.targetWidth,Y=t.targetHeight,X="function"==typeof n?n():n,q=d||f,K=(null==N?void 0:N.length)>0,Q=m.useState(!N||!K),J=(0,r.Z)(Q,2),$=J[0],tt=J[1];if((0,p.Z)((function(){!$&&K&&c&&tt(!0)}),[$,K,c]),!$)return null;var et="auto",nt={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!d){var it,rt=M.points,ot=M.dynamicInset||(null===(it=M._experimental)||void 0===it?void 0:it.dynamicInset),at=ot&&"r"===rt[0][1],st=ot&&"b"===rt[0][0];at?(nt.right=U,nt.left=et):(nt.left=z,nt.right=et),st?(nt.bottom=H,nt.top=et):(nt.top=G,nt.bottom=et)}var lt={};return W&&(W.includes("height")&&Y?lt.height=Y:W.includes("minHeight")&&Y&&(lt.minHeight=Y),W.includes("width")&&V?lt.width=V:W.includes("minWidth")&&V&&(lt.minWidth=V)),d||(lt.pointerEvents="none"),m.createElement(I,{open:T||q,getContainer:N&&function(){return N(c)},autoDestroy:j},m.createElement(x,{prefixCls:a,open:d,zIndex:B,mask:k,motion:L}),m.createElement(u.Z,{onResize:_,disabled:!d},(function(t){return m.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(a,"-hidden")},E,{onAppearPrepare:Z,onEnterPrepare:Z,visible:d,onVisibleChanged:function(t){var e;null==E||null===(e=E.onVisibleChanged)||void 0===e||e.call(E,t),h(t)}}),(function(n,r){var u=n.className,c=n.style,h=l()(a,u,o);return m.createElement("div",{ref:(0,w.sQ)(t,e,r),className:h,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(A.x||0,"px"),"--arrow-y":"".concat(A.y||0,"px")},nt),lt),c),{},{boxSizing:"border-box",zIndex:B},s),onMouseEnter:O,onMouseLeave:D,onPointerEnter:R,onClick:P},C&&m.createElement(b,{prefixCls:a,arrow:C,arrowPos:A,align:M}),m.createElement(S,{cache:!d&&!g},X))}))})))}));var k=m.forwardRef((function(t,e){var n=t.children,i=t.getTriggerDOMNode,r=(0,w.Yr)(n),o=m.useCallback((function(t){(0,w.mH)(e,i?i(t):t)}),[i]),a=(0,w.x1)(o,n.ref);return r?m.cloneElement(n,{ref:a}):n})),C=m.createContext(null);function A(t){return t?Array.isArray(t)?t:[t]:[]}function M(t,e,n,i){return m.useMemo((function(){var r=A(null!=n?n:e),o=A(null!=i?i:e),a=new Set(r),s=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,e,n,i])}var E=n(29194);function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function T(t,e,n,i){for(var r=n.points,o=Object.keys(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function O(t){return B(parseFloat(t),0)}function D(t,e){var n=(0,i.Z)({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=j(t).getComputedStyle(t),i=e.overflow,r=e.overflowClipMargin,o=e.borderTopWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,l=e.borderRightWidth,u=t.getBoundingClientRect(),c=t.offsetHeight,h=t.clientHeight,d=t.offsetWidth,f=t.clientWidth,p=O(o),g=O(a),m=O(s),v=O(l),y=B(Math.round(u.width/d*1e3)/1e3),w=B(Math.round(u.height/c*1e3)/1e3),b=(d-f-m-v)*y,x=(c-h-p-g)*w,S=p*w,P=g*w,k=m*y,C=v*y,A=0,M=0;if("clip"===i){var E=O(r);A=E*y,M=E*w}var L=u.x+k-A,T=u.y+S-M,N=L+u.width+2*A-k-C-b,I=T+u.height+2*M-S-P-x;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,I)}})),n}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),i=n.match(/^(.*)\%$/);return i?t*(parseFloat(i[1])/100):parseFloat(n)}function F(t,e){var n=e||[],i=(0,r.Z)(n,2),o=i[0],a=i[1];return[R(t.width,o),R(t.height,a)]}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function G(t,e){var n,i=e[0],r=e[1];return n="t"===i?t.y:"b"===i?t.y+t.height:t.y+t.height/2,{x:"l"===r?t.x:"r"===r?t.x+t.width:t.x+t.width/2,y:n}}function U(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,i){return i===e?n[t]||"c":t})).join("")}function H(t,e,n,o,a,s,l){var u=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),h=(0,r.Z)(u,2),f=h[0],g=h[1],v=m.useRef(0),y=m.useMemo((function(){return e?I(e):[]}),[e]),w=m.useRef({});t||(w.current={});var b=(0,d.Z)((function(){if(e&&n&&t){var u,h,d,f=e,p=f.ownerDocument,m=j(f).getComputedStyle(f),v=m.width,b=m.height,x=m.position,S=f.style.left,P=f.style.top,k=f.style.right,C=f.style.bottom,A=f.style.overflow,M=(0,i.Z)((0,i.Z)({},a[o]),s),L=p.createElement("div");if(null===(u=f.parentElement)||void 0===u||u.appendChild(L),L.style.left="".concat(f.offsetLeft,"px"),L.style.top="".concat(f.offsetTop,"px"),L.style.position=x,L.style.height="".concat(f.offsetHeight,"px"),L.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var T=n.getBoundingClientRect();d={x:T.x,y:T.y,width:T.width,height:T.height}}var N=f.getBoundingClientRect(),I=p.documentElement,O=I.clientWidth,R=I.clientHeight,H=I.scrollWidth,_=I.scrollHeight,Z=I.scrollTop,W=I.scrollLeft,V=N.height,Y=N.width,X=d.height,q=d.width,K={left:0,top:0,right:O,bottom:R},Q={left:-W,top:-Z,right:H-W,bottom:_-Z},J=M.htmlRegion,$="visible",tt="visibleFirst";"scroll"!==J&&J!==tt&&(J=$);var et=J===tt,nt=D(Q,y),it=D(K,y),rt=J===$?it:nt,ot=et?it:rt;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var at=f.getBoundingClientRect();f.style.left=S,f.style.top=P,f.style.right=k,f.style.bottom=C,f.style.overflow=A,null===(h=f.parentElement)||void 0===h||h.removeChild(L);var st=B(Math.round(Y/parseFloat(v)*1e3)/1e3),lt=B(Math.round(V/parseFloat(b)*1e3)/1e3);if(0===st||0===lt||(0,c.Sh)(n)&&!(0,E.Z)(n))return;var ut=M.offset,ct=M.targetOffset,ht=F(N,ut),dt=(0,r.Z)(ht,2),ft=dt[0],pt=dt[1],gt=F(d,ct),mt=(0,r.Z)(gt,2),vt=mt[0],yt=mt[1];d.x-=vt,d.y-=yt;var wt=M.points||[],bt=(0,r.Z)(wt,2),xt=bt[0],St=z(bt[1]),Pt=z(xt),kt=G(d,St),Ct=G(N,Pt),At=(0,i.Z)({},M),Mt=kt.x-Ct.x+ft,Et=kt.y-Ct.y+pt;function xe(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt,i=N.x+t,r=N.y+e,o=i+Y,a=r+V,s=Math.max(i,n.left),l=Math.max(r,n.top),u=Math.min(o,n.right),c=Math.min(a,n.bottom);return Math.max(0,(u-s)*(c-l))}var Lt,Tt,Nt,jt,It=xe(Mt,Et),Bt=xe(Mt,Et,it),Ot=G(d,["t","l"]),Dt=G(N,["t","l"]),Rt=G(d,["b","r"]),Ft=G(N,["b","r"]),zt=M.overflow||{},Gt=zt.adjustX,Ut=zt.adjustY,Ht=zt.shiftX,_t=zt.shiftY,Zt=function(t){return"boolean"==typeof t?t:t>=0};function Se(){Lt=N.y+Et,Tt=Lt+V,Nt=N.x+Mt,jt=Nt+Y}Se();var Wt=Zt(Ut),Vt=Pt[0]===St[0];if(Wt&&"t"===Pt[0]&&(Tt>ot.bottom||w.current.bt)){var Yt=Et;Vt?Yt-=V-X:Yt=Ot.y-Ft.y-pt;var Xt=xe(Mt,Yt),qt=xe(Mt,Yt,it);Xt>It||Xt===It&&(!et||qt>=Bt)?(w.current.bt=!0,Et=Yt,pt=-pt,At.points=[U(Pt,0),U(St,0)]):w.current.bt=!1}if(Wt&&"b"===Pt[0]&&(LtIt||Qt===It&&(!et||Jt>=Bt)?(w.current.tb=!0,Et=Kt,pt=-pt,At.points=[U(Pt,0),U(St,0)]):w.current.tb=!1}var $t=Zt(Gt),te=Pt[1]===St[1];if($t&&"l"===Pt[1]&&(jt>ot.right||w.current.rl)){var ee=Mt;te?ee-=Y-q:ee=Ot.x-Ft.x-ft;var ne=xe(ee,Et),ie=xe(ee,Et,it);ne>It||ne===It&&(!et||ie>=Bt)?(w.current.rl=!0,Mt=ee,ft=-ft,At.points=[U(Pt,1),U(St,1)]):w.current.rl=!1}if($t&&"r"===Pt[1]&&(NtIt||oe===It&&(!et||ae>=Bt)?(w.current.lr=!0,Mt=re,ft=-ft,At.points=[U(Pt,1),U(St,1)]):w.current.lr=!1}Se();var se=!0===Ht?0:Ht;"number"==typeof se&&(Ntit.right&&(Mt-=jt-it.right-ft,d.x>it.right-se&&(Mt+=d.x-it.right+se)));var le=!0===_t?0:_t;"number"==typeof le&&(Ltit.bottom&&(Et-=Tt-it.bottom-pt,d.y>it.bottom-le&&(Et+=d.y-it.bottom+le)));var ue=N.x+Mt,ce=ue+Y,he=N.y+Et,de=he+V,fe=d.x,pe=fe+q,ge=d.y,me=ge+X,ve=(Math.max(ue,fe)+Math.min(ce,pe))/2-ue,ye=(Math.max(he,ge)+Math.min(de,me))/2-he;null==l||l(e,At);var we=at.right-N.x-(Mt+N.width),be=at.bottom-N.y-(Et+N.height);g({ready:!0,offsetX:Mt/st,offsetY:Et/lt,offsetR:we/st,offsetB:be/lt,arrowX:ve/st,arrowY:ye/lt,scaleX:st,scaleY:lt,align:At})}})),x=function(){g((function(t){return(0,i.Z)((0,i.Z)({},t),{},{ready:!1})}))};return(0,p.Z)(x,[o]),(0,p.Z)((function(){t||x()}),[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var t=v.current;Promise.resolve().then((function(){v.current===t&&b()}))}]}var _=n(95190);function Z(t,e,n,i,r){(0,p.Z)((function(){if(t&&e&&n){var o=n,a=I(e),s=I(o),l=j(o),u=new Set([l].concat((0,_.Z)(a),(0,_.Z)(s)));function c(){i(),r()}return u.forEach((function(t){t.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),i(),function(){u.forEach((function(t){t.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[t,e,n])}n(48736);var W=n(16089);function V(t,e,n,i,o,a,s,l){var u=m.useRef(t),c=m.useRef(!1);u.current!==t&&(c.current=!0,u.current=t),m.useEffect((function(){var t=(0,W.Z)((function(){c.current=!1}));return function(){W.Z.cancel(t)}}),[t]),m.useEffect((function(){if(e&&i&&(!o||a)){var t=function(){var t=!1;return[function(e){var n=e.target;t=s(n)},function(e){var n=e.target;c.current||!u.current||t||s(n)||l(!1)}]},d=t(),f=(0,r.Z)(d,2),p=f[0],g=f[1],m=t(),v=(0,r.Z)(m,2),y=v[0],w=v[1],b=j(i);b.addEventListener("mousedown",p,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0);var x=(0,h.A)(n);return x&&(x.addEventListener("mousedown",y,!0),x.addEventListener("click",w,!0),x.addEventListener("contextmenu",w,!0)),function(){b.removeEventListener("mousedown",p,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0),x&&(x.removeEventListener("mousedown",y,!0),x.removeEventListener("click",w,!0),x.removeEventListener("contextmenu",w,!0))}}}),[e,n,i,o,a])}var Y=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var X=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,e=m.forwardRef((function(e,n){var a=e.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=e.children,y=e.action,w=void 0===y?"hover":y,b=e.showAction,x=e.hideAction,S=e.popupVisible,A=e.defaultPopupVisible,E=e.onPopupVisibleChange,L=e.afterPopupVisibleChange,j=e.mouseEnterDelay,I=e.mouseLeaveDelay,B=void 0===I?.1:I,O=e.focusDelay,D=e.blurDelay,R=e.mask,F=e.maskClosable,z=void 0===F||F,G=e.getPopupContainer,U=e.forceRender,_=e.autoDestroy,W=e.destroyPopupOnHide,X=e.popup,q=e.popupClassName,K=e.popupStyle,Q=e.popupPlacement,J=e.builtinPlacements,$=void 0===J?{}:J,tt=e.popupAlign,et=e.zIndex,nt=e.stretch,it=e.getPopupClassNameFromAlign,rt=e.fresh,ot=e.alignPoint,at=e.onPopupClick,st=e.onPopupAlign,lt=e.arrow,ut=e.popupMotion,ct=e.maskMotion,ht=e.popupTransitionName,dt=e.popupAnimation,ft=e.maskTransitionName,pt=e.maskAnimation,gt=e.className,mt=e.getTriggerDOMNode,vt=(0,o.Z)(e,Y),yt=_||W||!1,wt=m.useState(!1),bt=(0,r.Z)(wt,2),xt=bt[0],St=bt[1];(0,p.Z)((function(){St((0,g.Z)())}),[]);var Pt=m.useRef({}),kt=m.useContext(C),Ct=m.useMemo((function(){return{registerSubPopup:function(t,e){Pt.current[t]=e,null==kt||kt.registerSubPopup(t,e)}}}),[kt]),At=(0,f.Z)(),Mt=m.useState(null),Et=(0,r.Z)(Mt,2),Lt=Et[0],Tt=Et[1],Nt=(0,d.Z)((function(t){(0,c.Sh)(t)&&Lt!==t&&Tt(t),null==kt||kt.registerSubPopup(At,t)})),jt=m.useState(null),It=(0,r.Z)(jt,2),Bt=It[0],Ot=It[1],Dt=m.useRef(null),Rt=(0,d.Z)((function(t){(0,c.Sh)(t)&&Bt!==t&&(Ot(t),Dt.current=t)})),Ft=m.Children.only(v),zt=(null==Ft?void 0:Ft.props)||{},Gt={},Ut=(0,d.Z)((function(t){var e,n,i=Bt;return(null==i?void 0:i.contains(t))||(null===(e=(0,h.A)(i))||void 0===e?void 0:e.host)===t||t===i||(null==Lt?void 0:Lt.contains(t))||(null===(n=(0,h.A)(Lt))||void 0===n?void 0:n.host)===t||t===Lt||Object.values(Pt.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),Ht=N(s,ut,dt,ht),_t=N(s,ct,pt,ft),Zt=m.useState(A||!1),Wt=(0,r.Z)(Zt,2),Vt=Wt[0],Yt=Wt[1],Xt=null!=S?S:Vt,qt=(0,d.Z)((function(t){void 0===S&&Yt(t)}));(0,p.Z)((function(){Yt(S||!1)}),[S]);var Kt=m.useRef(Xt);Kt.current=Xt;var Qt=m.useRef([]);Qt.current=[];var Jt=(0,d.Z)((function(t){var e;qt(t),(null!==(e=Qt.current[Qt.current.length-1])&&void 0!==e?e:Xt)!==t&&(Qt.current.push(t),null==E||E(t))})),$t=m.useRef(),te=function(){clearTimeout($t.current)},ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;te(),0===e?Jt(t):$t.current=setTimeout((function(){Jt(t)}),1e3*e)};m.useEffect((function(){return te}),[]);var ne=m.useState(!1),ie=(0,r.Z)(ne,2),re=ie[0],oe=ie[1];(0,p.Z)((function(t){t&&!Xt||oe(!0)}),[Xt]);var ae=m.useState(null),se=(0,r.Z)(ae,2),le=se[0],ue=se[1],ce=m.useState([0,0]),he=(0,r.Z)(ce,2),de=he[0],fe=he[1],pe=function(t){fe([t.clientX,t.clientY])},ge=H(Xt,Lt,ot?de:Bt,Q,$,tt,st),me=(0,r.Z)(ge,11),ve=me[0],ye=me[1],we=me[2],be=me[3],xe=me[4],Se=me[5],Pe=me[6],ke=me[7],Ce=me[8],Ae=me[9],Me=me[10],Ee=M(xt,w,b,x),Le=(0,r.Z)(Ee,2),Te=Le[0],Ne=Le[1],je=Te.has("click"),Ie=Ne.has("click")||Ne.has("contextMenu"),Be=(0,d.Z)((function(){re||Me()}));Z(Xt,Bt,Lt,Be,(function(){Kt.current&&ot&&Ie&&ee(!1)})),(0,p.Z)((function(){Be()}),[de,Q]),(0,p.Z)((function(){!Xt||null!=$&&$[Q]||Be()}),[JSON.stringify(tt)]);var Oe=m.useMemo((function(){var t=T($,s,Ae,ot);return l()(t,null==it?void 0:it(Ae))}),[Ae,it,$,s,ot]);m.useImperativeHandle(n,(function(){return{nativeElement:Dt.current,forceAlign:Be}}));var De=m.useState(0),Re=(0,r.Z)(De,2),Fe=Re[0],ze=Re[1],Ge=m.useState(0),Ue=(0,r.Z)(Ge,2),He=Ue[0],_e=Ue[1],Ze=function(){if(nt&&Bt){var t=Bt.getBoundingClientRect();ze(t.width),_e(t.height)}};function We(t,e,n,i){Gt[t]=function(r){var o;null==i||i(r),ee(e,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1?n-1:0),r=1;r1?n-1:0),r=1;ri.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+i.defaultValue);var r=go.Shape._FigureParameters[e];r||(r=[],go.Shape._FigureParameters[e]=r),r[n]=i};var e=[];function n(t,n){var i=e.pop();return void 0===i?new go.Point(t,n):(i.x=t,i.y=n,i)}function i(){var t=e.pop();return void 0===t?new go.Point:t}function r(t){e.push(t)}function o(t,e,n,i,r,o,a,s,l){l||(l=new go.Point);var u,c,h,d=t-n,f=r-a,p=NaN,g=NaN;0===d?0===f?t===n&&(p=t,g=e):g=(c=(o-s)/f)*(p=t)+(o-c*r):g=0===f?(u=(e-i)/d)*(p=r)+(h=e-u*t):(u=(e-i)/d)*(p=(o-(c=(o-s)/f)*r-(h=e-u*t))/(u-c))+h;return l.x=p,l.y=g,l}function a(t,e,n,i,r,o,a,s,l,u,c,h,d,f){var p=1-l,g=t*p+n*l,m=e*p+i*l,v=n*p+r*l,y=i*p+o*l,w=r*p+a*l,b=o*p+s*l,x=g*p+v*l,S=m*p+y*l,P=v*p+w*l,k=y*p+b*l,C=x*p+P*l,A=S*p+k*l;u.x=g,u.y=m,c.x=x,c.y=S,h.x=C,h.y=A,d.x=P,d.y=k,f.x=w,f.y=b}var s=new go.Spot(.156,.156),l=new go.Spot(.844,.844),u=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new t("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=5),i=Math.min(i,e/3);var r=(i=Math.min(i,n/3))*u,o=(new go.Geometry).add(new go.PathFigure(i,0,!0).add(new go.PathSegment(go.PathSegment.Line,e-i,0)).add(new go.PathSegment(go.PathSegment.Bezier,e,i,e-r,0,e,r)).add(new go.PathSegment(go.PathSegment.Line,e,n-i)).add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e,n-r,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,i,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,r,n,0,n-r)).add(new go.PathSegment(go.PathSegment.Line,0,i)).add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()));return r>1&&(o.spot1=new go.Spot(0,0,r,r),o.spot2=new go.Spot(1,1,-r,-r)),o})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,.5*e,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=n/2,i.endX=e,i.endY=n/2,i})),go.Shape.defineFigureGenerator("LineV",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=e/2,i.startY=0,i.endX=e/2,i.endY=n,i})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,e,n/2)).add(new go.PathSegment(go.PathSegment.Move,e/2,0)).add(new go.PathSegment(go.PathSegment.Line,e/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.25*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*e,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)).add(new go.PathSegment(go.PathSegment.Line,e,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.75*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*e,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,.25*n)).add(new go.PathSegment(go.PathSegment.Line,e,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(t,e,n){var i=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(i*e,(1-i)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,i*n)).add(new go.PathSegment(go.PathSegment.Move,i*e,i*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,e,n/2)).add(new go.PathSegment(go.PathSegment.Move,e/2,0)).add(new go.PathSegment(go.PathSegment.Line,e/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(t,e,n){var i=e/2,r=(new go.Geometry).add(new go.PathFigure(e,e/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,i,i,i,i).close()));return r.spot1=s,r.spot2=l,r.defaultStretch=go.GraphObject.Uniform,r})),go.Shape.defineFigureGenerator("Line1",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=0,i.endX=e,i.endY=n,i})),go.Shape.defineFigureGenerator("Line2",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=e,i.startY=0,i.endX=0,i.endY=n,i})),go.Shape.defineFigureGenerator("Curve1",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,e,n,u*e,0,e,(1-u)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,e,n,0,u*n,(1-u)*e,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,e,u*n,u*e,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-u)*e,0,0,(1-u)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new t("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)?i=.1:i<-1?i=-1:i>1&&(i=1);var r=Math.abs(i)*e;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),re&&(i=e);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r.5&&(i=.5);var r=Math.abs(i)*e;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),re&&(i=e/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),re&&(i=e/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())):o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),r0&&(a.add(new go.PathSegment(go.PathSegment.Move,e/2+u,e/2)),a.add(new go.PathSegment(go.PathSegment.Arc,0,-360,r,r,u,u).close())),o.spot1=s,o.spot2=l,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Cloud",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.08034461*e,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*e,.05349299*n,-.09239631*e,.07836421*n,.1406031*e,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*e,.074219*n,.2450511*e,-.00697547*n,.3776197*e,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*e,.07004196*n,.4539471*e,0,.6066018*e,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*e,.08370865*n,.6914277*e,-.01904177*n,.8921095*e,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*e,.3194596*n,1.036446*e,.04105738*n,1.020377*e,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*e,.562044*n,1.04448*e,.360238*n,.992256*e,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*e,.8217117*n,1.032337*e,.5771781*n,1.018411*e,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*e,.9156953*n,1.028411*e,.9571472*n,.8556702*e,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*e,.9310455*n,.7431877*e,1.009325*n,.5624123*e,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*e,.9344623*n,.4820677*e,1.031761*n,.3030112*e,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*e,.870098*n,.2329994*e,1.01518*n,.03213784*e,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*e,.6545475*n,-.02812061*e,.9032597*n,-.01205169*e,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*e,.4265613*n,-.01812061*e,.6089503*n,-.00606892*e,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*e,.1944299*n,-.01606892*e,.3892545*n,-.01205169*e,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(t,e,n){var i=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(i*e,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,0)).add(new go.PathSegment(go.PathSegment.Line,e,i*n)).add(new go.PathSegment(go.PathSegment.Line,e,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,n)).add(new go.PathSegment(go.PathSegment.Line,i*e,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,i*n).close())).setSpots(i/2,i/2,1-i/2,1-i/2)})),go.Shape.setFigureParameter("Pie",0,new t("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new t("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(t,e,n){var i=t?t.parameter1:NaN,r=t?t.parameter2:NaN;isNaN(i)&&(i=0),isNaN(r)&&(r=315);var o=i%360;o<0&&(o+=360);var a=r%360,s=Math.min(e,n)/2;return(new go.Geometry).add(new go.PathFigure(s,s).add(new go.PathSegment(go.PathSegment.Arc,o,a,s,s,s,s).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(t,e,n){var i=u/Math.SQRT2*.5,r=Math.SQRT2/2,o=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(e,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,r*e,o*n,e,(1-i)*n,(r+i)*e,(o+i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new t("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=30);var r=Math.min(i,e)/2,o=e/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThinCross",0,new t("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=Math.min(i,e)/2,o=e/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThickX",0,new t("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(t,e,n){var i=t?t.parameter1:NaN;if((isNaN(i)||i<0)&&(i=30),0===e||0===n)return(u=new go.Geometry(go.Geometry.Rectangle)).startX=0,u.startY=0,u.endX=e,u.endY=n,u;var r=e/2,o=n/2,a=Math.atan2(n,e),s=i-Math.min(Math.cos(a)*i/2,r),l=i-Math.min(Math.sin(a)*i/2,o),u=new go.Geometry,c=new go.PathFigure(s,0,!0);return u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,r,.2*n)),c.add(new go.PathSegment(go.PathSegment.Line,e-s,0)),c.add(new go.PathSegment(go.PathSegment.Line,e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.8*e,o)),c.add(new go.PathSegment(go.PathSegment.Line,e,n-l)),c.add(new go.PathSegment(go.PathSegment.Line,e-s,n)),c.add(new go.PathSegment(go.PathSegment.Line,r,.8*n)),c.add(new go.PathSegment(go.PathSegment.Line,s,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,n-l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,o)),c.add(new go.PathSegment(go.PathSegment.Line,0,l).close()),u})),go.Shape.setFigureParameter("ThinX",0,new t("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=new go.Geometry,o=new go.PathFigure(.1*e,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),r})),go.Shape.setFigureParameter("SquareIBeam",0,new t("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*e,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*e,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*e,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*e,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n).close()),r})),go.Shape.setFigureParameter("RoundedIBeam",0,new t("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.5);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,e,n,Math.abs(1-i)*e,.25*n,Math.abs(1-i)*e,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,i*e,.75*n,i*e,.25*n).close()),r})),go.Shape.defineFigureGenerator("HalfEllipse",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,u*e,0,e,(.5-u/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,e,(.5+u/2)*n,u*e,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,e,0,e,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*e,.75*n,.5*e,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*e,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.3*n,0,0,.45*e,0)).add(new go.PathSegment(go.PathSegment.Bezier,e,.3*n,.55*e,0,e,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,.5*n,.9*e,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*e,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,.6*e,.2*n,e,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*e,.7*n,e,.8*n,.6*e,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*e,n,.5*e,.75*n,.55*e,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*e,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*e,.7*n,.45*e,.95*n,.5*e,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*e,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*e,.01*n,0,.25*n,.4*e,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.4*e,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.15*e,n,.5*e,.75*n,.45*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*e,.6*n,.55*e,.95*n,.5*e,.75*n));var o=.2,a=.3,s=0,l=o*u;return r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5+o+s)*n,(.5-o+a)*e,(.5+l+s)*n,(.5-l+a)*e,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*e,(.5+s)*n,(.5+l+a)*e,(.5+o+s)*n,(.5+o+a)*e,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5-o+s)*n,(.5+o+a)*e,(.5-l+s)*n,(.5+l+a)*e,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.65*e,.36771243*n,(.5-l+a)*e,(.5-o+s)*n,(.5-o+a+.05)*e,(.5-l+s-.02)*n)),a=0,s=-.3,l=(o=.2)*u,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*e,(.5+s)*n,(.5+l+a)*e,(.5+o+s)*n,(.5+o+a)*e,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5-o+s)*n,(.5+o+a)*e,(.5-l+s)*n,(.5+l+a)*e,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*e,(.5+s)*n,(.5-l+a)*e,(.5-o+s)*n,(.5-o+a)*e,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-l+a)*e,(.5+o+s)*n,(.5-o+a)*e,(.5+l+s)*n,(.5-l+a)*e,(.5+o+s)*n)),a=-.3,s=0,l=(o=.2)*u,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5-o+s)*n,(.5+o+a-.05)*e,(.5-l+s-.02)*n,(.5+l+a)*e,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*e,(.5+s)*n,(.5-l+a)*e,(.5-o+s)*n,(.5-o+a)*e,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5+o+s)*n,(.5-o+a)*e,(.5+l+s)*n,(.5-l+a)*e,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,.6*n,(.5+l+a)*e,(.5+o+s)*n,(.5+o+a)*e,(.5+l+s)*n).close()),i.setSpots(.06,.33,.93,.68),i})),go.Shape.defineFigureGenerator("YinYang",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*e,.5*e,.5*e,.5*e)),r.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*e,.75*e,.25*e,.25*e)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*e,.25*e,.25*e,.25*e));var o=.1,a=.5,s=.25;return r.add(new go.PathSegment(go.PathSegment.Move,.6*e,s*n)),r.add(new go.PathSegment(go.PathSegment.Arc,0,-360,e*a,n*s,o*e,o*e).close()),r=new go.PathFigure(.5*e,0,!1),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*e,.5*e,.5*e,.5*e)),s=.75,r=new go.PathFigure(.6*e,s*n,!0),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,0,360,e*a,n*s,o*e,o*e).close()),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("Peace",(function(t,e,n){var i=.8535533905932737,r=.5*e,o=.5*n;return(new go.Geometry).add(new go.PathFigure(r,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,r,o,r,o)).add(new go.PathSegment(go.PathSegment.Line,r,n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,i*n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,i*e,i*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(t,e,n){var o=new go.Geometry,s=.5*u,l=.5,c=.5,h=.5,d=new go.PathFigure(c*e,(h-l)*n);o.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(c-l)*e,h*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+l)*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+l)*e,h*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-l)*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),l=.4,s=.4*u;var f=i(),p=i(),g=i(),m=i();a(c,h-l,c+s,h-l,c+l,h-s,c+l,h,.42,f,p,g,m,m);var v=i(),y=i(),w=i();a(c,h-l,c+s,h-l,c+l,h-s,c+l,h,.58,m,m,w,v,y);var b=i(),x=i(),S=i();a(c,h+l,c-s,h+l,c-l,h+s,c-l,h,.42,b,x,S,m,m);var P=i(),k=i(),C=i();return a(c,h+l,c-s,h+l,c-l,h+s,c-l,h,.58,m,m,C,P,k),d.add(new go.PathSegment(go.PathSegment.Move,C.x*e,C.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c-l)*e,h*n,P.x*e,P.y*n,k.x*e,k.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-l)*n,(c-l)*e,(h-s)*n,(c-s)*e,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g.x*e,g.y*n,f.x*e,f.y*n,p.x*e,p.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,C.x*e,C.y*n).close()),d.add(new go.PathSegment(go.PathSegment.Move,S.x*e,S.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,w.x*e,w.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+l)*e,h*n,v.x*e,v.y*n,y.x*e,y.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+l)*n,(c+l)*e,(h+s)*n,(c+s)*e,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,S.x*e,S.y*n,b.x*e,b.y*n,x.x*e,x.y*n).close()),r(f),r(p),r(g),r(m),r(v),r(y),r(w),r(b),r(x),r(S),r(P),r(k),r(C),o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Fragile",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*e,0)).add(new go.PathSegment(go.PathSegment.Line,.2*e,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*e,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*e,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*e,0)).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*e,.5*n,e,.25*n,.75*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*e,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new t("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=30),i>e&&(i=e);var r=(e-i)/2,o=r+i;return(new go.Geometry).add(new go.PathFigure(o,.5*n).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,r,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,e,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*e,0)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.45*n)).add(new go.PathSegment(go.PathSegment.Line,e,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*e,n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(t,e,o){var s=new go.Geometry,l=.4*u,c=.4,h=.5,d=.5,f=i(),p=i(),g=i(),m=i(),v=new go.PathFigure((h-c)*e,d*o,!1);s.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-c)*o,(h-c)*e,(d-l)*o,(h-l)*e,(d-c)*o)),a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.44,g,m,p,f,f),v.add(new go.PathSegment(go.PathSegment.Bezier,p.x*e,p.y*o,g.x*e,g.y*o,m.x*e,m.y*o));var y=n(p.x,p.y);a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.56,f,f,p,g,m);var w=n(p.x,p.y);v.add(new go.PathSegment(go.PathSegment.Line,(.1*y.x+.855)*e,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*e,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*e,0)),v.add(new go.PathSegment(go.PathSegment.Line,e,0)),v.add(new go.PathSegment(go.PathSegment.Line,e,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*w.x+.9)*e,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*w.x+.9)*e,(.1*w.y+.05*.9)*o)),v.add(new go.PathSegment(go.PathSegment.Line,w.x*e,w.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,g.x*e,g.y*o,m.x*e,m.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h+c)*e,(d+l)*o,(h+l)*e,(d+c)*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,(h-l)*e,(d+c)*o,(h-c)*e,(d+l)*o)),c=.35,l=.35*u;var b=new go.PathFigure(h*e,(d-c)*o,!1);s.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,(h-l)*e,(d-c)*o,(h-c)*e,(d-l)*o)),b.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h-c)*e,(d+l)*o,(h-l)*e,(d+c)*o)),b.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,(h+l)*e,(d+c)*o,(h+c)*e,(d+l)*o)),b.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-c)*o,(h+c)*e,(d-l)*o,(h+l)*e,(d-c)*o));var x=new go.PathFigure((h-c)*e,d*o,!1);return s.add(x),r(f),r(p),r(g),r(m),r(y),r(w),s.spot1=new go.Spot(.202,.257),s.spot2=new go.Spot(.792,.739),s.defaultStretch=go.GraphObject.Uniform,s})),go.Shape.defineFigureGenerator("GenderFemale",(function(t,e,n){var i=new go.Geometry,r=.375,o=0,a=-.125,s=r*u,l=new go.PathFigure((.525+o)*e,(.5+r+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*e,(.5+a)*n,(.5+s+o)*e,(.5+r+a)*n,(.5+r+o)*e,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*e,(.5-r+a)*n,(.5+r+o)*e,(.5-s+a)*n,(.5+s+o)*e,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*e,(.5+a)*n,(.5-s+o)*e,(.5-r+a)*n,(.5-r+o)*e,(.5-s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.475+o)*e,(.5+r+a)*n,(.5-r+o)*e,(.5+s+a)*n,(.5-s+o)*e,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*e,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*e,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*e,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*e,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*e,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*e,.85*n).close()),o=0,a=-.125,s=(r=.325)*u;l=new go.PathFigure((.5+r+o)*e,(.5+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*e,(.5+r+a)*n,(.5+r+o)*e,(.5+s+a)*n,(.5+s+o)*e,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*e,(.5+a)*n,(.5-s+o)*e,(.5+r+a)*n,(.5-r+o)*e,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*e,(.5-r+a)*n,(.5-r+o)*e,(.5-s+a)*n,(.5-s+o)*e,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*e,(.5+a)*n,(.5+s+o)*e,(.5-r+a)*n,(.5+r+o)*e,(.5-s+a)*n));l=new go.PathFigure((.525+o)*e,(.5+r+a)*n,!1);return i.add(l),i.spot1=new go.Spot(.232,.136),i.spot2=new go.Spot(.682,.611),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicImplies",(function(t,e,n){var i=t?t.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(t,e,n){var i=t?t.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Move,i*e,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,i*e,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,e,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(t,e,n){var i=(new go.Geometry).add(new go.PathFigure(.5*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*e,.5*n,.5*e,.5*n)));return i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicTruth",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,.5*e,0)).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Move,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,.25*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*e,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,e,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(t,e,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,i*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,i*e,i*n,i*e,i*n)).add(new go.PathSegment(go.PathSegment.Line,e,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(t,e,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(e,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,i*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,i*e,i*n,i*e,i*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new t("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new t("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=t?t.parameter2:NaN;isNaN(s)&&(s=.3);var l=(1-a)*e,u=(.5-s/2)*n,c=(.5+s/2)*n,h=new go.Geometry,d=new go.PathFigure(0,u,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,0,c).close()),h.spot1=new go.Spot(0,u/n);var f=o(0,c/n,1,c/n,l/e,1,1,.5,i());return h.spot2=new go.Spot(f.x,f.y),r(f),h})),go.Shape.setFigureParameter("Arrow2",0,new t("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new t("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=30),a>e&&(a=e);var s=t?t.parameter2:NaN;isNaN(s)&&(s=30);var l=e-a,u=(n-(s=Math.min(s,n/2)))/2,c=u+s,h=new go.Geometry,d=new go.PathFigure(0,u,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,0,c).close()),h.spot1=new go.Spot(0,u/n);var f=o(0,c/n,1,c/n,l/e,1,1,.5,i());return h.spot2=new go.Spot(f.x,f.y),r(f),h})),go.Shape.defineFigureGenerator("Chevron",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n).close()),i})),go.Shape.defineFigureGenerator("DoubleArrow",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.214*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.786*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),i})),go.Shape.setFigureParameter("DoubleEndArrow",0,new t("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,0)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close());var h=o(0,.5,.3,0,0,s/n,.1,s/n,i());return u.spot1=new go.Spot(h.x,h.y),h=o(.7,1,1,.5,0,l/n,1,l/n,h),u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new t("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new t("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=40);var s=t?t.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,u=l+a,c=(n-s)/2,h=c+s;(a>n||s>n)&&(s>a?(u=(l=(n-(a=a*n/s))/2)+a,c=0,h=n):(l=0,u=n,c=0,h=n));var d=new go.Geometry,f=new go.PathFigure(e,.5*n,!0);d.add(f),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,c)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,c).close());var p=o(0,.5,.3,c/n,0,l/n,1,l/n,i());return d.spot1=new go.Spot(p.x,p.y),p=o(.7,h/n,1,.5,0,u/n,1,u/n,p),d.spot2=new go.Spot(p.x,p.y),r(p),d})),go.Shape.setFigureParameter("IBeamArrow",0,new t("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,0)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,0)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close()),u.spot1=new go.Spot(0,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("IBeamArrow2",0,new t("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new t("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=40);var s=t?t.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,u=l+a,c=(n-s)/2,h=c+s;(a>n||s>n)&&(s>a?(u=(l=(n-(a=a*n/s))/2)+a,c=0,h=n):(l=0,u=n,c=0,h=n));var d=new go.Geometry,f=new go.PathFigure(e,.5*n,!0);d.add(f),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,0,h)),f.add(new go.PathSegment(go.PathSegment.Line,0,c)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,c)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,c).close()),d.spot1=new go.Spot(0,l/n);var p=o(.7,h/n,1,.5,0,u/n,1,u/n,i());return d.spot2=new go.Spot(p.x,p.y),r(p),d})),go.Shape.setFigureParameter("Pointer",0,new t("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.1);var s=new go.Geometry,l=new go.PathFigure(e,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Line,a*e,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),s.spot1=new go.Spot(a,.35);var u=o(.2,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(u.x,u.y),r(u),s})),go.Shape.setFigureParameter("RoundedPointer",0,new t("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=new go.Geometry,l=new go.PathFigure(e,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*e,.75*n,a*e,.25*n).close()),s.spot1=new go.Spot(a,.35);var u=o(0,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(u.x,u.y),r(u),s})),go.Shape.setFigureParameter("SplitEndArrow",0,new t("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.4);var s=(.5-a/2)*n,l=(.5+a/2)*n,u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,0,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,0,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close()),u.spot1=new go.Spot(.2,.3);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("SplitEndArrow2",0,new t("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=50);var s=(n-a)/2,l=s+a;a>n&&(s=0,l=n);var u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,0,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,0,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close()),u.spot1=new go.Spot(.2,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("SquareArrow",0,new t("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.7);var r=new go.Geometry,o=new go.PathFigure(e,.5*n,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,i*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,i*e,0).close()),r.spot1=go.Spot.TopLeft,r.spot2=new go.Spot(i,1),r})),go.Shape.defineFigureGenerator("Cone1",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.1*u,a=new go.PathFigure(0,.9*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.9+o)*n,(.5+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*e,n,0,(.9+o)*n).close()),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.97),i})),go.Shape.defineFigureGenerator("Cone2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.9*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.9*n,(1-.85/.9)*e,n,.85/.9*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var o=new go.PathFigure(0,.9*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,e,.9*n,(1-.85/.9)*e,.8*n,.85/.9*e,.8*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.82),i})),go.Shape.defineFigureGenerator("Cube1",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*e,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.5,.85),i})),go.Shape.defineFigureGenerator("Cube2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.3*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0).close());var o=new go.PathFigure(0,.3*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Move,.7*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.7,1),i})),go.Shape.defineFigureGenerator("Cylinder1",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(0,i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,u*i,(.5-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,1*e,i,(.5+o)*e,0,1*e,u*i)),a.add(new go.PathSegment(go.PathSegment.Line,e,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,1*n,1*e,n-u*i,(.5+o)*e,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*e,1*n,0,n-u*i)),a.add(new go.PathSegment(go.PathSegment.Line,0,i));var s=new go.PathFigure(e,i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,2*i,1*e,2*i-u*i,(.5+o)*e,2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,i,(.5-o)*e,2*i,0,2*i-u*i)),r.spot1=new go.Spot(0,0,0,2*i),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder2",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(0,n-i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,u*i,(.5-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,i,(.5+o)*e,0,e,u*i)),a.add(new go.PathSegment(go.PathSegment.Line,e,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,n-u*i,(.5+o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*e,n,0,n-u*i));var s=new go.PathFigure(0,n-i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n-2*i,0,n-i-u*i,(.5-o)*e,n-2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,e,n-i,(.5+o)*e,n-2*i,e,n-i-u*i)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,0,-2*i),r})),go.Shape.defineFigureGenerator("Cylinder3",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,e/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e-i,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,e-u*i,0,e,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e,(.5+o)*n,e-u*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,u*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,u*i,0));var s=new go.PathFigure(i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,2*i,.5*n,i+u*i,0,2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,n,2*i,(.5+o)*n,i+u*i,n)),r.spot1=new go.Spot(0,0,2*i,0),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder4",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,e/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(e-i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,e-u*i,0,e,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e,(.5+o)*n,e-u*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,u*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,u*i,0)),a.add(new go.PathSegment(go.PathSegment.Line,e-i,0));var s=new go.PathFigure(e-i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,e-2*i,.5*n,e-i-u*i,0,e-2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e-2*i,(.5+o)*n,e-i-u*i,n)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,-2*i,0),r})),go.Shape.defineFigureGenerator("Prism1",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.25*e,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.25*e,.25*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),i.spot1=new go.Spot(.408,.172),i.spot2=new go.Spot(.833,.662),i})),go.Shape.defineFigureGenerator("Prism2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*e,.5*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("Pyramid1",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var o=new go.PathFigure(.5*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Pyramid2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*e,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Actor",(function(t,e,n){var i=new go.Geometry,r=.2,o=.1,a=u*r,s=u*o,l=.5,c=.1,h=new go.PathFigure(l*e,(c+o)*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-r)*e,c*n,(l-a)*e,(c+o)*n,(l-r)*e,(c+s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-o)*n,(l-r)*e,(c-s)*n,(l-a)*e,(c-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+r)*e,c*n,(l+a)*e,(c-o)*n,(l+r)*e,(c-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c+o)*n,(l+r)*e,(c+s)*n,(l+a)*e,(c+o)*n));var d=.05,f=u*d;l=.05,c=.25;var p=new go.PathFigure(.5*e,.2*n,!0);return i.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.95*e,.2*n)),l=.95,c=.25,p.add(new go.PathSegment(go.PathSegment.Bezier,(l+d)*e,c*n,(l+f)*e,(c-d)*n,(l+d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,e,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,.85*e,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,.85*e,.35*n)),f=u*(d=.025),l=.825,c=.35,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l+d)*e,(c-f)*n,(l+f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*e,c*n,(l-f)*e,(c-d)*n,(l-d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.55*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.55*e,.7*n)),f=u*(d=.05),l=.5,c=.7,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l+d)*e,(c-f)*n,(l+f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*e,c*n,(l-f)*e,(c-d)*n,(l-d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.45*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.2*e,.35*n)),f=u*(d=.025),l=.175,c=.35,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l+d)*e,(c-f)*n,(l+f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*e,c*n,(l-f)*e,(c-d)*n,(l-d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.15*e,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),f=u*(d=.05),l=.05,c=.25,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l-d)*e,(c-f)*n,(l-f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.5*e,.2*n)),i.spot1=new go.Spot(.2,.2),i.spot2=new go.Spot(.8,.65),i})),go.Shape.setFigureParameter("Card",0,new t("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(e,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,i*e,0).close()),r.spot1=new go.Spot(0,i),r.spot2=go.Spot.BottomRight,r})),go.Shape.defineFigureGenerator("Collate",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n));var o=new go.PathFigure(.5*e,.5*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,.25),i})),go.Shape.defineFigureGenerator("CreateRequest",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,(1-r)*n)),i})),go.Shape.defineFigureGenerator("Database",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.1*u,a=new go.PathFigure(e,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.9+o)*n,(.5+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*e,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,(.1-o)*n,(.5-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.1*n,(.5+r)*e,0,e,(.1-o)*n));var s=new go.PathFigure(e,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.2*n,e,(.1+o)*n,(.5+r)*e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*e,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.3*n,e,(.2+o)*n,(.5+r)*e,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*e,.3*n,0,(.2+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.4*n,e,(.3+o)*n,(.5+r)*e,.4*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-r)*e,.4*n,0,(.3+o)*n)),i.spot1=new go.Spot(0,.4),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("DataStorage",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*e,n,e,0,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.9*n,.25*e,.1*n).close()),i.spot1=new go.Spot(.226,0),i.spot2=new go.Spot(.81,1),i})),go.Shape.defineFigureGenerator("DiskStorage",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.1*u,a=new go.PathFigure(e,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.9+o)*n,(.5+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*e,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,(.1-o)*n,(.5-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.1*n,(.5+r)*e,0,e,(.1-o)*n));var s=new go.PathFigure(e,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.2*n,e,(.1+o)*n,(.5+r)*e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*e,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.3*n,e,(.2+o)*n,(.5+r)*e,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*e,.3*n,0,(.2+o)*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("Display",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.25*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*e,n,e,0,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("DividedEvent",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)?r=.2:r<.15&&(r=.15);var o=.2*u,a=new go.PathFigure(0,.2*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,0,0,(.2-o)*n,(.2-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,.8*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.2*n,(.8+o)*e,0,e,(.2-o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,n,e,(.8+o)*n,(.8+o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-o)*e,n,0,(.8+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var s=new go.PathFigure(0,r*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,r*n)),i})),go.Shape.defineFigureGenerator("DividedProcess",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;(isNaN(r)||r<.1)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,r*n)),i})),go.Shape.defineFigureGenerator("Document",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*e,.4*n,.5*e,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;(isNaN(r)||r<.2)&&(r=.2);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,e,r*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,e,(1-r)*n)),i})),go.Shape.defineFigureGenerator("ExternalProcess",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(.1*e,.4*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.9*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.6*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*e,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.9*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("File",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.75*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Interrupt",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n));var o=new go.PathFigure(e,.5*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n));var a=new go.PathFigure(e,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("InternalStorage",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN,o=t?t.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.1);var a=new go.PathFigure(0,0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var s=new go.PathFigure(r*e,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),s.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),s.add(new go.PathSegment(go.PathSegment.Line,e,o*n)),i})),go.Shape.defineFigureGenerator("Junction",(function(t,e,n){var i=new go.Geometry,r=1/Math.SQRT2,o=(1-1/Math.SQRT2)/2,a=.5*u,s=.5,l=new go.PathFigure(e,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,s*e,n,e,(s+a)*n,(s+a)*e,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,s*n,(s-a)*e,n,0,(s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,s*e,0,0,(s-a)*n,(s-a)*e,0)),l.add(new go.PathSegment(go.PathSegment.Bezier,e,s*n,(s+a)*e,0,e,(s-a)*n));var c=new go.PathFigure((o+r)*e,(o+r)*n,!1);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Line,o*e,o*n)),c.add(new go.PathSegment(go.PathSegment.Move,o*e,(o+r)*n)),c.add(new go.PathSegment(go.PathSegment.Line,(o+r)*e,o*n)),i})),go.Shape.defineFigureGenerator("LinedDocument",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*e,.4*n,.5*e,n).close());var o=new go.PathFigure(.1*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.75*n)),i.spot1=new go.Spot(.1,0),i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("LoopLimit",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MagneticTape",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(.5*e,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*e,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0,0,(o-r)*n,(o-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,o*n,(o+r)*e,0,e,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.6*e,.9*n,e,(o+r)*n,(o+r)*e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),i.spot1=new go.Spot(.15,.15),i.spot2=new go.Spot(.85,.8),i})),go.Shape.defineFigureGenerator("ManualInput",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MessageFromUser",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.7);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,r*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,r*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("MicroformRecording",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("MultiDocument",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,.44*n,.96*e,.47*n,.93*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.54*n,.86*e,.57*n,.83*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*e,.4*n,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,0).close());var o=new go.PathFigure(.1*e,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.44*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.8,.77),i})),go.Shape.defineFigureGenerator("MultiProcess",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,.1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.2*n).close());var o=new go.PathFigure(.2*e,.1*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.9*n)),i.spot1=new go.Spot(0,.2),i.spot2=new go.Spot(.8,1),i})),go.Shape.defineFigureGenerator("OfflineStorage",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,n).close());var a=new go.PathFigure(.5*r*e,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-.5*r)*e,r*n)),i})),go.Shape.defineFigureGenerator("OffPageConnector",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("Or",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(e,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,n,e,(o+r)*n,(o+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*e,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0,0,(o-r)*n,(o-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,o*n,(o+r)*e,0,e,(o-r)*n));var s=new go.PathFigure(e,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*e,n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),i})),go.Shape.defineFigureGenerator("PaperTape",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.3*n,.5*e,.6*n,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*e,.4*n,.5*e,n).close()),i.spot1=new go.Spot(0,.49),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN,o=t?t.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN,o=t?t.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Procedure",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure((1-r)*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Move,r*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),i})),go.Shape.defineFigureGenerator("Process",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Sort",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(0,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.5),i})),go.Shape.defineFigureGenerator("Start",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(r*e,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*e,.5*n,.25*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*e,.5*n,.25*e,.5*n));var a=new go.PathFigure(r*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*e,n)),i.spot1=new go.Spot(r,0),i.spot2=new go.Spot(1-r,1),i})),go.Shape.defineFigureGenerator("Terminator",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.25*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*e,.5*n,.25*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*e,.5*n,.25*e,.5*n)),i.spot1=new go.Spot(.23,0),i.spot2=new go.Spot(.77,1),i})),go.Shape.defineFigureGenerator("TransmittalTape",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-r)*n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("AndGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,(.5+r)*e,0,e,(.5-r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.5+r)*n,(.5+r)*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.55,1),i})),go.Shape.defineFigureGenerator("Buffer",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Clock",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(e,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,n,e,(o+r)*n,(o+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*e,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0,0,(o-r)*n,(o-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,o*n,(o+r)*e,0,e,(o-r)*n));var s=new go.PathFigure(e,o*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,o*n));var l=new go.PathFigure(.8*e,.75*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.8*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*e,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*e,.75*n)),i})),go.Shape.defineFigureGenerator("Ground",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Move,.3*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,n)),i})),go.Shape.defineFigureGenerator("Inverter",(function(t,e,n){var i=new go.Geometry,r=.1*u,o=.9,a=.5,s=new go.PathFigure(.8*e,.5*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,0)),s.add(new go.PathSegment(go.PathSegment.Line,.8*e,.5*n));var l=new go.PathFigure(1*e,a*n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,o*e,.6*n,1*e,(a+r)*n,(o+r)*e,.6*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,a*n,(o-r)*e,.6*n,.8*e,(a+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,o*e,.4*n,.8*e,(a-r)*n,(o-r)*e,.4*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,1*e,a*n,(o+r)*e,.4*n,1*e,(a-r)*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.4,.75),i})),go.Shape.defineFigureGenerator("NandGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.4*u,a=.1*u,s=.9,l=.5,c=new go.PathFigure(.8*e,.5*n,!0);i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,n,.8*e,(.5+o)*n,(.4+r)*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,0)),c.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),c.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.5*n,(.4+r)*e,0,.8*e,(.5-o)*n));var h=new go.PathFigure(1*e,l*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,s*e,.6*n,1*e,(l+a)*n,(s+a)*e,.6*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,l*n,(s-a)*e,.6*n,.8*e,(l+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,s*e,.4*n,.8*e,(l-a)*n,(s-a)*e,.4*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,1*e,l*n,(s+a)*e,.4*n,1*e,(l-a)*n)),i.spot1=new go.Spot(0,.05),i.spot2=new go.Spot(.55,.95),i})),go.Shape.defineFigureGenerator("NorGate",(function(t,e,n){var i=new go.Geometry,r=.5,o=u*r,a=0,s=.5,l=new go.PathFigure(.8*e,.5*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*e,(s+o)*n,(a+o)*e,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.75*n,.25*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.5*n,(a+o)*e,(s-r)*n,.7*e,(s-o)*n)),r=.1,o=.1*u,a=.9,s=.5;var c=new go.PathFigure((a-r)*e,s*n,!0);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n)),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.6,.75),i})),go.Shape.defineFigureGenerator("OrGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,(0+r+r)*e,0*n,.8*e,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*e,(o+r)*n,(0+r+r)*e,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.75*n,.25*e,.25*n).close()),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("XnorGate",(function(t,e,n){var i=new go.Geometry,r=.5,o=u*r,a=.2,s=.5,l=new go.PathFigure(.1*e,0,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,n,.35*e,.25*n,.35*e,.75*n));var c=new go.PathFigure(.8*e,.5*n,!0);i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,n,.7*e,(s+o)*n,(a+o)*e,(s+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,0,.45*e,.75*n,.45*e,.25*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.5*n,(a+o)*e,(s-r)*n,.7*e,(s-o)*n)),r=.1,o=.1*u,a=.9,s=.5;var h=new go.PathFigure((a-r)*e,s*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n)),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.65,.75),i})),go.Shape.defineFigureGenerator("XorGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(.1*e,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,n,.35*e,.25*n,.35*e,.75*n));var s=new go.PathFigure(.2*e,0,!0);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,(.2+r)*e,0*n,.9*e,(o-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,n,.9*e,(o+r)*n,(.2+r)*e,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,0,.45*e,.75*n,.45*e,.25*n).close()),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.8,.75),i})),go.Shape.defineFigureGenerator("Capacitor",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("Resistor",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.5*n)),i})),go.Shape.defineFigureGenerator("Inductor",(function(t,e,n){var i=new go.Geometry,r=.1*u,o=.1,a=.1,s=new go.PathFigure((a-.5*r)*e,n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.3,s.add(new go.PathSegment(go.PathSegment.Bezier,a*e,n,(a+o)*e,0,(a+r)*e,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.5,s.add(new go.PathSegment(go.PathSegment.Bezier,a*e,n,(a+o)*e,0,(a+r)*e,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.7,s.add(new go.PathSegment(go.PathSegment.Bezier,a*e,n,(a+o)*e,0,(a+r)*e,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.9,s.add(new go.PathSegment(go.PathSegment.Bezier,(a+.5*r)*e,n,(a+o)*e,0,(a+r)*e,n)),i})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=.5,s=new go.PathFigure(0*e,a*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0*n,0*e,(a-r)*n,(o-r)*e,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*e,a*n,(o+r)*e,0*n,1*e,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,1*n,1*e,(a+r)*n,(o+r)*e,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*e,a*n,(o-r)*e,1*n,0*e,(a+r)*n)),s.add(new go.PathSegment(go.PathSegment.Move,.1*e,a*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,a*n,o*e,0*n,o*e,1*n)),i})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("Diode",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Wifi",(function(t,e,n){var i=new go.Geometry,r=.8*u,o=.8,a=0,s=.5,l=(e-(e*=.38))/2,c=(n-(n*=.6))/2,h=new go.PathFigure(a*e+l,(s+o)*n+c,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*e+l,s*n+c,(a-r)*e+l,(s+o)*n+c,(a-o)*e+l,(s+r)*n+c)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a-o)*e+l,(s-r)*n+c,(a-r)*e+l,(s-o)*n+c)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*e+l,s*n+c,a*e+l,(s-o)*n+c,(a-o+.5*r)*e+l,(s-r)*n+c)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a-o+.5*r)*e+l,(s+r)*n+c,a*e+l,(s+o)*n+c).close()),r=.4*u,o=.4,a=.2,s=.5;var d=new go.PathFigure(a*e+l,(s+o)*n+c,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*e+l,s*n+c,(a-r)*e+l,(s+o)*n+c,(a-o)*e+l,(s+r)*n+c)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a-o)*e+l,(s-r)*n+c,(a-r)*e+l,(s-o)*n+c)),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*e+l,s*n+c,a*e+l,(s-o)*n+c,(a-o+.5*r)*e+l,(s-r)*n+c)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a-o+.5*r)*e+l,(s+r)*n+c,a*e+l,(s+o)*n+c).close()),r=.2*u,o=.2,a=.5,s=.5;var f=new go.PathFigure((a-o)*e+l,s*n+c,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a-o)*e+l,(s-r)*n+c,(a-r)*e+l,(s-o)*n+c)),f.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e+l,s*n+c,(a+r)*e+l,(s-o)*n+c,(a+o)*e+l,(s-r)*n+c)),f.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a+o)*e+l,(s+r)*n+c,(a+r)*e+l,(s+o)*n+c)),f.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*e+l,s*n+c,(a-r)*e+l,(s+o)*n+c,(a-o)*e+l,(s+r)*n+c)),r=.4*u,o=.4,a=.8,s=.5;var p=new go.PathFigure(a*e+l,(s-o)*n+c,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e+l,s*n+c,(a+r)*e+l,(s-o)*n+c,(a+o)*e+l,(s-r)*n+c)),p.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a+o)*e+l,(s+r)*n+c,(a+r)*e+l,(s+o)*n+c)),p.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*e+l,s*n+c,a*e+l,(s+o)*n+c,(a+o-.5*r)*e+l,(s+r)*n+c)),p.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a+o-.5*r)*e+l,(s-r)*n+c,a*e+l,(s-o)*n+c).close()),r=.8*u,o=.8,a=1,s=.5;var g=new go.PathFigure(a*e+l,(s-o)*n+c,!0);return i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e+l,s*n+c,(a+r)*e+l,(s-o)*n+c,(a+o)*e+l,(s-r)*n+c)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a+o)*e+l,(s+r)*n+c,(a+r)*e+l,(s+o)*n+c)),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*e+l,s*n+c,a*e+l,(s+o)*n+c,(a+o-.5*r)*e+l,(s+r)*n+c)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a+o-.5*r)*e+l,(s-r)*n+c,a*e+l,(s-o)*n+c).close()),i})),go.Shape.defineFigureGenerator("Email",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*e,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*e,.54*n)),i})),go.Shape.defineFigureGenerator("Ethernet",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.35*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,0).close());var o=new go.PathFigure(.1*e,n,!0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,n).close());var a=new go.PathFigure(.6*e,n,!0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,n).close());var s=new go.PathFigure(0,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),s.add(new go.PathSegment(go.PathSegment.Move,.75*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.75*e,.6*n)),s.add(new go.PathSegment(go.PathSegment.Move,.25*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.25*e,.6*n)),i})),go.Shape.defineFigureGenerator("Power",(function(t,e,o){var s=new go.Geometry,l=.4*u,c=.4,h=.5,d=.5,f=i(),p=i(),g=i(),m=i();a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.5,f,f,p,g,m);var v=n(p.x,p.y),y=new go.PathFigure(p.x*e,p.y*o,!0);s.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,g.x*e,g.y*o,m.x*e,m.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h+c)*e,(d+l)*o,(h+l)*e,(d+c)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,(h-l)*e,(d+c)*o,(h-c)*e,(d+l)*o)),a(h-c,d,h-c,d-l,h-l,d-c,h,d-c,.5,g,m,p,f,f),y.add(new go.PathSegment(go.PathSegment.Bezier,p.x*e,p.y*o,g.x*e,g.y*o,m.x*e,m.y*o)),a(h-(c=.3),d,h-c,d-(l=.3*u),h-l,d-c,h,d-c,.5,g,m,p,f,f),y.add(new go.PathSegment(go.PathSegment.Line,p.x*e,p.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,m.x*e,m.y*o,g.x*e,g.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h-c)*e,(d+l)*o,(h-l)*e,(d+c)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,(h+l)*e,(d+c)*o,(h+c)*e,(d+l)*o)),a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.5,f,f,p,g,m),y.add(new go.PathSegment(go.PathSegment.Bezier,p.x*e,p.y*o,m.x*e,m.y*o,g.x*e,g.y*o).close());y=new go.PathFigure(.45*e,0,!0);return s.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*e,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*e,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*e,0).close()),r(f),r(p),r(g),r(m),r(v),s.spot1=new go.Spot(.25,.45),s.spot2=new go.Spot(.75,.8),s})),go.Shape.defineFigureGenerator("Fallout",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n/2,!0);function o(t,i,r){t.add(new go.PathSegment(go.PathSegment.Move,(.3+i)*e,(.8+r)*n)),t.add(new go.PathSegment(go.PathSegment.Line,(.5+i)*e,(.5+r)*n)),t.add(new go.PathSegment(go.PathSegment.Line,(.1+i)*e,(.5+r)*n)),t.add(new go.PathSegment(go.PathSegment.Line,(.3+i)*e,(.8+r)*n).close())}return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,180,360,e/2,n/2,e/2,n/2)),o(r,0,0),o(r,.4,0),o(r,.2,-.3),i})),go.Shape.defineFigureGenerator("IrritationHazard",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.2*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),i.spot1=new go.Spot(.3,.3),i.spot2=new go.Spot(.7,.7),i})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.37*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.11*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*e,.04*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,.49*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.37*n)),r.add(new go.PathSegment(go.PathSegment.Line,.63*e,.86*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*e,.91*n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*e,.78*n)),r.add(new go.PathSegment(go.PathSegment.Line,.44*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.56*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),i})),go.Shape.defineFigureGenerator("FireHazard",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.29*e,0,-.25*e,.63*n,.45*e,.44*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.51*e,.42*n,.48*e,.17*n,.54*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.59*e,.18*n,.59*e,.29*n,.58*e,.28*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*e,.6*n,.8*e,.34*n,.88*e,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.88*e,.31*n,.87*e,.48*n,.88*e,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,n,1.17*e,.76*n,.82*e,.8*n).close()),i.spot1=new go.Spot(.07,.445),i.spot2=new go.Spot(.884,.958),i})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(t,e,n){var i=new go.Geometry,r=.5,o=r*u,a=.4*Math.SQRT2/2+.5,s=.5-.5*Math.SQRT2/2,l=new go.PathFigure(a*e,(1-s)*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,1*e,.5*n,1*e,.7*n,1*e,.5*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0*n,1*e,(.5-o+0)*n,(.5+o+0)*e,0*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0*e,.5*n,(.5-o+0)*e,0*n,0*e,(.5-o+0)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.35*e,.9*n,0*e,(.5+o+0)*n,(.5-o+0)*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Move,.25*e,.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,.35*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*e,.95*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(e,n,!1);i.add(o);var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.5*n,.2*e,.35*n,.3*e,.35*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,.7*e,.65*n,.8*e,.65*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n).close()),i})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());r=new go.PathFigure(0,.2*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.7*e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,0,.6*e,.5*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*e,n,.4*e,.5*n,e,.5*n).close());var o=new go.PathFigure(.45*e,.73*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.73*n)),o.add(new go.PathSegment(go.PathSegment.Move,.38*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.31*e,.27*n)),o.add(new go.PathSegment(go.PathSegment.Line,.56*e,.27*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(.335*e,(1-.555)*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.335*e,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,e,.68*n,.88*e,.46*n,.98*e,.54*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.335*e,(1-.555)*n,.02*e,.54*n,.12*e,.46*n)),o.add(new go.PathSegment(go.PathSegment.Line,.365*e,.405*n));var a=.5-.285,s=.5,l=a,u=Math.PI/4,c=4*(1-Math.cos(u))/(3*Math.sin(u)),h=a,d=a,f=c*h,p=c*d;o.add(new go.PathSegment(go.PathSegment.Bezier,.285*e,l*n,(s-(f+h)/2)*e,(l+(d+p)/2)*n,.285*e,(l+p)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,s*e,0*n,.285*e,(l-p)*n,(s-f)*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(s+h)*e,l*n,(s+f)*e,0*n,(s+h)*e,(l-p)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.635*e,.405*n,(s+h)*e,(l+p)*n,(s+(f+h)/2)*e,(l+(d+p)/2)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.635*e,.405*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.335*e,.595*n));var g=new go.PathFigure(.2*e,n,!1);i.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.2*e,.8*n));var m=new go.PathFigure(.8*e,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.8*e,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,n).close());var o=new go.PathFigure(.2*e,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventError",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,.5*n).close()),i})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(e,n,!1);i.add(o);var a=new go.PathFigure(.1*e,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n).close()),i})),go.Shape.defineFigureGenerator("Caution",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.05*e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,.8*n,0,n,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.55*e,.1*n,.5*e,0,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.95*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,n,e,n,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*e,n));var o=.05;return r.add(new go.PathSegment(go.PathSegment.Move,.45*e,.875*n)),r.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*e,.875*n,o*e,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.325*n,.575*e,.725*n,.625*e,.375*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.75*n,.375*e,.375*n,.425*e,.725*n)),i})),go.Shape.defineFigureGenerator("Recycle",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.45*e,.95*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.185*e,.85*n,.17*e,.95*n,.15*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.235*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.625*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.275*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*e,.575*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.1875*e,.95*n,0,.675*n,0,.7*n)),r.add(new go.PathSegment(go.PathSegment.Move,.45*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.775*n)),r.add(new go.PathSegment(go.PathSegment.Line,.22*e,.775*n));var o=new go.PathFigure(.475*e,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.225*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*e,.175*n)),o.add(new go.PathSegment(go.PathSegment.Line,.325*e,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,.05*n,.35*e,0,.375*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.575*e,.375*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*e,.315*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*e,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*e,0,.65*e,.05*n,.625*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.38*e,.0105*n));var a=new go.PathFigure(.675*e,.575*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.875*e,.525*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.85*e,.95*n,e,.8*n,e,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,.95*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,.725*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,.7*e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Move,.675*e,.575*n)),a.add(new go.PathSegment(go.PathSegment.Line,.775*e,.775*n)),i})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(t,e,n){var i=new go.Geometry,r=.5,o=.5*u,a=new go.PathFigure(e,r*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,r*e,n,e,(r+o)*n,(r+o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,r*n,(r-o)*e,n,0,(r+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,r*e,0,0,(r-o)*n,(r-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,r*n,(r+o)*e,0,e,(r-o)*n));var s=new go.PathFigure(r*e,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*e,.15*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*e,n)),s.add(new go.PathSegment(go.PathSegment.Line,r*e,.85*n)),s.add(new go.PathSegment(go.PathSegment.Move,0,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.15*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.85*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.58*e,.1*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.78*e,.54*n)),i})),go.Shape.defineFigureGenerator("Package",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.15*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,.15*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*e,.15*n).close()),i.spot1=new go.Spot(0,.1),i.spot2=new go.Spot(1,1),i})),go.Shape.defineFigureGenerator("Class",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.2*n).close());var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,.5*n).close()),i})),go.Shape.defineFigureGenerator("Component",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n).close());var o=new go.PathFigure(0,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var a=new go.PathFigure(0,.6*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),i})),go.Shape.defineFigureGenerator("Boat Shipment",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.15*e,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.6*n));var o=new go.PathFigure(.15*e,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*e,.6*n)),i})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n).close()),i})),go.Shape.defineFigureGenerator("Workcell",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Supermarket",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Move,e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),r.add(new go.PathSegment(go.PathSegment.Move,e,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),i})),go.Shape.defineFigureGenerator("TruckShipment",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(e,.8*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.8*n).close());var a=.1,s=.1*u,l=.2,c=.9,h=new go.PathFigure((l-a)*e,c*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-a)*n,(l-a)*e,(c-s)*n,(l-s)*e,(c-a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*e,c*n,(l+s)*e,(c-a)*n,(l+a)*e,(c-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c+a)*n,(l+a)*e,(c+s)*n,(l+s)*e,(c+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*e,c*n,(l-s)*e,(c+a)*n,(l-a)*e,(c+s)*n).close()),a=.1,s=.1*u,l=.8,c=.9;var d=new go.PathFigure((l-a)*e,c*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-a)*n,(l-a)*e,(c-s)*n,(l-s)*e,(c-a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*e,c*n,(l+s)*e,(c-a)*n,(l+a)*e,(c-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c+a)*n,(l+a)*e,(c+s)*n,(l+s)*e,(c+a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*e,c*n,(l-s)*e,(c+a)*n,(l-a)*e,(c+s)*n).close()),i})),go.Shape.defineFigureGenerator("KanbanPost",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.2*e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),i})),go.Shape.defineFigureGenerator("Forklift",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0));var o=new go.PathFigure(0,.5*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var a=new go.PathFigure(.5*e,.8*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.8*n));var s=new go.PathFigure(.5*e,.7*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,.7*n));var l=.1,c=.1*u,h=.1,d=.9,f=new go.PathFigure((h-l)*e,d*n,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-l)*n,(h-l)*e,(d-c)*n,(h-c)*e,(d-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*e,d*n,(h+c)*e,(d-l)*n,(h+l)*e,(d-c)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+l)*n,(h+l)*e,(d+c)*n,(h+c)*e,(d+l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*e,d*n,(h-c)*e,(d+l)*n,(h-l)*e,(d+c)*n)),l=.1,c=.1*u,h=.4,d=.9;var p=new go.PathFigure((h-l)*e,d*n,!0);return i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-l)*n,(h-l)*e,(d-c)*n,(h-c)*e,(d-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*e,d*n,(h+c)*e,(d-l)*n,(h+l)*e,(d-c)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+l)*n,(h+l)*e,(d+c)*n,(h+c)*e,(d+l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*e,d*n,(h-c)*e,(d+l)*n,(h-l)*e,(d+c)*n)),i})),go.Shape.defineFigureGenerator("RailShipment",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,.4*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.4*n).close());var o=new go.PathFigure(.45*e,.7*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.55*e,.7*n));var a=new go.PathFigure(.55*e,.4*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.4*n).close());var s=.05,l=.05*u,c=.175,h=.95,d=new go.PathFigure((c-s)*e,h*n,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n));s=.05,l=.05*u,c=.375,h=.95;var f=new go.PathFigure((c-s)*e,h*n,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n));s=.05,l=.05*u,c=.625,h=.95;var p=new go.PathFigure((c-s)*e,h*n,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n));s=.05,l=.05*u,c=.825,h=.95;var g=new go.PathFigure((c-s)*e,h*n,!0);i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n).close());var m=new go.PathFigure(0,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,e,n).close()),i})),go.Shape.defineFigureGenerator("Warehouse",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.2*n).close());var a=new go.PathFigure(.15*e,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.15*e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.15*e,n).close());var s=.05,l=.05*u,c=.35,h=.775,d=new go.PathFigure(.3*e,h*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,.725*n,.3*e,(h-l)*n,(c-l)*e,.725*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,.725*n,(c+s)*e,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,h*n,(c-l)*e,(h+s)*n,.3*e,(h+l)*n).close()),i})),go.Shape.defineFigureGenerator("ControlCenter",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.1*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n).close()),i})),go.Shape.defineFigureGenerator("Bluetooth",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),i})),go.Shape.defineFigureGenerator("Globe",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,.75*e,0,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,.75*n,.75*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*e,n,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,.25*n,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,.15*e,.25*n,.15*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,.85*e,.75*n,.85*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*e,.15*n,.35*e,.3*n,.65*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*e,.85*n,.35*e,.7*n,.65*e,.7*n)),i})),go.Shape.defineFigureGenerator("Wave",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.25*n,.1*e,0,.2*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*e,.25*n,.425*e,.5*n,.575*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.25*n,.8*e,0,.9*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.75*n,.1*e,.5*n,.2*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*e,.75*n,.425*e,n,.575*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.75*n,.8*e,.5*n,.9*e,.5*n)),i})),go.Shape.defineFigureGenerator("Operator",(function(t,e,n){var i=new go.Geometry,r=.3,o=.3*u,a=.5,s=.7,l=new go.PathFigure(.2*e,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,.2*e,(s-o)*n,(a-o)*e,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,s*n,(a+o)*e,(s-r)*n,.8*e,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,1*n,.8*e,(s+o)*n,(a+o)*e,1*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,s*n,(a-o)*e,1*n,.2*e,(s+o)*n));var c=new go.PathFigure(0,.7*n,!1);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,e,.7*n,0,0,e,0)),i})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.65*n,.65*e,.3*n,.65*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,.35*e,.5*n,.35*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*e,.6*n,.1*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.65*n,.2*e,n,.35*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,n,.7*e,.6*n,.9*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.65*n,.8*e,n,.65*e,.95*n)),i})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,n,0,n,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.4*n,.8*e,n,.85*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),i})),go.Shape.defineFigureGenerator("Battery",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.1*n));var o=new go.PathFigure(0,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.4*n)),i})),go.Shape.defineFigureGenerator("Delete",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=.5,s=new go.PathFigure(0*e,a*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0*n,0*e,(a-r)*n,(o-r)*e,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*e,a*n,(o+r)*e,0*n,1*e,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,1*n,1*e,(a+r)*n,(o+r)*e,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*e,a*n,(o-r)*e,1*n,0*e,(a+r)*n));var l=new go.PathFigure(.15*e,.5*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.85*e,.5*n)),i})),go.Shape.defineFigureGenerator("Flag",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.1*n,.15*e,0,.35*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.1*n,.65*e,.2*n,.85*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.5*n,.85*e,.6*n,.65*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*e,.4*n,.15*e,.4*n).close()),i})),go.Shape.defineFigureGenerator("Help",(function(t,e,n){var i=new go.Geometry,r=.5,o=.5*u,a=.5,s=.5,l=new go.PathFigure((a-r)*e,s*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n).close()),r=.05,o=.05*u,a=.5,s=.8;var c=new go.PathFigure((a-r)*e,s*n,!1);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n).close()),c.add(new go.PathSegment(go.PathSegment.Move,.5*e,.7*n)),c.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.2*n,.75*e,.475*n,.75*e,.225*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.35*n,.4*e,.2*n,.3*e,.25*n)),i})),go.Shape.defineFigureGenerator("Location",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*e,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,.975*e,.025*n,.5*e,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*e,.5*n,.5*e,0,.025*e,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*e,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*e,.3*n,.1*e,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*e,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.3*n,.25*e,0,.75*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.3*n)),i})),go.Shape.defineFigureGenerator("Unlocked",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*e,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.3*n,.25*e,0,.75*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.35*n)),i})),go.Shape.defineFigureGenerator("Gear",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.9375*e,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*e,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*e,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*e,.3316875*n,.79840625*e,.39915625*n,.7834375*e,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*e,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*e,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*e,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*e,.19378125*n,.64228125*e,.2188125*n,.603875*e,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*e,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*e,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*e,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*e,.239375*n,.39759375*e,.20190625*n,.36053125*e,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*e,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*e,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*e,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*e,.4375*n,.21765625*e,.36059375*n,.201875*e,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*e,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*e,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*e,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*e,.67596875*n,.20221875*e,.603875*n,.21884375*e,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*e,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*e,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*e,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*e,.80621875*n,.36353125*e,.78340625*n,.3991875*e,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*e,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*e,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*e,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*e,.760625*n,.602375*e,.79809375*n,.63946875*e,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*e,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*e,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*e,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*e,.56246875*n,.78234375*e,.63940625*n,.798125*e,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*e,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*e,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*e,.5*n,.1*e,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,.3*n,0,.375*n,.05*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.45*e,.075*n,.3*e,.225*n,.4*e,.175*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.525*e,.075*n,.46*e,.05*n,.525*e,.05*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.4*n,.525*e,.275*n,.475*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,.55*n,e,.4*n,e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.425*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*e,.7*n,.675*e,.55*n,.675*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.575*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.575*e,.85*n,.65*e,.7*n,.65*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.525*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.535*e,n,.61*e,.85*n,.61*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*e,n,0,n).close()),i})),go.Shape.defineFigureGenerator("Map",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.8*n)),i})),go.Shape.defineFigureGenerator("Eject",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var o=new go.PathFigure(0,.6*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,0).close()),i})),go.Shape.defineFigureGenerator("Pencil",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*e,.1*n)).add(new go.PathSegment(go.PathSegment.Line,e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*e,n)).add(new go.PathSegment(go.PathSegment.Line,.1*e,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(1*e,1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n).close());var o=new go.PathFigure(.126*e,.85*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.126*e,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*e,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*e,.85*n).close());var a=new go.PathFigure(.402*e,.85*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.402*e,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*e,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*e,.85*n).close());var s=new go.PathFigure(.678*e,.85*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.678*e,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*e,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*e,.85*n).close());var l=new go.PathFigure(.5*e,.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.196*e,.3*n)),l.add(new go.PathSegment(go.PathSegment.Line,.804*e,.3*n).close()),i})),go.Shape.defineFigureGenerator("Staircase",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),i})),go.Shape.defineFigureGenerator("5Bars",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.184*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.184*e,n*(1-.184)).close());var o=new go.PathFigure(.204*e,n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.204*e,n*(1-.184))),o.add(new go.PathSegment(go.PathSegment.Line,.388*e,.632*n)),o.add(new go.PathSegment(go.PathSegment.Line,.388*e,1*n).close());var a=new go.PathFigure(.408*e,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.408*e,.632*n)),a.add(new go.PathSegment(go.PathSegment.Line,.592*e,n*(1-.552))),a.add(new go.PathSegment(go.PathSegment.Line,.592*e,1*n).close());var s=new go.PathFigure(.612*e,n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.612*e,n*(1-.552))),s.add(new go.PathSegment(go.PathSegment.Line,.796*e,.264*n)),s.add(new go.PathSegment(go.PathSegment.Line,.796*e,1*n).close());var l=new go.PathFigure(.816*e,n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.816*e,.264*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-.184*5))),l.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n).close()),i})),go.Shape.defineFigureGenerator("PC",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0).close());var o=new go.PathFigure(.055*e,.07*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.245*e,.07*n)),o.add(new go.PathSegment(go.PathSegment.Line,.245*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.055*e,.1*n).close());var a=new go.PathFigure(.055*e,.13*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.245*e,.13*n)),a.add(new go.PathSegment(go.PathSegment.Line,.245*e,.16*n)),a.add(new go.PathSegment(go.PathSegment.Line,.055*e,.16*n).close());var s=new go.PathFigure(.055*e,.18*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.245*e,.18*n)),s.add(new go.PathSegment(go.PathSegment.Line,.245*e,.21*n)),s.add(new go.PathSegment(go.PathSegment.Line,.055*e,.21*n).close());var l=new go.PathFigure(1*e,0,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,.65*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*e,.65*n).close()),i})),go.Shape.defineFigureGenerator("Plane",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.55*e,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.475*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.35*e,.525*n,0,.4*n,.225*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.475*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,.2*n,.975*e,0,e,.08*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,n).close()),i})),go.Shape.defineFigureGenerator("Key",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(1*e,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,.575*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.6*n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.17*e,.425*n)),r.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*e,.5*n,.075*e,.075*n).close()),i})),go.Shape.defineFigureGenerator("FilmTape",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*e,.3*e,.055*e)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.28),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.28),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.336),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.336),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.392),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.392),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.728),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.728),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.84),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.84),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n));var o=new go.PathFigure(0,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*e,.3*e,.055*e)),o.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n));var a=new go.PathFigure(.11*e,.1*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*e,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.11*e,.8*n).close());var s=new go.PathFigure(.37933333*e,.1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*e,.1*n)),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*e,.8*n)),s.add(new go.PathSegment(go.PathSegment.Line,.37933333*e,.8*n).close());var l=new go.PathFigure(e*(.59266666+.056),.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,e*(.83399999+.056),.1*n)),l.add(new go.PathSegment(go.PathSegment.Line,e*(.83399999+.056),.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,e*(.59266666+.056),.8*n).close()),i})),go.Shape.defineFigureGenerator("FloppyDisk",(function(t,e,n){var i=new go.Geometry,r=8*u,o=new go.PathFigure(8,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.86*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*e,.14*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n-8)),o.add(new go.PathSegment(go.PathSegment.Bezier,e-8,n,e,n-r,e-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,8,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,0,8)),o.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,r,r,0).close());var a=new go.PathFigure(.83*e,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.83*e,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*e,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*e,0*n).close());var s=new go.PathFigure(.83*e,1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.83*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*e,1*n).close());var l=new go.PathFigure(.78*e,.05*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.66*e,.05*n)),l.add(new go.PathSegment(go.PathSegment.Line,.66*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.78*e,.25*n).close()),i})),go.Shape.defineFigureGenerator("SpeechBubble",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=15),i=Math.min(i,e/3);var r=(i=Math.min(i,n/3))*u,o=.8*n,a=new go.Geometry,s=new go.PathFigure(i,0,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e-i,0)),s.add(new go.PathSegment(go.PathSegment.Bezier,e,i,e-r,0,e,r)),s.add(new go.PathSegment(go.PathSegment.Line,e,o-i)),s.add(new go.PathSegment(go.PathSegment.Bezier,e-i,o,e,o-r,e-r,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*e,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),s.add(new go.PathSegment(go.PathSegment.Line,.55*e,o)),s.add(new go.PathSegment(go.PathSegment.Line,i,o)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,o-i,r,o,0,o-r)),s.add(new go.PathSegment(go.PathSegment.Line,0,i)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()),r>1?(a.spot1=new go.Spot(0,0,r,r),a.spot2=new go.Spot(1,.8,-r,-r)):(a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.8)),a})),go.Shape.defineFigureGenerator("Repeat",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,.45*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.45*n).close());var o=new go.PathFigure(1*e,.55*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.55*n).close()),i})),go.Shape.defineFigureGenerator("Windows",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*e,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*e,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*e,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*e,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*e,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,.1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,.9*n).close());var o=new go.PathFigure(.1*e,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*e,.285*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*e,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*e,.25*n).close());var a=new go.PathFigure(.28*e,.37*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.37*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.41*n)),a.add(new go.PathSegment(go.PathSegment.Line,.28*e,.41*n).close()),i})),go.Shape.defineFigureGenerator("Beaker",(function(t,e,n){var i=new go.Geometry,r=15*u,o=new go.PathFigure(.62*e,.475*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n-15)),o.add(new go.PathSegment(go.PathSegment.Bezier,e-15,n,e,n-r,e-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,15,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,.38*e,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.38*e,.03*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.62*e,.03*n).close()),r>1?(i.spot1=new go.Spot(0,0,r,r),i.spot2=new go.Spot(1,1,-r,-r)):(i.spot1=go.Spot.TopLeft,i.spot2=go.Spot.BottomRight),i})),go.Shape.defineFigureGenerator("Download",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,n*(1-o)).close());var a=new go.PathFigure(.4*e,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.26*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.66*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,0*n).close()),i})),go.Shape.defineFigureGenerator("Bin",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,1*n,!0);i.add(r);var o=.1/.3;return r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,n*(1-o)).close()),i})),go.Shape.defineFigureGenerator("Upload",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,n*(1-o)).close());var a=new go.PathFigure(.5*e,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.26*e,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*e,.25*n).close()),i})),go.Shape.defineFigureGenerator("EmptyDrink",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.15*e,0*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n).close()),i})),go.Shape.defineFigureGenerator("Drink",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.15*e,0*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n).close());var o=new go.PathFigure(.235*e,.28*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.765*e,.28*n)),o.add(new go.PathSegment(go.PathSegment.Line,.655*e,.97*n)),o.add(new go.PathSegment(go.PathSegment.Line,.345*e,.97*n).close()),i})),go.Shape.defineFigureGenerator("4Arrows",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.25*n).close()),i})),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},35702:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var t={},e="5.0",n={},i=null,r=!1,o=!1,a=null,s=!1,l=null,u=null,c=0;c4?parseFloat(t):5};function S(){try{return window.self!==window.top}catch(t){return!0}}function P(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}t.setHTML5Codebase=function(t,e){u=t,R(t,e)},t.setJavaCodebase=t.setJavaCodebaseVersion=t.isCompiledInstalled=t.setPreCompiledScriptPath=t.setPreCompiledResourcePath=function(){},t.setHTML5CodebaseVersion=function(t,e){var n=parseFloat(t);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=t,D(t,e))},t.getHTML5CodebaseVersion=function(){return g},t.getParameters=function(){return n},t.setFontsCSSURL=function(t){b=t},t.setGiacJSURL=function(t){},t.setJNLPFile=function(t){t},t.setJNLPBaseDir=function(t){},t.inject=function(){function e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,l=0;l=5)return!0;var e=t.getAppletObject();return!(!e||"function"!=typeof e.recalculateEnvironments)&&(e.recalculateEnvironments(),!0)},t.startAnimation=function(){var e=t.getAppletObject();return!(!e||"function"!=typeof e.startAnimation)&&(e.startAnimation(),!0)},t.stopAnimation=function(){var e=t.getAppletObject();return!(!e||"function"!=typeof e.stopAnimation)&&(e.stopAnimation(),!0)},t.getAppletObject=function(){var t=void 0!==n.id?n.id:"ggbApplet";return window[t]},t.resize=function(){};var M=function(t){return t&&"false"!==t},E=function(e,n,i){x(g)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==g||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(g)<=4.4)M(n.showToolBar)&&(n.height-=7),M(n.showAlgebraInput)&&(n.height-=37),n.width<605&&M(n.showToolBar)&&(n.width=605,a=605);else{var c=100;(M(n.showToolBar)||M(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),c=M(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(t){var n=e.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(y),window.GGBT_wsf_view&&$(window).trigger("resize"),f(t)},w||y.appendChild(S)):o.appendChild(S),y.appendChild(o),w||e.appendChild(y),setTimeout((function(){t.resize()}),1)}function P(t,e){e&&"function"==typeof e.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(t,e.appletOnLoad):renderGGBElement(t),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",e)}function k(t,e){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:t,params:e}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(t){P(t.article,t.params)})),html5AppletsToProcess=null)},x(g)<5&&(t.className+=" geogebraweb")):P(t,e)}if(r){scriptLoadStarted=!0;for(var C=0;C0?(r.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):E(r,e,!1),window.GGBT_wsf_view.launchFullScreen(o)}else p=i,E(t,e,!1);if(!window.GGBT_wsf_view)for(a=0;at/4*3&&(s=t/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var c=(t-s)/2,h=(e-l)/2;a.style.left=c+"px",a.style.top=h+"px",r.appendChild(a)}return r.appendChild(u),r},B=function(t){return"html5"===(t=t.toLowerCase())||"screenshot"===t?t:"html5"},O=["web","webSimple","web3d","tablet","tablet3d","phone"],D=function(t,e){if(g=t,e)R(g,!0);else{var o,a,s=!r;if(s){var l=x(g);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var u=g.indexOf("//");for(var c in a=u>0?g:0===u?o+g:"https://www.geogebra.org/apps/5.2.814.0/",O)if(g.slice(-1*O[c].length)===O[c]||g.slice(-1*(O[c].length+1))===O[c]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||M(n.showToolBar)||M(n.showMenuBar)||M(n.showAlgebraInput)||M(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(t,e){if(t.requirejs)d=t;else{"/"!==t.slice(-1)&&(t+="/"),d=t,null===e&&(e=-1===t.indexOf("http")),f=e,m="web.nocache.js",v=!1;var n=d.split("/");n.length>1&&(e||"webSimple"!==n[n.length-2]?O.indexOf(n[n.length-2])>=0&&(m=n[n.length-2]+".nocache.js"):(m="webSimple.nocache.js",v=!0)),n=t.split("/"),"test"===(g=n[n.length-3]).substr(0,4)?g=g.substr(4,1)+"."+g.substr(5,1):"war"!==g.substr(0,3)&&"beta"!==g.substr(0,4)||(g="5.0");var i=parseFloat(g);NaN!==i&&i<5&&t.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),D("5.0",e))}},F=function(t,e){window.console&&window.console.log&&(!e||void 0===e.showLogging||e.showLogging&&"false"!==e.showLogging)&&console.log(t)};function z(){var t=e;null!==l?t=l:parseFloat(t)<5&&(t="5.0"),D(t,!1),null!==u&&R(u,f),s=!0}return void 0!==n.material_id?k(z):z(),t},GGBAppletUtils=function(){"use strict";function t(){return void 0!==window.GGBT_wsf_edit}function e(t,e){1!=e?(t.style.transformOrigin="0% 0% 0px",t.style.webkitTransformOrigin="0% 0% 0px",t.style.transform="scale("+e+","+e+")",t.style.webkitTransform="scale("+e+","+e+")",t.style.maxWidth="initial",null!==t.querySelector(".ggb_preview")&&(t.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==t.querySelectorAll(".ggb_preview img")[0]&&(t.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==t.querySelectorAll(".ggb_preview img")[1]&&(t.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(t.style.transform="none",t.style.webkitTransform="none")}function n(t,e,n,i,r){if(t.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,s=null!=t.noScaleMargin&&t.noScaleMargin,l=(o=t.autoHeight)&&"false"!==o,u=function(t,e,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var s=t.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){a=s;break}s=s.parentNode}var l=0,u=0,c=0,h=0,d=0,f=0,p=0;if(a)l=a.offsetWidth,u=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),u=Math.min(window.innerHeight,document.documentElement.clientHeight),c=l):(l=window.innerWidth,u=window.innerHeight,c=window.innerWidth),t){var g=t.getBoundingClientRect();g.left>0&&g.left<=l&&(void 0===r||!r)&&("rtl"===document.dir?(d=l-g.width-g.left,f=c<=480?10:30):(f=g.left,d=c<=480?10:30),h=f+d)}t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(t.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(h=40,p=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(h=0,p=40))}return t&&((void 0===n||!n)&&e>0&&e+h1&&(a=!0)),e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),t.hasOwnProperty("disableAutoScale")&&t.disableAutoScale?o:(r=n(t,e,a,i,t.scaleContainerClass),!a||t.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(t){var e=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=t.getBoundingClientRect(),r=(e-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),t.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(t.style.left=r<40?"40px":r+"px",t.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(t.style.top=o<40?"40px":o+"px",t.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(o,n);t()&&a.setAttribute("data-param-scale",s);for(var l=null,u=0;u=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(t){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(t){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(t){var e=c[t];return null==e?null:e},r=d,webModule.__errFn=e}function B(){function t(t){var e=t.lastIndexOf(rb);-1==e&&(e=t.length);var n=t.indexOf(sb);-1==n&&(n=t.length);var i=t.lastIndexOf(tb,Math.min(n,e));return i>=O?t.substring(O,i+P):W}var e,n=null!=(e=__gwt_getMetaProperty(wb))?e:W;return n==W&&(n=function(){for(var e=o.getElementsByTagName(_),n=O;nO?t[t.length-P].href:W}()),n==W&&function(){var t=o.location;return t.href==t.protocol+zb+t.host+t.pathname+t.search+t.hash}()&&(n=t(o.location.href)),n=function(e){if(e.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=e+vb,e=t(n.src)}return e}(n),n}function C(t){return t.match(/^\//)||t.match(/^[a-zA-Z]+:\/\//)?t:webModule.__moduleBase+t}function D(){var t,e=O,i=[],o=[];function a(t){var e=o[t](),n=i[t];if(e in n)return e;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(t,a,e),null}if(__gwt_isKnownPropertyValue=function(t,e){return e in i[t]},webModule.__getPropMap=function(){var t={};for(var e in i)i.hasOwnProperty(e)&&(t[e]=a(e));return t},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(t=Cb).indexOf(Db);-1!=s&&(e=parseInt(t.substring(s+P),$),t=t.substring(O,s))}catch(t){}return webModule.__softPermutationId=e,C(t+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(t){var e=s[L].bindings;s[L].bindings=function(){for(var n=e?e():{},i=t[webModule.__softPermutationId],r=O;r1&&void 0!==c[1]&&c[1],l=a?e:G()(G()({},o),i),f(!0),s(l),n.next=6,t(l);case 6:return u=n.sent,f(!1),v(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}();return[o,d,y,m,v]}var Pt=[{id:"type",name:"筛选",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{id:"diff",name:"难度",children:[{name:"全部",id:"",type:"diff"},{name:"初级",id:1,type:"diff"},{name:"中级",id:2,type:"diff"},{name:"中高级",id:3,type:"diff"},{name:"高级",id:4,type:"diff"}]}],kt=(0,d.connect)((function(t){return{classroomList:t.classroomList,loading:t.loading}}))((function(t){var e,n,i=t.classroomList,o=t.loading,s=t.dispatch,u=t.cb,c=t.shixunIds,f=void 0===c?[]:c,p=((0,d.useParams)(),(0,d.useLocation)(),X.Z.useForm()),g=(l()(p,1)[0],i.shixunLists),m=(0,h.useState)([]),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)([]),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)([]),C=l()(k,2),A=C[0],M=C[1],E=(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.isMissionLevel)||!1,L=St(lt.xG,{}),T=l()(L,3),N=T[1],j=T[2],I=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(t){return!!t})),B=(0,h.useState)({page:1,type:(0,xt.Ny)()?"all":"mine",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count",group_id:null,need:1,load_jupyter_evaluate:!0,is_subject:!0}),O=l()(B,2),D=O[0],R=O[1];(0,h.useEffect)((function(){"选用实践项目"===i.actionTabs.key&&(F(),D.page=1,s({type:"classroomList/getShixunLists",payload:G()({},D)}))}),[i.actionTabs.key]);var F=function(){var t=a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 2:e=t.sent,w([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(Y()((null==e?void 0:e.groups)||[])));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),z=function(){s({type:"classroomList/setActionTabs",payload:{}}),R({page:1,type:(0,xt.Ny)()?"all":"mine",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count",group_id:null,need:1,load_jupyter_evaluate:!0,is_subject:!0}),M([])};return"选用实践项目"!==i.actionTabs.key?null:(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"选用实践项目"===i.actionTabs.key,rootClassName:ut,footer:(0,at.jsxs)("div",{className:"flex justify-center gap-8px",children:[(0,at.jsx)(K.ZP,{size:"middle",onClick:function(){z(),P([]),u("取消")},children:" 取消 "}),(0,at.jsx)(K.ZP,{size:"middle",loading:N,onClick:a()(r()().mark((function t(){var e,n,o,a,s,l;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=S[o],!f.includes(e)){t.next=4;break}return H.ZP.info("请勿重复选择:".concat(null==g||null===(n=g.shixun_list)||void 0===n||null===(n=n.find((function(t){return t.id===e})))||void 0===n?void 0:n.title)),t.abrupt("return",{v:void 0});case 4:case"end":return t.stop()}}),t)})),o=0;case 2:if(!(o<(null==S?void 0:S.length))){t.next=10;break}return t.delegateYield(e(),"t0",4);case 4:if(!(n=t.t0)){t.next=7;break}return t.abrupt("return",n.v);case 7:o++,t.next=2;break;case 10:if(a=[],E&&A.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.push.apply(a,Y()(t.filter((function(t){return-1!==t}))))})),!E){t.next=18;break}return t.next=15,j({stage_id:i.actionTabs.id,subject_id:i.actionTabs.subject_id,challenge_ids:a});case 15:t.t1=t.sent,t.next=21;break;case 18:return t.next=20,(0,lt.Ep)({id:i.actionTabs.id,subject_id:i.actionTabs.subject_id,shixun_ids:Y()(S)});case 20:t.t1=t.sent;case 21:s=t.t1,P([]),(E?0===(null==s?void 0:s.status):null==s?void 0:s.shixuns_list)&&(z(),u(E?null==s||null===(l=s.data)||void 0===l?void 0:l.list:s.shixuns_list));case 24:case"end":return t.stop()}}),t)}))),type:"primary",children:" 确定 "})]}),children:[(0,at.jsx)("section",{className:"tc",children:(0,at.jsx)(st,{onChange:function(t){R(G()(G()(G()({},D),t),{},{page:1})),s({type:"classroomList/getShixunLists",payload:G()(G()(G()({},D),t),{},{page:1})})}})}),(0,at.jsx)(_.Z,{spinning:o.effects["classroomList/getShixunLists"],children:(0,at.jsxs)("section",{className:"edu-container",children:[Pt.map((function(t,e){var n;return(0,at.jsxs)("ul",{className:ct,children:[(0,at.jsx)("li",{children:t.name}),null==t||null===(n=t.children)||void 0===n?void 0:n.map((function(e,n){return(0,xt.Ny)()||"type"!==t.id||"全部"!==e.name?(0,at.jsx)("li",{className:D[t.id]==e.id?ht:"",onClick:function(){D[t.id]=e.id,D.page=1,R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:(0,at.jsx)("strong",{children:e.name})},n):(0,at.jsx)(at.Fragment,{})}))]},e)})),"mine"===D.type&&(0,at.jsxs)("ul",{className:ct,children:[(0,at.jsx)("li",{children:"目录"}),null==y?void 0:y.map((function(t,e){return(0,at.jsx)("li",{className:D.group_id==t.id?ht:"",onClick:function(){D.group_id=t.id,D.page=1,R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:(0,at.jsx)("strong",{children:t.name})},t.name)}))]}),(0,at.jsxs)(Q.Z,{align:"middle",children:[(0,at.jsx)(J.Z,{flex:"1",className:vt,children:I.map((function(t,e){return(0,at.jsx)(K.ZP,{className:"mr20",type:D.sort===t.id?"primary":"default",onClick:function(){D.sort=t.id,R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:t.name},e)}))}),(0,at.jsx)(J.Z,{className:"c-grey-999",children:(0,at.jsx)("div",{className:yt,children:(0,at.jsx)("ul",{children:(0,at.jsxs)("li",{className:"current",onClick:function(){D.order="asc"===D.order?"desc":"asc",R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:["学习人数",(0,at.jsxs)("p",{className:"edu-sorter current ".concat(D.order),children:[(0,at.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,at.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})})})})]}),null==g||null===(n=g.shixun_list)||void 0===n?void 0:n.map((function(t,e){var n;return(0,at.jsxs)("div",{className:dt,children:[!E&&(0,at.jsx)($.Z,{checked:S.includes(t.id),value:t.id,onChange:function(e){S.indexOf(t.id);S.indexOf(t.id)>-1?P(S.filter((function(e){return e!==t.id}))):P(S.concat(t.id))},disabled:"未发布"==(null==t?void 0:t.shixun_tag_num_name)}),(0,at.jsxs)("div",{className:ft,children:[(0,at.jsx)("div",{className:pt,children:(0,at.jsxs)("div",{className:gt,children:[(0,at.jsx)("a",{className:"c-black",href:"/shixuns/".concat(null==t?void 0:t.identifier,"/challenges"),target:"_blank",children:(0,at.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:t.title}})}),(0,xt.Ny)()&&1===(null==t?void 0:t.mark_status)&&(0,at.jsx)(tt.Z,{title:null==t?void 0:t.mark_content,children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,xt.Ny)()&&2===(null==t?void 0:t.mark_status)&&(0,at.jsx)(tt.Z,{title:null==t?void 0:t.mark_content,children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,xt.Ny)()&&3===(null==t?void 0:t.mark_status)&&(0,at.jsx)(tt.Z,{title:null==t?void 0:t.mark_content,children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),"未发布"==(null==t?void 0:t.shixun_tag_num_name)&&(0,at.jsx)(tt.Z,{zIndex:1e4,title:"实训需发布后才能选用到课程中,点击名称可前往实训详情",children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]})}),(0,at.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,at.jsx)("span",{className:mt,dangerouslySetInnerHTML:{__html:t.description}})}),E?(0,at.jsx)(tt.Z,{title:null!=t&&t.task_pass&&"未发布"!=(null==t?void 0:t.shixun_tag_num_name)?"":"禁止跳关和未发布的实训任务关卡,不能选用到课程中",children:(0,at.jsx)("div",{className:"mt15",children:(0,at.jsx)($.Z.Group,{disabled:!(null!=t&&t.task_pass)||"未发布"==(null==t?void 0:t.shixun_tag_num_name),options:[{value:-1,label:"全选"}].concat(Y()((null==t||null===(n=t.challenges)||void 0===n?void 0:n.map((function(t,e){return{value:null==t?void 0:t.id,label:"第".concat(null==t?void 0:t.position,"关 ").concat(null==t?void 0:t.subject)}})))||[])),value:(null==A?void 0:A[e])||[],onChange:function(n){var i,r,o,a=(null==n?void 0:n.filter((function(t){return-1!==t})))||[],s=(null==t||null===(i=t.challenges)||void 0===i?void 0:i.map((function(t){return null==t?void 0:t.id})))||[];null!=n&&n.includes(-1)?A[e]=null!=A&&null!==(r=A[e])&&void 0!==r&&r.includes(-1)?(null==a?void 0:a.length)!==(null==s?void 0:s.length)?a:[]:[].concat(Y()(s),[-1]):A[e]=null!=A&&null!==(o=A[e])&&void 0!==o&&o.includes(-1)?[]:(null==n?void 0:n.length)===(null==s?void 0:s.length)?[].concat(Y()(s),[-1]):n;M(Y()(A))}})})}):(0,at.jsx)("div",{className:" mt15",children:t.challenge_names.map((function(t,e){return(0,at.jsxs)("span",{className:"mr30 font12",children:["第",e+1,"关 ",t," "]},e)}))}),(0,at.jsx)(et.Z,{dashed:!0}),(0,at.jsxs)("div",{className:"c-light-black mt20 font12",style:{display:"flex",justifyContent:"space-between"},children:[(0,at.jsxs)("div",{children:[(0,at.jsx)(tt.Z,{overlayClassName:bt,title:(0,at.jsx)("div",{children:(0,at.jsx)("span",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.member_user_names}})}),children:(0,at.jsx)("span",{className:wt,dangerouslySetInnerHTML:{__html:null==t?void 0:t.member_user_names}})}),t.author_school_name&&(0,at.jsx)(h.Fragment,{children:(0,at.jsx)("span",{dangerouslySetInnerHTML:{__html:t.author_school_name}})})]}),(0,at.jsxs)("div",{children:[(0,at.jsxs)("span",{className:"mr30",children:["难度系数  ",t.level]}),(0,at.jsxs)("span",{children:["学习人数  ",t.study_count]})]})]})]})]},e)})),(0,at.jsx)("p",{})]})}),(0,at.jsx)("div",{className:"tc",children:(0,at.jsx)(nt.Z,{current:D.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:null==g?void 0:g.shixuns_count,onChange:function(t){D.page=t,s({type:"classroomList/getShixunLists",payload:G()({},D)})}})})]},"bottom")})),Ct=n(91232),At=n.n(Ct),Mt=n(38819),Et=n(92310),Lt=n.n(Et),Tt=n(14809),Nt=n(95190),jt=n(50298),It=n(93664),Bt=n(18929),Ot=n(48736),Dt=n(62646),Rt=n(11592),Ft=n(4635),zt=n(77900),Gt=n(10228),Ut=h.forwardRef((function(t,e){var n=t.prefixCls,i=t.forceRender,r=t.className,o=t.style,a=t.children,s=t.isActive,l=t.role,u=h.useState(s||i),c=(0,jt.Z)(u,2),d=c[0],f=c[1];return h.useEffect((function(){(i||s)&&f(!0)}),[i,s]),d?h.createElement("div",{ref:e,className:Lt()("".concat(n,"-content"),(0,Ft.Z)((0,Ft.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),r),style:o,role:l},h.createElement("div",{className:"".concat(n,"-content-box")},a)):null}));Ut.displayName="PanelContent";var Ht=Ut,_t=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Zt=h.forwardRef((function(t,e){var n=t.showArrow,i=void 0===n||n,r=t.headerClass,o=t.isActive,a=t.onItemClick,s=t.forceRender,l=t.className,u=t.prefixCls,c=t.collapsible,d=t.accordion,f=t.panelKey,p=t.extra,g=t.header,m=t.expandIcon,v=t.openMotion,y=t.destroyInactivePanel,w=t.children,b=(0,Dt.Z)(t,_t),x="disabled"===c,S="header"===c,P="icon"===c,k=null!=p&&"boolean"!=typeof p,C=function(){null==a||a(f)},A="function"==typeof m?m(t):h.createElement("i",{className:"arrow"});A&&(A=h.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(c)?C:void 0},A));var M=Lt()((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),o),"".concat(u,"-item-disabled"),x),l),E={className:Lt()(r,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),S),"".concat(u,"-icon-collapsible-only"),P)),"aria-expanded":o,"aria-disabled":x,onKeyDown:function(t){"Enter"!==t.key&&t.keyCode!==Gt.Z.ENTER&&t.which!==Gt.Z.ENTER||C()}};return S||P||(E.onClick=C,E.role=d?"tab":"button",E.tabIndex=x?-1:0),h.createElement("div",(0,Tt.Z)({},b,{ref:e,className:M}),h.createElement("div",E,i&&A,h.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===c?C:void 0},g),k&&h.createElement("div",{className:"".concat(u,"-extra")},p)),h.createElement(zt.ZP,(0,Tt.Z)({visible:o,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:s,removeOnLeave:y}),(function(t,e){var n=t.className,i=t.style;return h.createElement(Ht,{ref:e,prefixCls:u,className:n,style:i,isActive:o,forceRender:s,role:d?"tabpanel":void 0},w)})))})),Wt=Zt,Vt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var Yt=function(t,e,n){return Array.isArray(t)?function(t,e){var n=e.prefixCls,i=e.accordion,r=e.collapsible,o=e.destroyInactivePanel,a=e.onItemClick,s=e.activeKey,l=e.openMotion,u=e.expandIcon;return t.map((function(t,e){var c=t.children,d=t.label,f=t.key,p=t.collapsible,g=t.onItemClick,m=t.destroyInactivePanel,v=(0,Dt.Z)(t,Vt),y=String(null!=f?f:e),w=null!=p?p:r,b=null!=m?m:o,x=!1;return x=i?s[0]===y:s.indexOf(y)>-1,h.createElement(Wt,(0,Tt.Z)({},v,{prefixCls:n,key:y,panelKey:y,isActive:x,accordion:i,openMotion:l,expandIcon:u,header:d,collapsible:w,onItemClick:function(t){"disabled"!==w&&(a(t),null==g||g(t))},destroyInactivePanel:b}),c)}))}(t,n):(0,Rt.Z)(e).map((function(t,e){return function(t,e,n){if(!t)return null;var i=n.prefixCls,r=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,u=n.openMotion,c=n.expandIcon,d=t.key||String(e),f=t.props,p=f.header,g=f.headerClass,m=f.destroyInactivePanel,v=f.collapsible,y=f.onItemClick,w=!1;w=r?l[0]===d:l.indexOf(d)>-1;var b=null!=v?v:o,x={key:d,panelKey:d,header:p,headerClass:g,isActive:w,prefixCls:i,destroyInactivePanel:null!=m?m:a,openMotion:u,accordion:r,children:t.props.children,onItemClick:function(t){"disabled"!==b&&(s(t),null==y||y(t))},expandIcon:c,collapsible:b};return"string"==typeof t.type?t:(Object.keys(x).forEach((function(t){void 0===x[t]&&delete x[t]})),h.cloneElement(t,x))}(t,e,n)}))},Xt=n(26112);function qt(t){var e=t;if(!Array.isArray(e)){var n=(0,It.Z)(e);e="number"===n||"string"===n?[e]:[]}return e.map((function(t){return String(t)}))}var Kt=h.forwardRef((function(t,e){var n=t.prefixCls,i=void 0===n?"rc-collapse":n,r=t.destroyInactivePanel,o=void 0!==r&&r,a=t.style,s=t.accordion,l=t.className,u=t.children,c=t.collapsible,d=t.openMotion,f=t.expandIcon,p=t.activeKey,g=t.defaultActiveKey,m=t.onChange,v=t.items,y=Lt()(i,l),w=(0,Bt.Z)([],{value:p,onChange:function(t){return null==m?void 0:m(t)},defaultValue:g,postState:qt}),b=(0,jt.Z)(w,2),x=b[0],S=b[1];(0,Ot.ZP)(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var P=Yt(v,u,{prefixCls:i,accordion:s,openMotion:d,expandIcon:f,collapsible:c,destroyInactivePanel:o,onItemClick:function(t){return S((function(){return s?x[0]===t?[]:[t]:x.indexOf(t)>-1?x.filter((function(e){return e!==t})):[].concat((0,Nt.Z)(x),[t])}))},activeKey:x});return h.createElement("div",(0,Tt.Z)({ref:e,className:y,style:a,role:s?"tablist":void 0},(0,Xt.Z)(t,{aria:!0,data:!0})),P)})),Qt=Object.assign(Kt,{Panel:Wt}),Jt=Qt,$t=(Qt.Panel,n(2738)),te=n(62892),ee=n(92343),ne=n(36355),ie=n(19716);var re=h.forwardRef(((t,e)=>{const{getPrefixCls:n}=h.useContext(ne.E_),{prefixCls:i,className:r,showArrow:o=!0}=t,a=n("collapse",i),s=Lt()({[`${a}-no-arrow`]:!o},r);return h.createElement(Jt.Panel,Object.assign({ref:e},t,{prefixCls:a,className:s}))})),oe=n(17313),ae=n(8378),se=n(83116),le=n(37613);const ue=t=>{const{componentCls:e,contentBg:n,padding:i,headerBg:r,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:u,lineType:c,colorBorder:h,colorText:d,colorTextHeading:f,colorTextDisabled:p,fontSize:g,fontSizeLG:m,lineHeight:v,marginSM:y,paddingSM:w,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:P,contentPadding:k}=t,C=`${u}px ${c} ${h}`;return{[e]:Object.assign(Object.assign({},(0,oe.Wf)(t)),{backgroundColor:r,border:C,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:C,"&:last-child":{[`\n            &,\n            & > ${e}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:f,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:g*v,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${e}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{fontSize:P,svg:{transition:`transform ${S}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:d,backgroundColor:n,borderTop:C,[`& > ${e}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:a,paddingInlineStart:x,[`> ${e}-expand-icon`]:{marginInlineStart:w-x}},[`> ${e}-content > ${e}-content-box`]:{padding:w}}},"&-large":{[`> ${e}-item`]:{fontSize:m,[`> ${e}-header`]:{padding:s,paddingInlineStart:i,[`> ${e}-expand-icon`]:{height:m*v,marginInlineStart:b-i}},[`> ${e}-content > ${e}-content-box`]:{padding:b}}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},ce=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{[`> ${e}-item > ${e}-header ${e}-arrow svg`]:{transform:"rotate(180deg)"}}}},he=t=>{const{componentCls:e,headerBg:n,paddingXXS:i,colorBorder:r}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${r}`},[`\n        > ${e}-item:last-child,\n        > ${e}-item:last-child ${e}-header\n      `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:i}}}},de=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}};var fe=(0,se.Z)("Collapse",(t=>{const e=(0,le.TS)(t,{collapseHeaderPaddingSM:`${t.paddingXS}px ${t.paddingSM}px`,collapseHeaderPaddingLG:`${t.padding}px ${t.paddingLG}px`,collapsePanelBorderRadius:t.borderRadiusLG});return[ue(e),he(e),de(e),ce(e),(0,ae.Z)(e)]}),(t=>({headerPadding:`${t.paddingSM}px ${t.padding}px`,headerBg:t.colorFillAlter,contentPadding:`${t.padding}px 16px`,contentBg:t.colorBgContainer})));const pe=h.forwardRef(((t,e)=>{const{getPrefixCls:n,direction:i,collapse:r}=h.useContext(ne.E_),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:u=!0,ghost:c,size:d,expandIconPosition:f="start",children:p,expandIcon:g}=t,m=(0,ie.Z)((t=>{var e;return null!==(e=null!=d?d:t)&&void 0!==e?e:"middle"})),v=n("collapse",o),y=n(),[w,b]=fe(v),x=h.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),S=Lt()(`${v}-icon-position-${x}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===i,[`${v}-ghost`]:!!c,[`${v}-${m}`]:"middle"!==m},null==r?void 0:r.className,a,s,b),P=Object.assign(Object.assign({},(0,te.Z)(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),k=h.useMemo((()=>p?(0,Rt.Z)(p).map(((t,e)=>{var n,i;if(null===(n=t.props)||void 0===n?void 0:n.disabled){const n=null!==(i=t.key)&&void 0!==i?i:String(e),{disabled:r,collapsible:o}=t.props,a=Object.assign(Object.assign({},(0,$t.Z)(t.props,["disabled"])),{key:n,collapsible:null!=o?o:r?"disabled":void 0});return(0,ee.Tm)(t,a)}return t})):null),[p]);return w(h.createElement(Jt,Object.assign({ref:e,openMotion:P},(0,$t.Z)(t,["rootClassName"]),{expandIcon:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=g?g(t):h.createElement(Mt.Z,{rotate:t.isActive?90:void 0});return(0,ee.Tm)(e,(()=>({className:Lt()(e.props.className,`${v}-arrow`)})))},prefixCls:v,className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),l)}),k))}));var ge=Object.assign(pe,{Panel:re}),me=n(8070),ve=n(20834),ye=n(5112),we=n(99267),be=n(36785),xe=n(47729),Se=n(14088);const Pe=t=>{const{lineWidth:e,fontSizeIcon:n}=t,i=t.fontSizeSM,r=t.lineHeightSM*i+"px";return(0,le.TS)(t,{tagFontSize:i,tagLineHeight:r,tagIconSize:n-2*e,tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},ke=t=>({defaultBg:t.colorFillQuaternary,defaultColor:t.colorText});var Ce=(0,se.Z)("Tag",(t=>(t=>{const{paddingXXS:e,lineWidth:n,tagPaddingHorizontal:i,componentCls:r}=t,o=i-n,a=e-n;return{[r]:Object.assign(Object.assign({},(0,oe.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:o,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${r}-close-icon`]:{marginInlineStart:a,color:t.colorTextDescription,fontSize:t.tagIconSize,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:o}}),[`${r}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}})(Pe(t))),ke),Ae=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,style:n,className:i,checked:r,onChange:o,onClick:a}=t,s=Ae(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:l,tag:u}=h.useContext(ne.E_),c=l("tag",e),[d,f]=Ce(c),p=Lt()(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},null==u?void 0:u.className,i,f);return d(h.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==u?void 0:u.style),className:p,onClick:t=>{null==o||o(!r),null==a||a(t)}})))},Ee=n(45157);var Le=(0,se.b)(["Tag","preset"],(t=>(t=>(0,Ee.Z)(t,((e,n)=>{let{textColor:i,lightBorderColor:r,lightColor:o,darkColor:a}=n;return{[`${t.componentCls}-${e}`]:{color:i,background:o,borderColor:r,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(Pe(t))),ke);const Te=(t,e,n)=>{const i="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${t.componentCls}-${e}`]:{color:t[`color${n}`],background:t[`color${i}Bg`],borderColor:t[`color${i}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ne=(0,se.b)(["Tag","status"],(t=>{const e=Pe(t);return[Te(e,"success","Success"),Te(e,"processing","Info"),Te(e,"error","Error"),Te(e,"warning","Warning")]}),ke),je=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{prefixCls:n,className:i,rootClassName:r,style:o,children:a,icon:s,color:l,onClose:u,closeIcon:c,closable:d,bordered:f=!0}=t,p=je(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:m,tag:v}=h.useContext(ne.E_),[y,w]=h.useState(!0);h.useEffect((()=>{"visible"in p&&w(p.visible)}),[p.visible]);const b=(0,be.o2)(l),x=(0,be.yT)(l),S=b||x,P=Object.assign(Object.assign({backgroundColor:l&&!S?l:void 0},null==v?void 0:v.style),o),k=g("tag",n),[C,A]=Ce(k),M=Lt()(k,null==v?void 0:v.className,{[`${k}-${l}`]:S,[`${k}-has-color`]:l&&!S,[`${k}-hidden`]:!y,[`${k}-rtl`]:"rtl"===m,[`${k}-borderless`]:!f},i,r,A),E=t=>{t.stopPropagation(),null==u||u(t),t.defaultPrevented||w(!1)},[,L]=(0,xe.Z)(d,c,(t=>null===t?h.createElement(we.Z,{className:`${k}-close-icon`,onClick:E}):h.createElement("span",{className:`${k}-close-icon`,onClick:E},t)),null,!1),T="function"==typeof p.onClick||a&&"a"===a.type,N=s||null,j=N?h.createElement(h.Fragment,null,N,a&&h.createElement("span",null,a)):a,I=h.createElement("span",Object.assign({},p,{ref:e,className:M,style:P}),j,L,b&&h.createElement(Le,{key:"preset",prefixCls:k}),x&&h.createElement(Ne,{key:"status",prefixCls:k}));return C(T?h.createElement(Se.Z,{component:"Tag"},I):I)},Be=h.forwardRef(Ie);Be.CheckableTag=Me;var Oe=Be,De=n(99313),Re=n(57809),Fe=n(32418),ze="scoremodal___CwnRQ",Ge="selectWrapper___Jdp94",Ue="search___zSf8A",He="searchIcon___ApAIo",_e="header_style___RfAxp",Ze="tabWrap___YTk4j",We="form_style___c9uGg",Ve=n(46172),Ye=n(23003),Xe="scoremodal___cmAHe",qe="tabWrap___Xnuvu",Ke="RenderHtml_content___pmH_q",Qe="RenderHtml_style___tvtS0",Je="content_list___jvOz0",$e="content_value___DkebT",tn="content_text___oRKdm",en=n(61186),nn=n.n(en),rn=n(5627),on="list___KhJas",an="row___GGtIx",sn="title___o_xqf",ln="size___OVRoL",un="download___ZLcIH",cn="preview___gi0kI",hn="annotation___KVSwj",dn=n(97562),fn="imageDimensions___a7crR",pn="img___Kroat",gn="fullWidth___c492T",mn=function(t,e){return(mn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function vn(t,e){function n(){this.constructor=t}mn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function yn(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function wn(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]',"select"),this.addActionButton(n,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(n,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(n,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(n,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(n,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(n,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(n,'',"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(t){var n=document.createElement("div");n.className=""+e.toolbarButtonStyleClass.name,n.setAttribute("data-type-name",t.typeName),n.innerHTML=t.icon,n.addEventListener("click",(function(){e.markerToolbarButtonClicked(n,t)})),e.buttons.push(n),e.markerButtons.push(n)})),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var i=document.createElement("div");i.className=this.toolbarBlockStyleClass.name,i.style.whiteSpace="nowrap",i.style.display=!1!==this.uiStyleSettings.resultButtonBlockVisible?"":"none",this.uiContainer.appendChild(i),this.addActionButton(i,'',"render"),this.addActionButton(i,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},t.prototype.addButtonClickListener=function(t){this.buttonClickListeners.push(t)},t.prototype.removeButtonClickListener=function(t){this.buttonClickListeners.indexOf(t)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(t),1)},t.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},t.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var t=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var e=0;e0&&this.buttonClickListeners.forEach((function(t){return t("marker",e)})),this.markerButtonOverflowBlock.style.display="none"},t.prototype.actionToolbarButtonClicked=function(t,e){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(t){return t("action",e)})),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},t.prototype.setActiveButton=function(t){this.resetButtonStyles(),t.className=t.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),t.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},t.prototype.setActiveMarkerButton=function(t){var e=this.markerButtons.find((function(e){return e.getAttribute("data-type-name")===t}));e&&this.setActiveButton(e)},t.prototype.setCurrentMarker=function(t){var e=this;this.currentMarker=t,this.buttons.filter((function(t){return/delete|notes/.test(t.getAttribute("data-action"))})).forEach((function(t){void 0===e.currentMarker?(t.style.fillOpacity="0.4",t.style.pointerEvents="none"):(t.style.fillOpacity="1",t.style.pointerEvents="all")}))},t}(),Ln=function(){function t(t,e,n,i){this.panels=[],this.panelButtons=[],this.markerjsContainer=t,this.displayMode=e,this.uiStyleSettings=n,this.styles=i,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return t.prototype.addStyles=function(){var t;this.toolboxStyleClass=this.styles.addClass(new Mn("toolbox","\n      width: 100%;\n      flex-shrink: 0;\n      display: flex;\n      flex-direction: column;\n      font-family: sans-serif;\n      "+("popup"===this.displayMode?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+"\n      box-sizing: content-box;\n      "+("popup"===this.displayMode?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+"\n      "+("inline"===this.displayMode?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n      "+("inline"===this.displayMode?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n      overflow: hidden;\n    ")),this.toolboxStyleColorsClass=this.styles.addClass(new Mn("toolbox_colors","\n      color: "+this.uiStyleSettings.toolboxColor+";\n    "));var e=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Mn("toolbox-button-row","\n      display: flex;\n      cursor: default;\n      box-sizing: content-box;\n    ")),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Mn("toolbox-button-row_colors","\n      background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n    ")),this.toolboxPanelRowStyleClass=this.styles.addClass(new Mn("toolbox-panel-row","\n      display: flex;\n      "+("inline"===this.displayMode?"position: absolute;":"")+"\n      "+("inline"===this.displayMode?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+"\n      cursor: default;\n      height: "+1.5*this.uiStyleSettings.toolbarHeight+"px;\n      "+("inline"===this.displayMode?"width: 100%;":"")+"\n      box-sizing: content-box;\n    ")),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Mn("toolbox-panel-row_colors","\n      background-color: "+(null!==(t=this.uiStyleSettings.toolboxBackgroundColor)&&void 0!==t?t:this.uiStyleSettings.toolbarBackgroundHoverColor)+";\n    ")),this.toolboxButtonStyleClass=this.styles.addClass(new Mn("toolbox_button","\n      display: inline-block;\n      width: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n      height: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n      padding: "+e+"px;\n      box-sizing: content-box;\n    ")),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Mn("toolbox-button_colors","\n      fill: "+this.uiStyleSettings.toolbarColor+";\n    ")),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Mn("toolbox-active-button_colors","\n      background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+";\n      fill: "+this.uiStyleSettings.toolbarColor+";\n    ")),this.styles.addRule(new An("."+this.toolboxButtonStyleColorsClass.name+":hover","\n        background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n    ")),this.styles.addRule(new An("."+this.toolboxButtonStyleClass.name+" svg","\n      height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n    "))},t.prototype.show=function(t){var e;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=t,this.uiContainer.className=this.toolboxStyleClass.name+" "+(null!==(e=this.uiStyleSettings.toolboxStyleColorsClassName)&&void 0!==e?e:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},t.prototype.setPanelButtons=function(t){var e,n,i=this;this.panels=t,void 0!==this.uiContainer&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(null!==(e=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)&&void 0!==e?e:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(null!==(n=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)&&void 0!==n?n:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach((function(t){var e;t.uiStyleSettings=i.uiStyleSettings;var n=document.createElement("div");n.className=i.toolboxButtonStyleClass.name+" "+(null!==(e=i.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==e?e:i.toolboxButtonStyleColorsClass.name),n.innerHTML=t.icon,n.title=t.title,n.addEventListener("click",(function(){i.panelButtonClick(t)})),i.panelButtons.push(n),i.buttonRow.appendChild(n)})),"inline"===this.displayMode?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},t.prototype.panelButtonClick=function(t){var e=this,n=-1;if(t!==this.activePanel){n=this.panels.indexOf(t),this.panelRow.innerHTML="";var i=t.getUi();i.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(i),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=t}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout((function(){"inline"===e.displayMode?e.panelRow.style.display="none":e.panelRow.style.visibility="hidden"}),200);this.panelButtons.forEach((function(t,i){var r,o;t.className=e.toolboxButtonStyleClass.name+" "+(i===n?""+(null!==(r=e.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)&&void 0!==r?r:e.toolboxActiveButtonStyleColorsClass.name):""+(null!==(o=e.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==o?o:e.toolboxButtonStyleColorsClass.name))}))},t}(),Tn=function(t,e){this.title=t,this.icon=e},Nn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'')||this;return o.colors=[],o.addTransparent=!1,o.colorBoxes=[],o.colors=n,o.currentColor=i,o.setCurrentColor=o.setCurrentColor.bind(o),o.getColorBox=o.getColorBox.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.overflow="hidden",e.style.whiteSpace="nowrap",this.colors.forEach((function(n){var i=t.getColorBox(n);e.appendChild(i),t.colorBoxes.push(i)})),e},e.prototype.getColorBox=function(t){var e=this,n=this.uiStyleSettings.toolbarHeight/4,i=this.uiStyleSettings.toolbarHeight-n,r=document.createElement("div");r.style.display="inline-block",r.style.boxSizing="content-box",r.style.width=i-2+"px",r.style.height=i-2+"px",r.style.padding="1px",r.style.marginRight="2px",r.style.marginBottom="2px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderRadius=(i+2)/2+"px",r.style.borderColor=t===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentColor(t,r)}));var o=document.createElement("div");return o.style.display="inline-block",o.style.width=i-2+"px",o.style.height=i-2+"px",o.style.backgroundColor=t,o.style.borderRadius=i/2+"px","transparent"===t&&(o.style.fill=this.uiStyleSettings.toolboxAccentColor,o.innerHTML='\n        \n      '),r.appendChild(o),r},e.prototype.setCurrentColor=function(t,e){var n=this;this.currentColor=t,this.colorBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onColorChanged&&this.onColorChanged(t)},e}(Tn),jn=function(){function t(t,e,n){this._state="new",this._isSelected=!1,this._container=t,this._overlayContainer=e,this.globalSettings=n,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(t.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!1},Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),t.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},t.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},t.prototype.pointerDown=function(t,e){},t.prototype.dblClick=function(t,e){},t.prototype.manipulate=function(t){},t.prototype.pointerUp=function(t){this.stateChanged()},t.prototype.dispose=function(){},t.prototype.addMarkerVisualToContainer=function(t){this.container.childNodes.length>0?this.container.insertBefore(t,this.container.childNodes[0]):this.container.appendChild(t)},t.prototype.getState=function(){return{typeName:t.typeName,state:this.state,notes:this.notes}},t.prototype.restoreState=function(t){this._state=t.state,this.notes=t.notes},t.prototype.scale=function(t,e){},t.prototype.colorChanged=function(t){this.onColorChanged&&this.onColorChanged(t),this.stateChanged()},t.prototype.fillColorChanged=function(t){this.onFillColorChanged&&this.onFillColorChanged(t),this.stateChanged()},t.prototype.stateChanged=function(){if(this.onStateChanged&&"creating"!==this.state&&"new"!==this.state){var t=this.getState();void 0!==this.manipulationStartState&&(this.manipulationStartState.state="select"),t.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(t)&&this.onStateChanged(this)}},t.typeName="MarkerBase",t}(),In=function(){function t(){this.findGripByVisual=this.findGripByVisual.bind(this)}return t.prototype.findGripByVisual=function(t){return this.topLeft.ownsTarget(t)?this.topLeft:this.topCenter.ownsTarget(t)?this.topCenter:this.topRight.ownsTarget(t)?this.topRight:this.centerLeft.ownsTarget(t)?this.centerLeft:this.centerRight.ownsTarget(t)?this.centerRight:this.bottomLeft.ownsTarget(t)?this.bottomLeft:this.bottomCenter.ownsTarget(t)?this.bottomCenter:this.bottomRight.ownsTarget(t)?this.bottomRight:void 0},t}(),Bn=function(){function t(){this.GRIP_SIZE=10,this.visual=xn.createGroup(),this.visual.appendChild(xn.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(xn.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return t.prototype.ownsTarget=function(t){return t===this.visual||t===this.visual.childNodes[0]||t===this.visual.childNodes[1]},t}(),On=function(){function t(){}return t.toITransformMatrix=function(t){return{a:t.a,b:t.b,c:t.c,d:t.d,e:t.e,f:t.f}},t.toSVGMatrix=function(t,e){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t},t}(),Dn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.left=0,r.top=0,r.width=0,r.height=0,r.defaultSize={x:50,y:20},r.offsetX=0,r.offsetY=0,r.rotationAngle=0,r.CB_DISTANCE=10,r._suppressMarkerCreateEvent=!1,r.container.transform.baseVal.appendItem(xn.createTransform()),r.setupControlBox(),r}return vn(e,t),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(t){this._visual=t;var e=xn.createTransform();this._visual.transform.baseVal.appendItem(e)},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!!t.prototype.ownsTarget.call(this,e)||!!(void 0!==this.controlGrips.findGripByVisual(e)||void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(e))},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(this.left=e.x,this.top=e.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var i=this.unrotatePoint(e);if(this.manipulationStartX=i.x,this.manipulationStartY=i.y,this.offsetX=i.x-this.left,this.offsetY=i.y-this.top,"new"!==this.state)if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(n),void 0!==this.activeGrip)this._state="resize";else if(void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(n)){this.activeGrip=this.rotatorGrip;var r=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=r.x-this.width/2,this.top=r.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var o=this.container.transform.baseVal.getItem(0);o.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(o,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},e.prototype.pointerUp=function(e){var n=this.state;t.prototype.pointerUp.call(this,e),"creating"===this.state&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(e),this._state="select","creating"===n&&this.onMarkerCreated&&!1===this._suppressMarkerCreateEvent&&this.onMarkerCreated(this)},e.prototype.moveVisual=function(t){this.visual.style.transform="translate("+t.x+"px, "+t.y+"px)"},e.prototype.manipulate=function(t){var e=this.unrotatePoint(t);"creating"===this.state?this.resize(t):"move"===this.state?(this.left=this.manipulationStartLeft+(e.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(e.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):"resize"===this.state?this.resize(e):"rotate"===this.state&&this.rotate(t)},e.prototype.resize=function(t){var e=this.manipulationStartLeft,n=this.manipulationStartWidth,i=this.manipulationStartTop,r=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:e=this.manipulationStartLeft+t.x-this.manipulationStartX,n=this.manipulationStartWidth+this.manipulationStartLeft-e;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:n=this.manipulationStartWidth+t.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:i=this.manipulationStartTop+t.y-this.manipulationStartY,r=this.manipulationStartHeight+this.manipulationStartTop-i;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:r=this.manipulationStartHeight+t.y-this.manipulationStartY}n>=0?(this.left=e,this.width=n):(this.left=e+n,this.width=-n),r>=0?(this.top=i,this.height=r):(this.top=i+r,this.height=-r),this.setSize()},e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},e.prototype.rotate=function(t){if(Math.abs(t.x-this.centerX)>.1){var e=Math.sign(t.x-this.centerX);this.rotationAngle=180*Math.atan((t.y-this.centerY)/(t.x-this.centerX))/Math.PI+90*e,this.applyRotation()}},e.prototype.applyRotation=function(){var t=this.container.transform.baseVal.getItem(0);t.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(t,0)},e.prototype.rotatePoint=function(t){if(0===this.rotationAngle)return t;var e=this.container.getCTM(),n=xn.createPoint(t.x,t.y);return{x:(n=n.matrixTransform(e)).x,y:n.y}},e.prototype.unrotatePoint=function(t){if(0===this.rotationAngle)return t;var e=this.container.getCTM();e=e.inverse();var n=xn.createPoint(t.x,t.y);return{x:(n=n.matrixTransform(e)).x,y:n.y}},e.prototype.select=function(){t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setupControlBox=function(){this.controlBox=xn.createGroup();var t=xn.createTransform();t.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(t),this.container.appendChild(this.controlBox),this.controlRect=xn.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),!0!==this.globalSettings.disableRotation&&(this.rotatorGripLine=xn.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 In,this.addControlGrips(),this.controlBox.style.display="none"},e.prototype.adjustControlBox=function(){var t=this.controlBox.transform.baseVal.getItem(0);t.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(t,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),void 0!==this.rotatorGripLine&&(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(),!0!==this.globalSettings.disableRotation&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},e.prototype.createGrip=function(){var t=new Bn;return t.visual.transform.baseVal.appendItem(xn.createTransform()),this.controlBox.appendChild(t.visual),t},e.prototype.positionGrips=function(){var t=this.controlGrips.topLeft.GRIP_SIZE,e=-t/2,n=e,i=(this.width+this.CB_DISTANCE)/2-t/2,r=(this.height+this.CB_DISTANCE)/2-t/2,o=this.height+this.CB_DISTANCE-t/2,a=this.width+this.CB_DISTANCE-t/2;this.positionGrip(this.controlGrips.topLeft.visual,e,n),this.positionGrip(this.controlGrips.topCenter.visual,i,n),this.positionGrip(this.controlGrips.topRight.visual,a,n),this.positionGrip(this.controlGrips.centerLeft.visual,e,r),this.positionGrip(this.controlGrips.centerRight.visual,a,r),this.positionGrip(this.controlGrips.bottomLeft.visual,e,o),this.positionGrip(this.controlGrips.bottomCenter.visual,i,o),this.positionGrip(this.controlGrips.bottomRight.visual,a,o),void 0!==this.rotatorGrip&&this.positionGrip(this.rotatorGrip.visual,i,n-3*this.CB_DISTANCE)},e.prototype.positionGrip=function(t,e,n){var i=t.transform.baseVal.getItem(0);i.setTranslate(e,n),t.transform.baseVal.replaceItem(i,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:On.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:On.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.left=n.left,this.top=n.top,this.width=n.width,this.height=n.height,this.rotationAngle=n.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(On.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,n.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(On.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,n.containerTransformMatrix))},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n);var i=this.rotatePoint({x:this.left,y:this.top}),r=this.unrotatePoint({x:i.x*e,y:i.y*n});this.left=r.x,this.top=r.y,this.width=this.width*e,this.height=this.height*n,this.adjustControlBox()},e}(jn),Rn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual)},e.prototype.createVisual=function(){this.visual=xn.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(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.setSize=function(){t.prototype.setSize.call(this),xn.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.visual&&xn.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.visual&&xn.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.visual&&xn.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.visual&&xn.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},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){var n=e;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize()},e.title="Rectangle marker",e}(Dn),Fn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'')||this;return o.widths=[],o.widthBoxes=[],o.widths=n,o.currentWidth=i,o.setCurrentWidth=o.setCurrentWidth.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",this.widths.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.flexGrow="2",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===t.currentWidth?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentWidth(n,i)})),e.appendChild(i);var r=document.createElement("div");r.innerText=n.toString(),r.style.marginRight="5px",i.appendChild(r);var o=document.createElement("div");o.style.minHeight="20px",o.style.flexGrow="2",o.style.display="flex",o.style.alignItems="center";var a=document.createElement("hr");a.style.minWidth="20px",a.style.border="0px",a.style.borderTop=n+"px solid "+t.uiStyleSettings.toolboxColor,a.style.flexGrow="2",o.appendChild(a),i.appendChild(o),t.widthBoxes.push(i)})),e},e.prototype.setCurrentWidth=function(t,e){var n=this;this.currentWidth=t,this.widthBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},e}(Tn),zn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'')||this;return o.styles=[],o.styleBoxes=[],o.styles=n,o.currentStyle=i,o.setCurrentStyle=o.setCurrentStyle.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",this.styles.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/t.styles.length-5+"%",i.style.borderColor=n===t.currentStyle?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentStyle(n,i)})),e.appendChild(i);var r=document.createElement("div");r.style.minHeight="20px",r.style.flexGrow="2",r.style.overflow="hidden";var o='\n      \n  ";r.innerHTML=o,i.appendChild(r),t.styleBoxes.push(i)})),e},e.prototype.setCurrentStyle=function(t,e){var n=this;this.currentStyle=t,this.styleBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},e}(Tn),Gn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Nn("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return vn(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="FrameMarker",e.title="Frame marker",e.icon='',e}(Rn),Un=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,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Hn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.x1=0,r.y1=0,r.x2=0,r.y2=0,r.defaultLength=50,r.manipulationStartX=0,r.manipulationStartY=0,r.manipulationStartX1=0,r.manipulationStartY1=0,r.manipulationStartX2=0,r.manipulationStartY2=0,r.setupControlBox(),r}return vn(e,t),e.prototype.ownsTarget=function(e){return!!t.prototype.ownsTarget.call(this,e)||!(!this.grip1.ownsTarget(e)&&!this.grip2.ownsTarget(e))},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.manipulationStartX=e.x,this.manipulationStartY=e.y,"new"===this.state&&(this.x1=e.x,this.y1=e.y,this.x2=e.x,this.y2=e.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,"new"!==this.state&&(this.select(),this.grip1.ownsTarget(n)?this.activeGrip=this.grip1:this.grip2.ownsTarget(n)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},e.prototype.pointerUp=function(e){var n=this.state;t.prototype.pointerUp.call(this,e),"creating"===this.state&&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(e),this._state="select","creating"===n&&this.onMarkerCreated&&this.onMarkerCreated(this)},e.prototype.adjustVisual=function(){},e.prototype.manipulate=function(t){"creating"===this.state?this.resize(t):"move"===this.state?(this.x1=this.manipulationStartX1+t.x-this.manipulationStartX,this.y1=this.manipulationStartY1+t.y-this.manipulationStartY,this.x2=this.manipulationStartX2+t.x-this.manipulationStartX,this.y2=this.manipulationStartY2+t.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):"resize"===this.state&&this.resize(t)},e.prototype.resize=function(t){switch(this.activeGrip){case this.grip1:this.x1=t.x,this.y1=t.y;break;case this.grip2:case void 0:this.x2=t.x,this.y2=t.y}this.adjustVisual(),this.adjustControlBox()},e.prototype.select=function(){t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setupControlBox=function(){this.controlBox=xn.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 t=new Bn;return t.visual.transform.baseVal.appendItem(xn.createTransform()),this.controlBox.appendChild(t.visual),t},e.prototype.positionGrips=function(){var t=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-t/2,this.y1-t/2),this.positionGrip(this.grip2.visual,this.x2-t/2,this.y2-t/2)},e.prototype.positionGrip=function(t,e,n){var i=t.transform.baseVal.getItem(0);i.setTranslate(e,n),t.transform.baseVal.replaceItem(i,0)},e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.x1=n.x1,this.y1=n.y1,this.x2=n.x2,this.y2=n.y2},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.x1=this.x1*e,this.y1=this.y1*n,this.x2=this.x2*e,this.y2=this.y2*n,this.adjustVisual(),this.adjustControlBox()},e}(jn),_n=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Nn("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.selectorLine&&e!==this.visibleLine)},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.selectorLine=xn.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=xn.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(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(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()),xn.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),xn.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),xn.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.adjustVisual(),this.colorChanged(t)},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.adjustVisual()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,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 n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.createVisual(),this.adjustVisual()},e.typeName="LineMarker",e.title="Line marker",e.icon='',e}(Hn),Zn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'')||this;return o.fonts=[],o.fontBoxes=[],o.fonts=n,o.currentFont=i,o.setCurrentFont=o.setCurrentFont.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.overflow="hidden",e.style.flexGrow="2",this.fonts.forEach((function(n){var i=document.createElement("div");i.style.display="inline-block",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/t.fonts.length-5+"%",i.style.borderColor=n===t.currentFont?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentFont(n,i)})),e.appendChild(i);var r=document.createElement("div");r.style.display="flex",r.style.minHeight="20px",r.style.flexGrow="2",r.style.fontFamily=n,r.style.overflow="hidden";var o=document.createElement("div");o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.innerHTML="The quick brown fox jumps over the lazy dog",r.appendChild(o),i.appendChild(r),t.fontBoxes.push(i)})),e},e.prototype.setCurrentFont=function(t,e){var n=this;this.currentFont=t,this.fontBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onFontChanged&&this.onFontChanged(this.currentFont)},e}(Tn),Wn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.color="transparent",r.padding=5,r.DEFAULT_TEXT="请输入文本",r.text=r.DEFAULT_TEXT,r.isMoved=!1,r.color=i.defaultColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setColor=r.setColor.bind(r),r.setFont=r.setFont.bind(r),r.renderText=r.renderText.bind(r),r.sizeText=r.sizeText.bind(r),r.textEditDivClicked=r.textEditDivClicked.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.setSize=r.setSize.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.colorPanel=new Nn("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.fontFamilyPanel=new Zn("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r}return vn(e,t),e.prototype.ownsTarget=function(e){if(t.prototype.ownsTarget.call(this,e)||e===this.visual||e===this.textElement||e===this.bgRectangle)return!0;var n=!1;return this.textElement.childNodes.forEach((function(t){t===e&&(n=!0)})),n},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.bgRectangle=xn.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=xn.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(xn.createTransform()),this.textElement.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.isMoved=!1,this.pointerDownPoint=e,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.renderText=function(){var t=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(e){t.textElement.appendChild(xn.createTSpan(""===e.trim()?" ":e.trim(),[["x","0"],["dy","1.2em"]]))})),setTimeout(this.sizeText,10)}},e.prototype.getTextScale=function(){var t=this.textElement.getBBox(),e=1;if(t.width>0&&t.height>0){var n=(1*this.width-this.width*this.padding*2/100)/t.width,i=(1*this.height-this.height*this.padding*2/100)/t.height;e=Math.min(n,i)}return e},e.prototype.getTextPosition=function(t){var e=this.textElement.getBBox(),n=0,i=0;return e.width>0&&e.height>0&&(n=(this.width-e.width*t)/2,i=this.height/2-e.height*t/2),{x:n,y:i}},e.prototype.sizeText=function(){var t=this.textElement.getBBox(),e=this.getTextScale(),n=this.getTextPosition(e);n.y-=t.y*e,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+n.x+"px, "+n.y+"px) scale("+e+", "+e+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(n.x,n.y),this.textElement.transform.baseVal.getItem(1).setScale(e,e))},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(e.x-this.pointerDownPoint.x)>5||Math.abs(e.y-this.pointerDownPoint.y)>5)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.isMoved=!0,this.setSize(),this.sizeText()},e.prototype.setSize=function(){t.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(xn.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xn.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},e.prototype.pointerUp=function(e){var n=this.state;"creating"===n&&(this._suppressMarkerCreateEvent=!0),t.prototype.pointerUp.call(this,e),this.setSize(),("creating"===n||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},e.prototype.showTextEditor=function(){var t=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(t){t.stopPropagation()})),this.textEditor.addEventListener("input",(function(){for(var e=Number.parseFloat(t.textEditor.style.fontSize);t.textEditor.clientWidth>=Number.parseInt(t.textEditor.style.maxWidth)&&e>.9;)e-=.1,t.textEditor.style.fontSize=Math.max(e,.9)+"em"})),this.textEditor.addEventListener("keyup",(function(t){t.cancelBubble=!0})),this.textEditor.addEventListener("paste",(function(t){if(t.clipboardData){var e=t.clipboardData.getData("text"),n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(e)),t.preventDefault()}})),this.textEditDiv.addEventListener("pointerup",(function(){t.textEditDivClicked(t.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("edit"===this.state)if(void 0===this.textEditor)this.showTextEditor();else{this.textElement.style.display="";var t=this.getTextScale(),e=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),n=this.textElement.getBBox(),i={x:n.width*t,y:n.height*t};e.x-=i.x/2,e.y-=i.y/2,this.textEditor.style.top=e.y+"px",this.textEditor.style.left=e.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-e.x+"px",this.textEditor.style.fontSize=Math.max(16*t,12)+"px",this.textElement.style.display="none"}},e.prototype.textEditDivClicked=function(t){this.text=t.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},e.prototype.select=function(){t.prototype.select.call(this),"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText)},e.prototype.deselect=function(){"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText),t.prototype.deselect.call(this)},e.prototype.dblClick=function(e,n){t.prototype.dblClick.call(this,e,n),this.showTextEditor()},e.prototype.setColor=function(t){this.textElement&&xn.setAttributes(this.textElement,[["fill",t]]),this.color=t,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(t)},e.prototype.setFont=function(t){this.textElement&&xn.setAttributes(this.textElement,[["font-family",t]]),this.fontFamily=t,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(){"edit"===this.state&&(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 n=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){var n=e;this.color=n.color,this.fontFamily=n.fontFamily,this.padding=n.padding,this.text=n.text,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize(),this.sizeText(),this.positionTextEditor()},e.typeName="TextMarker",e.title="Text marker",e.icon='',e}(Dn),Vn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.color="transparent",r.lineWidth=3,r.drawing=!1,r.pixelRatio=1,r.color=i.defaultColor,r.lineWidth=i.defaultStrokeWidth,r.pixelRatio=i.freehandPixelRatio,r.setColor=r.setColor.bind(r),r.addCanvas=r.addCanvas.bind(r),r.finishCreation=r.finishCreation.bind(r),r.setLineWidth=r.setLineWidth.bind(r),r.colorPanel=new Nn("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.lineWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.lineWidthPanel.onWidthChanged=r.setLineWidth,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.drawingImage)},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.drawingImage=xn.createImage(),this.visual.appendChild(this.drawingImage);var t=xn.createTransform();this.visual.transform.baseVal.appendItem(t),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,n){"new"===this.state&&(this.addCanvas(),this.createVisual(),this._state="creating"),"creating"===this.state?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(e.x,e.y),this.drawing=!0):t.prototype.pointerDown.call(this,e,n)},e.prototype.manipulate=function(e){"creating"===this.state?this.drawing&&(this.canvasContext.lineTo(e.x,e.y),this.canvasContext.stroke()):t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),xn.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xn.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},e.prototype.pointerUp=function(e){"creating"===this._state?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):t.prototype.pointerUp.call(this,e)},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(){"creating"===this.state&&this.finishCreation(),t.prototype.select.call(this)},e.prototype.deselect=function(){"creating"===this.state&&this.finishCreation(),t.prototype.deselect.call(this)},e.prototype.finishCreation=function(){for(var t=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),e=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],n=e[0],i=e[1],r=e[2],o=e[3],a=!1,s=0;s0&&(a=!0,so&&(o=s),l>r&&(r=l));if(a){this.left=n/this.pixelRatio,this.top=i/this.pixelRatio,this.width=(r-n)/this.pixelRatio,this.height=(o-i)/this.pixelRatio;var u=document.createElement("canvas");u.width=r-n,u.height=o-i,u.getContext("2d").putImageData(this.canvasContext.getImageData(n,i,r-n,o-i),0,0),this.drawingImgUrl=u.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},e.prototype.setDrawingImage=function(){xn.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),xn.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},e.prototype.setColor=function(t){this.color=t,this.colorChanged(t)},e.prototype.setLineWidth=function(t){this.lineWidth=t},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return"new"===this.state||"creating"===this.state?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({drawingImgUrl:this.drawingImgUrl},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){this.createVisual(),t.prototype.restoreState.call(this,e),this.drawingImgUrl=e.drawingImgUrl,this.setDrawingImage()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setDrawingImage()},e.typeName="FreehandMarker",e.title="Freehand marker",e.icon='',e}(Dn),Yn=function(t){function e(e,n,i){var r=t.call(this,e,i||'')||this;return r.typeBoxes=[],r.currentType=n,r.setCurrentType=r.setCurrentType.bind(r),r}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2";for(var n=function(n){var r="both";switch(n){case 0:r="both";break;case 1:r="start";break;case 2:r="end";break;case 3:r="none"}var o=document.createElement("div");if(o.style.display="flex",o.style.flexGrow="2",o.style.alignItems="center",o.style.justifyContent="space-between",o.style.padding="5px",o.style.borderWidth="2px",o.style.borderStyle="solid",o.style.borderColor=r===i.currentType?i.uiStyleSettings.toolboxAccentColor:"transparent",o.addEventListener("click",(function(){t.setCurrentType(r,o)})),e.appendChild(o),"both"===r||"start"===r){var a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.minHeight="20px",a.innerHTML='\n          \n        ',a.style.marginLeft="5px",o.appendChild(a)}var s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.minHeight="20px",s.style.flexGrow="2";var l=document.createElement("hr");if(l.style.minWidth="20px",l.style.border="0px",l.style.borderTop="3px solid "+(void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxColor:"#eeeeee"),l.style.flexGrow="2",s.appendChild(l),o.appendChild(s),"both"===r||"end"===r){var u=document.createElement("div");u.style.display="flex",u.style.alignItems="center",u.style.minHeight="20px",u.innerHTML='\n          \n        ',u.style.marginRight="5px",o.appendChild(u)}i.typeBoxes.push(o)},i=this,r=0;r<4;r++)n(r);return e},e.prototype.setCurrentType=function(t,e){var n=this;this.currentType=t,this.typeBoxes.forEach((function(t){t.style.borderColor=t===e?void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"})),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},e}(Tn),Xn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.arrowType="end",r.arrowBaseHeight=10,r.arrowBaseWidth=10,r.getArrowPoints=r.getArrowPoints.bind(r),r.setArrowType=r.setArrowType.bind(r),r.arrowTypePanel=new Yn("Arrow type","end"),r.arrowTypePanel.onArrowTypeChanged=r.setArrowType,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.arrow1&&e!==this.arrow2)},e.prototype.getArrowPoints=function(t,e){var n=this.arrowBaseWidth+2*this.strokeWidth,i=this.arrowBaseHeight+2*this.strokeWidth;return t-n/2+","+(e+i/2)+" "+t+","+(e-i/2)+" "+(t+n/2)+","+(e+i/2)},e.prototype.createTips=function(){this.arrow1=xn.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=xn.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.arrow2)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"creating"===this.state&&this.createTips()},e.prototype.adjustVisual=function(){if(t.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display="both"===this.arrowType||"start"===this.arrowType?"":"none",this.arrow2.style.display="both"===this.arrowType||"end"===this.arrowType?"":"none",xn.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),xn.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var e=0;Math.abs(this.x1-this.x2)>.1&&(e=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var n=this.arrow1.transform.baseVal.getItem(0);n.setRotate(e,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(n,0);var i=this.arrow2.transform.baseVal.getItem(0);i.setRotate(e+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(i,0)}},e.prototype.setArrowType=function(t){this.arrowType=t,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 n=Object.assign({arrowType:this.arrowType},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.arrowType=n.arrowType,this.createTips(),this.adjustVisual()},e.typeName="ArrowMarker",e.title="Arrow marker",e.icon='',e}(_n),qn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor=i.defaultFillColor,r.strokeWidth=0,r.fillPanel=new Nn("Color",i.defaultColorSet,i.defaultFillColor),r.fillPanel.onColorChanged=r.setFillColor,r}return vn(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="CoverMarker",e.title="Cover marker",e.icon='',e}(Rn),Kn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'')||this;return o.opacities=[],o.opacityBoxes=[],o.opacities=n,o.currentOpacity=i,o.setCurrentOpacity=o.setCurrentOpacity.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",e.style.justifyContent="space-between",this.opacities.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===t.currentOpacity?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentOpacity(n,i)})),e.appendChild(i);var r=document.createElement("div");r.innerText=100*n+"%",i.appendChild(r),t.opacityBoxes.push(i)})),e},e.prototype.setCurrentOpacity=function(t,e){var n=this;this.currentOpacity=t,this.opacityBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},e}(Tn),Qn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.setOpacity=r.setOpacity.bind(r),r.fillColor=i.defaultHighlightColor,r.strokeWidth=0,r.opacity=i.defaultHighlightOpacity,r.fillPanel=new Nn("Color",i.defaultColorSet,r.fillColor),r.fillPanel.onColorChanged=r.setFillColor,r.opacityPanel=new Kn("Opacity",i.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return vn(e,t),e.prototype.setOpacity=function(t){this.opacity=t,this.visual&&xn.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 n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="HighlightMarker",e.title="Highlight marker",e.icon='',e}(qn),Jn='',$n='',ti=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.bgColor="transparent",r.tipPosition={x:0,y:0},r.tipBase1Position={x:0,y:0},r.tipBase2Position={x:0,y:0},r.tipMoving=!1,r.color=i.defaultStrokeColor,r.bgColor=i.defaultFillColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setBgColor=r.setBgColor.bind(r),r.getTipPoints=r.getTipPoints.bind(r),r.positionTip=r.positionTip.bind(r),r.setTipPoints=r.setTipPoints.bind(r),r.colorPanel=new Nn("Text color",i.defaultColorSet,r.color,Jn),r.colorPanel.onColorChanged=r.setColor,r.bgColorPanel=new Nn("Fill color",i.defaultColorSet,r.bgColor,$n),r.bgColorPanel.onColorChanged=r.setBgColor,r.fontFamilyPanel=new Zn("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.tipGrip=new Bn,r.tipGrip.visual.transform.baseVal.appendItem(xn.createTransform()),r.controlBox.appendChild(r.tipGrip.visual),r}return vn(e,t),e.prototype.ownsTarget=function(e){return t.prototype.ownsTarget.call(this,e)||this.tipGrip.ownsTarget(e)||this.tip===e},e.prototype.createTip=function(){xn.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=xn.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},e.prototype.pointerDown=function(e,n){"new"===this.state&&t.prototype.pointerDown.call(this,e,n),"creating"===this.state?this.createTip():this.tipGrip.ownsTarget(n)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):t.prototype.pointerDown.call(this,e,n)},e.prototype.pointerUp=function(e){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,t.prototype.pointerUp.call(this,e);else{var n="creating"===this.state;t.prototype.pointerUp.call(this,e),this.setTipPoints(n),this.positionTip()}},e.prototype.manipulate=function(e){if(this.tipMoving){var n=this.unrotatePoint(e);this.tipPosition={x:n.x-this.manipulationStartLeft,y:n.y-this.manipulationStartTop},this.positionTip()}else t.prototype.manipulate.call(this,e)},e.prototype.setBgColor=function(t){this.bgRectangle&&this.tip&&(xn.setAttributes(this.bgRectangle,[["fill",t]]),xn.setAttributes(this.tip,[["fill",t]])),this.bgColor=t,this.fillColorChanged(t)},e.prototype.getTipPoints=function(){return this.setTipPoints("creating"===this.state),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},e.prototype.setTipPoints=function(t){void 0===t&&(t=!1);var e=Math.min(this.height/2,15),n=this.height/5;t&&(this.tipPosition={x:e+n/2,y:this.height+20});var i=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?i.1)){var e=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),n=this.tip1.transform.baseVal.getItem(0);n.setRotate(e,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(n,0);var i=this.tip2.transform.baseVal.getItem(0);i.setRotate(e+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(i,0)}},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e),this.createTips(),this.adjustVisual()},e.typeName="MeasurementMarker",e.title="Measurement marker",e.icon='',e}(_n),ii=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokePanel.colors=i.defaultColorSet,r.fillColor="transparent",r}return vn(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="EllipseFrameMarker",e.title="Ellipse frame marker",e.icon='',e}(ei),ri=function(){function t(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(t.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),t.prototype.addUndoStep=function(t){0!==this.undoStack.length&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(t)||(this.undoStack.push(t),JSON.stringify(this.lastRedoStep)!==JSON.stringify(t)&&this.redoStack.splice(0,this.redoStack.length))},t.prototype.replaceLastUndoStep=function(t){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=t)},t.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},t.prototype.undo=function(){if(this.undoStack.length>1){var t=this.undoStack.pop();return void 0!==t&&this.redoStack.push(t),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},t.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},t}(),oi=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.curveX=0,r.curveY=0,r.manipulationStartCurveX=0,r.manipulationStartCurveY=0,r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.positionGrips=r.positionGrips.bind(r),r.addControlGrips=r.addControlGrips.bind(r),r.adjustVisual=r.adjustVisual.bind(r),r.setupControlBox=r.setupControlBox.bind(r),r.resize=r.resize.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Nn("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.selectorCurve&&e!==this.visibleCurve&&!this.curveGrip.ownsTarget(e))},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=xn.createGroup(),this.selectorCurve=xn.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=xn.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(e,n){t.prototype.pointerDown.call(this,e,n),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,"new"===this.state&&(this.curveX=e.x,this.curveY=e.y),"new"===this.state?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(n)&&(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()),xn.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),xn.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),xn.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},e.prototype.setupControlBox=function(){t.prototype.setupControlBox.call(this),this.curveControlLine1=xn.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=xn.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,t.prototype.addControlGrips.call(this)},e.prototype.positionGrips=function(){t.prototype.positionGrips.call(this);var e=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-e/2,this.curveY-e/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(e){"move"===this.state&&(this.curveX=this.manipulationStartCurveX+e.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+e.y-this.manipulationStartY),t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){this.activeGrip===this.curveGrip&&(this.curveX=e.x,this.curveY=e.y),t.prototype.resize.call(this,e),"creating"===this.state&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.adjustVisual(),this.colorChanged(t)},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.adjustVisual()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.adjustVisual()},e.prototype.scale=function(e,n){this.curveX=this.curveX*e,this.curveY=this.curveY*n,t.prototype.scale.call(this,e,n)},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.curveX=n.curveX,this.curveY=n.curveY,this.createVisual(),this.adjustVisual()},e.typeName="CurveMarker",e.title="Curve marker",e.icon='',e}(Hn),ai=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.textColor="transparent",r.fontSize="1rem",r.isMoved=!1,r.captionText="Caption",r.PADDING=5,r.captionBoxWidth=0,r.captionBoxHeight=0,r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.fillColor=i.defaultFillColor,r.textColor=i.defaultStrokeColor,r.fontFamily=i.defaultFontFamily,r.fontSize=i.defaultCaptionFontSize,r.captionText=i.defaultCaptionText,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r.sizeCaption=r.sizeCaption.bind(r),r.setCaptionText=r.setCaptionText.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.finishTextEditing=r.finishTextEditing.bind(r),r.setFont=r.setFont.bind(r),r.setTextColor=r.setTextColor.bind(r),r.strokePanel=new Nn("Line color",bn(i.defaultColorSet,["transparent"]),r.strokeColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.fillPanel=new Nn("Fill color",bn(i.defaultColorSet,["transparent"]),r.fillColor,$n),r.fillPanel.onColorChanged=r.setFillColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r.fontFamilyPanel=new Zn("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.textColorPanel=new Nn("Text color",i.defaultColorSet,r.textColor,Jn),r.textColorPanel.onColorChanged=r.setTextColor,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.frame&&e!==this.captionBg&&e!==this.captionElement)},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=xn.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=xn.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=xn.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},e.prototype.setCaptionText=function(t){this.captionText=t,this.captionElement.textContent=this.captionText,this.sizeCaption()},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.isMoved=!1,this.pointerDownPoint=e,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(e.x-this.pointerDownPoint.x)>5||Math.abs(e.y-this.pointerDownPoint.y)>5)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.sizeCaption=function(){var t=this.captionElement.getBBox();""!==this.captionText.trim()?(this.captionBoxWidth=t.width+2*this.PADDING,this.captionBoxHeight=t.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),xn.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),xn.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},e.prototype.showTextEditor=function(){var t=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.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",(function(t){t.stopPropagation()})),this.textEditBox.addEventListener("keypress",(function(e){"Enter"===e.key&&t.finishTextEditing(t.textEditBox.value)})),this.textEditBox.addEventListener("keyup",(function(t){t.cancelBubble=!0})),this.textEditBox.addEventListener("blur",(function(){t.finishTextEditing(t.textEditBox.value)})),this.textEditDiv.addEventListener("pointerup",(function(){t.finishTextEditing(t.textEditBox.value)})),this.positionTextEditor(),this.textEditBox.focus()},e.prototype.positionTextEditor=function(){"edit"===this.state&&(void 0===this.textEditBox?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},e.prototype.finishTextEditing=function(t){this.setCaptionText(t.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},e.prototype.setFont=function(t){this.captionElement&&xn.setAttributes(this.captionElement,[["font-family",t]]),this.fontFamily=t,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},e.prototype.setTextColor=function(t){this.captionElement&&xn.setAttributes(this.captionElement,[["fill",t]]),this.textColor=t,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},e.prototype.setSize=function(){t.prototype.setSize.call(this),xn.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},e.prototype.dblClick=function(e,n){t.prototype.dblClick.call(this,e,n),this.showTextEditor()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.frame&&xn.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.captionBg&&xn.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(t),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.frame&&xn.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.frame&&xn.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var e=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},t.prototype.getState.call(this));return e.typeName=this.typeName,e},e.prototype.restoreState=function(e){var n=e;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.textColor=n.textColor,this.fontFamily=n.fontFamily,this.captionText=n.captionText,this.fontSize=n.fontSize,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize()},e.typeName="CaptionFrameMarker",e.title="Caption frame marker",e.icon='',e}(Dn),si=function(){function t(t,e){void 0===e&&(e=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=t,this.cancelable=e}return Object.defineProperty(t.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this._defaultPrevented=!0},t}(),li=function(t){function e(e,n,i){var r=t.call(this,e,!1)||this;return r.dataUrl=n,r.state=i,r}return vn(e,t),e}(si),ui=function(t){function e(e,n,i){void 0===i&&(i=!1);var r=t.call(this,e,i)||this;return r.marker=n,r}return vn(e,t),e}(si),ci=function(){function t(){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 t.prototype.addEventListener=function(t,e){this[t].push(e)},t.prototype.removeEventListener=function(t,e){var n=this[t].indexOf(e);n>-1&&this[t].splice(n,1)},t}(),hi=function(){function t(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 Un,this._isOpen=!1,this.undoRedoManager=new ri,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 ci,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=t.instanceCounter++,this.styles=new Cn(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(t.prototype,"ALL_MARKER_TYPES",{get:function(){return[Gn,Vn,Xn,Wn,ii,ei,Qn,ti,ni,qn,_n,oi,ai]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Gn,Vn,Xn,Wn,ei,Qn,ti]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Gn,Vn,Xn,Wn,Qn]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(t){var e=this;this._availableMarkerTypes.splice(0),t.forEach((function(t){if("string"==typeof t){var n=e.ALL_MARKER_TYPES.find((function(e){return e.typeName===t}));void 0!==n&&e._availableMarkerTypes.push(n)}else e._availableMarkerTypes.push(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(t){this._zoomLevel=t,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(t.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),"popup"===this.settings.displayMode&&this.onPopupTargetResize(),Sn.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},t.prototype.show=function(){var t=this;void 0===this.styles.styleSheetRoot&&void 0!==kn.styleSheetRoot&&(this.styles.styleSheetRoot=kn.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach((function(e){return e(new si(t))}))},t.prototype.render=function(){return yn(this,void 0,void 0,(function(){var t;return wn(this,(function(e){switch(e.label){case 0:return this.setCurrentMarker(),(t=new Pn).naturalSize=this.renderAtNaturalSize,t.imageType=this.renderImageType,t.imageQuality=this.renderImageQuality,t.markersOnly=this.renderMarkersOnly,t.width=this.renderWidth,t.height=this.renderHeight,[4,t.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return e.sent(),[4,t.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,e.sent()]}}))}))},t.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isOpen){var n=!1;t||this.eventListeners.beforeclose.forEach((function(t){var i=new si(e,!0);t(i),i.defaultPrevented&&(n=!0)})),n||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),"popup"===this.settings.displayMode&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach((function(t){return t(new si(e))})),this.detachEvents(),this._isOpen=!1)}},t.prototype.addMarkersToToolbar=function(){for(var t,e=[],n=0;nthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*t:this.editorCanvas.clientWidth,n=e',t.title="Powered by marker.js",t.style.display="grid",t.style.alignItems="center",t.style.justifyItems="center",t.style.padding="3px",t.style.width="20px",t.style.height="20px",this.logoUI.appendChild(t),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},t.prototype.positionLogo=function(){this.logoUI&&("right"!==this.uiStyleSettings.logoPosition?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")},t.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"},t.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},t.prototype.showUI=function(){switch("popup"===this.settings.displayMode&&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 t=void 0!==this.settings.uiOffsetTop?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=t+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?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=void 0!==this.uiStyleSettings.zIndex?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="popup"===this.settings.displayMode?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new En(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","popup"===this.settings.displayMode&&(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","popup"===this.settings.displayMode&&(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"),void 0===this.settings.uiOffsetTop&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(t),1),t.dispose()},t.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),void 0!==this._currentMarker&&("new"!==this._currentMarker.state?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},t.prototype.toolbarButtonClicked=function(t,e){if("marker"===t&&void 0!==e)this.createNewMarker(e);else if("action"===t)switch(e){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":void 0===this.notesArea?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},t.prototype.deleteSelectedMarker=function(){var t=this;if(void 0!==this._currentMarker){var e=!1;if(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ui(t,t._currentMarker,!0);n(i),i.defaultPrevented&&(e=!0)})),!e){var n=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(e){return e(new ui(t,n))}))}}},t.prototype.clear=function(){var t=this,e=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ui(t,void 0,!0);n(i),i.defaultPrevented&&(e=!0)})),!e)){this.setCurrentMarker();for(var n=function(e){var n=i.markers[e];i.setCurrentMarker(i.markers[e]),i._currentMarker.dispose(),i.markerImage.removeChild(i._currentMarker.container),i.markers.splice(i.markers.indexOf(i._currentMarker),1),i.eventListeners.markerdelete.forEach((function(e){return e(new ui(t,n))}))},i=this,r=this.markers.length-1;r>=0;r--)n(r);this.addUndoStep()}},Object.defineProperty(t.prototype,"isNotesAreaOpen",{get:function(){return void 0!==this.notesArea},enumerable:!1,configurable:!0}),t.prototype.showNotesEditor=function(){var t;void 0!==this._currentMarker&&(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=null!==(t=this._currentMarker.notes)&&void 0!==t?t:"",this.overlayContainer.appendChild(this.notesArea))},t.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(void 0!==this._currentMarker&&(this._currentMarker.notes=""!==this.notesArea.value.trim()?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},t.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},t.prototype.addUndoStep=function(){var t=this;if(void 0===this._currentMarker||"edit"!==this._currentMarker.state){var e=this.getState(),n=this.undoRedoManager.getLastUndoStep();if(!n||n.width===e.width&&n.height===e.height){var i=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(e),i1&&this.panTo({x:t.clientX,y:t.clientY}))},t.prototype.onPointerUp=function(t){this.touchPoints>0&&this.touchPoints--,0===this.touchPoints&&this.isDragging&&void 0!==this._currentMarker&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(t.clientX,t.clientY)),this.isDragging=!1,this.addUndoStep()},t.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},t.prototype.onKeyUp=function(t){void 0===this._currentMarker||void 0!==this.notesArea||"Delete"!==t.key&&"Backspace"!==t.key||this.deleteSelectedMarker()},t.prototype.clientToLocalCoordinates=function(t,e){var n=this.markerImage.getBoundingClientRect();return{x:(t-n.left)/this.zoomLevel,y:(e-n.top)/this.zoomLevel}},t.prototype.onWindowResize=function(){this.positionUI()},t.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var t=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=t+"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()},t.prototype.addLicenseKey=function(t){Sn.addKey(t)},t.prototype.addEventListener=function(t,e){this.eventListeners.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventListeners.removeEventListener(t,e)},t.prototype.renderState=function(t){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(t),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),t.prototype.focus=function(){var t=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,void 0!==this._previousCurrentMarker&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach((function(e){return e(new si(t))})))},t.prototype.blur=function(){var t=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach((function(e){return e(new si(t))})))},t.instanceCounter=0,t}(),di=function(t){var e=t.data,n=t.className,i=t.fullWidth,o=t.style,s=void 0===o?{}:o,u=t.onClose,c=t.onOk,d=t.showFullTools,f=t.noAssociationId,p=(0,h.useRef)(null),g=(0,h.useRef)(null),m=(0,h.useRef)(null),v=(0,h.useRef)(null),y=(0,h.useState)(!1),w=l()(y,2),b=w[0],x=w[1],S=(0,h.useState)("正在加载中"),P=l()(S,2),k=P[0],C=P[1];(0,h.useEffect)((function(){return m.current||(m.current=document.createElement("style"),document.head.appendChild(m.current)),null!=e&&e.visible?(document.body.setAttribute("data-custom","y-hidden"),m.current.innerHTML=" html { overflow-y: hidden; }",null!=e&&e.src&&A()):(document.body.removeAttribute("data-custom"),m.current&&(document.head.removeChild(m.current),m.current=null)),function(){document.body.removeAttribute("data-custom"),m.current&&(document.head.removeChild(m.current),m.current=null)}}),[null==e?void 0:e.visible]);var A=function(){var t=a()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),C("正在加载中"),t.next=4,(0,F.ZJ)(null==e?void 0:e.src);case 4:n=t.sent,p.current.src="",p.current.src=n,p.current.onload=function(){E()},x(!1),C("");case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),M=function(){var t=a()(r()().mark((function t(n){var i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),C("正在保存中"),t.next=4,(0,it.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:e.title,file:n.dataUrl}});case 4:if(null==(i=t.sent)||!i.id||f){t.next=12;break}return t.next=8,(0,it.ZP)("/api/attachments/".concat(e.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===t.sent.status&&c(),t.next=13;break;case 12:null!=i&&i.id&&c(i);case 13:x(!1),C("");case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),E=function(){g.current=new hi(p.current),g.current.targetRoot=v.current,g.current.addEventListener("render",M),g.current.addEventListener("beforeclose",u),d&&(g.current.availableMarkerTypes=g.current.ALL_MARKER_TYPES,g.current.uiStyleSettings.redoButtonVisible=!0,g.current.uiStyleSettings.notesButtonVisible=!0,g.current.uiStyleSettings.zoomButtonVisible=!0,g.current.uiStyleSettings.zoomOutButtonVisible=!0,g.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=g.current.uiStyleSettings,g.current.show(),null!=e&&e.snapshotData&&g.current.restoreState(e.snapshotData),setTimeout((function(){var t;window.scrollTo(0,0),(t=document.querySelector('a[href="https://markerjs.com/"]'))&&t.parentNode&&(t.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(t){var e=document.querySelector(t.name);e&&e.setAttribute("title",t.title)}))}),300)};return(0,at.jsx)(h.Fragment,{children:(null==e?void 0:e.visible)&&(0,at.jsx)(_.Z,{spinning:b,tip:k,style:{position:"absolute",width:"100vw"},children:(0,at.jsx)("div",{ref:v,className:Lt()(fn,n,i?gn:""),style:s,children:(0,at.jsx)("img",{className:pn,ref:p})})})})},fi=n(67390),pi=(0,d.connect)((function(t){return{classroomList:t.classroomList}}))((function(t){var e,n=t.className,i=t.style,o=t.dataSource,s=void 0===o?[]:o,u=t.authority,c=void 0!==u&&u,d=t.callback,f=t.showDimensions,p=void 0===f||f,g=t.classroomList,m=(0,h.useState)({content:"",type:""}),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)({}),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)(!1),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)({title:"",visible:!1,src:"",snapshotData:{}}),L=l()(E,2),T=L[0],N=L[1],j=(0,h.useRef)(),I=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(P(e),"txt"!==e.file_type){t.next=6;break}return t.next=4,(0,it.ZP)(e.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:n=t.sent,j.current=n;case 6:w({type:e.file_type,content:fi.Z.API_SERVER+e.url});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=function(t){var e;N({visible:!0,src:fi.Z.API_SERVER+t.url,id:t.id,title:t.title,snapshotData:null==t||null===(e=t.subitem)||void 0===e?void 0:e.settings})},O=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w({type:e.file_type,content:fi.Z.API_SERVER+(null==e||null===(n=e.subitem)||void 0===n?void 0:n.url)});case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return null!=s&&s.length?(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("div",{className:Lt()(on,n),style:i,children:s.map((function(t,e){var n,i,r;return(0,at.jsxs)("div",{className:an,children:[(0,at.jsxs)("div",{className:sn,onClick:function(){return I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-fujian1"}),(0,at.jsx)("span",{title:t.title,children:t.title})]}),(0,at.jsx)("div",{className:ln,children:t.filesize}),(0,at.jsxs)("div",{className:un,onClick:function(){var e,n;!(0,xt.Rm)()||null!==(e=g.AssistantObject.normal)&&void 0!==e&&e.can_download?(0,F.Nd)("","".concat(fi.Z.API_SERVER).concat(null===(n=t.url)||void 0===n?void 0:n.replace("disposition=inline",""))):H.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:[(0,at.jsx)("i",{className:"iconfont icon-xiazai4"}),"下载"]}),!["other","download"].includes(null==t?void 0:t.file_type)&&(0,at.jsxs)("div",{className:cn,onClick:function(){return I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-yulan"}),"预览"]}),["image"].includes(null==t?void 0:t.file_type)&&p&&(c?(0,at.jsxs)("div",{className:hn,onClick:function(){return B(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-pizhu"}),null!==(n=t.subitem)&&void 0!==n&&n.id?"修改批注":"批注"]}):(null===(i=t.subitem)||void 0===i?void 0:i.id)&&(0,at.jsxs)("div",{className:hn,onClick:function(){return O(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"查看老师批注"]})),["image"].includes(null==t?void 0:t.file_type)&&(null===(r=t.subitem)||void 0===r?void 0:r.id)&&(0,at.jsxs)("div",{className:un,style:{marginLeft:20},onClick:function(){var e;(0,F.Nd)("","".concat(fi.Z.API_SERVER).concat(null==t||null===(e=t.subitem)||void 0===e||null===(e=e.url)||void 0===e?void 0:e.replace("disposition=inline","")))},children:[(0,at.jsx)("i",{className:"iconfont icon-xiazai4"}),"下载批注文件"]}),["office"].includes(null==t?void 0:t.file_type)&&(0,xt.eB)()&&["xlsx","docx","pptx"].includes(null==t?void 0:t.file_sub)&&p&&(0,at.jsxs)("div",{className:hn,onClick:function(){M(!0),I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-pizhu"}),t.is_edit?"修改批注":"批注"]}),t.is_edit&&(0,xt.dE)()&&p&&(0,at.jsxs)("div",{className:hn,onClick:function(){I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-sousuo7"}),"查看老师批注"]})]},e)}))}),(0,at.jsx)(dn.Z,{close:!0,data:null==y?void 0:y.content,type:null==y?void 0:y.type,hasMask:!0,disabledDownload:(0,xt.Rm)()&&!(null!==(e=g.AssistantObject.normal)&&void 0!==e&&e.can_download),editOffice:A?"edit":"view",monacoEditor:{value:j.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:c&&p&&"image"===y.type?function(){return B(S)}:null,onClose:function(){d(),M(!1),w({content:"",type:""})}}),(0,at.jsx)(di,{onOk:function(){d(),N({visible:!1})},onClose:function(){return N({visible:!1})},data:T,showFullTools:!0})]}):null}));nn().locale("ZH-cn");var gi=["","简单","中等","困难"],mi=function(t){var e,n,i,o,s=t.setScoreShow,u=t.ScoreShow,c=t.modalDdata,f=t.homeType,p=(t.homeId,(0,h.useState)(G()(G()({},(0,d.useParams)()),{},{per_page:10}))),g=l()(p,2),m=g[0],v=g[1],y=(0,h.useState)("1"),w=l()(y,2),b=w[0],x=w[1];return(0,h.useEffect)((function(){v(G()({},m))}),[]),(0,at.jsx)("div",{children:(0,at.jsxs)(U.Z,{title:"详情",footer:!1,open:u,width:900,centered:!0,className:Xe,onCancel:function(){s(!1)},children:[(0,at.jsx)(De.Z,{className:qe,activeKey:b,onChange:function(t){x(t)},items:[{label:"".concat("HomeworkCommon"==f?"说明":"作业描述"),key:"1"},{label:"".concat("HomeworkCommon"==f?"题目列表":"参考答案"),key:"2"}]}),"HomeworkCommon"==f?(0,at.jsxs)("div",{className:Ke,children:["1"==b&&(0,at.jsxs)("section",{className:" edu-container",style:{background:"#fff",width:"100%"},children:[!(null!=c&&c.description)&&(0,at.jsx)(Ve.Z,{customText:"暂无说明"}),(0,at.jsx)(rn.Z,{value:(null==c?void 0:c.description)||""})]}),"2"==b&&(0,at.jsxs)("div",{children:[(0,at.jsx)("section",{className:" edu-container",style:{background:"#fff",width:"100%"},children:(null==c||null===(e=c.data)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.identifier)&&(0,at.jsx)(Fe.Z,{dataSource:null==c?void 0:c.data,rowKey:function(t){return null==t?void 0:t.identifier},pagination:!1,expandable:{expandedRowRender:function(t){return(0,at.jsxs)("div",{style:{padding:"10px 48px",borderRadius:2},children:[(0,at.jsxs)("p",{children:["题目:",null==t?void 0:t.name]}),(0,at.jsxs)("p",{children:["描述:",null==t?void 0:t.description]}),!(0,xt.dE)()&&(0,at.jsxs)("p",{children:["题目解析:",(0,at.jsx)(rn.Z,{style:{fontSize:"14px"},value:(null==t?void 0:t.analysis)||"暂无解析"})]})]})},defaultExpandedRowKeys:null==c||null===(n=c.data)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.identifier},columns:[{title:"题目",dataIndex:"name",ellipsis:!0,key:"name"},{title:"难度",dataIndex:"difficult",key:"difficult",render:function(t,e,n){return(0,at.jsx)("div",{children:gi[t]})}},{title:"知识点",dataIndex:"tag_discipline",ellipsis:!0,key:"tag_discipline"},{title:"操作",dataIndex:"identifier",key:"identifier",render:function(t,e,n){return(0,at.jsx)("div",{children:(0,at.jsx)("a",{onClick:a()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/problems/".concat(null==e?void 0:e.identifier,"/start.json"),{method:"get"});case 2:(n=t.sent)&&window.open("/myproblems/".concat(null==n?void 0:n.identifier,"?type=1&backUrl=/paths/").concat(null==m?void 0:m.pathId));case 4:case"end":return t.stop()}}),t)}))),children:"体验"})})}}]})}),(0,at.jsx)("aside",{className:"tc mt30 pb30",children:(0,at.jsx)(nt.Z,{defaultCurrent:1,total:null==c?void 0:c.count,hideOnSinglePage:!0,showTotal:function(t){return(0,at.jsxs)("span",{children:["共",t,"条"]})},current:m.page||1,pageSize:m.per_page||10,onChange:function(t,e){m.page=t,m.per_page=e,v(G()({},m))}})})]})]}):(0,at.jsxs)("div",{className:Ke,children:["1"==b&&(null!=c&&c.description||(null==c||null===(i=c.attachments)||void 0===i?void 0:i.length)>0?"group"==(null==c?void 0:c.homework_type)?(0,at.jsxs)("div",{children:[(0,at.jsx)(rn.Z,{value:null==c?void 0:c.description,className:Qe,style:{color:"#5f6367"}}),(0,at.jsxs)("div",{className:Je,children:["分组要求",(0,at.jsxs)("span",{className:$e,children:[null==c?void 0:c.min_num,"-",null==c?void 0:c.max_num]}),"人",(0,at.jsx)("span",{className:tn,children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})]}),(0,at.jsxs)("div",{className:Je,children:["基于项目实施",(0,at.jsx)("span",{className:$e,children:null!=c&&c.base_on_project?"是":"否"}),(0,at.jsx)("span",{className:tn,children:null!=c&&c.base_on_project?"(学生必须在平台创建项目,项目管理员可以提交作品)":"(学生不需要在本平台创建项目,所有学生可以提交作品)"})]}),(0,at.jsx)(pi,{callback:function(){},dataSource:null==c?void 0:c.attachments})]}):(0,at.jsxs)("div",{children:[(0,at.jsx)(rn.Z,{value:null==c?void 0:c.description,style:{color:"#5f6367",fontSize:14}}),(0,at.jsx)(pi,{callback:function(){},dataSource:null==c?void 0:c.attachments})]}):(0,at.jsx)(Ve.Z,{styles:{margin:"80px auto"}})),"2"==b&&(null!=c&&c.reference_answer||(null==c||null===(o=c.ref_attachments)||void 0===o?void 0:o.length)>0?(0,at.jsxs)("div",{children:[(0,at.jsx)(rn.Z,{value:null==c?void 0:c.reference_answer,style:{color:"#5f6367",fontSize:14}}),(0,at.jsx)(pi,{callback:function(){},dataSource:null==c?void 0:c.ref_attachments})]}):(0,at.jsx)(Ve.Z,{styles:{margin:"80px auto"}}))]})]})})},vi=n(31468),yi=n.n(vi),wi=n(82100),bi=n.n(wi),xi=n(29186),Si=n.n(xi),Pi=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Object.assign=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","error",i),t.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}},{key:"i",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","info",i),t.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}},{key:"w",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","warn",i),t.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}},{key:"d",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","debug",i),t.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}},{key:"v",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","verbose",i),t.ENABLE_VERBOSE&&console.log(i)}}]),t}();Mi.GLOBAL_TAG="flv.js",Mi.FORCE_GLOBAL_TAG=!1,Mi.ENABLE_ERROR=!0,Mi.ENABLE_INFO=!0,Mi.ENABLE_WARN=!0,Mi.ENABLE_DEBUG=!0,Mi.ENABLE_VERBOSE=!0,Mi.ENABLE_CALLBACK=!1,Mi.emitter=new(Ai());var Ei=Mi,Li=function(){function t(){bi()(this,t),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Si()(t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(t){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=t,this._totalBytes+=t):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=t,this._totalBytes+=t):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=t,this._totalBytes+=t,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var t=(this._now()-this._lastCheckpoint)/1e3;return 0==t&&(t=1),this._intervalBytes/t/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var t=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/t/1024}}]),t}(),Ti=n(80619),Ni=n.n(Ti),ji=n(47074),Ii=n.n(ji),Bi=function(){function t(e){bi()(this,t),this._message=e}return Si()(t,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),t}(),Oi=function(t){Ni()(n,t);var e=Ii()(n);function n(t){return bi()(this,n),e.call(this,t)}return Si()(n,[{key:"name",get:function(){return"IllegalStateException"}}]),n}(Bi),Di=function(t){Ni()(n,t);var e=Ii()(n);function n(t){return bi()(this,n),e.call(this,t)}return Si()(n,[{key:"name",get:function(){return"InvalidArgumentException"}}]),n}(Bi),Ri=function(t){Ni()(n,t);var e=Ii()(n);function n(t){return bi()(this,n),e.call(this,t)}return Si()(n,[{key:"name",get:function(){return"NotImplementedException"}}]),n}(Bi),Fi={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},zi={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},Gi=function(){function t(e){bi()(this,t),this._type=e||"undefined",this._status=Fi.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Si()(t,[{key:"destroy",value:function(){this._status=Fi.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===Fi.kConnecting||this._status===Fi.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(t){this._onContentLengthKnown=t}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(t){this._onURLRedirect=t}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(t){this._onDataArrival=t}},{key:"onError",get:function(){return this._onError},set:function(t){this._onError=t}},{key:"onComplete",get:function(){return this._onComplete},set:function(t){this._onComplete=t}},{key:"open",value:function(t,e){throw new Ri("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new Ri("Unimplemented abstract function!")}}]),t}(),Ui=n(4811),Hi=n.n(Ui),_i=n(34577),Zi=n.n(_i),Wi={};!function(){var t=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(t)||[],n=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(android)/.exec(t)||/(windows)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||[],i={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:n[0]||""},r={};if(i.browser){r[i.browser]=!0;var o=i.majorVersion.split(".");r.version={major:parseInt(i.majorVersion,10),string:i.version},o.length>1&&(r.version.minor=parseInt(o[1],10)),o.length>2&&(r.version.build=parseInt(o[2],10))}if(i.platform&&(r[i.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;var a="msie";i.browser=a,r[a]=!0}if(r.edge){delete r.edge;var s="msedge";i.browser=s,r[s]=!0}if(r.opr){var l="opera";i.browser=l,r[l]=!0}if(r.safari&&r.android){var u="android";i.browser=u,r[u]=!0}for(var c in r.name=i.browser,r.platform=i.platform,Wi)Wi.hasOwnProperty(c)&&delete Wi[c];Object.assign(Wi,r)}();var Vi=Wi,Yi=function(t){Ni()(n,t);var e=Ii()(n);function n(t,i){var r;return bi()(this,n),(r=e.call(this,"fetch-stream-loader")).TAG="FetchStreamLoader",r._seekHandler=t,r._config=i,r._needStash=!0,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return Si()(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Hi()(Zi()(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(t,e){var n=this;this._dataSource=t,this._range=e;var i=t.url;this._config.reuseRedirectedURL&&null!=t.redirectedURL&&(i=t.redirectedURL);var r=this._seekHandler.getConfig(i,e),o=new self.Headers;if("object"===yi()(r.headers)){var a=r.headers;for(var s in a)a.hasOwnProperty(s)&&o.append(s,a[s])}var l={method:"GET",headers:o,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===yi()(this._config.headers))for(var u in this._config.headers)o.append(u,this._config.headers[u]);!1===t.cors&&(l.mode="same-origin"),t.withCredentials&&(l.credentials="include"),t.referrerPolicy&&(l.referrerPolicy=t.referrerPolicy),this._status=Fi.kConnecting,self.fetch(r.url,l).then((function(t){if(n._requestAbort)return n._requestAbort=!1,void(n._status=Fi.kIdle);if(t.ok&&t.status>=200&&t.status<=299){if(t.url!==r.url&&n._onURLRedirect){var e=n._seekHandler.removeURLParameters(t.url);n._onURLRedirect(e)}var i=t.headers.get("Content-Length");return null!=i&&(n._contentLength=parseInt(i),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,t.body.getReader())}if(n._status=Fi.kError,!n._onError)throw new Bi("FetchStreamLoader: Http code invalid, "+t.status+" "+t.statusText);n._onError(zi.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})})).catch((function(t){if(n._status=Fi.kError,!n._onError)throw t;n._onError(zi.EXCEPTION,{code:-1,msg:t.message})}))}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(t){var e=this;return t.read().then((function(n){if(n.done)if(null!==e._contentLength&&e._receivedLength=15048,e=!Vi.msedge||t;return self.fetch&&self.ReadableStream&&e}catch(t){return!1}}}]),n}(Gi),Xi=Yi,qi=function(t){Ni()(n,t);var e=Ii()(n);function n(t,i){var r;return bi()(this,n),(r=e.call(this,"xhr-moz-chunked-loader")).TAG="MozChunkedLoader",r._seekHandler=t,r._config=i,r._needStash=!0,r._xhr=null,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return Si()(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Hi()(Zi()(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(t,e){this._dataSource=t,this._range=e;var n=t.url;this._config.reuseRedirectedURL&&null!=t.redirectedURL&&(n=t.redirectedURL);var i=this._seekHandler.getConfig(n,e);this._requestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),t.withCredentials&&(r.withCredentials=!0),"object"===yi()(i.headers)){var o=i.headers;for(var a in o)o.hasOwnProperty(a)&&r.setRequestHeader(a,o[a])}if("object"===yi()(this._config.headers)){var s=this._config.headers;for(var l in s)s.hasOwnProperty(l)&&r.setRequestHeader(l,s[l])}this._status=Fi.kConnecting,r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=Fi.kComplete}},{key:"_onReadyStateChange",value:function(t){var e=t.target;if(2===e.readyState){if(null!=e.responseURL&&e.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(e.responseURL);this._onURLRedirect(n)}if(0!==e.status&&(e.status<200||e.status>299)){if(this._status=Fi.kError,!this._onError)throw new Bi("MozChunkedLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(zi.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}else this._status=Fi.kBuffering}}},{key:"_onProgress",value:function(t){if(this._status!==Fi.kError){null===this._contentLength&&null!==t.total&&0!==t.total&&(this._contentLength=t.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var e=t.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=e.byteLength,this._onDataArrival&&this._onDataArrival(e,n,this._receivedLength)}}},{key:"_onLoadEnd",value:function(t){!0!==this._requestAbort?this._status!==Fi.kError&&(this._status=Fi.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}},{key:"_onXhrError",value:function(t){this._status=Fi.kError;var e=0,n=null;if(this._contentLength&&t.loaded=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:e,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(t,e){this._lastTimeLoaded=0;var n=t.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=t.redirectedURL&&(n=t.redirectedURL));var i=this._seekHandler.getConfig(n,e);this._currentRequestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),t.withCredentials&&(r.withCredentials=!0),"object"===yi()(i.headers)){var o=i.headers;for(var a in o)o.hasOwnProperty(a)&&r.setRequestHeader(a,o[a])}if("object"===yi()(this._config.headers)){var s=this._config.headers;for(var l in s)s.hasOwnProperty(l)&&r.setRequestHeader(l,s[l])}r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=Fi.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(t){var e=t.target;if(2===e.readyState){if(null!=e.responseURL){var n=this._seekHandler.removeURLParameters(e.responseURL);e.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(e.status>=200&&e.status<=299){if(this._waitForTotalLength)return;this._status=Fi.kBuffering}else{if(this._status=Fi.kError,!this._onError)throw new Bi("RangeLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(zi.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}}}},{key:"_onProgress",value:function(t){if(this._status!==Fi.kError){if(null===this._contentLength){var e=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,e=!0;var n=t.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,e)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var i=t.loaded-this._lastTimeLoaded;this._lastTimeLoaded=t.loaded,this._speedSampler.addBytes(i)}}},{key:"_normalizeSpeed",value:function(t){var e=this._chunkSizeKBList,n=e.length-1,i=0,r=0,o=n;if(t=e[i]&&t=3&&(e=this._speedSampler.currentKBps)),0!==e){var n=this._normalizeSpeed(e);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var i=t.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;var o=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength0)for(var o=n.split("&"),a=0;a0;s[0]!==this._startName&&s[0]!==this._endName&&(l&&(r+="&"),r+=o[a])}return 0===r.length?e:e+"?"+r}}]),t}(),ir=nr,rr=function(){function t(e,n,i){bi()(this,t),this.TAG="IOController",this._config=n,this._extraData=i,this._stashInitialSize=393216,null!=n.stashInitialSize&&n.stashInitialSize>0&&(this._stashInitialSize=n.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===n.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new Li,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Si()(t,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(t){this._extraData=t}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(t){this._onDataArrival=t}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(t){this._onSeeked=t}},{key:"onError",get:function(){return this._onError},set:function(t){this._onError=t}},{key:"onComplete",get:function(){return this._onComplete},set:function(t){this._onComplete=t}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(t){this._onRedirect=t}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(t){this._onRecoveredEarlyEof=t}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===Ji?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var t=this._config;if("range"===t.seekType)this._seekHandler=new er(this._config.rangeLoadZeroStart);else if("param"===t.seekType){var e=t.seekParamStart||"bstart",n=t.seekParamEnd||"bend";this._seekHandler=new ir(e,n)}else{if("custom"!==t.seekType)throw new Di("Invalid seekType in config: ".concat(t.seekType));if("function"!=typeof t.customSeekHandler)throw new Di("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new t.customSeekHandler}}},{key:"_selectLoader",value:function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=tr;else if(Xi.isSupported())this._loaderClass=Xi;else if(Ki.isSupported())this._loaderClass=Ki;else{if(!Ji.isSupported())throw new Bi("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=Ji}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(t){this._currentRange={from:0,to:-1},t&&(this._currentRange.from=t),this._speedSampler.reset(),t||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var t=this._resumeFrom;this._resumeFrom=0,this._internalSeek(t,!0)}}},{key:"seek",value:function(t){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(t,!0)}},{key:"_internalSeek",value:function(t,e){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(e),this._loader.destroy(),this._loader=null;var n={from:t,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(t){if(!t||"string"!=typeof t||0===t.length)throw new Di("Url must be a non-empty string!");this._dataSource.url=t}},{key:"_expandBuffer",value:function(t){for(var e=this._stashSize;e+10485760){var i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,e).set(i,0)}this._stashBuffer=n,this._bufferSize=e}}},{key:"_normalizeSpeed",value:function(t){var e=this._speedNormalizeList,n=e.length-1,i=0,r=0,o=n;if(t=e[i]&&t=512&&t<=1024?Math.floor(1.5*t):2*t)>8192&&(e=8192);var n=1024*e+1048576;this._bufferSize0){var a=this._stashBuffer.slice(0,this._stashUsed),s=this._dispatchChunks(a,this._stashByteStart);if(s0){var l=new Uint8Array(a,s);o.set(l,0),this._stashUsed=l.byteLength,this._stashByteStart+=s}}else this._stashUsed=0,this._stashByteStart+=s;this._stashUsed+t.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+t.byteLength),o=new Uint8Array(this._stashBuffer,0,this._bufferSize)),o.set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength}else{var u=this._dispatchChunks(t,e);if(uthis._bufferSize&&(this._expandBuffer(c),o=new Uint8Array(this._stashBuffer,0,this._bufferSize)),o.set(new Uint8Array(t,u),0),this._stashUsed+=c,this._stashByteStart=e+u}}}else if(0===this._stashUsed){var h=this._dispatchChunks(t,e);if(hthis._bufferSize&&this._expandBuffer(d),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(t,h),0),this._stashUsed+=d,this._stashByteStart=e+h}}else{this._stashUsed+t.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+t.byteLength);var f=new Uint8Array(this._stashBuffer,0,this._bufferSize);f.set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength;var p=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(p0){var g=new Uint8Array(this._stashBuffer,p);f.set(g,0)}this._stashUsed-=p,this._stashByteStart+=p}}}},{key:"_flushStashBuffer",value:function(t){if(this._stashUsed>0){var e=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(e,this._stashByteStart),i=e.byteLength-n;if(n0){var r=new Uint8Array(this._stashBuffer,0,this._bufferSize),o=new Uint8Array(e,n);r.set(o,0),this._stashUsed=o.byteLength,this._stashByteStart+=n}return 0}Ei.w(this.TAG,"".concat(i," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,i}return 0}},{key:"_onLoaderComplete",value:function(t,e){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(t,e){if(Ei.e(this.TAG,"Loader error, code = ".concat(e.code,", msg = ").concat(e.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,t=zi.UNRECOVERABLE_EARLY_EOF),t===zi.EARLY_EOF){if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n0){var n=t.getConfig();e.emit("change",n)}}},{key:"registerListener",value:function(e){t.emitter.addListener("change",e)}},{key:"removeListener",value:function(e){t.emitter.removeListener("change",e)}},{key:"addLogListener",value:function(e){Ei.emitter.addListener("log",e),Ei.emitter.listenerCount("log")>0&&(Ei.ENABLE_CALLBACK=!0,t._notifyChange())}},{key:"removeLogListener",value:function(e){Ei.emitter.removeListener("log",e),0===Ei.emitter.listenerCount("log")&&(Ei.ENABLE_CALLBACK=!1,t._notifyChange())}}]),t}();hr.emitter=new(Ai());var dr=hr,fr=function(){function t(){bi()(this,t),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Si()(t,[{key:"isComplete",value:function(){var t=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,e=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&t&&e}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(t){if(null==this.keyframesIndex)return null;var e=this.keyframesIndex,n=this._search(e.times,t);return{index:n,milliseconds:e.times[n],fileposition:e.filepositions[n]}}},{key:"_search",value:function(t,e){var n=0,i=t.length-1,r=0,o=0,a=i;for(e=t[r]&&e=128){e.push(String.fromCharCode(65535&o)),i+=2;continue}}}else if(n[i]<240){if(gr(n,i,2)){var a=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(a>=2048&&55296!=(63488&a)){e.push(String.fromCharCode(65535&a)),i+=3;continue}}}else if(n[i]<248&&gr(n,i,3)){var s=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(s>65536&&s<1114112){s-=65536,e.push(String.fromCharCode(s>>>10|55296)),e.push(String.fromCharCode(1023&s|56320)),i+=4;continue}}e.push(String.fromCharCode(65533)),++i}return e.join("")},yr=(mr=new ArrayBuffer(2),new DataView(mr).setInt16(0,256,!0),256===new Int16Array(mr)[0]),wr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"parseScriptData",value:function(e,n,i){var r={};try{var o=t.parseValue(e,n,i),a=t.parseValue(e,n+o.size,i-o.size);r[o.data]=a.data}catch(t){Ei.e("AMF",t.toString())}return r}},{key:"parseObject",value:function(e,n,i){if(i<3)throw new Oi("Data not enough when parse ScriptDataObject");var r=t.parseString(e,n,i),o=t.parseValue(e,n+r.size,i-r.size),a=o.objectEnd;return{data:{name:r.data,value:o.data},size:r.size+o.size,objectEnd:a}}},{key:"parseVariable",value:function(e,n,i){return t.parseObject(e,n,i)}},{key:"parseString",value:function(t,e,n){if(n<2)throw new Oi("Data not enough when parse String");var i=new DataView(t,e,n).getUint16(0,!yr);return{data:i>0?vr(new Uint8Array(t,e+2,i)):"",size:2+i}}},{key:"parseLongString",value:function(t,e,n){if(n<4)throw new Oi("Data not enough when parse LongString");var i=new DataView(t,e,n).getUint32(0,!yr);return{data:i>0?vr(new Uint8Array(t,e+4,i)):"",size:4+i}}},{key:"parseDate",value:function(t,e,n){if(n<10)throw new Oi("Data size invalid when parse Date");var i=new DataView(t,e,n),r=i.getFloat64(0,!yr),o=i.getInt16(8,!yr);return{data:new Date(r+=60*o*1e3),size:10}}},{key:"parseValue",value:function(e,n,i){if(i<1)throw new Oi("Data not enough when parse Value");var r,o=new DataView(e,n,i),a=1,s=o.getUint8(0),l=!1;try{switch(s){case 0:r=o.getFloat64(1,!yr),a+=8;break;case 1:r=!!o.getUint8(1),a+=1;break;case 2:var u=t.parseString(e,n+1,i-1);r=u.data,a+=u.size;break;case 3:r={};var c=0;for(9==(16777215&o.getUint32(i-4,!yr))&&(c=3);a32)throw new Di("ExpGolomb: readBits() bits exceeded max 32bits!");if(t<=this._current_word_bits_left){var e=this._current_word>>>32-t;return this._current_word<<=t,this._current_word_bits_left-=t,e}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var i=t-this._current_word_bits_left;this._fillCurrentWord();var r=Math.min(i,this._current_word_bits_left),o=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,n=n<>>t))return this._current_word<<=t,this._current_word_bits_left-=t,t;return this._fillCurrentWord(),t+this._skipLeadingZero()}},{key:"readUEG",value:function(){var t=this._skipLeadingZero();return this.readBits(t+1)-1}},{key:"readSEG",value:function(){var t=this.readUEG();return 1&t?t+1>>>1:-1*(t>>>1)}}]),t}(),Sr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"_ebsp2rbsp",value:function(t){for(var e=t,n=e.byteLength,i=new Uint8Array(n),r=0,o=0;o=2&&3===e[o]&&0===e[o-1]&&0===e[o-2]||(i[r]=e[o],r++);return new Uint8Array(i.buffer,0,r)}},{key:"parseSPS",value:function(e){var n=t._ebsp2rbsp(e),i=new xr(n);i.readByte();var r=i.readByte();i.readByte();var o=i.readByte();i.readUEG();var a=t.getProfileString(r),s=t.getLevelString(o),l=1,u=420,c=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(3===(l=i.readUEG())&&i.readBits(1),l<=3&&(u=[0,420,422,444][l]),c=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool()))for(var h=3!==l?8:12,d=0;d0&&T<16?(k=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][T-1],C=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][T-1]):255===T&&(k=i.readByte()<<8|i.readByte(),C=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){var N=i.readBits(32),j=i.readBits(32);M=i.readBool(),A=(E=j)/(L=2*N)}}var I=1;1===k&&1===C||(I=k/C);var B=0,O=0;0===l?(B=1,O=2-w):(B=3===l?1:2,O=(1===l?2:1)*(2-w));var D=16*(v+1),R=16*(y+1)*(2-w);D-=(b+x)*B,R-=(S+P)*O;var F=Math.ceil(D*I);return i.destroy(),i=null,{profile_string:a,level_string:s,bit_depth:c,ref_frames:m,chroma_format:u,chroma_format_string:t.getChromaFormatString(u),frame_rate:{fixed:M,fps:A,fps_den:L,fps_num:E},sar_ratio:{width:k,height:C},codec_size:{width:D,height:R},present_size:{width:F,height:R}}}},{key:"_skipScalingList",value:function(t,e){for(var n=8,i=8,r=0;r13))return 0;i=t.probe(e).dataOffset}this._firstParse&&(this._firstParse=!1,n+i!==this._dataOffset&&Ei.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==new DataView(e,i).getUint32(0,!r)&&Ei.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4);for(;ie.byteLength)break;var a=o.getUint8(0),s=16777215&o.getUint32(0,!r);if(i+11+s+4>e.byteLength)break;if(8===a||9===a||18===a){var l=o.getUint8(4),u=o.getUint8(5),c=o.getUint8(6)|u<<8|l<<16|o.getUint8(7)<<24;0!==(16777215&o.getUint32(7,!r))&&Ei.w(this.TAG,"Meet tag which has StreamID != 0!");var h=i+11;switch(a){case 8:this._parseAudioData(e,h,s,c);break;case 9:this._parseVideoData(e,h,s,c,n+i);break;case 18:this._parseScriptData(e,h,s)}var d=o.getUint32(11+s,!r);d!==11+s&&Ei.w(this.TAG,"Invalid PrevTagSize ".concat(d)),i+=11+s+4}else Ei.w(this.TAG,"Unsupported tag type ".concat(a,", skipped")),i+=11+s+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}},{key:"_parseScriptData",value:function(t,e,n){var i=br.parseScriptData(t,e,n);if(i.hasOwnProperty("onMetaData")){if(null==i.onMetaData||"object"!==yi()(i.onMetaData))return void Ei.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&Ei.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;var r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),"boolean"==typeof r.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof r.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof r.audiodatarate&&(this._mediaInfo.audioDataRate=r.audiodatarate),"number"==typeof r.videodatarate&&(this._mediaInfo.videoDataRate=r.videodatarate),"number"==typeof r.width&&(this._mediaInfo.width=r.width),"number"==typeof r.height&&(this._mediaInfo.height=r.height),"number"==typeof r.duration){if(!this._durationOverrided){var o=Math.floor(r.duration*this._timescale);this._duration=o,this._mediaInfo.duration=o}}else this._mediaInfo.duration=0;if("number"==typeof r.framerate){var a=Math.floor(1e3*r.framerate);if(a>0){var s=a/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=s,this._referenceFrameRate.fps_num=a,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=s}}if("object"===yi()(r.keyframes)){this._mediaInfo.hasKeyframesIndex=!0;var l=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(l),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,Ei.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}},{key:"_parseKeyframesIndex",value:function(t){for(var e=[],n=[],i=1;i>>4;if(2===o||10===o){var a=0,s=(12&r)>>>2;if(s>=0&&s<=4){a=this._flvSoundRateTable[s];var l=1&r,u=this._audioMetadata,c=this._audioTrack;if(u||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(u=this._audioMetadata={}).type="audio",u.id=c.id,u.timescale=this._timescale,u.duration=this._duration,u.audioSampleRate=a,u.channelCount=0===l?1:2),10===o){var h=this._parseAACAudioData(t,e+1,n-1);if(null==h)return;if(0===h.packetType){u.config&&Ei.w(this.TAG,"Found another AudioSpecificConfig!");var d=h.data;u.audioSampleRate=d.samplingRate,u.channelCount=d.channelCount,u.codec=d.codec,u.originalCodec=d.originalCodec,u.config=d.config,u.refSampleDuration=1024/u.audioSampleRate*u.timescale,Ei.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",u);var f=this._mediaInfo;f.audioCodec=u.originalCodec,f.audioSampleRate=u.audioSampleRate,f.audioChannelCount=u.channelCount,f.hasVideo?null!=f.videoCodec&&(f.mimeType='video/x-flv; codecs="'+f.videoCodec+","+f.audioCodec+'"'):f.mimeType='video/x-flv; codecs="'+f.audioCodec+'"',f.isComplete()&&this._onMediaInfo(f)}else if(1===h.packetType){var p=this._timestampBase+i,g={unit:h.data,length:h.data.byteLength,dts:p,pts:p};c.samples.push(g),c.length+=h.data.length}else Ei.e(this.TAG,"Flv: Unsupported AAC data type ".concat(h.packetType))}else if(2===o){if(!u.codec){var m=this._parseMP3AudioData(t,e+1,n-1,!0);if(null==m)return;u.audioSampleRate=m.samplingRate,u.channelCount=m.channelCount,u.codec=m.codec,u.originalCodec=m.originalCodec,u.refSampleDuration=1152/u.audioSampleRate*u.timescale,Ei.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",u);var v=this._mediaInfo;v.audioCodec=u.codec,v.audioSampleRate=u.audioSampleRate,v.audioChannelCount=u.channelCount,v.audioDataRate=m.bitRate,v.hasVideo?null!=v.videoCodec&&(v.mimeType='video/x-flv; codecs="'+v.videoCodec+","+v.audioCodec+'"'):v.mimeType='video/x-flv; codecs="'+v.audioCodec+'"',v.isComplete()&&this._onMediaInfo(v)}var y=this._parseMP3AudioData(t,e+1,n-1,!1);if(null==y)return;var w=this._timestampBase+i,b={unit:y,length:y.byteLength,dts:w,pts:w};c.samples.push(b),c.length+=y.length}}else this._onError(kr.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+s)}else this._onError(kr.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+o)}}},{key:"_parseAACAudioData",value:function(t,e,n){if(!(n<=1)){var i={},r=new Uint8Array(t,e,n);return i.packetType=r[0],0===r[0]?i.data=this._parseAACAudioSpecificConfig(t,e+1,n-1):i.data=r.subarray(1),i}Ei.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(t,e,n){var i,r,o=new Uint8Array(t,e,n),a=null,s=0,l=null;if(s=i=o[0]>>>3,(r=(7&o[0])<<1|o[1]>>>7)<0||r>=this._mpegSamplingRates.length)this._onError(kr.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var u=this._mpegSamplingRates[r],c=(120&o[1])>>>3;if(!(c<0||c>=8)){5===s&&(l=(7&o[1])<<1|o[2]>>>7,(124&o[2])>>>2);var h=self.navigator.userAgent.toLowerCase();return-1!==h.indexOf("firefox")?r>=6?(s=5,a=new Array(4),l=r-3):(s=2,a=new Array(2),l=r):-1!==h.indexOf("android")?(s=2,a=new Array(2),l=r):(s=5,l=r,a=new Array(4),r>=6?l=r-3:1===c&&(s=2,a=new Array(2),l=r)),a[0]=s<<3,a[0]|=(15&r)>>>1,a[1]=(15&r)<<7,a[1]|=(15&c)<<3,5===s&&(a[1]|=(15&l)>>>1,a[2]=(1&l)<<7,a[2]|=8,a[3]=0),{config:a,samplingRate:u,channelCount:c,codec:"mp4a.40."+s,originalCodec:"mp4a.40."+i}}this._onError(kr.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(t,e,n,i){if(!(n<4)){this._littleEndian;var r=new Uint8Array(t,e,n),o=null;if(i){if(255!==r[0])return;var a=r[1]>>>3&3,s=(6&r[1])>>1,l=(240&r[2])>>>4,u=(12&r[2])>>>2,c=3!==(r[3]>>>6&3)?2:1,h=0,d=0;switch(a){case 0:h=this._mpegAudioV25SampleRateTable[u];break;case 2:h=this._mpegAudioV20SampleRateTable[u];break;case 3:h=this._mpegAudioV10SampleRateTable[u]}switch(s){case 1:34,l>>4,s=15&o;7===s?this._parseAVCVideoPacket(t,e+1,n-1,i,r,a):this._onError(kr.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(s))}}},{key:"_parseAVCVideoPacket",value:function(t,e,n,i,r,o){if(n<4)Ei.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var a=this._littleEndian,s=new DataView(t,e,n),l=s.getUint8(0),u=(16777215&s.getUint32(0,!a))<<8>>8;if(0===l)this._parseAVCDecoderConfigurationRecord(t,e+4,n-4);else if(1===l)this._parseAVCVideoData(t,e+4,n-4,i,r,o,u);else if(2!==l)return void this._onError(kr.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(l))}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(t,e,n){if(n<7)Ei.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var i=this._videoMetadata,r=this._videoTrack,o=this._littleEndian,a=new DataView(t,e,n);i?void 0!==i.avcc&&Ei.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(i=this._videoMetadata={}).type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);var s=a.getUint8(0),l=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1===s&&0!==l)if(this._naluLengthSize=1+(3&a.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var u=31&a.getUint8(5);if(0!==u){u>1&&Ei.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(u));for(var c=6,h=0;h1&&Ei.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(S)),c++;for(var P=0;P=n){Ei.w(this.TAG,"Malformed Nalu near timestamp ".concat(f,", offset = ").concat(h,", dataSize = ").concat(n));break}var g=l.getUint32(h,!s);if(3===d&&(g>>>=8),g>n-d)return void Ei.w(this.TAG,"Malformed Nalus near timestamp ".concat(f,", NaluSize > DataSize!"));var m=31&l.getUint8(h+d);5===m&&(p=!0);var v=new Uint8Array(t,e+h,d+g),y={type:m,data:v};u.push(y),c+=v.byteLength,h+=d+g}if(u.length){var w=this._videoTrack,b={units:u,length:c,isKeyframe:p,dts:f,cts:a,pts:f+a};p&&(b.fileposition=r),w.samples.push(b),w.length+=c}}}],[{key:"probe",value:function(t){var e=new Uint8Array(t),n={match:!1};if(70!==e[0]||76!==e[1]||86!==e[2]||1!==e[3])return n;var i,r,o=(4&e[4])>>>2!=0,a=0!=(1&e[4]),s=(i=e)[r=5]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3];return s<9?n:{match:!0,consumed:s,dataOffset:s,hasAudioTrack:o,hasVideoTrack:a}}}]),t}(),Ar=Cr,Mr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"init",value:function(){for(var e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var n=t.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=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]),n.HDLR_AUDIO=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]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(t){for(var e=8,n=null,i=Array.prototype.slice.call(arguments,1),r=i.length,o=0;o>>24&255,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n.set(t,4);for(var a=8,s=0;s>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n,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]))}},{key:"trak",value:function(e){return t.box(t.types.trak,t.tkhd(e),t.mdia(e))}},{key:"tkhd",value:function(e){var n=e.id,i=e.duration,r=e.presentWidth,o=e.presentHeight;return t.box(t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,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,r>>>8&255,255&r,0,0,o>>>8&255,255&o,0,0]))}},{key:"mdia",value:function(e){return t.box(t.types.mdia,t.mdhd(e),t.hdlr(e),t.minf(e))}},{key:"mdhd",value:function(e){var n=e.timescale,i=e.duration;return t.box(t.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}},{key:"hdlr",value:function(e){var n=null;return n="audio"===e.type?t.constants.HDLR_AUDIO:t.constants.HDLR_VIDEO,t.box(t.types.hdlr,n)}},{key:"minf",value:function(e){var n=null;return n="audio"===e.type?t.box(t.types.smhd,t.constants.SMHD):t.box(t.types.vmhd,t.constants.VMHD),t.box(t.types.minf,n,t.dinf(),t.stbl(e))}},{key:"dinf",value:function(){return t.box(t.types.dinf,t.box(t.types.dref,t.constants.DREF))}},{key:"stbl",value:function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.constants.STTS),t.box(t.types.stsc,t.constants.STSC),t.box(t.types.stsz,t.constants.STSZ),t.box(t.types.stco,t.constants.STCO))}},{key:"stsd",value:function(e){return"audio"===e.type?"mp3"===e.codec?t.box(t.types.stsd,t.constants.STSD_PREFIX,t.mp3(e)):t.box(t.types.stsd,t.constants.STSD_PREFIX,t.mp4a(e)):t.box(t.types.stsd,t.constants.STSD_PREFIX,t.avc1(e))}},{key:"mp3",value:function(e){var n=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return t.box(t.types[".mp3"],r)}},{key:"mp4a",value:function(e){var n=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return t.box(t.types.mp4a,r,t.esds(e))}},{key:"esds",value:function(e){var n=e.config||[],i=n.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(n).concat([6,1,2]));return t.box(t.types.esds,r)}},{key:"avc1",value:function(e){var n=e.avcc,i=e.codecWidth,r=e.codecHeight,o=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,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return t.box(t.types.avc1,o,t.box(t.types.avcC,n))}},{key:"mvex",value:function(e){return t.box(t.types.mvex,t.trex(e))}},{key:"trex",value:function(e){var n=e.id,i=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return t.box(t.types.trex,i)}},{key:"moof",value:function(e,n){return t.box(t.types.moof,t.mfhd(e.sequenceNumber),t.traf(e,n))}},{key:"mfhd",value:function(e){var n=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]);return t.box(t.types.mfhd,n)}},{key:"traf",value:function(e,n){var i=e.id,r=t.box(t.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),o=t.box(t.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),a=t.sdtp(e),s=t.trun(e,a.byteLength+16+16+8+16+8+8);return t.box(t.types.traf,r,o,s,a)}},{key:"sdtp",value:function(e){for(var n=e.samples||[],i=n.length,r=new Uint8Array(4+i),o=0;o>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.isNonSync,0,0,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*s)}return t.box(t.types.trun,a)}},{key:"mdat",value:function(e){return t.box(t.types.mdat,e)}}]),t}();Mr.init();var Er=Mr,Lr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"getSilentFrame",value:function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)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(6===e)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])}else{if(1===e)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(2===e)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(3===e)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])}return null}}]),t}(),Tr=Si()((function t(e,n,i,r,o){bi()(this,t),this.dts=e,this.pts=n,this.duration=i,this.originalDts=r,this.isSyncPoint=o,this.fileposition=null})),Nr=function(){function t(){bi()(this,t),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Si()(t,[{key:"appendSyncPoint",value:function(t){t.isSyncPoint=!0,this.syncPoints.push(t)}}]),t}(),jr=function(){function t(){bi()(this,t),this._list=[]}return Si()(t,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(t){var e=this._list;0!==t.length&&(e.length>0&&t[0].originalDts=e[r].dts&&te[i].lastSample.originalDts&&t=e[i].lastSample.originalDts&&(i===e.length-1||i0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)}},{key:"getLastSegmentBefore",value:function(t){var e=this._searchNearestSegmentBefore(t);return e>=0?this._list[e]:null}},{key:"getLastSampleBefore",value:function(t){var e=this.getLastSegmentBefore(t);return null!=e?e.lastSample:null}},{key:"getLastSyncPointBefore",value:function(t){for(var e=this._searchNearestSegmentBefore(t),n=this._list[e].syncPoints;0===n.length&&e>0;)e--,n=this._list[e].syncPoints;return n.length>0?n[n.length-1]:null}}]),t}(),Br=function(){function t(e){bi()(this,t),this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ir("audio"),this._videoSegmentInfoList=new Ir("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!Vi.chrome||!(Vi.version.major<50||50===Vi.version.major&&Vi.version.build<2661)),this._fillSilentAfterSeek=Vi.msedge||Vi.msie,this._mp3UseMpegAudio=!Vi.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Si()(t,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(t){return t.onDataAvailable=this.remux.bind(this),t.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(t){this._onInitSegment=t}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(t){this._onMediaSegment=t}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(t){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(t,e){if(!this._onMediaSegment)throw new Oi("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(t,e),this._remuxVideo(e),this._remuxAudio(t)}},{key:"_onTrackMetadataReceived",value:function(t,e){var n=null,i="mp4",r=e.codec;if("audio"===t)this._audioMeta=e,"mp3"===e.codec&&this._mp3UseMpegAudio?(i="mpeg",r="",n=new Uint8Array):n=Er.generateInitSegment(e);else{if("video"!==t)return;this._videoMeta=e,n=Er.generateInitSegment(e)}if(!this._onInitSegment)throw new Oi("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(t,{type:t,data:n.buffer,codec:r,container:"".concat(t,"/").concat(i),mediaDuration:e.duration})}},{key:"_calculateDtsBase",value:function(t,e){this._dtsBaseInited||(t.samples&&t.samples.length&&(this._audioDtsBase=t.samples[0].dts),e.samples&&e.samples.length&&(this._videoDtsBase=e.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}},{key:"flushStashedSamples",value:function(){var t=this._videoStashedLastSample,e=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=t&&(n.samples.push(t),n.length=t.length);var i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}},{key:"_remuxAudio",value:function(t,e){if(null!=this._audioMeta){var n,i=t,r=i.samples,o=void 0,a=-1,s=this._audioMeta.refSampleDuration,l="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,u=this._dtsBaseInited&&void 0===this._audioNextDts,c=!1;if(r&&0!==r.length&&(1!==r.length||e)){var h=0,d=null,f=0;l?(h=0,f=i.length):(h=8,f=8+i.length);var p=null;if(r.length>1&&(f-=(p=r.pop()).length),null!=this._audioStashedLastSample){var g=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(g),f+=g.length}null!=p&&(this._audioStashedLastSample=p);var m=r[0].dts-this._dtsBase;if(this._audioNextDts)o=m-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())o=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(c=!0);else{var v=this._audioSegmentInfoList.getLastSampleBefore(m);if(null!=v){var y=m-(v.originalDts+v.duration);y<=3&&(y=0),o=m-(v.dts+v.duration+y)}else o=0}if(c){var w=m-o,b=this._videoSegmentInfoList.getLastSegmentBefore(m);if(null!=b&&b.beginDts=1?k[k.length-1].duration:Math.floor(s);var N=!1,j=null;if(T>1.5*s&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!Vi.safari){N=!0;var I=Math.abs(T-s),B=Math.ceil(I/s),O=L+s;Ei.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+"dts: ".concat(L+T," ms, expected: ").concat(L+Math.round(s)," ms, ")+"delta: ".concat(Math.round(I)," ms, generate: ").concat(B," frames"));var D=Lr.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==D&&(Ei.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),D=M),j=[];for(var R=0;R0){var z=j[j.length-1];z.duration=F-z.dts}var G={dts:F,pts:F,cts:0,unit:D,size:D.byteLength,duration:0,originalDts:E,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};j.push(G),f+=G.size,O+=s}var U=j[j.length-1];U.duration=L+T-U.dts,T=Math.round(s)}k.push({dts:L,pts:L,cts:0,unit:A.unit,size:A.unit.byteLength,duration:T,originalDts:E,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),N&&k.push.apply(k,j)}l?d=new Uint8Array(f):((d=new Uint8Array(f))[0]=f>>>24&255,d[1]=f>>>16&255,d[2]=f>>>8&255,d[3]=255&f,d.set(Er.types.mdat,4));for(var H=0;H1&&(h-=(d=o.pop()).length),null!=this._videoStashedLastSample){var f=this._videoStashedLastSample;this._videoStashedLastSample=null,o.unshift(f),h+=f.length}null!=d&&(this._videoStashedLastSample=d);var p=o[0].dts-this._dtsBase;if(this._videoNextDts)a=p-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())a=0;else{var g=this._videoSegmentInfoList.getLastSampleBefore(p);if(null!=g){var m=p-(g.originalDts+g.duration);m<=3&&(m=0),a=p-(g.dts+g.duration+m)}else a=0}for(var v=new Nr,y=[],w=0;w=1?y[y.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(S){var M=new Tr(P,C,A,b.dts,!0);M.fileposition=b.fileposition,v.appendSyncPoint(M)}y.push({dts:P,pts:C,cts:k,units:b.units,size:b.length,isKeyframe:S,duration:A,originalDts:x,flags:{isLeading:0,dependsOn:S?2:1,isDependedOn:S?1:0,hasRedundancy:0,isNonSync:S?0:1}})}(c=new Uint8Array(h))[0]=h>>>24&255,c[1]=h>>>16&255,c[2]=h>>>8&255,c[3]=255&h,c.set(Er.types.mdat,4);for(var E=0;E0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(t,e);else if((i=Ar.probe(t)).match){this._demuxer=new Ar(i,this._config),this._remuxer||(this._remuxer=new Or(this._config));var o=this._mediaDataSource;null==o.duration||isNaN(o.duration)||(this._demuxer.overridedDuration=o.duration),"boolean"==typeof o.hasAudio&&(this._demuxer.overridedHasAudio=o.hasAudio),"boolean"==typeof o.hasVideo&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(t,e)}else i=null,Ei.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(Dr.DEMUX_ERROR,kr.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}},{key:"_onMediaInfo",value:function(t){var e=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},t),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,pr.prototype));var n=Object.assign({},t);Object.setPrototypeOf(n,pr.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var t=e._pendingSeekTime;e._pendingSeekTime=null,e.seek(t)}))}},{key:"_onMetaDataArrived",value:function(t){this._emitter.emit(Dr.METADATA_ARRIVED,t)}},{key:"_onScriptDataArrived",value:function(t){this._emitter.emit(Dr.SCRIPTDATA_ARRIVED,t)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(t){var e=t+1;e0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(Dr.RECOMMEND_SEEKPOINT,i)}}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(t){var e=this._mediaInfo.segments[t],n=Object.assign({},e);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(Dr.MEDIA_INFO,n)}},{key:"_reportStatisticsInfo",value:function(){var t={};t.url=this._ioctl.currentURL,t.hasRedirect=this._ioctl.hasRedirect,t.hasRedirect&&(t.redirectedURL=this._ioctl.currentRedirectedURL),t.speed=this._ioctl.currentSpeed,t.loaderType=this._ioctl.loaderType,t.currentSegmentIndex=this._currentSegmentIndex,t.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Dr.STATISTICS_INFO,t)}}]),t}(),Fr=Rr,zr=function(t){var e=null,n=function(e,n){t.postMessage({msg:"logcat_callback",data:{type:e,logcat:n}})}.bind(this);function i(e,n){var i={msg:Dr.INIT_SEGMENT,data:{type:e,data:n}};t.postMessage(i,[n.data])}function r(e,n){var i={msg:Dr.MEDIA_SEGMENT,data:{type:e,data:n}};t.postMessage(i,[n.data])}function o(){var e={msg:Dr.LOADING_COMPLETE};t.postMessage(e)}function a(){var e={msg:Dr.RECOVERED_EARLY_EOF};t.postMessage(e)}function s(e){var n={msg:Dr.MEDIA_INFO,data:e};t.postMessage(n)}function l(e){var n={msg:Dr.METADATA_ARRIVED,data:e};t.postMessage(n)}function u(e){var n={msg:Dr.SCRIPTDATA_ARRIVED,data:e};t.postMessage(n)}function c(e){var n={msg:Dr.STATISTICS_INFO,data:e};t.postMessage(n)}function h(e,n){t.postMessage({msg:Dr.IO_ERROR,data:{type:e,info:n}})}function d(e,n){t.postMessage({msg:Dr.DEMUX_ERROR,data:{type:e,info:n}})}function f(e){t.postMessage({msg:Dr.RECOMMEND_SEEKPOINT,data:e})}ki.install(),t.addEventListener("message",(function(p){switch(p.data.cmd){case"init":(e=new Fr(p.data.param[0],p.data.param[1])).on(Dr.IO_ERROR,h.bind(this)),e.on(Dr.DEMUX_ERROR,d.bind(this)),e.on(Dr.INIT_SEGMENT,i.bind(this)),e.on(Dr.MEDIA_SEGMENT,r.bind(this)),e.on(Dr.LOADING_COMPLETE,o.bind(this)),e.on(Dr.RECOVERED_EARLY_EOF,a.bind(this)),e.on(Dr.MEDIA_INFO,s.bind(this)),e.on(Dr.METADATA_ARRIVED,l.bind(this)),e.on(Dr.SCRIPTDATA_ARRIVED,u.bind(this)),e.on(Dr.STATISTICS_INFO,c.bind(this)),e.on(Dr.RECOMMEND_SEEKPOINT,f.bind(this));break;case"destroy":e&&(e.destroy(),e=null),t.postMessage({msg:"destroyed"});break;case"start":e.start();break;case"stop":e.stop();break;case"seek":e.seek(p.data.param);break;case"pause":e.pause();break;case"resume":e.resume();break;case"logging_config":var g=p.data.param;dr.applyConfig(g),!0===g.enableCallback?dr.addLogListener(n):dr.removeLogListener(n)}}))},Gr=function(){function t(e,i){if(bi()(this,t),this.TAG="Transmuxer",this._emitter=new(Ai()),i.enableWorker&&"undefined"!=typeof Worker)try{var r=n(82059);this._worker=r(zr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,i]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},dr.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:dr.getConfig()})}catch(t){Ei.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Fr(e,i)}else this._controller=new Fr(e,i);if(this._controller){var o=this._controller;o.on(Dr.IO_ERROR,this._onIOError.bind(this)),o.on(Dr.DEMUX_ERROR,this._onDemuxError.bind(this)),o.on(Dr.INIT_SEGMENT,this._onInitSegment.bind(this)),o.on(Dr.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),o.on(Dr.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),o.on(Dr.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),o.on(Dr.MEDIA_INFO,this._onMediaInfo.bind(this)),o.on(Dr.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),o.on(Dr.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),o.on(Dr.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),o.on(Dr.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Si()(t,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),dr.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"hasWorker",value:function(){return null!=this._worker}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(t){this._worker?this._worker.postMessage({cmd:"seek",param:t}):this._controller.seek(t)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.INIT_SEGMENT,t,e)}))}},{key:"_onMediaSegment",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.MEDIA_SEGMENT,t,e)}))}},{key:"_onLoadingComplete",value:function(){var t=this;Promise.resolve().then((function(){t._emitter.emit(Dr.LOADING_COMPLETE)}))}},{key:"_onRecoveredEarlyEof",value:function(){var t=this;Promise.resolve().then((function(){t._emitter.emit(Dr.RECOVERED_EARLY_EOF)}))}},{key:"_onMediaInfo",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.MEDIA_INFO,t)}))}},{key:"_onMetaDataArrived",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.METADATA_ARRIVED,t)}))}},{key:"_onScriptDataArrived",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.SCRIPTDATA_ARRIVED,t)}))}},{key:"_onStatisticsInfo",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.STATISTICS_INFO,t)}))}},{key:"_onIOError",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.IO_ERROR,t,e)}))}},{key:"_onDemuxError",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.DEMUX_ERROR,t,e)}))}},{key:"_onRecommendSeekpoint",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.RECOMMEND_SEEKPOINT,t)}))}},{key:"_onLoggingConfigChanged",value:function(t){this._worker&&this._worker.postMessage({cmd:"logging_config",param:t})}},{key:"_onWorkerMessage",value:function(t){var e=t.data,n=e.data;if("destroyed"===e.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(e.msg){case Dr.INIT_SEGMENT:case Dr.MEDIA_SEGMENT:this._emitter.emit(e.msg,n.type,n.data);break;case Dr.LOADING_COMPLETE:case Dr.RECOVERED_EARLY_EOF:this._emitter.emit(e.msg);break;case Dr.MEDIA_INFO:Object.setPrototypeOf(n,pr.prototype),this._emitter.emit(e.msg,n);break;case Dr.METADATA_ARRIVED:case Dr.SCRIPTDATA_ARRIVED:case Dr.STATISTICS_INFO:this._emitter.emit(e.msg,n);break;case Dr.IO_ERROR:case Dr.DEMUX_ERROR:this._emitter.emit(e.msg,n.type,n.info);break;case Dr.RECOMMEND_SEEKPOINT:this._emitter.emit(e.msg,n);break;case"logcat_callback":Ei.emitter.emit("log",n.type,n.logcat)}}}]),t}(),Ur=Gr,Hr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},_r=function(){function t(e){bi()(this,t),this.TAG="MSEController",this._config=e,this._emitter=new(Ai()),this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new jr}return Si()(t,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"attachMediaElement",value:function(t){if(this._mediaSource)throw new Oi("MediaSource has been attached to an HTMLMediaElement!");var e=this._mediaSource=new window.MediaSource;e.addEventListener("sourceopen",this.e.onSourceOpen),e.addEventListener("sourceended",this.e.onSourceEnded),e.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=t,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),t.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var t=this._mediaSource;for(var e in this._sourceBuffers){var n=this._pendingSegments[e];n.splice(0,n.length),this._pendingSegments[e]=null,this._pendingRemoveRanges[e]=null,this._lastInitSegments[e]=null;var i=this._sourceBuffers[e];if(i){if("closed"!==t.readyState){try{t.removeSourceBuffer(i)}catch(t){Ei.e(this.TAG,t.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[e]=null,this._sourceBuffers[e]=null}}if("open"===t.readyState)try{t.endOfStream()}catch(t){Ei.e(this.TAG,t.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(t,e){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(t),void this._pendingSegments[t.type].push(t);var n=t,i="".concat(n.container);n.codec&&n.codec.length>0&&(i+=";codecs=".concat(n.codec));var r=!1;if(Ei.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])Ei.v(this.TAG,"Notice: ".concat(n.type," mimeType changed, origin: ").concat(this._mimeTypes[n.type],", target: ").concat(i));else{r=!0;try{var o=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);o.addEventListener("error",this.e.onSourceBufferError),o.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(t){return Ei.e(this.TAG,t.message),void this._emitter.emit(Hr.ERROR,{code:t.code,msg:t.message})}}this._mimeTypes[n.type]=i}e||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),Vi.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(t){var e=t;this._pendingSegments[e.type].push(e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[e.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(t){for(var e in this._sourceBuffers)if(this._sourceBuffers[e]){var n=this._sourceBuffers[e];if("open"===this._mediaSource.readyState)try{n.abort()}catch(t){Ei.e(this.TAG,t.message)}this._idrList.clear();var i=this._pendingSegments[e];if(i.splice(0,i.length),"closed"!==this._mediaSource.readyState){for(var r=0;r=1&&t-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var t=this._mediaElement.currentTime;for(var e in this._sourceBuffers){var n=this._sourceBuffers[e];if(n){for(var i=n.buffered,r=!1,o=0;o=this._config.autoCleanupMaxBackwardDuration){r=!0;var l=t-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[e].push({start:a,end:l})}}else s0&&(isNaN(e)||n>e)&&(Ei.v(this.TAG,"Update MediaSource duration from ".concat(e," to ").concat(n)),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}}},{key:"_doRemoveRanges",value:function(){for(var t in this._pendingRemoveRanges)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating)for(var e=this._sourceBuffers[t],n=this._pendingRemoveRanges[t];n.length&&!e.updating;){var i=n.shift();e.remove(i.start,i.end)}}},{key:"_doAppendSegments",value:function(){var t=this._pendingSegments;for(var e in t)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating&&t[e].length>0){var n=t[e].shift();if(n.timestampOffset){var i=this._sourceBuffers[e].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(Ei.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(i," to ").concat(r)),this._sourceBuffers[e].timestampOffset=r),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[e].appendBuffer(n.data),this._isBufferFull=!1,"video"===e&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(t){this._pendingSegments[e].unshift(n),22===t.code?(this._isBufferFull||this._emitter.emit(Hr.BUFFER_FULL),this._isBufferFull=!0):(Ei.e(this.TAG,t.message),this._emitter.emit(Hr.ERROR,{code:t.code,msg:t.message}))}}}},{key:"_onSourceOpen",value:function(){if(Ei.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var t=this._pendingSourceBufferInit;t.length;){var e=t.shift();this.appendInitSegment(e,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Hr.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){Ei.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){Ei.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var t=this._pendingSegments;return t.video.length>0||t.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var t=this._pendingRemoveRanges;return t.video.length>0||t.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Hr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(t){Ei.e(this.TAG,"SourceBuffer Error: ".concat(t))}}]),t}(),Zr=_r,Wr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Vr={NETWORK_EXCEPTION:zi.EXCEPTION,NETWORK_STATUS_CODE_INVALID:zi.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:zi.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:zi.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:kr.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:kr.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:kr.CODEC_UNSUPPORTED},Yr=function(){function t(e,n){if(bi()(this,t),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(Ai()),this._config=sr(),"object"===yi()(n)&&Object.assign(this._config,n),"flv"!==e.type.toLowerCase())throw new Di("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var i=Vi.chrome&&(Vi.version.major<50||50===Vi.version.major&&Vi.version.build<2661);this._alwaysSeekKeyframe=!!(i||Vi.msedge||Vi.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Si()(t,[{key:"destroy",value:function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){var n=this;t===cr.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){n._emitter.emit(cr.MEDIA_INFO,n.mediaInfo)})):t===cr.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){n._emitter.emit(cr.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"attachMediaElement",value:function(t){var e=this;if(this._mediaElement=t,t.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),t.addEventListener("seeking",this.e.onvSeeking),t.addEventListener("canplay",this.e.onvCanPlay),t.addEventListener("stalled",this.e.onvStalled),t.addEventListener("progress",this.e.onvProgress),this._msectl=new Zr(this._config),this._msectl.on(Hr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Hr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Hr.SOURCE_OPEN,(function(){e._mseSourceOpened=!0,e._hasPendingLoad&&(e._hasPendingLoad=!1,e.load())})),this._msectl.on(Hr.ERROR,(function(t){e._emitter.emit(cr.ERROR,Wr.MEDIA_ERROR,Vr.MEDIA_MSE_ERROR,t)})),this._msectl.attachMediaElement(t),null!=this._pendingSeekTime)try{t.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var t=this;if(!this._mediaElement)throw new Oi("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new Oi("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Ur(this._mediaDataSource,this._config),this._transmuxer.on(Dr.INIT_SEGMENT,(function(e,n){t._msectl.appendInitSegment(n)})),this._transmuxer.on(Dr.MEDIA_SEGMENT,(function(e,n){if(t._msectl.appendMediaSegment(n),t._config.lazyLoad&&!t._config.isLive){var i=t._mediaElement.currentTime;n.info.endDts>=1e3*(i+t._config.lazyLoadMaxDuration)&&null==t._progressChecker&&(Ei.v(t.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),t._suspendTransmuxer())}})),this._transmuxer.on(Dr.LOADING_COMPLETE,(function(){t._msectl.endOfStream(),t._emitter.emit(cr.LOADING_COMPLETE)})),this._transmuxer.on(Dr.RECOVERED_EARLY_EOF,(function(){t._emitter.emit(cr.RECOVERED_EARLY_EOF)})),this._transmuxer.on(Dr.IO_ERROR,(function(e,n){t._emitter.emit(cr.ERROR,Wr.NETWORK_ERROR,e,n)})),this._transmuxer.on(Dr.DEMUX_ERROR,(function(e,n){t._emitter.emit(cr.ERROR,Wr.MEDIA_ERROR,e,{code:-1,msg:n})})),this._transmuxer.on(Dr.MEDIA_INFO,(function(e){t._mediaInfo=e,t._emitter.emit(cr.MEDIA_INFO,Object.assign({},e))})),this._transmuxer.on(Dr.METADATA_ARRIVED,(function(e){t._emitter.emit(cr.METADATA_ARRIVED,e)})),this._transmuxer.on(Dr.SCRIPTDATA_ARRIVED,(function(e){t._emitter.emit(cr.SCRIPTDATA_ARRIVED,e)})),this._transmuxer.on(Dr.STATISTICS_INFO,(function(e){t._statisticsInfo=t._fillStatisticsInfo(e),t._emitter.emit(cr.STATISTICS_INFO,Object.assign({},t._statisticsInfo))})),this._transmuxer.on(Dr.RECOMMEND_SEEKPOINT,(function(e){t._mediaElement&&!t._config.accurateSeek&&(t._requestSetTime=!0,t._mediaElement.currentTime=e/1e3)})),this._transmuxer.open()))}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(t){this._mediaElement.volume=t}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(t){this._mediaElement.muted=t}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(t){this._mediaElement?this._internalSeek(t):this._pendingSeekTime=t}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(t){if(t.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return t;var e=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):e=!1;return e&&(t.decodedFrames=n,t.droppedFrames=i),t}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var t=this._mediaElement.buffered,e=this._mediaElement.currentTime,n=0,i=0;i=e+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(Ei.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){Ei.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var t=this._mediaElement.currentTime,e=this._mediaElement.buffered,n=!1,i=0;i=r&&t=o-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(Ei.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(t){for(var e=this._mediaElement.buffered,n=0;n=i&&t0){var r=this._mediaElement.buffered.start(0);(r<1&&t0&&e.currentTime0){var i=n.start(0);if(i<1&&e0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(t){this._mediaElement.volume=t}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(t){this._mediaElement.muted=t}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(t){this._mediaElement?this._mediaElement.currentTime=t:this._pendingSeekTime=t}},{key:"mediaInfo",get:function(){var t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}},{key:"statisticsInfo",get:function(){var t={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return t;var e=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):e=!1;return e&&(t.decodedFrames=n,t.droppedFrames=i),t}},{key:"_onvLoadedMetadata",value:function(t){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(cr.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(cr.STATISTICS_INFO,this.statisticsInfo)}}]),t}();ki.install();var Kr={createPlayer:function(t,e){var n=t;if(null==n||"object"!==yi()(n))throw new Di("MediaDataSource must be an javascript object!");if(!n.hasOwnProperty("type"))throw new Di("MediaDataSource must has type field to indicate video file type!");return"flv"===n.type?new Xr(n,e):new qr(n,e)},isSupported:function(){return ur.supportMSEH264Playback()},getFeatureList:function(){return ur.getFeatureList()}};Kr.BaseLoader=Gi,Kr.LoaderStatus=Fi,Kr.LoaderErrors=zi,Kr.Events=cr,Kr.ErrorTypes=Wr,Kr.ErrorDetails=Vr,Kr.FlvPlayer=Xr,Kr.NativePlayer=qr,Kr.LoggingControl=dr,Object.defineProperty(Kr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Qr=Kr,Jr=n(15360),$r=n(56102);function to(){var t=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement;document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",t),window.isFullScreen?window.isFullScreen:null!=t}var eo={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"};function no(t){if(isNaN(t))return{minutes:"00",seconds:"00"};var e=new Date(1e3*t).toISOString().substr(11,8);return{hour:e.substr(0,2),minutes:e.substr(3,2),seconds:e.substr(6,2)}}function io(t,e){return t-e}function ro(t){t.sort(io);for(var e=0,n=0;n0&&!this.paused&&!this.ended&&this.readyState>2)}});var oo=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,ao=(0,h.forwardRef)((function(t,e){var n,i,o=t.allow_skip,s=t.src,u=t.toLog,c=t.videoId,d=t.logWatchHistory,f=t.courseId,p=void 0===f?null:f,g=t.startTime,m=t.handlePause,v=void 0===m?function(){}:m,y=t.handlePlay,w=void 0===y?function(){}:y,b=t.handlePlayEnded,x=void 0===b?function(){}:b,S=t.autoPlay,P=void 0!==S&&S,k=t.onPlayEnded,C=void 0===k?function(){}:k,A=t.isShowWaterMark,M=void 0===A||A,E="flv"===(null===(i=s=null===(n=s)||void 0===n?void 0:n.replace("http://","https://"))||void 0===i||null===(i=i.split("."))||void 0===i?void 0:i.pop()),L=(0,h.useRef)(),T=(0,h.useRef)(),N=(0,h.useRef)(),j=(0,h.useRef)(),I=(0,h.useRef)(),B=(0,h.useRef)(),O=(0,h.useRef)(),D=(0,h.useRef)(),R=(0,h.useRef)(),F=(0,h.useRef)(),z=(0,h.useRef)(),G=(0,h.useRef)(),U=(0,h.useRef)(),_=(0,h.useRef)(),Z=navigator.userAgent.toLowerCase().match(oo),W=Z?Z[0]:"pc",V=(0,h.useRef)(!1),Y=(0,xt.eY)(),X=0,q=0,K=0,Q=null,J=!1,$=20,tt=1,et=!1,nt=!1,it=[];(0,h.useImperativeHandle)(e,(function(){return{getLastUpdatedTime:function(){return L.current.currentTime},getDuration:function(){return L.current.duration}}})),H.ZP.config({maxCount:1,getContainer:function(){return N.current}});var rt=(0,h.useCallback)((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={point:L.current.currentTime};function i(){return o.apply(this,arguments)}function o(){return(o=a()(r()().mark((function e(){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return et=!0,e.next=3,null==d?void 0:d(n);case 3:i=e.sent,Q=i,et=!1,t&&t();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Q?(n.log_id=Q,n.watch_duration=ro(it),n.total_duration=q):(p?(n.video_id=parseInt(c,10),n.course_id=p):n.video_id=c,n.duration=X,n.device=W),e&&(n.ed="1"),i()}),[c,p]);function ot(){L.current.paused?(j.current.style.display="none",I.current.style.display="block"):(j.current.style.display="block",I.current.style.display="none")}function st(){z.current.style.display="none",U.current.style.display="none",G.current.style.display="none",L.current.muted||0===L.current.volume?z.current.style.display="block":L.current.volume>0&&L.current.volume<=.5?U.current.style.display="block":G.current.style.display="block"}(0,h.useEffect)((function(){var t;L.current&&(j.current.style.display="none",I.current.style.display="block"),H.ZP.destroy();var e=null;return Qr.isSupported&&E&&s&&(null===(t=s)||void 0===t?void 0:t.indexOf(".m3u8"))<0?(e=Qr.createPlayer({type:"flv",volume:.8,cors:!0,url:s,muted:!1}),L.current&&(e.attachMediaElement(L.current),e.load())):L.current.setAttribute("src",s),st(),function(){e&&(e.unload(),e.pause(),e.destroy(),e=null)}}),[L,E,s]),(0,h.useEffect)((function(){document.getElementById("play"),document.querySelectorAll(".playback-icons use");function t(){w(),g&&!V.current&&(L.current.currentTime=g),V.current=!0,it.push(L.current.currentTime),J||(J=!0,u&&rt())}function e(){return n.apply(this,arguments)}function n(){return(n=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ot(),it.push(L.current.currentTime),u&&rt((function(){Q=null,K=0,J=!1,et=!1,nt=!1,it=[],q=0,tt=1}),!0),C();case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function i(){B.current.value=Math.round(L.current.currentTime),O.current.value=Math.round(L.current.currentTime)}function s(){var t,e,n,i,r,o=Math.round(null===(t=L.current)||void 0===t?void 0:t.duration);null===(e=B.current)||void 0===e||null===(n=e.setAttribute)||void 0===n||n.call(e,"max",o),null===(i=O.current)||void 0===i||null===(r=i.setAttribute)||void 0===r||r.call(i,"max",o);var a,s,l=no(o);D.current&&(D.current.innerText="".concat(l.hour>0?l.hour+":":"").concat(l.minutes,":").concat(l.seconds),null===(a=(s=D.current).setAttribute)||void 0===a||a.call(s,"datetime","".concat(l.hour>0?" "+l.hour+" ":"").concat(l.minutes,"m ").concat(l.seconds,"s")))}function l(){try{var t=Math.round(L.current.duration);B.current.setAttribute("max",t),O.current.setAttribute("max",t);var e=no(t);D.current.innerText="".concat(e.hour>0?e.hour+":":"").concat(e.minutes,":").concat(e.seconds),D.current.setAttribute("datetime","".concat(e.hour>0?" "+e.hour+" ":"").concat(e.minutes,"m ").concat(e.seconds,"s")),i(),function(){var t=no(Math.round(L.current.currentTime));R.current.innerText="".concat(t.hour>0?t.hour+":":"").concat(t.minutes,":").concat(t.seconds),R.current.setAttribute("datetime","".concat(t.hour>0?" "+t.hour+" ":"").concat(t.minutes,"m ").concat(t.seconds,"s"))}();var n=T.current.getBoundingClientRect(),r=n.width,o=(n.height,n.x),a=n.y;if(o<0||a<0||!r)return;if(!nt){var s=L.current.currentTime,l=s-K;Math.abs(l)<10?(q+=Math.abs(l),K=s,et||q-tt*$>=0&&(tt++,it.push(K),u&&rt())):(K=s,u&&rt())}}catch(t){console.log(t)}}function c(){nt=!0}function h(){L.current.playing&&it.push(L.current.currentTime,K),K=L.current.currentTime,nt=!1}function d(){(X=L.current.duration)<=20&&($=X/3),L.current.addEventListener("play",t)}function f(){v()}function p(t){if(o){var e=t.target.dataset.seek?t.target.dataset.seek:t.target.value;L.current.currentTime=e,O.current.value=e,B.current.value=e}else H.ZP.warning("该视频禁止快进/后退播放")}function m(t){var e=Math.round(t.offsetX/t.target.clientWidth*parseInt(t.target.getAttribute("max"),10));B.current.setAttribute("data-seek",e);var n=no(e);F.current.textContent="".concat(n.hour>0?n.hour+":":"").concat(n.minutes,":").concat(n.seconds);var i=L.current.getBoundingClientRect();F.current.style.left="".concat(t.pageX-i.left,"px")}function y(t){switch(t.code){case"Space":t.preventDefault(),ht();break;case"ArrowRight":if(t.preventDefault(),!o){H.ZP.warning("该视频禁止快进/后退播放");break}if(L.current.currentTime>=L.current.duration)break;L.current.currentTime=parseInt(L.current.currentTime)+5,i();break;case"ArrowLeft":if(t.preventDefault(),!o){H.ZP.warning("该视频禁止快进/后退播放");break}if(0===L.current.currentTime)break;L.current.currentTime=parseInt(L.current.currentTime)-5,i();break;case"ArrowUp":t.preventDefault(),L.current.volume<1&&(L.current.volume=(parseInt(10*L.current.volume)+1)/10);break;case"ArrowDown":t.preventDefault(),L.current.volume>0&&(L.current.volume=(parseInt(10*L.current.volume)-1)/10)}}return N.current.addEventListener(document.webkitExitFullscreen?"webkitfullscreenchange":document.exitFullscreen?"fullscreenchange":document.msExitFullscreen?"msfullscreenchange":document.mozCancelFullScreen?"mozfullscreenchange":void 0,(function(t){t.preventDefault(),to()?(L.current.style.width="100%",L.current.style.height="100%"):L.current.style.cssText=""})),L.current.addEventListener("canplay",d),L.current.addEventListener("ended",e),L.current.addEventListener("seeking",c),L.current.addEventListener("seeked",h),L.current.addEventListener("loadedmetadata",s),B.current.addEventListener("mousemove",m),B.current.addEventListener("input",p),L.current.addEventListener("timeupdate",l),L.current.addEventListener("pause",f),L.current.addEventListener("volumechange",st),document.addEventListener("keydown",y),function(){var n,i,r,o,a,g,v,w,b,x,S,P;null===(n=L.current)||void 0===n||n.removeEventListener("canplay",d),null===(i=L.current)||void 0===i||i.removeEventListener("play",t),null===(r=L.current)||void 0===r||r.removeEventListener("ended",e),null===(o=L.current)||void 0===o||o.removeEventListener("seeking",c),null===(a=L.current)||void 0===a||a.removeEventListener("seeked",h),null===(g=B.current)||void 0===g||g.removeEventListener("mousemove",m),null===(v=B.current)||void 0===v||v.removeEventListener("input",p),null===(w=L.current)||void 0===w||w.removeEventListener("timeupdate",l),null===(b=L.current)||void 0===b||b.removeEventListener("pause",f),null===(x=L.current)||void 0===x||x.removeEventListener("loadedmetadata",s),null===(S=L.current)||void 0===S||S.removeEventListener("volumechange",st),document.removeEventListener("keydown",y),null!==(P=L.current)&&void 0!==P&&P.playing&&(it.push(K,L.current.currentTime),u&&rt())}}),[L,s]),(0,h.useEffect)((function(){var t;if(L.current.onended=function(){x(L)},L.current.oncontextmenu=function(){return!1},(null===(t=s)||void 0===t?void 0:t.indexOf(".m3u8"))>-1)if(L.current.canPlayType("application/vnd.apple.mpegurl"))L.current.src=s;else if(Jr.ZP.isSupported()){var e=new Jr.ZP;e.loadSource(s),e.attachMedia(L.current)}}),[s]);var lt=(0,h.useState)(1),ut=l()(lt,2),ct=(ut[0],ut[1]),ht=function(){L.current.paused||L.current.ended?L.current.play():L.current.pause(),ot()};return(0,at.jsxs)("div",{style:{position:"relative"},ref:N,children:[(0,at.jsx)("div",{ref:T,className:"".concat(eo.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(eo.animate__loop),children:M&&Y?Y.login:" "}),(0,at.jsx)("div",{className:eo.container,children:(0,at.jsxs)("div",{className:eo["video-container"],id:"video-container",children:[(0,at.jsx)("div",{className:eo["playback-animation"],id:"playback-animation",children:(0,at.jsxs)("svg",{className:eo["playback-icons"],children:[(0,at.jsx)("use",{className:"hidden",href:"#play-icon"}),(0,at.jsx)("use",{href:"#pause"})]})}),(0,at.jsx)("video",{className:eo.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:L,autoPlay:P}),(0,at.jsxs)("div",{className:"".concat(eo["video-controls"]," "),id:"video-controls",children:[(0,at.jsxs)("div",{className:eo["bottom-controls"],children:[(0,at.jsxs)("div",{className:eo["left-controls"],children:[(0,at.jsx)("button",{"data-title":"播放/暂停",id:"play",onClick:ht,children:(0,at.jsxs)("svg",{className:eo["playback-icons"],children:[(0,at.jsx)("use",{ref:I,href:"#play-icon"}),(0,at.jsx)("use",{ref:j,style:{display:"none"},href:"#pause"})]})}),(0,at.jsxs)("div",{className:eo.time,children:[(0,at.jsx)("time",{id:"time-elapsed",ref:R,children:"00:00"}),(0,at.jsx)("span",{children:" / "}),(0,at.jsx)("time",{id:"duration",ref:D,children:"00:00"})]})]}),(0,at.jsxs)("div",{className:eo["right-controls"],children:[o&&(0,at.jsx)(me.Z,{placement:"top",overlayClassName:eo.rateOverlay,getPopupContainer:function(t){return t.parentNode},menu:{items:[{key:"1",label:(0,at.jsx)("span",{onClick:function(){ct(1),L.current.playbackRate=1},children:"1.0x"})},{key:"2",label:(0,at.jsx)("span",{onClick:function(){ct(1.5),L.current.playbackRate=1.5},children:"1.5x"})},{key:"3",label:(0,at.jsx)("span",{onClick:function(){ct(2),L.current.playbackRate=2},children:"2.0x"})}]},children:(0,at.jsx)("div",{className:"".concat(eo.controlText," mr5"),children:"倍速"})}),(0,at.jsx)($r.CopyToClipboard,{text:s,onCopy:function(){return H.ZP.success("复制成功")},children:(0,at.jsx)("button",{"data-title":"复制链接",children:(0,at.jsx)("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}})})}),(0,at.jsxs)("div",{className:eo["volume-controls"],children:[(0,at.jsxs)("button",{"data-title":"开启/关闭声音",className:eo["volume-button"],id:"volume-button",onClick:function(){L.current.muted=!L.current.muted,L.current.muted?(_.current.setAttribute("data-volume",volume.value),_.current.value=0):_.current.value=_.current.dataset.volume},children:[(0,at.jsx)("i",{ref:z,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),(0,at.jsx)("i",{ref:U,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),(0,at.jsx)("i",{ref:G,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})]}),(0,at.jsx)("input",{className:eo.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:_,style:{display:"none"},onClick:st})]}),(0,at.jsx)("button",{"data-title":"全屏/退出全屏",className:eo["fullscreen-button"],onClick:function(){to()?window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen():function(t){try{t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()}catch(t){console.log(t,":e")}}(N.current)},children:(0,at.jsx)("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})})]})]}),(0,at.jsxs)("div",{className:eo["video-progress"],children:[(0,at.jsx)("progress",{ref:O,value:"0",min:"0"}),(0,at.jsx)("input",{className:eo.seek,ref:B,value:"0",min:"0",type:"range",step:"1"}),(0,at.jsx)("div",{className:eo["seek-tooltip"],ref:F,id:"seek-tooltip",children:"00:00"})]})]})]})}),(0,at.jsx)("svg",{style:{display:"none"},children:(0,at.jsxs)("defs",{children:[(0,at.jsx)("symbol",{id:"pause",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})}),(0,at.jsx)("symbol",{id:"play-icon",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})}),(0,at.jsx)("symbol",{id:"volume-high",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})}),(0,at.jsx)("symbol",{id:"volume-low",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})}),(0,at.jsx)("symbol",{id:"volume-mute",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})}),(0,at.jsx)("symbol",{id:"fullscreen",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})}),(0,at.jsx)("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})}),(0,at.jsx)("symbol",{id:"pip",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})})]})})]})})),so="modal___LGwws",lo="closeIcon___vsUXI",uo=n(24334),co=function(t){var e=t.visible,n=t.width,i=t.videoId,r=t.file_url,o=t.course_id,a=(t.copyUrl,t.toLog),s=void 0===a||a,l=t.logWatchHistory,u=void 0===l?function(){}:l,c=t.allow_skip,h=t.onClose,d=void 0===h?function(){}:h,f=t.autoPlay,p=void 0!==f&&f,g=t.onPlayEnded,m=void 0===g?function(){}:g;return(0,at.jsxs)(U.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:e,title:null,footer:null,width:n,className:so,children:[(0,at.jsx)("i",{className:"".concat(lo," iconfont icon-guanbi10"),onClick:d}),e&&(0,at.jsx)(ao,{onPlayEnded:m,autoPlay:p,allow_skip:c,courseId:o,src:null!=r&&r.startsWith("http")?r:uo.Base64.decode(r),videoId:i,toLog:s,logWatchHistory:u})]})},ho=(0,d.connect)((function(t){return{user:t.user,dispatch:t.dispatch}}))((function(t){var e,n=t.setScoreShow,i=t.ScoreShow,o=t.modalType,s=t.user,u=t.id,c=t.subjectId,f=t.dispatch,p=t.getData,g=t.openPreview,m=(0,h.useState)({page:1,type:"1",per_page:10,category:"manage",search:"",homework_type:"3",association_id:""}),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)([]),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)([]),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)([]),L=l()(E,2),T=L[0],N=L[1],j=(0,h.useState)(!1),I=l()(j,2),B=I[0],O=I[1],D=X.Z.useForm(),R=l()(D,1)[0],z=(0,h.useState)(0),_=l()(z,2),Z=_[0],W=_[1],V=(0,h.useState)(!1),q=l()(V,2),K=q[0],Q=q[1],J=(0,h.useState)(""),$=l()(J,2),tt=$[0],et=$[1],it=(0,h.useState)([]),ot=l()(it,2),st=ot[0],ut=ot[1],ct=(0,h.useRef)(new Set),ht=(0,h.useRef)(new Set),dt=(0,h.useState)([{}]),ft=l()(dt,2),pt=ft[0],gt=ft[1],mt=(0,h.useState)(),vt=l()(mt,2),yt=vt[0],wt=vt[1],bt=(0,h.useState)({}),xt=l()(bt,2),St=xt[0],Pt=xt[1],kt=(0,h.useState)(""),Ct=l()(kt,2),Mt=Ct[0],Et=Ct[1],Lt=(0,h.useState)(""),Tt=l()(Lt,2),Nt=Tt[0],jt=Tt[1],It=((0,d.useParams)(),(0,h.useState)(!1)),Bt=l()(It,2),Ot=Bt[0],Dt=Bt[1],Rt=[{title:"名称",dataIndex:"3"==(null==y?void 0:y.type)?"title":"name",key:"name",render:function(t,e,n){var i,r;return(0,at.jsxs)("div",{children:["1"==(null==y?void 0:y.homework_type)&&(null==e?void 0:e.name),"3"==(null==y?void 0:y.homework_type)&&(null==e?void 0:e.name),"5"==(null==y?void 0:y.homework_type)&&(null==e?void 0:e.name),"7"==(null==y?void 0:y.homework_type)&&(null==e||null===(i=e.video)||void 0===i?void 0:i.title),"8"==(null==y?void 0:y.homework_type)&&"1"==(null==y?void 0:y.type)?null==e?void 0:e.filename:null==e||null===(r=e.attachment)||void 0===r?void 0:r.filename,"3"==(null==y?void 0:y.type)&&t]})}},{title:"1"==(null==y?void 0:y.type)?"所属课堂":"所属实践课程",dataIndex:"1"==(null==y?void 0:y.type)?"course_name":"subject_name",width:"55%",key:"1"==(null==y?void 0:y.type)?"course_name":"subject_name",ellipsis:!0,hidden:"3"==(null==y?void 0:y.type)},{title:"操作",dataIndex:"id",width:"60px",key:"item_type",render:function(t,e,n){return(0,at.jsx)("div",{style:{flex:1,textAlign:"start"},children:(0,at.jsx)("a",{onClick:function(){if(null!=e&&e.link)(0,F.xg)(e.link);else if("教学课件"==o)g(e);else if("视频项目"==o){var t,n;if(null!=e&&e.video)wt(!0),Pt({videoId:null==e||null===(t=e.video)||void 0===t?void 0:t.id,file_url:null==e||null===(n=e.video)||void 0===n?void 0:n.play_url});else"3"==(null==y?void 0:y.type)?(wt(!0),Pt({videoId:e.id,file_url:e.play_url||e.file_url})):H.ZP.error("没有视频资源")}else"编程作业"==o?(0,lt.NV)({id:null==e?void 0:e.id,source:"course"}).then((function(t){var e;0==(null==t?void 0:t.status)&&(et(null==t||null===(e=t.data)||void 0===e?void 0:e.homework),jt(null==t?void 0:t.course_id));Et("HomeworkCommon"),Q(!0)})):(0,lt.NV)({id:null==e?void 0:e.id,source:"1"==(null==y?void 0:y.type)?"course":"subject"}).then((function(t){var e;0==(null==t?void 0:t.status)&&et(null==t||null===(e=t.data)||void 0===e?void 0:e.homework);Q(!0)}))},children:"查看"})})}}].filter((function(t){return!t.hidden})),Ft={type:"checkbox",selectedRowKeys:S,onSelect:function(t,e,n){if(e)P([].concat(Y()(S),[t.id])),ut([].concat(Y()(st),[t])),"2"===y.type?ct.current.add(t.id):ht.current.add(t.id),W(1),M([].concat(Y()(A),[t.id]));else{var i=st.filter((function(e){return e.id!==t.id}));ut(i);var r=i.map((function(t){return t.id}));P(Y()(r)),"2"===y.type?ct.current.delete(t.id):ht.current.delete(t.id);var o=A.filter((function(e){return e!==t.id}));M(o)}},onSelectAll:function(t,e,n){if(t){var i=n.map((function(t){return t.id}));ut([].concat(Y()(st),Y()(n))),P([].concat(Y()(S),Y()(i))),M([].concat(Y()(A),Y()(i)));var r,o=At()(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"2"===y.type?ct.current.add(a.id):ht.current.add(a.id)}}catch(t){o.e(t)}finally{o.f()}}else{var s=n.map((function(t){return t.id})),l=S.filter((function(t){return!s.some((function(e){return e===t}))})),u=st.filter((function(t){return!s.some((function(e){return e===t.id}))}));ut(u),P(Y()(l)),M(Y()(l));var c,h=At()(s);try{for(h.s();!(c=h.n()).done;){var d=c.value;"2"===y.type?ct.current.delete(d):ht.current.delete(d)}}catch(t){h.e(t)}finally{h.f()}}}};(0,h.useEffect)((function(){i&&(y.search="",y.type="1",y.homework_type="分组作业"==o?"3":"图文作业"==o?"1":"视频项目"==o?"7":"编程作业"==o?"5":"8",w(y),Kt(y),R.setFieldsValue({association_id:"",search:null}),ct.current.clear(),ht.current.clear(),ut([]),P([]),M([]))}),[i]);var zt=(0,h.useState)(1),Gt=l()(zt,2),Ut=Gt[0],Ht=Gt[1],_t=(0,h.useState)([]),Zt=l()(_t,2),Wt=Zt[0],Vt=Zt[1];(0,h.useEffect)((function(){1!=Ut&&i&&Yt(Ut)}),[Ut]),(0,h.useEffect)((function(){i&&(Vt([]),Ht(1),Yt(1))}),[y.type]);var Yt=function(t){"1"==y.type?Xt(t):"2"==y.type&&qt(t)},Xt=function(t){var e;(0,Ye.Ho)({page:t,category:"manage",status:"",sort_by:"updated_at",sort_direction:"desc",username:null==s||null===(e=s.userInfo)||void 0===e?void 0:e.login}).then((function(e){Vt(1==t?[{id:"",name:"全部教学课堂"}].concat(Y()(null==e?void 0:e.courses)):[].concat(Y()(Wt),Y()(null==e?void 0:e.courses)))}))},qt=function(t){var e;(0,Ye.w3)({page:t,category:"manage",status:"",sort_by:"updated_at",sort_direction:"desc",username:null==s||null===(e=s.userInfo)||void 0===e?void 0:e.login}).then((function(e){Vt(1==t?[{id:"",name:"全部实践课程"}].concat(Y()(null==e?void 0:e.subjects)):[].concat(Y()(Wt),Y()(null==e?void 0:e.subjects)))}))};function Kt(t){return Qt.apply(this,arguments)}function Qt(){return(Qt=a()(r()().mark((function t(e){var n,i,o,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(O(!0),w(G()({},e)),"1"!=e.type){t.next=6;break}(0,lt.A7)(G()({user_id:null==s||null===(n=s.userInfo)||void 0===n?void 0:n.login},e)).then((function(t){0==(null==t?void 0:t.status)&&N(null==t?void 0:t.data)})),t.next=15;break;case 6:if("2"!=e.type){t.next=10;break}(0,lt.jT)(G()({user_id:null==s||null===(i=s.userInfo)||void 0===i?void 0:i.login},e)).then((function(t){0==(null==t?void 0:t.status)&&N(null==t?void 0:t.data)})),t.next=15;break;case 10:if("3"!=e.type){t.next=15;break}return t.next=13,f({type:"userDetail/getVideos",payload:G()(G()({},e),{},{category:"all",sort_by:"published_at",sort_direction:"desc",username:null===(o=s.userInfo)||void 0===o?void 0:o.login})});case 13:a=t.sent,N({count:null==a?void 0:a.count,list:null==a?void 0:a.videos});case 15:O(!1);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,h.useEffect)((function(){Z>0&&setTimeout((function(){W(0)}),2e3)}),[Z]),(0,at.jsxs)("div",{children:[(0,at.jsxs)(U.Z,{title:"选用"+o,open:i,width:900,centered:!0,zIndex:10,className:ze,onCancel:function(){n(!1)},confirmLoading:Ot,onOk:a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==A?void 0:A.length)<=0)){t.next=3;break}return H.ZP.info("当前暂未选择数据"),t.abrupt("return");case 3:return Dt(!0),t.next=6,(0,lt._C)({id:u,subject_id:c,homework_type:"3"==y.type?"9":"分组作业"==o?"3":"图文作业"==o?"1":"视频项目"==o?"7":"编程作业"==o?"5":"8",homework_ids:Y()(ht.current),subject_homework_ids:Y()(ct.current)});case 6:0==(null==(e=t.sent)?void 0:e.status)&&(H.ZP.success("选用成功"),p(),n(!1)),Dt(!1);case 9:case"end":return t.stop()}}),t)}))),children:[(0,at.jsxs)("div",{className:_e,children:[(0,at.jsx)(De.Z,{className:Ze,activeKey:y.type,onChange:function(t){y.type=t,y.page=1,y.updated_at="",y.association_id=null,y.search=null,R.setFieldsValue({association_id:"",search:null}),w(G()({},y)),Kt(G()({},y))},items:[{label:"从教学课堂选用",key:"1"},"编程作业"!=o&&("视频项目"==o?{label:"从个人主页选用",key:"3"}:{label:"从实践课程选用",key:"2"})]}),(0,at.jsxs)(X.Z,{layout:"inline",className:We,form:R,onValuesChange:function(t,e){y.page=1,t.search||""===t.search||R.submit()},onFinish:function(t){w(G()(G()({},y),t)),Kt(G()(G()({},y),t))},children:["3"!=y.type&&(0,at.jsx)(X.Z.Item,{name:"association_id",children:(0,at.jsx)(Re.default,{onPopupScroll:function(t){var e=t.target;e.scrollHeight-e.clientHeight===e.scrollTop&&Ht(Ut+1)},className:Ge,style:{width:200},size:"large",children:Wt.map((function(t,e){return(0,at.jsx)(Re.default.Option,{children:null==t?void 0:t.name},null==t?void 0:t.id)}))})}),(0,at.jsx)(X.Z.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"search",children:(0,at.jsx)(rt.Z.Search,{className:Ue,placeholder:"视频项目"==o?"请输入视频名称进行搜索":"教学课件"==o?"请输入课件名称进行搜索":"请输入作业名称进行搜索",allowClear:!0,suffix:(0,at.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(He),onClick:function(){return R.submit()}}),onSearch:function(t){R.submit()}})})]})]}),(null==T||null===(e=T.list)||void 0===e?void 0:e.length)>0?(0,at.jsx)(Fe.Z,{style:{marginTop:20,marginBottom:20},scroll:{y:260},dataSource:null==T?void 0:T.list,pagination:!1,loading:B,rowKey:function(t){return t.id},rowSelection:Ft,columns:Rt}):(0,at.jsx)(Ve.Z,{}),(null==T?void 0:T.count)>0&&(0,at.jsx)(nt.Z,{current:y.page,total:null==T?void 0:T.count,style:{marginBottom:20},defaultPageSize:y.per_page,showTotal:function(t){return(0,at.jsxs)("span",{children:["共 ",(0,at.jsx)("span",{style:{color:"#165DFF"},children:t})," 条数据"]})},pageSize:y.per_page,onChange:function(t,e){y.page=t,y.per_page=e,w(G()({},y)),Kt(G()({},y))}})]}),(0,at.jsx)(mi,{setScoreShow:Q,ScoreShow:K,modalDdata:tt,homeType:Mt,homeId:Nt}),(0,at.jsx)(dn.Z,{close:!0,data:null==pt?void 0:pt.content,type:null==pt?void 0:pt.type,hasMask:!0,monacoEditor:{value:"",language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){gt({content:"",type:""})}}),(0,at.jsx)(co,G()(G()({},St),{},{visible:yt,allow_skip:!0,width:800,onClose:function(){wt(!1),Pt({})}}))]})})),fo=n(85573),po=n.n(fo),mo=n(89780),vo=n.n(mo),yo=n(76374),wo=(n(6313),n(25717),n(99498),n(25419),n(67549),function(t){var e=t.value,n=void 0===e?"":e,i=(t.className,t.showTextOnly,t.showLines,t.style,(0,h.useMemo)((function(){return""}),[n]));return(0,at.jsx)(at.Fragment,{children:(0,at.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})}),bo=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function xo(t){var e=t.onActionCallback,n=t.title,i=t.icon,r=t.actionName,o=t.className,a=void 0===o?"":o,s=t.children;return(0,at.jsxs)("a",{title:n,className:a,onClick:function(){e(r)},children:[(0,at.jsx)("i",{className:"".concat(i)}),s]})}var So=function(t){var e=t.watch,n=t.showNullButton,i=t.showNullProgramButton,r=t.onActionCallback,o=t.fullScreen,a=t.insertTemp,s=t.hidetoolBar,l=t.extraUse,u=[].concat(bo,[{title:"".concat(e?"关闭实时预览":"开启实时预览"),icon:"".concat(e?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,at.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&u.map((function(t,e){return(0,at.jsx)("li",{children:t.actionName?(0,at.jsx)(xo,G()(G()({},t),{},{onActionCallback:r})):(0,at.jsx)("span",{className:"v-line"})},e)})),n?(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,at.jsx)("li",{children:l}),(0,at.jsx)("li",{className:"btn-full-screen",children:(0,at.jsx)(xo,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},Po=n(4676),ko=function(t){Ni()(n,t);var e=Ii()(n);function n(t){var i;bi()(this,n),i=e.call(this,t);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return Si()(n,[{key:"render",value:function(){var t=this.props.children;return(0,Po.createPortal)(t,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(h.Component),Co={labelCol:{span:4},wrapperCol:{span:20}},Ao=function(t){var e=t.callback,n=t.onCancel;return(0,at.jsxs)(X.Z,G()(G()({},Co),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(t){e(t)},style:{width:500},children:[(0,at.jsx)(X.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,at.jsx)(rt.Z,{})}),(0,at.jsx)(X.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,at.jsx)(rt.Z,{})}),(0,at.jsxs)("div",{className:"flex-container flex-end",children:[(0,at.jsx)(K.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,at.jsx)(K.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},Mo=Re.default.Option,Eo={labelCol:{span:4},wrapperCol:{span:20}},Lo={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]},To=function(t){var e=t.callback,n=t.onCancel,i=(0,h.useState)("python"),r=l()(i,2),o=r[0],a=r[1];return(0,at.jsxs)(X.Z,G()(G()({},Eo),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(t){e(t)},style:{width:500},children:[(0,at.jsx)(X.Z.Item,{label:"代码语言",name:"language",children:(0,at.jsx)(Re.default,{getPopupContainer:function(t){return t.parentNode},onChange:function(t){a(Lo[t][1])},children:Object.keys(Lo).map((function(t){return(0,at.jsx)(Mo,{value:t,children:Lo[t][0]},t)}))})}),(0,at.jsx)(X.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,at.jsx)(No,{mode:o})}),(0,at.jsxs)("div",{className:"flex-container flex-end",children:[(0,at.jsx)(K.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,at.jsx)(K.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))};function No(t){var e=t.value,n=t.onChange,i=t.mode,r=t.options,o=void 0===r?{}:r,a=(0,h.useRef)(),s=(0,h.useState)(),u=l()(s,2),c=u[0],d=u[1];return(0,h.useEffect)((function(){if(c){var t=function(t){var e=t.getValue();n&&n(e)};return c.on("change",t),function(){c.off("change",t)}}}),[c,n]),(0,h.useEffect)((function(){c&&c.setOption("mode",i)}),[c,i]),(0,h.useEffect)((function(){c&&(e===c.getValue()&&""!==e||setTimeout((function(){c.setValue(e||"")}),300))}),[c,e]),(0,h.useEffect)((function(){if(a.current&&!c){var t=vo().fromTextArea(a.current,G()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},o));d(t)}}),[a.current,c]),(0,at.jsx)("div",{className:"my-codemirror-container",children:(0,at.jsx)("textarea",{ref:a})})}var jo=n(53302),Io=function(t){var e=t.callback,n=t.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,at.jsx)(U.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,at.jsx)(Q.Z,{style:{height:"100vh"},children:(0,at.jsx)(di,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(t){e({src:t.url})},onClose:n})})})},Bo=n(12378);function Oo(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Oo,go.CommandHandler),Oo.prototype.canAlignSelection=function(){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<2)},Oo.prototype.alignLeft=function(){var t=this.diagram;t.startTransaction("aligning left");var e=1/0;t.selection.each((function(t){t instanceof go.Link||(e=Math.min(t.position.x,e))})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(e,t.position.y))})),t.commitTransaction("aligning left")},Oo.prototype.alignRight=function(){var t=this.diagram;t.startTransaction("aligning right");var e=-1/0;t.selection.each((function(t){if(!(t instanceof go.Link)){var n=t.actualBounds.x+t.actualBounds.width;e=Math.max(n,e)}})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(e-t.actualBounds.width,t.position.y))})),t.commitTransaction("aligning right")},Oo.prototype.alignTop=function(){var t=this.diagram;t.startTransaction("alignTop");var e=1/0;t.selection.each((function(t){t instanceof go.Link||(e=Math.min(t.position.y,e))})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(t.position.x,e))})),t.commitTransaction("alignTop")},Oo.prototype.alignBottom=function(){var t=this.diagram;t.startTransaction("aligning bottom");var e=-1/0;t.selection.each((function(t){if(!(t instanceof go.Link)){var n=t.actualBounds.y+t.actualBounds.height;e=Math.max(n,e)}})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(t.actualBounds.x,e-t.actualBounds.height))})),t.commitTransaction("aligning bottom")},Oo.prototype.alignCenterX=function(){var t=this.diagram,e=t.selection.first();if(e){t.startTransaction("aligning Center X");var n=e.actualBounds.x+e.actualBounds.width/2;t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(n-t.actualBounds.width/2,t.actualBounds.y))})),t.commitTransaction("aligning Center X")}},Oo.prototype.alignCenterY=function(){var t=this.diagram,e=t.selection.first();if(e){t.startTransaction("aligning Center Y");var n=e.actualBounds.y+e.actualBounds.height/2;t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(t.actualBounds.x,n-t.actualBounds.height/2))})),t.commitTransaction("aligning Center Y")}},Oo.prototype.alignColumn=function(t){var e=this.diagram;e.startTransaction("align Column"),void 0===t&&(t=0),t=parseFloat(t);var n=new Array;e.selection.each((function(t){t instanceof go.Link||n.push(t)}));for(var i=0;i0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&t.select(i)}else t.select(o)}else if("Down"===n.key){var r;if(e.isTreeExpanded&&!e.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(e).first())&&t.select(r);else for(;null!==e;){var o,a,s;if(null===(o=e.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(o)).indexOf(e))i.y?1:n.xi.x?1:0})),e},Oo.prototype.copyToClipboard=function(t){go.CommandHandler.prototype.copyToClipboard.call(this,t),this._lastPasteOffset.set(this.pasteOffset)},Oo.prototype.pasteFromClipboard=function(){var t=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(t,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),t},Object.defineProperty(Oo.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(t){if("move"!==t&&"select"!==t&&"scroll"!==t&&"tree"!==t&&"none"!==t)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+t);this._arrowKeyBehavior=t}}),Object.defineProperty(Oo.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(t){if(!(t instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+t);this._pasteOffset.set(t)}});var Do=Oo,Ro=(n(77164),"myPaletteDiv___Xjz2I"),Fo="flowChartWrp____f45r",zo="maxH60___Pd4Re";var Go=function(t){var e=t.onCancel,n=t.callback,i=(0,h.useRef)(),o=(0,h.useRef)(),s=(0,h.useRef)(),u=(0,h.useRef)(!1),c=(0,h.useRef)(!1),d=(0,h.useState)(0),f=l()(d,2),p=f[0],g=f[1],m=function(){var t=a()(r()().mark((function t(){var e,o,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i.current.makeImage(),t.next=3,(0,it.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:o.src,file_data:JSON.stringify({login:null===(e=(0,xt.eY)())||void 0===e?void 0:e.login,data:JSON.parse(i.current.model.toJson())})}});case 3:a=t.sent,n({src:a.url});case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,h.useEffect)((function(){return setTimeout((function(){!function(){var t=Bo.bx.make,e="#ff3333",n="#3358ff",r="#25ad23",a="#d533ff",l="#7d33ff",u="#ff6233",c="#ffffff",h="#000000",d="#fffcd5",f="#d5ebff",p="#f2dfe0",g="#a5d2fa",m="#cccccc",v="#b3e6b3",y="#fcbbbd";function w(e,n){var i=function(t,n){t.handled=!0,t.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new Bo.E9).setRectSpot(r.actualBounds,e);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(t.diagram.grid.gridOrigin,t.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var s={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=t.diagram.findNodeForData(a);l.location=o,t.diagram.select(l),setTimeout((function(){t.diagram.commandHandler.editTextBlock()}),20)}))};return t(Bo.bn,{figure:n,alignment:e,alignmentFocus:e.opposite(),width:e.equals(Bo.z6.Top)||e.equals(Bo.z6.Bottom)?25:18,height:e.equals(Bo.z6.Top)||e.equals(Bo.z6.Bottom)?18:25,fill:"orange",stroke:c,strokeWidth:4,mouseEnter:function(t,e){return e.fill="dodgerblue"},mouseLeave:function(t,e){return e.fill="orange"},isActionable:!0,click:i,contextClick:i})}function b(e){return t(Bo.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(t,e){return e.fill="dodgerblue"},mouseLeave:function(t,e){return e.fill="orange"},click:function(t,e){t.diagram.commandHandler.showContextMenu(e.part.adornedPart)}},e||{})}function x(t,e){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,t,e)}))}}function S(e,n){return n||(n="color"),t(Bo.bn,{width:16,height:16,stroke:"lightgray",fill:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.stroke="dodgerblue"},mouseLeave:function(t,e){return e.stroke="lightgray"},click:x(n,e),contextClick:x(n,e)})}function P(){return[t("ContextMenuButton",t(Bo.s_,"Horizontal",S(c,"fill"),S(d,"fill"),S(f,"fill"),S(p,"fill"))),t("ContextMenuButton",t(Bo.s_,"Horizontal",S(m,"fill"),S(v,"fill"),S(g,"fill"),S(y,"fill")))]}function k(){return[t("ContextMenuButton",t(Bo.s_,"Horizontal",S(h),S(r),S(n),S(e))),t("ContextMenuButton",t(Bo.s_,"Horizontal",S(c),S(a),S(l),S(u)))]}function C(e,n){return n||(n="thickness"),t(Bo.bn,"LineH",{width:16,height:16,strokeWidth:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:x(n,e),contextClick:x(n,e)})}function A(e,n){return n||(n="dash"),t(Bo.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:x(n,e),contextClick:x(n,e)})}function M(){return[t("ContextMenuButton",t(Bo.s_,"Horizontal",C(1),C(2),C(3),C(4))),t("ContextMenuButton",t(Bo.s_,"Horizontal",A(null),A([2,4]),A([4,4])))]}function E(e,n){return n||(n="figure"),t(Bo.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.fill="dodgerblue"},mouseLeave:function(t,e){return e.fill="lightgray"},click:x(n,e),contextClick:x(n,e)})}function L(e){return t(Bo.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(e+4).toString()+" H3"})}function T(e){var n="M0 0 M8 16 M0 8 L16 8  M12 11 L16 8 L12 5";return 0===e?n="M0 0 M16 16 M0 8 L16 8":2===e&&(n="M0 0 M16 16 M0 8 L16 8  M12 11 L16 8 L12 5  M4 11 L0 8 L4 5"),t(Bo.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:x("dir",e),contextClick:x("dir",e)})}function N(e){var n=function(t,n){t.handled=!0,t.diagram.model.commit((function(t){var i=n.part.adornedPart;t.set(i.data,e?"toSpot":"fromSpot",Bo.z6.stringify(Bo.z6.AllSides)),(e?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return t(Bo.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:n,contextClick:n})}function j(e,n){var i=0,r=Bo.z6.RightSide;e.equals(Bo.z6.Top)?(i=270,r=Bo.z6.TopSide):e.equals(Bo.z6.Left)?(i=180,r=Bo.z6.LeftSide):e.equals(Bo.z6.Bottom)&&(i=90,r=Bo.z6.BottomSide),n||(i-=180);var o=function(t,e){t.handled=!0,t.diagram.model.commit((function(t){var i=e.part.adornedPart;t.set(i.data,n?"toSpot":"fromSpot",Bo.z6.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return t(Bo.bn,{alignment:e,alignmentFocus:e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:o,contextClick:o})}i.current=new Bo.S0(o.current,{padding:20,grid:t(Bo.s_,"Grid",t(Bo.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),t(Bo.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(t){t.diagram.commandHandler.addTopLevelParts(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},commandHandler:t(Do),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(t){var e=t.subject;e.location=e.location.copy().snapToGridPoint(t.diagram.grid.gridOrigin,t.diagram.grid.gridCellSize),setTimeout((function(){t.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(t){t.subject,setTimeout((function(){t.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(t){t.parameter.part.invalidateConnectedLinks();var e=t.subject;t.diagram.toolManager.linkingTool.isForwards?e.toNode.invalidateConnectedLinks():e.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=t(Bo.NB,"Auto",{locationSpot:Bo.z6.Center,locationObjectName:"SHAPE",desiredSize:new Bo.$u(120,60),minSize:new Bo.$u(40,40),resizable:!0,resizeCellSize:new Bo.$u(10,10),rotatable:!0},new Bo.KX("location","loc",Bo.E9.parse).makeTwoWay(Bo.E9.stringify),new Bo.KX("desiredSize","size",Bo.$u.parse).makeTwoWay(Bo.$u.stringify),t(Bo.bn,{name:"SHAPE",fill:c,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Bo.z6.AllSides,toSpot:Bo.z6.AllSides},new Bo.KX("figure"),new Bo.KX("fill"),new Bo.KX("stroke","borderColor"),new Bo.KX("strokeWidth","thickness"),new Bo.KX("strokeDashArray","dash")),t(Bo.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),t(Bo.al,{margin:1,textAlign:"center",overflow:Bo.al.OverflowEllipsis,editable:!0},new Bo.KX("text").makeTwoWay(),new Bo.KX("stroke","color"))),i.current.nodeTemplate.toolTip=t("ToolTip",t(Bo.s_,"Vertical",{maxSize:new Bo.$u(200,NaN)},t(Bo.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Bo.KX("text")),t(Bo.al,{font:"10pt sans-serif",textAlign:"center"},new Bo.KX("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=t(Bo.uz,"Spot",t(Bo.Vm,{padding:10}),w(Bo.z6.Top,"TriangleUp"),w(Bo.z6.Left,"TriangleLeft"),w(Bo.z6.Right,"TriangleRight"),w(Bo.z6.Bottom,"TriangleDown"),b({alignment:new Bo.z6(.75,0)})),i.current.nodeTemplate.contextMenu=t("ContextMenu",t("ContextMenuButton",t(Bo.s_,"Horizontal",E("Rectangle"),E("RoundedRectangle"),E("Ellipse"),E("Diamond"))),t("ContextMenuButton",t(Bo.s_,"Horizontal",E("Parallelogram2"),E("ManualOperation"),E("Procedure"),E("Cylinder1"))),t("ContextMenuButton",t(Bo.s_,"Horizontal",E("Terminator"),E("CreateRequest"),E("Document"),E("TriangleDown"))),P(),k(),M()),i.current.groupTemplate=t(Bo.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Bo.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(t,e){e.addMembers(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},avoidable:!1},new Bo.KX("location","loc",Bo.E9.parse).makeTwoWay(Bo.E9.stringify),t(Bo.s_,"Auto",{name:"BODY"},t(Bo.bn,{parameter1:10,fill:c,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Bo.z6.AllSides,toSpot:Bo.z6.AllSides},new Bo.KX("fill"),new Bo.KX("stroke","color"),new Bo.KX("strokeWidth","thickness"),new Bo.KX("strokeDashArray","dash")),t(Bo.Vm,{background:"transparent",margin:20})),t(Bo.al,{alignment:Bo.z6.Top,alignmentFocus:Bo.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Bo.KX("text"),new Bo.KX("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=t(Bo.uz,"Spot",t(Bo.s_,"Auto",t(Bo.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),t(Bo.Vm,{margin:1.5})),b({alignment:Bo.z6.TopRight,alignmentFocus:Bo.z6.BottomRight})),i.current.groupTemplate.contextMenu=t("ContextMenu",P(),k(),M()),i.current.linkTemplate=t(Bo.rU,{layerName:"Foreground",routing:Bo.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Bo.KX("fromSpot","fromSpot",Bo.z6.parse),new Bo.KX("toSpot","toSpot",Bo.z6.parse),new Bo.KX("fromShortLength","dir",(function(t){return t>=1?10:0})),new Bo.KX("toShortLength","dir",(function(t){return t>=1?10:0})),new Bo.KX("points").makeTwoWay(),t(Bo.bn,{strokeWidth:2},new Bo.KX("stroke","color"),new Bo.KX("strokeWidth","thickness"),new Bo.KX("strokeDashArray","dash")),t(Bo.bn,{segmentIndex:0,segmentOffset:new Bo.E9(15,0),segmentOrientation:Bo.rU.OrientAlong,alignmentFocus:Bo.z6.Right,figure:"circle",width:10,strokeWidth:0},new Bo.KX("fill","color"),new Bo.KX("visible","dir",(function(t){return 1===t}))),t(Bo.bn,{segmentIndex:-1,segmentOffset:new Bo.E9(-10,6),segmentOrientation:Bo.rU.OrientPlus90,alignmentFocus:Bo.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Bo.KX("fill","color"),new Bo.KX("visible","dir",(function(t){return t>=1})),new Bo.KX("width","thickness",(function(t){return 7+3*t})),new Bo.KX("height","thickness",(function(t){return 7+3*t})),new Bo.KX("segmentOffset","thickness",(function(t){return new Bo.E9(-15,4+1.5*t)}))),t(Bo.bn,{segmentIndex:0,segmentOffset:new Bo.E9(15,-6),segmentOrientation:Bo.rU.OrientMinus90,alignmentFocus:Bo.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Bo.KX("fill","color"),new Bo.KX("visible","dir",(function(t){return 2===t})),new Bo.KX("width","thickness",(function(t){return 7+3*t})),new Bo.KX("height","thickness",(function(t){return 7+3*t})),new Bo.KX("segmentOffset","thickness",(function(t){return new Bo.E9(-15,4+1.5*t)}))),t(Bo.al,{alignmentFocus:new Bo.z6(0,1,-4,0),editable:!0},new Bo.KX("text").makeTwoWay(),new Bo.KX("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=t(Bo.uz,t(Bo.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new Bo.KX("pathPattern","thickness",L)),b({alignmentFocus:new Bo.z6(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=t("ContextMenu",k(),M(),t("ContextMenuButton",t(Bo.s_,"Horizontal",T(0),T(1),T(2))),t("ContextMenuButton",t(Bo.s_,"Horizontal",t(Bo.s_,"Spot",N(!1),j(Bo.z6.Top,!1),j(Bo.z6.Left,!1),j(Bo.z6.Right,!1),j(Bo.z6.Bottom,!1)),t(Bo.s_,"Spot",{margin:new Bo.Zt(0,0,0,2)},N(!0),j(Bo.z6.Top,!0),j(Bo.z6.Left,!0),j(Bo.z6.Right,!0),j(Bo.z6.Bottom,!0)))));var I=new Bo.YI(s.current,{maxSelectionCount:1,linkTemplate:t(Bo.rU,{locationSpot:Bo.z6.Center,selectionAdornmentTemplate:t(Bo.uz,"Link",{locationSpot:Bo.z6.Center},t(Bo.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),t(Bo.bn,{toArrow:"Standard",stroke:null}))},{routing:Bo.rU.AvoidsNodes,curve:Bo.rU.JumpOver,corner:5,toShortLength:4},new Bo.KX("points"),t(Bo.bn,{isPanelMain:!0,strokeWidth:2}),t(Bo.bn,{toArrow:"Standard",stroke:null})),model:new Bo.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Y()(Bo.bn.getFigureGenerators().toArray().map((function(t){return{text:"未命名",size:"100 100",figure:t.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});i.current.addDiagramListener("TextEdited",(function(t){var e,n=t.subject.part,r=null===(e=document.activeElement)||void 0===e?void 0:e.value;"string"==typeof r&&""===r.trim()&&i.current.model.commit((function(t){t.set(n.data,"text","未命名"),i.current.commandHandler.stopCommand()}),"increment")})),I.nodeTemplate=t(Bo.NB,"Auto",{locationSpot:Bo.z6.Center},new Bo.KX("location","location",Bo.E9.parse).makeTwoWay(Bo.E9.stringify),t(Bo.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Bo.KX("stroke").makeTwoWay(),new Bo.KX("fill").makeTwoWay(),new Bo.KX("figure")),t(Bo.al,{margin:new Bo.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Bo.$u(16,16),maxSize:new Bo.$u(10,NaN),textAlign:"center",editable:!0},new Bo.KX("key").makeTwoWay())),setTimeout((function(){i.current.grid=t(Bo.s_,"Grid",t(Bo.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),t(Bo.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current}()}),500),g(p+1),function(){i.current=null}}),[]),(0,at.jsx)("div",{ref:c,className:u.current?"".concat(zo," body-overflow-initial"):"body-overflow-initial",children:(0,at.jsx)(U.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,at.jsxs)(Q.Z,{children:[(0,at.jsx)(J.Z,{flex:1,children:"插入流程图"}),(0,at.jsx)(J.Z,{onClick:function(){var t=i.current.selection.first();if(u.current=!u.current,document.activeElement&&t){var e,n=null===(e=document.activeElement)||void 0===e||null===(e=e.value)||void 0===e?void 0:e.trim();"string"==typeof n&&i.current.model.commit((function(e){e.set(t.data,"text",n||"未命名"),i.current.commandHandler.stopCommand()}),"increment")}g(p+1)},children:(0,at.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:e,children:(0,at.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Fo,children:[(0,at.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,at.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,at.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,at.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Ro,ref:s})]}),(0,at.jsx)("div",{style:{flex:1,position:"relative"},children:(0,at.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,at.jsx)("div",{className:"tr",children:(0,at.jsx)(K.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},Uo=n(31060),Ho=ye.ZP.Group,_o={margin:"0 8px"},Zo=function(t){var e=t.callback,n=t.onCancel;return(0,at.jsxs)(X.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(t){e(t)},children:[(0,at.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,at.jsx)("span",{style:_o,children:"单元格数:"}),(0,at.jsx)("span",{style:_o,children:"行数"}),(0,at.jsx)(X.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,at.jsx)(Uo.Z,{})}),(0,at.jsx)("span",{style:_o,children:"列数"}),(0,at.jsx)(X.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,at.jsx)(Uo.Z,{})})]}),(0,at.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,at.jsx)("span",{style:_o,children:"对齐方式:"}),(0,at.jsx)(X.Z.Item,{name:"align",children:(0,at.jsxs)(Ho,{children:[(0,at.jsx)(ye.ZP,{value:"default",children:(0,at.jsx)("i",{className:"fa fa-align-justify"})}),(0,at.jsx)(ye.ZP,{value:"left",children:(0,at.jsx)("i",{className:"fa fa-align-left"})}),(0,at.jsx)(ye.ZP,{value:"center",children:(0,at.jsx)("i",{className:"fa fa-align-center"})}),(0,at.jsx)(ye.ZP,{value:"right",children:(0,at.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,at.jsxs)("div",{className:"flex-container flex-end",children:[(0,at.jsx)(K.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,at.jsx)(K.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Wo=n(58617),Vo=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Yo=h.forwardRef((function(t,e){var n,i=t.prefixCls,r=void 0===i?"rc-switch":i,o=t.className,a=t.checked,s=t.defaultChecked,l=t.disabled,u=t.loadingIcon,c=t.checkedChildren,d=t.unCheckedChildren,f=t.onClick,p=t.onChange,g=t.onKeyDown,m=(0,Dt.Z)(t,Vo),v=(0,Bt.Z)(!1,{value:a,defaultValue:s}),y=(0,jt.Z)(v,2),w=y[0],b=y[1];function x(t,e){var n=w;return l||(b(n=t),null==p||p(n,e)),n}var S=Lt()(r,o,(n={},(0,Ft.Z)(n,"".concat(r,"-checked"),w),(0,Ft.Z)(n,"".concat(r,"-disabled"),l),n));return h.createElement("button",(0,Tt.Z)({},m,{type:"button",role:"switch","aria-checked":w,disabled:l,className:S,ref:e,onKeyDown:function(t){t.which===Gt.Z.LEFT?x(!1,t):t.which===Gt.Z.RIGHT&&x(!0,t),null==g||g(t)},onClick:function(t){var e=x(!w,t);null==f||f(e,t)}}),u,h.createElement("span",{className:"".concat(r,"-inner")},h.createElement("span",{className:"".concat(r,"-inner-checked")},c),h.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));Yo.displayName="Switch";var Xo=Yo,qo=n(1684),Ko=n(60654);const Qo=t=>{const{componentCls:e,trackHeightSM:n,trackPadding:i,trackMinWidthSM:r,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s}=t,l=`${e}-inner`;return{[e]:{[`&${e}-small`]:{minWidth:r,height:n,lineHeight:`${n}px`,[`${e}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*i}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${s+2*i}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${e}-handle`]:{width:s,height:s},[`${e}-loading-icon`]:{top:(s-t.switchLoadingIconSize)/2,fontSize:t.switchLoadingIconSize},[`&${e}-checked`]:{[`${e}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*i}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${s+2*i}px - ${2*a}px)`}},[`${e}-handle`]:{insetInlineStart:`calc(100% - ${s+i}px)`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:t.marginXXS/2,marginInlineEnd:-t.marginXXS/2}},[`&${e}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-t.marginXXS/2,marginInlineEnd:t.marginXXS/2}}}}}}},Jo=t=>{const{componentCls:e,handleSize:n}=t;return{[e]:{[`${e}-loading-icon${t.iconCls}`]:{position:"relative",top:(n-t.fontSize)/2,color:t.switchLoadingIconColor,verticalAlign:"top"},[`&${e}-checked ${e}-loading-icon`]:{color:t.switchColor}}}},$o=t=>{const{componentCls:e,motion:n,trackPadding:i,handleBg:r,handleShadow:o,handleSize:a}=t,s=`${e}-handle`;return{[e]:{[s]:{position:"absolute",top:i,insetInlineStart:i,width:a,height:a,transition:`all ${t.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a/2,boxShadow:o,transition:`all ${t.switchDuration} ease-in-out`,content:'""'}},[`&${e}-checked ${s}`]:{insetInlineStart:`calc(100% - ${a+i}px)`},[`&:not(${e}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:t.switchHandleActiveInset,insetInlineStart:0},[`&${e}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:t.switchHandleActiveInset}}:{}}}},ta=t=>{const{componentCls:e,trackHeight:n,trackPadding:i,innerMinMargin:r,innerMaxMargin:o,handleSize:a}=t,s=`${e}-inner`;return{[e]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:r,transition:`padding-inline-start ${t.switchDuration} ease-in-out, padding-inline-end ${t.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:t.colorTextLightSolid,fontSize:t.fontSizeSM,transition:`margin-inline-start ${t.switchDuration} ease-in-out, margin-inline-end ${t.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*i}px - ${2*o}px)`,marginInlineEnd:`calc(100% - ${a+2*i}px + ${2*o}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${e}-checked ${s}`]:{paddingInlineStart:r,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*i}px + ${2*o}px)`,marginInlineEnd:`calc(-100% + ${a+2*i}px - ${2*o}px)`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:2*i,marginInlineEnd:2*-i}},[`&${e}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:2*-i,marginInlineEnd:2*i}}}}}},ea=t=>{const{componentCls:e,trackHeight:n,trackMinWidth:i}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(t)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:t.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${t.motionDurationMid}`,userSelect:"none",[`&:hover:not(${e}-disabled)`]:{background:t.colorTextTertiary}}),(0,oe.Qy)(t)),{[`&${e}-checked`]:{background:t.switchColor,[`&:hover:not(${e}-disabled)`]:{background:t.colorPrimaryHover}},[`&${e}-loading, &${e}-disabled`]:{cursor:"not-allowed",opacity:t.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${e}-rtl`]:{direction:"rtl"}})}};var na=(0,se.Z)("Switch",(t=>{const e=(0,le.TS)(t,{switchDuration:t.motionDurationMid,switchColor:t.colorPrimary,switchDisabledOpacity:t.opacityLoading,switchLoadingIconSize:.75*t.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${t.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ea(e),ta(e),$o(e),Jo(e),Qo(e)]}),(t=>{const{fontSize:e,lineHeight:n,controlHeight:i,colorWhite:r}=t,o=e*n,a=i/2,s=o-4,l=a-4;return{trackHeight:o,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Ko.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),ia=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{prefixCls:n,size:i,disabled:r,loading:o,className:a,rootClassName:s,style:l}=t,u=ia(t,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:c,direction:d,switch:f}=h.useContext(ne.E_),p=h.useContext(qo.Z),g=(null!=r?r:p)||o,m=c("switch",n),v=h.createElement("div",{className:`${m}-handle`},o&&h.createElement(Wo.Z,{className:`${m}-loading-icon`})),[y,w]=na(m),b=(0,ie.Z)(i),x=Lt()(null==f?void 0:f.className,{[`${m}-small`]:"small"===b,[`${m}-loading`]:o,[`${m}-rtl`]:"rtl"===d},a,s,w),S=Object.assign(Object.assign({},null==f?void 0:f.style),l);return y(h.createElement(Se.Z,{component:"Switch"},h.createElement(Xo,Object.assign({},u,{prefixCls:m,className:x,style:S,disabled:g,ref:e,loadingIcon:v}))))}));ra.__ANT_SWITCH=!0;var oa=ra,aa=n(35702),sa=n.n(aa),la=(0,h.forwardRef)((function(t,e){var n=t.use3d,i=t.width,r=t.height,o=t.callback,a=(t.showSaveButton,(0,h.useRef)()),s=(0,h.useRef)(),u=(0,h.useState)(!1),c=l()(u,2),d=c[0],f=c[1],p=(0,h.useRef)({id:a,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,h.useEffect)((function(){s.current=new(sa())(p.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var t=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(t),t};return(0,h.useEffect)((function(){p.current.appName=d?"3D":"graphing",s.current.inject("applet_container")}),[d]),(0,h.useEffect)((function(){f(n)}),[n]),(0,h.useImperativeHandle)(e,(function(){return{getImgData:g}})),(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:a}),(0,at.jsxs)(Q.Z,{align:"middle",children:[(0,at.jsx)(J.Z,{flex:1,children:(0,at.jsx)(oa,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:d,onChange:function(t){return f(t)}})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)(K.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ua=la,ca=n(34685),ha="link",da="upload-image",fa="add-flowchart",pa="draw-image",ga="code-block",ma="add-table",va="------------",ya={default:va,left:":".concat(va),center:":".concat(va,":"),right:"".concat(va,":")};var wa="@▁▁@",ba=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function xa(t){return/^\d+$/.test(t)?"".concat(t,"px"):t}var Sa,Pa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ka=po()(po()({},Pa+"-B","bold"),Pa+"-I","italic"),Ca=po()(po()(po()(po()(po()(po()(po()(po()({},ha,"添加链接"),ga,"添加代码块"),da,"添加图片"),pa,"添加画图"),fa,"插入流程图"),ma,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Aa=function(t){var e=t.defaultValue,n=void 0===e?"":e,i=t.onChange,r=t.width,o=void 0===r?"100%":r,a=t.height,s=void 0===a?400:a,u=t.miniToolbar,c=void 0!==u&&u,d=t.isFocus,f=void 0!==d&&d,p=t.watch,g=t.insertTemp,m=t.mode,v=void 0===m?"markdown":m,y=t.id,w=void 0===y?"markdown-editor-id":y,b=t.showResizeBar,x=void 0!==b&&b,S=t.noStorage,P=void 0!==S&&S,k=t.showNullButton,C=void 0!==k&&k,A=t.showNullProgramButton,M=void 0!==A&&A,E=t.hidetoolBar,L=void 0!==E&&E,T=t.fullScreen,N=void 0!==T&&T,j=t.onBlur,I=t.onCMBeforeChange,B=t.onFullScreen,O=t.className,D=void 0===O?"":O,R=t.disablePaste,F=void 0!==R&&R,z=t.disabled,G=void 0!==z&&z,_=t.disabledFill,Z=void 0!==_&&_,W=t.placeholder,V=void 0===W?"":W,Y=t.values,X=void 0===Y?"":Y,q=t.extraUse,K=(0,h.useState)(null),Q=l()(K,2),J=Q[0],$=Q[1],tt=(0,h.useState)(n),et=l()(tt,2),nt=et[0],it=et[1],rt=(0,h.useState)(p),ot=l()(rt,2),st=ot[0],lt=ot[1],ut=(0,h.useState)(N),ct=l()(ut,2),ht=ct[0],dt=ct[1],ft=(0,h.useState)(""),pt=l()(ft,2),gt=pt[0],mt=pt[1],vt=(0,h.useState)(0),yt=l()(vt,2),wt=yt[0],bt=yt[1],xt=(0,h.useState)(s),St=l()(xt,2),Pt=St[0],kt=St[1],Ct=(0,h.useState)(!1),Mt=l()(Ct,2),Et=(Mt[0],Mt[1]),Lt=(0,h.useState)(0),Tt=l()(Lt,2),Nt=Tt[0],jt=Tt[1],It=(0,h.useState)(0),Bt=l()(It,2),Ot=Bt[0],Dt=Bt[1],Rt=(0,h.useRef)(),Ft=(0,h.useRef)(),zt=(0,h.useRef)(),Gt=(0,h.useRef)();(0,h.useEffect)((function(){var t=window.scrollY||window.pageYOffset;it(X),null==J||J.setValue(X),window.scrollTo(0,t)}),[X]),(0,h.useEffect)((function(){null==B||B(ht)}),[ht]),(0,h.useEffect)((function(){if(Rt.current){var t=function(t,n){if(!F){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==v)return;try{var a,s=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(s=o[0]);var l=s.getAsFile(),u=l.name.split(".").pop();(0,jo.I)(l,(function(t){var n,i,r;t.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?e.replaceSelection('','')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?e.replaceSelection('')):(null==l||null===(r=l.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?e.replaceSelection('').concat(l.name,"")):ba.includes(u)?e.replaceSelection('').concat(l.name,"")):e.replaceSelection("[".concat(l.name,"](/api/attachments/").concat(t.id,"?type=").concat(t.content_type,")")):401===(null==t?void 0:t.status)&&(document.location.href="/user/login")}))}catch(n){H.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},e=vo().fromTextArea(Rt.current,{mode:v,lineNumbers:!c,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return e.on("keyup",(function(t,n){8===n.keyCode&&(""==t.getValue()?e.setOption("placeholder",V):e.setOption("placeholder",null))})),e.on("keydown",(function(t,e){if(8===e.keyCode){var n=function(t,e){var n=t.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),s=r.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,u=a>s?3:4;if(-1===wa.indexOf(o))return null;if(console.log("change1:",e,t,r,i,l,a,s,o),l>=0&&i.ch-l<5){var c=l+u;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:c}),{line:i.line,ch:c}}return null}(t);n&&e.preventDefault()}})),f&&e.focus(),e.on("paste",t),G&&e.on("beforeChange",(function(t,e){"paste"!==e.origin&&"+input"!==e.origin||e.cancel()})),$(e),function(){e.off("paste",t)}}}),[]);var Ut,Ht,_t,Zt=(0,h.useCallback)((function(){Ft.current}),[Pt,Ft,ht]);(0,h.useEffect)((function(){if(J){var t=function(){var t=new yo.Z((function(t){var e,n=At()(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(Zt(),J.setSize("100%","100%"),J.refresh())}}catch(t){n.e(t)}finally{n.f()}}));return t.observe(Rt.current.parentElement),t}();return function(){var e,n;null!==(e=Rt.current)&&void 0!==e&&e.parentElement&&t.unobserve(null===(n=Rt.current)||void 0===n?void 0:n.parentElement)}}}),[J,Zt]),(0,h.useEffect)((function(){if(J){for(var t=[],e=function(){var e=l()(i[n],2),r=e[0],o=e[1],a=po()({},r,(function(){Wt(o)}));t.push(a),J.addKeyMap(a)},n=0,i=Object.entries(ka);n0){var t=(new Date).getTime(),e=window.sessionStorage.getItem(w);t>=wt+1e4&&(!e||e!==nt)&&(window.sessionStorage.setItem(w,nt),Et(!0))}},Ht=1e4,_t=(0,h.useRef)(),(0,h.useEffect)((function(){_t.current=Ut})),(0,h.useEffect)((function(){if(null!==Ht){var t=setInterval((function(){_t.current()}),Ht);return function(){return clearInterval(t)}}}),[Ht]),(0,h.useEffect)((function(){lt(p)}),[J,p]),(0,h.useEffect)((function(){J&&f&&J.focus()}),[J,f]),(0,h.useEffect)((function(){if(st&&J){var t=function(t){var e=t.target;if(Gt.current){var n=e.scrollTop/e.scrollHeight;Gt.current.scrollTop=Gt.current.scrollHeight*n}},e=J.getScrollerElement();return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}}),[J,st]),(0,h.useEffect)((function(){if(J&&I){var t=function(t,e){I(t,e)};return J.on("beforeChange",t),function(){J.off("beforeChange",t)}}}),[J,I]),(0,h.useEffect)((function(){if(J&&j){var t=function(){j(J.getValue())};return J.on("blur",t),function(){J.off("blur",t)}}}),[J,j]),(0,h.useEffect)((function(){if(J){var t=function(t,e){var n=t.getValue();it(n),bt((new Date).getTime()),t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(M?i(n,Kt(n)):i(n))};return J.on("change",t),function(){J.off("change",t)}}}),[J,i]),(0,h.useEffect)((function(){if(J)if(null==n)J.setValue(""),it("");else{var t=window.scrollY||window.pageYOffset;n!==J.getValue()&&(J.setValue(n),it(n),J.setCursor(G?1:J.lineCount(),0),window.scrollTo(0,t))}}),[J,n]);var Wt=(0,h.useCallback)((function(t){var e=J.getCursor(),n=J.getSelection(),i=n.split("\n");switch(t){case"bold":return J.replaceSelection("**"+n+"**"),""===n&&J.setCursor(e.line,e.ch+2),J.focus();case"italic":return J.replaceSelection("*"+n+"*"),""===n&&J.setCursor(e.line,e.ch+1),J.focus();case"code":return J.replaceSelection("`"+n+"`"),""===n&&J.setCursor(e.line,e.ch+1),J.focus();case"inline-latex":return mt("inline-latex"),J.focus();case"latex":return J.replaceSelection("```latex\n"+n+"\n```"),J.setCursor(e.line+1,n.length+1),J.focus();case"line-break":return J.replaceSelection("
      \n"),J.focus();case"list-ul":return""===n?J.replaceSelection("- "+n):J.replaceSelection(i.map((function(t){return""===t?"":"- ".concat(t)})).join("\n")),J.focus();case"list-ol":return""===n?J.replaceSelection("1. "+n):J.replaceSelection(i.map((function(t,e){return""===t?"":"".concat(e+1,". ").concat(t)})).join("\n")),J.focus();case"add-null-ch":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection("▁"),J.focus();case"add-signal":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection("@▁@"),J.focus();case"add-multiple":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection(wa),J.focus();case"inster-template-1":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),J.focus();case"eraser":return J.setValue(""),J.focus();case"trigger-watch":return lt(!st),J.focus();case"trigger-full-screen":return dt(!ht),J.focus();case ha:return void mt(ha);case ga:return void mt(ga);case da:return void mt(da);case pa:return void mt(pa);case"maths-latex":return void mt("maths-latex");case fa:return void mt(fa);case ma:return void mt(ma);default:throw new Error}}),[J,st,ht]),Vt=(0,h.useCallback)((function(t,e){var n,i,r,o,a;switch(mt(""),gt){case ha:var s=t.title,l=t.link;return J.replaceSelection("[".concat(s,"](").concat(l,")")),J.focus();case ga:var u=t.language,c=t.content;return J.replaceSelection(["```"+u,c,"```"].join("\n")),J.focus();case"maths-latex":for(var h=atob(t),d=new Uint8Array(h.length),f=0;f-1||null==v||!v.type?null!=v&&v.align||null!=v&&v.width?J.replaceSelection('

      ').concat(m||

      ')):J.replaceSelection('').concat(m||')):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?J.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?J.replaceSelection('').concat(v.name,"")):ba.includes(y)?J.replaceSelection('').concat(v.name,"")):J.replaceSelection("[".concat(v.name,"](").concat(g,")")),J.focus();case ma:for(var w=t.row,b=t.col,x=t.align,S="\n",P=0;P300&&(e=300),kt(s+e+"px")}},i=zt.current,r=!1,o=0;return i.addEventListener("mousedown",t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",e),function(){i.removeEventListener("mousedown",t),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e)}}}),[J,zt]),(0,h.useEffect)((function(){kt(s)}),[s]);var qt={width:xa(o),height:xa(Pt)},Kt=((0,h.useMemo)((function(){if(wt){var t=new Date(wt),e=t.getHours(),n=t.getMinutes(),i=t.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(e=e<10?"0"+e:e,":").concat(n,":").concat(i)}return 0}),[wt]),function(t){var e=[];if(M){t=t.replace(/(@▁▁@|@▁@)/g,(function(t,n,i){e.push({multiLine:!("@▁@"===t)})}))}return e});(0,h.useEffect)((function(){Ca[gt]&>!==pa&>!==fa&&setTimeout((function(){var t=document.getElementsByClassName("markdown-popup-form")[0],e=window.innerWidth/2-t.offsetWidth/2,n=window.innerHeight/2-t.offsetHeight/2;jt(e),Dt(n)}),0)}),[gt]);var Qt=function(t,e,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(t<20&&n>t||t>o-20&&ne||e>r-20&&i1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!Na(t)||!ja(t,e,n,i,r))},Na=function(t){return!!(0,xt.bg)()||(t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},ja=function(t){var e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=(0,d.getDvaApp)()._store.getState(),a=o.user;return!(null===(e=a.userInfo)||void 0===e||!e.profile_completed)||(n?t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:i,isCurrentPage:r}}):U.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,F.xg)("/account/profile/edit"),Ia()}}),!1)},Ia=function(){U.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},Ba=function(t,e){return!!t||(U.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,at.jsxs)("div",{children:[(0,at.jsx)("p",{children:e||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,at.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,at.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1b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nKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,at.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,F.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},Oa=n(26613),Da=n(93948),Ra={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},Fa=n(93125),za=n.n(Fa),Ga="",Ua="";function Ha(t){!function(t){Sa=new(za().Vod)({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(e){console.log("addFileSuccess: "+e.file.name),t.addFileSuccess&&t.addFileSuccess(e),Sa.startUpload()},onUploadstarted:function(e){var n=e.file.name;if(e.videoId){var i="/api/users/".concat(Ga,"/video_auths.json");(0,it.ZP)(i,{method:"put",body:{video_id:e.videoId,title:n,file_name:n,virtual_classroom_id:Ua}}).then((function(n){if(-1!=n.status){var i=n.data,r=i.UploadAuth,o=i.UploadAddress;i.VideoId;Sa.setUploadAuthAndAddress(e,r,o)}else t.onUploadError&&t.onUploadError(e)})).catch((function(t){Sa.deleteFile(Sa._curIndex),Sa.nextUpload(),console.log(t)}))}else{var r="/api/users/".concat(Ga,"/video_auths.json"),o="";(0,it.ZP)(r,{method:"Post",body:{title:o+n,file_name:o+n,virtual_classroom_id:Ua}}).then((function(t){if(t){var n=t.data,i=n.UploadAuth,r=n.UploadAddress,o=n.VideoId;Sa.setUploadAuthAndAddress(e,i,r,o)}})).catch((function(t){Sa.deleteFile(Sa._curIndex),Sa.nextUpload(),console.log(t)})),console.log("文件开始上传...")}},onUploadSucceed:function(e){t.onUploadSucceed&&t.onUploadSucceed(e),console.log("文件上传成功!")},onUploadFailed:function(e,n,i){t.onUploadFailed&&t.onUploadFailed(e),console.log("文件上传失败!")},onUploadCanceled:function(t,e,n){console.log("文件上传已暂停!")},onUploadProgress:function(e,n,i){t.onUploadProgress&&t.onUploadProgress(e,n,i);Math.ceil(100*i);console.log("文件上传中...")},onUploadTokenExpired:function(t){console.log("文件上传超时!");var e="/api/users/".concat(Ga,"/video_auths.json");(0,it.ZP)(e,{method:"put",body:{video_id:t.videoId}}).then((function(t){var e=t.data.UploadAuth;Sa.resumeUploadWithAuth(e)})).catch((function(t){console.log(t)}))},onUploadEnd:function(e){t.onUploadEnd&&t.onUploadEnd(e),console.log("onUploadEnd: uploaded all the files")}}),t.gotUploader&&t.gotUploader(Sa)}(t)}var _a=n(70091),Za={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Wa=n(7657),Va=function(t,e){return h.createElement(Wa.Z,(0,Tt.Z)({},t,{ref:e,icon:Za}))};var Ya=h.forwardRef(Va),Xa=n(19248),qa="img___BgL9D",Ka=function(t){var e=t.value,n=t.onChange,i=t.getFileProgress,r=(0,h.useState)(!1),o=l()(r,2),a=o[0],s=o[1],u=(0,at.jsx)(K.ZP,{loading:a,icon:(0,at.jsx)(Ya,{}),children:"选择上传文件"});return(0,at.jsx)(h.Fragment,{children:e?(0,at.jsxs)("div",{className:qa,children:[(0,at.jsx)("img",{src:fi.Z.API_SERVER+"/api/attachments/"+e,alt:"avatar",style:{width:288}}),(0,at.jsx)("div",{children:(0,at.jsx)(Xa.Z,{onClick:function(){return n("")},style:{fontSize:"16px",color:"red"}})})]}):(0,at.jsxs)("div",{children:[(0,at.jsx)(_a.Z,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(fi.Z.API_SERVER,"/api/attachments.json"),onChange:function(t){if(i&&i(t),"uploading"!==t.file.status){if("done"===t.file.status){var e,r,o;if(s(!1),"done"===t.file.status&&-1===(null===(e=t.file)||void 0===e||null===(e=e.response)||void 0===e?void 0:e.status))return void H.ZP.error(null===(o=t.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message);n(null==t||null===(r=t.file)||void 0===r||null===(r=r.response)||void 0===r?void 0:r.id)}}else s(!0)},accept:"image/*",children:u}),(0,at.jsx)("div",{className:"mt20 c-light-black",children:"说明:支持上传jpg/png等格式文件,文件大小不能超过2M,建议使用288*158像素;"}),(0,at.jsx)("div",{className:"c-light-black",children:"如不上传,默认使用系统图片。"})]})})},Qa=rt.Z.TextArea,Ja=function(t,e){var n,i=(e.payload||{}).uploadInfo,r=void 0===i?{}:i;switch(e.type){case"addVideo":return{videoList:[].concat(Y()(t.videoList),[{name:r.file.name,size:r.file.size,type:r.file.type,fileHash:r.fileHash,state:r.state,videoId:r.videoId,loaded:r.loaded||0,title:""}])};case"removeVideo":return{videoList:t.videoList.filter((function(t){return t.name!==e.payload.name}))};case"removeAll":default:return{videoList:[]};case"updateProgress":return{videoList:t.videoList.map((function(t){return t.name===e.payload.uploadInfo.file.name?G()(G()({},t),{loaded:e.payload.progressPercent,videoId:r.videoId,fileHash:r.fileHash}):t}))};case"updateTitle":return{videoList:null===(n=t.videoList)||void 0===n?void 0:n.map((function(t){return t.name===e.payload.item.name?G()(G()({},t),{title:e.payload.title}):t}))}}},$a=(0,d.connect)((function(t){var e=t.user,n=t.loading;return{user:e,globalSetting:t.globalSetting,loading:n}}))((function(t){var e,n=t.user,i=(t.globalSetting,t.loading,t.dispatch,t.visible),o=t.editData,s=t.onCancel,u=void 0===s?function(){}:s,c=t.onOk,f=void 0===c?function(){}:c,p=t.queryParams,g=void 0===p?{}:p,m=((0,d.useParams)(),X.Z.useForm()),v=l()(m,1)[0],y=(0,h.useReducer)(Ja,{videoList:[]}),w=l()(y,2),b=w[0],x=w[1],S=(0,h.useState)(!1),P=l()(S,2),k=(P[0],P[1]),C=(0,h.useRef)(),A=(0,h.useState)(),M=l()(A,2),E=M[0],L=M[1],T=(0,h.useState)(!1),N=l()(T,2),j=N[0],I=N[1],B=(0,h.useState)(!1),O=l()(B,2),D=O[0],R=O[1],F=(0,xt.Ny)()?3:1;(0,h.useEffect)((function(){var t,e,n;i&&o&&(I(o.is_link),L(o.link),!o.is_link&&x({type:"addVideo",payload:{uploadInfo:{file:{name:o.filename||""},videoId:o.video_id,loaded:100}}}),st((null==o||null===(t=o.tags)||void 0===t?void 0:t.map((function(t){return null==t?void 0:t.name})))||[]),v.setFieldsValue({name:o.name,description:o.description,attachment_id:null==o||null===(e=o.video)||void 0===e?void 0:e.attachment_id,allow_skip:null==o||null===(n=o.video_item)||void 0===n?void 0:n.allow_skip}))}),[o,i]);var z,_,Z,W,V,q,K,Q=function(){document.getElementById("fileUpload").value=""},J=function(t){var e,i,r,o,a='{"Vod":{}}';(k(!0),C.current)?C.current.addFile(t,null,null,null,a):(i=null===(e=n.userInfo)||void 0===e?void 0:e.login,o={create:!C,addFileSuccess:function(t){x({type:"addVideo",payload:{uploadInfo:t}})},onUploadProgress:function(t,e,n){var i=Math.ceil(100*n);x({type:"updateProgress",payload:{uploadInfo:t,progressPercent:i}}),Q()},onUploadFailed:function(t){H.ZP.info("视频云服务出现异常,请重新上传。")},onUploadEnd:function(t){k(!1)},onUploadSucceed:function(t){k(!1)},onUploadError:function(t){k(!1)},gotUploader:function(e){e.addFile(t,null,null,null,a),C.current=e}},i&&(Ga=i),(r="")&&(Ua=r),Ha(o))},tt=function(){var t=a()(r()().mark((function t(){var e,n,i,o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.validateFields();case 2:if((j||null!==(e=b.videoList)&&void 0!==e&&e.length)&&(!j||E)){t.next=5;break}return H.ZP.info("请先上传视频或者添加外链"),t.abrupt("return");case 5:return R(!0),i=j?{link:E}:{video_id:null===(n=b.videoList)||void 0===n?void 0:n[0].videoId},t.next=9,f(G()(G()(G()({},i),g),{name:v.getFieldValue("name"),attachment_id:v.getFieldValue("attachment_id"),description:v.getFieldValue("description"),tags:v.getFieldValue("tag"),allow_skip:v.getFieldValue("allow_skip")}));case 9:o=t.sent,R(!1),o.id&&et();case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),et=function(){v.resetFields(),x({type:"removeAll"}),L(null),st([]),I(null)},nt=(0,h.useState)([]),it=l()(nt,2),ot=it[0],st=it[1];return(0,at.jsx)(U.Z,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:o?"编辑视频项目":"新建视频项目",width:740,className:Ra.modal,open:i,confirmLoading:D,onOk:tt,onCancel:function(){u(),et()},children:(0,at.jsxs)(X.Z,{form:v,children:[(0,at.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(t){var e;I(!1);var n=t.target.files[0];if(n){var i=n.name.toLowerCase();return i&&-1==i.indexOf(".avi")&&-1==i.indexOf(".flv")&&-1==i.indexOf(".f4v")&&-1==i.indexOf(".m4v")&&-1==i.indexOf(".mov")&&-1==i.indexOf(".mp4")&&-1==i.indexOf(".rmvb")&&-1==i.indexOf(".swf")&&-1==i.indexOf(".webm")&&-1==i.indexOf(".wmv")?(H.ZP.info("不支持的视频格式"),void Q()):n.size>1024*F*1024*1024?(H.ZP.info("视频大小超过".concat(F,"G")),void Q()):null!==(e=b.videoList)&&void 0!==e&&e.find((function(t){return t.name===n.name}))?(H.ZP.info("你不能上传同一个视频文件名称,请重新选择。"),void Q()):void J(n)}Q()},accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),(0,at.jsx)(X.Z.Item,{label:"项目名称",name:"name",rules:[{required:!0,message:"请输入项目名称"}],children:(0,at.jsx)(rt.Z,{maxLength:40,placeholder:"请输入不超过40字的项目名称"})}),(0,at.jsx)(X.Z.Item,{label:"项目内容",name:"content",className:Ra.contentItem,children:(0,at.jsxs)(at.Fragment,{children:[!j&&!(null===(z=b.videoList)||void 0===z||!z.length)&&(0,at.jsxs)("div",{className:Ra.fileProgress,children:[100==(null===(_=b.videoList)||void 0===_||null===(_=_[0])||void 0===_?void 0:_.loaded)?(0,at.jsx)("div",{className:"".concat(Ra.videoName," font14"),children:null===(Z=b.videoList)||void 0===Z||null===(Z=Z[0])||void 0===Z?void 0:Z.name}):(0,at.jsx)(Da.Z,{style:{width:"80%"},percent:null===(W=b.videoList)||void 0===W||null===(W=W[0])||void 0===W?void 0:W.loaded,status:100==(null===(V=b.videoList)||void 0===V||null===(V=V[0])||void 0===V?void 0:V.loaded)?"normal":"active"}),(0,at.jsx)("div",{className:Ra.fileCancel,onClick:function(){var t,e,n,i;return n=null===(t=b.videoList)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,i=100==(null===(e=b.videoList)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.loaded),void U.Z.confirm({title:"提示",centered:!0,okText:"确定",cancelText:"取消",content:(0,at.jsxs)("div",{className:"tc",children:["您确认要",i?"删除":"取消上传","该视频吗?"]}),onOk:function(){Q(),x({type:"removeVideo",payload:{name:n}})}})},children:100===(null===(q=b.videoList)||void 0===q||null===(q=q[0])||void 0===q?void 0:q.loaded)?"删除":"取消上传"})]}),!(null!==(K=b.videoList)&&void 0!==K&&K.length)&&(0,at.jsxs)("div",{className:Ra.uploadWrap,children:[(0,at.jsxs)("label",{htmlFor:"fileUpload",className:Ra.upload,children:[(0,at.jsx)("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"上传视频"]}),(0,at.jsxs)("label",{className:"".concat(Ra.upload," ").concat(Ra.uploadLink),onClick:function(){return I(!0)},children:[(0,at.jsx)("i",{className:"iconfont icon-lianjie1 mr5"}),"添加外链"]})]}),j&&(0,at.jsx)(rt.Z,{className:"mt5",placeholder:"请输入视频链接",value:E,onChange:function(t){return L(t.target.value)}})]})}),(0,at.jsx)(X.Z.Item,{name:"attachment_id",label:"上传封面图:",children:(0,at.jsx)(Ka,{getFileProgress:function(t){"uploading"!==t.file.status?"done"===t.file.status&&R(!1):R(!0)}})}),(0,at.jsx)(X.Z.Item,{label:"项目简介",name:"description",className:"ml8",children:(0,at.jsx)(Qa,{rows:5,maxLength:800,placeholder:"请输入本视频简介,最多不超过800字"})}),(0,at.jsx)(X.Z.Item,{label:"知识标签",name:"tag",className:"ml8",children:(0,at.jsx)(rt.Z,{onKeyUp:function(t){if("Enter"==t.key){var e=v.getFieldValue("tag");if(v.setFieldsValue({tag:""}),!e)return void H.ZP.info("标签不能为空");if(ot.filter((function(t){return t===e})).length>0)return void H.ZP.info("已有相同名称标签");ot.push(e),st(Y()(ot))}}})}),(0,at.jsx)(X.Z.Item,{label:"播放设置",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0,children:(0,at.jsx)($.Z,{children:"允许快进播放"})}),(0,at.jsx)("div",{className:Ra["tagsList-content"],children:ot.map((function(t,e){return(0,at.jsx)(Oe,{closable:!0,onClose:function(e){!function(t,e){t.preventDefault(),st(Y()(ot.filter((function(t){return t!=e}))))}(e,t)},children:t},e+t)}))}),(0,at.jsxs)("div",{className:"c-grey-999",children:[(0,at.jsx)("div",{children:"注意:"}),(0,at.jsxs)("div",{children:["1、上传视频,即表示您已同意",(0,at.jsx)(d.Link,{to:"/users/".concat(null===(e=n.userInfo)||void 0===e?void 0:e.login,"/videos/protocol"),target:"_blank",className:Ra.colorBlue,children:"上传内容协议"}),",不得上传未经他人授权的作品;"]}),(0,at.jsxs)("div",{children:["2、不支持断点续传,文件大小请勿超过",F,"G;"]}),(0,at.jsx)("div",{children:"3、支持文件格式:avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm、wmv;"}),(0,at.jsx)("div",{children:"4、如果视频来自于外部链接,本网站不提供播放页面,无法提供统计数据。"})]})]})})}));function ts(t){return es.apply(this,arguments)}function es(){return(es=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.IV)("attachments/".concat(e,".json"));case 2:return n=t.sent,t.abrupt("return",0===n.status);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ns="  ";function is(t){if(0==t)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(t)/Math.log(1024)),10);return(t/Math.pow(1024,e)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][e]}var rs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},os=function(t,e){return h.createElement(Wa.Z,(0,Tt.Z)({},t,{ref:e,icon:rs}))};var as=h.forwardRef(os),ss=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ls=_a.Z.Dragger;function us(t){var e=[];return t&&t.length>0&&(e=t.map((function(t){return{uid:t.id,id:t.id,name:t.title+ns+t.filesize,url:t.url,filesize:t.filesize,status:"done",response:{id:t.id}}}))),e}var cs=function(t){var e=t.value,n=t.onChange,i=t.action,o=t.data,s=t.className,u=t.maxSize,c=void 0===u?150:u,d=t.title,f=void 0===d?"上传附件":d,p=t.showRemoveModal,g=void 0!==p&&p,m=t.accept,v=void 0===m?"":m,y=t.additionalText,w=t.isDragger,b=t.number,x=void 0===b?1e3:b,S=t.aloneClear,P=void 0!==S&&S,k=t.realTimeRemove,C=void 0===k||k,A=t.uploadText,M=t.setFileProgress,E=t.showFileProgress,L=(0,h.useState)(!1),T=l()(L,2),N=T[0],j=T[1],I=(0,h.useState)(e||[]),B=l()(I,2),O=B[0],D=B[1],R=(0,h.useState)(1),F=l()(R,2),z=F[0],_=F[1];(0,h.useEffect)((function(){e&&(1===z&&D(Y()(e)),_(2),x===(null==e?void 0:e.length)&&j(!0))}),[e]);var Z=function(){setTimeout((function(){O.pop(),D(Y()(O))}),500)};E&&M(O.some((function(t){return"uploading"===t.status})));var W,V={multiple:!0,disabled:N,accept:v,withCredentials:!0,fileList:O,beforeUpload:function(t,e){var n=t.size/1024/1024;return O.concat(e).length>x?(O.pop(),D(Y()(O)),H.ZP.error("最多只能上传".concat(x,"个文件")),P?Promise.reject():(Z(),!1)):n=x?j(!0):j(!1),D(Y()(O)),O=O.map((function(t){var e,n;null!=t&&null!==(e=t.response)&&void 0!==e&&e.id&&(t.url=null==t||null===(n=t.response)||void 0===n?void 0:n.url);return-1===t.name.indexOf(ns)&&(t.name="".concat(t.name).concat(ns).concat(is(t.size))),G()({},t)})),console.log("info:",t,O),n(O)):H.ZP.error(null===(i=t.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(W=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C){t.next=2;break}return t.abrupt("return",!0);case 2:if(n=function(){var t=a()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.response?e.response.id:e.id)){t.next=8;break}return t.next=4,ts(e.response?e.response.id:e.uid);case 4:return n=t.sent,t.abrupt("return",Promise.resolve(n));case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),!g){t.next=7;break}return t.abrupt("return",new Promise((function(t,e){var i;U.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,at.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:e.sent,H.ZP.success("删除成功"),t(!0);case 5:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return t(!1)}})})));case 7:return t.next=9,n();case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t)}))),function(t){return W.apply(this,arguments)})};return(0,at.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[w&&(0,at.jsxs)(ls,G()(G()({},V),{},{children:[(0,at.jsx)("p",{className:"ant-upload-drag-icon",children:(0,at.jsx)(as,{})}),(0,at.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,at.jsx)("br",{}),"(单个文件最大限制为",c,"MB)"," "]}),y]})),!w&&(0,at.jsxs)(_a.Z,G()(G()({},V),{},{children:[(0,at.jsxs)(K.ZP,{disabled:N,className:"upload_button",children:[(0,at.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),f]}),(0,at.jsx)("span",{onClick:function(t){t.preventDefault(),t.stopPropagation()},className:"upload_text",children:A||"(单个文件最大".concat(c,"MB)")})]}))]})},hs=n(177),ds={tree:"tree___u23Lf",learn:"learn___gQiNJ",name:"name___1D14q",sign:"sign___Ki_95",pdf_name:"pdf_name___T3MPw",name_style:"name_style___nfuvC",color333:"color333___P8iqP",DirectoryTree:"DirectoryTree___umMQK",EditDom:"EditDom___Be0Pl"},fs=n(84105),ps=n(91454),gs="text___FxbAX",ms="wrap___UlBQ1",vs="contact____pUDq",ys="img___BapAv",ws=function(t){var e=t.type,n=t.style,i=(0,at.jsxs)("div",{className:ms,onClick:function(t){t.preventDefault(),t.stopPropagation()},children:[(0,at.jsxs)("p",{children:["shixun"===e||"paths"===e?"当前实践项目是高消耗类型的实验。":"当前试卷包含高消耗类型的实验。",(0,at.jsx)("br",{}),"根据平台使用规则,需要授权才能使用。","paths"===e?"发送到课堂":"发布","使用之前,请先联系平台管理员获取授权码。"]}),(0,at.jsxs)("div",{className:vs,children:[(0,at.jsx)("div",{className:ys,children:(0,at.jsx)("img",{src:La,width:"124px",height:"124px"})}),(0,at.jsx)("div",{className:"tc font14 mt10",style:{color:"#777A93"},children:"扫一扫,获取授权码"})]})]});return(0,at.jsx)(ps.Z,{content:i,children:(0,at.jsx)("span",{className:gs,style:n,children:"高消耗"})})},bs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQd8VFX2//e+SSYJvadMCAEpARSUoqKiomlWxIJr7+23q4LKqquoi6JYcC27q2JX1LWAgoJkguAKKr0tEJAOKRB6TZly///zJpMpmfLem/fevJnM+Xz4hGTuPefcc+93bjvnXIYEaWIBvnVuOsy8O4AcCDwbHFngSIfAOgG8AzhrC/A+0oSzjWD8MMAOwMn3gWEPGCrhZOUAdqL+xDbWY+QeabwSpeRYgMkpnCjb1AJ8d0kX1AunweQcAMb6w4m+YDg9KrbiWAIBZeB8HRzCGpidK1lGUXVUdIkToQmAyOxIXjV3KLjzLDj5MDCcAbBcmSx0Ls63A1gMzhfBlPQry8xfqrMCMS0uAZAw3ccrS/LAhQIAFwD8ipju7Ubl+QxA+Ak2zGW5BWXx0SZtWpEASAC78irreXDgMjBcDKCvNqY3DFcCyGw4HT+wrhf9bBitDKJIAiANHcF3zhkOk3A1OL8SjGUbpH90VoOXA2w6mPMbllW8QGfhhhTXrAHCt5d0h1m4AZzfD6CLIXsoekpVg7E3Ue/8jOUWbYueGtGV3CwBwiuslwP8doCNjK75Y0U67VnYB8xSODNWNFZLz2YDEM5np6BCuA/MdK/0+we1zBwvfMT7mLeQaX+bsYvr4qVVodoR9wDhe+amw+G4H5w90Rw6VLc2Mj4RtbVvxvsFZdwChO+0ZsGEhwA8rNugaY6COCYjxTmZdS6uisfmxx1A+LZv28Hc6lGAPxaPHWbcNvFJqBUmsZMKDhtXR/maxRVAeEXpOIDTUqqtfFMkakRuAXYIcD7PLEUvR87LGBziAiC8ouRaMPY0eNxf6hlj1ITXogycPcOyC74KX9TYJWIaILxqXn84bRMTx7VGHWR8BgT+BMssXmdUDcPpFbMA4eXW8WCYEK6Bic8NYAGOp1h24bMG0ES2CjEHEF45dzi481UAQ2S3NlEhm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q2SwdMd2Y04jIP9oYhCWl4A+NtcYm9U5GEWn10Pv5Z+SgDR4qW4Ns01/hERhe0vge/LGfZhwECdKmxtzoE1jGMxY+yjKOMf9q0NFgbvj61eSt1ZCSBZ3ojGSdv3V2Tn7oxHd4HEhoNjGANMKWKv1zQOLAGjOCj+JWfyZ1I0/Ilv5jfr9Oopte/2QAkgFj0NdEAZjciDJCYPYODbKBxbgWFziaMfGDbhHQVOtZ7H1DNi/WD4VeFYD46fJIYfONhahUe/kx3R1cV+YGfRbcqo9v8AmKMk7GimNTQAAAAASUVORK5CYII=",Ss=["pathsDetail","globalSetting","user","loading","updateSort","isPaths","dispatch","isShowSchedule","getData"],Ps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(null==t?void 0:t.item_type){case"Challenge":return(0,at.jsx)(tt.Z,{title:"实战形式:任务关卡",children:(0,at.jsx)("i",{className:"iconfont icon-renwuguanka1 font20",style:{color:"#39B97E"}})});case"VideoItem":return(0,at.jsx)(tt.Z,{title:"教学视频",children:(0,at.jsx)("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})});case"StageCatalog":return(0,at.jsx)("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"});case"SubjectHomework":if("group"===(null==t?void 0:t.homework_type))return(0,at.jsx)(tt.Z,{title:"作业形式:分组作业",children:(0,at.jsx)("i",{className:"iconfont icon-fenzuzuoye3 font20",style:{color:"#acc218"}})});if("normal"===(null==t?void 0:t.homework_type))return(0,at.jsx)(tt.Z,{title:"作业形式:图文作业",children:(0,at.jsx)("i",{className:"iconfont icon-tuwenzuoye font20",style:{color:"#1db37f"}})});break;case"ExaminationBank":return(0,at.jsx)(tt.Z,{title:"测验形式:在线考试",children:(0,at.jsx)("i",{className:"iconfont icon-zhangjieceshibeifen font20",style:{color:"#e9a318"}})});case"HomeworkCommon":if("hack"===(null==t?void 0:t.homework_type))return(0,at.jsx)(tt.Z,{title:"作业形式:编程作业",children:(0,at.jsx)("i",{className:"iconfont icon-bianchengzuoye1 font20",style:{color:"#E99237"}})});break;case"Shixun":return null!=t&&t.is_all_choice?(0,at.jsx)(tt.Z,{title:"实战形式:选择题",children:(0,at.jsx)("i",{className:"iconfont icon-xuanzeti4 c-lake-blue font20"})}):null!=t&&t.is_unity_3d?(null==t||null===(e=t.challenge_types)||void 0===e?void 0:e.length)<=1?(0,at.jsx)(tt.Z,{title:"实战形式:虚拟仿真",children:(0,at.jsx)("i",{className:"iconfont icon-xunifangzhenti1 font20",style:{color:"#A504D8"}})}):(0,at.jsx)(tt.Z,{title:"实战形式:选择题+虚拟仿真",children:(0,at.jsx)("i",{className:"iconfont icon-rongheti1 font20",style:{color:"#44B7D7"}})}):(null==t||null===(n=t.challenge_types)||void 0===n?void 0:n.length)>1?(0,at.jsx)(tt.Z,{title:"实战形式:选择题+编程开发",children:(0,at.jsx)("i",{className:"iconfont icon-rongheti1 font20",style:{color:"#44B7D7"}})}):null!=t&&t.is_jupyter_lab?(0,at.jsx)(tt.Z,{title:"实战类型:JupyterLab",children:(0,at.jsx)("img",{width:20,src:bs})}):null!=t&&t.is_jupyter?(0,at.jsx)(tt.Z,{title:"实战类型:Jupyter Notebook",children:(0,at.jsx)("img",{width:20,src:xs})}):(0,at.jsx)(tt.Z,{title:"实战形式:编程开发",children:(0,at.jsx)("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})});var e,n;default:return(0,at.jsx)(tt.Z,{title:"教学课件",children:(0,at.jsx)("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"})})}},ks=(0,d.connect)((function(t){var e=t.pathsDetail,n=t.loading,i=t.user;return{pathsDetail:e,globalSetting:t.globalSetting,user:i,loading:n.effects}}))((function(t){var e=t.pathsDetail,n=(t.globalSetting,t.user),i=(t.loading,t.updateSort),o=(t.isPaths,t.dispatch),s=t.isShowSchedule,u=t.getData,f=c()(t,Ss),p=e.keywords,g=e.visibleType,m=void 0===g?"All":g,v=(0,h.useState)([]),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)([]),S=l()(x,2),P=S[0],k=(S[1],(0,h.useState)([])),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)([]),L=l()(E,2),T=(L[0],L[1],(0,h.useState)([])),N=l()(T,2),j=(N[0],N[1],(0,d.useParams)()),I=(0,h.useState)([]),B=l()(I,2),O=B[0],D=B[1],R=(0,h.useState)({}),z=l()(R,2),W=z[0],V=z[1],X=(0,h.useState)(!1),q=l()(X,2),K=q[0],$=q[1],et=(0,h.useRef)(!1);(0,h.useEffect)((function(){if(f.data&&!(0,ss.isEqual)(f.data,O)){P=[];var t=JSON.parse(JSON.stringify(f.data));ut(t,0),D(Y()(t)),null!=f&&f.expandAll||"All"!=m?b(Y()(P)):b([])}}),[f.data,m,null==f?void 0:f.expandAll]),(0,h.useEffect)((function(){console.log(888)}),[]),(0,h.useEffect)((function(){var t,n,i,r;if(null!==(t=e.detail)&&void 0!==t&&t.has_start){var o,a=null===(o=e.detail)||void 0===o||null===(o=o.courses)||void 0===o?void 0:o.findIndex((function(t){var e;return 1===parseInt(null===(e=t.course_status)||void 0===e?void 0:e.status)}));i=a>-1?a:0}else{var s,l,u=null===(s=e.detail)||void 0===s||null===(s=s.courses)||void 0===s||null===(s=s.map((function(t){var e;return parseInt(null===(e=t.course_status)||void 0===e?void 0:e.status)})))||void 0===s?void 0:s.lastIndexOf(2);i=u>-1?u:0,i=(u=null===(l=e.detail)||void 0===l||null===(l=l.courses)||void 0===l?void 0:l.findIndex((function(t){var e;return 0===parseInt(null===(e=t.course_status)||void 0===e?void 0:e.status)})))>-1?u:i}null!==(n=e.detail)&&void 0!==n&&n.courses&&V((null===(r=e.detail)||void 0===r?void 0:r.courses[i])||{})}),[e.detail]);var nt=function(){var t=a()(r()().mark((function t(e,n){var i,o,a=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=a.length>2&&void 0!==a[2]?a[2]:{},!n){t.next=7;break}return t.next=4,(0,Z.BK)({id:e,challenge_id:null==i?void 0:i.challenge_id,subject_id:j.pathId});case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,(0,Z.Ir)({id:e,challenge_id:null==i?void 0:i.challenge_id,subject_id:j.pathId});case 9:t.t0=t.sent;case 10:if(!(null!=(o=t.t0)&&o.game_identifier||null!=o&&o.identifier)){t.next=14;break}return(0,F.xg)(n?"/tasks/".concat(null==o?void 0:o.identifier,"/jupyter"):"/tasks/".concat(o.game_identifier,"?subject_id=").concat(j.pathId||"")),t.abrupt("return");case 14:-3===(null==o?void 0:o.status)?(0,F.eF)():2===(null==o?void 0:o.status)?it(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&rt(null==o?void 0:o.message);case 15:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),it=function t(e){var n,i;e=null!==(n=e)&&void 0!==n&&n.includes(".json")?e:"".concat(e,".json"),U.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,at.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=a()(r()().mark((function n(){var i,o;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Oa.L8)({url:e});case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return");case 5:return H.ZP.success("重置成功,正在进入实践项目!"),n.next=8,(0,Z.Ir)({id:i.shixun_identifier});case 8:if(null==(o=n.sent)||!o.game_identifier){n.next=12;break}return(0,F.xg)("/tasks/".concat(o.game_identifier)),n.abrupt("return");case 12:2===(null==o?void 0:o.status)?t(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&rt(null==o?void 0:o.message);case 13:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)})})},rt=function(t){U.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,at.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",t,"之后开放,谢谢!"]})})},ot=function(t){console.log("onDragEnter:",t)},st=function(){var t=a()(r()().mark((function t(e){var n,o,a,s,l,u,c,h,d,p,g,m,v,y;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("onDrop:",e),l=e.node.props.eventKey,u=e.dragNode.props.eventKey,c=e.node.props.pos.split("-"),h=e.dropPosition-Number(c[c.length-1]),!(c.length>3)||e.node.dragOverGapBottom||e.node.dragOverGapTop){t.next=7;break}return t.abrupt("return",!1);case 7:if(!(e.node.dragOver&&e.dragNodesKeys.length>1)){t.next=9;break}return t.abrupt("return",!1);case 9:if(!(c.length>2&&e.dragNodesKeys.length>1)){t.next=11;break}return t.abrupt("return",!1);case 11:if(!(d=["Attachment","Hack","Shixun","SubjectHomework","Videoltem"]).includes(null===(n=e.dragNode)||void 0===n?void 0:n.item_type)||"StageCatalog"==(null===(o=e.node)||void 0===o?void 0:o.item_type)||0!==h){t.next=14;break}return t.abrupt("return",!1);case 14:if("StageCatalog"!==(null===(a=e.dragNode)||void 0===a?void 0:a.item_type)||!d.includes(null===(s=e.node)||void 0===s?void 0:s.item_type)||0!==h){t.next=16;break}return t.abrupt("return",!1);case 16:return p=function t(e,n,i){for(var r=0;r0&&e.node.props.expanded&&1===h?p(g,l,(function(t){t.children=t.children||[],t.children.unshift(m)})):(p(g,l,(function(t,e,n){v=n,y=e})),-1===h?v.splice(y,0,m):v.splice(y+1,0,m)):p(g,l,(function(t){t.children=t.children||[],t.children.unshift(m)})),t.next=22,i({stage_id:f.stage_id,list:g});case 22:ut(g,0,0,!0),console.log("data:",g),D(Y()(g)),b([].concat(Y()(w),[e.node.key]));case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ut=function t(e,n,i,r){n=n||0,e.map((function(e,o){try{var a;return e.key2=n+1+"-"+(o+1),e.key3=f.index+1+"-"+(o+1),e.title="",r||(e.key=n+1+"-"+(o+1)),e.index=n?i+"-"+(o+1):e.key3,null!==(a=e.children)&&void 0!==a&&a.length&&(P.push(e.key2),t(e.children,e.key2,e.index,r)),e}catch(t){}}))},ct=function(t){t=t||"";var e=new RegExp(p,"ig"),n=t.replace(e,'$&');return p?(0,at.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}):t},ht=function(t){"All"===m&&(w.includes(t)?b(w.filter((function(e){return e!=t}))):b(w.concat(t)))};console.log(w,O,et.current,"openkeys");var dt=function(){var t=a()(r()().mark((function t(e,n){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ta(o,!0)){t.next=2;break}return t.abrupt("return");case 2:if(null==e||!e.need_authorize){t.next=5;break}return Ba(!1),t.abrupt("return");case 5:return t.next=7,nt(e.identifier,e.is_jupyter||e.is_jupyter_lab,e);case 7:n(),null!=W&&W.course_id&&(0,lt.JS)({id:null==W?void 0:W.course_id});case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),ft=function(){var t=a()(r()().mark((function t(i){var a,s,l,c,h,d;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ta(o)){t.next=2;break}return t.abrupt("return");case 2:if(null!==(a=n.userInfo)&&void 0!==a&&a.admin||null!==(s=n.userInfo)&&void 0!==s&&s.business||i.can_view||"Attachment"===i.item_type){t.next=4;break}return t.abrupt("return",U.Z.info({centered:!0,width:400,okText:"知道啦",icon:null,content:(0,at.jsx)("div",{className:"tc font14",children:"当前视频为创建者所属单位内部教学资料,外单位用户无观看权限"})}));case 4:if(i.link&&(0,Ma.DH)({is_f:1,id:i.id,point:0,total:0}),h=null!=f&&f.course_id?"course_id=".concat(null==f?void 0:f.course_id):"subject_id=".concat(j.pathId||f.subject_id),".ZIP"!==(null==i||null===(l=i.name)||void 0===l?void 0:l.substr(null==i||null===(c=i.name)||void 0===c?void 0:c.lastIndexOf("."))).toUpperCase()){t.next=14;break}if(null!==(d=e.detail)&&void 0!==d&&d.allow_download){t.next=11;break}return H.ZP.info("教学课件不支持下载"),t.abrupt("return");case 11:(0,F.FH)(i.name,fi.Z.API_SERVER+i.url),t.next=15;break;case 14:(0,F.xg)(i.link||"/video/".concat(i.id,"?").concat(h));case 15:if("Attachment"!==i.item_type||2==i.complete_status){t.next=19;break}return t.next=18,(0,lt.rS)({attachment_id:i.id,status:2});case 18:t.sent;case 19:"Attachment"!==i.item_type&&"VideoItem"!==i.item_type||u({stage_id:f.stage_id});case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pt=(0,h.useRef)(!1),gt=(0,h.useMemo)((function(){return(0,at.jsx)(_.Z,{spinning:!1,children:(0,at.jsx)(hs.Z,{className:ds.tree,disabled:f.disabled,expandedKeys:Y()(w),draggable:!0,onDragEnter:ot,onDrop:st,onExpand:ht,blockNode:!0,titleRender:function(t){var e,i,l,u,c,h,d,p,g,v=t;null==t||null===(e=t.learning_status)||void 0===e||e[0];return(0,at.jsxs)(Q.Z,{align:"middle",className:"font14",onClick:function(){return ht(v.key)},style:{flexWrap:"nowrap",whiteSpace:"nowrap"},onMouseOver:function(){return v.key,void(K||$(!0))},children:[(0,at.jsx)(J.Z,{flex:"30px",style:{display:"flex",alignItems:"center"},children:Ps(t)}),(0,at.jsxs)(J.Z,{flex:"1",className:ds.color333,style:{display:"flex",alignItems:"center",width:300},children:[f.cust_seq&&(0,at.jsxs)("span",{className:"".concat(ds.color333," mr10"),children:[" ",t.index," "]}),"Attachment"!==t.item_type&&(0,at.jsx)("div",{className:ds.name_style,children:(0,at.jsx)(tt.Z,{placement:"topLeft",title:t.name,children:(h=t,d=!1,p=h.learning_status,g=h.name,"can"===(null==p?void 0:p[0])&&"try"===(null==p?void 0:p[1])?(0,at.jsxs)("div",{className:ds.learn,children:[(0,at.jsx)("span",{className:ds.name,children:d?g:ct(g)}),(0,at.jsx)("span",{className:ds.sign,children:"免费试学"})]}):d?g:ct(g))})}),"Attachment"===t.item_type&&(0,at.jsx)("a",{target:"_blank",className:ds.pdf_name,title:t.name,onClick:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ta(o)){e.next=2;break}return e.abrupt("return");case 2:if(null==W||!W.course_id){e.next=6;break}return e.next=5,(0,lt.JS)({id:null==W?void 0:W.course_id});case 5:e.sent;case 6:e.t0=t.item_type,e.next="Attachment"===e.t0?9:"VideoItem"===e.t0?11:"ExaminationBank"===e.t0?13:"HomeworkCommon"===e.t0?15:"SubjectHomework"===e.t0?17:"Shixun"===e.t0?19:21;break;case 9:return ft(v),e.abrupt("break",21);case 11:case 13:case 15:return ft(t),e.abrupt("break",21);case 17:return("group"==t.homework_type||"normal"==t.homework_type)&&ft(t),e.abrupt("break",21);case 19:return dt(t),e.abrupt("break",21);case 21:case"end":return e.stop()}}),e)}))),children:t.name}),("Shixun"===t.item_type||"Challenge"===t.item_type)&&t.high_resources_consume&&(0,at.jsx)(ws,{type:"paths",style:{marginLeft:10}}),("Shixun"===t.item_type||"Challenge"===t.item_type)&&(null==t||null===(i=t.shixun_marks)||void 0===i?void 0:i.length)>0&&(1==(null==n||null===(l=n.userInfo)||void 0===l?void 0:l.role)||2==(null==n||null===(u=n.userInfo)||void 0===u?void 0:u.role))&&(null==t?void 0:t.shixun_marks.map((function(t,e){return(0,at.jsx)(tt.Z,{title:"".concat(t),children:(0,at.jsx)("span",{style:{background:"#43a2ff",color:"#fff",borderRadius:"13px",marginLeft:"5px",height:"20px",textAlign:"center",fontSize:"12px",maxWidth:"70px",padding:"0px 13px",overflow:"hidden",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",textOverflow:"ellipsis"},children:t})},e)}))),!(null===(c=t.schools)||void 0===c||!c.length)&&(0,at.jsx)(tt.Z,{title:"该实践项目面向指定单位开放",children:(0,at.jsx)("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})}),("Shixun"===t.item_type||"Challenge"===t.item_type)&&!(null==t||!t.finished_challenges_count)&&(0,at.jsx)(tt.Z,{title:"完成度:".concat(Math.round((null==t?void 0:t.finished_challenges_count)/(null==t?void 0:t.challenges_count)*100),"%"),children:(0,at.jsx)("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((null==t?void 0:t.finished_challenges_count)-(null==t?void 0:t.challenges_count)==0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}})})]}),!f.disabled&&(0,at.jsx)("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"},children:"拖动可以改变项目显示顺序"}),(0,at.jsxs)(J.Z,{children:[f.disabled&&"暂未公开"===v.shixun_status&&(0,at.jsx)("span",{className:"".concat(ds.color204," ml5"),children:"暂未发布"}),"已删除"===v.shixun_status&&(0,at.jsx)("span",{className:"".concat(ds.color204," ml5"),children:"已删除"}),f.disabled&&!s&&("Shixun"===v.item_type||"Challenge"===v.item_type)&&!!v.challenges_count&&(0,at.jsxs)("span",{className:"experˆiment-number ml5 c-grey-999",children:[" 实验数 ","Challenge"===v.item_type?1:v.challenges_count," "]}),f.disabled&&s&&("Shixun"===v.item_type||"Challenge"===v.item_type)&&!!v.challenges_count&&"暂未公开"!==v.shixun_status&&"已删除"!==v.shixun_status&&(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("i",{className:"iconfont icon-wanchenggouxuan font14",style:{marginLeft:"5px",color:v.finished_challenges_count===v.challenges_count?"#50DAAE":"#DEDEDE"}}),(0,at.jsxs)("span",{style:{marginLeft:"4px"},children:[(0,at.jsx)("span",{style:{color:"#165DFF",fontSize:"14px"},children:v.finished_challenges_count}),(0,at.jsxs)("span",{style:{color:"#DEDEDE",fontSize:"14px"},children:["/",v.challenges_count]})]})]}),f.disabled&&s&&("VideoItem"===v.item_type||"Attachment"===v.item_type)&&(0==v.complete_status?(0,at.jsx)("i",{className:"iconfont icon-weidianjixuexi font14",style:{color:"#DEDEDE"}}):1==v.complete_status?(0,at.jsx)("i",{className:"iconfont icon-yidianjixuexiweiwancheng font14",style:{color:"#50DAAE"}}):(0,at.jsx)("i",{className:"iconfont icon-xuexiwancheng font14",style:{color:"#50DAAE"}})),"All"===m&&"StageCatalog"===t.item_type&&(0,at.jsx)("span",{className:"ml10",children:w.includes(t.key)?(0,at.jsx)(fs.Z,{}):(0,at.jsx)(Mt.Z,{})})]})]})},treeData:O,loadedKeys:A,loadData:function(){var t=a()(r()().mark((function t(e){var n,i,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(e,22),pt.current=!0,M(null==A?void 0:A.concat([e.key])),"StageCatalog"===e.item_type){t.next=5;break}return t.abrupt("return",pt.current=!1);case 5:return t.next=7,o({type:"pathsDetail/getStageChildrenData",payload:{id:e.stage_item_id}});case 7:n=t.sent,pt.current=!1,i=function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;return i.map((function(i){var r;return i.id==e.id?G()(G()({},i),{},{children:n.data.items}):G()(G()({},i),{},{children:(null==i||null===(r=i.children)||void 0===r?void 0:r.length)>0?t(i.children):[]})}))},a=i(),ut(a,0),D(Y()(a));case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})})}),[O,P,w,m,K,A]);return(0,at.jsx)(at.Fragment,{children:gt})})),Cs=["pathsDetail","user","globalSetting","loading","exercise","dispatch","classroomList","val","allData","index","visibleTypeNew","getData","selectExercise","openPreview","UpdataStageChildrenData"],As=["tagName"],Ms=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],Es=(0,d.connect)((function(t){var e=t.pathsDetail,n=t.user,i=t.loading,r=t.globalSetting,o=t.classroomList,a=t.exercise;return{pathsDetail:e,user:n,globalSetting:r,loading:i.effects,classroomList:o,exercise:a}}))((function(t){var e,n,i,o=t.pathsDetail,s=t.user,u=t.globalSetting,f=(t.loading,t.exercise,t.dispatch),p=(t.classroomList,t.val),g=t.allData,m=t.index,v=t.visibleTypeNew,y=t.getData,w=t.selectExercise,b=t.openPreview,x=t.UpdataStageChildrenData,S=(c()(t,Cs),X.Z.useForm()),P=l()(S,1)[0],k=(0,h.useState)(),C=l()(k,2),A=C[0],M=(C[1],X.Z.useForm()),E=l()(M,1)[0],L=X.Z.useForm(),T=l()(L,1)[0],N=X.Z.useForm(),j=l()(N,1)[0],I=(0,d.useParams)(),B=o.stageData,O=o.keywords,D=o.visibleType,R=void 0===D?"All":D,F=o.editKey,z=(0,h.useState)({}),Z=l()(z,2),V=Z[0],q=Z[1],$=(0,h.useRef)(),tt=(0,h.useState)(!1),et=l()(tt,2),nt=et[0],ot=et[1],st=(0,h.useState)(!1),ut=l()(st,2),ct=ut[0],ht=ut[1],dt=(0,h.useState)(!1),ft=l()(dt,2),pt=ft[0],gt=ft[1],mt=(0,h.useState)(!1),vt=l()(mt,2),yt=vt[0],wt=vt[1],bt=(0,h.useState)(!1),St=l()(bt,2),Pt=St[0],kt=St[1],Ct=(0,h.useState)(!1),Mt=l()(Ct,2),Et=Mt[0],Lt=Mt[1],Tt=(0,h.useState)(),Nt=l()(Tt,2),jt=Nt[0],It=Nt[1],Bt=(0,h.useState)(!1),Ot=l()(Bt,2),Dt=Ot[0],Rt=Ot[1],Ft=(0,h.useState)(!1),zt=l()(Ft,2),Gt=zt[0],Ut=zt[1],Ht=(0,h.useState)(""),_t=l()(Ht,2),Zt=_t[0],Wt=_t[1],Vt=(0,h.useState)(""),Yt=l()(Vt,2),Xt=Yt[0],qt=Yt[1],Kt=(0,h.useState)(""),Qt=l()(Kt,2),Jt=Qt[0],$t=Qt[1],te=(0,h.useState)(""),ee=l()(te,2),ne=ee[0],ie=ee[1],re=(0,h.useState)(),oe=l()(re,2),ae=oe[0],se=oe[1],le=(0,h.useState)(!0),ue=l()(le,2),ce=ue[0],he=(ue[1],(0,h.useState)([])),de=l()(he,2),fe=de[0],pe=de[1],we=(0,h.useState)(),be=l()(we,2),xe=be[0],Se=be[1],Pe=(0,h.useState)([]),ke=l()(Pe,2),Ce=ke[0],Ae=ke[1],Me=(null===(e=o.detail)||void 0===e?void 0:e.is_free)||(null===(n=o.detail)||void 0===n?void 0:n.can_learning);null!==(i=o.detail)&&void 0!==i&&i.can_managed;(0,h.useEffect)((function(){console.log(555)}),[]);var Ee=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.Ex)(G()({},e));case 2:return n=t.sent,V.items=e.list,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Le=function(){var t=a()(r()().mark((function t(e){var n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(xe){t.next=7;break}return t.next=3,(0,lt.A2)(G()({id:V.stage_id,subject_id:I.pathId},e));case 3:t.sent.id&&(kt(!1),x({stage_id:V.stage_id})),t.next=11;break;case 7:return t.next=9,(0,lt.M2)(G()(G()({id:null==xe?void 0:xe.id,subject_id:I.pathId},e),{},{video_id:(null==e?void 0:e.video_id)||(null==xe||null===(n=xe.video_item)||void 0===n?void 0:n.video_id),link:(null==e?void 0:e.link)||(null==xe||null===(i=xe.video_item)||void 0===i?void 0:i.link)}));case 9:t.sent&&(H.ZP.success("修改成功"),kt(!1),x({stage_id:V.stage_id}));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Te=function(){var t=a()(r()().mark((function t(e){var n,i,o,a,s,l,u,h;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e&&e.name&&""!==(null==e?void 0:e.name.replace(/(^\s*)|(\s*$)/g,""))){t.next=2;break}return t.abrupt("return",H.ZP.info("请先输入章节名称!"));case 2:return o=[].concat(Y()((null==V||null===(n=V.shixuns_list)||void 0===n?void 0:n.map((function(t){return{type:t.item_type,id:t.id}})))||[]),Y()((null==V||null===(i=V.attachments_list)||void 0===i?void 0:i.map((function(t){return{type:"Attachment",id:t.id}})))||[])),a=e.tagName,s=c()(e,As),l=G()(G()({},s),{},{id:V.stage_id,type:Array.from(new Set(o.map((function(t){return t.type})))),list:o}),u=V.tag&&V.tag.id||"",l=G()(G()({},l),{},{stage_tag_attributes:u?{id:u,name:a}:{name:a||""}}),t.next=9,(0,lt.xn)(G()({},l));case 9:null!=(h=t.sent)&&h.subject_id&&x(G()(G()(G()({},V),h),{},{stage_name:l.name,stage_description:l.description,tag:l.stage_tag_attributes}));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ne=function(t){var e;U.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"本操作将删除当前目录及下属子目录的全部内容,确认要删除吗?",onOk:(e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,lt.WW)(t);case 2:0===e.sent.status&&(H.ZP.success("删除成功"),x({stage_id:p.stage_id||V.stage_id}));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},je=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.FD)({id:null==e?void 0:e.stage_item_id,type:null==e?void 0:e.homework_type});case 2:(n=t.sent)&&("HomeworkCommon"==(null==e?void 0:e.item_type)?$t(null==n?void 0:n.hack_homework):$t(null==n?void 0:n.subject_homework),Wt(null==e?void 0:e.item_type),qt(null==e?void 0:e.stage_item_id),Ut(!0));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ie=function(){var t=a()(r()().mark((function t(e){var n,i,o,s,l,u;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("VideoItem"!==(null==e?void 0:e.item_type)){t.next=8;break}return t.next=3,(0,Ma.TJ)({id:null==e?void 0:e.stage_item_id});case 3:n=t.sent,Se(n),"VideoItem"===(null==e?void 0:e.item_type)?kt(!0):(Ae((null==n||null===(i=n.tags)||void 0===i?void 0:i.map((function(t){return null==t?void 0:t.name})))||[]),T.setFieldsValue({files:[{uid:null==n||null===(o=n.attachment)||void 0===o?void 0:o.id,name:null==n?void 0:n.name,response:{id:null==n||null===(s=n.attachment)||void 0===s?void 0:s.id}}]}),gt(!0)),t.next=9;break;case 8:"ExaminationBank"===(null==e?void 0:e.item_type)?d.history.push("/paperlibrary/add/".concat(null==e?void 0:e.id,"?defaultActiveKey=0&type=2&pageType=course&updateType=course&courseId=").concat(I.pathId,"&stageId=").concat(p.stage_id)):"HomeworkCommon"===(null==e?void 0:e.item_type)?d.history.push("/paths/".concat(I.pathId,"/").concat(V.stage_id,"/program_homework/").concat(null==e?void 0:e.id,"/edit")):"Attachment"===(null==e?void 0:e.item_type)?U.Z.confirm({title:"修改课件名称",icon:null,centered:!0,okText:"确认修改",cancelText:"取消",content:(0,at.jsx)(rt.Z,{value:l,onChange:function(t){l=t.target.value},placeholder:"请输入课件名称"}),onOk:function(){var t=a()(r()().mark((function t(){var n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l){t.next=3;break}return H.ZP.info("名称不能为空"),t.abrupt("return",Promise.reject());case 3:return t.next=5,(0,it.ZP)("/api/attachments/".concat(null==e?void 0:e.id,".json"),{method:"put",body:{name:l+(null==e||null===(n=e.name)||void 0===n?void 0:n.substr(null==e||null===(i=e.name)||void 0===i?void 0:i.lastIndexOf(".")))}});case 5:t.sent,l="",x({stage_id:null==e?void 0:e.stage_id});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}):"SubjectHomework"===(null==e?void 0:e.item_type)?f({type:"classroomList/setActionTabs",payload:{key:"group"==(null==e?void 0:e.homework_type)?"课程编辑分组作业":"课程编辑图文作业",id:null==e?void 0:e.stage_item_id,type:null==e?void 0:e.homework_type}}):U.Z.confirm({title:"修改小节名称",icon:null,centered:!0,okText:"确认修改",cancelText:"取消",content:(0,at.jsx)(rt.Z,{defaultValue:null==e?void 0:e.name,value:u,maxLength:40,onChange:function(t){console.log(t.target.value),u=t.target.value},placeholder:"请输入小节名称"}),onOk:function(){var t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((u||(null==e?void 0:e.name)).replaceAll(" ","")){t.next=3;break}return H.ZP.info("名称不能为空"),t.abrupt("return",Promise.reject());case 3:return t.next=5,(0,it.ZP)("/api/stages/".concat(null==e?void 0:e.stage_id,"/update_item_name.json"),{method:"put",body:{name:u||(null==e?void 0:e.name),item_id:null==e?void 0:e.id}});case 5:t.sent,u="",x({stage_id:null==e?void 0:e.stage_id});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Be=function(){Te(P.getFieldsValue(),"edit")},De=function(t){var e,n,i=[];t.items&&null!==(e=t.items)&&void 0!==e&&e.length&&(null===(n=t.items)||void 0===n||n.forEach((function(t){var e;i.push(t),t.children&&null!==(e=t.children)&&void 0!==e&&e.length&&(i=i.concat(t.children))})));return!!i.find((function(t){return(0,ss.isEqual)(t.learning_status,["can","try"])}))?(0,at.jsx)("aside",{className:W.learn,children:"免费试学"}):null},Re=function(t,e){var n,i,l,c,h,p=(null==t?void 0:t.items)||[];console.log(p,"kdata");var m,b,S,k;"All"===R&&((null===(m=s.userInfo)||void 0===m?void 0:m.admin)||(null===(b=s.userInfo)||void 0===b?void 0:b.business)||null===(S=o.detail)||void 0===S||S.allow_statistics,null!==(k=o.detail)&&void 0!==k&&k.allow_add_member&&Me&&!nt&&(null==B||B.length));var C,M,L,N,O,D=function(){var n=a()(r()().mark((function n(i){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:pe(i),null!=p&&p.length||!i.includes("".concat(e))||x({stage_id:t.stage_id||V.stage_id});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}();return(0,at.jsx)(_.Z,{spinning:!1,children:(0,at.jsx)(ge,{className:"mt20 ".concat(W.ChapterStyle),activeKey:fe,bordered:!1,expandIconPosition:"end",expandIcon:function(t){var e=t.isActive;return(0,at.jsx)("i",{className:"iconfont icon-zhankai1 fon14",style:{transform:"rotate(".concat(e?90:0,"deg) "),transition:".3s"}})},onChange:D,items:[{key:e,label:(0,at.jsxs)(Q.Z,{id:"Edit_".concat(e),wrap:!1,align:"middle",gutter:5,children:[(0,at.jsx)(J.Z,{children:(0,at.jsxs)("span",{className:"font18 blod c-3061d0",children:[t.stage_name||"第".concat(null==g?void 0:g.length,"章节"),De(t)]})}),t.tag&&t.tag.name&&(0,at.jsx)(J.Z,{children:(0,at.jsx)("span",{className:"".concat(W.tag),children:t.tag.name})})]}),children:(0,at.jsxs)(_.Z,{spinning:!1,children:[!nt&&(t.stage_description?(0,at.jsx)("aside",{className:"pl20 pr20",children:(0,at.jsx)("div",{ref:$,className:"".concat(W.introContent," ").concat(""),children:(0,at.jsx)(rn.Z,{value:null==t?void 0:t.stage_description})})}):0==(null==p?void 0:p.length)?(0,at.jsx)("div",{className:W.nodata,children:"暂无内容~"}):null),nt&&(0,at.jsxs)("div",{className:"pl20 pr20",children:[(0,at.jsx)(X.Z.Item,{name:"name",label:"名称",rules:[{required:!0,message:"章节名称不能为空"},{whitespace:!0,message:"不能输入空格"}],children:(0,at.jsx)(rt.Z,{size:"middle",maxLength:60,placeholder:"请输入第".concat(e+1,"章节名称,最大限制60个字符"),onBlur:Be})}),(0,at.jsx)(X.Z.Item,{name:"description",label:"描述",className:"ml10",children:(0,at.jsx)(Aa,{defaultValue:null==A?void 0:A.description,placeholder:"请输入第".concat(e+1,"章节描述"),height:300,onBlur:Be})}),(0,at.jsx)(X.Z.Item,{label:"标签",name:"tagName",rules:[{max:10,message:"标签不能超过10个字”"}],children:(0,at.jsx)(rt.Z,{placeholder:"请输入标签名称",onBlur:Be})}),(0,at.jsxs)("aside",{className:"mt20 mb20",children:[(0,at.jsx)(K.ZP,{size:"middle",style:{padding:"4px 11px"},ghost:!0,type:"primary",icon:(0,at.jsx)("i",{className:"iconfont icon-tianjiafangda mr5 "}),onClick:function(){if(null==V||!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(wt(!0),j.resetFields())},children:"小节"}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,menu:{items:[{key:"1",label:"新建实践项目"},{key:"2",label:"选用实践项目"},{key:"3",label:"选用任务关卡"}],onClick:function(t){var e=t.key;t.keyPath,t.domEvent;if(!V.stage_id)return H.ZP.info("请先输入章节名称!");if("1"===e){if(!Ta(f)||!(0,xt.V9)()&&(U.Z.warning({centered:!0,width:530,title:"提示",content:(0,at.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,at.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,at.jsx)("img",{src:Ea,width:200})]}),okText:"我知道了",maskClosable:!0}),1))return;Lt(!1),ht(!0),E.setFieldsValue({name:"",is_jupyter:!1})}"2"===e&&f({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",id:V.stage_id,subject_id:I.pathId}}),"3"===e&&f({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",id:V.stage_id,subject_id:I.pathId,isMissionLevel:!0}})}},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5"}),"实践项目"]})}),!(null!=u&&null!==(n=u.setting)&&void 0!==n&&n.is_local)&&(0,at.jsx)(at.Fragment,{children:(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Se(""),kt(!0)},children:"新建视频项目"},3),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("视频项目"),Rt(!0),ie(V.stage_id))},children:"选用视频项目"},4)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"视频项目"]})})}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(Se(""),Ae([]),Lt(!1),gt(!0),T.resetFields())},children:"新建教学课件"},5),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("教学课件"),Rt(!0),ie(V.stage_id))},children:"选用教学课件"},6)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"教学课件"]})}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&f({type:"classroomList/setActionTabs",payload:{key:"课程新建分组作业",id:V.stage_id,subject_id:I.pathId}})},children:"新建分组作业"},7),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&f({type:"classroomList/setActionTabs",payload:{key:"课程新建图文作业",id:V.stage_id,subject_id:I.pathId}})},children:"新建图文作业"},8),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&d.history.push("/paths/".concat(I.pathId,"/").concat(V.stage_id,"/program_homework/null/add"))},children:"新建编程作业"},9),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("分组作业"),Rt(!0),ie(V.stage_id))},children:"选用分组作业"},10),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("图文作业"),Rt(!0),ie(V.stage_id))},children:"选用图文作业"},11),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("编程作业"),Rt(!0),ie(V.stage_id))},children:"选用编程作业"},12)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"作业"]})}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){d.history.push("/paperlibrary/add?pageType=course&courseId=".concat(I.pathId,"&stageId=").concat(t.stage_id))},children:"新建试卷"},13),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&w(t)},children:"选用试卷"},14)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"测验"]},e)}),(0,at.jsx)("br",{})]}),(0,at.jsxs)("aside",{className:"c-light-black mt10 pb20",children:["所有项目均可以通过拖动排序或升降级。",(0,at.jsx)("br",{}),"新建项目名称指本项目下没有实质内容,仅展示名称,不可点击。"]})]}),(0,at.jsx)("aside",{className:"".concat(null!=t&&t.stage_description?"mt10":""," ").concat(W.shixuns),children:!(null==p||!p.length)&&(0,at.jsx)(Fe,{visibleType:v,data:p,stage_id:t.stage_id,disabled:!nt,deleteStages:Ne,editVidoItem:Ie,showInfoModal:je,updateSort:Ee,index:e,expandAll:null==o||null===(i=o.detail)||void 0===i?void 0:i.show_course_section,cust_seq:!(null==o||null===(l=o.detail)||void 0===l||!l.cust_seq),showVideoPlay:(null===(c=s.userInfo)||void 0===c?void 0:c.admin)||(null===(h=s.userInfo)||void 0===h?void 0:h.business)||((null===(C=o.detail)||void 0===C||null===(C=C.courses)||void 0===C?void 0:C.length)>0?null===(M=o.detail)||void 0===M?void 0:M.allow_visit:!("学生"===(null===(L=s.userInfo)||void 0===L?void 0:L.user_identity)&&null!==(N=o.detail)&&void 0!==N&&N.allow_visit&&null!==(O=o.detail)&&void 0!==O&&O.courses)),isPaths:!0,isShowSchedule:o.isShowSchedule,getData:y})}),nt&&(0,at.jsxs)("aside",{className:W.buttons,children:[(0,at.jsx)(K.ZP,{onClick:function(){ot(!1),f({type:"pathsDetail/save",payload:{editKey:-1}}),f({type:"pathsDetail/getPathsDetail",payload:{id:I.pathId}})},type:"primary",size:"middle",ghost:!0,children:"取消"}),(0,at.jsx)(K.ZP,{onClick:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:P.submit(),f({type:"pathsDetail/save",payload:{editKey:-1}}),f({type:"pathsDetail/getPathsDetail",payload:{id:I.pathId}});case 3:case"end":return t.stop()}}),t)}))),size:"middle",type:"primary",children:"保存"})]})]})}]})})},Fe=h.memo(ks);(0,h.useMemo)((function(){return console.log(V,"data1"),V?Re(V,m):null}),[V,O,v,R,ae,ce,fe,nt,F]);return(0,h.useEffect)((function(){q(G()({},p)),P.setFieldsValue(G()(G()({},p),{},{name:null==p?void 0:p.stage_name}))}),[p]),(0,h.useEffect)((function(){var t;if(F===m){ot(!0);var e=document.getElementById("Edit_".concat(F));e&&setTimeout((function(){return e.scrollIntoView({block:"start",behavior:"smooth"})}))}else ot(!1);pe(null==V||!V.limit_expansion||(null==V||null===(t=V.items)||void 0===t?void 0:t.length)>0||F===m?["".concat(m)]:[])}),[V,F]),(0,h.useEffect)((function(){if($.current){var t=function(){var t,e=new ResizeObserver((function(t){var e,n=At()(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;se(i.target.offsetHeight>=280)}}catch(t){n.e(t)}finally{n.f()}}));return e.observe(null===(t=$.current)||void 0===t?void 0:t.firstElementChild),e}();return function(){var e,n;(null===(e=$.current)||void 0===e?void 0:e.firstElementChild)&&t.unobserve(null===(n=$.current)||void 0===n?void 0:n.firstElementChild)}}}),[$.current,V]),(0,at.jsxs)("section",{children:[(0,at.jsx)(X.Z,{form:P,onFinish:Te,children:Re(V,m)}),(0,at.jsx)(U.Z,{centered:!0,title:"新建实践项目",open:ct,confirmLoading:Et,destroyOnClose:!0,onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:E.submit();case 1:case"end":return t.stop()}}),t)}))),onCancel:function(){ht(!1)},children:(0,at.jsxs)(X.Z,{form:E,initialValues:{name:"",is_jupyter:!1},onFinish:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(!0),t.next=3,(0,lt.vf)(G()({id:V.stage_id,subject_id:I.pathId},e));case 3:t.sent.id&&(E.resetFields(),H.ZP.success("添加成功"),x(G()({},V)),ht(!1)),Lt(!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:[(0,at.jsx)(X.Z.Item,{label:"类型",name:"is_jupyter",rules:[{required:!0,message:"请选择类型"}],children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:!1,children:" 全栈实践项目 "}),(0,at.jsx)(ye.ZP,{value:!0,children:"Jupyter Notebook实践项目"})]})}),(0,at.jsx)(X.Z.Item,{label:"名称",name:"name",rules:[{required:!0,message:"请输入名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,at.jsx)(rt.Z,{showCount:!0,maxLength:60,placeholder:"请输入不超过60字的名称"})})]})}),(0,at.jsx)(U.Z,{centered:!0,title:xe?"编辑教学课件":"新建教学课件",open:pt,confirmLoading:Et,onCancel:function(){gt(!1),Ae([]),Se("")},destroyOnClose:!0,onOk:a()(r()().mark((function t(){var e,n,i,o,a,s;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=T.getFieldsValue(),Lt(!0),!(i=n.files.find((function(t){return!t.response||!t.response.id})))){t.next=6;break}return H.ZP.error("".concat(null==i?void 0:i.name," 文件上传失败,请重新上传")),t.abrupt("return");case 6:if(a=G()(G()({},n),{},{subject_id:I.pathId,tags:Ce,attachment_ids:null==n||null===(e=n.files)||void 0===e?void 0:e.map((function(t){return t.response.id}))}),xe){t.next=13;break}return t.next=10,(0,lt.s0)(G()(G()({},a),{},{id:V.stage_id}));case 10:o=t.sent,t.next=16;break;case 13:return t.next=15,(0,lt.M2)(G()(G()({},a),{},{id:null==xe?void 0:xe.id,attachment_id:null==a||null===(s=a.attachment_ids)||void 0===s?void 0:s[0]}));case 15:o=t.sent;case 16:0===o.status&&(H.ZP.success("修改成功"),gt(!1),x(G()({},V))),Lt(!1);case 18:case"end":return t.stop()}}),t)}))),children:(0,at.jsxs)(X.Z,{form:T,children:[(0,at.jsx)(X.Z.Item,{label:"课件内容",name:"files",rules:[{required:!0,message:"请上传课件内容"}],children:(0,at.jsx)(cs,{aloneClear:!0,maxSize:(0,xt.Ny)()?500:100,accept:Ms.toString(),number:xe?1:10})}),(0,at.jsx)(X.Z.Item,{style:{marginLeft:8},label:"知识标签",name:"tags",children:(0,at.jsx)(rt.Z,{onKeyUp:function(t){if("Enter"==t.key){var e=T.getFieldValue("tag");if(T.setFieldsValue({tag:""}),!e)return void H.ZP.info("标签不能为空");if(Ce.filter((function(t){return t===e})).length>0)return void H.ZP.info("已有相同名称标签");Ce.push(e),Ae(Y()(Ce))}}})}),(0,at.jsx)("div",{className:W["tagsList-content"],children:Ce.map((function(t,e){return(0,at.jsx)(Oe,{closable:!0,onClose:function(e){!function(t,e){t.preventDefault(),Ae(Y()(Ce.filter((function(t){return t!=e}))))}(e,t)},children:t},e+t)}))}),(0,at.jsxs)("div",{children:[(0,at.jsx)("span",{className:"c-red",children:"注意:"}),(0,at.jsx)("br",{}),"1、上传课件,即表示您已同意",(0,at.jsx)(d.Link,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank",children:"上传内容协议"}),",不得上传未经他人授权的作品;",(0,at.jsx)("br",{}),"2、上传课件默认设置为不允许下载,若要开启下载功能,可进入课程编辑页面设置;",(0,at.jsx)("br",{}),"3、不支持断点续传,单个文件大小请勿超过",(0,xt.Ny)()?500:100,"M;",(0,at.jsx)("br",{}),"4、当前仅限支持pdf、word、excel、ppt、zip文件;",(0,at.jsx)("br",{}),"5、文件名将被自动读取为系统内该课件的名称,上传前请注意这一点;",(0,at.jsx)("br",{}),"6、一次最多上传10个文件。"]})]})}),(0,at.jsx)(U.Z,{centered:!0,title:"新建小节名称",open:yt,confirmLoading:Et,onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:j.submit();case 1:case"end":return t.stop()}}),t)}))),onCancel:function(){wt(!1),j.resetFields()},children:(0,at.jsx)(X.Z,{form:j,onFinish:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(!0),t.next=3,(0,lt.Mt)(G()(G()({},e),{},{id:null==V?void 0:V.stage_id,subject_id:I.pathId}));case 3:0===t.sent.status&&(H.ZP.success("添加成功"),wt(!1),j.resetFields(),x(G()({},V))),Lt(!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:(0,at.jsx)(X.Z.Item,{label:"",name:"name",rules:[{required:!0,message:"请输入不超过40字的小节名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,at.jsx)(rt.Z,{showCount:!0,maxLength:40,placeholder:"请输入不超过40字的小节名称"})})})}),(0,at.jsx)($a,{visible:Pt,editData:xe,onCancel:function(){return kt(!1)},onOk:Le}),(0,at.jsx)(ho,{setScoreShow:Rt,getData:function(){x({stage_id:p.stage_id||V.stage_id})},id:ne,ScoreShow:Dt,modalType:jt,subjectId:I.pathId,openPreview:b}),(0,at.jsx)(mi,{setScoreShow:Ut,ScoreShow:Gt,homeType:Zt,homeId:Xt,modalDdata:Jt})]})})),Ls=(0,d.connect)((function(t){var e=t.shixunsDetail,n=t.loading;return{shixunsDetail:e,globalSetting:t.globalSetting,loading:n.models.index}}))((function(t){t.user;var e=t.onReplyDiscuss,n=t.dispatch,i=t.id,r=t.activeDiscussIndex,o=t.placeholder,a=(0,h.useState)(""),s=l()(a,2),u=s[0],c=s[1];var f=(0,d.useParams)();return(0,at.jsxs)("div",{className:"discuss-item-editor",style:{display:r===i?"block":"none",width:"100%"},children:[(0,at.jsx)(Aa,{miniToolbar:!0,startInit:r===i,defaultValue:u,id:i,noStorage:!0,watch:!1,height:155,placeholder:o||"我要回复",showResizeBar:!0,onChange:function(t){c(t)}}),(0,at.jsx)("a",{onClick:function(){u?(e(i,u),n({type:"pathsDetail/getPathsDetail",payload:{id:f.pathId}}),c("")):H.ZP.info("回复内容不能为空!")},className:"btn-send",children:"发送"})]},i)})),Ts=(0,d.connect)((function(t){var e=t.shixunsDetail,n=t.loading;return{shixunsDetail:e,globalSetting:t.globalSetting,loading:n.models.index}}))((function(t){var e=t.user,n=t.upDataList,i=(t.page,t.dispatch,t.keywords),o=(0,d.useParams)(),s=function(){var t=a()(r()().mark((function t(e,o){var a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.WD)({id:e,content:o});case 2:0===(null==(a=t.sent)?void 0:a.status)&&n(1,i);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return(0,at.jsxs)("div",{className:"discuss-item-container bg-white",children:[(0,at.jsx)("a",{href:"/users/".concat(e.login),target:"_blank",children:(0,at.jsx)("img",{alt:"用户头像",height:"50",src:"".concat(fi.Z.IMG_SERVER,"/images/").concat(e.image_url),width:"50"})}),(0,at.jsx)("section",{children:(0,at.jsx)(Ls,{id:o.pathId,activeDiscussIndex:o.pathId,onReplyDiscuss:s,placeholder:"我要讨论"})})]})})),Ns="GET_DISCUSSES",js="SHOW_DISCUSSES_LOADING",Is="TOP_OR_DOWN_DISCUSS",Bs="PLUS_DISCUSS",Os="SET_ACTION_TYPE",Ds="SHOW_REWARD_DIALOG",Rs="CANCEL_REWARD_DIALOG",Fs="SET_REWARD",zs="ACTIVE_DISCUSS_INDEX";function Gs(t,e){return(0,it.v_)("/discusses/".concat(t,"/top_or_down_discuss.json"),{top:e})}function Us(t,e){return(0,it.v_)("/discusses/".concat(t,"/plus.json"),{container_type:"Discuss",type:e?1:0})}function Hs(t,e){return(0,it.v_)("/discusses/".concat(t,"/hidden.json"),e)}function _s(t,e){return(0,it.v_)("/discusses/".concat(t,"/reward_code.json"),e)}function Zs(t){return(0,it.ZP)("/api/discusses/".concat(t,".json"),{method:"delete"})}function Ws(t,e){return(0,it.v_)("/discusses/".concat(t,"/reply.json"),{container_type:"Shixun",content:e})}var Vs=n(1499);function Ys(t){var e=t.data,n=t.index,i=t.adminOrOperator,r=t.parentDiscussIndex,o=t.shixunIdentifier,a=(t.isDelete,t.user,t.onSetRewardData),s=t.onSetActionType,l=t.deleteCommentAlert,u=t.shixunName,c=t.keywords,h=e.author,d=(e.can_delete,e.manage),f=e.content,p=e.hidden,g=e.id,m=e.reward,v=e.time;return(0,at.jsxs)("div",{className:"second-level-discuss",children:[(0,at.jsxs)("div",{className:"discuss-info-body",style:{marginTop:"8px",marginBottom:"8px"},children:[(0,at.jsxs)("div",{className:"discuss-info",children:[(0,at.jsx)("a",{href:"/users/".concat(h.login),target:"_blank",children:h.name}),(0,at.jsx)("span",{className:"grey",children:v}),m?(0,at.jsxs)("a",{className:"c-orange gift",title:"已奖励金币".concat(m),children:[(0,at.jsx)("i",{className:"iconfont icon-gift c-orange "}),(0,at.jsx)("span",{children:m})]}):null]}),(0,at.jsxs)("div",{className:c?"hidden":"btn-group",style:{marginBottom:"0px"},children:[i?(0,at.jsx)("a",{onClick:function(){a({id:g,index:n,user_id:h.user_id,parentDiscussIndex:r})},title:"给TA奖励金币",children:(0,at.jsx)("i",{className:"iconfont icon-jiangli"})}):null,i?(0,at.jsx)("a",{onClick:function(){s({id:g,index:n,params:{hidden:p?"0":"1",container_identifier:o},type:"hidden-discuss",parentDiscussIndex:r,message:p?"确定要取消隐藏该条回复吗":"确定要隐藏该条回复吗"})},title:p?"取消隐藏":"隐藏评论",children:(0,at.jsx)("i",{className:p?"iconfont icon-yincangbiyan":"fa fa-eye"})}):null,d?(0,at.jsx)("a",{onClick:function(){l?U.Z.info({title:"提示",content:(0,at.jsxs)("div",{className:"tc",children:[" ","该条评论来自《",u,"》实践项目,您不是该实践项目的管理者,不能删除评论!"]}),onOk:function(){}}):s({id:g,index:n,type:"delete-discuss",parentDiscussIndex:r,message:"确定要删除该条回复吗"})},title:"删除",style:{minWidth:"unset"},children:(0,at.jsx)("i",{className:"iconfont icon-shanchu"})}):null]})]}),(0,at.jsx)(rn.Z,{className:"discuss-content",value:f,highlightKeywords:c})]})}var Xs=function(t){var e=t.data,n=t.index,i=t.shixunIdentifier,r=t.adminOrOperator,o=t.identity,a=(t.onTopOrDownDiscuss,t.onPlusDiscuss),s=t.onSetActionType,l=t.onSetRewardData,u=t.user,c=t.isDelete,h=t.activeDiscussIndex,d=t.onReplyDiscuss,f=t.onSetActiveDiscussIndex,p=t.keywords,g=e.content,m=e.children,v=e.game_url,y=e.hidden,w=e.id,b=e.position,x=e.praise_count,S=e.reward,P=(e.sticky,e.time),k=e.user_praise,C=e.game_passed,A=e.delete_comment_alert,M=e.author,E=e.shixun_name,L=e.manage;var T=function(t){var e=t.target,n=e.nodeName,i=e.src;"IMG"===n&&(Vs.Z.publish("preview-image",i),console.log("src:",i))};return(0,at.jsxs)("div",{className:"discuss-item-container",children:[(0,at.jsx)("a",{href:"/users/".concat(M.login),target:"_blank",children:(0,at.jsx)("img",{alt:"用户头像",height:"50",src:"".concat(fi.Z.IMG_SERVER,"/images/").concat(M.image_url),width:"50"})}),(0,at.jsxs)("section",{children:[(0,at.jsxs)("div",{className:"discuss-info",children:[(0,at.jsx)("a",{href:"/users/".concat(M.login),target:"_blank",children:M.name}),(0,at.jsx)("span",{className:"grey",children:P}),b?(0,at.jsxs)("span",{className:"c-green",children:[" [第",b,"关] "]}):null,v?(0,at.jsx)("a",{href:v,target:"_blank",className:"view-code",title:"点击查看TA的代码页面",children:"查看"}):null,S?(0,at.jsxs)("a",{className:"c-orange gift",title:"已奖励金币".concat(S),children:[(0,at.jsx)("i",{className:"iconfont icon-gift c-orange "}),(0,at.jsx)("span",{children:S})]}):null,o<=5?(0,at.jsx)("span",{style:{flex:"1",textAlign:"right",color:1===C?"#29bd8b":""},children:C||0===C?1===C?"已通关":"未通关":""}):null]}),(0,at.jsx)("div",{onClick:T,children:(0,at.jsx)(rn.Z,{className:"discuss-content",value:g,highlightKeywords:p})}),m&&m.length>0?(0,at.jsx)("div",{className:"reply-discuss-container",onClick:T,children:m.map((function(t,e){return(0,at.jsx)(Ys,{data:t,index:e,deleteCommentAlert:A,shixunName:E,shixunIdentifier:i,adminOrOperator:r,user:u,isDelete:c,onSetRewardData:l,onSetActionType:s,parentDiscussIndex:n,keywords:p},t.id)}))}):null,(0,at.jsxs)("div",{className:p?"hidden":"btn-group",children:[r?(0,at.jsx)("a",{onClick:function(){l({id:w,index:n,user_id:M.user_id})},title:"给TA奖励金币",children:(0,at.jsx)("i",{className:"iconfont icon-jiangli"})}):null,r?(0,at.jsx)("a",{onClick:function(){s({id:w,index:n,params:{hidden:y?"0":"1",container_identifier:i},type:"hidden-discuss",message:y?"确定要取消隐藏该条回复吗":"确定要隐藏该条回复吗"})},title:y?"取消隐藏":"隐藏评论",children:(0,at.jsx)("i",{className:y?"iconfont icon-yincangbiyan":"fa fa-eye"})}):null,L&&(!m||0==m.length)&&(0,at.jsx)("a",{onClick:function(){A?U.Z.info({title:"提示",content:(0,at.jsxs)("div",{className:"tc",children:[" ","该条评论来自《",E,"》实践项目,您不是该实践项目的管理者,不能删除评论!"]}),onOk:function(){}}):s({id:w,index:n,type:"delete-discuss",message:"确定要删除该条回复吗"})},title:"删除",children:(0,at.jsx)("i",{className:"iconfont icon-shanchu"})}),(0,at.jsx)("a",{onClick:function(){f(w)},title:"回复",children:(0,at.jsx)("i",{className:"iconfont icon-huifu1"})}),(0,at.jsxs)("a",{onClick:function(){a(w,!k,n)},style:{whiteSpace:"nowrap"},className:k?"c-orange":"",children:[(0,at.jsx)("i",{className:k?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),(0,at.jsx)("span",{children:x||""})]})]}),(0,at.jsx)(Ls,{id:w,activeDiscussIndex:h,onReplyDiscuss:d})]})]},w)},qs={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Ks(t,e){switch(e.type){case js:return G()(G()({},t),{},{loading:!0});case Ds:return G()(G()({},t),{},{showRewardDialog:!0});case Rs:return G()(G()({},t),{},{showRewardDialog:!1});case Ns:case Is:case Bs:case Os:case Fs:case zs:return G()(G()({},t),e.payload);default:throw new Error}}var Qs=function(t){var e=t.shixunIdentifier,n=t.identity,i=t.activeIndex,o=t.user,s=(t.isShixunDetail,t.isDelete),u=t.keywords,c=t.refreshCount,f=(0,h.useReducer)(Ks,qs),p=l()(f,2),g=p[0],m=p[1],v=g.page,y=g.loading,w=g.data,b=g.actionType,x=g.showRewardDialog,S=g.activeDiscussIndex,P=(0,h.useRef)(),k=(0,h.useRef)(),C=(0,d.useParams)();function A(t){return M.apply(this,arguments)}function M(){return(M=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!y){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,m({type:js}),t.next=6,(0,lt.Ax)(G()(G()({},C),{},{page:e,keywords:u}));case 6:n=t.sent,m({type:Ns,payload:{activeDiscussIndex:null,page:e,data:n,loading:!1}}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[2,10]])})))).apply(this,arguments)}function E(t){document.body.scrollIntoView(),A(t)}function L(t,e,n){return T.apply(this,arguments)}function T(){return(T=a()(r()().mark((function t(e,n,i){var o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Us(e,n);case 3:o=t.sent,Z[i].user_praise=n,Z[i].praise_count=o.praise_count,m({type:Bs,payload:{data:G()(G()({},w),{},{comments:Z})}}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))).apply(this,arguments)}function N(t,e,n){return j.apply(this,arguments)}function j(){return(j=a()(r()().mark((function t(e,n,i){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Gs(e,n);case 3:Z[i].sticky=n,m({type:Is,payload:{data:G()(G()({},w),{},{comments:Z})}}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function I(){return I=a()(r()().mark((function t(){var e,n,i,o,a,s,l,u;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=b.id,n=b.params,i=b.type,o=b.index,a=b.parentDiscussIndex,"hidden-discuss"!==i){t.next=6;break}return t.next=4,Hs(e,n);case 4:a?Z[a].children[o].hidden=1==n.hidden:Z[o].hidden=1==n.hidden,m({type:Os,payload:{actionType:null,data:G()(G()({},w),{},{comments:Z})}});case 6:if("delete-discuss"!==i){t.next=32;break}return t.next=9,Zs(e);case 9:if(!a&&0!==a){t.next=22;break}s=Z[a].children,l=s.length-1;case 12:if(!(l>=0)){t.next=19;break}if(s[l].id!==e){t.next=16;break}return s.splice(l,1),t.abrupt("break",19);case 16:l--,t.next=12;break;case 19:Z[a].children=s,t.next=30;break;case 22:u=Z.length-1;case 23:if(!(u>=0)){t.next=30;break}if(Z[u].id!==e){t.next=27;break}return Z.splice(u,1),t.abrupt("break",30);case 27:u--,t.next=23;break;case 30:m({type:Os,payload:{actionType:null,data:G()(G()({},w),{},{comments:Z})}}),c();case 32:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}function B(t){m({type:Os,payload:{actionType:t}})}function O(){return(O=a()(r()().mark((function t(){var e,n,i,o,a,s,l;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=P.current,n=e.id,i=e.index,o=e.score,a=e.user_id,s=e.parentDiscussIndex,t.next=3,_s(n,{container_type:"Discusses",score:o,user_id:a});case 3:l=t.sent,s?Z[s].children[i].reward=l.code:Z[i].reward=l.code,m({type:Fs,payload:{showRewardDialog:!1,data:G()(G()({},w),{},{comments:Z})}}),P.current=null;case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(t){P.current=t,m({type:Ds})}function R(t,e){return F.apply(this,arguments)}function F(){return(F=a()(r()().mark((function t(e,n){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ws(e,n);case 3:A(v),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.log(t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}function z(t){m(S===t?{type:zs,payload:{activeDiscussIndex:null}}:{type:zs,payload:{activeDiscussIndex:t}})}if((0,h.useEffect)((function(){function t(){return(t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(3!==i||w||!e){t.next=3;break}return t.next=3,A(v);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[C.pathId,u]),(0,h.useEffect)((function(){A(v)}),[u]),!w)return(0,at.jsx)(_.Z,{spinning:!0,children:(0,at.jsx)("div",{style:{height:"300px",width:"100%"}})});var H=w.disscuss_count,Z=w.comments,W=(w.all,w.can_hidden);return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsxs)("div",{className:"discuss-container",ref:k,children:[0===H?(0,at.jsx)(Ve.Z,{}):null,(0,xt.bg)()&&!u&&(0,at.jsx)(Ts,{upDataList:A,page:v,user:o,keywords:u}),(0,at.jsx)("aside",{className:"bg-white",children:null==Z?void 0:Z.map((function(t,i){return(0,at.jsx)(Xs,{user:o,data:t,index:i,identity:n,onPaginationChange:E,shixunIdentifier:e,isDelete:s,onSetActionType:B,onTopOrDownDiscuss:N,adminOrOperator:W,onPlusDiscuss:L,onSetRewardData:D,activeDiscussIndex:S,onSetActiveDiscussIndex:z,onReplyDiscuss:R,keywords:u},t.id)}))}),H>10?(0,at.jsx)("div",{className:"pagination-container tc",children:(0,at.jsx)(nt.Z,{showQuickJumper:!0,showSizeChanger:!1,onChange:E,current:v,total:H})}):null]}),(0,at.jsxs)(ko,{children:[(0,at.jsx)(U.Z,{centered:!0,title:"提示",open:!!b,onOk:function(){return I.apply(this,arguments)},onCancel:function(){m({type:Os,payload:{actionType:null}})},children:(0,at.jsx)("p",{children:b?b.message:""})}),(0,at.jsx)(U.Z,{centered:!0,width:400,title:"奖励设置",open:x,onCancel:function(){m({type:Rs})},onOk:function(){return O.apply(this,arguments)},children:(0,at.jsx)(Uo.Z,{placeholder:"请输入奖励的金币数量",min:1,onChange:function(t){P.current.score=t},style:{width:"228px"}})})]})]})},Js="scoremodal___YNtb3",$s="wrap___BauIT",tl="wrap_title___ZWoHv",el="radioWrap___Jh9vt",nl="radio___Ydt8R",il="colorFF0000___JOb5w",rl="pagination___d1fv4",ol="search___Pjuzg",al="searchIcon___v01bz",sl="orangeColor___U5vU6",ll="redColor___qYa6X",ul="statustitle___pTBLm",cl="statusbody___qUPQx",hl="flex___VtL45",dl=function(t){var e=t.type,n=t.resdata,i=t.onok,o=t.oktext,s=t.okloading,u=(0,h.useState)(!1),c=l()(u,2),d=c[0],f=c[1],p=n.can_copy_list,g=n.can_copy_num,m=n.challenge_type,v=(n.course_data_list,n.no_copy_list),y=n.no_copy_num,w=n.no_use_list,b=(n.no_use_num,n.repeat_shixun_num,n.student_count),x=(n.total_num,n.use_num),S=g>0||"exercise"===e;(0,h.useEffect)((function(){(null==n?void 0:n.student_count)>0&&f(!0)}),[n]),console.log("---11",s),(0,h.useEffect)((function(){s||f(!1)}),[s]);return(0,at.jsx)(U.Z,{open:d,onCancel:function(){f(!1)},cancelText:"取消",title:"提示",width:700,centered:!0,cancelButtonProps:{style:{display:!S&&"none"}},zIndex:1003,confirmLoading:s,okText:S?o:"我知道了",onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!S){t.next=5;break}return t.next=3,i([].concat(Y()(p),Y()(w)));case 3:t.next=6;break;case 5:f(!1);case 6:case"end":return t.stop()}}),t)}))),children:(0,at.jsxs)("div",{style:{maxHeight:600,overflow:"auto"},children:["exercise"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在其他考试中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法作答已挑战过的实训题。"})]}):"exercise"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在课堂实验中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法再提交作业。"})]}):"shixun"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在考试中挑战过该实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"shixun"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在课堂实验中挑战过该实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"subject"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在考试中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"subject"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有 ",(0,at.jsx)("span",{className:sl,children:b})," 名学生已在课堂实验挑战过其中的 ",(0,at.jsx)("span",{className:sl,children:x})," 个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"exercisepush"===e?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在其他考试中挑战过试卷中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目 ,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法在当前考试中进行作答。"})]}):"shixunpush"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在考试中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法再提交作业。"})]}):"shixunpush"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在课堂实验中挑战过",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法再提交作业。"})]}):void 0,"exercise"===e||"subject"===e||"exercisepush"===e||"shixunpush"===e?(0,at.jsxs)("div",{style:{marginTop:20},children:[y>0&&(0,at.jsxs)("div",{children:[(0,at.jsxs)("span",{className:hl,children:[(0,at.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",style:{width:14}}),(0,at.jsx)("span",{className:ul,children:"不支持复制的实践项目"})]}),(0,at.jsxs)("div",{className:cl,children:["exercise"===e&&(0,at.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",(0,at.jsx)("span",{className:ll,children:"以下试题将不会被发送至课堂中。"}),"您也可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"]}),("subject"===e||"exercisepush"===e)&&(0,at.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",S&&(0,at.jsx)("span",{className:ll,children:"一键复制不会复制此部分项目。"}),"您可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"]}),"shixunpush"===e&&(0,at.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",S&&(0,at.jsx)("span",{className:ll,children:"一键复制不会复制此部分项目。"}),"建议您重新选择实践项目再发布作业,也可联系项目创建者开启复制权限或联系平台教研助理进行协助。"]}),(0,at.jsx)("div",{children:null==v?void 0:v.map((function(t,e){return(0,at.jsxs)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:["《",null==t?void 0:t.name,"》",e+1!==y&&"、"]})}))})]})]}),g>0&&(0,at.jsxs)("div",{style:{marginTop:20},children:[(0,at.jsxs)("span",{className:hl,children:[(0,at.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",style:{width:14}}),(0,at.jsx)("span",{className:ul,children:"支持复制的实践项目"})]}),(0,at.jsxs)("div",{className:cl,children:["exercise"===e&&(0,at.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并替换试题(将复制并创建一个新的项目替换试卷中的原试题,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),("subject"===e||"exercisepush"===e)&&(0,at.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并发送(将复制并创建一个新的项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),"shixunpush"===e&&(0,at.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并替换试题(将复制并创建一个新的项目替换当前作业中的实践项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),(0,at.jsx)("div",{children:null==p?void 0:p.map((function(t,e){return(0,at.jsxs)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:["《",null==t?void 0:t.name,"》",e+1!==g&&"、"]})}))})]})]})]}):"shixun"===e?(0,at.jsx)("div",{style:{marginTop:20},children:g>0?"该项目支持复制,建议您一键复制并发送(将复制并创建一个新的项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。":"该项目不支持复制,您可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"}):void 0]})})},fl=["shixunsDetail","dispatch"],pl=(rt.Z.Search,(0,d.connect)((function(t){return{shixunsDetail:t.shixunsDetail}}))((function(t){var e,n,i=t.shixunsDetail,o=t.dispatch,s=(c()(t,fl),(0,d.useParams)()),u=(0,h.useState)(0),f=l()(u,2),p=f[0],g=f[1],m=(0,h.useState)([]),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)(""),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)(),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)(!1),L=l()(E,2),T=L[0],N=L[1],j=(0,h.useState)(!1),I=l()(j,2),B=(I[0],I[1]),O=(0,h.useState)(!1),D=l()(O,2),R=D[0],z=D[1],H=(0,h.useState)({}),_=l()(H,2),W=_[0],V=_[1],Y=(0,h.useState)({page:1,limit:10,type:"video"}),X=l()(Y,2),q=X[0],K=X[1];(0,h.useEffect)((function(){var t,e;if(P(""),"Stage-SendModal"===i.actionTabs.key)if("分组作业"==(null==i||null===(t=i.actionTabs)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.title)){var n={page:1,limit:10,type:"group"};K(n),Q(G()(G()({},n),{},{search:encodeURI(S)}))}else if("图文作业"==(null==i||null===(e=i.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.title)){var r={page:1,limit:10,type:"normal"};K(r),Q(G()(G()({},r),{},{search:encodeURI(S)}))}else K(q),Q(G()(G()({},q),{},{search:encodeURI(S)}))}),[i.actionTabs.key]);var Q=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({type:"shixunsDetail/searchUserCourses",payload:e});case 2:401===(n=t.sent).status?(o({type:"shixunsDetail/setActionTabs",payload:{}}),B(!1)):(g((null==n?void 0:n.courses_count)||0),w((null==n?void 0:n.course_list)||[]));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),J=function(){var t=a()(r()().mark((function t(){var e,n,o,a,l,u,c,h,d,f;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A){t.next=3;break}return N(!0),t.abrupt("return");case 3:return d=null===(e=i.actionTabs.params)||void 0===e?void 0:e.id,B(!1),t.next=7,(0,Z.Tr)({id:"测验"==(null==i||null===(n=i.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.title)?null==i||null===(o=i.actionTabs)||void 0===o||null===(o=o.params)||void 0===o?void 0:o.examinationid:null==s?void 0:s.pathId,course_id:"测验"==(null==i||null===(a=i.actionTabs)||void 0===a||null===(a=a.params)||void 0===a?void 0:a.title)?[A]:A,type:"分组作业"==(null==i||null===(l=i.actionTabs)||void 0===l||null===(l=l.params)||void 0===l?void 0:l.title)?"group":"图文作业"==(null==i||null===(u=i.actionTabs)||void 0===u||null===(u=u.params)||void 0===u?void 0:u.title)?"normal":"测验"==(null==i||null===(c=i.actionTabs)||void 0===c||null===(c=c.params)||void 0===c?void 0:c.title)?"examination_bank":"编程作业"==(null==i||null===(h=i.actionTabs)||void 0===h||null===(h=h.params)||void 0===h?void 0:h.title)?"hack":"subject",stage_item_id:d,sync_catelog:0});case 7:if(0!==(null==(f=t.sent)?void 0:f.student_count)){t.next=13;break}return t.next=11,$(null==f?void 0:f.no_use_list);case 11:t.next=14;break;case 13:V(f);case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),$=function(){var t=a()(r()().mark((function t(e){var n,o,a,l,u,c,h,d,f,p,g,m,v,y,w;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=i.actionTabs.params)||void 0===n?void 0:n.id,z(!0),null===(o=i.actionTabs.params)||void 0===o||!o.is_jupyter){t.next=9;break}return c=null===(u=i.actionTabs.params)||void 0===u?void 0:u.identifier,t.next=6,(0,it.ZP)("/api/shixuns/".concat(c,"/send_to_course.json"),{method:"Post",body:{courses:[{course_id:A,identifier:c,type:"normal",is_copy:e,is_use:1}]}});case 6:l=t.sent,t.next=18;break;case 9:if("测验"!=(null==i||null===(h=i.actionTabs)||void 0===h||null===(h=h.params)||void 0===h?void 0:h.title)){t.next=15;break}return t.next=12,(0,lt.p4)({id:null==i||null===(d=i.actionTabs)||void 0===d||null===(d=d.params)||void 0===d?void 0:d.examinationid,course_id:[A],shixuns_info:e?null==e?void 0:e.map((function(t){return t.shixun_id=t.id,t})):[]});case 12:l=t.sent,t.next=18;break;case 15:return t.next=17,(0,lt.Q)({id:null==s?void 0:s.pathId,course_id:A,stage_shixuns:e,sync_catelog:0,type:"实训"===(null===(f=i.actionTabs.params)||void 0===f?void 0:f.title)?"shixun":"分组作业"==(null==i||null===(p=i.actionTabs)||void 0===p||null===(p=p.params)||void 0===p?void 0:p.title)?"group":"图文作业"==(null==i||null===(g=i.actionTabs)||void 0===g||null===(g=g.params)||void 0===g?void 0:g.title)?"normal":"视频"==(null==i||null===(m=i.actionTabs)||void 0===m||null===(m=m.params)||void 0===m?void 0:m.title)?"video":"编程作业"==(null==i||null===(v=i.actionTabs)||void 0===v||null===(v=v.params)||void 0===v?void 0:v.title)?"hack":""});case 17:l=t.sent;case 18:tt(),"测验"==(null==i||null===(a=i.actionTabs)||void 0===a||null===(a=a.params)||void 0===a?void 0:a.title)?0===(null===(y=l)||void 0===y?void 0:y.status)&&U.Z.confirm({title:"提示",centered:!0,icon:null,okText:"立即前往",cancelText:"稍后再说",content:(0,at.jsx)("div",{style:{textAlign:"left"},children:"发送成功!是否前往对应的教学课堂?"}),onOk:function(){(0,F.xg)("".concat(l.data[0].first_category_url,"/").concat(l.data[0].exercise_id,"/detail?random=").concat(l.data[0].is_random,"&tabs=3"))}}):1===(null===(w=l)||void 0===w?void 0:w.status)&&U.Z.confirm({title:"提示",centered:!0,icon:null,okText:"立即前往",cancelText:"稍后再说",content:(0,at.jsx)("div",{style:{textAlign:"left"},children:"发送成功!是否前往对应的教学课堂?"}),onOk:function(){var t,e,n,r,o,a;if(null!==(t=i.actionTabs.params)&&void 0!==t&&t.is_jupyter)(0,F.xg)(null===(o=l)||void 0===o?void 0:o.first_category_url);else if("分组作业"==(null==i||null===(e=i.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.title)||"图文作业"==(null==i||null===(n=i.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.title))(0,F.xg)(null===(a=l)||void 0===a?void 0:a.url);else if("编程作业"==(null==i||null===(r=i.actionTabs)||void 0===r||null===(r=r.params)||void 0===r?void 0:r.title)){var s,u=null===(s=l)||void 0===s||null===(s=s.url.split("/"))||void 0===s?void 0:s[2];(0,F.xg)("/classrooms/".concat(u,"/program_homework"))}else{var c,h=null===(c=l)||void 0===c||null===(c=c.url.split("/"))||void 0===c?void 0:c[2];(0,F.xg)("/classrooms/".concat(h,"/shixun_homework"))}}});case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),tt=function(){P(""),M(null),N(!1),o({type:"shixunsDetail/setActionTabs",payload:{}}),B(!1),z(!1)};return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(U.Z,{title:"发送".concat((null===(e=i.actionTabs.params)||void 0===e?void 0:e.title)||"实训"),open:"Stage-SendModal"===i.actionTabs.key,centered:!0,className:Js,onCancel:tt,onOk:J,children:(0,at.jsxs)("div",{className:$s,children:[(0,at.jsxs)("div",{className:tl,children:["选择的","".concat((null===(n=i.actionTabs.params)||void 0===n?void 0:n.title)||"实训"),"将会发送到指定课堂"]}),(0,at.jsx)("div",{className:"mb10",children:(0,at.jsx)(rt.Z.Search,{className:ol,placeholder:"输入课堂名称的关键字进行搜索",allowClear:!0,value:S,onChange:function(t){return P(t.target.value)},suffix:(0,at.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(al),onClick:function(){P(S);var t=G()(G()({},q),{page:1,limit:10,search:encodeURI(S)});K(t),Q(t)}}),onSearch:function(t){P(t);var e=G()(G()({},q),{page:1,limit:10,search:encodeURI(t)});K(e),Q(e)}})}),(0,at.jsx)("div",{className:el,children:(0,at.jsx)(ye.ZP.Group,{value:A,onChange:function(t){M(t.target.value),N(!1)},children:y.map((function(t,e){return(0,at.jsx)(ye.ZP,{className:nl,value:t.course_id,children:(0,at.jsx)("span",{title:t.name,children:t.name})},e)}))})}),T&&(0,at.jsx)("div",{className:il,children:"请选择你要发送的课堂"}),p>10&&(0,at.jsx)("div",{className:rl,children:(0,at.jsx)(nt.Z,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:null==q?void 0:q.page,pageSize:10,total:p,onChange:function(t){var e=G()(G()({},q),{page:t,limit:10,search:encodeURI(S)});K(e),Q(e)}})})]})}),(0,at.jsx)(dl,{resdata:W,type:"shixun",okloading:R,oktext:"一键复制并发送",onok:function(t){var e;$(null!==(e=i.actionTabs.params)&&void 0!==e&&e.is_jupyter?1:t)}})]})}))),gl={bg:"bg___F_x5V",title:"title___QEshf",fieldWrap:"fieldWrap___zSBF2",mdWrap:"mdWrap___V2EBb",footer_style:"footer_style___lwvvM",submit_button:"submit_button___gNsfc",close_button:"close_button___K6_8I"},ml=n(12893),vl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},yl=function(t,e){return h.createElement(Wa.Z,(0,Tt.Z)({},t,{ref:e,icon:vl}))};var wl=h.forwardRef(yl),bl={},xl=($.Z.Group,(0,d.connect)((function(t){var e=t.classroomList,n=t.loading,i=t.globalSetting,r=t.user;return{classroomList:e,globalSetting:i,loading:n.effects,user:r}}))((function(t){t.classroomList,t.loading,t.user,t.exercise_id,t.homework_common_id;var e,n,i,o,s,u,c,f,p=t.setitem,g=t.item,m=(t.type,t.rz),v=(t.dispatch,(0,h.useState)([])),y=l()(v,2),w=(y[0],y[1],(0,h.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20})),b=l()(w,2),x=b[0],S=b[1],P=((0,d.useParams)(),(0,h.useState)(!1)),k=l()(P,2),C=(k[0],k[1],(0,h.useState)(!1)),A=l()(C,2),M=(A[0],A[1],X.Z.useForm()),E=l()(M,1)[0];function L(){return(L=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("----",g),t.next=3,T(null==g?void 0:g.ec_major_school_id);case 3:return t.next=5,j(null==g?void 0:g.ec_year_id);case 5:return t.next=7,B(null==g?void 0:g.ec_course_id);case 7:E.setFieldsValue({ec_course_id:null==g?void 0:g.ec_course_id,ec_major_school_id:null==g?void 0:g.ec_major_school_id,ec_point_ids:null==g?void 0:g.ec_point_ids,ec_year_id:null==g?void 0:g.ec_year_id});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t){return N.apply(this,arguments)}function N(){return N=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_major_schools/".concat(e,"/ec_years/get_year_list.json"),{method:"get"});case 2:n=t.sent,x.jbdatas=null==n?void 0:n.data,S(G()({},x)),E.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]});case 6:case"end":return t.stop()}}),t)}))),N.apply(this,arguments)}function j(t){return I.apply(this,arguments)}function I(){return I=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_years/".concat(e,"/ec_courses/get_courses.json"),{method:"get"});case 2:n=t.sent,x.kcdatas=null==n?void 0:n.data,S(G()({},x)),E.setFieldsValue({ec_course_id:"",ec_point_ids:[]});case 6:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}(0,h.useEffect)((function(){m&&(x.zydatas=m,S(G()({},x)),null!=g&&g.ec_course_id&&function(){L.apply(this,arguments)}())}),[g,m]);var B=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_courses/".concat(e,"/ec_points.json"),{method:"get",params:{ec_course_id:e}});case 2:n=t.sent,x.zsdatas=null==n?void 0:n.data,S(G()({},x));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,at.jsx)("div",{className:bl.from,children:(0,at.jsxs)(X.Z,{form:E,layout:"inline",onValuesChange:function(t){console.log("----",t),t.ec_major_school_id&&(x.jbdatas=[],x.kcdatas=[],x.zsdatas=[],S(G()({},x)),T(t.ec_major_school_id)),t.ec_year_id&&(x.kcdatas=[],x.zsdatas=[],S(G()({},x)),j(t.ec_year_id)),t.ec_course_id&&(x.zsdatas=[],S(G()({},x)),B(t.ec_course_id))},onFinish:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:[(0,at.jsx)(X.Z.Item,{label:"认证专业",name:"ec_major_school_id",children:(0,at.jsx)(Re.default,{style:{width:150},disabled:(null===(e=x.zydatas)||void 0===e?void 0:e.length)<=0,placeholder:"请选择认证专业",children:null==x||null===(n=x.zydatas)||void 0===n?void 0:n.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.ec_major_school_id,children:null==t?void 0:t.name},e)}))})}),(0,at.jsx)(X.Z.Item,{label:"认证届别",name:"ec_year_id",children:(0,at.jsx)(Re.default,{style:{width:150},disabled:(null===(i=x.jbdatas)||void 0===i?void 0:i.length)<=0,placeholder:"请选择认证届别",children:null==x||null===(o=x.jbdatas)||void 0===o?void 0:o.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.ec_year_id,children:null==t?void 0:t.year},e)}))})}),(0,at.jsx)(X.Z.Item,{label:"课程",name:"ec_course_id",children:(0,at.jsx)(Re.default,{style:{width:150},disabled:(null===(s=x.kcdatas)||void 0===s?void 0:s.length)<=0,placeholder:"请选择课程",children:null==x||null===(u=x.kcdatas)||void 0===u?void 0:u.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},e)}))})}),(0,at.jsx)(X.Z.Item,{label:"知识点",name:"ec_point_ids",children:(0,at.jsx)(Re.default,{onChange:function(){E.submit()},style:{width:150},mode:"multiple",disabled:(null===(c=x.zsdatas)||void 0===c?void 0:c.length)<=0,placeholder:"请选择知识点",children:null==x||null===(f=x.zsdatas)||void 0===f?void 0:f.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},e)}))})})]})})}))),Sl=($.Z.Group,(0,d.connect)((function(t){var e=t.classroomList,n=t.loading,i=t.globalSetting,r=t.user;return{classroomList:e,globalSetting:i,loading:n.effects,user:r}}))((function(t){t.classroomList,t.loading;var e,n,i=t.user,o=t.exercise_id,s=void 0===o?null:o,u=t.homework_common_id,c=void 0===u?null:u,d=t.setitem,f=(t.type,t.dispatch,(0,h.useState)([{}])),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)([]),y=l()(v,2),w=y[0],b=y[1];function x(){return S.apply(this,arguments)}function S(){return S=a()(r()().mark((function t(){var e,n,i,o,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_courses/".concat(0,"/ec_points/get_work_points.json"),{method:"get",params:{exercise_id:s,homework_common_id:c}});case 2:(null==(n=t.sent)||null===(e=n.data)||void 0===e?void 0:e.length)>0&&(a=[],null==n||null===(i=n.data)||void 0===i||i.map((function(t){var e;null==t||null===(e=t.ec_point_ids)||void 0===e||e.map((function(t){a.push(t)}))})),d(G()(G()({},null==n||null===(o=n.data)||void 0===o?void 0:o[0]),{},{ec_point_ids:a})),m(null==n?void 0:n.data));case 4:case"end":return t.stop()}}),t)}))),S.apply(this,arguments)}function P(){return(P=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/schools/".concat(null==i||null===(e=i.userInfo)||void 0===e||null===(e=e.course)||void 0===e?void 0:e.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=t.sent,b(null==n?void 0:n.data),(c||s)&&x();case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,h.useEffect)((function(){var t;null!=i&&null!==(t=i.userInfo)&&void 0!==t&&null!==(t=t.course)&&void 0!==t&&t.course_school_id&&function(){P.apply(this,arguments)}()}),[null==i||null===(e=i.userInfo)||void 0===e||null===(e=e.course)||void 0===e?void 0:e.course_school_id]),(0,at.jsxs)("div",{style:{display:null!==(n=i.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,at.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==g?void 0:g.map((function(t,e){return(0,at.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,at.jsx)(xl,{rz:w,item:t,type:e,setitem:function(t){g.splice(e,1,t),m(Y()(g));var n=[];null==g||g.map((function(t){var e;null==t||null===(e=t.ec_point_ids)||void 0===e||e.map((function(t){n.push(t)}))})),d(G()(G()({},t),{},{ec_point_ids:n}))}}),0!=e&&(0,at.jsx)(ml.Z,{onClick:function(){g.splice(e,1),m(Y()(g))},style:{marginLeft:10,fontSize:"20px"}}),(0,at.jsx)(wl,{onClick:function(){g.push({}),m(Y()(g))},style:{marginLeft:10,fontSize:"20px"}})]},e)}))]})}))),Pl=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting;return{classroomList:t.classroomList,shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects}}))((function(t){var e,n,i=t.shixunHomeworks,o=(t.newCourse,t.globalSetting),s=(t.loading,t.dispatch),u=t.classroomList,c=((0,d.useParams)(),X.Z.useForm()),f=l()(c,1)[0],p=(0,h.useState)({}),g=l()(p,2),m=g[0],v=g[1],y=((0,h.useRef)(),i.commonHomeWorkAddDefaultData,(0,h.useState)({})),w=l()(y,2),b=w[0],x=w[1];(0,h.useEffect)((function(){f.resetFields()}),[u.actionTabs.key]);function S(t){return P.apply(this,arguments)}function P(){return(P=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=b&&b.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==b?void 0:b.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},b)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程新建分组作业"===u.actionTabs.key,className:gl.drawer,children:[(0,at.jsxs)("section",{className:gl.bg,children:[(0,at.jsx)("aside",{className:gl.title,children:"新建分组作业"}),(0,at.jsxs)(X.Z,{form:f,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){v(G()({},f.getFieldsValue()))},children:[(0,at.jsx)("div",{className:gl.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=m.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:gl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",style:{marginTop:"-10px"},label:"内容",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:m.intro})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})}),(0,at.jsxs)(Q.Z,{gutter:[20,20],style:{marginTop:20},children:[(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},min:1,placeholder:"请填写每组最小人数"})})}),(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"max_num",label:(0,at.jsx)("div",{children:" "}),rules:[{validator:function(t,e){return e?Promise.resolve():Promise.reject(new Error("请填写每组最大人数"))}}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},max:100,placeholder:"请填写每组最大人数"})})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)("div",{className:"mt40",style:{color:"#536367",marginLeft:"-20px"},children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=o&&null!==(n=o.setting)&&void 0!==n&&n.is_local)&&(0,at.jsx)(Q.Z,{style:{marginTop:"-10px"},children:(0,at.jsxs)(J.Z,{children:[(0,at.jsx)(X.Z.Item,{name:"base_on_project",valuePropName:"checked",style:{marginBottom:5},children:(0,at.jsx)($.Z,{value:!0,style:{color:"#5F6368"},children:"基于项目实施"})}),(0,at.jsx)("span",{className:"c-light-black",style:{color:"#999999"},children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,at.jsxs)("div",{className:gl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",label:"参考答案",style:{marginTop:10},children:(0,at.jsx)(Aa,{watch:!0,defaultValue:m.notice})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})})]})]}),(0,at.jsx)("div",{className:gl.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return x(G()({},t))}})})]}),(0,at.jsxs)("div",{className:gl.footer_style,children:[(0,at.jsx)("div",{className:gl.close_button,onClick:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){f.validateFields().then(a()(r()().mark((function t(){var e,n,i,o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(m.min_num>m.max_num)){t.next=3;break}return H.ZP.info("最大人数不能小于最小人数"),t.abrupt("return");case 3:return(e=G()({},m)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){return t.response.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(i=e.reference_attachment_ids)||void 0===i?void 0:i.map((function(t){return t.response.id}))),e.base_on_project||(e.base_on_project=!1),t.next=9,(0,lt.DQ)(G()(G()({id:u.actionTabs.id,subject_id:u.actionTabs.subject_id},e),{},{homework_type:3}));case 9:0===(o=t.sent).status&&(S(o.homework_id),(0,F.L9)(["教学课堂","分组作业","新建分组作业"]),H.ZP.success("新建成功"),s({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 11:case"end":return t.stop()}}),t)}))))},className:gl.submit_button,children:"提交"})]})]},"bottom")})),kl={bg:"bg___oLxz5",title:"title___bfvam",fieldWrap:"fieldWrap___A5u2u",mdWrap:"mdWrap___zugL3",footer_style:"footer_style___unO7C",submit_button:"submit_button___t8Hvx",close_button:"close_button___oswUb"},Cl=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting,o=t.classroomList;return{shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects,classroomList:o}}))((function(t){var e,n,i=t.shixunHomeworks,o=(t.newCourse,t.globalSetting),s=(t.loading,t.dispatch),u=t.classroomList,c=(0,d.useParams)(),f=X.Z.useForm(),p=l()(f,1)[0],g=(0,h.useState)({}),m=l()(g,2),v=m[0],y=m[1],w=(0,h.useState)(!1),b=l()(w,2),x=b[0],S=b[1],P=(0,h.useState)({}),k=l()(P,2),C=k[0],A=k[1],M=(0,h.useState)({}),E=l()(M,2),L=E[0],T=E[1];(0,h.useRef)(),i.commonHomeWorkEditDefaultData;(0,h.useEffect)((function(){"课程编辑分组作业"==u.actionTabs.key&&N()}),[u.actionTabs.key]);var N=function(){var t=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.FD)({id:u.actionTabs.id,type:u.actionTabs.type});case 2:(e=t.sent)&&(n=G()(G()({},e.subject_homework),{},{attachment_ids:us(e.subject_homework.attachments),reference_attachment_ids:us(e.subject_homework.ref_attachments)}),p.setFieldsValue(G()({},n)),y(G()({},n)),S(!0),T(new Date));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function j(t){return I.apply(this,arguments)}function I(){return(I=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=C&&C.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==C?void 0:C.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},C)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程编辑分组作业"===u.actionTabs.key,className:kl.drawer,children:[(0,at.jsxs)("section",{className:kl.bg,children:[(0,at.jsx)("aside",{className:kl.title,children:"编辑分组作业"}),(0,at.jsxs)(X.Z,{form:p,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){y(G()({},p.getFieldsValue()))},children:[(0,at.jsx)("div",{className:kl.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=v.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:kl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",label:"简介:",style:{marginTop:"-10px"},rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:v.description})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:x&&(0,at.jsx)(cs,{},L)})}),(0,at.jsxs)(Q.Z,{gutter:[20,20],style:{marginTop:20},children:[(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},min:1,placeholder:"请填写每组最小人数"})})}),(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"max_num",label:(0,at.jsx)("div",{children:" "}),rules:[{validator:function(t,e){return e?Promise.resolve():Promise.reject(new Error("请填写每组最大人数"))}}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},max:100,placeholder:"请填写每组最大人数"})})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)("div",{className:"mt35",style:{color:"#536367",marginLeft:"-20px"},children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=o&&null!==(n=o.setting)&&void 0!==n&&n.is_local)&&(0,at.jsx)(Q.Z,{style:{marginTop:"-10px"},children:(0,at.jsxs)(J.Z,{children:[(0,at.jsx)(X.Z.Item,{name:"base_on_project",valuePropName:"checked",style:{marginBottom:5,marginTop:5},children:(0,at.jsx)($.Z,{value:!0,defaultChecked:!0,style:{color:"#5F6368"},children:"基于项目实施"})}),(0,at.jsx)("span",{className:"c-light-black",style:{color:"#999999",marginTop:"-10px"},children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,at.jsxs)("div",{className:kl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",label:"参考答案:",style:{marginTop:10},children:(0,at.jsx)(Aa,{defaultValue:v.reference_answer,watch:!0})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:x&&(0,at.jsx)(cs,{},L)})})]})]}),(0,at.jsx)("div",{className:kl.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return A(G()({},t))},homework_common_id:c.categoryId})})]}),(0,at.jsxs)("div",{className:kl.footer_style,children:[(0,at.jsx)("div",{className:kl.close_button,onClick:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){p.validateFields().then(a()(r()().mark((function t(){var e,n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(v.min_num>v.max_num)){t.next=3;break}return H.ZP.info("最大人数不能小于最小人数"),t.abrupt("return");case 3:return(e=G()({},v)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){return t.response.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(i=e.reference_attachment_ids)||void 0===i?void 0:i.map((function(t){return t.response.id}))),e.base_on_project||(e.base_on_project=!1),t.next=9,(0,lt.VO)(G()(G()(G()({},c),e),{},{base_on_project:e.base_on_project,homework_type:3,id:u.actionTabs.id}));case 9:0===t.sent.status&&(H.ZP.success("编辑成功"),j(c.categoryId),s({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 11:case"end":return t.stop()}}),t)}))))},className:kl.submit_button,children:"提交"})]})]},"bottom")})),Al={bg:"bg___fOlTw",title:"title___G3D9y",fieldWrap:"fieldWrap___imjS7",mdWrap:"mdWrap___aKGYo",footer_style:"footer_style___BWH5p",submit_button:"submit_button___yxKUd",close_button:"close_button___nRK7d"},Ml=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting,o=t.classroomList;return{shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects,classroomList:o}}))((function(t){var e,n=t.shixunHomeworks,i=(t.newCourse,t.globalSetting,t.loading,t.dispatch),o=t.classroomList,s=((0,d.useParams)(),X.Z.useForm()),u=l()(s,1)[0],c=(0,h.useState)({}),f=l()(c,2),p=f[0],g=f[1],m=(0,h.useState)(),v=l()(m,2),y=(v[0],v[1],(0,h.useRef)(),n.commonHomeWorkAddDefaultData,(0,h.useState)({})),w=l()(y,2),b=w[0],x=w[1];(0,h.useEffect)((function(){u.resetFields()}),[o.actionTabs.key]);function S(t){return P.apply(this,arguments)}function P(){return(P=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=b&&b.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==b?void 0:b.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},b)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程新建图文作业"===o.actionTabs.key,className:Al.drawer,children:[(0,at.jsxs)("section",{className:Al.bg,children:[(0,at.jsx)("aside",{className:Al.title,children:"新建图文作业"}),(0,at.jsxs)(X.Z,{form:u,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){console.log("onchange: ",u.getFieldsValue()),g(G()({},u.getFieldsValue()))},children:[(0,at.jsx)("div",{className:Al.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=p.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:Al.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",label:"简介:",style:{marginTop:"-10px"},rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:p.intro})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})})]}),(0,at.jsxs)("div",{className:Al.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",style:{marginTop:"-10px"},label:"参考答案:",children:(0,at.jsx)(Aa,{watch:!0,defaultValue:p.notice})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})})]})]}),(0,at.jsx)("div",{className:Al.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return x(G()({},t))}})})]}),(0,at.jsxs)("div",{className:Al.footer_style,children:[(0,at.jsx)("div",{className:Al.close_button,onClick:function(){i({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){u.validateFields().then(a()(r()().mark((function t(){var e,n,a,s;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=G()({},p)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){return t.response.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(a=e.reference_attachment_ids)||void 0===a?void 0:a.map((function(t){return t.response.id}))),t.next=5,(0,lt.DQ)(G()(G()({id:o.actionTabs.id,subject_id:o.actionTabs.subject_id},e),{},{homework_type:1}));case 5:0===(null==(s=t.sent)?void 0:s.status)&&(S(s.homework_id),(0,F.L9)(["教学课堂","图文作业","新建图文作业"]),H.ZP.success("新建成功"),i({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 7:case"end":return t.stop()}}),t)}))))},className:Al.submit_button,children:"提交"})]})]},"bottom")})),El={bg:"bg___Sx8dX",title:"title___GKPKJ",fieldWrap:"fieldWrap___fIL9U",mdWrap:"mdWrap___iwCM_",footer_style:"footer_style___KYp6i",submit_button:"submit_button___Rnntu",close_button:"close_button___Drc5k"},Ll=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting,o=t.classroomList;return{shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects,classroomList:o}}))((function(t){var e,n=t.shixunHomeworks,i=(t.newCourse,t.globalSetting,t.loading,t.dispatch),o=t.classroomList,s=(0,d.useParams)(),u=X.Z.useForm(),c=l()(u,1)[0],f=(0,h.useState)({}),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)(!1),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)({}),S=l()(x,2),P=S[0],k=S[1],C=(0,h.useState)({}),A=l()(C,2),M=A[0],E=A[1];(0,h.useRef)(),n.commonHomeWorkEditDefaultData;(0,h.useEffect)((function(){"课程编辑图文作业"==o.actionTabs.key&&L()}),[o.actionTabs.key]);var L=function(){var t=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.FD)({id:o.actionTabs.id,type:o.actionTabs.type});case 2:(e=t.sent)&&(n={name:e.subject_homework.name,description:e.subject_homework.description,reference_answer:e.subject_homework.reference_answer,attachment_ids:us(e.subject_homework.attachments),reference_attachment_ids:us(e.subject_homework.ref_attachments)},console.log(n),c.setFieldsValue(G()({},n)),m(G()({},n)),b(!0),E(new Date));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function T(t){return N.apply(this,arguments)}function N(){return(N=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=P&&P.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==P?void 0:P.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},P)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程编辑图文作业"===o.actionTabs.key,className:El.drawer,children:[(0,at.jsxs)("section",{className:El.bg,children:[(0,at.jsx)("aside",{className:El.title,children:"编辑图文作业"}),(0,at.jsxs)(X.Z,{form:c,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){m(G()({},c.getFieldsValue()))},children:[(0,at.jsx)("div",{className:El.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=g.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:El.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",label:"简介:",style:{marginTop:"-10px"},rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:g.description})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:w&&(0,at.jsx)(cs,{},M)})})]}),(0,at.jsxs)("div",{className:El.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",label:"参考答案:",style:{marginTop:"-10px"},children:(0,at.jsx)(Aa,{defaultValue:g.reference_answer,watch:!0})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:w&&(0,at.jsx)(cs,{},M)})})]})]}),(0,at.jsx)("div",{className:El.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return k(G()({},t))},homework_common_id:s.categoryId})})]}),(0,at.jsxs)("div",{className:El.footer_style,children:[(0,at.jsx)("div",{className:El.close_button,onClick:function(){i({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){c.validateFields().then(a()(r()().mark((function t(){var e,n,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=G()({},g)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){var e;return null===(e=t.response)||void 0===e?void 0:e.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(a=e.reference_attachment_ids)||void 0===a?void 0:a.map((function(t){var e;return null===(e=t.response)||void 0===e?void 0:e.id}))),t.next=5,(0,lt.VO)(G()(G()(G()({},s),e),{},{base_on_project:!0,homework_type:1,id:o.actionTabs.id}));case 5:0===t.sent.status&&(H.ZP.success("编辑成功"),T(s.categoryId),i({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 7:case"end":return t.stop()}}),t)}))))},className:El.submit_button,children:"提交"})]})]},"bottom")})),Tl=n(26724),Nl=n.n(Tl),jl=n(9221),Il=["onResize","width"],Bl={header:{cell:function(t){var e=t.onResize,n=t.width,i=c()(t,Il);return n?(0,at.jsx)(jl.Resizable,{width:n,height:0,handle:(0,at.jsx)("span",{className:"react-resizable-handle",onClick:function(t){t.stopPropagation()}}),onResize:e,draggableOpts:{enableUserSelectHack:!1},children:(0,at.jsx)("th",G()({},i))}):(0,at.jsx)("th",G()({},i))}}},Ol=["pagination","resColumns","dataSource","onRow"],Dl=function(t){var e=t.pagination,n=t.resColumns,i=t.dataSource,r=t.onRow,o=c()(t,Ol),a=(0,h.useState)(!1),s=l()(a,2),u=s[0],d=(s[1],(0,h.useState)([{}])),f=l()(d,2),p=f[0],g=f[1],m=(0,h.useRef)(null);(0,h.useEffect)((function(){var t=n;t=t.map((function(t,e){return G()(G()({},t),{},{onHeaderCell:function(t){return{width:t.width,onResize:v(e)}}})})),g(t)}),[]),(0,h.useEffect)((function(){m.current=p}),[p]);var v=function(t){return function(e,n){var i=n.size,r=Y()(m.current);r[t]=G()(G()({},r[t]),{},{width:i.width}),g(r)}};return(0,at.jsx)("div",{children:(0,at.jsx)(Fe.Z,G()(G()({bordered:!0,components:Bl,columns:p,dataSource:i,pagination:e,loading:u,onRow:r},o),{},{rowKey:function(t){return t.key||t.id}}))})},Rl="hideHeadCheckbox___Hq5gw",Fl="tabSearch___NaKI4",zl="warpModal___HLUgh",Gl="modalColumn___F7R5w",Ul="modalRow___L6ghw",Hl="sup___VGKXV",_l="brief___LOzpE",Zl="contentTitle___xkdcN",Wl="content___Vtri0",Vl="antdTable___s8T2N",Yl="tableCell___kN9Fw",Xl="antdModal___WVBk3",ql="orangeColor___ryB2u",Kl=["isImportMultipleCourse"],Ql=function(t){var e=t.studentNames,n=t.total;return n>3?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:ql,children:null==e?void 0:e.join("、")}),"等",(0,at.jsx)("span",{className:ql,children:n}),"名学生"]}):(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:ql,children:null==e?void 0:e.join("、")}),["","一","两","三"][n],"名学生"]})},Jl=function(t){var e=t.onCancel,n=t.onOk,i=t.visible,o=(t.inPaper,t.renderData),s=(t.type,t.isMultipleCourse),u=void 0!==s&&s,c=X.Z.useForm(),d=l()(c,1)[0],f=(0,h.useState)(1),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)(!1),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useMemo)((function(){return 1===(null==o?void 0:o.total_num)&&1===(null==o?void 0:o.can_copy_num)}),[o]),S=(0,h.useMemo)((function(){var t;return null==o||null===(t=o.course_data_list)||void 0===t?void 0:t.filter((function(t){return t.is_show}))}),[o]);return(0,at.jsx)(at.Fragment,{children:x?(0,at.jsxs)(U.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:Xl,width:682,confirmLoading:w,onCancel:e,onOk:a()(r()().mark((function t(){var e,i,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b(!0),e=g,u&&(a=G()({},d.getFieldsValue()),e=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(t){return void 0!==a[t.id]?G()(G()({},t),{},{is_copy:a[t.id]}):t}))),t.next=5,n(e);case 5:b(!1);case 6:case"end":return t.stop()}}),t)}))),children:[(0,at.jsx)("div",{className:Wl,style:{marginBottom:20},children:u?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(Ql,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),u?(0,at.jsx)(X.Z,{form:d,preserve:!1,children:null==S?void 0:S.map((function(t){return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("h3",{className:"ml15 mb5",children:t.name}),(0,at.jsx)(X.Z.Item,{name:t.id,initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{className:Wl,children:[(0,at.jsx)(ye.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,at.jsx)(ye.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},t.id)}))}):(0,at.jsxs)(ye.ZP.Group,{value:g,onChange:function(t){return m(t.target.value)},className:Wl,style:{marginBottom:30},children:[(0,at.jsx)(ye.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,at.jsx)(ye.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:Wl,style:{marginBottom:10},children:"* 说明:"}),(0,at.jsx)("div",{className:Wl,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,at.jsx)("div",{className:"".concat(Wl," ").concat(ql),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,at.jsx)(U.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:w,title:"提示",width:682,onCancel:e,onOk:a()(r()().mark((function t(){var e,i,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b(!0),e=0,u&&(a=G()({},d.getFieldsValue()),e=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(t){return void 0!==a[t.id]?G()(G()({},t),{},{is_use:a[t.id]}):t}))),t.next=5,n(e);case 5:b(!1);case 6:case"end":return t.stop()}}),t)}))),children:(0,at.jsxs)("div",{className:Wl,children:[(0,at.jsx)(Ql,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。",u?(0,at.jsxs)(X.Z,{form:d,preserve:!1,children:[(0,at.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==S?void 0:S.map((function(t){return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("h3",{className:"ml15 mb5",children:t.name}),(0,at.jsx)(X.Z.Item,{name:t.id,initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{className:Wl,children:[(0,at.jsx)(ye.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,at.jsx)(ye.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},t.id)}))]}):(0,at.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,at.jsx)("span",{className:ql,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},$l=function(t){var e=X.Z.useForm(),n=l()(e,1)[0],i=(0,h.useState)(!1),o=l()(i,2),s=o[0],u=o[1],c=t.onCancel,d=t.onOk,f=t.visible,p=t.inPaper,g=void 0!==p&&p,m=t.renderData,v=t.type,y=t.isMultipleCourse,w=void 0!==y&&y,b=t.position,x=(0,h.useMemo)((function(){return g?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Yl,render:function(t,e){return(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(t,e){return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Yl,render:function(t,e){return(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(t,e){return(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(t,e){return(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})})}}]}),[g]),S=(0,h.useMemo)((function(){return g?[{title:"实践项目名称",dataIndex:"name",width:424,className:Yl,align:"center",ellipsis:!0,render:function(t,e){return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,at.jsx)(rt.Z,{type:"hidden"})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:Yl,ellipsis:!0,align:"center",render:function(t,e){return(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(t,e){return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],initialValue:0,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]})}}]}),[g]);if(w){var P={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Yl,render:function(t,e){return(0,at.jsx)("a",{href:"/classrooms/".concat(e.course_id),children:t})}};x=[P].concat(Y()(x)),S=[P].concat(Y()(S))}var k=(0,h.useMemo)((function(){return function(t){var e=t.used,n=t.copy,i=t.canNotCopy,r=t.studentNames,o=t.studentCount,a=t.inPaper,s=t.is_random,l=void 0!==s&&s,u=t.position,c=(void 0===u?"":u)||(a?"试卷":"课程");return(0,at.jsxs)("span",{children:[(0,at.jsx)(Ql,{studentNames:r,total:o}),"学习过",c,"中的",(0,at.jsx)("span",{className:ql,children:e}),"个项目,",n>0&&i>0?(0,at.jsxs)(at.Fragment,{children:["其中",(0,at.jsx)("span",{className:ql,children:n}),"个项目支持复制,",(0,at.jsx)("span",{className:ql,children:i}),"个项目不支持复制"]}):n>0&&0===i?(0,at.jsxs)(at.Fragment,{children:["其中",(0,at.jsx)("span",{className:ql,children:n}),"个项目支持复制"]}):0===n&&i>0?(0,at.jsxs)(at.Fragment,{children:["其中",(0,at.jsx)("span",{className:ql,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==m?void 0:m.repeat_shixun_num,copy:null==m?void 0:m.can_copy_num,canNotCopy:null==m?void 0:m.no_copy_num,studentNames:null==m?void 0:m.student_names,studentCount:null==m?void 0:m.student_count,is_random:null==m?void 0:m.is_random,inPaper:g,position:b})}),[m,g,b]);return(0,at.jsx)(U.Z,{title:"提示",centered:!0,open:f,confirmLoading:s,onOk:a()(r()().mark((function t(){var e,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u(!0),e=n.getFieldsValue(),i=Object.keys(e).map((function(t){return{id:parseInt(t.split("_")[0]),course_id:parseInt(t.split("_")[1]),is_use:e[t].is_use,is_copy:e[t].is_copy}})),t.next=5,d(i);case 5:u(!1);case 6:case"end":return t.stop()}}),t)}))),onCancel:c,width:880,okText:"确认",className:Xl,destroyOnClose:!0,children:(0,at.jsxs)(X.Z,{form:n,preserve:!1,children:[(0,at.jsx)("div",{className:_l,children:k}),(0,at.jsxs)("div",{style:{marginBottom:30},children:[(0,at.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,at.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,at.jsx)("div",{className:ql,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==m?void 0:m.can_copy_num)>0&&(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:Zl,children:"支持复制的项目"}),(0,at.jsx)(Fe.Z,{columns:x,className:Vl,dataSource:null==m?void 0:m.can_copy_list,rowKey:"subject"===v?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==m?void 0:m.no_copy_num)>0&&(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:Zl,children:"不支持复制的项目"}),(0,at.jsx)(Fe.Z,{columns:S,className:Vl,dataSource:null==m?void 0:m.no_copy_list,rowKey:"subject"===v?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==m?void 0:m.no_use_list.length)>0&&(null==m?void 0:m.no_use_list.map((function(t){return(0,at.jsxs)("div",{children:[(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,at.jsx)(rt.Z,{type:"hidden"})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]},"subject"===v?t.stage_shixun_id:t.shixun_course_id||t.id)})))]})})},tu=function(t){return"multiple"===t.modalType?(0,at.jsx)($l,G()({},t)):(0,at.jsx)(Jl,G()({},t))},eu=n(12554),nu=De.Z.TabPane,iu=(0,d.connect)((function(t){return{exercise:t.exercise,loading:t.loading,classroomList:t.classroomList}}))((function(t){t.classroomList;var e,n=t.exercise,i=t.saveExercise,o=(t.loading,t.dispatch),s=(0,d.useParams)(),u=((0,d.useLocation)(),X.Z.useForm()),f=(l()(u,1)[0],n.brankList,(0,h.useState)(!0)),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)(!1),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)("myself"),S=l()(x,2),P=S[0],k=S[1],C=(0,h.useState)([]),A=l()(C,2),M=A[0],E=A[1],L=(0,h.useState)([]),T=l()(L,2),N=T[0],j=T[1],I=(0,h.useState)(),B=l()(I,2),O=B[0],D=B[1],R=(0,h.useState)([]),z=l()(R,2),_=z[0],W=z[1],V=(0,h.useRef)(null),q=(0,h.useState)(!1),Q=l()(q,2),J=Q[0],$=Q[1],tt=(0,h.useState)(""),et=l()(tt,2),nt=et[0],it=et[1],ot=(0,h.useState)(""),st=l()(ot,2),lt=st[0],ut=st[1],ct=[{title:"试卷名称",dataIndex:"name",width:150,ellipsis:!0,align:"left"},{title:"方向&课程",dataIndex:"course_list_name",width:150,ellipsis:!0,align:"left"},{title:"类型",dataIndex:"is_random",width:90,align:"left",render:function(t){return t?"随机组卷":"人工组卷"}},{title:"更新时间",dataIndex:"updated_at",width:150,align:"left"},{title:"试题数",dataIndex:"item_num",width:60,align:"center"},{title:"总分",dataIndex:"total_score",width:60,align:"center"},{title:"操作",dataIndex:"is_random",width:60,align:"center",render:function(t,e){return(0,at.jsx)("a",{href:t?"/randompaper/detail/".concat(e.id):"/paperlibrary/see/".concat(e.id,"?defaultActiveKey=").concat("public"==(null==ft?void 0:ft.filter)?"1":"teacher"==(null==ft?void 0:ft.filter)?"2":"0"),target:"_blank>",children:"预览"})}}],ht=(0,h.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself",is_random:null,is_encrypt:0}),dt=l()(ht,2),ft=dt[0],pt=dt[1];(0,h.useEffect)((function(){"试卷选用"===n.actionTabs.key&&(vt(),W([]),gt())}),[n.actionTabs.key]);var gt=function(){var t=a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({type:"paperlibrary/getTeachGroupData"});case 2:e=t.sent,j(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),mt=function(t){var e=parseInt(t);return isNaN(e)?"":e},vt=function(){var t=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!g){t.next=12;break}return++ft.page,m(!1),ft.is_random="myself"==ft.filter?2:null,t.next=6,o({type:"exercise/getBrankList",payload:G()({},ft)});case 6:n=t.sent,M=null!=n&&n.object_list?Y()(M.concat(null==n?void 0:n.object_list)):M,D(n.is_teacher),(null===(e=n.object_list)||void 0===e?void 0:e.length)50?"block":"none"}})]}),(0,at.jsx)("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red",children:"请输入1-50之间的整数"})]}),okText:"确认",cancelText:"取消",onCancel:wt,onOk:function(){var t=a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(c<1||c>50)){t.next=4;break}return document.getElementById("model_error").style.display="block",t.abrupt("return",Promise.reject());case 4:return h.update({cancelButtonProps:{disabled:!0}}),t.next=7,o({type:"exercise/saveBanks",payload:{course_id:s.coursesId,object_type:"examination_bank",bank_id:_,shixuns_info:l,num:c}});case 7:e=t.sent,h.update({cancelButtonProps:{disabled:!1}}),e&&0===e.status?((0,F.L9)(["教学课堂","试卷","试卷选用"]),U.Z.destroyAll(),o({type:"classroomList/getClassroomExercisesList",payload:G()({},n.actionTabs.params)}),wt(),Pt(),H.ZP.success("生成试卷成功")):(wt(),Pt());case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsxs)(U.Z,{centered:!0,width:980,title:"选择试卷",maskClosable:!1,destroyOnClose:!0,open:"试卷选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",confirmLoading:w,bodyStyle:{minHeight:200},wrapClassName:zl,onOk:a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_.length){t.next=3;break}return H.ZP.error("请选择试卷"),t.abrupt("return");case 3:if(b(!0),e=!1,!1,M.forEach((function(t){_.includes(t.id)&&t.need_authorize&&(e=t.need_authorize),_.includes(t.id)&&t.is_random})),!e){t.next=10;break}return Ba(!1,"该试卷中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"),t.abrupt("return");case 10:i(_[0]),wt(),b(!1);case 13:case"end":return t.stop()}}),t)}))),onCancel:wt,children:[(0,at.jsxs)(De.Z,{activeKey:P,onTabClick:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:V.current.scrollTop=0,M=[],P!==e&&W([]),k(e),ft.page=0,ft.filter=e,ft.group_id=null,g=!0,vt();case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:[(0,at.jsx)(nu,{tab:(0,at.jsx)("span",{children:"我的试卷库"})},"myself"),(0,at.jsx)(nu,{tab:(0,at.jsx)("span",{children:"教研共享"})},"teacher"),(0,at.jsx)(nu,{tab:(0,at.jsx)("span",{children:"公共试卷库"})},"public")]}),(0,at.jsxs)("div",{className:Fl,children:["teacher"===P&&(0,at.jsxs)(Re.default,{value:ft.group_id,onChange:function(t){V.current.scrollTop=0,M=[],ft.page=0,ft.group_id=t,g=!0,W([]),pt(G()({},ft)),vt()},size:"middle",style:{width:200,marginRight:30},children:[(0,at.jsx)(Re.default.Option,{value:null,children:"全部教研团队"}),null==N||null===(e=N.groups)||void 0===e?void 0:e.map((function(t){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.group_id,children:null==t?void 0:t.name},null==t?void 0:t.group_id)}))]}),(0,at.jsx)(rt.Z.Search,{placeholder:"请输入试卷名称进行搜索",value:ft.search,onChange:function(t){ft.search=t.target.value,pt(G()({},ft))},onSearch:function(t){V.current.scrollTop=0,M=[],ft.page=0,g=!0,W([]),t&&(0,eu.tk)({name:t,copywriting:t,position:"Exercise"}),vt()}})]}),(0,at.jsxs)("div",{ref:V,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20},children:[!O&&"public"===P&&(0,at.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,at.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,at.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,at.jsx)(Nl(),{initialLoad:!1,pageStart:0,loadMore:function(){vt()},hasMore:g,useWindow:!1,children:"试卷选用"===n.actionTabs.key&&O&&(0,at.jsx)(Dl,{className:Rl,pagination:!1,hideSelectAll:!0,dataSource:M,onRow:function(t){return{onClick:function(){W([null==t?void 0:t.id])}}},resColumns:ct,rowSelection:yt})})]})]}),(0,at.jsx)(U.Z,{title:"提示",open:J,confirmLoading:!1,centered:!0,okText:"设置规则",cancelText:"修改试卷",footer:(0,at.jsxs)("div",{children:[(0,at.jsx)(K.ZP,{onClick:function(){$(!1),d.history.push(lt)},children:"修改试卷"}),(0,at.jsx)(K.ZP,{type:"primary",onClick:function(){d.history.push(nt),$(!1)},children:"设置规则"})]}),onCancel:function(){$(!1)},children:(0,at.jsx)("p",{children:"试卷创建完成!目前处于未发布状态,是否设置考试规则?"})}),(0,at.jsx)(tu,{inPaper:!0,visible:St,onCancel:Pt,onOk:Ct,renderData:kt,modalType:"multiple",type:"examination_bank"})]})})),ru=n(61621),ou={delay_publish:0,is_public:[!1],description:"",title:"",link:"",publish_time:""},au=(0,d.connect)((function(t){var e=t.attachment,n=t.loading;return{attachment:e,globalSetting:t.globalSetting,loading:n,user:t.user}}))((function(t){var e=t.attachment,n=t.dispatch,i=t.loading,o=t.globalSetting,s=(0,d.useParams)(),u=(e.detail,X.Z.useForm()),c=l()(u,1)[0],f=(0,h.useState)(!1),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)([]),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)(G()({},ou)),S=l()(x,2),P=S[0],k=S[1],C=(0,h.useState)({name:"",filename:"",type:"",className:"",data:"",close:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},disabledDownload:!1,monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),A=l()(C,2),M=A[0],E=A[1];s.id=s.coursesId,s.course_id=s.coursesId;var L=function(){var t=a()(r()().mark((function t(){var i,o,a,l,u,h,d;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={},a="课程内教学课件预览"==(null==e||null===(i=e.actionTabs)||void 0===i||null===(i=i.params)||void 0===i?void 0:i.openType)?G()({},e.actionTabs.params):G()({},s),t.next=4,n({type:"attachment/getDetail",payload:a});case 4:(l=t.sent).delay_publish=l.delay_publish?1:0,P.is_public=[l.is_public],P.description=l.description,P.delay_publish=l.delay_publish,P.publish_time=l.publish_time,c.setFieldsValue(P),b([G()({},l)].concat(Y()(null==l?void 0:l.attachment_histories))),null!=l&&null!==(o=l.attachment_histories)&&void 0!==o&&o.length?m(!0):(M.type=l.file_type,M.data=fi.Z.API_SERVER+l.url,M.recordInfo={id:null==e||null===(u=e.actionTabs)||void 0===u||null===(u=u.selectArrs)||void 0===u?void 0:u.id,course_id:null==e||null===(h=e.actionTabs)||void 0===h||null===(h=h.params)||void 0===h?void 0:h.course_id},"txt"===l.file_type&&(M.monacoEditor.value=l.content),M.disabledDownload=(0,xt.dE)()&&Boolean(null==e||null===(d=e.actionTabs)||void 0===d||null===(d=d.selectArrs)||void 0===d?void 0:d.download_setting),E(G()({},M)));case 13:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,h.useEffect)((function(){var t;"资源下载"===e.actionTabs.key?(s.id=null===(t=e.actionTabs.selectArrs)||void 0===t?void 0:t.id,c.resetFields(),L()):m(!1)}),[e.actionTabs.key,s.id]),(0,h.useEffect)((function(){return function(){E(G()(G()({},M),{},{type:""})),n({type:"attachment/setActionTabs",payload:{}})}}),[]),(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(U.Z,{centered:!0,title:"资源下载",open:g,okText:"确定",destroyOnClose:!0,maskClosable:!1,cancelText:"取消",width:600,onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n({type:"attachment/setActionTabs",payload:{}});case 1:case"end":return t.stop()}}),t)}))),onCancel:function(){k(G()({},ou)),n({type:"attachment/setActionTabs",payload:{}})},children:(0,at.jsx)("section",{className:"pl20 pr20 pt10",children:(0,at.jsxs)(ru.Z,{loading:i["attachment/getDetail"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[(0,at.jsxs)(Q.Z,{align:"middle",justify:"center",style:{background:"#eee"},gutter:[20,8],children:[(0,at.jsx)(J.Z,{flex:"307px",children:"资源名称"}),(0,at.jsx)(J.Z,{flex:"80px",children:"下载"}),(0,at.jsx)(J.Z,{flex:"140px",children:"版本号"})]}),null==w?void 0:w.map((function(t,n){return(0,at.jsxs)(Q.Z,{align:"middle",justify:"center",style:{borderBottom:"1px solid #eaeaea"},gutter:[20,8],children:[(0,at.jsx)(J.Z,{flex:"307px",children:(0,at.jsx)(tt.Z,{title:t.title,children:(0,at.jsxs)(Q.Z,{children:[(0,at.jsx)(J.Z,{children:(0,at.jsx)("a",{href:fi.Z.API_SERVER+t.url,target:"_blank",className:"multi_ellipsis1 c-grey-333 mr5",onClick:function(n){var i;t.link||"application/pdf"===t.content_type||o.setting.is_local||(n.preventDefault(),M.type=t.file_type,M.data=fi.Z.API_SERVER+t.url,"txt"===t.file_type&&(M.monacoEditor.value=t.content),M.disabledDownload=(0,xt.dE)()&&Boolean(null==e||null===(i=e.actionTabs)||void 0===i||null===(i=i.selectArrs)||void 0===i?void 0:i.download_setting),E(G()({},M)))},children:t.title})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)(Oe,{className:"",color:0===n?"green":"orange",children:0===n?"当前版本":"历史版本"})})]})})}),(0,at.jsx)(J.Z,{flex:"80px",children:t.downloads_count}),(0,at.jsx)(J.Z,{flex:"140px",children:nn()(t.created_on).format("YYYY-MM-DD HH:mm")})]},n)}))]})})}),(0,at.jsx)(dn.Z,G()(G()({},M),{},{onClose:function(){E(G()(G()({},M),{},{type:""})),n({type:"attachment/setActionTabs",payload:{}})}}))]})})),su=["pathsDetail","user","loading","dispatch","classroomList"],lu=function(t){return t.All="",t.Shixun="shixun",t.VideoItem="video",t.Attachment="attachment",t.group_count="group_homework",t.normal_count="normal_homework",t.ExaminationBank="exercise",t.HomeworkCommon="hack_homework",t.Discusses="Discusses",t.Challenge="challenge",t}(lu||{}),uu=(0,d.connect)((function(t){var e=t.pathsDetail,n=t.user,i=t.loading,r=t.classroomList;return{pathsDetail:e,user:n,loading:i.effects,classroomList:r}}))((function(t){var e,n,i,o,s,u=t.pathsDetail,f=t.user,p=t.loading,g=t.dispatch,m=t.classroomList,v=(c()(t,su),null===(e=(0,F.cV)())||void 0===e||e.url,(null===(n=(0,F.cV)())||void 0===n?void 0:n.conversable_id)||""),y=((0,d.useParams)(),u.stageData),w=u.visibleType,b=void 0===w?"All":w,x=u.keywords,S=u.editKey,P=null==u?void 0:u.detail,k=P.shixuns_count,C=void 0===k?0:k,A=P.videos_count,M=void 0===A?0:A,E=P.attachment_count,L=void 0===E?0:E,T=P.chapter_statis,N=P.group_count,j=void 0===N?0:N,I=P.normal_count,B=void 0===I?0:I,O=(P.disscuss_count,P.banks_count),D=void 0===O?0:O,R=P.hack_count,z=void 0===R?0:R,U=(0,h.useState)([]),Z=l()(U,2),V=Z[0],Y=Z[1],X=(0,h.useState)({content:"",type:""}),q=l()(X,2),K=q[0],Q=q[1],J=(0,h.useState)([]),$=l()(J,2),tt=$[0],et=($[1],(0,h.useState)("All")),nt=l()(et,2),it=nt[0],rt=nt[1],ot=(0,h.useState)(""),st=l()(ot,2),ut=st[0],ct=st[1],ht=St(lt.CI,{}),dt=l()(ht,3),ft=(dt[1],dt[2],null!==(i=u.detail)&&void 0!==i&&i.can_managed,[{name:"全部",type:"All",number:C+M+L+j+B+D+z+((null==T?void 0:T.challenge_count)||0),isShow:!0},{name:"实践项目",type:"Shixun",number:C,isShow:C>0},{name:"视频",type:"VideoItem",number:M,isShow:M>0},{name:"课件",type:"Attachment",number:L,isShow:L>0},{name:"关卡",type:"Challenge",number:null==T?void 0:T.challenge_count,isShow:(null==T?void 0:T.challenge_count)>0},{name:"分组作业",type:"group_count",number:j,isShow:!(0,xt.JA)()&&j>0},{name:"图文作业",type:"normal_count",number:B,isShow:!(0,xt.JA)()&&B>0},{name:"编程作业",type:"HomeworkCommon",number:z,isShow:!(0,xt.JA)()&&z>0},{name:"测验",type:"ExaminationBank",number:D,isShow:!(0,xt.JA)()&&D>0}].filter((function(t){return t.isShow}))),pt=function(){var t=a()(r()().mark((function t(){var e,n=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,g({type:"pathsDetail/getStageData",payload:G()(G()({tab:lu[b]},e),{},{subject_id:v,keywords:x})});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),gt=function(){var t=a()(r()().mark((function t(){var e,n,i,o=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==(e=o.length>0&&void 0!==o[0]?o[0]:{})||!e.stage_id){t.next=7;break}return t.next=4,g({type:"pathsDetail/getStageChildrenData",payload:{id:null==e?void 0:e.stage_id,type:"stage",keywords:x,tab:lu[b]}});case 4:n=t.sent,i=V.map((function(t){var i;return t.stage_id==(null==e?void 0:e.stage_id)?G()(G()(G()({},t),e),{},{items:null===(i=n.data)||void 0===i?void 0:i.items}):t})),g({type:"pathsDetail/save",payload:{stageData:i}});case 7:g({type:"pathsDetail/getPathsDetail",payload:{id:v}});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),mt=(0,h.useMemo)((function(){return null==V?void 0:V.map((function(t,e){return(0,at.jsx)("div",{children:(0,at.jsx)(Es,{val:t,allData:V,index:e,selectExercise:function(t){ct(null==t?void 0:t.stage_id),g({type:"exercise/setActionTabs",payload:{key:"试卷选用"}})},openPreview:function(t){var e,n;null!=t&&t.container_id?g({type:"attachment/setActionTabs",payload:{key:"资源下载",selectArrs:null==t?void 0:t.attachment_detail,params:{course_id:null==t?void 0:t.container_id,coursesId:null==t?void 0:t.container_id,id:null==t?void 0:t.id,openType:"课程内教学课件预览"}}}):Q({content:fi.Z.API_SERVER+(null==t||null===(e=t.attachment_detail)||void 0===e?void 0:e.url),type:null==t||null===(n=t.attachment_detail)||void 0===n?void 0:n.file_type})},visibleTypeNew:it,UpdataStageChildrenData:gt,getData:gt})},e)}))}),[V,it]);return(0,h.useEffect)((function(){Y(y)}),[y]),(0,h.useEffect)((function(){console.log(555)}),[]),(0,h.useEffect)((function(){"closePathsTabs"==m.actionTabs.key&>({stage_id:ut||(null==u?void 0:u.stage_id)})}),[m.actionTabs.key]),(0,at.jsxs)("section",{children:[(0,at.jsxs)(_.Z,{spinning:p["pathsDetail/getStageChildrenData"]||p["pathsDetail/getStageData"]||p["pathsDetail/getPathsDetail"],children:[(0,at.jsx)("aside",{className:W.actionTabs,children:ft.map((function(t,e){return(0,at.jsxs)("div",{className:"".concat(t.type===b?W.tabActive:W.tab),onClick:function(){-1===S?("group_count"==t.type||"normal_count"==t.type?rt("SubjectHomework"):rt(t.type),"Discusses"!==t.type&&pt({tab:lu[t.type]}),g({type:"pathsDetail/save",payload:{visibleType:t.type,editKey:-1}})):H.ZP.warning("请先取消编辑状态")},children:[(0,at.jsx)("span",{className:W.s1,children:t.name}),(0,at.jsx)("span",{className:W.s2,children:t.number})]},e)}))}),"Discusses"!==b&&(0,at.jsxs)(at.Fragment,{children:[mt,0===(null==V?void 0:V.length)&&(0,at.jsx)(Ve.Z,{styles:{backgroundColor:"#fff",padding:"100px 0",margin:"20px auto"}})]}),"Discusses"===b&&(0,at.jsx)("aside",{className:"mt20",children:(0,at.jsx)(Qs,{activeIndex:3,isDelete:null===(o=u.detail)||void 0===o?void 0:o.allow_add_member,shixunIdentifier:11,identity:null===(s=f.userInfo)||void 0===s?void 0:s.role,user:f.userInfo,isShixunDetail:!0,keywords:x,refreshCount:function(){g({type:"pathsDetail/getPathsDetail",payload:{id:v,keywords:x}})}})})]}),(0,at.jsx)(pl,{}),(0,at.jsx)(kt,{shixunIds:tt,cb:function(t){var e;"取消"!==t&>({stage_id:null==m||null===(e=m.actionTabs)||void 0===e?void 0:e.id})}}),(0,at.jsx)(Pl,{}),(0,at.jsx)(Cl,{}),(0,at.jsx)(Ml,{}),(0,at.jsx)(Ll,{}),(0,at.jsx)(iu,{saveExercise:function(t){(0,lt._C)({id:ut,subject_id:v,homework_type:"exercise",examination_bank_ids:[t]}).then((function(t){0==(null==t?void 0:t.status)&&(H.ZP.success("选用成功"),gt({stage_id:ut||(null==u?void 0:u.stage_id)}))}))}}),(0,at.jsx)(au,{}),(0,at.jsx)(dn.Z,{close:!0,data:null==K?void 0:K.content,type:null==K?void 0:K.type,hasMask:!0,monacoEditor:{language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){Q({content:"",type:""})}})]})})),cu=["homePage","loading","globalSetting","user","dispatch","location","pathsDetail"],hu=[{img:n(20828),name:"视频资源",content:"平台提供课程讲解视频、实验演示视频、习题讲解视频、知识点总结视频等多种类型的视频资料。"},{img:n(13129),name:"课件文档",content:"平台提供 PPT、PDF、Word 等多种格式的课件文档,方便教师根据实际需求进行使用。"},{img:n(99127),name:"数据集",content:"提供丰富的数据集,涵盖图像、文本、语音等多种类型"},{img:n(4575),name:"试题",content:"平台提供选择题、填空题、判断题、多选题、编程题、简答题、组合题、程序设计题等多种题型,满足不同的练习需求。"}],du=[{img:n(67836),name:"教师备课",content:"为学生提供 7*24 小时在线答疑服务解答学习疑问,提供学习建议"},{img:n(48739),name:"课堂教学",content:"教师可以利用平台资源进行课堂AI教学,增强课堂互动性和趣味性"},{img:n(3647),name:"自主学习",content:"学生可以基于平台资源个性化推荐资源自主学习,拓展知识面,提升学习效率"}],fu=(0,d.connect)((function(t){return{loading:t.loading,globalSetting:t.globalSetting,user:t.user,homePage:t.homePage,pathsDetail:t.pathsDetail}}))((function(t){var e,i,o=t.homePage,s=(t.loading,t.globalSetting,t.user,t.dispatch),u=(t.location,t.pathsDetail),d=(c()(t,cu),(0,h.useState)(0)),z=l()(d,2),G=z[0],U=z[1],H=(0,h.useState)(0),_=l()(H,2),Z=_[0],W=_[1],V=(0,h.useState)(null),Y=l()(V,2),X=(Y[0],Y[1],(0,h.useState)(!1)),q=l()(X,2),K=(q[0],q[1],(0,h.useState)("Subject"===(0,F.cV)().questionable_type?1:2)),Q=l()(K,2),J=Q[0],$=Q[1],tt=null==u?void 0:u.detail,et=tt.shixuns_count,nt=void 0===et?0:et,it=tt.videos_count,rt=void 0===it?0:it,ot=tt.attachment_count,st=void 0===ot?0:ot,lt=tt.chapter_statis,ut=tt.group_count,ct=void 0===ut?0:ut,ht=tt.normal_count,dt=void 0===ht?0:ht,ft=(tt.disscuss_count,tt.banks_count),pt=void 0===ft?0:ft,gt=tt.hack_count,mt=void 0===gt?0:gt;(0,h.useEffect)((function(){s({type:"homePage/home",payload:{}})}),[]),(0,h.useEffect)((function(){vt()}),[]);var vt=function(){var t=a()(r()().mark((function t(){var e,n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("Subject"===(0,F.cV)().questionable_type){t.next=2;break}return t.abrupt("return");case 2:return n=null===(e=(0,F.cV)())||void 0===e?void 0:e.conversable_id,t.next=5,s({type:"pathsDetail/getPathsDetail",payload:{id:n}});case 5:return i=t.sent,t.next=8,s({type:"pathsDetail/getStageData",payload:{subject_id:n,show_course_section:null==i?void 0:i.show_course_section}});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),yt=(null==o||null===(e=o.shixun_demo)||void 0===e?void 0:e.length)>0?null==o?void 0:o.shixun_demo.filter((function(t){return"智能助教"!==t.name&&"智能课程"!==t.name})):[],wt="Subject"===(0,F.cV)().questionable_type?[{id:1,name:"本课程智慧资源概览"},{id:0,name:"智慧资源开发环境"},{id:2,name:"智慧资源简介"}]:[{id:2,name:"智慧资源简介"}],bt=[{img:n(20614),name:"资源总数",count:nt+rt+st+ct+dt+pt+mt+((null==lt?void 0:lt.challenge_count)||0)},{img:n(16702),name:"实践项目数",count:nt},{img:n(1426),name:"视频数",count:rt},{img:n(70521),name:"课件",count:st},{img:n(72838),name:"作业数",count:ct+dt+mt},{img:n(45787),name:"测验数",count:pt}];return(0,at.jsx)("div",{className:k,children:(0,at.jsxs)("div",{className:C,children:[(0,at.jsx)(R.Z,{title:"智慧资源",subTitle:"汇聚海量资源,打造智慧教育生态"}),(0,at.jsx)(D.Z,{dataSource:wt,className:"mt20",value:J,onChange:function(t){var e,n;0===t?(0,F.xg)((null===(e=(0,F.cV)())||void 0===e?void 0:e.url)+"/paths/".concat(null===(n=(0,F.cV)())||void 0===n?void 0:n.conversable_id,"?skipSource=ai")):$(t)}}),1===J&&(0,at.jsxs)("div",{className:I,children:[(0,at.jsx)("div",{className:B,children:bt.map((function(t){return(0,at.jsxs)("aside",{children:[(0,at.jsx)("img",{src:t.img}),(0,at.jsx)("div",{className:"font16 c-grey-666 mt20 mb6",children:t.name}),(0,at.jsx)("b",{className:"font24 c-grey-333",children:t.count})]})}))}),(0,at.jsx)("div",{className:O,children:(0,at.jsx)(uu,{keywords:""})})]}),2===J&&(0,at.jsxs)("div",{children:[(0,at.jsxs)("div",{style:{marginTop:30,display:"flex",border:"1px solid #E7EEFF",borderRadius:20},children:[(0,at.jsxs)("div",{className:A,children:[(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:v,children:"实验资源"}),(0,at.jsx)("div",{className:f,style:{width:80,marginTop:24},children:yt.map((function(t,e){return(0,at.jsx)("div",{className:"".concat(p," ").concat(G===e?g:""),onClick:function(){return U(e)},children:null==t?void 0:t.name},e)}))})]}),(0,at.jsx)("div",{className:m,children:(0,at.jsx)("video",{src:null===(i=yt[G])||void 0===i?void 0:i.video,controls:!0,autoPlay:!0,controlsList:"nodownload",onEnded:function(){U(G+1>=yt.length?0:G+1)},style:{width:"100%",height:"100%",objectFit:"fill"}})})]}),(0,at.jsxs)("div",{className:M,children:[(0,at.jsx)("div",{className:E,children:"智慧资源,赋能教育创新未来"}),(0,at.jsx)("div",{className:L,children:"人工智能与智慧资源的深度融合,基于学生学习数据和行为分析,精准推荐个性化学习资源,实时评估学习进度并提供个性化建议,帮助学生查漏补缺。同时提供在线答疑服务,即时解答学生疑问,打造高效、智能的学习体验。"})]})]}),(0,at.jsxs)("div",{style:{marginTop:20,display:"flex"},children:[(0,at.jsxs)("div",{className:N,style:{width:552},children:[(0,at.jsxs)("div",{style:{display:"flex"},children:[(0,at.jsx)("div",{className:T,style:{flex:1},children:"学习资源"}),(0,at.jsx)("div",{className:"flex item-center",style:{height:32},children:hu.map((function(t,e){return(0,at.jsx)("div",{className:"".concat(y," ").concat(Z===e?w:""),onClick:function(){return W(e)},children:t.name},e)}))})]}),(0,at.jsxs)("div",{className:j,children:[(0,at.jsx)("img",{src:hu[Z].img}),(0,at.jsx)("div",{style:{marginTop:17,color:"#191919",fontSize:14},children:hu[Z].content})]})]}),(0,at.jsxs)("div",{className:N,style:{width:428,marginLeft:20},children:[(0,at.jsx)("div",{className:T,children:"应用场景"}),(0,at.jsx)("div",{style:{marginTop:20},children:du.map((function(t,e){return(0,at.jsxs)("div",{className:b,children:[(0,at.jsx)("img",{src:t.img,width:114,height:84}),(0,at.jsxs)("div",{className:S,children:[(0,at.jsx)("div",{className:x,children:t.name}),(0,at.jsx)("div",{className:P,children:t.content})]})]},e)}))})]})]})]})]})})}))},8944:function(){},93125:function(t,e,n){var i;i=function(){return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return r(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o=void 0,a=0;a0?e["Content-Type"]=t.mime:e["Content-Type"]=d.getType(t.mime||c.extname(t.object||""))||"application/octet-stream"),t.content&&(e["Content-Md5"]=u.createHash("md5").update(new i(t.content,"utf8")).digest("base64"),e["Content-Length"]||(e["Content-Length"]=t.content.length));var n=this._getResource(t);e.authorization=this.authorization(t.method,n,t.subres,e);var r=this._getReqUrl(t);l("request %s %s, with headers %j, !!stream: %s",t.method,r,e,!!t.stream);var o=t.timeout||this.options.timeout;return{url:r,params:{agent:this.agent,method:t.method,content:t.content,stream:t.stream,headers:e,timeout:o,writeStream:t.writeStream,customResponse:t.customResponse,ctx:t.ctx||this.ctx}}},E.request=a.default.mark((function t(e){var n,i,r,o;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.createRequest(e),i=void 0,r=void 0,t.prev=3,t.next=6,this.urllib.request(n.url,n.params);case 6:i=t.sent,l("response %s %s, got %s, headers: %j",e.method,n.url,i.status,i.headers),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),r=t.t0;case 13:if(o=void 0,!i||!e.successStatuses||-1!==e.successStatuses.indexOf(i.status)){t.next=26;break}return t.next=17,this.requestError(i);case 17:if("RequestTimeTooSkewed"!==(o=t.sent).code){t.next=23;break}return this.options.amendTimeSkewed=+new Date(o.serverTime)-new Date,t.next=22,this.request(e);case 22:return t.abrupt("return",t.sent);case 23:o.params=e,t.next=30;break;case 26:if(!r){t.next=30;break}return t.next=29,this.requestError(r);case 29:o=t.sent;case 30:if(!o){t.next=32;break}throw o;case 32:if(!e.xmlResponse){t.next=36;break}return t.next=35,this.parseXML(i.data);case 35:i.data=t.sent;case 36:return t.abrupt("return",i);case 37:case"end":return t.stop()}}),t,this,[[3,10]])})),E._getResource=function(t){var e="/";return t.bucket&&(e+=t.bucket+"/"),t.object&&(e+=t.object),e},E._isIP=function(t){return A._isIP(t)},E._escape=function(t){return b.encodeURIComponent(t).replace(/%2F/g,"/")},E._getReqUrl=function(t){var e={};h(this.options.endpoint).to(e);var n=this._isIP(e.hostname),i=this.options.cname;!t.bucket||i||n||(e.host=t.bucket+"."+e.host);var r="/";t.bucket&&n&&(r+=t.bucket+"/"),t.object&&(r+=this._escape(t.object).replace(/\+/g,"%2B")),e.pathname=r;var o={};if(t.query&&m(o,t.query),t.subres){var a={};y.string(t.subres)?a[t.subres]="":y.array(t.subres)?t.subres.forEach((function(t){a[t]=""})):a=t.subres,m(o,a)}return e.query=o,v.format(e)},E._getUserAgent=function(){var t="aliyun-sdk-"+(n&&n.browser?"js":"nodejs")+"/"+S.version,e=w.description;return!e&&n&&(e="Node.js "+n.version.slice(1)+" on "+n.platform+" "+n.arch),this._checkUserAgent(t+" "+e)},E._checkUserAgent=function(t){return t.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},E.checkBrowserAndVersion=function(t,e){return k.name===t&&k.version.split(".")[0]===e},E.parseXML=function(t){return function(e){i.isBuffer(t)&&(t=t.toString()),f.parseString(t,{explicitRoot:!1,explicitArray:!1},e)}},E.requestError=a.default.mark((function t(e){var n,i,r,o;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,e.data&&e.data.length){t.next=5;break}-1===e.status||-2===e.status?((n=new Error(e.message)).name=e.name,n.status=e.status,n.code=e.name):(404===e.status?((n=new Error("Object not exists")).name="NoSuchKeyError",n.status=404,n.code="NoSuchKey"):412===e.status?((n=new Error("Pre condition failed")).name="PreconditionFailedError",n.status=412,n.code="PreconditionFailed"):((n=new Error("Unknow error, status: "+e.status)).name="UnknowError",n.status=e.status),n.requestId=e.headers["x-oss-request-id"],n.host=""),t.next=30;break;case 5:return i=String(e.data),l("request response error data: %s",i),r=void 0,t.prev=8,t.next=11,this.parseXML(i)||{};case 11:r=t.sent,t.next=21;break;case 14:return t.prev=14,t.t0=t.catch(8),l(i),t.t0.message+="\nraw xml: "+i,t.t0.status=e.status,t.t0.requestId=e.headers["x-oss-request-id"],t.abrupt("return",t.t0);case 21:o=r.Message||"unknow request error, status: "+e.status,r.Condition&&(o+=" (condition: "+r.Condition+")"),(n=new Error(o)).name=r.Code?r.Code+"Error":"UnknowError",n.status=e.status,n.code=r.Code,n.requestId=r.RequestId,n.hostId=r.HostId,n.serverTime=r.ServerTime;case 30:return l("generate error %j",n),t.abrupt("return",n);case 32:case"end":return t.stop()}}),t,this,[[8,14]])}))}).call(this,t("_process"),t("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(this instanceof r))return new r(t,e);f.call(this,e),this.file=t,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var o=i(t("babel-runtime/core-js/array/from")),a=i(t("babel-runtime/regenerator")),s=t("is-type-of"),l=t("util"),u=t("path"),c=t("mime"),h=t("copy-to"),d=n;d.multipartUpload=a.default.mark((function t(e,n,i){var r,o,l,h,d,f,p,g,m;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.resetCancelFlag(),!(i=i||{}).checkpoint||!i.checkpoint.uploadId){t.next=6;break}return t.next=5,this._resumeMultipart(i.checkpoint,i);case 5:case 38:return t.abrupt("return",t.sent);case 6:return r=102400,i.mime||(s.file(n)?i.mime=c.getType(u.extname(n.name)):s.blob(n)?i.mime=n.type:i.mime=c.getType(u.extname(n))),i.headers=i.headers||{},this._convertMetaToHeaders(i.meta,i.headers),t.next=12,this._getFileSize(n);case 12:if(!((o=t.sent)0&&h(u).to(d),f=this._divideParts(r,s),p=f.length,g=!1,m=a.default.mark((function t(r,o){var s,h,m;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.isCancel()){t.next=21;break}return t.prev=1,s=f[o-1],h={stream:r._createStream(i,s.start,s.end),size:s.end-s.start},t.next=6,r._uploadPart(c,l,o,h);case 6:if(m=t.sent,r.isCancel()||g){t.next=13;break}if(e.doneParts.push({number:o,etag:m.res.headers.etag}),d.push({number:o,etag:m.res.headers.etag}),!n||!n.progress){t.next=13;break}return t.next=13,n.progress(u.length/p,e,m.res);case 13:t.next=21;break;case 15:if(t.prev=15,t.t0=t.catch(1),r.isCancel()){t.next=21;break}throw r.cancel(),t.t0.partNum=o,t.t0;case 21:case"end":return t.stop()}}),t,this,[[1,15]])})),v=(0,o.default)(new Array(p),(function(t,e){return e+1})),y=d.map((function(t){return t.number})),w=v.filter((function(t){return y.indexOf(t)<0})),b=n.parallel||5,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==b){t.next=26;break}x=0;case 16:if(!(x0)){t.next=37;break}throw this.resetCancelFlag(),(C=k[0]).message="Failed to upload some parts with error: "+C.toString()+" part_num: "+C.partNum,C;case 37:if(!this.isCancel()){t.next=40;break}throw S=null,this._makeCancelEvent();case 40:return t.next=42,this.completeMultipartUpload(c,l,d,n);case 42:return t.abrupt("return",t.sent);case 43:case"end":return t.stop()}}),t,this)})),s.file=function(t){return"undefined"!=typeof File&&t instanceof File},s.blob=function(t){return"undefined"!=typeof Blob&&t instanceof Blob},d._getFileSize=a.default.mark((function t(e){var n;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!s.buffer(e)){t.next=4;break}return t.abrupt("return",e.length);case 4:if(!s.blob(e)&&!s.file(e)){t.next=6;break}return t.abrupt("return",e.size);case 6:if(!s.string(e)){t.next=11;break}return t.next=9,this._statFile(e);case 9:return n=t.sent,t.abrupt("return",n.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return t.stop()}}),t,this)}));var f=t("stream").Readable;l.inherits(r,f),r.prototype.readFileAndPush=function(t){if(this.fileBuffer)for(var e=!0;e&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:i,this.start=i,e=this.push(this.fileBuffer.slice(n,i))}},r.prototype._read=function(t){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);t=t||16384;var n=this;this.reader.onload=function(i){n.fileBuffer=new e(new Uint8Array(i.target.result)),n.file=null,n.readFileAndPush(t)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(t)},d._createStream=function(t,e,n){if(s.blob(t)||s.file(t))return new r(t.slice(e,n));throw new Error("_createStream requires File/String.")},d._getPartSize=function(t,e){return e?Math.max(Math.ceil(t/1e4),e):1048576},d._divideParts=function(t,e){for(var n=Math.ceil(t/e),i=[],r=0;rtrue\n":i+=" false\n",r=0;r"+s.escape(this._objectName(e[r]))+"\n";return a("delete multi objects: %s",i+=""),n.subres="delete",(l=this._objectRequestParams("POST","",n)).mime="xml",l.content=i,l.xmlResponse=!0,l.successStatuses=[200],t.next=14,this.request(l);case 14:return u=t.sent,c=u.data,(h=c&&c.Deleted||null)&&(Array.isArray(h)||(h=[h]),h=h.map((function(t){return t.Key}))),t.abrupt("return",{res:u.res,deleted:h});case 19:case"end":return t.stop()}}),t,this)})),m.copy=o.default.mark((function t(e,n,i){var a,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=i||{}).headers=i.headers||{},(0,r.default)(i.headers).forEach((function(t){i.headers["x-oss-copy-source-"+t.toLowerCase()]=i.headers[t]})),i.meta&&(i.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(i.meta,i.headers),n="/"!==n[0]?"/"+this.options.bucket+"/"+encodeURIComponent(n):"/"+encodeURIComponent(n.slice(1)),i.headers["x-oss-copy-source"]=n,(a=this._objectRequestParams("PUT",e,i)).xmlResponse=!0,a.successStatuses=[200,304],t.next=12,this.request(a);case 12:return s=t.sent,(l=s.data)&&(l={etag:l.ETag,lastModified:l.LastModified}),t.abrupt("return",{data:l,res:s.res});case 16:case"end":return t.stop()}}),t,this)})),m.putMeta=o.default.mark((function t(e,n,i){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.copy(e,e,{meta:n||{},timeout:i&&i.timeout,ctx:i&&i.ctx});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})),m.list=o.default.mark((function t(e,n){var i,r,a,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=this._objectRequestParams("GET","",n)).query=e,i.xmlResponse=!0,i.successStatuses=[200],t.next=6,this.request(i);case 6:return r=t.sent,a=r.data.Contents,s=this,a&&(Array.isArray(a)||(a=[a]),a=a.map((function(t){return{name:t.Key,url:s._objectUrl(t.Key),lastModified:t.LastModified,etag:t.ETag,type:t.Type,size:Number(t.Size),storageClass:t.StorageClass,owner:{id:t.Owner.ID,displayName:t.Owner.DisplayName}}}))),(l=r.data.CommonPrefixes||null)&&(Array.isArray(l)||(l=[l]),l=l.map((function(t){return t.Prefix}))),t.abrupt("return",{res:r.res,objects:a,prefixes:l,nextMarker:r.data.NextMarker||null,isTruncated:"true"===r.data.IsTruncated});case 13:case"end":return t.stop()}}),t,this)})),m.putACL=o.default.mark((function t(e,n,i){var r,a;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=i||{}).subres="acl",i.headers=i.headers||{},i.headers["x-oss-object-acl"]=n,e=this._objectName(e),(r=this._objectRequestParams("PUT",e,i)).successStatuses=[200],t.next=9,this.request(r);case 9:return a=t.sent,t.abrupt("return",{res:a.res});case 11:case"end":return t.stop()}}),t,this)})),m.getACL=o.default.mark((function t(e,n){var i,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=n||{}).subres="acl",e=this._objectName(e),(i=this._objectRequestParams("GET",e,n)).successStatuses=[200],i.xmlResponse=!0,t.next=8,this.request(i);case 8:return r=t.sent,t.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 10:case"end":return t.stop()}}),t,this)})),m.restore=o.default.mark((function t(e,n){var i,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=n||{}).subres="restore",(i=this._objectRequestParams("POST",e,n)).successStatuses=[202],t.next=6,this.request(i);case 6:return r=t.sent,t.abrupt("return",{res:r.res});case 8:case"end":return t.stop()}}),t,this)})),m.signatureUrl=function(t,e){e=e||{},t=this._objectName(t),e.method=e.method||"GET";var n=s.timestamp()+(e.expires||1800),i={bucket:this.options.bucket,object:t},r=this._getResource(i);this.options.stsToken&&(e["security-token"]=this.options.stsToken);var o=g._signatureForURL(this.options.accessKeySecret,e,r,n),a=c.parse(this._getReqUrl(i));return a.query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:o.Signature},h(o.subResource).to(a.query),a.format()},m.getObjectUrl=function(t,e){return e?"/"!==e[e.length-1]&&(e+="/"):e=this.options.endpoint.format(),e+this._escape(this._objectName(t))},m._objectUrl=function(t){return this._getReqUrl({bucket:this.options.bucket,object:t})},m.generateObjectUrl=function(t,e){if(e)"/"!==e[e.length-1]&&(e+="/");else{e=this.options.endpoint.format();var n=c.parse(e),i=this.options.bucket;n.hostname=i+"."+n.hostname,n.host=i+"."+n.host,e=n.format()}return e+this._escape(this._objectName(t))},m._objectRequestParams=function(t,e,n){if(!this.options.bucket)throw new Error("Please create a bucket first");n=n||{};var i={object:e=this._objectName(e),bucket:this.options.bucket,method:t,subres:n&&n.subres,timeout:n&&n.timeout,ctx:n&&n.ctx};return n.headers&&(i.headers={},h(n.headers).to(i.headers)),i},m._objectName=function(t){return t.replace(/^\/+/,"")},m._statFile=function(t){return function(e){l.stat(t,e)}},m._convertMetaToHeaders=function(t,e){t&&(0,r.default)(t).forEach((function(n){e["x-oss-meta-"+n]=t[n]}))},m._deleteFileSafe=function(t){return function(e){l.exists(t,(function(n){n?l.unlink(t,(function(n){n&&a("unlink %j error: %s",t,n),e()})):e()}))}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(t,e,n){"use strict";n.version="5.3.1"},{}],6:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){return t&&"function"==typeof t.next&&"function"==typeof t.throw}function o(t){if(!t)return!1;var e=t.constructor;return!!e&&("GeneratorFunction"===e.name||"GeneratorFunction"===e.displayName||r(e.prototype)||r(t.prototype))}function a(t,e){var n=new t(e),i=(0,u.default)(n),r=(0,u.default)((0,l.default)(n));i.concat(r).forEach((function(t){o(n[t])?this[t]=c.wrap(n[t]).bind(n):this[t]=n[t]}),this)}function s(t){if(!(this instanceof s))return new s(t);a.call(this,h,t)}var l=i(t("babel-runtime/core-js/object/get-prototype-of")),u=i(t("babel-runtime/core-js/object/keys")),c=t("co"),h=t("./client");e.exports=s,s.STS=function t(e){if(!(this instanceof t))return new t(e);a.call(this,h.STS,e)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/object/keys")),o=i(t("babel-runtime/core-js/json/stringify"));n.encodeCallback=function(t,n){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&n.callback){var i={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(i.callbackHost=n.callback.host),n.callback.contentType&&(i.callbackBodyType=n.callback.contentType);var a=new e((0,o.default)(i)).toString("base64");if(t.headers["x-oss-callback"]=a,n.callback.customValue){var s={};(0,r.default)(n.callback.customValue).forEach((function(t){s["x:"+t]=n.callback.customValue[t]})),t.headers["x-oss-callback-var"]=new e((0,o.default)(s)).toString("base64")}}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/regenerator")),r=t("copy-to"),o=t("./callback"),a=n;a.listUploads=i.default.mark((function t(e,n){var o,a,s,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={},r(n=n||{}).to(o),o.subres="uploads",(a=this._objectRequestParams("GET","",o)).query=e,a.xmlResponse=!0,a.successStatuses=[200],t.next=10,this.request(a);case 10:return s=t.sent,l=s.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map((function(t){return{name:t.Key,uploadId:t.UploadId,initiated:t.Initiated}})),t.abrupt("return",{res:s.res,uploads:l,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:"true"===s.data.IsTruncated});case 15:case"end":return t.stop()}}),t,this)})),a.listParts=i.default.mark((function t(e,n,o,a){var s,l,u;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s={},r(a=a||{}).to(s),s.subres={uploadId:n},(l=this._objectRequestParams("GET",e,s)).query=o,l.xmlResponse=!0,l.successStatuses=[200],t.next=10,this.request(l);case 10:return u=t.sent,t.abrupt("return",{res:u.res,uploadId:u.data.UploadId,bucket:u.data.Bucket,name:u.data.Key,partNumberMarker:u.data.PartNumberMarker,nextPartNumberMarker:u.data.NextPartNumberMarker,maxParts:u.data.MaxParts,isTruncated:u.data.IsTruncated,parts:u.data.Part||[]});case 12:case"end":return t.stop()}}),t,this)})),a.abortMultipartUpload=i.default.mark((function t(e,n,o){var a,s,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.cancel(),a={},r(o=o||{}).to(a),a.subres={uploadId:n},(s=this._objectRequestParams("DELETE",e,a)).successStatuses=[204],t.next=9,this.request(s);case 9:return l=t.sent,t.abrupt("return",{res:l.res});case 11:case"end":return t.stop()}}),t,this)})),a.initMultipartUpload=i.default.mark((function t(e,n){var o,a,s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={},r(n=n||{}).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(n.meta,o.headers),o.subres="uploads",(a=this._objectRequestParams("POST",e,o)).mime=n.mime,a.xmlResponse=!0,a.successStatuses=[200],t.next=12,this.request(a);case 12:return s=t.sent,t.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return t.stop()}}),t,this)})),a.uploadPart=i.default.mark((function t(e,n,r,o,a,s,l){var u;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u={stream:this._createStream(o,a,s),size:s-a},t.next=3,this._uploadPart(e,n,r,u,l);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})),a.completeMultipartUpload=i.default.mark((function t(e,n,a,s){var l,u,c,h,d,f,p,g;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(l=a.concat().sort((function(t,e){return t.number-e.number})).filter((function(t,e,n){return!e||t.number!==n[e-1].number})),u='\n\n',c=0;c\n",u+=""+h.number+"\n",u+=""+h.etag+"\n",u+="\n";return u+="",d={},r(s=s||{}).to(d),d.subres={uploadId:n},f=this._objectRequestParams("POST",e,d),o.encodeCallback(f,d),f.mime="xml",f.content=u,f.headers&&f.headers["x-oss-callback"]||(f.xmlResponse=!0),f.successStatuses=[200],t.next=16,this.request(f);case 16:return p=t.sent,g={res:p.res,bucket:f.bucket,name:e,etag:p.res.headers.etag},f.headers&&f.headers["x-oss-callback"]&&(g.data=JSON.parse(p.data.toString())),t.abrupt("return",g);case 20:case"end":return t.stop()}}),t,this)})),a._uploadPart=i.default.mark((function t(e,n,o,a,s){var l,u,c;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l={},r(s=s||{}).to(l),l.headers={"Content-Length":a.size},l.subres={partNumber:o,uploadId:n},(u=this._objectRequestParams("PUT",e,l)).mime=l.mime,u.stream=a.stream,u.successStatuses=[200],t.next=11,this.request(u);case 11:return c=t.sent,a.stream=null,u.stream=null,t.abrupt("return",{name:e,etag:c.res.headers.etag,res:c.res});case 15:case"end":return t.stop()}}),t,this)}))},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/json/stringify")),o=i(t("babel-runtime/core-js/object/keys")),a=t("./../../shims/crypto/crypto.js"),s=t("is-type-of");n.buildCanonicalizedResource=function(t,e){var n=""+t,i="?";return s.string(e)&&""!==e.trim()?n+=i+e:s.array(e)?(e.sort(),n+=i+e.join("&")):e&&(0,o.default)(e).sort((function(t,e){return t[0]>e[0]?1:t[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function o(t,e,n){for(var i,o=[],a=e;a0?r-4:r,h=0;h>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[u++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,r=[],s=0,l=n-i;sl?l:s+16383));return 1===i?(e=t[n-1],r.push(a[e>>2]+a[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),r.join("")};for(var a=[],s=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,h=u.length;c1&&n[1]||""}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(t)&&/android/i.test(t),s=/nexus\s*[0-6]\s*/i.test(t),l=!s&&/nexus\s*[0-9]+/i.test(t),u=/CrOS/.test(t),c=/silk/i.test(t),h=/sailfish/i.test(t),d=/tizen/i.test(t),f=/(web|hpw)os/i.test(t),p=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!p&&/windows/i.test(t)),m=!r&&!c&&/macintosh/i.test(t),v=!a&&!h&&!d&&!f&&/linux/i.test(t),y=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=e(/version\/(\d+(\.\d+)?)/i),b=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!b&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:o,version:w||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:o,version:w||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:o,version:w||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:o,version:w||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:p?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:o},y?(i.msedge=o,i.version=y):(i.msie=o,i.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?i={name:"Chrome",osname:"Chrome OS",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:o,version:y}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||w}:h?i={name:"Sailfish",osname:"Sailfish OS",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=o,i.osname="Firefox OS")):c?i={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:o,version:w||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(i={name:"WebOS",osname:"WebOS",webos:o,version:w||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:d?i={name:"Tizen",osname:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?i={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?i={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:o},w&&(i.version=w)):r?(i={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},w&&(i.version=w)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||w}:{name:e(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=o):(i.name=i.name||"Webkit",i.webkit=o),!i.version&&w&&(i.version=w)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=o,i.version=i.version||e(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!a&&!i.silk?!i.windowsphone&&r?(i[r]=o,i.ios=o,i.osname="iOS"):m?(i.mac=o,i.osname="macOS"):S?(i.xbox=o,i.osname="Xbox"):g?(i.windows=o,i.osname="Windows"):v&&(i.linux=o,i.osname="Linux"):(i.android=o,i.osname="Android");var P="";i.windows?P=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?P=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?P=(P=e(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):r?P=(P=e(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?P=e(/android[ \/-](\d+(\.\d+)*)/i):i.webos?P=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?P=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?P=e(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(P=e(/tizen[\/\s](\d+(\.\d+)*)/i)),P&&(i.osversion=P);var k=!i.windows&&P.split(".")[0];return b||l||"ipad"==r||a&&(3==k||k>=4&&!x)||i.silk?i.tablet=o:(x||"iphone"==r||"ipod"==r||a||s||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(".").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var o=a;"string"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(o=t(r));var s=""+o.version;for(var l in e)if(e.hasOwnProperty(l)&&o[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return i([s,e[l]])<0}return n}var o=!0,a=t("undefined"!=typeof navigator&&navigator.userAgent||"");return a.test=function(t){for(var e=0;e=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i,r=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived),r=(e+=t.toString(this.encoding,0,r)).length-1,(i=e.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},l.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},l.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,i=this.charBuffer,r=this.encoding;e+=i.slice(0,n).toString(r)}return e}},{buffer:38}],38:[function(t,e,i){(function(e){"use strict";function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function h(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(t).length;default:if(i)return D(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:g(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,i,r){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var a,s=1,l=t.length,u=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,l/=2,u/=2,n/=2}if(r){var c=-1;for(a=n;al&&(n=l-u),a=n;a>=0;a--){for(var h=!0,d=0;dr&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function S(t,e,n){return 0===e&&n===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(e,n))}function P(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return function(t){var e=t.length;if(e<=H)return String.fromCharCode.apply(String,t);for(var n="",i=0;ii)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function T(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function N(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function j(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,i,r){return r||j(t,0,n,4),G.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,r){return r||j(t,0,n,8),G.write(t,e,n,i,52,8),n+8}function O(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function R(t){return z.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}var z=t("base64-js"),G=t("ieee754"),U=t("isarray");i.Buffer=o,i.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},i.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),i.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return function(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),l=Math.min(a,s),u=this.slice(i,r),c=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return y(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return b(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;o.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a>>1;n(t[o])2&&(e=c.call(arguments,1)),n(e)}))}))}function a(t){return Promise.all(t.map(r,this))}function s(t){for(var e=new t.constructor,n=Object.keys(t),i=[],o=0;oc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(t,e,n){var i=t("./_cof"),r=t("./_wks")("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(t,e,n){var i={}.toString;e.exports=function(t){return i.call(t).slice(8,-1)}},{}],65:[function(t,e,n){var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},{}],66:[function(t,e,n){"use strict";var i=t("./_object-dp"),r=t("./_property-desc");e.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(t,e,n){var i=t("./_a-function");e.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":58}],68:[function(t,e,n){e.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],69:[function(t,e,n){e.exports=!t("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":74}],70:[function(t,e,n){var i=t("./_is-object"),r=t("./_global").document,o=i(r)&&i(r.createElement);e.exports=function(t){return o?r.createElement(t):{}}},{"./_global":76,"./_is-object":85}],71:[function(t,e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(t,e,n){var i=t("./_object-keys"),r=t("./_object-gops"),o=t("./_object-pie");e.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(t,e,n){var i=t("./_global"),r=t("./_core"),o=t("./_ctx"),a=t("./_hide"),s=t("./_has"),l=function(t,e,n){var u,c,h,d=t&l.F,f=t&l.G,p=t&l.S,g=t&l.P,m=t&l.B,v=t&l.W,y=f?r:r[e]||(r[e]={}),w=y.prototype,b=f?i:p?i[e]:(i[e]||{}).prototype;for(u in f&&(n=e),n)(c=!d&&b&&void 0!==b[u])&&s(y,u)||(h=c?b[u]:n[u],y[u]=f&&"function"!=typeof b[u]?n[u]:m&&c?o(h,i):v&&b[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[u]=h,t&l.R&&w&&!w[u]&&a(w,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],75:[function(t,e,n){var i=t("./_ctx"),r=t("./_iter-call"),o=t("./_is-array-iter"),a=t("./_an-object"),s=t("./_to-length"),l=t("./core.get-iterator-method"),u={},c={};n=e.exports=function(t,e,n,h,d){var f,p,g,m,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),w=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=s(t.length);f>w;w++)if((m=e?y(a(p=t[w])[0],p[1]):y(t[w]))===u||m===c)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=r(g,y,p.value,e))===u||m===c)return m},n.BREAK=u,n.RETURN=c},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(t,e,n){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],77:[function(t,e,n){var i={}.hasOwnProperty;e.exports=function(t,e){return i.call(t,e)}},{}],78:[function(t,e,n){var i=t("./_object-dp"),r=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(t,e,n){var i=t("./_global").document;e.exports=i&&i.documentElement},{"./_global":76}],80:[function(t,e,n){e.exports=!t("./_descriptors")&&!t("./_fails")((function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(t,e,n){e.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],82:[function(t,e,n){var i=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},{"./_cof":64}],83:[function(t,e,n){var i=t("./_iterators"),r=t("./_wks")("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},{"./_iterators":91,"./_wks":131}],84:[function(t,e,n){var i=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==i(t)}},{"./_cof":64}],85:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],86:[function(t,e,n){var i=t("./_an-object");e.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},{"./_an-object":61}],87:[function(t,e,n){"use strict";var i=t("./_object-create"),r=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),(function(){return this})),e.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(t,e,n){"use strict";var i=t("./_library"),r=t("./_export"),o=t("./_redefine"),a=t("./_hide"),s=t("./_iterators"),l=t("./_iter-create"),u=t("./_set-to-string-tag"),c=t("./_object-gpo"),h=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(t,e,n,p,g,m,v){l(n,e,p);var y,w,b,x=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",P="values"==g,k=!1,C=t.prototype,A=C[h]||C["@@iterator"]||g&&C[g],M=A||x(g),E=g?P?x("entries"):M:void 0,L="Array"==e&&C.entries||A;if(L&&(b=c(L.call(new t)))!==Object.prototype&&b.next&&(u(b,S,!0),i||"function"==typeof b[h]||a(b,h,f)),P&&A&&"values"!==A.name&&(k=!0,M=function(){return A.call(this)}),i&&!v||!d&&!k&&C[h]||a(C,h,M),s[e]=M,s[S]=f,g)if(y={values:P?M:x("values"),keys:m?M:x("keys"),entries:E},v)for(w in y)w in C||o(C,w,y[w]);else r(r.P+r.F*(d||k),e,y);return y}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(t,e,n){var i=t("./_wks")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}e.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},{"./_wks":131}],90:[function(t,e,n){e.exports=function(t,e){return{value:e,done:!!t}}},{}],91:[function(t,e,n){e.exports={}},{}],92:[function(t,e,n){e.exports=!0},{}],93:[function(t,e,n){var i=t("./_uid")("meta"),r=t("./_is-object"),o=t("./_has"),a=t("./_object-dp").f,s=0,l=Object.isExtensible||function(){return!0},u=!t("./_fails")((function(){return l(Object.preventExtensions({}))})),c=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[i].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!o(t,i)&&c(t),t}}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(t,e,n){var i=t("./_global"),r=t("./_task").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==t("./_cof")(a);e.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(t,e,n){"use strict";function i(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=r(e),this.reject=r(n)}var r=t("./_a-function");e.exports.f=function(t){return new i(t)}},{"./_a-function":58}],96:[function(t,e,n){"use strict";var i=t("./_object-keys"),r=t("./_object-gops"),o=t("./_object-pie"),a=t("./_to-object"),s=t("./_iobject"),l=Object.assign;e.exports=!l||t("./_fails")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,c=r.f,h=o.f;l>u;)for(var d,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),g=p.length,m=0;g>m;)h.call(f,d=p[m++])&&(n[d]=f[d]);return n}:l},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(t,e,n){var i=t("./_an-object"),r=t("./_object-dps"),o=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),s=function(){},l=function(){var e,n=t("./_dom-create")("iframe"),i=o.length;for(n.style.display="none",t("./_html").appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write(" - 头歌实践教学平台 + 实践教学平台