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

1416 lines
1.5 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var _l=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[6309],{70557:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},27812:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},89489:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},59477:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},40001:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},49198:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},84105:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},18785:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},73331:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},15277:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},52671:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},8657:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},56082:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},33853:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},15075:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},43531:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},61485:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},38819:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},47472:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(C,I){return N.createElement(U.Z,(0,z.Z)({},C,{ref:I,icon:ye}))},S=N.forwardRef(H),me=S},35593:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return lt}});var z=h(33708),N=h(33606),X=h(37061),ye=h(43403),U=h(92310),H=h.n(U),S=h(29301),me=h(76846),a=h(96452),C=h(6089),I=h(80402),m=h(34280),u=h(49658),x=h(59301),y=h(92413),O=h(77900),te=h(8654);function B(se){var ve=se.prefixCls,ne=se.align,Y=se.arrow,Ae=se.arrowPos,$=Y||{},R=$.className,L=$.content,oe=Ae.x,le=oe===void 0?0:oe,J=Ae.y,De=J===void 0?0:J,je=x.useRef();if(!ne||!ne.points)return null;var ke={position:"absolute"};if(ne.autoArrow!==!1){var Pe=ne.points[0],Xe=ne.points[1],st=Pe[0],Ge=Pe[1],gt=Xe[0],bt=Xe[1];st===gt||!["t","b"].includes(st)?ke.top=De:st==="t"?ke.top=0:ke.bottom=0,Ge===bt||!["l","r"].includes(Ge)?ke.left=le:Ge==="l"?ke.left=0:ke.right=0}return x.createElement("div",{ref:je,className:H()("".concat(ve,"-arrow"),R),style:ke},L)}function M(se){var ve=se.prefixCls,ne=se.open,Y=se.zIndex,Ae=se.mask,$=se.motion;return Ae?x.createElement(O.default,(0,y.Z)({},$,{motionAppear:!0,visible:ne,removeOnLeave:!0}),function(R){var L=R.className;return x.createElement("div",{style:{zIndex:Y},className:H()("".concat(ve,"-mask"),L)})}):null}var W=x.memo(function(se){var ve=se.children;return ve},function(se,ve){return ve.cache}),V=W,b=x.forwardRef(function(se,ve){var ne=se.popup,Y=se.className,Ae=se.prefixCls,$=se.style,R=se.target,L=se.onVisibleChanged,oe=se.open,le=se.keepDom,J=se.fresh,De=se.onClick,je=se.mask,ke=se.arrow,Pe=se.arrowPos,Xe=se.align,st=se.motion,Ge=se.maskMotion,gt=se.forceRender,bt=se.getPopupContainer,mt=se.autoDestroy,zt=se.portal,Ct=se.zIndex,w=se.onMouseEnter,A=se.onMouseLeave,vt=se.onPointerEnter,ue=se.ready,Ne=se.offsetX,bn=se.offsetY,We=se.offsetR,rt=se.offsetB,Je=se.onAlign,Ee=se.onPrepare,Te=se.stretch,ze=se.targetWidth,qe=se.targetHeight,ge=typeof ne=="function"?ne():ne,Jt=oe||le,He=(bt==null?void 0:bt.length)>0,fn=x.useState(!bt||!He),An=(0,N.Z)(fn,2),Hn=An[0],vr=An[1];if((0,m.Z)(function(){!Hn&&He&&R&&vr(!0)},[Hn,He,R]),!Hn)return null;var hn="auto",pn={left:"-1000vw",top:"-1000vh",right:hn,bottom:hn};if(ue||!oe){var et,Rt=Xe.points,Ft=Xe.dynamicInset||((et=Xe._experimental)===null||et===void 0?void 0:et.dynamicInset),Ue=Ft&&Rt[0][1]==="r",Oe=Ft&&Rt[0][0]==="b";Ue?(pn.right=We,pn.left=hn):(pn.left=Ne,pn.right=hn),Oe?(pn.bottom=rt,pn.top=hn):(pn.top=bn,pn.bottom=hn)}var xt={};return Te&&(Te.includes("height")&&qe?xt.height=qe:Te.includes("minHeight")&&qe&&(xt.minHeight=qe),Te.includes("width")&&ze?xt.width=ze:Te.includes("minWidth")&&ze&&(xt.minWidth=ze)),oe||(xt.pointerEvents="none"),x.createElement(zt,{open:gt||Jt,getContainer:bt&&function(){return bt(R)},autoDestroy:mt},x.createElement(M,{prefixCls:Ae,open:oe,zIndex:Ct,mask:je,motion:Ge}),x.createElement(S.Z,{onResize:Je,disabled:!oe},function(St){return x.createElement(O.default,(0,y.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:gt,leavedClassName:"".concat(Ae,"-hidden")},st,{onAppearPrepare:Ee,onEnterPrepare:Ee,visible:oe,onVisibleChanged:function(jt){var sn;st==null||(sn=st.onVisibleChanged)===null||sn===void 0||sn.call(st,jt),L(jt)}}),function(en,jt){var sn=en.className,Xt=en.style,vn=H()(Ae,sn,Y);return x.createElement("div",{ref:(0,te.sQ)(St,ve,jt),className:vn,style:(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({"--arrow-x":"".concat(Pe.x||0,"px"),"--arrow-y":"".concat(Pe.y||0,"px")},pn),xt),Xt),{},{boxSizing:"border-box",zIndex:Ct},$),onMouseEnter:w,onMouseLeave:A,onPointerEnter:vt,onClick:De},ke&&x.createElement(B,{prefixCls:Ae,arrow:ke,arrowPos:Pe,align:Xe}),x.createElement(V,{cache:!oe&&!J},ge))})}))}),T=b,G=x.forwardRef(function(se,ve){var ne=se.children,Y=se.getTriggerDOMNode,Ae=(0,te.Yr)(ne),$=x.useCallback(function(L){(0,te.mH)(ve,Y?Y(L):L)},[Y]),R=(0,te.x1)($,ne.ref);return Ae?x.cloneElement(ne,{ref:R}):ne}),j=G,be=x.createContext(null),_e=be;function xe(se){return se?Array.isArray(se)?se:[se]:[]}function de(se,ve,ne,Y){return x.useMemo(function(){var Ae=xe(ne!=null?ne:ve),$=xe(Y!=null?Y:ve),R=new Set(Ae),L=new Set($);return se&&(R.has("hover")&&(R.delete("hover"),R.add("click")),L.has("hover")&&(L.delete("hover"),L.add("click"))),[R,L]},[se,ve,ne,Y])}var ee=h(29194);function Z(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=arguments.length>2?arguments[2]:void 0;return ne?se[0]===ve[0]:se[0]===ve[0]&&se[1]===ve[1]}function pe(se,ve,ne,Y){for(var Ae=ne.points,$=Object.keys(se),R=0;R<$.length;R+=1){var L,oe=$[R];if(Z((L=se[oe])===null||L===void 0?void 0:L.points,Ae,Y))return"".concat(ve,"-placement-").concat(oe)}return""}function P(se,ve,ne,Y){return ve||(ne?{motionName:"".concat(se,"-").concat(ne)}:Y?{motionName:Y}:null)}function ie(se){return se.ownerDocument.defaultView}function Q(se){for(var ve=[],ne=se==null?void 0:se.parentElement,Y=["hidden","scroll","clip","auto"];ne;){var Ae=ie(ne).getComputedStyle(ne),$=Ae.overflowX,R=Ae.overflowY,L=Ae.overflow;[$,R,L].some(function(oe){return Y.includes(oe)})&&ve.push(ne),ne=ne.parentElement}return ve}function v(se){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(se)?ve:se}function E(se){return v(parseFloat(se),0)}function K(se,ve){var ne=(0,z.Z)({},se);return(ve||[]).forEach(function(Y){if(!(Y instanceof HTMLBodyElement||Y instanceof HTMLHtmlElement)){var Ae=ie(Y).getComputedStyle(Y),$=Ae.overflow,R=Ae.overflowClipMargin,L=Ae.borderTopWidth,oe=Ae.borderBottomWidth,le=Ae.borderLeftWidth,J=Ae.borderRightWidth,De=Y.getBoundingClientRect(),je=Y.offsetHeight,ke=Y.clientHeight,Pe=Y.offsetWidth,Xe=Y.clientWidth,st=E(L),Ge=E(oe),gt=E(le),bt=E(J),mt=v(Math.round(De.width/Pe*1e3)/1e3),zt=v(Math.round(De.height/je*1e3)/1e3),Ct=(Pe-Xe-gt-bt)*mt,w=(je-ke-st-Ge)*zt,A=st*zt,vt=Ge*zt,ue=gt*mt,Ne=bt*mt,bn=0,We=0;if($==="clip"){var rt=E(R);bn=rt*mt,We=rt*zt}var Je=De.x+ue-bn,Ee=De.y+A-We,Te=Je+De.width+2*bn-ue-Ne-Ct,ze=Ee+De.height+2*We-A-vt-w;ne.left=Math.max(ne.left,Je),ne.top=Math.max(ne.top,Ee),ne.right=Math.min(ne.right,Te),ne.bottom=Math.min(ne.bottom,ze)}}),ne}function fe(se){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ne="".concat(ve),Y=ne.match(/^(.*)\%$/);return Y?se*(parseFloat(Y[1])/100):parseFloat(ne)}function Be(se,ve){var ne=ve||[],Y=(0,N.Z)(ne,2),Ae=Y[0],$=Y[1];return[fe(se.width,Ae),fe(se.height,$)]}function Ke(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[se[0],se[1]]}function Me(se,ve){var ne=ve[0],Y=ve[1],Ae,$;return ne==="t"?$=se.y:ne==="b"?$=se.y+se.height:$=se.y+se.height/2,Y==="l"?Ae=se.x:Y==="r"?Ae=se.x+se.width:Ae=se.x+se.width/2,{x:Ae,y:$}}function Ye(se,ve){var ne={t:"b",b:"t",l:"r",r:"l"};return se.map(function(Y,Ae){return Ae===ve?ne[Y]||"c":Y}).join("")}function ht(se,ve,ne,Y,Ae,$,R){var L=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ae[Y]||{}}),oe=(0,N.Z)(L,2),le=oe[0],J=oe[1],De=x.useRef(0),je=x.useMemo(function(){return ve?Q(ve):[]},[ve]),ke=x.useRef({}),Pe=function(){ke.current={}};se||Pe();var Xe=(0,C.Z)(function(){if(ve&&ne&&se){let or=function(Nr,Xr){var Ni=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vn,bi=ge.x+Nr,Oi=ge.y+Xr,Bi=bi+et,va=Oi+pn,Ca=Math.max(bi,Ni.left),Za=Math.max(Oi,Ni.top),da=Math.min(Bi,Ni.right),fa=Math.min(va,Ni.bottom);return Math.max(0,(da-Ca)*(fa-Za))},jn=function(){$n=ge.y+yn,ar=$n+pn,Cr=ge.x+En,Tr=Cr+et};var gt,bt,mt=ve,zt=mt.ownerDocument,Ct=ie(mt),w=Ct.getComputedStyle(mt),A=w.width,vt=w.height,ue=w.position,Ne=mt.style.left,bn=mt.style.top,We=mt.style.right,rt=mt.style.bottom,Je=mt.style.overflow,Ee=(0,z.Z)((0,z.Z)({},Ae[Y]),$),Te=zt.createElement("div");(gt=mt.parentElement)===null||gt===void 0||gt.appendChild(Te),Te.style.left="".concat(mt.offsetLeft,"px"),Te.style.top="".concat(mt.offsetTop,"px"),Te.style.position=ue,Te.style.height="".concat(mt.offsetHeight,"px"),Te.style.width="".concat(mt.offsetWidth,"px"),mt.style.left="0",mt.style.top="0",mt.style.right="auto",mt.style.bottom="auto",mt.style.overflow="hidden";var ze;if(Array.isArray(ne))ze={x:ne[0],y:ne[1],width:0,height:0};else{var qe=ne.getBoundingClientRect();ze={x:qe.x,y:qe.y,width:qe.width,height:qe.height}}var ge=mt.getBoundingClientRect(),Jt=zt.documentElement,He=Jt.clientWidth,fn=Jt.clientHeight,An=Jt.scrollWidth,Hn=Jt.scrollHeight,vr=Jt.scrollTop,hn=Jt.scrollLeft,pn=ge.height,et=ge.width,Rt=ze.height,Ft=ze.width,Ue={left:0,top:0,right:He,bottom:fn},Oe={left:-hn,top:-vr,right:An-hn,bottom:Hn-vr},xt=Ee.htmlRegion,St="visible",en="visibleFirst";xt!=="scroll"&&xt!==en&&(xt=St);var jt=xt===en,sn=K(Oe,je),Xt=K(Ue,je),vn=xt===St?Xt:sn,_n=jt?Xt:vn;mt.style.left="auto",mt.style.top="auto",mt.style.right="0",mt.style.bottom="0";var Mt=mt.getBoundingClientRect();mt.style.left=Ne,mt.style.top=bn,mt.style.right=We,mt.style.bottom=rt,mt.style.overflow=Je,(bt=mt.parentElement)===null||bt===void 0||bt.removeChild(Te);var At=v(Math.round(et/parseFloat(A)*1e3)/1e3),tn=v(Math.round(pn/parseFloat(vt)*1e3)/1e3);if(At===0||tn===0||(0,me.Sh)(ne)&&!(0,ee.Z)(ne))return;var an=Ee.offset,on=Ee.targetOffset,Tn=Be(ge,an),er=(0,N.Z)(Tn,2),Pn=er[0],Yt=er[1],ct=Be(ze,on),ft=(0,N.Z)(ct,2),Dt=ft[0],Ot=ft[1];ze.x-=Dt,ze.y-=Ot;var Tt=Ee.points||[],Kt=(0,N.Z)(Tt,2),Nt=Kt[0],ln=Kt[1],xn=Ke(ln),Rn=Ke(Nt),Qn=Me(ze,xn),Jn=Me(ge,Rn),hr=(0,z.Z)({},Ee),En=Qn.x-Jn.x+Pn,yn=Qn.y-Jn.y+Yt,pr=or(En,yn),Zn=or(En,yn,Xt),Rr=Me(ze,["t","l"]),qn=Me(ge,["t","l"]),cr=Me(ze,["b","r"]),gr=Me(ge,["b","r"]),tr=Ee.overflow||{},Or=tr.adjustX,Vr=tr.adjustY,Xn=tr.shiftX,Dn=tr.shiftY,nt=function(Xr){return typeof Xr=="boolean"?Xr:Xr>=0},$n,ar,Cr,Tr;jn();var Mr=nt(Vr),Hr=Rn[0]===xn[0];if(Mr&&Rn[0]==="t"&&(ar>_n.bottom||ke.current.bt)){var xr=yn;Hr?xr-=pn-Rt:xr=Rr.y-gr.y-Yt;var $r=or(En,xr),Wr=or(En,xr,Xt);$r>pr||$r===pr&&(!jt||Wr>=Zn)?(ke.current.bt=!0,yn=xr,Yt=-Yt,hr.points=[Ye(Rn,0),Ye(xn,0)]):ke.current.bt=!1}if(Mr&&Rn[0]==="b"&&($n<_n.top||ke.current.tb)){var On=yn;Hr?On+=pn-Rt:On=cr.y-qn.y-Yt;var Fn=or(En,On),mr=or(En,On,Xt);Fn>pr||Fn===pr&&(!jt||mr>=Zn)?(ke.current.tb=!0,yn=On,Yt=-Yt,hr.points=[Ye(Rn,0),Ye(xn,0)]):ke.current.tb=!1}var kr=nt(Or),qr=Rn[1]===xn[1];if(kr&&Rn[1]==="l"&&(Tr>_n.right||ke.current.rl)){var Un=En;qr?Un-=et-Ft:Un=Rr.x-gr.x-Pn;var Ur=or(Un,yn),jr=or(Un,yn,Xt);Ur>pr||Ur===pr&&(!jt||jr>=Zn)?(ke.current.rl=!0,En=Un,Pn=-Pn,hr.points=[Ye(Rn,1),Ye(xn,1)]):ke.current.rl=!1}if(kr&&Rn[1]==="r"&&(Cr<_n.left||ke.current.lr)){var fi=En;qr?fi+=et-Ft:fi=cr.x-qn.x-Pn;var Li=or(fi,yn),Ei=or(fi,yn,Xt);Li>pr||Li===pr&&(!jt||Ei>=Zn)?(ke.current.lr=!0,En=fi,Pn=-Pn,hr.points=[Ye(Rn,1),Ye(xn,1)]):ke.current.lr=!1}jn();var ti=Xn===!0?0:Xn;typeof ti=="number"&&(Cr<Xt.left&&(En-=Cr-Xt.left-Pn,ze.x+Ft<Xt.left+ti&&(En+=ze.x-Xt.left+Ft-ti)),Tr>Xt.right&&(En-=Tr-Xt.right-Pn,ze.x>Xt.right-ti&&(En+=ze.x-Xt.right+ti)));var vi=Dn===!0?0:Dn;typeof vi=="number"&&($n<Xt.top&&(yn-=$n-Xt.top-Yt,ze.y+Rt<Xt.top+vi&&(yn+=ze.y-Xt.top+Rt-vi)),ar>Xt.bottom&&(yn-=ar-Xt.bottom-Yt,ze.y>Xt.bottom-vi&&(yn+=ze.y-Xt.bottom+vi)));var li=ge.x+En,Ri=li+et,Ii=ge.y+yn,ji=Ii+pn,Di=ze.x,Gi=Di+Ft,zr=ze.y,aa=zr+Rt,ga=Math.max(li,Di),ua=Math.min(Ri,Gi),yi=(ga+ua)/2,ca=yi-li,wa=Math.max(Ii,zr),kn=Math.min(ji,aa),Mi=(wa+kn)/2,na=Mi-Ii;R==null||R(ve,hr);var sr=Mt.right-ge.x-(En+ge.width),_r=Mt.bottom-ge.y-(yn+ge.height);J({ready:!0,offsetX:En/At,offsetY:yn/tn,offsetR:sr/At,offsetB:_r/tn,arrowX:ca/At,arrowY:na/tn,scaleX:At,scaleY:tn,align:hr})}}),st=function(){De.current+=1;var bt=De.current;Promise.resolve().then(function(){De.current===bt&&Xe()})},Ge=function(){J(function(bt){return(0,z.Z)((0,z.Z)({},bt),{},{ready:!1})})};return(0,m.Z)(Ge,[Y]),(0,m.Z)(function(){se||Ge()},[se]),[le.ready,le.offsetX,le.offsetY,le.offsetR,le.offsetB,le.arrowX,le.arrowY,le.scaleX,le.scaleY,le.align,st]}var pt=h(26407);function at(se,ve,ne,Y,Ae){(0,m.Z)(function(){if(se&&ve&&ne){let De=function(){Y(),Ae()};var $=ve,R=ne,L=Q($),oe=Q(R),le=ie(R),J=new Set([le].concat((0,pt.Z)(L),(0,pt.Z)(oe)));return J.forEach(function(je){je.addEventListener("scroll",De,{passive:!0})}),le.addEventListener("resize",De,{passive:!0}),Y(),function(){J.forEach(function(je){je.removeEventListener("scroll",De),le.removeEventListener("resize",De)})}}},[se,ve,ne])}var Bt=h(48736),Vt=h(16089);function qt(se,ve,ne,Y,Ae,$,R,L){var oe=x.useRef(se),le=x.useRef(!1);oe.current!==se&&(le.current=!0,oe.current=se),x.useEffect(function(){var J=(0,Vt.Z)(function(){le.current=!1});return function(){Vt.Z.cancel(J)}},[se]),x.useEffect(function(){if(ve&&Y&&(!Ae||$)){var J=function(){var ue=!1,Ne=function(rt){var Je=rt.target;ue=R(Je)},bn=function(rt){var Je=rt.target;!le.current&&oe.current&&!ue&&!R(Je)&&L(!1)};return[Ne,bn]},De=J(),je=(0,N.Z)(De,2),ke=je[0],Pe=je[1],Xe=J(),st=(0,N.Z)(Xe,2),Ge=st[0],gt=st[1],bt=ie(Y);bt.addEventListener("mousedown",ke,!0),bt.addEventListener("click",Pe,!0),bt.addEventListener("contextmenu",Pe,!0);var mt=(0,a.A)(ne);if(mt&&(mt.addEventListener("mousedown",Ge,!0),mt.addEventListener("click",gt,!0),mt.addEventListener("contextmenu",gt,!0)),0)var zt,Ct,w,A;return function(){bt.removeEventListener("mousedown",ke,!0),bt.removeEventListener("click",Pe,!0),bt.removeEventListener("contextmenu",Pe,!0),mt&&(mt.removeEventListener("mousedown",Ge,!0),mt.removeEventListener("click",gt,!0),mt.removeEventListener("contextmenu",gt,!0))}}},[ve,ne,Y,Ae,$])}var $t=["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"];function Gt(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ye.Z,ve=x.forwardRef(function(ne,Y){var Ae=ne.prefixCls,$=Ae===void 0?"rc-trigger-popup":Ae,R=ne.children,L=ne.action,oe=L===void 0?"hover":L,le=ne.showAction,J=ne.hideAction,De=ne.popupVisible,je=ne.defaultPopupVisible,ke=ne.onPopupVisibleChange,Pe=ne.afterPopupVisibleChange,Xe=ne.mouseEnterDelay,st=ne.mouseLeaveDelay,Ge=st===void 0?.1:st,gt=ne.focusDelay,bt=ne.blurDelay,mt=ne.mask,zt=ne.maskClosable,Ct=zt===void 0?!0:zt,w=ne.getPopupContainer,A=ne.forceRender,vt=ne.autoDestroy,ue=ne.destroyPopupOnHide,Ne=ne.popup,bn=ne.popupClassName,We=ne.popupStyle,rt=ne.popupPlacement,Je=ne.builtinPlacements,Ee=Je===void 0?{}:Je,Te=ne.popupAlign,ze=ne.zIndex,qe=ne.stretch,ge=ne.getPopupClassNameFromAlign,Jt=ne.fresh,He=ne.alignPoint,fn=ne.onPopupClick,An=ne.onPopupAlign,Hn=ne.arrow,vr=ne.popupMotion,hn=ne.maskMotion,pn=ne.popupTransitionName,et=ne.popupAnimation,Rt=ne.maskTransitionName,Ft=ne.maskAnimation,Ue=ne.className,Oe=ne.getTriggerDOMNode,xt=(0,X.Z)(ne,$t),St=vt||ue||!1,en=x.useState(!1),jt=(0,N.Z)(en,2),sn=jt[0],Xt=jt[1];(0,m.Z)(function(){Xt((0,u.Z)())},[]);var vn=x.useRef({}),_n=x.useContext(_e),Mt=x.useMemo(function(){return{registerSubPopup:function(ir,Qr){vn.current[ir]=Qr,_n==null||_n.registerSubPopup(ir,Qr)}}},[_n]),At=(0,I.Z)(),tn=x.useState(null),an=(0,N.Z)(tn,2),on=an[0],Tn=an[1],er=(0,C.Z)(function(lr){(0,me.Sh)(lr)&&on!==lr&&Tn(lr),_n==null||_n.registerSubPopup(At,lr)}),Pn=x.useState(null),Yt=(0,N.Z)(Pn,2),ct=Yt[0],ft=Yt[1],Dt=x.useRef(null),Ot=(0,C.Z)(function(lr){(0,me.Sh)(lr)&&ct!==lr&&(ft(lr),Dt.current=lr)}),Tt=x.Children.only(R),Kt=(Tt==null?void 0:Tt.props)||{},Nt={},ln=(0,C.Z)(function(lr){var ir,Qr,zi=ct;return(zi==null?void 0:zi.contains(lr))||((ir=(0,a.A)(zi))===null||ir===void 0?void 0:ir.host)===lr||lr===zi||(on==null?void 0:on.contains(lr))||((Qr=(0,a.A)(on))===null||Qr===void 0?void 0:Qr.host)===lr||lr===on||Object.values(vn.current).some(function(ui){return(ui==null?void 0:ui.contains(lr))||lr===ui})}),xn=P($,vr,et,pn),Rn=P($,hn,Ft,Rt),Qn=x.useState(je||!1),Jn=(0,N.Z)(Qn,2),hr=Jn[0],En=Jn[1],yn=De!=null?De:hr,pr=(0,C.Z)(function(lr){De===void 0&&En(lr)});(0,m.Z)(function(){En(De||!1)},[De]);var Zn=x.useRef(yn);Zn.current=yn;var Rr=x.useRef([]);Rr.current=[];var qn=(0,C.Z)(function(lr){var ir;pr(lr),((ir=Rr.current[Rr.current.length-1])!==null&&ir!==void 0?ir:yn)!==lr&&(Rr.current.push(lr),ke==null||ke(lr))}),cr=x.useRef(),gr=function(){clearTimeout(cr.current)},tr=function(ir){var Qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;gr(),Qr===0?qn(ir):cr.current=setTimeout(function(){qn(ir)},Qr*1e3)};x.useEffect(function(){return gr},[]);var Or=x.useState(!1),Vr=(0,N.Z)(Or,2),Xn=Vr[0],Dn=Vr[1];(0,m.Z)(function(lr){(!lr||yn)&&Dn(!0)},[yn]);var nt=x.useState(null),$n=(0,N.Z)(nt,2),ar=$n[0],Cr=$n[1],Tr=x.useState([0,0]),Mr=(0,N.Z)(Tr,2),Hr=Mr[0],xr=Mr[1],$r=function(ir){xr([ir.clientX,ir.clientY])},Wr=ht(yn,on,He?Hr:ct,rt,Ee,Te,An),On=(0,N.Z)(Wr,11),Fn=On[0],mr=On[1],kr=On[2],qr=On[3],Un=On[4],Ur=On[5],jr=On[6],fi=On[7],Li=On[8],Ei=On[9],ti=On[10],vi=de(sn,oe,le,J),li=(0,N.Z)(vi,2),Ri=li[0],Ii=li[1],ji=Ri.has("click"),Di=Ii.has("click")||Ii.has("contextMenu"),Gi=(0,C.Z)(function(){Xn||ti()}),zr=function(){Zn.current&&He&&Di&&tr(!1)};at(yn,ct,on,Gi,zr),(0,m.Z)(function(){Gi()},[Hr,rt]),(0,m.Z)(function(){yn&&!(Ee!=null&&Ee[rt])&&Gi()},[JSON.stringify(Te)]);var aa=x.useMemo(function(){var lr=pe(Ee,$,Ei,He);return H()(lr,ge==null?void 0:ge(Ei))},[Ei,ge,Ee,$,He]);x.useImperativeHandle(Y,function(){return{nativeElement:Dt.current,forceAlign:Gi}});var ga=x.useState(0),ua=(0,N.Z)(ga,2),yi=ua[0],ca=ua[1],wa=x.useState(0),kn=(0,N.Z)(wa,2),Mi=kn[0],na=kn[1],sr=function(){if(qe&&ct){var ir=ct.getBoundingClientRect();ca(ir.width),na(ir.height)}},_r=function(){sr(),Gi()},or=function(ir){Dn(!1),ti(),Pe==null||Pe(ir)},jn=function(){return new Promise(function(ir){sr(),Cr(function(){return ir})})};(0,m.Z)(function(){ar&&(ti(),ar(),Cr(null))},[ar]);function Nr(lr,ir,Qr,zi){Nt[lr]=function(ui){var sa;zi==null||zi(ui),tr(ir,Qr);for(var ja=arguments.length,Ka=new Array(ja>1?ja-1:0),ya=1;ya<ja;ya++)Ka[ya-1]=arguments[ya];(sa=Kt[lr])===null||sa===void 0||sa.call.apply(sa,[Kt,ui].concat(Ka))}}(ji||Di)&&(Nt.onClick=function(lr){var ir;Zn.current&&Di?tr(!1):!Zn.current&&ji&&($r(lr),tr(!0));for(var Qr=arguments.length,zi=new Array(Qr>1?Qr-1:0),ui=1;ui<Qr;ui++)zi[ui-1]=arguments[ui];(ir=Kt.onClick)===null||ir===void 0||ir.call.apply(ir,[Kt,lr].concat(zi))}),qt(yn,Di,ct,on,mt,Ct,ln,tr);var Xr=Ri.has("hover"),Ni=Ii.has("hover"),bi,Oi;Xr&&(Nr("onMouseEnter",!0,Xe,function(lr){$r(lr)}),Nr("onPointerEnter",!0,Xe,function(lr){$r(lr)}),bi=function(ir){(yn||Xn)&&on!==null&&on!==void 0&&on.contains(ir.target)&&tr(!0,Xe)},He&&(Nt.onMouseMove=function(lr){var ir;(ir=Kt.onMouseMove)===null||ir===void 0||ir.call(Kt,lr)})),Ni&&(Nr("onMouseLeave",!1,Ge),Nr("onPointerLeave",!1,Ge),Oi=function(){tr(!1,Ge)}),Ri.has("focus")&&Nr("onFocus",!0,gt),Ii.has("focus")&&Nr("onBlur",!1,bt),Ri.has("contextMenu")&&(Nt.onContextMenu=function(lr){var ir;Zn.current&&Ii.has("contextMenu")?tr(!1):($r(lr),tr(!0)),lr.preventDefault();for(var Qr=arguments.length,zi=new Array(Qr>1?Qr-1:0),ui=1;ui<Qr;ui++)zi[ui-1]=arguments[ui];(ir=Kt.onContextMenu)===null||ir===void 0||ir.call.apply(ir,[Kt,lr].concat(zi))}),Ue&&(Nt.className=H()(Kt.className,Ue));var Bi=(0,z.Z)((0,z.Z)({},Kt),Nt),va={},Ca=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ca.forEach(function(lr){xt[lr]&&(va[lr]=function(){for(var ir,Qr=arguments.length,zi=new Array(Qr),ui=0;ui<Qr;ui++)zi[ui]=arguments[ui];(ir=Bi[lr])===null||ir===void 0||ir.call.apply(ir,[Bi].concat(zi)),xt[lr].apply(xt,zi)})});var Za=x.cloneElement(Tt,(0,z.Z)((0,z.Z)({},Bi),va)),da={x:Ur,y:jr},fa=Hn?(0,z.Z)({},Hn!==!0?Hn:{}):null;return x.createElement(x.Fragment,null,x.createElement(S.Z,{disabled:!yn,ref:Ot,onResize:_r},x.createElement(j,{getTriggerDOMNode:Oe},Za)),x.createElement(_e.Provider,{value:Mt},x.createElement(T,{portal:se,ref:er,prefixCls:$,popup:Ne,className:H()(bn,aa),style:We,target:ct,onMouseEnter:bi,onMouseLeave:Oi,onPointerEnter:bi,zIndex:ze,open:yn,keepDom:Xn,fresh:Jt,onClick:fn,mask:mt,motion:xn,maskMotion:Rn,onVisibleChanged:or,onPrepare:jn,forceRender:A,autoDestroy:St,getPopupContainer:w,align:Ei,arrow:fa,arrowPos:da,ready:Fn,offsetX:mr,offsetY:kr,offsetR:qr,offsetB:Un,onAlign:Gi,stretch:qe,targetWidth:yi/fi,targetHeight:Mi/Li})))});return ve}var lt=Gt(ye.Z)},50304:function(){"use strict"},8797:function(Wt,Ze,h){"use strict";var z=h(59301),N=h(93314),X=h(3113),ye=Object.defineProperty,U=Object.defineProperties,H=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,C=(x,y,O)=>y in x?ye(x,y,{enumerable:!0,configurable:!0,writable:!0,value:O}):x[y]=O,I=(x,y)=>{for(var O in y||(y={}))me.call(y,O)&&C(x,O,y[O]);if(S)for(var O of S(y))a.call(y,O)&&C(x,O,y[O]);return x},m=(x,y)=>U(x,H(y));const u=({img:x,buttonProps:y={},styles:O={},customText:te,ButtonText:B,ButtonClick:M,Buttonclass:W,ButtonTwo:V,imgStyles:b,loading:T=!1})=>z.createElement("section",{className:"tc animated fadeIn",style:I(I({},{color:"#999",margin:"100px auto",visibility:T?"hidden":"visible"}),O)},z.createElement("img",{src:x||N,style:m(I({},b),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},te||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),B&&z.createElement(X.ZP,I({className:W,onClick:M},y),B),V&&V);Ze.Z=u},23210:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return W}});var z=h(59301),N={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},X=h(3113),ye=h(70557),U=h(23954),H=h(6848),S=h(955),me=h(94941),a=h(8797),C=h(3294),I=h(19381),m=h(59301),u=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,te=(V,b,T)=>b in V?u(V,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):V[b]=T,B=(V,b)=>{for(var T in b||(b={}))y.call(b,T)&&te(V,T,b[T]);if(x)for(var T of x(b))O.call(b,T)&&te(V,T,b[T]);return V},M=(V,b,T)=>new Promise((G,j)=>{var be=de=>{try{xe(T.next(de))}catch(ee){j(ee)}},_e=de=>{try{xe(T.throw(de))}catch(ee){j(ee)}},xe=de=>de.done?G(de.value):Promise.resolve(de.value).then(be,_e);xe((T=T.apply(V,b)).next())}),W=({editOffice:V="view",data:b,theme:T,type:G,filename:j,monacoEditor:be,className:_e,style:xe,close:de,onClose:ee,hasMask:Z,disabledDownload:pe,onImgDimensions:P,showNodata:ie,recordInfo:Q})=>{const[v,E]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[K,fe]=(0,z.useState)(""),[Be,Ke]=(0,z.useState)(),Me=window.ENV==="build"?"/react/build":"",Ye=location.host.startsWith("localhost")?C.Z.PROXY_SERVER:C.Z.API_SERVER,pt=10*(1024*1024),at=(0,z.useRef)();b!=null&&b.startsWith("/api")&&G!=="txt"&&(b=C.Z.API_SERVER+b);const Bt=Gt=>Gt.substring(Gt.lastIndexOf("/")+1).split(".").pop();j&&be&&(be.filename=j),(0,z.useEffect)(()=>{var Gt,lt;const se=(lt=(Gt=document.cookie)==null?void 0:Gt.replace(/\s/g,""))==null?void 0:lt.split(";");se==null||se.map(ve=>{let ne=ve.split("=");ne[0]==="_educoder_session"&&fe(ne[1])})},[]),(0,z.useEffect)(()=>{G==="office"&&(b.indexOf("bigfilescdn.")>-1||b.indexOf("bigfiles1")>-1?Ke({url:b,fileType:Bt(b),model:b.indexOf("model=edit")?"edit":"view"}):Vt())},[G,b]);const Vt=()=>M(void 0,null,function*(){console.log("data:",b);let Gt=b;b.startsWith("http")||(Gt=location.origin+Gt);let lt=new URL(Gt).pathname.split("/").pop();const se=yield(0,me.gJ)({attachment_id:lt});se.url=Ye+se.url,Ke(se)}),qt=()=>{if(b.startsWith("http")||b.startsWith("blob:")){$t();return}(0,S.Sv)(j||"educoder",b,j)},$t=()=>{Q&&(0,I.fc)({id:Q==null?void 0:Q.id,watch_type:1,course_id:Q==null?void 0:Q.course_id}),(0,S.Nd)(j||"educoder",decodeURIComponent(b))};return m.createElement("div",{style:B({},xe||{}),className:`${Z&&N.bgBlack} ${G?N.wrp:"hide"}`},de&&m.createElement("div",{className:N.close,ref:at},!!P&&m.createElement(H.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},m.createElement("span",{onClick:()=>{ee(),P()}},m.createElement("i",{className:"icon-yulanpizhu"}))),!pe&&m.createElement(H.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>at.current},m.createElement("span",{onClick:$t},m.createElement("i",{className:"icon-quxiaozhiding"}))),m.createElement(H.Z,{title:"\u5173\u95ED",getPopupContainer:()=>at.current},m.createElement("span",{className:"",onClick:ee},m.createElement("i",{className:"icon-guanbi1"})))),m.createElement("div",{className:`${N[_e]} ${_e} ${N.monaco} ${G==="txt"?"show":"hide"}`},G==="txt"&&m.createElement(m.Fragment,null,m.createElement(U.ZP,B({},be)))),G==="audio"&&m.createElement("audio",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${b}`,autoPlay:!0}),G==="video"&&m.createElement(m.Fragment,null,(b==null?void 0:b.indexOf("http"))>-1?m.createElement("video",{controls:!0,src:`${b}`,autoPlay:!0}):m.createElement("video",{controls:!0,src:`data:video/mp4;base64,${b}`,autoPlay:!0})),G==="office"&&Be&&m.createElement("iframe",{src:`${Me}/office.html?key=${Be.key}&url=${btoa(Be.url)}&callbackUrl=${Ye+(Be.callbackUrl||"")}&fileType=${Be.fileType}&title=${Be.title||""}&model=${V}&officeServer=${C.Z.ONLYOFFICE}&disabledDownload=${!!pe}`}),G==="html"&&m.createElement("iframe",{src:b+"&disposition=inline"}),G==="pdf"&&m.createElement("iframe",{src:`${Me}/js/pdfview/index.html?filename=${j||"educoder.pdf"}&url=${encodeURIComponent(b)}&disabledDownload=${!!pe}`}),G==="image"&&m.createElement("img",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:image/png;base64,"}${b}`}),(G==="other"||G==="download")&&m.createElement(m.Fragment,null,ie?m.createElement(a.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:m.createElement(X.ZP,{icon:m.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:qt,disabled:pe},"\u4E0B\u8F7D")}):m.createElement(X.ZP,{type:"primary",size:"middle",onClick:qt,disabled:pe},m.createElement(ye.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Wt,Ze,h){"use strict";h.d(Ze,{z:function(){return G},Z:function(){return j}});var z=h(59301),N=h(50304),X=h(24768),ye=h(64018),U=h(40846),H=h(3294),S=h(955),me=h(15342),a=h(1012),C=h(23210),I=h(59301),u=({html:be})=>{const _e=(0,z.useRef)(null),xe=(0,z.useRef)(null),de=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,z.useEffect)(()=>{const ee=_e.current.attachShadow({mode:"open"});xe.current=document.createElement("div"),xe.current.className="markdown-body",xe.current.innerHTML=be,ee.appendChild(xe.current);const Z=document.createElement("style");return Z.textContent=de,ee.appendChild(Z),()=>{ee.innerHTML=""}},[]),(0,z.useEffect)(()=>{xe.current&&(xe.current.innerHTML=be)},[be]),I.createElement("div",{ref:_e})},x=Object.defineProperty,y=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,B=(be,_e,xe)=>_e in be?x(be,_e,{enumerable:!0,configurable:!0,writable:!0,value:xe}):be[_e]=xe,M=(be,_e)=>{for(var xe in _e||(_e={}))O.call(_e,xe)&&B(be,xe,_e[xe]);if(y)for(var xe of y(_e))te.call(_e,xe)&&B(be,xe,_e[xe]);return be};const W="@\u2581\u2581@",V="@\u2581@",b=/<pre[^>]*>/g;function T(be){let _e=document.createElement("div");return _e.innerHTML=be,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const G=(be,_e)=>{be=be||"";const xe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,de=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ee=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Z=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(xe,(pe,P,ie,Q,v,E,K)=>{const fe=P||Q||E,Be=ie||v||K||"?";return H.Z.API_SERVER+"/api/attachments/"+fe+Be+"&t="+(0,S.Jn)(fe,Date.now())+(pe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(be=be.replace(Z,(pe,P,ie,Q,v,E,K)=>{const fe=P||Q||E,Be=ie||v||K||"?";return H.Z.API_SERVER+"/attachments/download/"+fe+Be+"&t="+(0,S.Jn)(fe,Date.now())+(pe.indexOf(")")>-1?")":"&")}).replace(xe,(pe,P,ie,Q,v,E,K)=>{const fe=P||Q||E,Be=ie||v||K||"?";return H.Z.API_SERVER+"/api/attachments/"+fe+Be+"&t="+(0,S.Jn)(fe,Date.now())+(pe.indexOf(")")>-1?")":"&")}).replace(de,(pe,P,ie,Q,v)=>{const E=P||Q,K=ie||v||"";return'"'+H.Z.API_SERVER+"/api/attachments/"+E+K+E+K+"&t="+(0,S.Jn)(E,Date.now())}).replace(ee,(pe,P,ie,Q,v)=>{const E=P||Q,K=ie||v||"";return"("+H.Z.API_SERVER+"/files/uploads/"+E+K+E+K+"&t="+(0,S.Jn)(E,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').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,`
`),be)};var j=({value:be="",className:_e,showTextOnly:xe,showLines:de,style:ee={},stylesPrev:Z={},highlightKeywords:pe,showProgramFill:P,isProgramFill:ie,disabledFill:Q=!1,programFillValue:v,onFillChange:E=Be=>{},onFillBlur:K=()=>{},onFillFocus:fe=()=>{}})=>{let Be=String(be);const[Ke,Me]=(0,z.useState)(""),[Ye,ht]=(0,z.useState)("office"),[pt,at]=(0,z.useState)([]),Bt=(0,z.useRef)("a"+(0,a.Z)()),Vt={},qt=(oe,le,J)=>{const De=document.createElement(oe===V?"input":"textarea");De.style.width="100%",De.style.height=oe===V?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=le;const je=Object.keys(Vt).length;return Vt[je]=De,`<span class="edu-program-fill-wrap ${oe===V?"":"show"}" style="width:${oe===V?"400px":"100%"}" title=${J||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function $t(oe){return oe=oe.replace(/!\[.*?\]\(.*?\)/g,""),oe=oe.replace(/\[.*?\]\(.*?\)/g,""),oe=oe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),oe=oe.replace(/<embed.*?>/g,""),oe=oe.replace(/<img.*?>/g,""),oe=oe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),oe=oe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),oe=oe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),oe=oe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),oe}const Gt=oe=>oe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(le,J){let De=J.replace(/(\n|\r)/g,"").split("}"),je=[];return De.map(ke=>{ke!=""&&je.push(`.${Bt.current} ${ke}`)}),`<style>${je.join("}")}</style>`}),lt=(0,z.useMemo)(()=>{try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,je=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Pe=/\(\/attachments\/download\//g;Be=Be.replace(Pe,"("+H.Z.API_SERVER+"/attachments/download/").replace(De,"("+H.Z.API_SERVER+"/api/attachments/").replace(je,'"'+H.Z.API_SERVER+"/api/attachments/").replace(ke,'"'+H.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,`
`)}catch(De){}if(P){let De=-1;return Be=Be.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(je,ke,Pe){var Xe;return++De,qt(je,De,(Xe=v==null?void 0:v[De])==null?void 0:Xe.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Gt(Be||"")}</pre>`}let oe=Gt(Be);oe=(0,X.ZP)(oe);const le=(0,X.ez)();Be.match(/\[TOC\]/)&&(oe=oe.replace("<p>[TOC]</p>",(0,X.Qv)()),(0,X.Iy)()),oe=oe.replace(/(__special_katext_id_\d+__)/g,(De,je)=>{const{type:ke,expression:Pe}=le[je];return(0,me.renderToString)(T(Pe)||"",{displayMode:ke==="block",throwOnError:!1,output:"html"})}),oe=oe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,X.AL)();const J=document.createElement("div");if(J.innerHTML=oe,xe)return J.innerText;if(pe){const De=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Y(J,De),J.innerHTML}return setTimeout(()=>R(),500),J.innerHTML},[Be,pe]);(0,z.useEffect)(()=>{Ae.current&&Ae.current.querySelectorAll(["input","textarea"]).forEach(le=>{le.oninput=se,le.onblur=ve,le.onfocus=ne})},[pt]),(0,z.useEffect)(()=>{var oe,le,J,De,je;if(v!=null&&v.length)try{const ke=Ae.current.querySelectorAll(".edu-program-fill-score"),Pe=Ae.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xe,st]of Pe.entries())st.value=((oe=v==null?void 0:v[Xe])==null?void 0:oe.value)||"",((le=v==null?void 0:v[Xe])==null?void 0:le.type)==="warning"?st.className="program-fill-warning":((J=v==null?void 0:v[Xe])==null?void 0:J.type)==="success"?st.className="program-fill-success":st.className="";for(const[Xe,st]of ke.entries())st.innerHTML=(De=v==null?void 0:v[Xe])!=null&&De.score?`${(je=v==null?void 0:v[Xe])==null?void 0:je.score}\u5206`:"";at(v)}catch(ke){console.log(ke,"error")}},[v]);const se=oe=>{pt[oe.target.dataset.id]=pt[oe.target.dataset.id]||{},pt[oe.target.dataset.id].value=oe.target.value,at([...pt]),E(pt,oe.target.dataset.id)},ve=oe=>{pt[oe.target.dataset.id]=pt[oe.target.dataset.id]||{},pt[oe.target.dataset.id].value=oe.target.value,at([...pt]),K(pt,oe.target.dataset.id)},ne=oe=>{pt[oe.target.dataset.id]=pt[oe.target.dataset.id]||{},pt[oe.target.dataset.id].value=oe.target.value,at([...pt]),fe(pt,oe.target.dataset.id)};function Y(oe,le){return oe.childNodes.forEach(J=>{var De;if(J.childNodes.length>0)Y(J,le);else if(J.nodeName!=="IMG")if(J.innerHTML)J.innerHTML=(De=J.innerHTML)==null?void 0:De.replace(new RegExp(le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const je=document.createElement("span");je.innerHTML=J.textContent.replace(new RegExp(le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),J.replaceWith(je)}})}const Ae=(0,z.useRef)();X.jb.WebkitLineClamp=de,de&&(ee=M(M({},ee),X.jb));function $(oe){let le=oe.target;if(le.tagName.toUpperCase()==="A"){let J=le.getAttribute("href");if(J.indexOf("office")>-1)oe.preventDefault(),Me(J),ht("office");else if(J.indexOf("application/pdf")>-1)oe.preventDefault(),Me(J),ht("pdf");else if(J.indexOf("text/html")>-1)oe.preventDefault(),Me(J),ht("html");else if(J.startsWith("#")){oe.preventDefault();let De=document.getElementById(J.replace("#",""));De&&De.scrollIntoView(!0)}}}const R=()=>{var oe;const le=(oe=Ae.current)==null?void 0:oe.querySelectorAll("video");le==null||le.forEach(J=>{if(J.oncontextmenu=()=>!1,J.src.indexOf(".m3u8")>-1&&!J.canPlayType("application/vnd.apple.mpegurl")){if(U.ZP.isSupported()){var De=new U.ZP;De.loadSource(J.src),De.attachMedia(J)}}})};(0,z.useEffect)(()=>{if(Ae.current&&lt&&lt.match(b)&&window.PR.prettyPrint(),Ae.current)return Ae.current.addEventListener("click",$),()=>{var oe;(oe=Ae.current)==null||oe.removeEventListener("click",$),(0,X.AL)(),(0,X.Iy)()}},[lt,Ae.current,$]),(0,z.useEffect)(()=>{var oe;const le=J=>{J.preventDefault(),J.clipboardData.setData("text",window.getSelection().toString())};return(oe=Ae.current)==null||oe.addEventListener("copy",le),()=>{var J;(J=Ae.current)==null||J.removeEventListener("copy",le)}},[Ae.current]);const L=oe=>/<style[\s\S]*?>/i.test(oe||"");return z.createElement(z.Fragment,null,xe&&z.createElement("div",{ref:Ae},lt),!xe&&!L(lt)&&z.createElement("div",{ref:Ae,style:M({},ee),className:`${_e||""} ${Q?"disabled-fill":""} markdown-body ${Bt.current}`,dangerouslySetInnerHTML:{__html:lt}}),!xe&&L(lt)&&z.createElement(u,{html:lt}),z.createElement(C.Z,{close:!0,data:Ke,type:Ke!=null&&Ke.length?Ye:"",style:M({},Z),onClose:()=>Me("")}))}},23954:function(Wt,Ze,h){"use strict";h.d(Ze,{SV:function(){return Ae},ZP:function(){return Y}});var z=h(59301),N=h(76374);const X={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ye={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},U={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},H={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(`
`)}]},S={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(`
`)}]};var me=h(53184),a=h.n(me),C=Object.defineProperty,I=Object.defineProperties,m=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,O=($,R,L)=>R in $?C($,R,{enumerable:!0,configurable:!0,writable:!0,value:L}):$[R]=L,te=($,R)=>{for(var L in R||(R={}))x.call(R,L)&&O($,L,R[L]);if(u)for(var L of u(R))y.call(R,L)&&O($,L,R[L]);return $},B=($,R)=>I($,m(R)),M=($,R,L)=>new Promise((oe,le)=>{var J=ke=>{try{je(L.next(ke))}catch(Pe){le(Pe)}},De=ke=>{try{je(L.throw(ke))}catch(Pe){le(Pe)}},je=ke=>ke.done?oe(ke.value):Promise.resolve(ke.value).then(J,De);je((L=L.apply($,R)).next())});const W={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"]}},V=($,R)=>R.map(L=>({label:L,kind:$.languages.CompletionItemKind.Keyword,insertText:L})),b=$=>Object.keys(W.tables).map(R=>({label:R,kind:$.languages.CompletionItemKind.Variable,insertText:R})),T=($,R)=>{const L=W.tables[$];return L?L.map(oe=>({label:oe,kind:R.languages.CompletionItemKind.Field,insertText:oe})):[]};function G($,R,L,oe,le){let J=R.getWordUntilPosition(L),De={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},je=oe.map(ke=>({label:ke,kind:$.languages.CompletionItemKind.Keyword,insertText:ke,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}));return le.map(ke=>{je.push(B(te({},ke),{range:De}))}),je}var j=$=>{W.languages.map(le=>($.languages.registerDocumentFormattingEditProvider(le,{provideDocumentFormattingEdits(J,De,je){return M(this,null,function*(){const ke=a()(J.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:J.getFullModelRange(),text:ke}]})}}),le));const R=U.quickKey.map(le=>({label:le.label,kind:$.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet})),L=H.quickKey.map(le=>({label:le.label,kind:$.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet})),oe=ye.quickKey.map(le=>({label:le.label,kind:$.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet}));$.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(le,J){var De=le.getWordUntilPosition(J),je={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},ke=le.getLineContent(J.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...U.keywords.map(Pe=>({label:Pe,kind:$.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...U.quickKey.map(Pe=>({label:Pe.label,kind:$.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:ke.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),$.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(le,J){var De=le.getWordUntilPosition(J),je={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn};return{suggestions:[...X.keywords.map(ke=>({label:ke,kind:$.languages.CompletionItemKind.Function,documentation:ke,insertText:ke,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),$.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(le,J){var De=le.getWordUntilPosition(J),je={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},ke=le.getLineContent(J.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...ye.keywords.map(Pe=>({label:Pe,kind:$.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...ye.quickKey.map(Pe=>({label:Pe.label,kind:$.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:ke.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),$.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(le,J){var De=le.getWordUntilPosition(J),je={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},ke=le.getLineContent(J.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...S.keywords.map(Pe=>({label:Pe,kind:$.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...S.quickKey.map(Pe=>({label:Pe.label,kind:$.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:ke.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),$.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(le,J){var De=le.getWordUntilPosition(J),je={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},ke=le.getLineContent(J.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...H.keywords.map(Pe=>({label:Pe,kind:$.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...H.quickKey.map(Pe=>({label:Pe.label,kind:$.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:ke.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}})};const be="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var _e=Object.defineProperty,xe=($,R,L)=>R in $?_e($,R,{enumerable:!0,configurable:!0,writable:!0,value:L}):$[R]=L,de=($,R,L)=>xe($,typeof R!="symbol"?R+"":R,L);const ee=class El{constructor(R,L,oe){this.placeholder=R,this.editor=L,this.monaco=oe,L.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return El.ID}getDomNode(){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}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};de(ee,"ID","editor.widget.placeholderHint");var pe=ee,P=h(96236),ie=h(8591),Q=h(6848),v=h(89392),E=h(34604),K=h(56102),fe=Object.defineProperty,Be=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,pt=($,R,L)=>R in $?fe($,R,{enumerable:!0,configurable:!0,writable:!0,value:L}):$[R]=L,at=($,R)=>{for(var L in R||(R={}))Ye.call(R,L)&&pt($,L,R[L]);if(Me)for(var L of Me(R))ht.call(R,L)&&pt($,L,R[L]);return $},Bt=($,R)=>Be($,Ke(R)),Vt=($,R)=>{var L={};for(var oe in $)Ye.call($,oe)&&R.indexOf(oe)<0&&(L[oe]=$[oe]);if($!=null&&Me)for(var oe of Me($))R.indexOf(oe)<0&&ht.call($,oe)&&(L[oe]=$[oe]);return L},qt=($,R,L)=>new Promise((oe,le)=>{var J=ke=>{try{je(L.next(ke))}catch(Pe){le(Pe)}},De=ke=>{try{je(L.throw(ke))}catch(Pe){le(Pe)}},je=ke=>ke.done?oe(ke.value):Promise.resolve(ke.value).then(J,De);je((L=L.apply($,R)).next())});function $t($){return/^\d+$/.test($)?`${$}px`:$}function Gt(){}let lt=!1;const se={"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 ve($=[]){let R=$;if(Array.isArray($)){for(let L=0;L<$.length;L++){let oe=se[$[L]];if(oe)return oe}return R[0]}return se[R]||R}let ne=null;var Y=$=>{var R=$,{width:L="100%",height:oe="100%",value:le,language:J="javascript",style:De={},options:je={},overrideServices:ke={},theme:Pe="vs-dark",onEditBlur:Xe,isCopy:st=!1,onSave:Ge,autoHeight:gt=!1,forbidCopy:bt=!1,onChange:mt=Gt,editorDidMount:zt=Gt,onFocus:Ct=Gt,onBreakPoint:w=Gt,breakPointValue:A=[],filename:vt="educoder.txt",errorLine:ue,errorContent:Ne="",highlightLine:bn,openBreakPoint:We=!1,placeholder:rt=""}=R,Je=Vt(R,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Ee=(0,z.useRef)(),Te=(0,z.useRef)({}),ze=(0,z.useRef)(),qe=(0,z.useRef)(),ge=(0,z.useRef)([]),Jt=(0,z.useRef)(!1),He=(0,z.useRef)(),fn=(0,z.useRef)(),An=(0,z.useRef)(!1),[Hn,vr]=(0,z.useState)(!1);function hn(){let Mt;return Ee.current&&(Mt=new N.Z(At=>{for(let tn of At)(tn.target.offsetHeight>0||tn.target.offsetWidth>0)&&Te.current.instance.layout()}),Mt.observe(Ee.current)),Mt}function pn(){ie.ZP.warning({content:decodeURIComponent(be),key:"monaco-editor-tip"})}const et=()=>{let Mt=Te.current.instance;if(le!=null&&Mt&&Hn){const At=Mt.getModel();At&&le!==At.getValue()&&(lt=!0,At.setValue(le),Mt.layout(),lt=!1)}};(0,z.useEffect)(()=>{const Mt=E.Z.subscribe("formatDocument",At=>{var tn;let an=Te.current.instance;(tn=an==null?void 0:an.getAction)==null||tn.call(an,"editor.action.formatDocument").run()});return window.updateMonacoValue=At=>{mt(At)},Mt},[]),(0,z.useEffect)(()=>{var Mt;let At=Te.current.instance;qe.current&&clearTimeout(qe.current),qe.current=setTimeout(()=>{et()},500),le&&(le!=null&&le.length)&&((Mt=At==null?void 0:At.updateOptions)==null||Mt.call(At,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(le.split(/\r\n|\r|\n/g).length))+3,5)}))},[le,Hn,Te.current]),(0,z.useEffect)(()=>{if(ue&&Te.current&&Te.current.instance){let At=Te.current.instance;At.changeViewZones(function(tn){var an=document.createElement("div");an.style.padding="10px 20px",an.style.width="calc(100% - 20px)",an.className="my-error-line-wrp",an.innerHTML=Ne,tn.addZone({afterLineNumber:ue||11,heightInLines:3,domNode:an})});var Mt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};At.addOverlayWidget(Mt),At.revealPositionInCenter({lineNumber:20,column:1})}},[ue,Te.current,Hn]);const Rt=(Mt="",At)=>{if(!Mt||Mt.trim()==="")return!0;const an=Te.current.instance.getModel().getLineTokens(At);let on=!1;for(let Tn=0;Tn<2;Tn++)an.getStandardTokenType(Tn)===1&&(on=!0);return on};(0,z.useEffect)(()=>{var Mt;const At=(Mt=Te.current)==null?void 0:Mt.instance;if(At&&Hn&&bt){const tn=At.onDidBlurEditorWidget(()=>{An.current=!1}),an=At.onDidFocusEditorText(()=>{An.current=!0});return()=>{tn.dispose(),an.dispose()}}},[Te.current,Hn,bt]),(0,z.useEffect)(()=>{var Mt;if((Mt=Te.current)!=null&&Mt.instance&&Hn&&We){let At=Te.current.instance,tn=At.getModel();if(!tn)return;(()=>{var Kt;let Nt=[],ln=[];const xn=tn.getAllDecorations();for(let Qn of xn)Qn.options.className==="highlighted-line"&&(Nt.push((Kt=Qn==null?void 0:Qn.range)==null?void 0:Kt.startLineNumber),ln.push(Qn==null?void 0:Qn.id));if(bn===Nt[0])return;tn.deltaDecorations(ln,[]);const Rn=tn.getLineCount();bn&&bn<=Rn&&(At.deltaDecorations([],[{range:new ne.Range(bn,1,bn,tn.getLineMaxColumn(bn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),At.revealLineInCenter(bn))})();const on=(Kt=!1)=>{var Nt;let ln=[],xn=[];const Rn=tn.getAllDecorations();for(let Qn of Rn)Qn.options.linesDecorationsClassName==="breakpoints-select"&&(ln.push((Nt=Qn==null?void 0:Qn.range)==null?void 0:Nt.startLineNumber),xn.push(Qn==null?void 0:Qn.id));if(Kt)return{lines:ln,ids:xn};w(ln)},Tn=Kt=>qt(void 0,null,function*(){let Nt={range:new ne.Range(Kt,1,Kt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield tn.deltaDecorations([],[Nt]),on()}),er=Kt=>qt(void 0,null,function*(){let Nt=[];const ln=At.getLineDecorations(Kt);for(let xn of ln)xn.options.linesDecorationsClassName==="breakpoints-select"&&Nt.push(xn.id);yield tn.deltaDecorations(Nt,[]),on()}),Pn=Kt=>{let Nt=At.getLineDecorations(Kt);for(let ln of Nt)if(ln.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,v.isEqual)(A,on(!0).lines)){tn.deltaDecorations(on(!0).ids,[]);const Kt=A.map(Nt=>({range:new ne.Range(Nt,1,Nt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));tn.deltaDecorations([],Kt)}const Yt=At.onDidChangeModelContent(Kt=>{let Nt=At.getPosition();if(Nt){let ln=Nt.lineNumber;clearTimeout(fn.current),fn.current=setTimeout(()=>{Rt(tn.getLineContent(ln),ln)?er(ln):Pn(ln)?(er(ln),Tn(ln)):on()},100)}}),ct=At.onMouseDown(Kt=>{var Nt,ln,xn;if(Kt.target.detail&&((xn=(ln=(Nt=Kt.target)==null?void 0:Nt.element)==null?void 0:ln.className)!=null&&xn.includes("line-numbers"))){let Rn=Kt.target.position.lineNumber;if(Rt(tn.getLineContent(Rn),Rn))return;Pn(Rn)?er(Rn):Tn(Rn)}}),ft=Kt=>{let Nt={range:new ne.Range(Kt,1,Kt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ge.current=At.deltaDecorations(ge.current,[Nt])},Dt=()=>{ge.current=At.deltaDecorations(ge.current,[])},Ot=At.onMouseMove(Kt=>{var Nt,ln,xn;if(Dt(),Kt.target.detail&&((xn=(ln=(Nt=Kt.target)==null?void 0:Nt.element)==null?void 0:ln.className)!=null&&xn.includes("line-numbers"))){let Rn=Kt.target.position.lineNumber;if(Rt(tn.getLineContent(Rn),Rn))return;ft(Rn)}}),Tt=At.onMouseLeave(()=>{Dt()});return()=>{Yt.dispose(),ct.dispose(),Ot.dispose(),Tt.dispose()}}},[Te.current,Hn,A,bn,We,J]),(0,z.useEffect)(()=>{var Mt;(Mt=Te.current)!=null&&Mt.instance&&We&&Te.current.instance.setPosition({lineNumber:0,column:0})},[bn]);function Ft(){let Mt=Te.current.instance;if(Mt){const At=Mt.getSelection(),tn=Te.current.pastePos||{},an=new ne.Range(tn.startLineNumber||At.endLineNumber,tn.startColumn||At.endColumn,tn.endLineNumber||At.endLineNumber,tn.endColumn||At.endColumn);setTimeout(()=>{Mt.executeEdits("",[{range:an,text:""}])},300)}}function Ue(Mt){(window.navigator.platform.match("Mac")?Mt.metaKey:Mt.ctrlKey)&&Mt.keyCode==83&&(Mt.preventDefault(),Ge())}const Oe=()=>{if(gt&&Te.current.instance){const Mt=Te.current.instance.getContentHeight();vn(Mt<oe?oe:Mt)}else vn(oe)};function xt(Mt){var At=document.createEvent("MouseEvents");At.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Mt.dispatchEvent(At)}const St=Mt=>{if(!An.current)return;const{keyCode:At,ctrlKey:tn,metaKey:an,target:on,type:Tn}=Mt;return(Tn==="paste"||(At===67||At===86)&&(an||tn))&&on.nodeName==="TEXTAREA"&&(pn(),Mt.preventDefault()),!1};function en(Mt,At){var tn=window.URL||window.webkitURL||window,an=new Blob([At]),on=document.createElementNS("http://www.w3.org/1999/xhtml","a");on.href=tn.createObjectURL(an),on.download=Mt,xt(on)}(0,z.useEffect)(()=>{Oe()},[Oe]),(0,z.useEffect)(()=>{Ee.current&&!Hn&&Promise.all([h.e(8909),h.e(3267)]).then(h.bind(h,71448)).then(Mt=>{try{ne=Mt,Te.current.instance=ne.editor.create(Ee.current,{value:le,language:ve(J),theme:Pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},ke);const At=Te.current.instance;let on=[...P.BH._menuItems].find(Yt=>Yt[0]._debugName=="EditorContext")[1],Tn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],er=(Yt,ct)=>{var ft,Dt;let Ot=Yt._first;do ct.includes((Dt=(ft=Ot.element)==null?void 0:ft.command)==null?void 0:Dt.id)&&Yt._remove(Ot);while(Ot=Ot.next)};if(zt(At,ne),setTimeout(()=>{Oe(),Te.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{en(vt||"educoder.txt",At.getValue())}})},500),Te.current.subscription=At.onDidChangeModelContent(Yt=>{Jt.current?clearTimeout(He.current):(Oe(),mt(At.getValue(),Yt)),He.current=setTimeout(()=>{Jt.current=!1},500)}),window.Monaco||j(ne,ve(J)),bt&&(er(on,Tn),Ee.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",St),window.removeEventListener("paste",St),window.addEventListener("keydown",St),window.addEventListener("paste",St)),window.Monaco=ne,Xe&&At.onDidBlurEditorWidget(()=>{Xe(At.getValue())}),Ct&&At.onDidFocusEditorText(()=>{Ct(At.getValue())}),bt)try{At.onDidPaste(Yt=>{const ct=At.getSelection(),ft=Te.current.pastePos||{},Dt=new ne.Range(ft.startLineNumber||ct.endLineNumber,ft.startColumn||ct.endColumn,ft.endLineNumber||ct.endLineNumber,ft.endColumn||ct.endColumn);At.executeEdits("",[{range:Yt.range,text:""}])})}catch(Yt){}let Pn=hn();return rt&&typeof rt=="string"&&new pe(rt,At,ne),vr(!0),()=>{const Yt=Te.current.instance;Yt.dispose();const ct=Yt.getModel();ct&&ct.dispose(),Te.current.subscription&&Te.current.subscription.dispose(),Pn.unobserve(Ee.current)}}catch(At){}})},[]),(0,z.useEffect)(()=>{if(Te.current.instance&&Hn)return document.addEventListener("keydown",Ue,!1),()=>{document.removeEventListener("keydown",Ue)}},[Ge,Hn]),(0,z.useEffect)(()=>{let Mt=Te.current.instance;if(Mt&&Hn){let At=ve(J);ne.editor.setModelLanguage(Mt.getModel(),At)}},[J,Hn]),(0,z.useEffect)(()=>{Te.current.instance&&Hn&&ne.editor.setTheme(Pe)},[Pe,Hn]),(0,z.useEffect)(()=>{let Mt=Te.current.instance;ze.current=je,Mt&&Hn&&(Mt.updateOptions(at({},je)),setTimeout(()=>{Mt.getModel().updateOptions(at({},je))},200))},[JSON.stringify(je),Hn]),(0,z.useEffect)(()=>{let Mt=Te.current.instance;Mt&&Hn&&Mt.layout()},[L,oe,Hn]);const[jt,sn]=(0,z.useState)($t(L)),[Xt,vn]=(0,z.useState)($t(oe)),_n=Bt(at({},De),{width:jt,height:Xt,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:Ee,style:_n},st&&z.createElement(K.CopyToClipboard,{text:le,onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Q.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ae({width:$="100%",height:R="100%",original:L,modified:oe,language:le,options:J={}}){const De=(0,z.useRef)(),[je,ke]=(0,z.useState)(null);function Pe(gt){let bt;return De.current&&(bt=new N.Z(mt=>{for(let zt of mt)(zt.target.offsetHeight>0||zt.target.offsetWidth>0)&&gt.layout()}),bt.observe(De.current)),bt}(0,z.useEffect)(()=>(De.current&&Promise.all([h.e(8909),h.e(9404)]).then(h.bind(h,2550)).then(gt=>{ne=gt;const bt=ne.editor.createDiffEditor(De.current,Bt(at({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},J),{wordWrap:!0}));ke(bt);let mt=Pe(bt);return()=>{bt.dispose();const zt=bt.getModel();zt&&zt.dispose(),mt.unobserve(De.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{je&&je.setModel({original:ne.editor.createModel(L,le),modified:ne.editor.createModel(oe,le)})},[L,oe,le,je]);const Xe=$t($),st=$t(R),Ge={width:Xe,height:st};return z.createElement("div",{className:"my-diff-editor",ref:De,style:Ge})}},60913:function(Wt,Ze,h){"use strict";h.d(Ze,{H:function(){return S}});var z=h(59301),N=h(78241),X=h(92832),ye=h(42441),U=h(85149);const H=({form:me,index:a=1,field:C,ParentName:I=[]})=>{(typeof I=="string"||typeof I=="number")&&(I=[I]);const m=N.default.useWatch([...I,C.name,"chart_1"],{form:me}),u=N.default.useWatch([...I,C.name,"chart_2"],{form:me}),x=N.default.useWatch([...I,C.name,"name"],{form:me}),y=N.default.useWatch([...I,C.name,"question_type"],{form:me}),O=(0,z.useMemo)(()=>{const B=[],M=[];return m==null||m.forEach(W=>{B.push(W==null?void 0:W.x_axis),M.push(W==null?void 0:W.y_axis)}),{tooltip:{},grid:{left:"7%",right:"5%",bottom:"15%",top:"15%",containLabel:!0},xAxis:{type:"category",data:[...B||[],[4,5,6,7,8].includes(y)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:M,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[m]),te=(0,z.useMemo)(()=>{const B=[],M=[];return u==null||u.forEach(W=>{B.push(W==null?void 0:W.x_axis),M.push(Math.round((W==null?void 0:W.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...B||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(W,V)=>W!=="\u9898\u76EE"?`${V+1}
{subtext|${(W.length>6?W==null?void 0:W.slice(0,6):W).split("").join(`
`)}}`:W,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:M,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[u]);return z.createElement(z.Fragment,null,z.createElement("div",{className:"text-500 font14 mb10"},a,".",x),z.createElement(N.default.Item,{name:[C.name,"content"]},z.createElement(X.default.TextArea,{rows:3})),z.createElement("div",{className:"mt20"},z.createElement("div",{className:"font14 mb10"},"\u5B66\u5458\u7B54\u9898\u60C5\u51B5"),z.createElement(ye.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB"},option:O})),z.createElement("div",{className:"mt20"},z.createElement("div",{className:"font14 mb10"},"\u5404\u5C0F\u9898\u7B54\u9898\u60C5\u51B5"),z.createElement(ye.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB",height:331},option:te})))};Ze.Z=z.memo(H);const S=z.memo(({form:me,index:a=1,data:C})=>{const I=(0,z.useMemo)(()=>{var u;const x=[],y=[];return(u=C==null?void 0:C.chart_1)==null||u.forEach(O=>{x.push(O==null?void 0:O.x_axis),y.push(O==null?void 0:O.y_axis)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"15%",top:"20%",containLabel:!0},xAxis:{type:"category",data:[...x||[],[4,5,6,7,8].includes(C==null?void 0:C.question_type)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:y,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[C==null?void 0:C.chart_1]),m=(0,z.useMemo)(()=>{var u;const x=[],y=[];return(u=C==null?void 0:C.chart_2)==null||u.forEach(O=>{x.push(O==null?void 0:O.x_axis),y.push(Math.round((O==null?void 0:O.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...x||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(O,te)=>O!=="\u9898\u76EE"?`${te+1}
{subtext|${(O.length>6?O==null?void 0:O.slice(0,6):O).split("").join(`
`)}}`:O,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:y,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[C==null?void 0:C.chart_2]);return z.createElement("div",{className:"text-start pl10 pr10"},z.createElement("div",{className:"text-500 font14 mb10 c-black"},a,".",C==null?void 0:C.name),z.createElement("div",null,z.createElement(U.Z,{className:"font14 c-grey-333",value:C==null?void 0:C.content})),z.createElement("div",{className:"mt20"},z.createElement(ye.Z,{className:"bg-white",style:{background:"#F6F7F9"},option:I}),z.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",a*2-1,"\xA0\xA0",C==null?void 0:C.name,"\u7B54\u9898\u5F97\u5206\u60C5\u51B5\u5206\u5E03")),z.createElement("div",{className:"mt20"},z.createElement(ye.Z,{className:"bg-white",style:{background:"#F6F7F9",height:331},option:m}),z.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",a*2,"\xA0\xA0",C==null?void 0:C.name,"\u5404\u5C0F\u9898\u5F97\u5206\u7387")))})},83312:function(Wt,Ze,h){"use strict";h.d(Ze,{U:function(){return a}});var z=h(59301),N=Object.defineProperty,X=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,H=(C,I,m)=>I in C?N(C,I,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[I]=m,S=(C,I)=>{for(var m in I||(I={}))ye.call(I,m)&&H(C,m,I[m]);if(X)for(var m of X(I))U.call(I,m)&&H(C,m,I[m]);return C},me=(C,I,m)=>new Promise((u,x)=>{var y=B=>{try{te(m.next(B))}catch(M){x(M)}},O=B=>{try{te(m.throw(B))}catch(M){x(M)}},te=B=>B.done?u(B.value):Promise.resolve(B.value).then(y,O);te((m=m.apply(C,I)).next())});function a(C,I){const[m,u]=(0,z.useState)(I),[x,y]=(0,z.useState)(!1),[O,te]=(0,z.useState)();return[m,x,(M,W=!1)=>me(this,null,function*(){const V=W?I:S(S({},m),M);y(!0),u(V);const b=yield C(V);return y(!1),te(b),b}),O,te]}},24768:function(Wt,Ze,h){"use strict";h.d(Ze,{AL:function(){return V},Iy:function(){return I},Qv:function(){return x},ez:function(){return W},jb:function(){return m}});var z=h(32834),N=h.n(z),X=h(11690),ye=h.n(X);let U=1;function H(be,_e){const xe=be.match(/^(\s+)(?:```)/);if(xe===null)return _e;const de=xe[1];return _e.split(`
`).map(ee=>{const Z=ee.match(/^\s+/);if(Z===null)return ee;const[pe]=Z;return pe.length>=de.length?ee.slice(de.length):ee}).join(`
`)}let S=[],me=["<ul>"];const a=new(N()).Renderer,C=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function I(){S.length=0,me=["<ul>"]}const m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function u(be,_e,xe,de){if(_e>=be.length||be[_e].level<=xe)return _e;var ee=be[_e];de.push("<li><a href='#"+U+ee.anchor+"'>"+ee.text+"</a>"),_e++;var Z=[];return _e=u(be,_e,ee.level,Z),Z.length>0&&(de.push("<ul>"),Z.forEach(function(pe){de.push(pe)}),de.push("</ul>")),de.push("</li>"),_e=u(be,_e,xe,de),_e}function x(){return u(S,0,0,me),me.push("</ul>"),me.join("")}const y={heading(be){const _e=C.exec(be);if(U+=1,_e)return{type:"heading",raw:_e[0],depth:_e[1].length,text:_e[2]}},fences(be){const _e=this.rules.block.fences.exec(be);if(_e){const xe=_e[0];let de=H(xe,_e[3]||"");const ee=_e[2]?_e[2].trim():_e[2];if(["latex","katex","math"].indexOf(ee)>=0){const Z=B(),pe=de;de=Z,M[Z]={type:"block",expression:pe}}return{type:"code",raw:xe,lang:ee,text:de}}}},O=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let te=0;const B=()=>`__special_katext_id_${te++}__`;let M={};function W(){return M}function V(){te=0,M={}}function b(be){return be=be.replace(O,(_e,xe)=>{const de=B();return M[de]={type:"inline",expression:xe},de}),be}const T=a.listitem;a.listitem=function(be){return T(b(be))};const G=a.paragraph;a.paragraph=function(be){return G(b(be))};const j=a.tablecell;a.tablecell=function(be,_e){return j(b(be),_e)},a.code=function(be,_e,xe){const de=(_e||"").match(/\S*/)[0];return de?["latex","katex","math"].indexOf(de)>=0?`<p class='editormd-tex'>${be}</p>`:`<pre class="prettyprint linenums"><code class="language-${_e}">${xe?be:(0,X.escape)(be,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(xe?be:(0,X.escape)(be,!0))+"</code></pre>"},a.heading=function(be,_e,xe){let de=this.options.headerPrefix+xe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return S.push({anchor:de,level:_e,text:be}),"<h"+_e+' id="'+U+de+'">'+be+"</h"+_e+">"},N().setOptions({silent:!0,gfm:!0,pedantic:!1}),N().use({tokenizer:y,renderer:a}),Ze.ZP=N()},36785:function(Wt,Ze,h){"use strict";h.d(Ze,{o2:function(){return U},yT:function(){return H}});var z=h(26407),N=h(33166);const X=N.i.map(S=>`${S}-inverse`),ye=["success","processing","error","default","warning"];function U(S){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,z.Z)(X),(0,z.Z)(N.i)).includes(S):N.i.includes(S)}function H(S){return ye.includes(S)}},50371:function(Wt,Ze){"use strict";function h(){const z=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let N=1;N<arguments.length;N++){const X=N<0||arguments.length<=N?void 0:arguments[N];X&&Object.keys(X).forEach(ye=>{const U=X[ye];U!==void 0&&(z[ye]=U)})}return z}Ze.Z=h},13845:function(Wt,Ze,h){"use strict";h.d(Ze,{F:function(){return z},Z:function(){return N}});function z(X){return X!=null&&X===X.window}function N(X,ye){var U,H;if(typeof window=="undefined")return 0;const S=ye?"scrollTop":"scrollLeft";let me=0;return z(X)?me=X[ye?"pageYOffset":"pageXOffset"]:X instanceof Document?me=X.documentElement[S]:(X instanceof HTMLElement||X)&&(me=X[S]),X&&!z(X)&&typeof me!="number"&&(me=(H=((U=X.ownerDocument)!==null&&U!==void 0?U:X).documentElement)===null||H===void 0?void 0:H[S]),me}},56762:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return N}});var z=h(59301);function N(){const[,X]=z.useReducer(ye=>ye+1,0);return X}},79676:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return H}});var z=h(19447);function N(S,me,a,C){if(C===!1)return{adjustX:!1,adjustY:!1};const I=C&&typeof C=="object"?C:{},m={};switch(S){case"top":case"bottom":m.shiftX=me.dropdownArrowOffset*2+a;break;case"left":case"right":m.shiftY=me.dropdownArrowOffsetVertical*2+a;break}const u=Object.assign(Object.assign({},m),I);return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const X={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"]}},ye={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"]}},U=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function H(S){const{arrowWidth:me,autoAdjustOverflow:a,arrowPointAtCenter:C,offset:I,borderRadius:m,visibleFirst:u}=S,x=me/2,y={};return Object.keys(X).forEach(O=>{const te=C&&ye[O]||X[O],B=Object.assign(Object.assign({},te),{offset:[0,0]});switch(y[O]=B,U.has(O)&&(B.autoArrow=!1),O){case"top":case"topLeft":case"topRight":B.offset[1]=-x-I;break;case"bottom":case"bottomLeft":case"bottomRight":B.offset[1]=x+I;break;case"left":case"leftTop":case"leftBottom":B.offset[0]=-x-I;break;case"right":case"rightTop":case"rightBottom":B.offset[0]=x+I;break}const M=(0,z.fS)({contentRadius:m,limitVerticalRadius:!0});if(C)switch(O){case"topLeft":case"bottomLeft":B.offset[0]=-M.dropdownArrowOffset-x;break;case"topRight":case"bottomRight":B.offset[0]=M.dropdownArrowOffset+x;break;case"leftTop":case"rightTop":B.offset[1]=-M.dropdownArrowOffset-x;break;case"leftBottom":case"rightBottom":B.offset[1]=M.dropdownArrowOffset+x;break}B.overflow=N(O,M,me,a),u&&(B.htmlRegion="visibleFirst")}),y}},68031:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return ye}});var z=h(16089);function N(U,H,S,me){const a=S-H;return U/=me/2,U<1?a/2*U*U*U+H:a/2*((U-=2)*U*U+2)+H}var X=h(13845);function ye(U){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:me,duration:a=450}=H,C=S(),I=(0,X.Z)(C,!0),m=Date.now(),u=()=>{const y=Date.now()-m,O=N(y>a?a:y,I,U,a);(0,X.F)(C)?C.scrollTo(window.pageXOffset,O):C instanceof Document||C.constructor.name==="HTMLDocument"?C.documentElement.scrollTop=O:C.scrollTop=O,y<a?(0,z.Z)(u):typeof me=="function"&&me()};(0,z.Z)(u)}},19080:function(Wt,Ze,h){"use strict";h.d(Ze,{F:function(){return U},Z:function(){return ye}});var z=h(92310),N=h.n(z);const X=null;function ye(H,S,me){return N()({[`${H}-status-success`]:S==="success",[`${H}-status-warning`]:S==="warning",[`${H}-status-error`]:S==="error",[`${H}-status-validating`]:S==="validating",[`${H}-has-feedback`]:me})}const U=(H,S)=>S||H},66104:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return pe}});var z=h(92310),N=h.n(z),X=h(11592),ye=h(26112),U=h(59301),H=h(92343),S=h(36355),me=h(84105),a=h(91857);const C=P=>{let{children:ie}=P;const{getPrefixCls:Q}=U.useContext(S.E_),v=Q("breadcrumb");return U.createElement("li",{className:`${v}-separator`,"aria-hidden":"true"},ie===""?ie:ie||"/")};C.__ANT_BREADCRUMB_SEPARATOR=!0;var I=C,m=function(P,ie){var Q={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&ie.indexOf(v)<0&&(Q[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)ie.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(Q[v[E]]=P[v[E]]);return Q};function u(P,ie){if(P.title===void 0||P.title===null)return null;const Q=Object.keys(ie).join("|");return typeof P.title=="object"?P.title:String(P.title).replace(new RegExp(`:(${Q})`,"g"),(v,E)=>ie[E]||v)}function x(P,ie,Q,v){if(Q==null)return null;const{className:E,onClick:K}=ie,fe=m(ie,["className","onClick"]),Be=Object.assign(Object.assign({},(0,ye.Z)(fe,{data:!0,aria:!0})),{onClick:K});return v!==void 0?U.createElement("a",Object.assign({},Be,{className:N()(`${P}-link`,E),href:v}),Q):U.createElement("span",Object.assign({},Be,{className:N()(`${P}-link`,E)}),Q)}function y(P,ie){return(v,E,K,fe,Be)=>{if(ie)return ie(v,E,K,fe);const Ke=u(v,E);return x(P,v,Ke,Be)}}var O=function(P,ie){var Q={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&ie.indexOf(v)<0&&(Q[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)ie.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(Q[v[E]]=P[v[E]]);return Q};const te=P=>{const{prefixCls:ie,separator:Q="/",children:v,menu:E,overlay:K,dropdownProps:fe,href:Be}=P,Me=(Ye=>{if(E||K){const ht=Object.assign({},fe);if(E){const pt=E||{},{items:at}=pt,Bt=O(pt,["items"]);ht.menu=Object.assign(Object.assign({},Bt),{items:at==null?void 0:at.map((Vt,qt)=>{var{key:$t,title:Gt,label:lt,path:se}=Vt,ve=O(Vt,["key","title","label","path"]);let ne=lt!=null?lt:Gt;return se&&(ne=U.createElement("a",{href:`${Be}${se}`},ne)),Object.assign(Object.assign({},ve),{key:$t!=null?$t:qt,label:ne})})})}else K&&(ht.overlay=K);return U.createElement(a.Z,Object.assign({placement:"bottom"},ht),U.createElement("span",{className:`${ie}-overlay-link`},Ye,U.createElement(me.Z,null)))}return Ye})(v);return Me!=null?U.createElement(U.Fragment,null,U.createElement("li",null,Me),Q&&U.createElement(I,null,Q)):null},B=P=>{const{prefixCls:ie,children:Q,href:v}=P,E=O(P,["prefixCls","children","href"]),{getPrefixCls:K}=U.useContext(S.E_),fe=K("breadcrumb",ie);return U.createElement(te,Object.assign({},E,{prefixCls:fe}),x(fe,E,Q,v))};B.__ANT_BREADCRUMB_ITEM=!0;var M=B,W=h(17313),V=h(83116),b=h(37613);const T=P=>{const{componentCls:ie,iconCls:Q}=P;return{[ie]:Object.assign(Object.assign({},(0,W.Wf)(P)),{color:P.itemColor,fontSize:P.fontSize,[Q]:{fontSize:P.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:P.linkColor,transition:`color ${P.motionDurationMid}`,padding:`0 ${P.paddingXXS}px`,borderRadius:P.borderRadiusSM,height:P.lineHeight*P.fontSize,display:"inline-block",marginInline:-P.marginXXS,"&:hover":{color:P.linkHoverColor,backgroundColor:P.colorBgTextHover}},(0,W.Qy)(P)),"li:last-child":{color:P.lastItemColor},[`${ie}-separator`]:{marginInline:P.separatorMargin,color:P.separatorColor},[`${ie}-link`]:{[`
> ${Q} + span,
> ${Q} + a
`]:{marginInlineStart:P.marginXXS}},[`${ie}-overlay-link`]:{borderRadius:P.borderRadiusSM,height:P.lineHeight*P.fontSize,display:"inline-block",padding:`0 ${P.paddingXXS}px`,marginInline:-P.marginXXS,[`> ${Q}`]:{marginInlineStart:P.marginXXS,fontSize:P.fontSizeIcon},"&:hover":{color:P.linkHoverColor,backgroundColor:P.colorBgTextHover,a:{color:P.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${P.componentCls}-rtl`]:{direction:"rtl"}})}};var G=(0,V.Z)("Breadcrumb",P=>{const ie=(0,b.TS)(P,{});return[T(ie)]},P=>({itemColor:P.colorTextDescription,lastItemColor:P.colorText,iconFontSize:P.fontSize,linkColor:P.colorTextDescription,linkHoverColor:P.colorText,separatorColor:P.colorTextDescription,separatorMargin:P.marginXS})),j=function(P,ie){var Q={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&ie.indexOf(v)<0&&(Q[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)ie.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(Q[v[E]]=P[v[E]]);return Q};function be(P){const{breadcrumbName:ie,children:Q}=P,v=j(P,["breadcrumbName","children"]),E=Object.assign({title:ie},v);return Q&&(E.menu={items:Q.map(K=>{var{breadcrumbName:fe}=K,Be=j(K,["breadcrumbName"]);return Object.assign(Object.assign({},Be),{title:fe})})}),E}function _e(P,ie){return(0,U.useMemo)(()=>P||(ie?ie.map(be):null),[P,ie])}var xe=function(P,ie){var Q={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&ie.indexOf(v)<0&&(Q[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)ie.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(Q[v[E]]=P[v[E]]);return Q};const de=(P,ie)=>{if(ie===void 0)return ie;let Q=(ie||"").replace(/^\//,"");return Object.keys(P).forEach(v=>{Q=Q.replace(`:${v}`,P[v])}),Q},ee=P=>{const{prefixCls:ie,separator:Q="/",style:v,className:E,rootClassName:K,routes:fe,items:Be,children:Ke,itemRender:Me,params:Ye={}}=P,ht=xe(P,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pt,direction:at,breadcrumb:Bt}=U.useContext(S.E_);let Vt;const qt=pt("breadcrumb",ie),[$t,Gt]=G(qt),lt=_e(Be,fe),se=y(qt,Me);if(lt&&lt.length>0){const Y=[],Ae=Be||fe;Vt=lt.map(($,R)=>{const{path:L,key:oe,type:le,menu:J,overlay:De,onClick:je,className:ke,separator:Pe,dropdownProps:Xe}=$,st=de(Ye,L);st!==void 0&&Y.push(st);const Ge=oe!=null?oe:R;if(le==="separator")return U.createElement(I,{key:Ge},Pe);const gt={},bt=R===lt.length-1;J?gt.menu=J:De&&(gt.overlay=De);let{href:mt}=$;return Y.length&&st!==void 0&&(mt=`#/${Y.join("/")}`),U.createElement(te,Object.assign({key:Ge},gt,(0,ye.Z)($,{data:!0,aria:!0}),{className:ke,dropdownProps:Xe,href:mt,separator:bt?"":Q,onClick:je,prefixCls:qt}),se($,Ye,Ae,Y,mt))})}else if(Ke){const Y=(0,X.Z)(Ke).length;Vt=(0,X.Z)(Ke).map((Ae,$)=>{if(!Ae)return Ae;const R=$===Y-1;return(0,H.Tm)(Ae,{separator:R?"":Q,key:$})})}const ve=N()(qt,Bt==null?void 0:Bt.className,{[`${qt}-rtl`]:at==="rtl"},E,K,Gt),ne=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),v);return $t(U.createElement("nav",Object.assign({className:ve,style:ne},ht),U.createElement("ol",null,Vt)))};ee.Item=M,ee.Separator=I;var Z=ee,pe=Z},24905:function(Wt,Ze,h){"use strict";h.d(Ze,{default:function(){return G}});var z=h(92310),N=h.n(z),X=h(5630),ye=h(59301),U=h(36355),H=h(1684),S=h(32441),a=ye.createContext(null),C=h(98447),I=h(14088),m=h(4572),u=function(j,be){var _e={};for(var xe in j)Object.prototype.hasOwnProperty.call(j,xe)&&be.indexOf(xe)<0&&(_e[xe]=j[xe]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,xe=Object.getOwnPropertySymbols(j);de<xe.length;de++)be.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call(j,xe[de])&&(_e[xe[de]]=j[xe[de]]);return _e};const x=(j,be)=>{var _e;const{prefixCls:xe,className:de,rootClassName:ee,children:Z,indeterminate:pe=!1,style:P,onMouseEnter:ie,onMouseLeave:Q,skipGroup:v=!1,disabled:E}=j,K=u(j,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:fe,direction:Be,checkbox:Ke}=ye.useContext(U.E_),Me=ye.useContext(a),{isFormItemInput:Ye}=ye.useContext(S.aM),ht=ye.useContext(H.Z),pt=(_e=(Me==null?void 0:Me.disabled)||E)!==null&&_e!==void 0?_e:ht,at=ye.useRef(K.value);ye.useEffect(()=>{Me==null||Me.registerValue(K.value)},[]),ye.useEffect(()=>{if(!v)return K.value!==at.current&&(Me==null||Me.cancelValue(at.current),Me==null||Me.registerValue(K.value),at.current=K.value),()=>Me==null?void 0:Me.cancelValue(K.value)},[K.value]);const Bt=fe("checkbox",xe),[Vt,qt]=(0,C.ZP)(Bt),$t=Object.assign({},K);Me&&!v&&($t.onChange=function(){K.onChange&&K.onChange.apply(K,arguments),Me.toggleOption&&Me.toggleOption({label:Z,value:K.value})},$t.name=Me.name,$t.checked=Me.value.includes(K.value));const Gt=N()(`${Bt}-wrapper`,{[`${Bt}-rtl`]:Be==="rtl",[`${Bt}-wrapper-checked`]:$t.checked,[`${Bt}-wrapper-disabled`]:pt,[`${Bt}-wrapper-in-form-item`]:Ye},Ke==null?void 0:Ke.className,de,ee,qt),lt=N()({[`${Bt}-indeterminate`]:pe},m.A,qt),se=pe?"mixed":void 0;return Vt(ye.createElement(I.Z,{component:"Checkbox",disabled:pt},ye.createElement("label",{className:Gt,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),P),onMouseEnter:ie,onMouseLeave:Q},ye.createElement(X.Z,Object.assign({"aria-checked":se},$t,{prefixCls:Bt,className:lt,disabled:pt,ref:be})),Z!==void 0&&ye.createElement("span",null,Z))))};var O=ye.forwardRef(x),te=h(26407),B=h(2738),M=function(j,be){var _e={};for(var xe in j)Object.prototype.hasOwnProperty.call(j,xe)&&be.indexOf(xe)<0&&(_e[xe]=j[xe]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,xe=Object.getOwnPropertySymbols(j);de<xe.length;de++)be.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call(j,xe[de])&&(_e[xe[de]]=j[xe[de]]);return _e};const W=(j,be)=>{const{defaultValue:_e,children:xe,options:de=[],prefixCls:ee,className:Z,rootClassName:pe,style:P,onChange:ie}=j,Q=M(j,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:E}=ye.useContext(U.E_),[K,fe]=ye.useState(Q.value||_e||[]),[Be,Ke]=ye.useState([]);ye.useEffect(()=>{"value"in Q&&fe(Q.value||[])},[Q.value]);const Me=ye.useMemo(()=>de.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[de]),Ye=ve=>{Ke(ne=>ne.filter(Y=>Y!==ve))},ht=ve=>{Ke(ne=>[].concat((0,te.Z)(ne),[ve]))},pt=ve=>{const ne=K.indexOf(ve.value),Y=(0,te.Z)(K);ne===-1?Y.push(ve.value):Y.splice(ne,1),"value"in Q||fe(Y),ie==null||ie(Y.filter(Ae=>Be.includes(Ae)).sort((Ae,$)=>{const R=Me.findIndex(oe=>oe.value===Ae),L=Me.findIndex(oe=>oe.value===$);return R-L}))},at=v("checkbox",ee),Bt=`${at}-group`,[Vt,qt]=(0,C.ZP)(at),$t=(0,B.Z)(Q,["value","disabled"]),Gt=de.length?Me.map(ve=>ye.createElement(O,{prefixCls:at,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:Q.disabled,value:ve.value,checked:K.includes(ve.value),onChange:ve.onChange,className:`${Bt}-item`,style:ve.style,title:ve.title},ve.label)):xe,lt={toggleOption:pt,value:K,disabled:Q.disabled,name:Q.name,registerValue:ht,cancelValue:Ye},se=N()(Bt,{[`${Bt}-rtl`]:E==="rtl"},Z,pe,qt);return Vt(ye.createElement("div",Object.assign({className:se,style:P},$t,{ref:be}),ye.createElement(a.Provider,{value:lt},Gt)))},V=ye.forwardRef(W);var b=ye.memo(V);const T=O;T.Group=b,T.__ANT_CHECKBOX=!0;var G=T},98447:function(Wt,Ze,h){"use strict";h.d(Ze,{C2:function(){return U}});var z=h(17313),N=h(37613),X=h(83116);const ye=H=>{const{checkboxCls:S}=H,me=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,z.Wf)(H)),{display:"inline-flex",flexWrap:"wrap",columnGap:H.marginXS,[`> ${H.antCls}-row`]:{flex:1}}),[me]:Object.assign(Object.assign({},(0,z.Wf)(H)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${me}`]:{marginInlineStart:0},[`&${me}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,z.Wf)(H)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:H.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,z.oN)(H))},[`${S}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:H.checkboxSize,height:H.checkboxSize,direction:"ltr",backgroundColor:H.colorBgContainer,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadiusSM,borderCollapse:"separate",transition:`all ${H.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:H.checkboxSize/14*5,height:H.checkboxSize/14*8,border:`${H.lineWidthBold}px solid ${H.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${H.motionDurationFast} ${H.motionEaseInBack}, opacity ${H.motionDurationFast}`}},"& + span":{paddingInlineStart:H.paddingXS,paddingInlineEnd:H.paddingXS}})},{[`
${me}:not(${me}-disabled),
${S}:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{borderColor:H.colorPrimary}},[`${me}:not(${me}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:H.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:H.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-inner`]:{backgroundColor:H.colorPrimary,borderColor:H.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${H.motionDurationMid} ${H.motionEaseOutBack} ${H.motionDurationFast}`}}},[`
${me}-checked:not(${me}-disabled),
${S}-checked:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{backgroundColor:H.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-inner`]:{backgroundColor:H.colorBgContainer,borderColor:H.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:H.fontSizeLG/2,height:H.fontSizeLG/2,backgroundColor:H.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${me}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:H.colorBgContainerDisabled,borderColor:H.colorBorder,"&:after":{borderColor:H.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:H.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:H.colorTextDisabled}}}]};function U(H,S){const me=(0,N.TS)(S,{checkboxCls:`.${H}`,checkboxSize:S.controlInteractiveSize});return[ye(me)]}Ze.ZP=(0,X.Z)("Checkbox",(H,S)=>{let{prefixCls:me}=S;return[U(me,H)]})},93891:function(Wt,Ze,h){"use strict";var z=h(59301),N=h(36355),X=h(64165);const ye=U=>{const{componentName:H}=U,{getPrefixCls:S}=(0,z.useContext)(N.E_),me=S("empty");switch(H){case"Table":case"List":return z.createElement(X.Z,{image:X.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(X.Z,{image:X.Z.PRESENTED_IMAGE_SIMPLE,className:`${me}-small`});default:return z.createElement(X.Z,null)}};Ze.Z=ye},91857:function(Wt,Ze,h){"use strict";var z=h(59301),N=h(38819),X=h(92310),ye=h.n(X),U=h(31561),H=h(70425),S=h(18929),me=h(2738),a=h(79676),C=h(53487),I=h(92343),m=h(36355),u=h(20834),x=h(40875),y=h(88088),O=h(47211);const te=null,B=b=>{const{menu:T,arrow:G,prefixCls:j,children:be,trigger:_e,disabled:xe,dropdownRender:de,getPopupContainer:ee,overlayClassName:Z,rootClassName:pe,open:P,onOpenChange:ie,visible:Q,onVisibleChange:v,mouseEnterDelay:E=.15,mouseLeaveDelay:K=.1,autoAdjustOverflow:fe=!0,placement:Be="",overlay:Ke,transitionName:Me}=b,{getPopupContainer:Ye,getPrefixCls:ht,direction:pt}=z.useContext(m.E_),at=z.useMemo(()=>{const J=ht();return Me!==void 0?Me:Be.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[ht,Be,Me]),Bt=z.useMemo(()=>Be?Be.includes("Center")?Be.slice(0,Be.indexOf("Center")):Be:pt==="rtl"?"bottomRight":"bottomLeft",[Be,pt]),Vt=ht("dropdown",j),[qt,$t]=(0,O.Z)(Vt),[,Gt]=(0,y.Z)(),lt=z.Children.only(be),se=(0,I.Tm)(lt,{className:ye()(`${Vt}-trigger`,{[`${Vt}-rtl`]:pt==="rtl"},lt.props.className),disabled:xe}),ve=xe?[]:_e;let ne;ve&&ve.includes("contextMenu")&&(ne=!0);const[Y,Ae]=(0,S.Z)(!1,{value:P!=null?P:Q}),$=(0,H.useEvent)(J=>{ie==null||ie(J),v==null||v(J),Ae(J)}),R=ye()(Z,pe,$t,{[`${Vt}-rtl`]:pt==="rtl"}),L=(0,a.Z)({arrowPointAtCenter:typeof G=="object"&&G.pointAtCenter,autoAdjustOverflow:fe,offset:Gt.marginXXS,arrowWidth:G?Gt.sizePopupArrow:0,borderRadius:Gt.borderRadius}),oe=z.useCallback(()=>{Ae(!1)},[]),le=()=>{let J;return T!=null&&T.items?J=z.createElement(u.default,Object.assign({},T)):typeof Ke=="function"?J=Ke():J=Ke,de&&(J=de(J)),J=z.Children.only(typeof J=="string"?z.createElement("span",null,J):J),z.createElement(x.J,{prefixCls:`${Vt}-menu`,expandIcon:z.createElement("span",{className:`${Vt}-menu-submenu-arrow`},z.createElement(N.Z,{className:`${Vt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:De=>{let{mode:je}=De}},J)};return qt(z.createElement(U.Z,Object.assign({alignPoint:ne},(0,me.Z)(b,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:K,visible:Y,builtinPlacements:L,arrow:!!G,overlayClassName:R,prefixCls:Vt,getPopupContainer:ee||Ye,transitionName:at,trigger:ve,overlay:le,placement:Bt,onVisibleChange:$}),se))};function M(b){return Object.assign(Object.assign({},b),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const W=(0,C.Z)(B,"dropdown",b=>b,M),V=b=>z.createElement(W,Object.assign({},b),z.createElement("span",null));B._InternalPanelDoNotUseOrYouWillBeFired=V,Ze.Z=B},38854:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return y}});var z=h(91857),N=h(92310),X=h.n(N),ye=h(59301),U=h(18785),H=h(3113),S=h(36355),me=h(81327),a=h(33234),C=h(47211),I=function(O,te){var B={};for(var M in O)Object.prototype.hasOwnProperty.call(O,M)&&te.indexOf(M)<0&&(B[M]=O[M]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,M=Object.getOwnPropertySymbols(O);W<M.length;W++)te.indexOf(M[W])<0&&Object.prototype.propertyIsEnumerable.call(O,M[W])&&(B[M[W]]=O[M[W]]);return B};const m=O=>{const{getPopupContainer:te,getPrefixCls:B,direction:M}=ye.useContext(S.E_),{prefixCls:W,type:V="default",danger:b,disabled:T,loading:G,onClick:j,htmlType:be,children:_e,className:xe,menu:de,arrow:ee,autoFocus:Z,overlay:pe,trigger:P,align:ie,open:Q,onOpenChange:v,placement:E,getPopupContainer:K,href:fe,icon:Be=ye.createElement(U.Z,null),title:Ke,buttonsRender:Me=le=>le,mouseEnterDelay:Ye,mouseLeaveDelay:ht,overlayClassName:pt,overlayStyle:at,destroyPopupOnHide:Bt,dropdownRender:Vt}=O,qt=I(O,["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"]),$t=B("dropdown",W),Gt=`${$t}-button`,[lt,se]=(0,C.Z)($t),ve={menu:de,arrow:ee,autoFocus:Z,align:ie,disabled:T,trigger:T?[]:P,onOpenChange:v,getPopupContainer:K||te,mouseEnterDelay:Ye,mouseLeaveDelay:ht,overlayClassName:pt,overlayStyle:at,destroyPopupOnHide:Bt,dropdownRender:Vt},{compactSize:ne,compactItemClassnames:Y}=(0,a.ri)($t,M),Ae=X()(Gt,Y,xe,se);"overlay"in O&&(ve.overlay=pe),"open"in O&&(ve.open=Q),"placement"in O?ve.placement=E:ve.placement=M==="rtl"?"bottomLeft":"bottomRight";const $=ye.createElement(H.ZP,{type:V,danger:b,disabled:T,loading:G,onClick:j,htmlType:be,href:fe,title:Ke},_e),R=ye.createElement(H.ZP,{type:V,danger:b,icon:Be}),[L,oe]=Me([$,R]);return lt(ye.createElement(me.Z.Compact,Object.assign({className:Ae,size:ne,block:!0},qt),L,ye.createElement(z.Z,Object.assign({},ve),oe)))};m.__ANT_BUTTON=!0;var u=m;const x=z.Z;x.Button=u;var y=x},47211:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return I}});var z=h(17313),N=h(13826),X=h(92899),ye=h(29878),U=h(19447),H=h(83116),S=h(37613),a=m=>{const{componentCls:u,menuCls:x,colorError:y,colorTextLightSolid:O}=m,te=`${x}-item`;return{[`${u}, ${u}-menu-submenu`]:{[`${x} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:y,"&:hover":{color:O,backgroundColor:y}}}}}};const C=m=>{const{componentCls:u,menuCls:x,zIndexPopup:y,dropdownArrowDistance:O,sizePopupArrow:te,antCls:B,iconCls:M,motionDurationMid:W,dropdownPaddingVertical:V,fontSize:b,dropdownEdgeChildPadding:T,colorTextDisabled:G,fontSizeIcon:j,controlPaddingHorizontal:be,colorBgElevated:_e}=m;return[{[u]:Object.assign(Object.assign({},(0,z.Wf)(m)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-O+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${B}-btn`]:{[`& > ${M}-down, & > ${B}-btn-icon > ${M}-down`]:{fontSize:j}},[`${u}-wrap`]:{position:"relative",[`${B}-btn > ${M}-down`]:{fontSize:j},[`${M}-down::before`]:{transition:`transform ${W}`}},[`${u}-wrap-open`]:{[`${M}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${B}-slide-down-enter${B}-slide-down-enter-active${u}-placement-bottomLeft,
&${B}-slide-down-appear${B}-slide-down-appear-active${u}-placement-bottomLeft,
&${B}-slide-down-enter${B}-slide-down-enter-active${u}-placement-bottom,
&${B}-slide-down-appear${B}-slide-down-appear-active${u}-placement-bottom,
&${B}-slide-down-enter${B}-slide-down-enter-active${u}-placement-bottomRight,
&${B}-slide-down-appear${B}-slide-down-appear-active${u}-placement-bottomRight`]:{animationName:N.fJ},[`&${B}-slide-up-enter${B}-slide-up-enter-active${u}-placement-topLeft,
&${B}-slide-up-appear${B}-slide-up-appear-active${u}-placement-topLeft,
&${B}-slide-up-enter${B}-slide-up-enter-active${u}-placement-top,
&${B}-slide-up-appear${B}-slide-up-appear-active${u}-placement-top,
&${B}-slide-up-enter${B}-slide-up-enter-active${u}-placement-topRight,
&${B}-slide-up-appear${B}-slide-up-appear-active${u}-placement-topRight`]:{animationName:N.Qt},[`&${B}-slide-down-leave${B}-slide-down-leave-active${u}-placement-bottomLeft,
&${B}-slide-down-leave${B}-slide-down-leave-active${u}-placement-bottom,
&${B}-slide-down-leave${B}-slide-down-leave-active${u}-placement-bottomRight`]:{animationName:N.Uw},[`&${B}-slide-up-leave${B}-slide-up-leave-active${u}-placement-topLeft,
&${B}-slide-up-leave${B}-slide-up-leave-active${u}-placement-top,
&${B}-slide-up-leave${B}-slide-up-leave-active${u}-placement-topRight`]:{animationName:N.ly}})},(0,U.ZP)(m,{colorBg:_e,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${u} ${x}`]:{position:"relative",margin:0},[`${x}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${u}, ${u}-menu-submenu`]:{[x]:Object.assign(Object.assign({padding:T,listStyleType:"none",backgroundColor:_e,backgroundClip:"padding-box",borderRadius:m.borderRadiusLG,outline:"none",boxShadow:m.boxShadowSecondary},(0,z.Qy)(m)),{[`${x}-item-group-title`]:{padding:`${V}px ${be}px`,color:m.colorTextDescription,transition:`all ${W}`},[`${x}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${x}-item-icon`]:{minWidth:b,marginInlineEnd:m.marginXS,fontSize:m.fontSizeSM},[`${x}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${W}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${x}-item, ${x}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${V}px ${be}px`,color:m.colorText,fontWeight:"normal",fontSize:b,lineHeight:m.lineHeight,cursor:"pointer",transition:`all ${W}`,borderRadius:m.borderRadiusSM,"&:hover, &-active":{backgroundColor:m.controlItemBgHover}},(0,z.Qy)(m)),{"&-selected":{color:m.colorPrimary,backgroundColor:m.controlItemBgActive,"&:hover, &-active":{backgroundColor:m.controlItemBgActiveHover}},"&-disabled":{color:G,cursor:"not-allowed","&:hover":{color:G,backgroundColor:_e,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${m.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:m.colorSplit},[`${u}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:m.paddingXS,[`${u}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:m.colorTextDescription,fontSize:j,fontStyle:"normal"}}}),[`${x}-item-group-list`]:{margin:`0 ${m.marginXS}px`,padding:0,listStyle:"none"},[`${x}-submenu-title`]:{paddingInlineEnd:be+m.fontSizeSM},[`${x}-submenu-vertical`]:{position:"relative"},[`${x}-submenu${x}-submenu-disabled ${u}-menu-submenu-title`]:{[`&, ${u}-menu-submenu-arrow-icon`]:{color:G,backgroundColor:_e,cursor:"not-allowed"}},[`${x}-submenu-selected ${u}-menu-submenu-title`]:{color:m.colorPrimary}})}},[(0,N.oN)(m,"slide-up"),(0,N.oN)(m,"slide-down"),(0,X.Fm)(m,"move-up"),(0,X.Fm)(m,"move-down"),(0,ye._y)(m,"zoom-big")]]};var I=(0,H.Z)("Dropdown",(m,u)=>{let{rootPrefixCls:x}=u;const{marginXXS:y,sizePopupArrow:O,controlHeight:te,fontSize:B,lineHeight:M,paddingXXS:W,componentCls:V,borderRadiusLG:b}=m,T=(te-B*M)/2,{dropdownArrowOffset:G}=(0,U.fS)({contentRadius:b}),j=(0,S.TS)(m,{menuCls:`${V}-menu`,rootPrefixCls:x,dropdownArrowDistance:O/2+y,dropdownArrowOffset:G,dropdownPaddingVertical:T,dropdownEdgeChildPadding:W});return[C(j),a(j)]},m=>({zIndexPopup:m.zIndexPopupBase+50}))},64165:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return W}});var z=h(92310),N=h.n(z),X=h(59301),ye=h(36355),U=h(9763),H=h(64993),S=h(88088),a=()=>{const[,V]=(0,S.Z)(),T=new H.C(V.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return X.createElement("svg",{style:T,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},X.createElement("g",{fill:"none",fillRule:"evenodd"},X.createElement("g",{transform:"translate(24 31.67)"},X.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),X.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"}),X.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)"}),X.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"}),X.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"})),X.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"}),X.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},X.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),X.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},I=()=>{const[,V]=(0,S.Z)(),{colorFill:b,colorFillTertiary:T,colorFillQuaternary:G,colorBgContainer:j}=V,{borderColor:be,shadowColor:_e,contentColor:xe}=(0,X.useMemo)(()=>({borderColor:new H.C(b).onBackground(j).toHexShortString(),shadowColor:new H.C(T).onBackground(j).toHexShortString(),contentColor:new H.C(G).onBackground(j).toHexShortString()}),[b,T,G,j]);return X.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},X.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},X.createElement("ellipse",{fill:_e,cx:"32",cy:"33",rx:"32",ry:"7"}),X.createElement("g",{fillRule:"nonzero",stroke:be},X.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"}),X.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:xe}))))},m=h(83116),u=h(37613);const x=V=>{const{componentCls:b,margin:T,marginXS:G,marginXL:j,fontSize:be,lineHeight:_e}=V;return{[b]:{marginInline:G,fontSize:be,lineHeight:_e,textAlign:"center",[`${b}-image`]:{height:V.emptyImgHeight,marginBottom:G,opacity:V.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${b}-description`]:{color:V.colorText},[`${b}-footer`]:{marginTop:T},"&-normal":{marginBlock:j,color:V.colorTextDisabled,[`${b}-description`]:{color:V.colorTextDisabled},[`${b}-image`]:{height:V.emptyImgHeightMD}},"&-small":{marginBlock:G,color:V.colorTextDisabled,[`${b}-image`]:{height:V.emptyImgHeightSM}}}}};var y=(0,m.Z)("Empty",V=>{const{componentCls:b,controlHeightLG:T}=V,G=(0,u.TS)(V,{emptyImgCls:`${b}-img`,emptyImgHeight:T*2.5,emptyImgHeightMD:T,emptyImgHeightSM:T*.875});return[x(G)]}),O=function(V,b){var T={};for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&b.indexOf(G)<0&&(T[G]=V[G]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,G=Object.getOwnPropertySymbols(V);j<G.length;j++)b.indexOf(G[j])<0&&Object.prototype.propertyIsEnumerable.call(V,G[j])&&(T[G[j]]=V[G[j]]);return T};const te=X.createElement(a,null),B=X.createElement(I,null),M=V=>{var{className:b,rootClassName:T,prefixCls:G,image:j=te,description:be,children:_e,imageStyle:xe,style:de}=V,ee=O(V,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Z,direction:pe,empty:P}=X.useContext(ye.E_),ie=Z("empty",G),[Q,v]=y(ie),[E]=(0,U.Z)("Empty"),K=typeof be!="undefined"?be:E==null?void 0:E.description,fe=typeof K=="string"?K:"empty";let Be=null;return typeof j=="string"?Be=X.createElement("img",{alt:fe,src:j}):Be=j,Q(X.createElement("div",Object.assign({className:N()(v,ie,P==null?void 0:P.className,{[`${ie}-normal`]:j===B,[`${ie}-rtl`]:pe==="rtl"},b,T),style:Object.assign(Object.assign({},P==null?void 0:P.style),de)},ee),X.createElement("div",{className:`${ie}-image`,style:xe},Be),K&&X.createElement("div",{className:`${ie}-description`},K),_e&&X.createElement("div",{className:`${ie}-footer`},_e)))};M.PRESENTED_IMAGE_DEFAULT=te,M.PRESENTED_IMAGE_SIMPLE=B;var W=M},78241:function(Wt,Ze,h){"use strict";h.d(Ze,{default:function(){return pn}});var z=h(26407),N=h(92310),X=h.n(N),ye=h(77900),U=h(59301),H=h(62892),S=h(32441);function me(et){const[Rt,Ft]=U.useState(et);return U.useEffect(()=>{const Ue=setTimeout(()=>{Ft(et)},et.length?0:10);return()=>{clearTimeout(Ue)}},[et]),Rt}var a=h(17313),C=h(29878),I=h(8378),m=h(37613),u=h(83116),y=et=>{const{componentCls:Rt}=et,Ft=`${Rt}-show-help`,Ue=`${Rt}-show-help-item`;return{[Ft]:{transition:`opacity ${et.motionDurationSlow} ${et.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ue]:{overflow:"hidden",transition:`height ${et.motionDurationSlow} ${et.motionEaseInOut},
opacity ${et.motionDurationSlow} ${et.motionEaseInOut},
transform ${et.motionDurationSlow} ${et.motionEaseInOut} !important`,[`&${Ue}-appear, &${Ue}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ue}-leave-active`]:{transform:"translateY(-5px)"}}}}};const O=et=>({legend:{display:"block",width:"100%",marginBottom:et.marginLG,padding:0,color:et.colorTextDescription,fontSize:et.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${et.lineWidth}px ${et.lineType} ${et.colorBorder}`},label:{fontSize:et.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 ${et.controlOutlineWidth}px ${et.controlOutline}`},output:{display:"block",paddingTop:15,color:et.colorText,fontSize:et.fontSize,lineHeight:et.lineHeight}}),te=(et,Rt)=>{const{formItemCls:Ft}=et;return{[Ft]:{[`${Ft}-label > label`]:{height:Rt},[`${Ft}-control-input`]:{minHeight:Rt}}}},B=et=>{const{componentCls:Rt}=et;return{[et.componentCls]:Object.assign(Object.assign(Object.assign({},(0,a.Wf)(et)),O(et)),{[`${Rt}-text`]:{display:"inline-block",paddingInlineEnd:et.paddingSM},"&-small":Object.assign({},te(et,et.controlHeightSM)),"&-large":Object.assign({},te(et,et.controlHeightLG))})}},M=et=>{const{formItemCls:Rt,iconCls:Ft,componentCls:Ue,rootPrefixCls:Oe,labelRequiredMarkColor:xt,labelColor:St,labelFontSize:en,labelHeight:jt,labelColonMarginInlineStart:sn,labelColonMarginInlineEnd:Xt,itemMarginBottom:vn}=et;return{[Rt]:Object.assign(Object.assign({},(0,a.Wf)(et)),{marginBottom:vn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Oe}-row`]:{display:"none"},"&-has-warning":{[`${Rt}-split`]:{color:et.colorError}},"&-has-error":{[`${Rt}-split`]:{color:et.colorWarning}},[`${Rt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${et.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:jt,color:St,fontSize:en,[`> ${Ft}`]:{fontSize:et.fontSize,verticalAlign:"top"},[`&${Rt}-required:not(${Rt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:et.marginXXS,color:xt,fontSize:et.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ue}-hide-required-mark &`]:{display:"none"}},[`${Rt}-optional`]:{display:"inline-block",marginInlineStart:et.marginXXS,color:et.colorTextDescription,[`${Ue}-hide-required-mark &`]:{display:"none"}},[`${Rt}-tooltip`]:{color:et.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:et.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:sn,marginInlineEnd:Xt},[`&${Rt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Rt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Oe}-col-'"]):not([class*="' ${Oe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:et.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Rt]:{"&-explain, &-extra":{clear:"both",color:et.colorTextDescription,fontSize:et.fontSize,lineHeight:et.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:et.controlHeightSM,transition:`color ${et.motionDurationMid} ${et.motionEaseOut}`},"&-explain":{"&-error":{color:et.colorError},"&-warning":{color:et.colorWarning}}},[`&-with-help ${Rt}-explain`]:{height:"auto",opacity:1},[`${Rt}-feedback-icon`]:{fontSize:et.fontSize,textAlign:"center",visibility:"visible",animationName:C.kr,animationDuration:et.motionDurationMid,animationTimingFunction:et.motionEaseOutBack,pointerEvents:"none","&-success":{color:et.colorSuccess},"&-error":{color:et.colorError},"&-warning":{color:et.colorWarning},"&-validating":{color:et.colorPrimary}}})}},W=et=>{const{componentCls:Rt,formItemCls:Ft}=et;return{[`${Rt}-horizontal`]:{[`${Ft}-label`]:{flexGrow:0},[`${Ft}-control`]:{flex:"1 1 0",minWidth:0},[`${Ft}-label[class$='-24'], ${Ft}-label[class*='-24 ']`]:{[`& + ${Ft}-control`]:{minWidth:"unset"}}}}},V=et=>{const{componentCls:Rt,formItemCls:Ft}=et;return{[`${Rt}-inline`]:{display:"flex",flexWrap:"wrap",[Ft]:{flex:"none",marginInlineEnd:et.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Ft}-label,
> ${Ft}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ft}-label`]:{flex:"none"},[`${Rt}-text`]:{display:"inline-block"},[`${Ft}-has-feedback`]:{display:"inline-block"}}}}},b=et=>({padding:et.verticalLabelPadding,margin:et.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),T=et=>{const{componentCls:Rt,formItemCls:Ft,rootPrefixCls:Ue}=et;return{[`${Ft} ${Ft}-label`]:b(et),[Rt]:{[Ft]:{flexWrap:"wrap",[`${Ft}-label, ${Ft}-control`]:{[`&:not([class*=" ${Ue}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},G=et=>{const{componentCls:Rt,formItemCls:Ft,rootPrefixCls:Ue}=et;return{[`${Rt}-vertical`]:{[Ft]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Rt}-item-control`]:{width:"100%"}}},[`${Rt}-vertical ${Ft}-label,
.${Ue}-col-24${Ft}-label,
.${Ue}-col-xl-24${Ft}-label`]:b(et),[`@media (max-width: ${et.screenXSMax}px)`]:[T(et),{[Rt]:{[`.${Ue}-col-xs-24${Ft}-label`]:b(et)}}],[`@media (max-width: ${et.screenSMMax}px)`]:{[Rt]:{[`.${Ue}-col-sm-24${Ft}-label`]:b(et)}},[`@media (max-width: ${et.screenMDMax}px)`]:{[Rt]:{[`.${Ue}-col-md-24${Ft}-label`]:b(et)}},[`@media (max-width: ${et.screenLGMax}px)`]:{[Rt]:{[`.${Ue}-col-lg-24${Ft}-label`]:b(et)}}}},j=(et,Rt)=>(0,m.TS)(et,{formItemCls:`${et.componentCls}-item`,rootPrefixCls:Rt});var be=(0,u.Z)("Form",(et,Rt)=>{let{rootPrefixCls:Ft}=Rt;const Ue=j(et,Ft);return[B(Ue),M(Ue),y(Ue),W(Ue),V(Ue),G(Ue),(0,I.Z)(Ue),C.kr]},et=>({labelRequiredMarkColor:et.colorError,labelColor:et.colorTextHeading,labelFontSize:et.fontSize,labelHeight:et.controlHeight,labelColonMarginInlineStart:et.marginXXS/2,labelColonMarginInlineEnd:et.marginXS,itemMarginBottom:et.marginLG,verticalLabelPadding:`0 0 ${et.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const _e=[];function xe(et,Rt,Ft){let Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof et=="string"?et:`${Rt}-${Ue}`,error:et,errorStatus:Ft}}var ee=et=>{let{help:Rt,helpStatus:Ft,errors:Ue=_e,warnings:Oe=_e,className:xt,fieldId:St,onVisibleChanged:en}=et;const{prefixCls:jt}=U.useContext(S.Rk),sn=`${jt}-item-explain`,[,Xt]=be(jt),vn=(0,U.useMemo)(()=>(0,H.Z)(jt),[jt]),_n=me(Ue),Mt=me(Oe),At=U.useMemo(()=>Rt!=null?[xe(Rt,"help",Ft)]:[].concat((0,z.Z)(_n.map((an,on)=>xe(an,"error","error",on))),(0,z.Z)(Mt.map((an,on)=>xe(an,"warning","warning",on)))),[Rt,Ft,_n,Mt]),tn={};return St&&(tn.id=`${St}_help`),U.createElement(ye.default,{motionDeadline:vn.motionDeadline,motionName:`${jt}-show-help`,visible:!!At.length,onVisibleChanged:en},an=>{const{className:on,style:Tn}=an;return U.createElement("div",Object.assign({},tn,{className:X()(sn,on,xt,Xt),style:Tn,role:"alert"}),U.createElement(ye.CSSMotionList,Object.assign({keys:At},(0,H.Z)(jt),{motionName:`${jt}-show-help-item`,component:!1}),er=>{const{key:Pn,error:Yt,errorStatus:ct,className:ft,style:Dt}=er;return U.createElement("div",{key:Pn,className:X()(ft,{[`${sn}-${ct}`]:ct}),style:Dt},Yt)}))})},Z=h(95013),pe=h(36355),P=h(1684),ie=h(52946),Q=h(19716),v=h(16722);const E=["parentNode"],K="form_item";function fe(et){return et===void 0||et===!1?[]:Array.isArray(et)?et:[et]}function Be(et,Rt){if(!et.length)return;const Ft=et.join("_");return Rt?`${Rt}_${Ft}`:E.includes(Ft)?`${K}_${Ft}`:Ft}function Ke(et,Rt,Ft,Ue,Oe,xt){let St=Ue;return xt!==void 0?St=xt:Ft.validating?St="validating":et.length?St="error":Rt.length?St="warning":(Ft.touched||Oe&&Ft.validated)&&(St="success"),St}function Me(et){return fe(et).join("_")}function Ye(et){const[Rt]=(0,Z.useForm)(),Ft=U.useRef({}),Ue=U.useMemo(()=>et!=null?et:Object.assign(Object.assign({},Rt),{__INTERNAL__:{itemRef:Oe=>xt=>{const St=Me(Oe);xt?Ft.current[St]=xt:delete Ft.current[St]}},scrollToField:function(Oe){let xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const St=fe(Oe),en=Be(St,Ue.__INTERNAL__.name),jt=en?document.getElementById(en):null;jt&&(0,v.Z)(jt,Object.assign({scrollMode:"if-needed",block:"nearest"},xt))},getFieldInstance:Oe=>{const xt=Me(Oe);return Ft.current[xt]}}),[et,Rt]);return[Ue]}var ht=h(28726),pt=function(et,Rt){var Ft={};for(var Ue in et)Object.prototype.hasOwnProperty.call(et,Ue)&&Rt.indexOf(Ue)<0&&(Ft[Ue]=et[Ue]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ue=Object.getOwnPropertySymbols(et);Oe<Ue.length;Oe++)Rt.indexOf(Ue[Oe])<0&&Object.prototype.propertyIsEnumerable.call(et,Ue[Oe])&&(Ft[Ue[Oe]]=et[Ue[Oe]]);return Ft};const at=(et,Rt)=>{const Ft=U.useContext(P.Z),{getPrefixCls:Ue,direction:Oe,form:xt}=U.useContext(pe.E_),{prefixCls:St,className:en,rootClassName:jt,size:sn,disabled:Xt=Ft,form:vn,colon:_n,labelAlign:Mt,labelWrap:At,labelCol:tn,wrapperCol:an,hideRequiredMark:on,layout:Tn="horizontal",scrollToFirstError:er,requiredMark:Pn,onFinishFailed:Yt,name:ct,style:ft,feedbackIcons:Dt}=et,Ot=pt(et,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Tt=(0,Q.Z)(sn),Kt=U.useContext(ht.Z),Nt=(0,U.useMemo)(()=>Pn!==void 0?Pn:xt&&xt.requiredMark!==void 0?xt.requiredMark:!on,[on,Pn,xt]),ln=_n!=null?_n:xt==null?void 0:xt.colon,xn=Ue("form",St),[Rn,Qn]=be(xn),Jn=X()(xn,`${xn}-${Tn}`,{[`${xn}-hide-required-mark`]:Nt===!1,[`${xn}-rtl`]:Oe==="rtl",[`${xn}-${Tt}`]:Tt},Qn,xt==null?void 0:xt.className,en,jt),[hr]=Ye(vn),{__INTERNAL__:En}=hr;En.name=ct;const yn=(0,U.useMemo)(()=>({name:ct,labelAlign:Mt,labelCol:tn,labelWrap:At,wrapperCol:an,vertical:Tn==="vertical",colon:ln,requiredMark:Nt,itemRef:En.itemRef,form:hr,feedbackIcons:Dt}),[ct,Mt,tn,an,Tn,ln,Nt,hr,Dt]);U.useImperativeHandle(Rt,()=>hr);const pr=(Rr,qn)=>{if(Rr){let cr={block:"nearest"};typeof Rr=="object"&&(cr=Rr),hr.scrollToField(qn,cr)}},Zn=Rr=>{if(Yt==null||Yt(Rr),Rr.errorFields.length){const qn=Rr.errorFields[0].name;if(er!==void 0){pr(er,qn);return}xt&&xt.scrollToFirstError!==void 0&&pr(xt.scrollToFirstError,qn)}};return Rn(U.createElement(P.n,{disabled:Xt},U.createElement(ie.q,{size:Tt},U.createElement(S.RV,Object.assign({},{validateMessages:Kt}),U.createElement(S.q3.Provider,{value:yn},U.createElement(Z.default,Object.assign({id:ct},Ot,{name:ct,onFinishFailed:Zn,form:hr,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),ft),className:Jn})))))))};var Vt=U.forwardRef(at),qt=h(41799),$t=h(8654),Gt=h(92343),lt=h(11592);function se(et){if(typeof et=="function")return et;const Rt=(0,lt.Z)(et);return Rt.length<=1?Rt[0]:Rt}const ve=()=>{const{status:et,errors:Rt=[],warnings:Ft=[]}=(0,U.useContext)(S.aM);return{status:et,errors:Rt,warnings:Ft}};ve.Context=S.aM;var ne=ve,Y=h(16089);function Ae(et){const[Rt,Ft]=U.useState(et),Ue=(0,U.useRef)(null),Oe=(0,U.useRef)([]),xt=(0,U.useRef)(!1);U.useEffect(()=>(xt.current=!1,()=>{xt.current=!0,Y.Z.cancel(Ue.current),Ue.current=null}),[]);function St(en){xt.current||(Ue.current===null&&(Oe.current=[],Ue.current=(0,Y.Z)(()=>{Ue.current=null,Ft(jt=>{let sn=jt;return Oe.current.forEach(Xt=>{sn=Xt(sn)}),sn})})),Oe.current.push(en))}return[Rt,St]}function $(){const{itemRef:et}=U.useContext(S.q3),Rt=U.useRef({});function Ft(Ue,Oe){const xt=Oe&&typeof Oe=="object"&&Oe.ref,St=Ue.join("_");return(Rt.current.name!==St||Rt.current.originRef!==xt)&&(Rt.current.name=St,Rt.current.originRef=xt,Rt.current.ref=(0,$t.sQ)(et(Ue),xt)),Rt.current.ref}return Ft}var R=h(29194),L=h(34280),oe=h(2738),le=h(27382),J=h(37028);const De=et=>{const{formItemCls:Rt}=et;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Rt}-control`]:{display:"flex"}}}};var je=(0,u.b)(["Form","item-item"],(et,Rt)=>{let{rootPrefixCls:Ft}=Rt;const Ue=j(et,Ft);return[De(Ue)]}),Pe=et=>{const{prefixCls:Rt,status:Ft,wrapperCol:Ue,children:Oe,errors:xt,warnings:St,_internalItemRender:en,extra:jt,help:sn,fieldId:Xt,marginBottom:vn,onErrorVisibleChanged:_n}=et,Mt=`${Rt}-item`,At=U.useContext(S.q3),tn=Ue||At.wrapperCol||{},an=X()(`${Mt}-control`,tn.className),on=U.useMemo(()=>Object.assign({},At),[At]);delete on.labelCol,delete on.wrapperCol;const Tn=U.createElement("div",{className:`${Mt}-control-input`},U.createElement("div",{className:`${Mt}-control-input-content`},Oe)),er=U.useMemo(()=>({prefixCls:Rt,status:Ft}),[Rt,Ft]),Pn=vn!==null||xt.length||St.length?U.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},U.createElement(S.Rk.Provider,{value:er},U.createElement(ee,{fieldId:Xt,errors:xt,warnings:St,help:sn,helpStatus:Ft,className:`${Mt}-explain-connected`,onVisibleChanged:_n})),!!vn&&U.createElement("div",{style:{width:0,height:vn}})):null,Yt={};Xt&&(Yt.id=`${Xt}_extra`);const ct=jt?U.createElement("div",Object.assign({},Yt,{className:`${Mt}-extra`}),jt):null,ft=en&&en.mark==="pro_table_render"&&en.render?en.render(et,{input:Tn,errorList:Pn,extra:ct}):U.createElement(U.Fragment,null,Tn,Pn,ct);return U.createElement(S.q3.Provider,{value:on},U.createElement(J.Z,Object.assign({},tn,{className:an}),ft),U.createElement(je,{prefixCls:Rt}))},Xe=h(61485),st=h(31724),Ge=h(9763),gt=h(6848),bt=function(et,Rt){var Ft={};for(var Ue in et)Object.prototype.hasOwnProperty.call(et,Ue)&&Rt.indexOf(Ue)<0&&(Ft[Ue]=et[Ue]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ue=Object.getOwnPropertySymbols(et);Oe<Ue.length;Oe++)Rt.indexOf(Ue[Oe])<0&&Object.prototype.propertyIsEnumerable.call(et,Ue[Oe])&&(Ft[Ue[Oe]]=et[Ue[Oe]]);return Ft};function mt(et){return et?typeof et=="object"&&!U.isValidElement(et)?et:{title:et}:null}var Ct=et=>{let{prefixCls:Rt,label:Ft,htmlFor:Ue,labelCol:Oe,labelAlign:xt,colon:St,required:en,requiredMark:jt,tooltip:sn}=et;var Xt;const[vn]=(0,Ge.Z)("Form"),{vertical:_n,labelAlign:Mt,labelCol:At,labelWrap:tn,colon:an}=U.useContext(S.q3);if(!Ft)return null;const on=Oe||At||{},Tn=xt||Mt,er=`${Rt}-item-label`,Pn=X()(er,Tn==="left"&&`${er}-left`,on.className,{[`${er}-wrap`]:!!tn});let Yt=Ft;const ct=St===!0||an!==!1&&St!==!1;ct&&!_n&&typeof Ft=="string"&&Ft.trim()!==""&&(Yt=Ft.replace(/[:|]\s*$/,""));const Dt=mt(sn);if(Dt){const{icon:Nt=U.createElement(Xe.Z,null)}=Dt,ln=bt(Dt,["icon"]),xn=U.createElement(gt.Z,Object.assign({},ln),U.cloneElement(Nt,{className:`${Rt}-item-tooltip`,title:""}));Yt=U.createElement(U.Fragment,null,Yt,xn)}const Ot=jt==="optional",Tt=typeof jt=="function";Tt?Yt=jt(Yt,{required:!!en}):Ot&&!en&&(Yt=U.createElement(U.Fragment,null,Yt,U.createElement("span",{className:`${Rt}-item-optional`,title:""},(vn==null?void 0:vn.optional)||((Xt=st.Z.Form)===null||Xt===void 0?void 0:Xt.optional))));const Kt=X()({[`${Rt}-item-required`]:en,[`${Rt}-item-required-mark-optional`]:Ot||Tt,[`${Rt}-item-no-colon`]:!ct});return U.createElement(J.Z,Object.assign({},on,{className:Pn}),U.createElement("label",{htmlFor:Ue,className:Kt,title:typeof Ft=="string"?Ft:""},Yt))},w=h(29679),A=h(19248),vt=h(96512),ue=h(58617);const Ne={success:w.Z,warning:vt.Z,error:A.Z,validating:ue.Z};function bn(et){let{children:Rt,errors:Ft,warnings:Ue,hasFeedback:Oe,validateStatus:xt,prefixCls:St,meta:en,noStyle:jt}=et;const sn=`${St}-item`,{feedbackIcons:Xt}=U.useContext(S.q3),vn=Ke(Ft,Ue,en,null,!!Oe,xt),{isFormItemInput:_n,status:Mt}=U.useContext(S.aM),At=U.useMemo(()=>{var tn;let an;if(Oe){const er=Oe!==!0&&Oe.icons||Xt,Pn=vn&&((tn=er==null?void 0:er({status:vn,errors:Ft,warnings:Ue}))===null||tn===void 0?void 0:tn[vn]),Yt=vn&&Ne[vn];an=Pn!==!1&&Yt?U.createElement("span",{className:X()(`${sn}-feedback-icon`,`${sn}-feedback-icon-${vn}`)},Pn||U.createElement(Yt,null)):null}let on=!0,Tn=vn||"";return jt&&(on=_n,Tn=(vn!=null?vn:Mt)||""),{status:Tn,errors:Ft,warnings:Ue,hasFeedback:!!Oe,feedbackIcon:an,isFormItemInput:on}},[vn,Oe,jt,_n,Mt]);return U.createElement(S.aM.Provider,{value:At},Rt)}var We=function(et,Rt){var Ft={};for(var Ue in et)Object.prototype.hasOwnProperty.call(et,Ue)&&Rt.indexOf(Ue)<0&&(Ft[Ue]=et[Ue]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ue=Object.getOwnPropertySymbols(et);Oe<Ue.length;Oe++)Rt.indexOf(Ue[Oe])<0&&Object.prototype.propertyIsEnumerable.call(et,Ue[Oe])&&(Ft[Ue[Oe]]=et[Ue[Oe]]);return Ft};function rt(et){const{prefixCls:Rt,className:Ft,rootClassName:Ue,style:Oe,help:xt,errors:St,warnings:en,validateStatus:jt,meta:sn,hasFeedback:Xt,hidden:vn,children:_n,fieldId:Mt,required:At,isRequired:tn,onSubItemMetaChange:an}=et,on=We(et,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Tn=`${Rt}-item`,{requiredMark:er}=U.useContext(S.q3),Pn=U.useRef(null),Yt=me(St),ct=me(en),ft=xt!=null,Dt=!!(ft||St.length||en.length),Ot=!!Pn.current&&(0,R.Z)(Pn.current),[Tt,Kt]=U.useState(null);(0,L.Z)(()=>{if(Dt&&Pn.current){const Qn=getComputedStyle(Pn.current);Kt(parseInt(Qn.marginBottom,10))}},[Dt,Ot]);const Nt=Qn=>{Qn||Kt(null)},xn=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Jn=Qn?Yt:sn.errors,hr=Qn?ct:sn.warnings;return Ke(Jn,hr,sn,"",!!Xt,jt)}(),Rn=X()(Tn,Ft,Ue,{[`${Tn}-with-help`]:ft||Yt.length||ct.length,[`${Tn}-has-feedback`]:xn&&Xt,[`${Tn}-has-success`]:xn==="success",[`${Tn}-has-warning`]:xn==="warning",[`${Tn}-has-error`]:xn==="error",[`${Tn}-is-validating`]:xn==="validating",[`${Tn}-hidden`]:vn});return U.createElement("div",{className:Rn,style:Oe,ref:Pn},U.createElement(le.Z,Object.assign({className:`${Tn}-row`},(0,oe.Z)(on,["_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"])),U.createElement(Ct,Object.assign({htmlFor:Mt},et,{requiredMark:er,required:At!=null?At:tn,prefixCls:Rt})),U.createElement(Pe,Object.assign({},et,sn,{errors:Yt,warnings:ct,prefixCls:Rt,status:xn,help:xt,marginBottom:Tt,onErrorVisibleChanged:Nt}),U.createElement(S.qI.Provider,{value:an},U.createElement(bn,{prefixCls:Rt,meta:sn,errors:sn.errors,warnings:sn.warnings,hasFeedback:Xt,validateStatus:xn},_n)))),!!Tt&&U.createElement("div",{className:`${Tn}-margin-offset`,style:{marginBottom:-Tt}}))}const Je="__SPLIT__",Ee=null,Te=U.memo(et=>{let{children:Rt}=et;return Rt},(et,Rt)=>et.value===Rt.value&&et.update===Rt.update&&et.childProps.length===Rt.childProps.length&&et.childProps.every((Ft,Ue)=>Ft===Rt.childProps[Ue]));function ze(et){return et!=null}function qe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ge(et){const{name:Rt,noStyle:Ft,className:Ue,dependencies:Oe,prefixCls:xt,shouldUpdate:St,rules:en,children:jt,required:sn,label:Xt,messageVariables:vn,trigger:_n="onChange",validateTrigger:Mt,hidden:At,help:tn}=et,{getPrefixCls:an}=U.useContext(pe.E_),{name:on}=U.useContext(S.q3),Tn=se(jt),er=typeof Tn=="function",Pn=U.useContext(S.qI),{validateTrigger:Yt}=U.useContext(Z.FieldContext),ct=Mt!==void 0?Mt:Yt,ft=ze(Rt),Dt=an("form",xt),[Ot,Tt]=be(Dt),Kt=U.useContext(Z.ListContext),Nt=U.useRef(),[ln,xn]=Ae({}),[Rn,Qn]=(0,qt.Z)(()=>qe()),Jn=qn=>{const cr=Kt==null?void 0:Kt.getKey(qn.name);if(Qn(qn.destroy?qe():qn,!0),Ft&&tn!==!1&&Pn){let gr=qn.name;if(qn.destroy)gr=Nt.current||gr;else if(cr!==void 0){const[tr,Or]=cr;gr=[tr].concat((0,z.Z)(Or)),Nt.current=gr}Pn(qn,gr)}},hr=(qn,cr)=>{xn(gr=>{const tr=Object.assign({},gr),Vr=[].concat((0,z.Z)(qn.name.slice(0,-1)),(0,z.Z)(cr)).join(Je);return qn.destroy?delete tr[Vr]:tr[Vr]=qn,tr})},[En,yn]=U.useMemo(()=>{const qn=(0,z.Z)(Rn.errors),cr=(0,z.Z)(Rn.warnings);return Object.values(ln).forEach(gr=>{qn.push.apply(qn,(0,z.Z)(gr.errors||[])),cr.push.apply(cr,(0,z.Z)(gr.warnings||[]))}),[qn,cr]},[ln,Rn.errors,Rn.warnings]),pr=$();function Zn(qn,cr,gr){return Ft&&!At?U.createElement(bn,{prefixCls:Dt,hasFeedback:et.hasFeedback,validateStatus:et.validateStatus,meta:Rn,errors:En,warnings:yn,noStyle:!0},qn):U.createElement(rt,Object.assign({key:"row"},et,{className:X()(Ue,Tt),prefixCls:Dt,fieldId:cr,isRequired:gr,errors:En,warnings:yn,meta:Rn,onSubItemMetaChange:hr}),qn)}if(!ft&&!er&&!Oe)return Ot(Zn(Tn));let Rr={};return typeof Xt=="string"?Rr.label=Xt:Rt&&(Rr.label=String(Rt)),vn&&(Rr=Object.assign(Object.assign({},Rr),vn)),Ot(U.createElement(Z.Field,Object.assign({},et,{messageVariables:Rr,trigger:_n,validateTrigger:ct,onMetaChange:Jn}),(qn,cr,gr)=>{const tr=fe(Rt).length&&cr?cr.name:[],Or=Be(tr,on),Vr=sn!==void 0?sn:!!(en&&en.some(nt=>{if(nt&&typeof nt=="object"&&nt.required&&!nt.warningOnly)return!0;if(typeof nt=="function"){const $n=nt(gr);return $n&&$n.required&&!$n.warningOnly}return!1})),Xn=Object.assign({},qn);let Dn=null;if(Array.isArray(Tn)&&ft)Dn=Tn;else if(!(er&&(!(St||Oe)||ft))){if(!(Oe&&!er&&!ft))if((0,Gt.l$)(Tn)){const nt=Object.assign(Object.assign({},Tn.props),Xn);if(nt.id||(nt.id=Or),tn||En.length>0||yn.length>0||et.extra){const Cr=[];(tn||En.length>0)&&Cr.push(`${Or}_help`),et.extra&&Cr.push(`${Or}_extra`),nt["aria-describedby"]=Cr.join(" ")}En.length>0&&(nt["aria-invalid"]="true"),Vr&&(nt["aria-required"]="true"),(0,$t.Yr)(Tn)&&(nt.ref=pr(tr,Tn)),new Set([].concat((0,z.Z)(fe(_n)),(0,z.Z)(fe(ct)))).forEach(Cr=>{nt[Cr]=function(){for(var Tr,Mr,Hr,xr,$r,Wr=arguments.length,On=new Array(Wr),Fn=0;Fn<Wr;Fn++)On[Fn]=arguments[Fn];(Hr=Xn[Cr])===null||Hr===void 0||(Tr=Hr).call.apply(Tr,[Xn].concat(On)),($r=(xr=Tn.props)[Cr])===null||$r===void 0||(Mr=$r).call.apply(Mr,[xr].concat(On))}});const ar=[nt["aria-required"],nt["aria-invalid"],nt["aria-describedby"]];Dn=U.createElement(Te,{value:Xn[et.valuePropName||"value"],update:Tn,childProps:ar},(0,Gt.Tm)(Tn,nt))}else er&&(St||Oe)&&!ft?Dn=Tn(gr):Dn=Tn}return Zn(Dn,Or,Vr)}))}const Jt=ge;Jt.useStatus=ne;var He=Jt,fn=function(et,Rt){var Ft={};for(var Ue in et)Object.prototype.hasOwnProperty.call(et,Ue)&&Rt.indexOf(Ue)<0&&(Ft[Ue]=et[Ue]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ue=Object.getOwnPropertySymbols(et);Oe<Ue.length;Oe++)Rt.indexOf(Ue[Oe])<0&&Object.prototype.propertyIsEnumerable.call(et,Ue[Oe])&&(Ft[Ue[Oe]]=et[Ue[Oe]]);return Ft},Hn=et=>{var{prefixCls:Rt,children:Ft}=et,Ue=fn(et,["prefixCls","children"]);const{getPrefixCls:Oe}=U.useContext(pe.E_),xt=Oe("form",Rt),St=U.useMemo(()=>({prefixCls:xt,status:"error"}),[xt]);return U.createElement(Z.List,Object.assign({},Ue),(en,jt,sn)=>U.createElement(S.Rk.Provider,{value:St},Ft(en.map(Xt=>Object.assign(Object.assign({},Xt),{fieldKey:Xt.key})),jt,{errors:sn.errors,warnings:sn.warnings})))};function vr(){const{form:et}=(0,U.useContext)(S.q3);return et}const hn=Vt;hn.Item=He,hn.List=Hn,hn.ErrorList=ee,hn.useForm=Ye,hn.useFormInstance=vr,hn.useWatch=Z.useWatch,hn.Provider=S.RV,hn.create=()=>{};var pn=hn},8628:function(Wt,Ze,h){"use strict";var z=h(59301),N=h(34280),X=h(56762),ye=h(69507);function U(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,z.useRef)({}),me=(0,X.Z)(),a=(0,ye.ZP)();return(0,N.Z)(()=>{const C=a.subscribe(I=>{S.current=I,H&&me()});return()=>a.unsubscribe(C)},[]),S.current}Ze.Z=U},9432:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return M},n:function(){return te}});var z=h(19248),N=h(92310),X=h.n(N),ye=h(93681),U=h(8654),H=h(59301),S=h(19080),me=h(36355),a=h(1684),C=h(19716),I=h(32441),m=h(33234),u=h(59412),x=h(9937);function y(W){return!!(W.prefix||W.suffix||W.allowClear)}var O=function(W,V){var b={};for(var T in W)Object.prototype.hasOwnProperty.call(W,T)&&V.indexOf(T)<0&&(b[T]=W[T]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,T=Object.getOwnPropertySymbols(W);G<T.length;G++)V.indexOf(T[G])<0&&Object.prototype.propertyIsEnumerable.call(W,T[G])&&(b[T[G]]=W[T[G]]);return b};function te(W,V){if(!W)return;W.focus(V);const{cursor:b}=V||{};if(b){const T=W.value.length;switch(b){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(T,T);break;default:W.setSelectionRange(0,T);break}}}var M=(0,H.forwardRef)((W,V)=>{var b;const{prefixCls:T,bordered:G=!0,status:j,size:be,disabled:_e,onBlur:xe,onFocus:de,suffix:ee,allowClear:Z,addonAfter:pe,addonBefore:P,className:ie,style:Q,styles:v,rootClassName:E,onChange:K,classNames:fe}=W,Be=O(W,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ke,direction:Me,input:Ye}=H.useContext(me.E_),ht=Ke("input",T),pt=(0,H.useRef)(null),[at,Bt]=(0,x.ZP)(ht),{compactSize:Vt,compactItemClassnames:qt}=(0,m.ri)(ht,Me),$t=(0,C.Z)(je=>{var ke;return(ke=be!=null?be:Vt)!==null&&ke!==void 0?ke:je}),Gt=H.useContext(a.Z),lt=_e!=null?_e:Gt,{status:se,hasFeedback:ve,feedbackIcon:ne}=(0,H.useContext)(I.aM),Y=(0,S.F)(se,j),Ae=y(W)||!!ve,$=(0,H.useRef)(Ae);(0,H.useEffect)(()=>{var je;Ae&&$.current,$.current=Ae},[Ae]);const R=(0,u.Z)(pt,!0),L=je=>{R(),xe==null||xe(je)},oe=je=>{R(),de==null||de(je)},le=je=>{R(),K==null||K(je)},J=(ve||ee)&&H.createElement(H.Fragment,null,ee,ve&&ne);let De;return typeof Z=="object"&&(Z!=null&&Z.clearIcon)?De=Z:Z&&(De={clearIcon:H.createElement(z.Z,null)}),at(H.createElement(ye.default,Object.assign({ref:(0,U.sQ)(V,pt),prefixCls:ht,autoComplete:Ye==null?void 0:Ye.autoComplete},Be,{disabled:lt,onBlur:L,onFocus:oe,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Q),styles:Object.assign(Object.assign({},Ye==null?void 0:Ye.styles),v),suffix:J,allowClear:De,className:X()(ie,E,qt,Ye==null?void 0:Ye.className),onChange:le,addonAfter:pe&&H.createElement(m.BR,null,H.createElement(I.Ux,{override:!0,status:!0},pe)),addonBefore:P&&H.createElement(m.BR,null,H.createElement(I.Ux,{override:!0,status:!0},P)),classNames:Object.assign(Object.assign(Object.assign({},fe),Ye==null?void 0:Ye.classNames),{input:X()({[`${ht}-sm`]:$t==="small",[`${ht}-lg`]:$t==="large",[`${ht}-rtl`]:Me==="rtl",[`${ht}-borderless`]:!G},!Ae&&(0,S.Z)(ht,Y),fe==null?void 0:fe.input,(b=Ye==null?void 0:Ye.classNames)===null||b===void 0?void 0:b.input,Bt)}),classes:{affixWrapper:X()({[`${ht}-affix-wrapper-sm`]:$t==="small",[`${ht}-affix-wrapper-lg`]:$t==="large",[`${ht}-affix-wrapper-rtl`]:Me==="rtl",[`${ht}-affix-wrapper-borderless`]:!G},(0,S.Z)(`${ht}-affix-wrapper`,Y,ve),Bt),wrapper:X()({[`${ht}-group-rtl`]:Me==="rtl"},Bt),group:X()({[`${ht}-group-wrapper-sm`]:$t==="small",[`${ht}-group-wrapper-lg`]:$t==="large",[`${ht}-group-wrapper-rtl`]:Me==="rtl",[`${ht}-group-wrapper-disabled`]:lt},(0,S.Z)(`${ht}-group-wrapper`,Y,ve),Bt)}})))})},1643:function(Wt,Ze,h){"use strict";var z=h(19248),N=h(92310),X=h.n(N),ye=h(9296),U=h(59301),H=h(19080),S=h(36355),me=h(1684),a=h(19716),C=h(32441),I=h(9432),m=h(9937),u=function(y,O){var te={};for(var B in y)Object.prototype.hasOwnProperty.call(y,B)&&O.indexOf(B)<0&&(te[B]=y[B]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(y);M<B.length;M++)O.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(y,B[M])&&(te[B[M]]=y[B[M]]);return te};const x=(0,U.forwardRef)((y,O)=>{const{prefixCls:te,bordered:B=!0,size:M,disabled:W,status:V,allowClear:b,showCount:T,classNames:G,rootClassName:j,className:be}=y,_e=u(y,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:xe,direction:de}=U.useContext(S.E_),ee=(0,a.Z)(M),Z=U.useContext(me.Z),pe=W!=null?W:Z,{status:P,hasFeedback:ie,feedbackIcon:Q}=U.useContext(C.aM),v=(0,H.F)(P,V),E=U.useRef(null);U.useImperativeHandle(O,()=>{var Me;return{resizableTextArea:(Me=E.current)===null||Me===void 0?void 0:Me.resizableTextArea,focus:Ye=>{var ht,pt;(0,I.n)((pt=(ht=E.current)===null||ht===void 0?void 0:ht.resizableTextArea)===null||pt===void 0?void 0:pt.textArea,Ye)},blur:()=>{var Ye;return(Ye=E.current)===null||Ye===void 0?void 0:Ye.blur()}}});const K=xe("input",te);let fe;typeof b=="object"&&(b!=null&&b.clearIcon)?fe=b:b&&(fe={clearIcon:U.createElement(z.Z,null)});const[Be,Ke]=(0,m.ZP)(K);return Be(U.createElement(ye.default,Object.assign({},_e,{disabled:pe,allowClear:fe,className:X()(be,j),classes:{affixWrapper:X()(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:de==="rtl",[`${K}-affix-wrapper-borderless`]:!B,[`${K}-affix-wrapper-sm`]:ee==="small",[`${K}-affix-wrapper-lg`]:ee==="large",[`${K}-textarea-show-count`]:T},(0,H.Z)(`${K}-affix-wrapper`,v),Ke)},classNames:Object.assign(Object.assign({},G),{textarea:X()({[`${K}-borderless`]:!B,[`${K}-sm`]:ee==="small",[`${K}-lg`]:ee==="large"},(0,H.Z)(K,v),Ke,G==null?void 0:G.textarea)}),prefixCls:K,suffix:ie&&U.createElement("span",{className:`${K}-textarea-suffix`},Q),showCount:T,ref:E})))});Ze.Z=x},59412:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return N}});var z=h(59301);function N(X,ye){const U=(0,z.useRef)([]),H=()=>{U.current.push(setTimeout(()=>{var S,me,a,C;!((S=X.current)===null||S===void 0)&&S.input&&((me=X.current)===null||me===void 0?void 0:me.input.getAttribute("type"))==="password"&&(!((a=X.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((C=X.current)===null||C===void 0||C.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(ye&&H(),()=>U.current.forEach(S=>{S&&clearTimeout(S)})),[]),H}},92832:function(Wt,Ze,h){"use strict";h.d(Ze,{default:function(){return ee}});var z=h(92310),N=h.n(z),X=h(59301),ye=h(36355),U=h(32441),H=h(9937),me=Z=>{const{getPrefixCls:pe,direction:P}=(0,X.useContext)(ye.E_),{prefixCls:ie,className:Q}=Z,v=pe("input-group",ie),E=pe("input"),[K,fe]=(0,H.ZP)(E),Be=N()(v,{[`${v}-lg`]:Z.size==="large",[`${v}-sm`]:Z.size==="small",[`${v}-compact`]:Z.compact,[`${v}-rtl`]:P==="rtl"},fe,Q),Ke=(0,X.useContext)(U.aM),Me=(0,X.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return K(X.createElement("span",{className:Be,style:Z.style,onMouseEnter:Z.onMouseEnter,onMouseLeave:Z.onMouseLeave,onFocus:Z.onFocus,onBlur:Z.onBlur},X.createElement(U.aM.Provider,{value:Me},Z.children)))},a=h(9432),C=h(73331),I=h(15277),m=h(2738),u=h(8654),x=h(59412),y=function(Z,pe){var P={};for(var ie in Z)Object.prototype.hasOwnProperty.call(Z,ie)&&pe.indexOf(ie)<0&&(P[ie]=Z[ie]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,ie=Object.getOwnPropertySymbols(Z);Q<ie.length;Q++)pe.indexOf(ie[Q])<0&&Object.prototype.propertyIsEnumerable.call(Z,ie[Q])&&(P[ie[Q]]=Z[ie[Q]]);return P};const O=Z=>Z?X.createElement(I.Z,null):X.createElement(C.Z,null),te={click:"onClick",hover:"onMouseOver"};var M=X.forwardRef((Z,pe)=>{const{visibilityToggle:P=!0}=Z,ie=typeof P=="object"&&P.visible!==void 0,[Q,v]=(0,X.useState)(()=>ie?P.visible:!1),E=(0,X.useRef)(null);X.useEffect(()=>{ie&&v(P.visible)},[ie,P]);const K=(0,x.Z)(E),fe=()=>{const{disabled:lt}=Z;lt||(Q&&K(),v(se=>{var ve;const ne=!se;return typeof P=="object"&&((ve=P.onVisibleChange)===null||ve===void 0||ve.call(P,ne)),ne}))},Be=lt=>{const{action:se="click",iconRender:ve=O}=Z,ne=te[se]||"",Y=ve(Q),Ae={[ne]:fe,className:`${lt}-icon`,key:"passwordIcon",onMouseDown:$=>{$.preventDefault()},onMouseUp:$=>{$.preventDefault()}};return X.cloneElement(X.isValidElement(Y)?Y:X.createElement("span",null,Y),Ae)},{className:Ke,prefixCls:Me,inputPrefixCls:Ye,size:ht}=Z,pt=y(Z,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:at}=X.useContext(ye.E_),Bt=at("input",Ye),Vt=at("input-password",Me),qt=P&&Be(Vt),$t=N()(Vt,Ke,{[`${Vt}-${ht}`]:!!ht}),Gt=Object.assign(Object.assign({},(0,m.Z)(pt,["suffix","iconRender","visibilityToggle"])),{type:Q?"text":"password",className:$t,prefixCls:Bt,suffix:qt});return ht&&(Gt.size=ht),X.createElement(a.Z,Object.assign({ref:(0,u.sQ)(pe,E)},Gt))}),W=h(47472),V=h(92343),b=h(3113),T=h(19716),G=h(33234),j=function(Z,pe){var P={};for(var ie in Z)Object.prototype.hasOwnProperty.call(Z,ie)&&pe.indexOf(ie)<0&&(P[ie]=Z[ie]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,ie=Object.getOwnPropertySymbols(Z);Q<ie.length;Q++)pe.indexOf(ie[Q])<0&&Object.prototype.propertyIsEnumerable.call(Z,ie[Q])&&(P[ie[Q]]=Z[ie[Q]]);return P},_e=X.forwardRef((Z,pe)=>{const{prefixCls:P,inputPrefixCls:ie,className:Q,size:v,suffix:E,enterButton:K=!1,addonAfter:fe,loading:Be,disabled:Ke,onSearch:Me,onChange:Ye,onCompositionStart:ht,onCompositionEnd:pt}=Z,at=j(Z,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Bt,direction:Vt}=X.useContext(ye.E_),qt=X.useRef(!1),$t=Bt("input-search",P),Gt=Bt("input",ie),{compactSize:lt}=(0,G.ri)($t,Vt),se=(0,T.Z)(Pe=>{var Xe;return(Xe=v!=null?v:lt)!==null&&Xe!==void 0?Xe:Pe}),ve=X.useRef(null),ne=Pe=>{Pe&&Pe.target&&Pe.type==="click"&&Me&&Me(Pe.target.value,Pe,{source:"clear"}),Ye&&Ye(Pe)},Y=Pe=>{var Xe;document.activeElement===((Xe=ve.current)===null||Xe===void 0?void 0:Xe.input)&&Pe.preventDefault()},Ae=Pe=>{var Xe,st;Me&&Me((st=(Xe=ve.current)===null||Xe===void 0?void 0:Xe.input)===null||st===void 0?void 0:st.value,Pe,{source:"input"})},$=Pe=>{qt.current||Be||Ae(Pe)},R=typeof K=="boolean"?X.createElement(W.Z,null):null,L=`${$t}-button`;let oe;const le=K||{},J=le.type&&le.type.__ANT_BUTTON===!0;J||le.type==="button"?oe=(0,V.Tm)(le,Object.assign({onMouseDown:Y,onClick:Pe=>{var Xe,st;(st=(Xe=le==null?void 0:le.props)===null||Xe===void 0?void 0:Xe.onClick)===null||st===void 0||st.call(Xe,Pe),Ae(Pe)},key:"enterButton"},J?{className:L,size:se}:{})):oe=X.createElement(b.ZP,{className:L,type:K?"primary":void 0,size:se,disabled:Ke,key:"enterButton",onMouseDown:Y,onClick:Ae,loading:Be,icon:R},K),fe&&(oe=[oe,(0,V.Tm)(fe,{key:"addonAfter"})]);const De=N()($t,{[`${$t}-rtl`]:Vt==="rtl",[`${$t}-${se}`]:!!se,[`${$t}-with-button`]:!!K},Q),je=Pe=>{qt.current=!0,ht==null||ht(Pe)},ke=Pe=>{qt.current=!1,pt==null||pt(Pe)};return X.createElement(a.Z,Object.assign({ref:(0,u.sQ)(ve,pe),onPressEnter:$},at,{size:se,onCompositionStart:je,onCompositionEnd:ke,prefixCls:Gt,addonAfter:oe,suffix:E,onChange:ne,className:De,disabled:Ke}))}),xe=h(1643);const de=a.Z;de.Group=me,de.Search=_e,de.TextArea=xe.Z,de.Password=M;var ee=de},9937:function(Wt,Ze,h){"use strict";h.d(Ze,{M1:function(){return S},TM:function(){return V},Xy:function(){return me},bi:function(){return I},e5:function(){return W},ik:function(){return m},nz:function(){return U},pU:function(){return H},s7:function(){return u},x0:function(){return C}});var z=h(17313),N=h(74207),X=h(37613),ye=h(83116);const U=b=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:b,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),H=b=>({borderColor:b.hoverBorderColor}),S=b=>({borderColor:b.activeBorderColor,boxShadow:b.activeShadow,outline:0}),me=b=>({color:b.colorTextDisabled,backgroundColor:b.colorBgContainerDisabled,borderColor:b.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},H((0,X.TS)(b,{hoverBorderColor:b.colorBorder})))}),a=b=>{const{paddingBlockLG:T,fontSizeLG:G,lineHeightLG:j,borderRadiusLG:be,paddingInlineLG:_e}=b;return{padding:`${T}px ${_e}px`,fontSize:G,lineHeight:j,borderRadius:be}},C=b=>({padding:`${b.paddingBlockSM}px ${b.paddingInlineSM}px`,borderRadius:b.borderRadiusSM}),I=(b,T)=>{const{componentCls:G,colorError:j,colorWarning:be,errorActiveShadow:_e,warningActiveShadow:xe,colorErrorBorderHover:de,colorWarningBorderHover:ee}=b;return{[`&-status-error:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:j,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},S((0,X.TS)(b,{activeBorderColor:j,activeShadow:_e}))),[`${G}-prefix, ${G}-suffix`]:{color:j}},[`&-status-warning:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:be,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},S((0,X.TS)(b,{activeBorderColor:be,activeShadow:xe}))),[`${G}-prefix, ${G}-suffix`]:{color:be}}}},m=b=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${b.paddingBlock}px ${b.paddingInline}px`,color:b.colorText,fontSize:b.fontSize,lineHeight:b.lineHeight,backgroundColor:b.colorBgContainer,backgroundImage:"none",borderWidth:b.lineWidth,borderStyle:b.lineType,borderColor:b.colorBorder,borderRadius:b.borderRadius,transition:`all ${b.motionDurationMid}`},U(b.colorTextPlaceholder)),{"&:hover":Object.assign({},H(b)),"&:focus, &-focused":Object.assign({},S(b)),"&-disabled, &[disabled]":Object.assign({},me(b)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:b.controlHeight,lineHeight:b.lineHeight,verticalAlign:"bottom",transition:`all ${b.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a(b)),"&-sm":Object.assign({},C(b)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),u=b=>{const{componentCls:T,antCls:G}=b;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:b.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${T}, &-lg > ${T}-group-addon`]:Object.assign({},a(b)),[`&-sm ${T}, &-sm > ${T}-group-addon`]:Object.assign({},C(b)),[`&-lg ${G}-select-single ${G}-select-selector`]:{height:b.controlHeightLG},[`&-sm ${G}-select-single ${G}-select-selector`]:{height:b.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 ${b.paddingInline}px`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,textAlign:"center",backgroundColor:b.colorFillAlter,border:`${b.lineWidth}px ${b.lineType} ${b.colorBorder}`,borderRadius:b.borderRadius,transition:`all ${b.motionDurationSlow}`,lineHeight:1,[`${G}-select`]:{margin:`-${b.paddingBlock+1}px -${b.paddingInline}px`,[`&${G}-select-single:not(${G}-select-customize-input)`]:{[`${G}-select-selector`]:{backgroundColor:"inherit",border:`${b.lineWidth}px ${b.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${G}-select-selector`]:{color:b.colorPrimary}}},[`${G}-cascader-picker`]:{margin:`-9px -${b.paddingInline}px`,backgroundColor:"transparent",[`${G}-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,[`${G}-select ${G}-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,[`${G}-select ${G}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${T}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${T}-search &`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius}},[`&:not(:first-child), ${T}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${T}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,z.dF)()),{[`${T}-group-addon, ${T}-group-wrap, > ${T}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:b.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${T}-affix-wrapper,
& > ${T}-number-affix-wrapper,
& > ${G}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-b.lineWidth,borderInlineEndWidth:b.lineWidth},[`${T}`]:{float:"none"},[`& > ${G}-select > ${G}-select-selector,
& > ${G}-select-auto-complete ${T},
& > ${G}-cascader-picker ${T},
& > ${T}-group-wrapper ${T}`]:{borderInlineEndWidth:b.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${G}-select-focused`]:{zIndex:1},[`& > ${G}-select > ${G}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${G}-select:first-child > ${G}-select-selector,
& > ${G}-select-auto-complete:first-child ${T},
& > ${G}-cascader-picker:first-child ${T}`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius},[`& > *:last-child,
& > ${G}-select:last-child > ${G}-select-selector,
& > ${G}-cascader-picker:last-child ${T},
& > ${G}-cascader-picker-focused:last-child ${T}`]:{borderInlineEndWidth:b.lineWidth,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius},[`& > ${G}-select-auto-complete ${T}`]:{verticalAlign:"top"},[`${T}-group-wrapper + ${T}-group-wrapper`]:{marginInlineStart:-b.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:b.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b.borderRadius}}}})}},x=b=>{const{componentCls:T,controlHeightSM:G,lineWidth:j}=b,_e=(G-j*2-16)/2;return{[T]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(b)),m(b)),I(b,T)),{'&[type="color"]':{height:b.controlHeight,[`&${T}-lg`]:{height:b.controlHeightLG},[`&${T}-sm`]:{height:G,paddingTop:_e,paddingBottom:_e}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},y=b=>{const{componentCls:T}=b;return{[`${T}-clear-icon`]:{margin:0,color:b.colorTextQuaternary,fontSize:b.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextTertiary},"&:active":{color:b.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${b.inputAffixPadding}px`}}}},O=b=>{const{componentCls:T,inputAffixPadding:G,colorTextDescription:j,motionDurationSlow:be,colorIcon:_e,colorIconHover:xe,iconCls:de}=b;return{[`${T}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(b)),{display:"inline-flex",[`&:not(${T}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},H(b)),{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:b.paddingXS}},"&-show-count-suffix":{color:j},"&-show-count-has-suffix":{marginInlineEnd:b.paddingXXS},"&-prefix":{marginInlineEnd:G},"&-suffix":{marginInlineStart:G}}}),y(b)),{[`${de}${T}-password-icon`]:{color:_e,cursor:"pointer",transition:`all ${be}`,"&:hover":{color:xe}}}),I(b,`${T}-affix-wrapper`))}},te=b=>{const{componentCls:T,colorError:G,colorWarning:j,borderRadiusLG:be,borderRadiusSM:_e}=b;return{[`${T}-group`]:Object.assign(Object.assign(Object.assign({},(0,z.Wf)(b)),u(b)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${T}-group-addon`]:{borderRadius:be,fontSize:b.fontSizeLG}},"&-sm":{[`${T}-group-addon`]:{borderRadius:_e}},"&-status-error":{[`${T}-group-addon`]:{color:G,borderColor:G}},"&-status-warning":{[`${T}-group-addon`]:{color:j,borderColor:j}},"&-disabled":{[`${T}-group-addon`]:Object.assign({},me(b))},[`&: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}}}})}},B=b=>{const{componentCls:T,antCls:G}=b,j=`${T}-search`;return{[j]:{[`${T}`]:{"&:hover, &:focus":{borderColor:b.colorPrimaryHover,[`+ ${T}-group-addon ${j}-button:not(${G}-btn-primary)`]:{borderInlineStartColor:b.colorPrimaryHover}}},[`${T}-affix-wrapper`]:{borderRadius:0},[`${T}-lg`]:{lineHeight:b.lineHeightLG-2e-4},[`> ${T}-group`]:{[`> ${T}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${j}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${j}-button:not(${G}-btn-primary)`]:{color:b.colorTextDescription,"&:hover":{color:b.colorPrimaryHover},"&:active":{color:b.colorPrimaryActive},[`&${G}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${j}-button`]:{height:b.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${j}-button`]:{height:b.controlHeightLG},[`&-small ${j}-button`]:{height:b.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${T}-compact-item`]:{[`&:not(${T}-compact-last-item)`]:{[`${T}-group-addon`]:{[`${T}-search-button`]:{marginInlineEnd:-b.lineWidth,borderRadius:0}}},[`&:not(${T}-compact-first-item)`]:{[`${T},${T}-affix-wrapper`]:{borderRadius:0}},[`> ${T}-group-addon ${T}-search-button,
> ${T},
${T}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${T}-affix-wrapper-focused`]:{zIndex:2}}}}},M=b=>{const{componentCls:T,paddingLG:G}=b,j=`${T}-textarea`;return{[j]:{position:"relative","&-show-count":{[`> ${T}`]:{height:"100%"},[`${T}-data-count`]:{position:"absolute",bottom:-b.fontSize*b.lineHeight,insetInlineEnd:0,color:b.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${T}`]:{paddingInlineEnd:G}},[`&-affix-wrapper${j}-has-feedback`]:{[`${T}`]:{paddingInlineEnd:G}},[`&-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:b.paddingXS,insetBlockStart:b.paddingXS},[`${j}-suffix`]:{position:"absolute",top:0,insetInlineEnd:b.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function W(b){return(0,X.TS)(b,{inputAffixPadding:b.paddingXXS})}const V=b=>{const{controlHeight:T,fontSize:G,lineHeight:j,lineWidth:be,controlHeightSM:_e,controlHeightLG:xe,fontSizeLG:de,lineHeightLG:ee,paddingSM:Z,controlPaddingHorizontalSM:pe,controlPaddingHorizontal:P,colorFillAlter:ie,colorPrimaryHover:Q,controlOutlineWidth:v,controlOutline:E,colorErrorOutline:K,colorWarningOutline:fe}=b;return{paddingBlock:Math.max(Math.round((T-G*j)/2*10)/10-be,3),paddingBlockSM:Math.max(Math.round((_e-G*j)/2*10)/10-be,0),paddingBlockLG:Math.ceil((xe-de*ee)/2*10)/10-be,paddingInline:Z-be,paddingInlineSM:pe-be,paddingInlineLG:P-be,addonBg:ie,activeBorderColor:Q,hoverBorderColor:Q,activeShadow:`0 0 0 ${v}px ${E}`,errorActiveShadow:`0 0 0 ${v}px ${K}`,warningActiveShadow:`0 0 0 ${v}px ${fe}`}};Ze.ZP=(0,ye.Z)("Input",b=>{const T=(0,X.TS)(b,W(b));return[x(T),M(T),O(T),te(T),B(T),(0,N.c)(T)]},V)},45818:function(Wt,Ze,h){"use strict";h.d(Ze,{D:function(){return W},Z:function(){return T}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(j,be){return N.createElement(U.Z,(0,z.Z)({},j,{ref:be,icon:ye}))},S=N.forwardRef(H),me=S,a=h(33853),C=h(38819),I=h(92310),m=h.n(I),u=h(2738),y=G=>!isNaN(parseFloat(G))&&isFinite(G),O=h(36355),te=h(84966),B=function(G,j){var be={};for(var _e in G)Object.prototype.hasOwnProperty.call(G,_e)&&j.indexOf(_e)<0&&(be[_e]=G[_e]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(G);xe<_e.length;xe++)j.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(G,_e[xe])&&(be[_e[xe]]=G[_e[xe]]);return be};const M={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},W=N.createContext({}),V=(()=>{let G=0;return function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return G+=1,`${j}${G}`}})();var T=N.forwardRef((G,j)=>{const{prefixCls:be,className:_e,trigger:xe,children:de,defaultCollapsed:ee=!1,theme:Z="dark",style:pe={},collapsible:P=!1,reverseArrow:ie=!1,width:Q=200,collapsedWidth:v=80,zeroWidthTriggerStyle:E,breakpoint:K,onCollapse:fe,onBreakpoint:Be}=G,Ke=B(G,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Me}=(0,N.useContext)(te.Gs),[Ye,ht]=(0,N.useState)("collapsed"in G?G.collapsed:ee),[pt,at]=(0,N.useState)(!1);(0,N.useEffect)(()=>{"collapsed"in G&&ht(G.collapsed)},[G.collapsed]);const Bt=(se,ve)=>{"collapsed"in G||ht(se),fe==null||fe(se,ve)},Vt=(0,N.useRef)();Vt.current=se=>{at(se.matches),Be==null||Be(se.matches),Ye!==se.matches&&Bt(se.matches,"responsive")},(0,N.useEffect)(()=>{function se(ne){return Vt.current(ne)}let ve;if(typeof window!="undefined"){const{matchMedia:ne}=window;if(ne&&K&&K in M){ve=ne(`(max-width: ${M[K]})`);try{ve.addEventListener("change",se)}catch(Y){ve.addListener(se)}se(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",se)}catch(ne){ve==null||ve.removeListener(se)}}},[K]),(0,N.useEffect)(()=>{const se=V("ant-sider-");return Me.addSider(se),()=>Me.removeSider(se)},[]);const qt=()=>{Bt(!Ye,"clickTrigger")},{getPrefixCls:$t}=(0,N.useContext)(O.E_),Gt=()=>{const se=$t("layout-sider",be),ve=(0,u.Z)(Ke,["collapsed"]),ne=Ye?v:Q,Y=y(ne)?`${ne}px`:String(ne),Ae=parseFloat(String(v||0))===0?N.createElement("span",{onClick:qt,className:m()(`${se}-zero-width-trigger`,`${se}-zero-width-trigger-${ie?"right":"left"}`),style:E},xe||N.createElement(me,null)):null,L={expanded:ie?N.createElement(C.Z,null):N.createElement(a.Z,null),collapsed:ie?N.createElement(a.Z,null):N.createElement(C.Z,null)}[Ye?"collapsed":"expanded"],oe=xe!==null?Ae||N.createElement("div",{className:`${se}-trigger`,onClick:qt,style:{width:Y}},xe||L):null,le=Object.assign(Object.assign({},pe),{flex:`0 0 ${Y}`,maxWidth:Y,minWidth:Y,width:Y}),J=m()(se,`${se}-${Z}`,{[`${se}-collapsed`]:!!Ye,[`${se}-has-trigger`]:P&&xe!==null&&!Ae,[`${se}-below`]:!!pt,[`${se}-zero-width`]:parseFloat(Y)===0},_e);return N.createElement("aside",Object.assign({className:J},ve,{style:le,ref:j}),N.createElement("div",{className:`${se}-children`},de),P||pt&&Ae?oe:null)},lt=N.useMemo(()=>({siderCollapsed:Ye}),[Ye]);return N.createElement(W.Provider,{value:lt},Gt())})},84966:function(Wt,Ze,h){"use strict";h.d(Ze,{VY:function(){return W},$_:function(){return M},h4:function(){return B},Gs:function(){return u},ZP:function(){return V}});var z=h(26407),N=h(92310),X=h.n(N),ye=h(2738),U=h(59301),H=h(36355),S=h(83116),a=b=>{const{componentCls:T,bodyBg:G,lightSiderBg:j,lightTriggerBg:be,lightTriggerColor:_e}=b;return{[`${T}-sider-light`]:{background:j,[`${T}-sider-trigger`]:{color:_e,background:be},[`${T}-sider-zero-width-trigger`]:{color:_e,background:be,border:`1px solid ${G}`,borderInlineStart:0}}}};const C=b=>{const{antCls:T,componentCls:G,colorText:j,triggerColor:be,footerBg:_e,triggerBg:xe,headerHeight:de,headerPadding:ee,headerColor:Z,footerPadding:pe,triggerHeight:P,zeroTriggerHeight:ie,zeroTriggerWidth:Q,motionDurationMid:v,motionDurationSlow:E,fontSize:K,borderRadius:fe,bodyBg:Be,headerBg:Ke,siderBg:Me}=b;return{[G]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Be,"&, *":{boxSizing:"border-box"},[`&${G}-has-sider`]:{flexDirection:"row",[`> ${G}, > ${G}-content`]:{width:0}},[`${G}-header, &${G}-footer`]:{flex:"0 0 auto"},[`${G}-sider`]:{position:"relative",minWidth:0,background:Me,transition:`all ${v}, 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:be,lineHeight:`${P}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:de,insetInlineEnd:-Q,zIndex:1,width:Q,height:ie,color:be,fontSize:b.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Me,borderStartStartRadius:0,borderStartEndRadius:fe,borderEndEndRadius:fe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${E} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${E}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Q,borderStartStartRadius:fe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:fe}}}}},a(b)),{"&-rtl":{direction:"rtl"}}),[`${G}-header`]:{height:de,padding:ee,color:Z,lineHeight:`${de}px`,background:Ke,[`${T}-menu`]:{lineHeight:"inherit"}},[`${G}-footer`]:{padding:pe,color:j,fontSize:K,background:_e},[`${G}-content`]:{flex:"auto",minHeight:0}}};var I=(0,S.Z)("Layout",b=>[C(b)],b=>{const{colorBgLayout:T,controlHeight:G,controlHeightLG:j,colorText:be,controlHeightSM:_e,marginXXS:xe,colorTextLightSolid:de,colorBgContainer:ee}=b,Z=j*1.25;return{colorBgHeader:"#001529",colorBgBody:T,colorBgTrigger:"#002140",bodyBg:T,headerBg:"#001529",headerHeight:G*2,headerPadding:`0 ${Z}px`,headerColor:be,footerPadding:`${_e}px ${Z}px`,footerBg:T,siderBg:"#001529",triggerHeight:j+xe*2,triggerBg:"#002140",triggerColor:de,zeroTriggerWidth:j,zeroTriggerHeight:j,lightSiderBg:ee,lightTriggerBg:ee,lightTriggerColor:be}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),m=function(b,T){var G={};for(var j in b)Object.prototype.hasOwnProperty.call(b,j)&&T.indexOf(j)<0&&(G[j]=b[j]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,j=Object.getOwnPropertySymbols(b);be<j.length;be++)T.indexOf(j[be])<0&&Object.prototype.propertyIsEnumerable.call(b,j[be])&&(G[j[be]]=b[j[be]]);return G};const u=U.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function x(b){let{suffixCls:T,tagName:G,displayName:j}=b;return be=>U.forwardRef((xe,de)=>U.createElement(be,Object.assign({ref:de,suffixCls:T,tagName:G},xe)))}const y=U.forwardRef((b,T)=>{const{prefixCls:G,suffixCls:j,className:be,tagName:_e}=b,xe=m(b,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:de}=U.useContext(H.E_),ee=de("layout",G),[Z,pe]=I(ee),P=j?`${ee}-${j}`:ee;return Z(U.createElement(_e,Object.assign({className:X()(G||P,be,pe),ref:T},xe)))}),O=U.forwardRef((b,T)=>{const{direction:G}=U.useContext(H.E_),[j,be]=U.useState([]),{prefixCls:_e,className:xe,rootClassName:de,children:ee,hasSider:Z,tagName:pe,style:P}=b,ie=m(b,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Q=(0,ye.Z)(ie,["suffixCls"]),{getPrefixCls:v,layout:E}=U.useContext(H.E_),K=v("layout",_e),[fe,Be]=I(K),Ke=X()(K,{[`${K}-has-sider`]:typeof Z=="boolean"?Z:j.length>0,[`${K}-rtl`]:G==="rtl"},E==null?void 0:E.className,xe,de,Be),Me=U.useMemo(()=>({siderHook:{addSider:Ye=>{be(ht=>[].concat((0,z.Z)(ht),[Ye]))},removeSider:Ye=>{be(ht=>ht.filter(pt=>pt!==Ye))}}}),[]);return fe(U.createElement(u.Provider,{value:Me},U.createElement(pe,Object.assign({ref:T,className:Ke,style:Object.assign(Object.assign({},E==null?void 0:E.style),P)},Q),ee)))}),te=x({tagName:"div",displayName:"Layout"})(O),B=x({suffixCls:"header",tagName:"header",displayName:"Header"})(y),M=x({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),W=x({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var V=te},40875:function(Wt,Ze,h){"use strict";h.d(Ze,{J:function(){return H}});var z=h(59301),N=h(33234),X=h(70425),ye=function(S,me){var a={};for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&me.indexOf(C)<0&&(a[C]=S[C]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(S);I<C.length;I++)me.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(S,C[I])&&(a[C[I]]=S[C[I]]);return a};const U=z.createContext(null),H=z.forwardRef((S,me)=>{const{children:a}=S,C=ye(S,["children"]),I=z.useContext(U),m=z.useMemo(()=>Object.assign(Object.assign({},I),C),[I,C.prefixCls,C.mode,C.selectable]);return z.createElement(U.Provider,{value:m},z.createElement(N.BR,null,(0,X.supportNodeRef)(a)?z.cloneElement(a,{ref:me}):a))});Ze.Z=U},20834:function(Wt,Ze,h){"use strict";h.d(Ze,{default:function(){return lt}});var z=h(15285),N=h(59301),X=h(45818),ye=h(92310),U=h.n(ye),H=h(36355),S=function(se,ve){var ne={};for(var Y in se)Object.prototype.hasOwnProperty.call(se,Y)&&ve.indexOf(Y)<0&&(ne[Y]=se[Y]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Y=Object.getOwnPropertySymbols(se);Ae<Y.length;Ae++)ve.indexOf(Y[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,Y[Ae])&&(ne[Y[Ae]]=se[Y[Ae]]);return ne},a=se=>{const{prefixCls:ve,className:ne,dashed:Y}=se,Ae=S(se,["prefixCls","className","dashed"]),{getPrefixCls:$}=N.useContext(H.E_),R=$("menu",ve),L=U()({[`${R}-item-divider-dashed`]:!!Y},ne);return N.createElement(z.iz,Object.assign({className:L},Ae))},C=h(11592),I=h(2738),m=h(6848),u=h(92343),y=(0,N.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=se=>{var ve;const{className:ne,children:Y,icon:Ae,title:$,danger:R}=se,{prefixCls:L,firstLevel:oe,direction:le,disableMenuItemTitleTooltip:J,inlineCollapsed:De}=N.useContext(y),je=gt=>{const bt=N.createElement("span",{className:`${L}-title-content`},Y);return(!Ae||(0,u.l$)(Y)&&Y.type==="span")&&Y&&gt&&oe&&typeof Y=="string"?N.createElement("div",{className:`${L}-inline-collapsed-noicon`},Y.charAt(0)):bt},{siderCollapsed:ke}=N.useContext(X.D);let Pe=$;typeof $=="undefined"?Pe=oe?Y:"":$===!1&&(Pe="");const Xe={title:Pe};!ke&&!De&&(Xe.title=null,Xe.open=!1);const st=(0,C.Z)(Y).length;let Ge=N.createElement(z.ck,Object.assign({},(0,I.Z)(se,["title","icon","danger"]),{className:U()({[`${L}-item-danger`]:R,[`${L}-item-only-child`]:(Ae?st+1:st)===1},ne),title:typeof $=="string"?$:void 0}),(0,u.Tm)(Ae,{className:U()((0,u.l$)(Ae)?(ve=Ae.props)===null||ve===void 0?void 0:ve.className:"",`${L}-item-icon`)}),je(De));return J||(Ge=N.createElement(m.Z,Object.assign({},Xe,{placement:le==="rtl"?"left":"right",overlayClassName:`${L}-inline-collapsed-tooltip`}),Ge)),Ge},M=se=>{var ve;const{popupClassName:ne,icon:Y,title:Ae,theme:$}=se,R=N.useContext(y),{prefixCls:L,inlineCollapsed:oe,theme:le}=R,J=(0,z.Xl)();let De;if(!Y)De=oe&&!J.length&&Ae&&typeof Ae=="string"?N.createElement("div",{className:`${L}-inline-collapsed-noicon`},Ae.charAt(0)):N.createElement("span",{className:`${L}-title-content`},Ae);else{const ke=(0,u.l$)(Ae)&&Ae.type==="span";De=N.createElement(N.Fragment,null,(0,u.Tm)(Y,{className:U()((0,u.l$)(Y)?(ve=Y.props)===null||ve===void 0?void 0:ve.className:"",`${L}-item-icon`)}),ke?Ae:N.createElement("span",{className:`${L}-title-content`},Ae))}const je=N.useMemo(()=>Object.assign(Object.assign({},R),{firstLevel:!1}),[R]);return N.createElement(y.Provider,{value:je},N.createElement(z.Wd,Object.assign({},(0,I.Z)(se,["icon"]),{title:De,popupClassName:U()(L,ne,`${L}-${$||le}`)})))},W=h(18785),V=h(70425),b=h(62892),T=h(40875),G=function(se,ve){var ne={};for(var Y in se)Object.prototype.hasOwnProperty.call(se,Y)&&ve.indexOf(Y)<0&&(ne[Y]=se[Y]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Y=Object.getOwnPropertySymbols(se);Ae<Y.length;Ae++)ve.indexOf(Y[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,Y[Ae])&&(ne[Y[Ae]]=se[Y[Ae]]);return ne};function j(se){return(se||[]).map((ve,ne)=>{if(ve&&typeof ve=="object"){const Y=ve,{label:Ae,children:$,key:R,type:L}=Y,oe=G(Y,["label","children","key","type"]),le=R!=null?R:`tmp-${ne}`;return $||L==="group"?L==="group"?N.createElement(z.BW,Object.assign({key:le},oe,{title:Ae}),j($)):N.createElement(M,Object.assign({key:le},oe,{title:Ae}),j($)):L==="divider"?N.createElement(a,Object.assign({key:le},oe)):N.createElement(te,Object.assign({key:le},oe),Ae)}return null}).filter(ve=>ve)}function be(se){return N.useMemo(()=>se&&j(se),[se])}var _e=h(64993),xe=h(17313),de=h(8378),ee=h(13826),Z=h(29878),pe=h(83116),P=h(37613),Q=se=>{const{componentCls:ve,motionDurationSlow:ne,horizontalLineHeight:Y,colorSplit:Ae,lineWidth:$,lineType:R,itemPaddingInline:L}=se;return{[`${ve}-horizontal`]:{lineHeight:Y,border:0,borderBottom:`${$}px ${R} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:L},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${ne}`,`background ${ne}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},E=se=>{let{componentCls:ve,menuArrowOffset:ne}=se;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ne})`},"&::after":{transform:`rotate(45deg) translateY(${ne})`}}}}};const K=se=>Object.assign({},(0,xe.oN)(se));var Be=(se,ve)=>{const{componentCls:ne,itemColor:Y,itemSelectedColor:Ae,groupTitleColor:$,itemBg:R,subMenuItemBg:L,itemSelectedBg:oe,activeBarHeight:le,activeBarWidth:J,activeBarBorderWidth:De,motionDurationSlow:je,motionEaseInOut:ke,motionEaseOut:Pe,itemPaddingInline:Xe,motionDurationMid:st,itemHoverColor:Ge,lineType:gt,colorSplit:bt,itemDisabledColor:mt,dangerItemColor:zt,dangerItemHoverColor:Ct,dangerItemSelectedColor:w,dangerItemActiveBg:A,dangerItemSelectedBg:vt,itemHoverBg:ue,itemActiveBg:Ne,menuSubMenuBg:bn,horizontalItemSelectedColor:We,horizontalItemSelectedBg:rt,horizontalItemBorderRadius:Je,horizontalItemHoverBg:Ee,popupBg:Te}=se;return{[`${ne}-${ve}, ${ne}-${ve} > ${ne}`]:{color:Y,background:R,[`&${ne}-root:focus-visible`]:Object.assign({},K(se)),[`${ne}-item-group-title`]:{color:$},[`${ne}-submenu-selected`]:{[`> ${ne}-submenu-title`]:{color:Ae}},[`${ne}-item-disabled, ${ne}-submenu-disabled`]:{color:`${mt} !important`},[`${ne}-item:not(${ne}-item-selected):not(${ne}-submenu-selected)`]:{[`&:hover, > ${ne}-submenu-title:hover`]:{color:Ge}},[`&:not(${ne}-horizontal)`]:{[`${ne}-item:not(${ne}-item-selected)`]:{"&:hover":{backgroundColor:ue},"&:active":{backgroundColor:Ne}},[`${ne}-submenu-title`]:{"&:hover":{backgroundColor:ue},"&:active":{backgroundColor:Ne}}},[`${ne}-item-danger`]:{color:zt,[`&${ne}-item:hover`]:{[`&:not(${ne}-item-selected):not(${ne}-submenu-selected)`]:{color:Ct}},[`&${ne}-item:active`]:{background:A}},[`${ne}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ne}-item-selected`]:{color:Ae,[`&${ne}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${ne}-item-selected`]:{backgroundColor:oe,[`&${ne}-item-danger`]:{backgroundColor:vt}},[`${ne}-item, ${ne}-submenu-title`]:{[`&:not(${ne}-item-disabled):focus-visible`]:Object.assign({},K(se))},[`&${ne}-submenu > ${ne}`]:{backgroundColor:bn},[`&${ne}-popup > ${ne}`]:{backgroundColor:Te},[`&${ne}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${ne}-item, > ${ne}-submenu`]:{top:De,marginTop:-De,marginBottom:0,borderRadius:Je,"&::after":{position:"absolute",insetInline:Xe,bottom:0,borderBottom:`${le}px solid transparent`,transition:`border-color ${je} ${ke}`,content:'""'},"&:hover, &-active, &-open":{background:Ee,"&::after":{borderBottomWidth:le,borderBottomColor:We}},"&-selected":{color:We,backgroundColor:rt,"&:hover":{backgroundColor:rt},"&::after":{borderBottomWidth:le,borderBottomColor:We}}}}),[`&${ne}-root`]:{[`&${ne}-inline, &${ne}-vertical`]:{borderInlineEnd:`${De}px ${gt} ${bt}`}},[`&${ne}-inline`]:{[`${ne}-sub${ne}-inline`]:{background:L},[`${ne}-item, ${ne}-submenu-title`]:De&&J?{width:`calc(100% + ${De}px)`}:{},[`${ne}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${J}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${st} ${Pe}`,`opacity ${st} ${Pe}`].join(","),content:'""'},[`&${ne}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${ne}-selected, ${ne}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${st} ${ke}`,`opacity ${st} ${ke}`].join(",")}}}}}};const Ke=se=>{const{componentCls:ve,itemHeight:ne,itemMarginInline:Y,padding:Ae,menuArrowSize:$,marginXS:R,itemMarginBlock:L}=se,oe=Ae+$+R;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:ne,lineHeight:`${ne}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:Y,marginBlock:L,width:`calc(100% - ${Y*2}px)`},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:ne,lineHeight:`${ne}px`},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:oe}}};var Ye=se=>{const{componentCls:ve,iconCls:ne,itemHeight:Y,colorTextLightSolid:Ae,dropdownWidth:$,controlHeightLG:R,motionDurationMid:L,motionEaseOut:oe,paddingXL:le,itemMarginInline:J,fontSizeLG:De,motionDurationSlow:je,paddingXS:ke,boxShadowSecondary:Pe,collapsedWidth:Xe,collapsedIconSize:st}=se,Ge={height:Y,lineHeight:`${Y}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ke(se))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ke(se)),{boxShadow:Pe})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:$,maxHeight:`calc(100vh - ${R*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${je}`,`background ${je}`,`padding ${L} ${oe}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Ge,[`& ${ve}-item-group-title`]:{paddingInlineStart:le}},[`${ve}-item`]:Ge}},{[`${ve}-inline-collapsed`]:{width:Xe,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:De,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${De/2}px - ${J}px)`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${ne}`]:{margin:0,fontSize:st,lineHeight:`${Y}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${ne}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${ne}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:ke})}}]};const ht=se=>{const{componentCls:ve,motionDurationSlow:ne,motionDurationMid:Y,motionEaseInOut:Ae,motionEaseOut:$,iconCls:R,iconSize:L,iconMarginInlineEnd:oe}=se;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ne}`,`background ${ne}`,`padding ${ne} ${Ae}`].join(","),[`${ve}-item-icon, ${R}`]:{minWidth:L,fontSize:L,transition:[`font-size ${Y} ${$}`,`margin ${ne} ${Ae}`,`color ${ne}`].join(","),"+ span":{marginInlineStart:oe,opacity:1,transition:[`opacity ${ne} ${Ae}`,`margin ${ne}`,`color ${ne}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${ve}-item-only-child`]:{[`> ${R}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pt=se=>{const{componentCls:ve,motionDurationSlow:ne,motionEaseInOut:Y,borderRadius:Ae,menuArrowSize:$,menuArrowOffset:R}=se;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:se.margin,width:$,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ne} ${Y}, opacity ${ne}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$*.6,height:$*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${ne} ${Y}`,`transform ${ne} ${Y}`,`top ${ne} ${Y}`,`color ${ne} ${Y}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${R})`},"&::after":{transform:`rotate(-45deg) translateY(${R})`}}}}},at=se=>{const{antCls:ve,componentCls:ne,fontSize:Y,motionDurationSlow:Ae,motionDurationMid:$,motionEaseInOut:R,paddingXS:L,padding:oe,colorSplit:le,lineWidth:J,zIndexPopup:De,borderRadiusLG:je,subMenuItemBorderRadius:ke,menuArrowSize:Pe,menuArrowOffset:Xe,lineType:st,menuPanelMaskInset:Ge,groupTitleLineHeight:gt,groupTitleFontSize:bt}=se;return[{"":{[`${ne}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${ne}-submenu-hidden`]:{display:"none"}},{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(se)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Y,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ne}-item`]:{flex:"none"}},[`${ne}-item, ${ne}-submenu, ${ne}-submenu-title`]:{borderRadius:se.itemBorderRadius},[`${ne}-item-group-title`]:{padding:`${L}px ${oe}px`,fontSize:bt,lineHeight:gt,transition:`all ${Ae}`},[`&-horizontal ${ne}-submenu`]:{transition:[`border-color ${Ae} ${R}`,`background ${Ae} ${R}`].join(",")},[`${ne}-submenu, ${ne}-submenu-inline`]:{transition:[`border-color ${Ae} ${R}`,`background ${Ae} ${R}`,`padding ${$} ${R}`].join(",")},[`${ne}-submenu ${ne}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${R}`,`padding ${Ae} ${R}`].join(",")},[`${ne}-title-content`]:{transition:`color ${Ae}`},[`${ne}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ne}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:le,borderStyle:st,borderWidth:0,borderTopWidth:J,marginBlock:J,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ht(se)),{[`${ne}-item-group`]:{[`${ne}-item-group-list`]:{margin:0,padding:0,[`${ne}-item, ${ne}-submenu-title`]:{paddingInline:`${Y*2}px ${oe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:De,borderRadius:je,boxShadow:"none",transformOrigin:"0 0",[`&${ne}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ge}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ge},"\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:se.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:se.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:se.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:se.paddingXS},[`> ${ne}`]:Object.assign(Object.assign(Object.assign({borderRadius:je},ht(se)),pt(se)),{[`${ne}-item, ${ne}-submenu > ${ne}-submenu-title`]:{borderRadius:ke},[`${ne}-submenu-title::after`]:{transition:`transform ${Ae} ${R}`}})}}),pt(se)),{[`&-inline-collapsed ${ne}-submenu-arrow,
&-inline ${ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xe})`},"&::after":{transform:`rotate(45deg) translateX(-${Xe})`}},[`${ne}-submenu-open${ne}-submenu-inline > ${ne}-submenu-title > ${ne}-submenu-arrow`]:{transform:`translateY(-${Pe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xe})`},"&::before":{transform:`rotate(45deg) translateX(${Xe})`}}})},{[`${ve}-layout-header`]:{[ne]:{lineHeight:"inherit"}}}]};var Bt=(se,ve)=>(0,pe.Z)("Menu",Y=>{if(ve===!1)return[];const{colorBgElevated:Ae,colorPrimary:$,colorTextLightSolid:R,controlHeightLG:L,fontSize:oe,darkItemColor:le,darkDangerItemColor:J,darkItemBg:De,darkSubMenuItemBg:je,darkItemSelectedColor:ke,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:Xe,darkItemHoverBg:st,darkGroupTitleColor:Ge,darkItemHoverColor:gt,darkItemDisabledColor:bt,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:zt,darkDangerItemActiveBg:Ct}=Y,w=oe/7*5,A=(0,P.TS)(Y,{menuArrowSize:w,menuHorizontalHeight:L*1.15,menuArrowOffset:`${w*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),vt=(0,P.TS)(A,{itemColor:le,itemHoverColor:gt,groupTitleColor:Ge,itemSelectedColor:ke,itemBg:De,popupBg:De,subMenuItemBg:je,itemActiveBg:"transparent",itemSelectedBg:Pe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:st,itemDisabledColor:bt,dangerItemColor:J,dangerItemHoverColor:mt,dangerItemSelectedColor:zt,dangerItemActiveBg:Ct,dangerItemSelectedBg:Xe,menuSubMenuBg:je,horizontalItemSelectedColor:R,horizontalItemSelectedBg:$});return[at(A),Q(A),Ye(A),Be(A,"light"),Be(vt,"dark"),E(A),(0,de.Z)(A),(0,ee.oN)(A,"slide-up"),(0,ee.oN)(A,"slide-down"),(0,Z._y)(A,"zoom-big")]},Y=>{const{colorPrimary:Ae,colorError:$,colorTextDisabled:R,colorErrorBg:L,colorText:oe,colorTextDescription:le,colorBgContainer:J,colorFillAlter:De,colorFillContent:je,lineWidth:ke,lineWidthBold:Pe,controlItemBgActive:Xe,colorBgTextHover:st,controlHeightLG:Ge,lineHeight:gt,colorBgElevated:bt,marginXXS:mt,padding:zt,fontSize:Ct,controlHeightSM:w,fontSizeLG:A,colorTextLightSolid:vt,colorErrorHover:ue}=Y,Ne=new _e.C(vt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Y.zIndexPopupBase+50,radiusItem:Y.borderRadiusLG,itemBorderRadius:Y.borderRadiusLG,radiusSubMenuItem:Y.borderRadiusSM,subMenuItemBorderRadius:Y.borderRadiusSM,colorItemText:oe,itemColor:oe,colorItemTextHover:oe,itemHoverColor:oe,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:le,groupTitleColor:le,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:J,itemBg:J,colorItemBgHover:st,itemHoverBg:st,colorItemBgActive:je,itemActiveBg:Xe,colorSubItemBg:De,subMenuItemBg:De,colorItemBgSelected:Xe,itemSelectedBg:Xe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Pe,activeBarHeight:Pe,colorActiveBarBorderSize:ke,activeBarBorderWidth:ke,colorItemTextDisabled:R,itemDisabledColor:R,colorDangerItemText:$,dangerItemColor:$,colorDangerItemTextHover:$,dangerItemHoverColor:$,colorDangerItemTextSelected:$,dangerItemSelectedColor:$,colorDangerItemBgActive:L,dangerItemActiveBg:L,colorDangerItemBgSelected:L,dangerItemSelectedBg:L,itemMarginInline:Y.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ge,groupTitleLineHeight:gt,collapsedWidth:Ge*2,popupBg:bt,itemMarginBlock:mt,itemPaddingInline:zt,horizontalLineHeight:`${Ge*1.15}px`,iconSize:Ct,iconMarginInlineEnd:w-Ct,collapsedIconSize:A,groupTitleFontSize:Ct,darkItemDisabledColor:new _e.C(vt).setAlpha(.25).toRgbString(),darkItemColor:Ne,darkDangerItemColor:$,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:vt,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:$,darkItemHoverBg:"transparent",darkGroupTitleColor:Ne,darkItemHoverColor:vt,darkDangerItemHoverColor:ue,darkDangerItemSelectedColor:vt,darkDangerItemActiveBg:$}},{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"]]})(se),Vt=function(se,ve){var ne={};for(var Y in se)Object.prototype.hasOwnProperty.call(se,Y)&&ve.indexOf(Y)<0&&(ne[Y]=se[Y]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Y=Object.getOwnPropertySymbols(se);Ae<Y.length;Ae++)ve.indexOf(Y[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,Y[Ae])&&(ne[Y[Ae]]=se[Y[Ae]]);return ne},$t=(0,N.forwardRef)((se,ve)=>{var ne,Y;const Ae=N.useContext(T.Z),$=Ae||{},{getPrefixCls:R,getPopupContainer:L,direction:oe,menu:le}=N.useContext(H.E_),J=R(),{prefixCls:De,className:je,style:ke,theme:Pe="light",expandIcon:Xe,_internalDisableMenuItemTitleTooltip:st,inlineCollapsed:Ge,siderCollapsed:gt,items:bt,children:mt,rootClassName:zt,mode:Ct,selectable:w,onClick:A,overflowedIndicatorPopupClassName:vt}=se,ue=Vt(se,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ne=(0,I.Z)(ue,["collapsedWidth"]),bn=be(bt)||mt;(ne=$.validator)===null||ne===void 0||ne.call($,{mode:Ct});const We=(0,V.useEvent)(function(){var An;A==null||A.apply(void 0,arguments),(An=$.onClick)===null||An===void 0||An.call($)}),rt=$.mode||Ct,Je=w!=null?w:$.selectable,Ee=N.useMemo(()=>gt!==void 0?gt:Ge,[Ge,gt]),Te={horizontal:{motionName:`${J}-slide-up`},inline:(0,b.Z)(J),other:{motionName:`${J}-zoom-big`}},ze=R("menu",De||$.prefixCls),[qe,ge]=Bt(ze,!Ae),Jt=U()(`${ze}-${Pe}`,le==null?void 0:le.className,je);let He;if(typeof Xe=="function")He=Xe;else if(Xe===null||Xe===!1)He=null;else if($.expandIcon===null||$.expandIcon===!1)He=null;else{const An=Xe!=null?Xe:$.expandIcon;He=(0,u.Tm)(An,{className:U()(`${ze}-submenu-expand-icon`,(0,u.l$)(An)?(Y=An.props)===null||Y===void 0?void 0:Y.className:"")})}const fn=N.useMemo(()=>({prefixCls:ze,inlineCollapsed:Ee||!1,direction:oe,firstLevel:!0,theme:Pe,mode:rt,disableMenuItemTitleTooltip:st}),[ze,Ee,oe,st,Pe]);return qe(N.createElement(T.Z.Provider,{value:null},N.createElement(y.Provider,{value:fn},N.createElement(z.ZP,Object.assign({getPopupContainer:L,overflowedIndicator:N.createElement(W.Z,null),overflowedIndicatorPopupClassName:U()(ze,`${ze}-${Pe}`,vt),mode:rt,selectable:Je,onClick:We},Ne,{inlineCollapsed:Ee,style:Object.assign(Object.assign({},le==null?void 0:le.style),ke),className:Jt,prefixCls:ze,direction:oe,defaultMotions:Te,expandIcon:He,ref:ve,rootClassName:U()(zt,ge)}),bn))))});const Gt=(0,N.forwardRef)((se,ve)=>{const ne=(0,N.useRef)(null),Y=N.useContext(X.D);return(0,N.useImperativeHandle)(ve,()=>({menu:ne.current,focus:Ae=>{var $;($=ne.current)===null||$===void 0||$.focus(Ae)}})),N.createElement($t,Object.assign({ref:ne},se,Y))});Gt.Item=te,Gt.SubMenu=M,Gt.Divider=a,Gt.ItemGroup=z.BW;var lt=Gt},58421:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return $}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(L,oe){return N.createElement(U.Z,(0,z.Z)({},L,{ref:oe,icon:ye}))},S=N.forwardRef(H),me=S,a=h(49198),C=h(33853),I=h(38819),m=h(92310),u=h.n(m),x=h(400),y=h(33708),O=h(6909),te=h(4771),B=h(9427),M=h(25440),W=h(26112),V={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},b=V,T=h(91735),G=function(R){(0,B.Z)(oe,R);var L=(0,M.Z)(oe);function oe(){var le;(0,O.Z)(this,oe);for(var J=arguments.length,De=new Array(J),je=0;je<J;je++)De[je]=arguments[je];return le=L.call.apply(L,[this].concat(De)),le.state={goInputText:""},le.getValidValue=function(){var ke=le.state.goInputText;return!ke||Number.isNaN(ke)?void 0:Number(ke)},le.buildOptionText=function(ke){return"".concat(ke," ").concat(le.props.locale.items_per_page)},le.changeSize=function(ke){le.props.changeSize(Number(ke))},le.handleChange=function(ke){le.setState({goInputText:ke.target.value})},le.handleBlur=function(ke){var Pe=le.props,Xe=Pe.goButton,st=Pe.quickGo,Ge=Pe.rootPrefixCls,gt=le.state.goInputText;Xe||gt===""||(le.setState({goInputText:""}),!(ke.relatedTarget&&(ke.relatedTarget.className.indexOf("".concat(Ge,"-item-link"))>=0||ke.relatedTarget.className.indexOf("".concat(Ge,"-item"))>=0))&&st(le.getValidValue()))},le.go=function(ke){var Pe=le.state.goInputText;Pe!==""&&(ke.keyCode===b.ENTER||ke.type==="click")&&(le.setState({goInputText:""}),le.props.quickGo(le.getValidValue()))},le}return(0,te.Z)(oe,[{key:"getPageSizeOptions",value:function(){var J=this.props,De=J.pageSize,je=J.pageSizeOptions;return je.some(function(ke){return ke.toString()===De.toString()})?je:je.concat([De.toString()]).sort(function(ke,Pe){var Xe=Number.isNaN(Number(ke))?0:Number(ke),st=Number.isNaN(Number(Pe))?0:Number(Pe);return Xe-st})}},{key:"render",value:function(){var J=this,De=this.props,je=De.pageSize,ke=De.locale,Pe=De.rootPrefixCls,Xe=De.changeSize,st=De.quickGo,Ge=De.goButton,gt=De.selectComponentClass,bt=De.buildOptionText,mt=De.selectPrefixCls,zt=De.disabled,Ct=this.state.goInputText,w="".concat(Pe,"-options"),A=gt,vt=null,ue=null,Ne=null;if(!Xe&&!st)return null;var bn=this.getPageSizeOptions();if(Xe&&A){var We=bn.map(function(rt,Je){return N.createElement(A.Option,{key:Je,value:rt.toString()},(bt||J.buildOptionText)(rt))});vt=N.createElement(A,{disabled:zt,prefixCls:mt,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(je||bn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Je){return Je.parentNode},"aria-label":ke.page_size,defaultOpen:!1},We)}return st&&(Ge&&(Ne=typeof Ge=="boolean"?N.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:zt,className:"".concat(w,"-quick-jumper-button")},ke.jump_to_confirm):N.createElement("span",{onClick:this.go,onKeyUp:this.go},Ge)),ue=N.createElement("div",{className:"".concat(w,"-quick-jumper")},ke.jump_to,N.createElement("input",{disabled:zt,type:"text",value:Ct,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ke.page}),ke.page,Ne)),N.createElement("li",{className:"".concat(w)},vt,ue)}}]),oe}(N.Component);G.defaultProps={pageSizeOptions:["10","20","50","100"]};var j=G,be=function(L){var oe,le=L.rootPrefixCls,J=L.page,De=L.active,je=L.className,ke=L.showTitle,Pe=L.onClick,Xe=L.onKeyPress,st=L.itemRender,Ge="".concat(le,"-item"),gt=u()(Ge,"".concat(Ge,"-").concat(J),(oe={},(0,x.Z)(oe,"".concat(Ge,"-active"),De),(0,x.Z)(oe,"".concat(Ge,"-disabled"),!J),(0,x.Z)(oe,L.className,je),oe)),bt=function(){Pe(J)},mt=function(w){Xe(w,Pe,J)},zt=st(J,"page",N.createElement("a",{rel:"nofollow"},J));return zt?N.createElement("li",{title:ke?J.toString():null,className:gt,onClick:bt,onKeyPress:mt,tabIndex:0},zt):null},_e=be;function xe(){}function de(R){var L=Number(R);return typeof L=="number"&&!Number.isNaN(L)&&isFinite(L)&&Math.floor(L)===L}var ee=function(L,oe,le){return le};function Z(R,L,oe){var le=typeof R=="undefined"?L.pageSize:R;return Math.floor((oe.total-1)/le)+1}var pe=function(R){(0,B.Z)(oe,R);var L=(0,M.Z)(oe);function oe(le){var J;(0,O.Z)(this,oe),J=L.call(this,le),J.paginationNode=N.createRef(),J.getJumpPrevPage=function(){return Math.max(1,J.state.current-(J.props.showLessItems?3:5))},J.getJumpNextPage=function(){return Math.min(Z(void 0,J.state,J.props),J.state.current+(J.props.showLessItems?3:5))},J.getItemIcon=function(Xe,st){var Ge=J.props.prefixCls,gt=Xe||N.createElement("button",{type:"button","aria-label":st,className:"".concat(Ge,"-item-link")});return typeof Xe=="function"&&(gt=N.createElement(Xe,(0,y.Z)({},J.props))),gt},J.isValid=function(Xe){var st=J.props.total;return de(Xe)&&Xe!==J.state.current&&de(st)&&st>0},J.shouldDisplayQuickJumper=function(){var Xe=J.props,st=Xe.showQuickJumper,Ge=Xe.total,gt=J.state.pageSize;return Ge<=gt?!1:st},J.handleKeyDown=function(Xe){(Xe.keyCode===b.ARROW_UP||Xe.keyCode===b.ARROW_DOWN)&&Xe.preventDefault()},J.handleKeyUp=function(Xe){var st=J.getValidValue(Xe),Ge=J.state.currentInputValue;st!==Ge&&J.setState({currentInputValue:st}),Xe.keyCode===b.ENTER?J.handleChange(st):Xe.keyCode===b.ARROW_UP?J.handleChange(st-1):Xe.keyCode===b.ARROW_DOWN&&J.handleChange(st+1)},J.handleBlur=function(Xe){var st=J.getValidValue(Xe);J.handleChange(st)},J.changePageSize=function(Xe){var st=J.state.current,Ge=Z(Xe,J.state,J.props);st=st>Ge?Ge:st,Ge===0&&(st=J.state.current),typeof Xe=="number"&&("pageSize"in J.props||J.setState({pageSize:Xe}),"current"in J.props||J.setState({current:st,currentInputValue:st})),J.props.onShowSizeChange(st,Xe),"onChange"in J.props&&J.props.onChange&&J.props.onChange(st,Xe)},J.handleChange=function(Xe){var st=J.props,Ge=st.disabled,gt=st.onChange,bt=J.state,mt=bt.pageSize,zt=bt.current,Ct=bt.currentInputValue;if(J.isValid(Xe)&&!Ge){var w=Z(void 0,J.state,J.props),A=Xe;return Xe>w?A=w:Xe<1&&(A=1),"current"in J.props||J.setState({current:A}),A!==Ct&&J.setState({currentInputValue:A}),gt(A,mt),A}return zt},J.prev=function(){J.hasPrev()&&J.handleChange(J.state.current-1)},J.next=function(){J.hasNext()&&J.handleChange(J.state.current+1)},J.jumpPrev=function(){J.handleChange(J.getJumpPrevPage())},J.jumpNext=function(){J.handleChange(J.getJumpNextPage())},J.hasPrev=function(){return J.state.current>1},J.hasNext=function(){return J.state.current<Z(void 0,J.state,J.props)},J.runIfEnter=function(Xe,st){if(Xe.key==="Enter"||Xe.charCode===13){for(var Ge=arguments.length,gt=new Array(Ge>2?Ge-2:0),bt=2;bt<Ge;bt++)gt[bt-2]=arguments[bt];st.apply(void 0,gt)}},J.runIfEnterPrev=function(Xe){J.runIfEnter(Xe,J.prev)},J.runIfEnterNext=function(Xe){J.runIfEnter(Xe,J.next)},J.runIfEnterJumpPrev=function(Xe){J.runIfEnter(Xe,J.jumpPrev)},J.runIfEnterJumpNext=function(Xe){J.runIfEnter(Xe,J.jumpNext)},J.handleGoTO=function(Xe){(Xe.keyCode===b.ENTER||Xe.type==="click")&&J.handleChange(J.state.currentInputValue)},J.renderPrev=function(Xe){var st=J.props,Ge=st.prevIcon,gt=st.itemRender,bt=gt(Xe,"prev",J.getItemIcon(Ge,"prev page")),mt=!J.hasPrev();return(0,N.isValidElement)(bt)?(0,N.cloneElement)(bt,{disabled:mt}):bt},J.renderNext=function(Xe){var st=J.props,Ge=st.nextIcon,gt=st.itemRender,bt=gt(Xe,"next",J.getItemIcon(Ge,"next page")),mt=!J.hasNext();return(0,N.isValidElement)(bt)?(0,N.cloneElement)(bt,{disabled:mt}):bt};var De=le.onChange!==xe,je="current"in le;je&&!De&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ke=le.defaultCurrent;"current"in le&&(ke=le.current);var Pe=le.defaultPageSize;return"pageSize"in le&&(Pe=le.pageSize),ke=Math.min(ke,Z(Pe,void 0,le)),J.state={current:ke,currentInputValue:ke,pageSize:Pe},J}return(0,te.Z)(oe,[{key:"componentDidUpdate",value:function(J,De){var je=this.props.prefixCls;if(De.current!==this.state.current&&this.paginationNode.current){var ke=this.paginationNode.current.querySelector(".".concat(je,"-item-").concat(De.current));if(ke&&document.activeElement===ke){var Pe;ke==null||(Pe=ke.blur)===null||Pe===void 0||Pe.call(ke)}}}},{key:"getValidValue",value:function(J){var De=J.target.value,je=Z(void 0,this.state,this.props),ke=this.state.currentInputValue,Pe;return De===""?Pe=De:Number.isNaN(Number(De))?Pe=ke:De>=je?Pe=je:Pe=Number(De),Pe}},{key:"getShowSizeChanger",value:function(){var J=this.props,De=J.showSizeChanger,je=J.total,ke=J.totalBoundaryShowSizeChanger;return typeof De!="undefined"?De:je>ke}},{key:"render",value:function(){var J=this.props,De=J.prefixCls,je=J.className,ke=J.style,Pe=J.disabled,Xe=J.hideOnSinglePage,st=J.total,Ge=J.locale,gt=J.showQuickJumper,bt=J.showLessItems,mt=J.showTitle,zt=J.showTotal,Ct=J.simple,w=J.itemRender,A=J.showPrevNextJumpers,vt=J.jumpPrevIcon,ue=J.jumpNextIcon,Ne=J.selectComponentClass,bn=J.selectPrefixCls,We=J.pageSizeOptions,rt=this.state,Je=rt.current,Ee=rt.pageSize,Te=rt.currentInputValue;if(Xe===!0&&st<=Ee)return null;var ze=Z(void 0,this.state,this.props),qe=[],ge=null,Jt=null,He=null,fn=null,An=null,Hn=gt&&gt.goButton,vr=bt?1:2,hn=Je-1>0?Je-1:0,pn=Je+1<ze?Je+1:ze,et=(0,W.Z)(this.props,{aria:!0,data:!0}),Rt=zt&&N.createElement("li",{className:"".concat(De,"-total-text")},zt(st,[st===0?0:(Je-1)*Ee+1,Je*Ee>st?st:Je*Ee]));if(Ct){Hn&&(typeof Hn=="boolean"?An=N.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ge.jump_to_confirm):An=N.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Hn),An=N.createElement("li",{title:mt?"".concat(Ge.jump_to).concat(Je,"/").concat(ze):null,className:"".concat(De,"-simple-pager")},An));var Ft=this.renderPrev(hn);return N.createElement("ul",(0,z.Z)({className:u()(De,"".concat(De,"-simple"),(0,x.Z)({},"".concat(De,"-disabled"),Pe),je),style:ke,ref:this.paginationNode},et),Rt,Ft?N.createElement("li",{title:mt?Ge.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:u()("".concat(De,"-prev"),(0,x.Z)({},"".concat(De,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ft):null,N.createElement("li",{title:mt?"".concat(Je,"/").concat(ze):null,className:"".concat(De,"-simple-pager")},N.createElement("input",{type:"text",value:Te,disabled:Pe,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),N.createElement("span",{className:"".concat(De,"-slash")},"/"),ze),N.createElement("li",{title:mt?Ge.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:u()("".concat(De,"-next"),(0,x.Z)({},"".concat(De,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(pn)),An)}if(ze<=3+vr*2){var Ue={locale:Ge,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:mt,itemRender:w};ze||qe.push(N.createElement(_e,(0,z.Z)({},Ue,{key:"noPager",page:1,className:"".concat(De,"-item-disabled")})));for(var Oe=1;Oe<=ze;Oe+=1){var xt=Je===Oe;qe.push(N.createElement(_e,(0,z.Z)({},Ue,{key:Oe,page:Oe,active:xt})))}}else{var St=bt?Ge.prev_3:Ge.prev_5,en=bt?Ge.next_3:Ge.next_5,jt=w(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(vt,"prev page")),sn=w(this.getJumpNextPage(),"jump-next",this.getItemIcon(ue,"next page"));A&&(ge=jt?N.createElement("li",{title:mt?St:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:u()("".concat(De,"-jump-prev"),(0,x.Z)({},"".concat(De,"-jump-prev-custom-icon"),!!vt))},jt):null,Jt=sn?N.createElement("li",{title:mt?en:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:u()("".concat(De,"-jump-next"),(0,x.Z)({},"".concat(De,"-jump-next-custom-icon"),!!ue))},sn):null),fn=N.createElement(_e,{locale:Ge,last:!0,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ze,page:ze,active:!1,showTitle:mt,itemRender:w}),He=N.createElement(_e,{locale:Ge,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:mt,itemRender:w});var Xt=Math.max(1,Je-vr),vn=Math.min(Je+vr,ze);Je-1<=vr&&(vn=1+vr*2),ze-Je<=vr&&(Xt=ze-vr*2);for(var _n=Xt;_n<=vn;_n+=1){var Mt=Je===_n;qe.push(N.createElement(_e,{locale:Ge,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_n,page:_n,active:Mt,showTitle:mt,itemRender:w}))}Je-1>=vr*2&&Je!==3&&(qe[0]=(0,N.cloneElement)(qe[0],{className:"".concat(De,"-item-after-jump-prev")}),qe.unshift(ge)),ze-Je>=vr*2&&Je!==ze-2&&(qe[qe.length-1]=(0,N.cloneElement)(qe[qe.length-1],{className:"".concat(De,"-item-before-jump-next")}),qe.push(Jt)),Xt!==1&&qe.unshift(He),vn!==ze&&qe.push(fn)}var At=!this.hasPrev()||!ze,tn=!this.hasNext()||!ze,an=this.renderPrev(hn),on=this.renderNext(pn);return N.createElement("ul",(0,z.Z)({className:u()(De,je,(0,x.Z)({},"".concat(De,"-disabled"),Pe)),style:ke,ref:this.paginationNode},et),Rt,an?N.createElement("li",{title:mt?Ge.prev_page:null,onClick:this.prev,tabIndex:At?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(De,"-prev"),(0,x.Z)({},"".concat(De,"-disabled"),At)),"aria-disabled":At},an):null,qe,on?N.createElement("li",{title:mt?Ge.next_page:null,onClick:this.next,tabIndex:tn?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(De,"-next"),(0,x.Z)({},"".concat(De,"-disabled"),tn)),"aria-disabled":tn},on):null,N.createElement(j,{disabled:Pe,locale:Ge,rootPrefixCls:De,selectComponentClass:Ne,selectPrefixCls:bn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Je,pageSize:Ee,pageSizeOptions:We,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Hn}))}}],[{key:"getDerivedStateFromProps",value:function(J,De){var je={};if("current"in J&&(je.current=J.current,J.current!==De.current&&(je.currentInputValue=je.current)),"pageSize"in J&&J.pageSize!==De.pageSize){var ke=De.current,Pe=Z(J.pageSize,De,J);ke=ke>Pe?Pe:ke,"current"in J||(je.current=ke,je.currentInputValue=ke),je.pageSize=J.pageSize}return je}}]),oe}(N.Component);pe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:xe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:xe,locale:T.Z,style:{},itemRender:ee,totalBoundaryShowSizeChanger:50};var P=pe,ie=h(22075),Q=h(36355),v=h(19716),E=h(8628),K=h(9763),fe=h(57809);const Be=R=>N.createElement(fe.default,Object.assign({},R,{showSearch:!0,size:"small"})),Ke=R=>N.createElement(fe.default,Object.assign({},R,{showSearch:!0,size:"middle"}));Be.Option=fe.default.Option,Ke.Option=fe.default.Option;var Me=h(9937),Ye=h(17313),ht=h(83116),pt=h(37613);const at=R=>{const{componentCls:L}=R;return{[`${L}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${L}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${L}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}}},[`&${L}-disabled`]:{cursor:"not-allowed",[`${L}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:R.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:R.colorBorder,backgroundColor:R.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:R.itemActiveBgDisabled},a:{color:R.itemActiveColorDisabled}}},[`${L}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${L}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${L}-simple-pager`]:{color:R.colorTextDisabled},[`${L}-jump-prev, ${L}-jump-next`]:{[`${L}-item-link-icon`]:{opacity:0},[`${L}-item-ellipsis`]:{opacity:1}}},[`&${L}-simple`]:{[`${L}-prev, ${L}-next`]:{[`&${L}-disabled ${L}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Bt=R=>{const{componentCls:L}=R;return{[`&${L}-mini ${L}-total-text, &${L}-mini ${L}-simple-pager`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`},[`&${L}-mini ${L}-item`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM-2}px`},[`&${L}-mini:not(${L}-disabled) ${L}-item:not(${L}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},[`&${L}-mini ${L}-prev, &${L}-mini ${L}-next`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM}px`},[`&${L}-mini:not(${L}-disabled)`]:{[`${L}-prev, ${L}-next`]:{[`&:hover ${L}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${L}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${L}-disabled:hover ${L}-item-link`]:{backgroundColor:"transparent"}}},[`
&${L}-mini ${L}-prev ${L}-item-link,
&${L}-mini ${L}-next ${L}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}},[`&${L}-mini ${L}-jump-prev, &${L}-mini ${L}-jump-next`]:{height:R.itemSizeSM,marginInlineEnd:0,lineHeight:`${R.itemSizeSM}px`},[`&${L}-mini ${L}-options`]:{marginInlineStart:R.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:R.miniOptionsSizeChangerTop},"&-quick-jumper":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Me.x0)(R)),{width:R.paginationMiniQuickJumperInputWidth,height:R.controlHeightSM})}}}},Vt=R=>{const{componentCls:L}=R;return{[`
&${L}-simple ${L}-prev,
&${L}-simple ${L}-next
`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,verticalAlign:"top",[`${L}-item-link`]:{height:R.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive},"&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}}},[`&${L}-simple ${L}-simple-pager`]:{display:"inline-block",height:R.itemSizeSM,marginInlineEnd:R.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:R.marginXS,padding:`0 ${R.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:R.itemInputBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadius,outline:"none",transition:`border-color ${R.motionDurationMid}`,color:"inherit","&:hover":{borderColor:R.colorPrimary},"&:focus":{borderColor:R.colorPrimaryHover,boxShadow:`${R.inputOutlineOffset}px 0 ${R.controlOutlineWidth}px ${R.controlOutline}`},"&[disabled]":{color:R.colorTextDisabled,backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,cursor:"not-allowed"}}}}},qt=R=>{const{componentCls:L}=R;return{[`${L}-jump-prev, ${L}-jump-next`]:{outline:0,[`${L}-item-container`]:{position:"relative",[`${L}-item-link-icon`]:{color:R.colorPrimary,fontSize:R.fontSizeSM,opacity:0,transition:`all ${R.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${L}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:R.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:R.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:R.paginationEllipsisTextIndent,opacity:1,transition:`all ${R.motionDurationMid}`}},"&:hover":{[`${L}-item-link-icon`]:{opacity:1},[`${L}-item-ellipsis`]:{opacity:0}}},[`
${L}-prev,
${L}-jump-prev,
${L}-jump-next
`]:{marginInlineEnd:R.marginXS},[`
${L}-prev,
${L}-next,
${L}-jump-prev,
${L}-jump-next
`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,color:R.colorText,fontFamily:R.fontFamily,lineHeight:`${R.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}`},[`${L}-prev, ${L}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:R.colorText,cursor:"pointer",userSelect:"none"},[`${L}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:R.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:"none",transition:`all ${R.motionDurationMid}`},[`&:hover ${L}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${L}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${L}-disabled:hover`]:{[`${L}-item-link`]:{backgroundColor:"transparent"}}},[`${L}-slash`]:{marginInlineEnd:R.paginationSlashMarginInlineEnd,marginInlineStart:R.paginationSlashMarginInlineStart},[`${L}-options`]:{display:"inline-block",marginInlineStart:R.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:R.controlHeight,marginInlineStart:R.marginXS,lineHeight:`${R.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Me.ik)(R)),{width:R.controlHeightLG*1.25,height:R.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:R.marginXS,marginInlineEnd:R.marginXS})}}}},$t=R=>{const{componentCls:L}=R;return{[`${L}-item`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,marginInlineEnd:R.marginXS,fontFamily:R.fontFamily,lineHeight:`${R.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${R.paginationItemPaddingInline}px`,color:R.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${L}-item-active)`]:{"&:hover":{transition:`all ${R.motionDurationMid}`,backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},"&-active":{fontWeight:R.fontWeightStrong,backgroundColor:R.itemActiveBg,borderColor:R.colorPrimary,a:{color:R.colorPrimary},"&:hover":{borderColor:R.colorPrimaryHover},"&:hover a":{color:R.colorPrimaryHover}}}}},Gt=R=>{const{componentCls:L}=R;return{[L]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(R)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${L}-total-text`]:{display:"inline-block",height:R.itemSize,marginInlineEnd:R.marginXS,lineHeight:`${R.itemSize-2}px`,verticalAlign:"middle"}}),$t(R)),qt(R)),Vt(R)),Bt(R)),at(R)),{[`@media only screen and (max-width: ${R.screenLG}px)`]:{[`${L}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${R.screenSM}px)`]:{[`${L}-options`]:{display:"none"}}}),[`&${R.componentCls}-rtl`]:{direction:"rtl"}}},lt=R=>{const{componentCls:L}=R;return{[`${L}${L}-disabled:not(${L}-mini)`]:{"&, &:hover":{[`${L}-item-link`]:{borderColor:R.colorBorder}},"&:focus-visible":{[`${L}-item-link`]:{borderColor:R.colorBorder}},[`${L}-item, ${L}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,[`&:hover:not(${L}-item-active)`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,a:{color:R.colorTextDisabled}},[`&${L}-item-active`]:{backgroundColor:R.itemActiveBgDisabled}},[`${L}-prev, ${L}-next`]:{"&:hover button":{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,color:R.colorTextDisabled},[`${L}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder}}},[`${L}:not(${L}-mini)`]:{[`${L}-prev, ${L}-next`]:{"&:hover button":{borderColor:R.colorPrimaryHover,backgroundColor:R.itemBg},[`${L}-item-link`]:{backgroundColor:R.itemLinkBg,borderColor:R.colorBorder},[`&:hover ${L}-item-link`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,color:R.colorPrimary},[`&${L}-disabled`]:{[`${L}-item-link`]:{borderColor:R.colorBorder,color:R.colorTextDisabled}}},[`${L}-item`]:{backgroundColor:R.itemBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,[`&:hover:not(${L}-item-active)`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,a:{color:R.colorPrimary}},"&-active":{borderColor:R.colorPrimary}}}}},se=R=>{const{componentCls:L}=R;return{[`${L}:not(${L}-disabled)`]:{[`${L}-item`]:Object.assign({},(0,Ye.Qy)(R)),[`${L}-jump-prev, ${L}-jump-next`]:{"&:focus-visible":Object.assign({[`${L}-item-link-icon`]:{opacity:1},[`${L}-item-ellipsis`]:{opacity:0}},(0,Ye.oN)(R))},[`${L}-prev, ${L}-next`]:{[`&:focus-visible ${L}-item-link`]:Object.assign({},(0,Ye.oN)(R))}}}};var ve=(0,ht.Z)("Pagination",R=>{const L=(0,pt.TS)(R,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:R.marginXXS/2,paginationMiniQuickJumperInputWidth:R.controlHeightLG*1.1,paginationItemPaddingInline:R.marginXXS*1.5,paginationEllipsisLetterSpacing:R.marginXXS/2,paginationSlashMarginInlineStart:R.marginXXS,paginationSlashMarginInlineEnd:R.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Me.e5)(R),(0,Me.TM)(R));return[Gt(L),se(L),R.wireframe&&lt(L)]},R=>({itemBg:R.colorBgContainer,itemSize:R.controlHeight,itemSizeSM:R.controlHeightSM,itemActiveBg:R.colorBgContainer,itemLinkBg:R.colorBgContainer,itemActiveColorDisabled:R.colorTextDisabled,itemActiveBgDisabled:R.controlItemBgActiveDisabled,itemInputBg:R.colorBgContainer,miniOptionsSizeChangerTop:0})),ne=function(R,L){var oe={};for(var le in R)Object.prototype.hasOwnProperty.call(R,le)&&L.indexOf(le)<0&&(oe[le]=R[le]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,le=Object.getOwnPropertySymbols(R);J<le.length;J++)L.indexOf(le[J])<0&&Object.prototype.propertyIsEnumerable.call(R,le[J])&&(oe[le[J]]=R[le[J]]);return oe},Ae=R=>{const{prefixCls:L,selectPrefixCls:oe,className:le,rootClassName:J,style:De,size:je,locale:ke,selectComponentClass:Pe,responsive:Xe,showSizeChanger:st}=R,Ge=ne(R,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:gt}=(0,E.Z)(Xe),{getPrefixCls:bt,direction:mt,pagination:zt={}}=N.useContext(Q.E_),Ct=bt("pagination",L),[w,A]=ve(Ct),vt=st!=null?st:zt.showSizeChanger,ue=N.useMemo(()=>{const ze=N.createElement("span",{className:`${Ct}-item-ellipsis`},"\u2022\u2022\u2022"),qe=N.createElement("button",{className:`${Ct}-item-link`,type:"button",tabIndex:-1},mt==="rtl"?N.createElement(I.Z,null):N.createElement(C.Z,null)),ge=N.createElement("button",{className:`${Ct}-item-link`,type:"button",tabIndex:-1},mt==="rtl"?N.createElement(C.Z,null):N.createElement(I.Z,null)),Jt=N.createElement("a",{className:`${Ct}-item-link`},N.createElement("div",{className:`${Ct}-item-container`},mt==="rtl"?N.createElement(a.Z,{className:`${Ct}-item-link-icon`}):N.createElement(me,{className:`${Ct}-item-link-icon`}),ze)),He=N.createElement("a",{className:`${Ct}-item-link`},N.createElement("div",{className:`${Ct}-item-container`},mt==="rtl"?N.createElement(me,{className:`${Ct}-item-link-icon`}):N.createElement(a.Z,{className:`${Ct}-item-link-icon`}),ze));return{prevIcon:qe,nextIcon:ge,jumpPrevIcon:Jt,jumpNextIcon:He}},[mt,Ct]),[Ne]=(0,K.Z)("Pagination",ie.Z),bn=Object.assign(Object.assign({},Ne),ke),We=(0,v.Z)(je),rt=We==="small"||!!(gt&&!We&&Xe),Je=bt("select",oe),Ee=u()({[`${Ct}-mini`]:rt,[`${Ct}-rtl`]:mt==="rtl"},zt==null?void 0:zt.className,le,J,A),Te=Object.assign(Object.assign({},zt==null?void 0:zt.style),De);return w(N.createElement(P,Object.assign({},ue,Ge,{style:Te,prefixCls:Ct,selectPrefixCls:Je,className:Ee,selectComponentClass:Pe||(rt?Be:Ke),locale:bn,showSizeChanger:vt})))},$=Ae},5112:function(Wt,Ze,h){"use strict";h.d(Ze,{ZP:function(){return E}});var z=h(92310),N=h.n(z),X=h(18929),ye=h(26112),U=h(59301),H=h(36355),S=h(19716);const me=U.createContext(null),a=me.Provider;var C=me;const I=U.createContext(null),m=I.Provider;var u=h(5630),x=h(8654),y=h(1684),O=h(32441),te=h(17313),B=h(83116),M=h(37613);const W=K=>{const{componentCls:fe,antCls:Be}=K,Ke=`${fe}-group`;return{[Ke]:Object.assign(Object.assign({},(0,te.Wf)(K)),{display:"inline-block",fontSize:0,[`&${Ke}-rtl`]:{direction:"rtl"},[`${Be}-badge ${Be}-badge-count`]:{zIndex:1},[`> ${Be}-badge:not(:first-child) > ${Be}-button-wrapper`]:{borderInlineStart:"none"}})}},V=K=>{const{componentCls:fe,wrapperMarginInlineEnd:Be,colorPrimary:Ke,radioSize:Me,motionDurationSlow:Ye,motionDurationMid:ht,motionEaseInOutCirc:pt,colorBgContainer:at,colorBorder:Bt,lineWidth:Vt,dotSize:qt,colorBgContainerDisabled:$t,colorTextDisabled:Gt,paddingXS:lt,dotColorDisabled:se,lineType:ve,radioDotDisabledSize:ne,wireframe:Y,colorWhite:Ae}=K,$=`${fe}-inner`;return{[`${fe}-wrapper`]:Object.assign(Object.assign({},(0,te.Wf)(K)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Be,cursor:"pointer",[`&${fe}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:K.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${fe}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Vt}px ${ve} ${Ke}`,borderRadius:"50%",visibility:"hidden",content:'""'},[fe]:Object.assign(Object.assign({},(0,te.Wf)(K)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${fe}-wrapper:hover &,
&:hover ${$}`]:{borderColor:Ke},[`${fe}-input:focus-visible + ${$}`]:Object.assign({},(0,te.oN)(K)),[`${fe}:hover::after, ${fe}-wrapper:hover &::after`]:{visibility:"visible"},[`${fe}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Me,height:Me,marginBlockStart:Me/-2,marginInlineStart:Me/-2,backgroundColor:Y?Ke:Ae,borderBlockStart:0,borderInlineStart:0,borderRadius:Me,transform:"scale(0)",opacity:0,transition:`all ${Ye} ${pt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Me,height:Me,backgroundColor:at,borderColor:Bt,borderStyle:"solid",borderWidth:Vt,borderRadius:"50%",transition:`all ${ht}`},[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${fe}-checked`]:{[$]:{borderColor:Ke,backgroundColor:Y?at:Ke,"&::after":{transform:`scale(${qt/Me})`,opacity:1,transition:`all ${Ye} ${pt}`}}},[`${fe}-disabled`]:{cursor:"not-allowed",[$]:{backgroundColor:$t,borderColor:Bt,cursor:"not-allowed","&::after":{backgroundColor:se}},[`${fe}-input`]:{cursor:"not-allowed"},[`${fe}-disabled + span`]:{color:Gt,cursor:"not-allowed"},[`&${fe}-checked`]:{[$]:{"&::after":{transform:`scale(${ne/Me})`}}}},[`span${fe} + *`]:{paddingInlineStart:lt,paddingInlineEnd:lt}})}},b=K=>{const{buttonColor:fe,controlHeight:Be,componentCls:Ke,lineWidth:Me,lineType:Ye,colorBorder:ht,motionDurationSlow:pt,motionDurationMid:at,buttonPaddingInline:Bt,fontSize:Vt,buttonBg:qt,fontSizeLG:$t,controlHeightLG:Gt,controlHeightSM:lt,paddingXS:se,borderRadius:ve,borderRadiusSM:ne,borderRadiusLG:Y,buttonCheckedBg:Ae,buttonSolidCheckedColor:$,colorTextDisabled:R,colorBgContainerDisabled:L,buttonCheckedBgDisabled:oe,buttonCheckedColorDisabled:le,colorPrimary:J,colorPrimaryHover:De,colorPrimaryActive:je,buttonSolidCheckedBg:ke,buttonSolidCheckedHoverBg:Pe,buttonSolidCheckedActiveBg:Xe}=K;return{[`${Ke}-button-wrapper`]:{position:"relative",display:"inline-block",height:Be,margin:0,paddingInline:Bt,paddingBlock:0,color:fe,fontSize:Vt,lineHeight:`${Be-Me*2}px`,background:qt,border:`${Me}px ${Ye} ${ht}`,borderBlockStartWidth:Me+.02,borderInlineStartWidth:0,borderInlineEndWidth:Me,cursor:"pointer",transition:[`color ${at}`,`background ${at}`,`box-shadow ${at}`].join(","),a:{color:fe},[`> ${Ke}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Me,insetInlineStart:-Me,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Me,paddingInline:0,backgroundColor:ht,transition:`background-color ${pt}`,content:'""'}},"&:first-child":{borderInlineStart:`${Me}px ${Ye} ${ht}`,borderStartStartRadius:ve,borderEndStartRadius:ve},"&:last-child":{borderStartEndRadius:ve,borderEndEndRadius:ve},"&:first-child:last-child":{borderRadius:ve},[`${Ke}-group-large &`]:{height:Gt,fontSize:$t,lineHeight:`${Gt-Me*2}px`,"&:first-child":{borderStartStartRadius:Y,borderEndStartRadius:Y},"&:last-child":{borderStartEndRadius:Y,borderEndEndRadius:Y}},[`${Ke}-group-small &`]:{height:lt,paddingInline:se-Me,paddingBlock:0,lineHeight:`${lt-Me*2}px`,"&:first-child":{borderStartStartRadius:ne,borderEndStartRadius:ne},"&:last-child":{borderStartEndRadius:ne,borderEndEndRadius:ne}},"&:hover":{position:"relative",color:J},"&:has(:focus-visible)":Object.assign({},(0,te.oN)(K)),[`${Ke}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ke}-button-wrapper-disabled)`]:{zIndex:1,color:J,background:Ae,borderColor:J,"&::before":{backgroundColor:J},"&:first-child":{borderColor:J},"&:hover":{color:De,borderColor:De,"&::before":{backgroundColor:De}},"&:active":{color:je,borderColor:je,"&::before":{backgroundColor:je}}},[`${Ke}-group-solid &-checked:not(${Ke}-button-wrapper-disabled)`]:{color:$,background:ke,borderColor:ke,"&:hover":{color:$,background:Pe,borderColor:Pe},"&:active":{color:$,background:Xe,borderColor:Xe}},"&-disabled":{color:R,backgroundColor:L,borderColor:ht,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:L,borderColor:ht}},[`&-disabled${Ke}-button-wrapper-checked`]:{color:le,backgroundColor:oe,borderColor:ht,boxShadow:"none"}}}},T=K=>K-4*2;var G=(0,B.Z)("Radio",K=>{const{controlOutline:fe,controlOutlineWidth:Be,radioSize:Ke}=K,Me=`0 0 0 ${Be}px ${fe}`,Ye=Me,ht=T(Ke),pt=(0,M.TS)(K,{radioDotDisabledSize:ht,radioFocusShadow:Me,radioButtonFocusShadow:Ye});return[W(pt),V(pt),b(pt)]},K=>{const{wireframe:fe,padding:Be,marginXS:Ke,lineWidth:Me,fontSizeLG:Ye,colorText:ht,colorBgContainer:pt,colorTextDisabled:at,controlItemBgActiveDisabled:Bt,colorTextLightSolid:Vt,colorPrimary:qt,colorPrimaryHover:$t,colorPrimaryActive:Gt}=K,lt=4,se=Ye,ve=fe?T(se):se-(lt+Me)*2;return{radioSize:se,dotSize:ve,dotColorDisabled:at,buttonSolidCheckedColor:Vt,buttonSolidCheckedBg:qt,buttonSolidCheckedHoverBg:$t,buttonSolidCheckedActiveBg:Gt,buttonBg:pt,buttonCheckedBg:pt,buttonColor:ht,buttonCheckedBgDisabled:Bt,buttonCheckedColorDisabled:at,buttonPaddingInline:Be-Me,wrapperMarginInlineEnd:Ke}}),j=h(14088),be=h(4572),_e=function(K,fe){var Be={};for(var Ke in K)Object.prototype.hasOwnProperty.call(K,Ke)&&fe.indexOf(Ke)<0&&(Be[Ke]=K[Ke]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ke=Object.getOwnPropertySymbols(K);Me<Ke.length;Me++)fe.indexOf(Ke[Me])<0&&Object.prototype.propertyIsEnumerable.call(K,Ke[Me])&&(Be[Ke[Me]]=K[Ke[Me]]);return Be};const xe=(K,fe)=>{var Be,Ke;const Me=U.useContext(C),Ye=U.useContext(I),{getPrefixCls:ht,direction:pt,radio:at}=U.useContext(H.E_),Bt=U.useRef(null),Vt=(0,x.sQ)(fe,Bt),{isFormItemInput:qt}=U.useContext(O.aM),$t=je=>{var ke,Pe;(ke=K.onChange)===null||ke===void 0||ke.call(K,je),(Pe=Me==null?void 0:Me.onChange)===null||Pe===void 0||Pe.call(Me,je)},{prefixCls:Gt,className:lt,rootClassName:se,children:ve,style:ne}=K,Y=_e(K,["prefixCls","className","rootClassName","children","style"]),Ae=ht("radio",Gt),$=((Me==null?void 0:Me.optionType)||Ye)==="button",R=$?`${Ae}-button`:Ae,[L,oe]=G(Ae),le=Object.assign({},Y),J=U.useContext(y.Z);Me&&(le.name=Me.name,le.onChange=$t,le.checked=K.value===Me.value,le.disabled=(Be=le.disabled)!==null&&Be!==void 0?Be:Me.disabled),le.disabled=(Ke=le.disabled)!==null&&Ke!==void 0?Ke:J;const De=N()(`${R}-wrapper`,{[`${R}-wrapper-checked`]:le.checked,[`${R}-wrapper-disabled`]:le.disabled,[`${R}-wrapper-rtl`]:pt==="rtl",[`${R}-wrapper-in-form-item`]:qt},at==null?void 0:at.className,lt,se,oe);return L(U.createElement(j.Z,{component:"Radio",disabled:le.disabled},U.createElement("label",{className:De,style:Object.assign(Object.assign({},at==null?void 0:at.style),ne),onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave},U.createElement(u.Z,Object.assign({},le,{className:N()(le.className,!$&&be.A),type:"radio",prefixCls:R,ref:Vt})),ve!==void 0?U.createElement("span",null,ve):null)))};var ee=U.forwardRef(xe);const Z=U.forwardRef((K,fe)=>{const{getPrefixCls:Be,direction:Ke}=U.useContext(H.E_),[Me,Ye]=(0,X.Z)(K.defaultValue,{value:K.value}),ht=ke=>{const Pe=Me,Xe=ke.target.value;"value"in K||Ye(Xe);const{onChange:st}=K;st&&Xe!==Pe&&st(ke)},{prefixCls:pt,className:at,rootClassName:Bt,options:Vt,buttonStyle:qt="outline",disabled:$t,children:Gt,size:lt,style:se,id:ve,onMouseEnter:ne,onMouseLeave:Y,onFocus:Ae,onBlur:$}=K,R=Be("radio",pt),L=`${R}-group`,[oe,le]=G(R);let J=Gt;Vt&&Vt.length>0&&(J=Vt.map(ke=>typeof ke=="string"||typeof ke=="number"?U.createElement(ee,{key:ke.toString(),prefixCls:R,disabled:$t,value:ke,checked:Me===ke},ke):U.createElement(ee,{key:`radio-group-value-options-${ke.value}`,prefixCls:R,disabled:ke.disabled||$t,value:ke.value,checked:Me===ke.value,title:ke.title,style:ke.style},ke.label)));const De=(0,S.Z)(lt),je=N()(L,`${L}-${qt}`,{[`${L}-${De}`]:De,[`${L}-rtl`]:Ke==="rtl"},at,Bt,le);return oe(U.createElement("div",Object.assign({},(0,ye.Z)(K,{aria:!0,data:!0}),{className:je,style:se,onMouseEnter:ne,onMouseLeave:Y,onFocus:Ae,onBlur:$,id:ve,ref:fe}),U.createElement(a,{value:{onChange:ht,value:Me,disabled:K.disabled,name:K.name,optionType:K.optionType}},J)))});var pe=U.memo(Z),P=function(K,fe){var Be={};for(var Ke in K)Object.prototype.hasOwnProperty.call(K,Ke)&&fe.indexOf(Ke)<0&&(Be[Ke]=K[Ke]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ke=Object.getOwnPropertySymbols(K);Me<Ke.length;Me++)fe.indexOf(Ke[Me])<0&&Object.prototype.propertyIsEnumerable.call(K,Ke[Me])&&(Be[Ke[Me]]=K[Ke[Me]]);return Be};const ie=(K,fe)=>{const{getPrefixCls:Be}=U.useContext(H.E_),{prefixCls:Ke}=K,Me=P(K,["prefixCls"]),Ye=Be("radio",Ke);return U.createElement(m,{value:"button"},U.createElement(ee,Object.assign({prefixCls:Ye},Me,{type:"radio",ref:fe})))};var Q=U.forwardRef(ie);const v=ee;v.Button=Q,v.Group=pe,v.__ANT_RADIO=!0;var E=v},57809:function(Wt,Ze,h){"use strict";var z=h(92310),N=h.n(z),X=h(77861),ye=h(2738),U=h(59301),H=h(53487),S=h(62892),me=h(19080),a=h(36355),C=h(1684),I=h(93891),m=h(19716),u=h(32441),x=h(33234),y=h(14154),O=h(58582),te=h(84443),B=h(66339),M=function(G,j){var be={};for(var _e in G)Object.prototype.hasOwnProperty.call(G,_e)&&j.indexOf(_e)<0&&(be[_e]=G[_e]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(G);xe<_e.length;xe++)j.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(G,_e[xe])&&(be[_e[xe]]=G[_e[xe]]);return be};const W="SECRET_COMBOBOX_MODE_DO_NOT_USE",V=(G,j)=>{var be,{prefixCls:_e,bordered:xe=!0,className:de,rootClassName:ee,getPopupContainer:Z,popupClassName:pe,dropdownClassName:P,listHeight:ie=256,placement:Q,listItemHeight:v=24,size:E,disabled:K,notFoundContent:fe,status:Be,builtinPlacements:Ke,dropdownMatchSelectWidth:Me,popupMatchSelectWidth:Ye,direction:ht,style:pt,allowClear:at}=G,Bt=M(G,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Vt,getPrefixCls:qt,renderEmpty:$t,direction:Gt,virtual:lt,popupMatchSelectWidth:se,popupOverflow:ve,select:ne}=U.useContext(a.E_),Y=qt("select",_e),Ae=qt(),$=ht!=null?ht:Gt,{compactSize:R,compactItemClassnames:L}=(0,x.ri)(Y,$),[oe,le]=(0,y.Z)(Y),J=U.useMemo(()=>{const{mode:Te}=Bt;if(Te!=="combobox")return Te===W?"combobox":Te},[Bt.mode]),De=J==="multiple"||J==="tags",je=(0,te.Z)(Bt.suffixIcon,Bt.showArrow),ke=(be=Ye!=null?Ye:Me)!==null&&be!==void 0?be:se,{status:Pe,hasFeedback:Xe,isFormItemInput:st,feedbackIcon:Ge}=U.useContext(u.aM),gt=(0,me.F)(Pe,Be);let bt;fe!==void 0?bt=fe:J==="combobox"?bt=null:bt=($t==null?void 0:$t("Select"))||U.createElement(I.Z,{componentName:"Select"});const{suffixIcon:mt,itemIcon:zt,removeIcon:Ct,clearIcon:w}=(0,B.Z)(Object.assign(Object.assign({},Bt),{multiple:De,hasFeedback:Xe,feedbackIcon:Ge,showSuffixIcon:je,prefixCls:Y,showArrow:Bt.showArrow,componentName:"Select"})),A=at===!0?{clearIcon:w}:at,vt=(0,ye.Z)(Bt,["suffixIcon","itemIcon"]),ue=N()(pe||P,{[`${Y}-dropdown-${$}`]:$==="rtl"},ee,le),Ne=(0,m.Z)(Te=>{var ze;return(ze=E!=null?E:R)!==null&&ze!==void 0?ze:Te}),bn=U.useContext(C.Z),We=K!=null?K:bn,rt=N()({[`${Y}-lg`]:Ne==="large",[`${Y}-sm`]:Ne==="small",[`${Y}-rtl`]:$==="rtl",[`${Y}-borderless`]:!xe,[`${Y}-in-form-item`]:st},(0,me.Z)(Y,gt,Xe),L,ne==null?void 0:ne.className,de,ee,le),Je=U.useMemo(()=>Q!==void 0?Q:$==="rtl"?"bottomRight":"bottomLeft",[Q,$]),Ee=(0,O.Z)(Ke,ve);return oe(U.createElement(X.ZP,Object.assign({ref:j,virtual:lt,showSearch:ne==null?void 0:ne.showSearch},vt,{style:Object.assign(Object.assign({},ne==null?void 0:ne.style),pt),dropdownMatchSelectWidth:ke,builtinPlacements:Ee,transitionName:(0,S.m)(Ae,"slide-up",Bt.transitionName),listHeight:ie,listItemHeight:v,mode:J,prefixCls:Y,placement:Je,direction:$,suffixIcon:mt,menuItemSelectedIcon:zt,removeIcon:Ct,allowClear:A,notFoundContent:bt,className:rt,getPopupContainer:Z||Vt,dropdownClassName:ue,disabled:We})))},b=U.forwardRef(V),T=(0,H.Z)(b);b.SECRET_COMBOBOX_MODE_DO_NOT_USE=W,b.Option=X.Wx,b.OptGroup=X.Xo,b._InternalPanelDoNotUseOrYouWillBeFired=T,Ze.default=b},14154:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return b}});var z=h(17313),N=h(74207),X=h(37613),ye=h(83116),U=h(13826),H=h(92899);const S=T=>{const{optionHeight:G,optionFontSize:j,optionLineHeight:be,optionPadding:_e}=T;return{position:"relative",display:"block",minHeight:G,padding:_e,color:T.colorText,fontWeight:"normal",fontSize:j,lineHeight:be,boxSizing:"border-box"}};var a=T=>{const{antCls:G,componentCls:j}=T,be=`${j}-item`,_e=`&${G}-slide-up-enter${G}-slide-up-enter-active`,xe=`&${G}-slide-up-appear${G}-slide-up-appear-active`,de=`&${G}-slide-up-leave${G}-slide-up-leave-active`,ee=`${j}-dropdown-placement-`;return[{[`${j}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(T)),{position:"absolute",top:-9999,zIndex:T.zIndexPopup,boxSizing:"border-box",padding:T.paddingXXS,overflow:"hidden",fontSize:T.fontSize,fontVariant:"initial",backgroundColor:T.colorBgElevated,borderRadius:T.borderRadiusLG,outline:"none",boxShadow:T.boxShadowSecondary,[`
${_e}${ee}bottomLeft,
${xe}${ee}bottomLeft
`]:{animationName:U.fJ},[`
${_e}${ee}topLeft,
${xe}${ee}topLeft,
${_e}${ee}topRight,
${xe}${ee}topRight
`]:{animationName:U.Qt},[`${de}${ee}bottomLeft`]:{animationName:U.Uw},[`
${de}${ee}topLeft,
${de}${ee}topRight
`]:{animationName:U.ly},"&-hidden":{display:"none"},[`${be}`]:Object.assign(Object.assign({},S(T)),{cursor:"pointer",transition:`background ${T.motionDurationSlow} ease`,borderRadius:T.borderRadiusSM,"&-group":{color:T.colorTextDescription,fontSize:T.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${be}-option-disabled)`]:{backgroundColor:T.optionActiveBg},[`&-selected:not(${be}-option-disabled)`]:{color:T.optionSelectedColor,fontWeight:T.optionSelectedFontWeight,backgroundColor:T.optionSelectedBg,[`${be}-option-state`]:{color:T.colorPrimary}},"&-disabled":{[`&${be}-option-selected`]:{backgroundColor:T.colorBgContainerDisabled},color:T.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:T.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,U.oN)(T,"slide-up"),(0,U.oN)(T,"slide-down"),(0,H.Fm)(T,"move-up"),(0,H.Fm)(T,"move-down")]};const C=2,I=T=>{let{controlHeightSM:G,controlHeight:j,lineWidth:be}=T;const _e=(j-G)/2-be,xe=Math.ceil(_e/2);return[_e,xe]};function m(T,G){const{componentCls:j,iconCls:be}=T,_e=`${j}-selection-overflow`,xe=T.multipleSelectItemHeight,[de]=I(T),ee=G?`${j}-${G}`:"";return{[`${j}-multiple${ee}`]:{fontSize:T.fontSize,[_e]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${j}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${de-C}px ${C*2}px`,borderRadius:T.borderRadius,[`${j}-show-search&`]:{cursor:"text"},[`${j}-disabled&`]:{background:T.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${C}px 0`,lineHeight:`${xe}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${j}-show-arrow ${j}-selector,
&${j}-allow-clear ${j}-selector
`]:{paddingInlineEnd:T.fontSizeIcon+T.controlPaddingHorizontal},[`${j}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:xe,marginTop:C,marginBottom:C,lineHeight:`${xe-T.lineWidth*2}px`,background:T.multipleItemBg,border:`${T.lineWidth}px ${T.lineType} ${T.multipleItemBorderColor}`,borderRadius:T.borderRadiusSM,cursor:"default",transition:`font-size ${T.motionDurationSlow}, line-height ${T.motionDurationSlow}, height ${T.motionDurationSlow}`,userSelect:"none",marginInlineEnd:C*2,paddingInlineStart:T.paddingXS,paddingInlineEnd:T.paddingXS/2,[`${j}-disabled&`]:{color:T.multipleItemColorDisabled,borderColor:T.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:T.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,z.Ro)()),{display:"inline-flex",alignItems:"center",color:T.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:T.colorIconHover}})},[`${_e}-item + ${_e}-item`]:{[`${j}-selection-search`]:{marginInlineStart:0}},[`${j}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:T.inputPaddingHorizontalBase-de,"\n &-input,\n &-mirror\n ":{height:xe,fontFamily:T.fontFamily,lineHeight:`${xe}px`,transition:`all ${T.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${j}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:T.inputPaddingHorizontalBase,insetInlineEnd:T.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${T.motionDurationSlow}`}}}}var x=T=>{const{componentCls:G}=T,j=(0,X.TS)(T,{controlHeight:T.controlHeightSM,multipleSelectItemHeight:T.controlHeightXS,borderRadius:T.borderRadiusSM,borderRadiusSM:T.borderRadiusXS}),be=(0,X.TS)(T,{fontSize:T.fontSizeLG,controlHeight:T.controlHeightLG,multipleSelectItemHeight:T.multipleItemHeightLG,borderRadius:T.borderRadiusLG,borderRadiusSM:T.borderRadius}),[,_e]=I(T);return[m(T),m(j,"sm"),{[`${G}-multiple${G}-sm`]:{[`${G}-selection-placeholder`]:{insetInline:T.controlPaddingHorizontalSM-T.lineWidth},[`${G}-selection-search`]:{marginInlineStart:_e}}},m(be,"lg")]};function y(T,G){const{componentCls:j,inputPaddingHorizontalBase:be,borderRadius:_e}=T,xe=T.controlHeight-T.lineWidth*2,de=Math.ceil(T.fontSize*1.25),ee=G?`${j}-${G}`:"";return{[`${j}-single${ee}`]:{fontSize:T.fontSize,[`${j}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(T)),{display:"flex",borderRadius:_e,[`${j}-selection-search`]:{position:"absolute",top:0,insetInlineStart:be,insetInlineEnd:be,bottom:0,"&-input":{width:"100%"}},[`
${j}-selection-item,
${j}-selection-placeholder
`]:{padding:0,lineHeight:`${xe}px`,transition:`all ${T.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${xe}px`}},[`${j}-selection-item`]:{position:"relative",userSelect:"none"},[`${j}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${j}-selection-item:after`,`${j}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${j}-show-arrow ${j}-selection-item,
&${j}-show-arrow ${j}-selection-placeholder
`]:{paddingInlineEnd:de},[`&${j}-open ${j}-selection-item`]:{color:T.colorTextPlaceholder},[`&:not(${j}-customize-input)`]:{[`${j}-selector`]:{width:"100%",height:T.controlHeight,padding:`0 ${be}px`,[`${j}-selection-search-input`]:{height:xe},"&:after":{lineHeight:`${xe}px`}}},[`&${j}-customize-input`]:{[`${j}-selector`]:{"&:after":{display:"none"},[`${j}-selection-search`]:{position:"static",width:"100%"},[`${j}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${be}px`,"&:after":{display:"none"}}}}}}}function O(T){const{componentCls:G}=T,j=T.controlPaddingHorizontalSM-T.lineWidth;return[y(T),y((0,X.TS)(T,{controlHeight:T.controlHeightSM,borderRadius:T.borderRadiusSM}),"sm"),{[`${G}-single${G}-sm`]:{[`&:not(${G}-customize-input)`]:{[`${G}-selection-search`]:{insetInlineStart:j,insetInlineEnd:j},[`${G}-selector`]:{padding:`0 ${j}px`},[`&${G}-show-arrow ${G}-selection-search`]:{insetInlineEnd:j+T.fontSize*1.5},[`
&${G}-show-arrow ${G}-selection-item,
&${G}-show-arrow ${G}-selection-placeholder
`]:{paddingInlineEnd:T.fontSize*1.5}}}},y((0,X.TS)(T,{controlHeight:T.singleItemHeightLG,fontSize:T.fontSizeLG,borderRadius:T.borderRadiusLG}),"lg")]}const te=T=>{const{componentCls:G,selectorBg:j}=T;return{position:"relative",backgroundColor:j,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,transition:`all ${T.motionDurationMid} ${T.motionEaseInOut}`,input:{cursor:"pointer"},[`${G}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${G}-disabled&`]:{color:T.colorTextDisabled,background:T.colorBgContainerDisabled,cursor:"not-allowed",[`${G}-multiple&`]:{background:T.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},B=function(T,G){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:be,borderHoverColor:_e,outlineColor:xe,antCls:de}=G,ee=j?{[`${be}-selector`]:{borderColor:_e}}:{};return{[T]:{[`&:not(${be}-disabled):not(${be}-customize-input):not(${de}-pagination-size-changer)`]:Object.assign(Object.assign({},ee),{[`${be}-focused& ${be}-selector`]:{borderColor:_e,boxShadow:`0 0 0 ${G.controlOutlineWidth}px ${xe}`,outline:0},[`&:hover ${be}-selector`]:{borderColor:_e}})}}},M=T=>{const{componentCls:G}=T;return{[`${G}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},W=T=>{const{componentCls:G,inputPaddingHorizontalBase:j,iconCls:be}=T;return{[G]:Object.assign(Object.assign({},(0,z.Wf)(T)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${G}-customize-input) ${G}-selector`]:Object.assign(Object.assign({},te(T)),M(T)),[`${G}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},z.vS),[`${G}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:T.colorTextPlaceholder,pointerEvents:"none"}),[`${G}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[be]:{verticalAlign:"top",transition:`transform ${T.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${G}-suffix)`]:{pointerEvents:"auto"}},[`${G}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${G}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,zIndex:1,display:"inline-block",width:T.fontSizeIcon,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:T.clearBg,cursor:"pointer",opacity:0,transition:`color ${T.motionDurationMid} ease, opacity ${T.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:T.colorTextTertiary}},"&:hover":{[`${G}-clear`]:{opacity:1}}}),[`${G}-has-feedback`]:{[`${G}-clear`]:{insetInlineEnd:j+T.fontSize+T.paddingXS}}}},V=T=>{const{componentCls:G}=T;return[{[G]:{[`&-borderless ${G}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${G}-in-form-item`]:{width:"100%"}}},W(T),O(T),x(T),a(T),{[`${G}-rtl`]:{direction:"rtl"}},B(G,(0,X.TS)(T,{borderHoverColor:T.colorPrimaryHover,outlineColor:T.controlOutline})),B(`${G}-status-error`,(0,X.TS)(T,{borderHoverColor:T.colorErrorHover,outlineColor:T.colorErrorOutline}),!0),B(`${G}-status-warning`,(0,X.TS)(T,{borderHoverColor:T.colorWarningHover,outlineColor:T.colorWarningOutline}),!0),(0,N.c)(T,{borderElCls:`${G}-selector`,focusElCls:`${G}-focused`})]};var b=(0,ye.Z)("Select",(T,G)=>{let{rootPrefixCls:j}=G;const be=(0,X.TS)(T,{rootPrefixCls:j,inputPaddingHorizontalBase:T.paddingSM-1,multipleSelectItemHeight:T.multipleItemHeight});return[V(be)]},T=>{const{fontSize:G,lineHeight:j,controlHeight:be,controlPaddingHorizontal:_e,zIndexPopupBase:xe,colorText:de,fontWeightStrong:ee,controlItemBgActive:Z,controlItemBgHover:pe,colorBgContainer:P,colorFillSecondary:ie,controlHeightLG:Q,controlHeightSM:v,colorBgContainerDisabled:E,colorTextDisabled:K}=T;return{zIndexPopup:xe+50,optionSelectedColor:de,optionSelectedFontWeight:ee,optionSelectedBg:Z,optionActiveBg:pe,optionPadding:`${(be-G*j)/2}px ${_e}px`,optionFontSize:G,optionLineHeight:j,optionHeight:be,selectorBg:P,clearBg:P,singleItemHeightLG:Q,multipleItemBg:ie,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightLG:be,multipleSelectorBgDisabled:E,multipleItemColorDisabled:K,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return N}});const z=X=>{const U={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:X==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},U),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},U),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},U),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},U),{points:["br","tr"],offset:[0,-4]})}};function N(X,ye){return X||z(ye)}},84443:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return z}});function z(N,X){return X!==void 0?X:N!==null}},66339:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});var z=h(40001),N=h(19248),X=h(99267),ye=h(84105),U=h(58617),H=h(47472),S=h(59301);function me(a){let{suffixIcon:C,clearIcon:I,menuItemSelectedIcon:m,removeIcon:u,loading:x,multiple:y,hasFeedback:O,prefixCls:te,showSuffixIcon:B,feedbackIcon:M,showArrow:W,componentName:V}=a;const b=I!=null?I:S.createElement(N.Z,null),T=_e=>C===null&&!O&&!W?null:S.createElement(S.Fragment,null,B!==!1&&_e,O&&M);let G=null;if(C!==void 0)G=T(C);else if(x)G=T(S.createElement(U.Z,{spin:!0}));else{const _e=`${te}-suffix`;G=xe=>{let{open:de,showSearch:ee}=xe;return T(de&&ee?S.createElement(H.Z,{className:_e}):S.createElement(ye.Z,{className:_e}))}}let j=null;m!==void 0?j=m:y?j=S.createElement(z.Z,null):j=null;let be=null;return u!==void 0?be=u:be=S.createElement(X.Z,null),{clearIcon:b,suffixIcon:G,itemIcon:j,removeIcon:be}}},81327:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return te}});var z=h(59301),N=h(92310),X=h.n(N),ye=h(11592),U=h(36355),H=h(33234);const S=z.createContext({latestIndex:0}),me=S.Provider;var C=B=>{let{className:M,index:W,children:V,split:b,style:T}=B;const{latestIndex:G}=z.useContext(S);return V==null?null:z.createElement(z.Fragment,null,z.createElement("div",{className:M,style:T},V),W<G&&b&&z.createElement("span",{className:`${M}-split`},b))},I=h(2856);function m(B){return["small","middle","large"].includes(B)}function u(B){return B?typeof B=="number"&&!Number.isNaN(B):!1}var x=function(B,M){var W={};for(var V in B)Object.prototype.hasOwnProperty.call(B,V)&&M.indexOf(V)<0&&(W[V]=B[V]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,V=Object.getOwnPropertySymbols(B);b<V.length;b++)M.indexOf(V[b])<0&&Object.prototype.propertyIsEnumerable.call(B,V[b])&&(W[V[b]]=B[V[b]]);return W};const O=z.forwardRef((B,M)=>{var W,V;const{getPrefixCls:b,space:T,direction:G}=z.useContext(U.E_),{size:j=(T==null?void 0:T.size)||"small",align:be,className:_e,rootClassName:xe,children:de,direction:ee="horizontal",prefixCls:Z,split:pe,style:P,wrap:ie=!1,classNames:Q,styles:v}=B,E=x(B,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[K,fe]=Array.isArray(j)?j:[j,j],Be=m(fe),Ke=m(K),Me=u(fe),Ye=u(K),ht=(0,ye.Z)(de,{keepEmpty:!0}),pt=be===void 0&&ee==="horizontal"?"center":be,at=b("space",Z),[Bt,Vt]=(0,I.Z)(at),qt=X()(at,T==null?void 0:T.className,Vt,`${at}-${ee}`,{[`${at}-rtl`]:G==="rtl",[`${at}-align-${pt}`]:pt,[`${at}-gap-row-${fe}`]:Be,[`${at}-gap-col-${K}`]:Ke},_e,xe),$t=X()(`${at}-item`,(W=Q==null?void 0:Q.item)!==null&&W!==void 0?W:(V=T==null?void 0:T.classNames)===null||V===void 0?void 0:V.item);let Gt=0;const lt=ht.map((ne,Y)=>{var Ae,$;ne!=null&&(Gt=Y);const R=ne&&ne.key||`${$t}-${Y}`;return z.createElement(C,{className:$t,key:R,index:Y,split:pe,style:(Ae=v==null?void 0:v.item)!==null&&Ae!==void 0?Ae:($=T==null?void 0:T.styles)===null||$===void 0?void 0:$.item},ne)}),se=z.useMemo(()=>({latestIndex:Gt}),[Gt]);if(ht.length===0)return null;const ve={};return ie&&(ve.flexWrap="wrap"),!Ke&&Ye&&(ve.columnGap=K),!Be&&Me&&(ve.rowGap=fe),Bt(z.createElement("div",Object.assign({ref:M,className:qt,style:Object.assign(Object.assign(Object.assign({},ve),T==null?void 0:T.style),P)},E),z.createElement(me,{value:se},lt)))});O.Compact=H.ZP;var te=O},8378:function(Wt,Ze){"use strict";const h=z=>({[z.componentCls]:{[`${z.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${z.motionDurationMid} ${z.motionEaseInOut},
opacity ${z.motionDurationMid} ${z.motionEaseInOut} !important`}},[`${z.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${z.motionDurationMid} ${z.motionEaseInOut},
opacity ${z.motionDurationMid} ${z.motionEaseInOut} !important`}}});Ze.Z=h},92899:function(Wt,Ze,h){"use strict";h.d(Ze,{Fm:function(){return m}});var z=h(93083),N=h(95406);const X=new z.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ye=new z.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),U=new z.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),H=new z.Keyframes("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 z.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),me=new z.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),a=new z.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),C=new z.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),I={"move-up":{inKeyframes:a,outKeyframes:C},"move-down":{inKeyframes:X,outKeyframes:ye},"move-left":{inKeyframes:U,outKeyframes:H},"move-right":{inKeyframes:S,outKeyframes:me}},m=(u,x)=>{const{antCls:y}=u,O=`${y}-${x}`,{inKeyframes:te,outKeyframes:B}=I[x];return[(0,N.R)(O,te,B,u.motionDurationMid),{[`
${O}-enter,
${O}-appear
`]:{opacity:0,animationTimingFunction:u.motionEaseOutCirc},[`${O}-leave`]:{animationTimingFunction:u.motionEaseInOutCirc}}]}},13826:function(Wt,Ze,h){"use strict";h.d(Ze,{Qt:function(){return U},Uw:function(){return ye},fJ:function(){return X},ly:function(){return H},oN:function(){return m}});var z=h(93083),N=h(95406);const X=new z.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ye=new z.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),U=new z.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),H=new z.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new z.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),me=new z.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new z.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),C=new z.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),I={"slide-up":{inKeyframes:X,outKeyframes:ye},"slide-down":{inKeyframes:U,outKeyframes:H},"slide-left":{inKeyframes:S,outKeyframes:me},"slide-right":{inKeyframes:a,outKeyframes:C}},m=(u,x)=>{const{antCls:y}=u,O=`${y}-${x}`,{inKeyframes:te,outKeyframes:B}=I[x];return[(0,N.R)(O,te,B,u.motionDurationMid),{[`
${O}-enter,
${O}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:u.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${O}-leave`]:{animationTimingFunction:u.motionEaseInQuint}}]}},15969:function(Wt,Ze,h){"use strict";h.d(Ze,{N:function(){return z}});const z=N=>({color:N.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${N.motionDurationSlow}`,"&:focus, &:hover":{color:N.colorLinkHover},"&:active":{color:N.colorLinkActive}})},19447:function(Wt,Ze,h){"use strict";h.d(Ze,{ZP:function(){return U},fS:function(){return X},qN:function(){return N}});var z=h(47585);const N=8;function X(H){const S=N,{contentRadius:me,limitVerticalRadius:a}=H,C=me>12?me+2:12;return{dropdownArrowOffset:C,dropdownArrowOffsetVertical:a?S:C}}function ye(H,S){return H?S:{}}function U(H,S){const{componentCls:me,sizePopupArrow:a,borderRadiusXS:C,borderRadiusOuter:I,boxShadowPopoverArrow:m}=H,{colorBg:u,contentRadius:x=H.borderRadiusLG,limitVerticalRadius:y,arrowDistance:O=0,arrowPlacement:te={left:!0,right:!0,top:!0,bottom:!0}}=S,{dropdownArrowOffsetVertical:B,dropdownArrowOffset:M}=X({contentRadius:x,limitVerticalRadius:y});return{[me]:Object.assign(Object.assign(Object.assign(Object.assign({[`${me}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,z.r)(a,C,I,u,m)),{"&:before":{background:u}})]},ye(!!te.top,{[[`&-placement-top ${me}-arrow`,`&-placement-topLeft ${me}-arrow`,`&-placement-topRight ${me}-arrow`].join(",")]:{bottom:O,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${me}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${me}-arrow`]:{left:{_skip_check_:!0,value:M}},[`&-placement-topRight ${me}-arrow`]:{right:{_skip_check_:!0,value:M}}})),ye(!!te.bottom,{[[`&-placement-bottom ${me}-arrow`,`&-placement-bottomLeft ${me}-arrow`,`&-placement-bottomRight ${me}-arrow`].join(",")]:{top:O,transform:"translateY(-100%)"},[`&-placement-bottom ${me}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${me}-arrow`]:{left:{_skip_check_:!0,value:M}},[`&-placement-bottomRight ${me}-arrow`]:{right:{_skip_check_:!0,value:M}}})),ye(!!te.left,{[[`&-placement-left ${me}-arrow`,`&-placement-leftTop ${me}-arrow`,`&-placement-leftBottom ${me}-arrow`].join(",")]:{right:{_skip_check_:!0,value:O},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${me}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${me}-arrow`]:{top:B},[`&-placement-leftBottom ${me}-arrow`]:{bottom:B}})),ye(!!te.right,{[[`&-placement-right ${me}-arrow`,`&-placement-rightTop ${me}-arrow`,`&-placement-rightBottom ${me}-arrow`].join(",")]:{left:{_skip_check_:!0,value:O},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${me}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${me}-arrow`]:{top:B},[`&-placement-rightBottom ${me}-arrow`]:{bottom:B}}))}}},47585:function(Wt,Ze,h){"use strict";h.d(Ze,{r:function(){return z}});const z=(N,X,ye,U,H)=>{const S=N/2,me=0,a=S,C=ye*1/Math.sqrt(2),I=S-ye*(1-1/Math.sqrt(2)),m=S-X*(1/Math.sqrt(2)),u=ye*(Math.sqrt(2)-1)+X*(1/Math.sqrt(2)),x=2*S-m,y=u,O=2*S-C,te=I,B=2*S-me,M=a,W=S*Math.sqrt(2)+ye*(Math.sqrt(2)-2),V=ye*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:U,clipPath:{_multi_value_:!0,value:[`polygon(${V}px 100%, 50% ${V}px, ${2*S-V}px 100%, ${V}px 100%)`,`path('M ${me} ${a} A ${ye} ${ye} 0 0 0 ${C} ${I} L ${m} ${u} A ${X} ${X} 0 0 1 ${x} ${y} L ${O} ${te} A ${ye} ${ye} 0 0 0 ${B} ${M} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:W,height:W,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${X}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:H,zIndex:0,background:"transparent"}}}},1710:function(Wt,Ze,h){"use strict";h.d(Ze,{default:function(){return Gs}});var z={},N="rc-table-internal-hook",X=h(33606),ye=h(6089),U=h(34280),H=h(13697),S=h(59301),me=h(4676);function a(re){var ce=S.createContext(void 0),Fe=function(tt){var it=tt.value,_t=tt.children,Et=S.useRef(it);Et.current=it;var yt=S.useState(function(){return{getValue:function(){return Et.current},listeners:new Set}}),It=(0,X.Z)(yt,1),Se=It[0];return(0,U.Z)(function(){(0,me.unstable_batchedUpdates)(function(){Se.listeners.forEach(function(Lt){Lt(it)})})},[it]),S.createElement(ce.Provider,{value:Se},_t)};return{Context:ce,Provider:Fe,defaultValue:re}}function C(re,ce){var Fe=(0,ye.Z)(typeof ce=="function"?ce:function(Lt){if(ce===void 0)return Lt;if(!Array.isArray(ce))return Lt[ce];var un={};return ce.forEach(function(rn){un[rn]=Lt[rn]}),un}),Ve=S.useContext(re==null?void 0:re.Context),tt=Ve||{},it=tt.listeners,_t=tt.getValue,Et=S.useRef();Et.current=Fe(Ve?_t():re==null?void 0:re.defaultValue);var yt=S.useState({}),It=(0,X.Z)(yt,2),Se=It[1];return(0,U.Z)(function(){if(!Ve)return;function Lt(un){var rn=Fe(un);(0,H.Z)(Et.current,rn,!0)||Se({})}return it.add(Lt),function(){it.delete(Lt)}},[Ve]),Et.current}var I=h(92413),m=h(8654);function u(){var re=S.createContext(null);function ce(){return S.useContext(re)}function Fe(tt,it){var _t=(0,m.Yr)(tt),Et=function(It,Se){var Lt=_t?{ref:Se}:{},un=S.useRef(0),rn=S.useRef(It),nn=ce();return nn!==null?S.createElement(tt,(0,I.Z)({},It,Lt)):((!it||it(rn.current,It))&&(un.current+=1),rn.current=It,S.createElement(re.Provider,{value:un.current},S.createElement(tt,(0,I.Z)({},It,Lt))))};return _t?S.forwardRef(Et):Et}function Ve(tt,it){var _t=(0,m.Yr)(tt),Et=function(It,Se){var Lt=_t?{ref:Se}:{};return ce(),S.createElement(tt,(0,I.Z)({},It,Lt))};return _t?S.memo(S.forwardRef(Et),it):S.memo(Et,it)}return{makeImmutable:Fe,responseImmutable:Ve,useImmutableMark:ce}}var x=u(),y=x.makeImmutable,O=x.responseImmutable,te=x.useImmutableMark,B=u(),M=B.makeImmutable,W=B.responseImmutable,V=B.useImmutableMark,b=a(),T=b;function G(re,ce){var Fe=S.useRef(0);Fe.current+=1;var Ve=S.useRef(re),tt=[];Object.keys(re||{}).map(function(_t){var Et;(re==null?void 0:re[_t])!==((Et=Ve.current)===null||Et===void 0?void 0:Et[_t])&&tt.push(_t)}),Ve.current=re;var it=S.useRef([]);return tt.length&&(it.current=tt),S.useDebugValue(Fe.current),S.useDebugValue(it.current.join(", ")),ce&&console.log("".concat(ce,":"),Fe.current,it.current),Fe.current}var j=null,be=S.memo(function(){var re=G();return S.createElement("h1",null,"Render Times: ",re)});be.displayName="RenderBlock";var _e=h(39559),xe=h(33708),de=h(400),ee=h(92310),Z=h.n(ee),pe=h(80547),P=h(97938),ie=h(48736),Q=S.createContext({renderWithProps:!1}),v=Q,E="RC_TABLE_KEY";function K(re){return re==null?[]:Array.isArray(re)?re:[re]}function fe(re){var ce=[],Fe={};return re.forEach(function(Ve){for(var tt=Ve||{},it=tt.key,_t=tt.dataIndex,Et=it||K(_t).join("-")||E;Fe[Et];)Et="".concat(Et,"_next");Fe[Et]=!0,ce.push(Et)}),ce}function Be(re){return re!=null}function Ke(re){return re&&(0,_e.Z)(re)==="object"&&!Array.isArray(re)&&!S.isValidElement(re)}function Me(re,ce,Fe,Ve,tt,it){var _t=S.useContext(v),Et=V(),yt=(0,pe.Z)(function(){if(Be(Ve))return[Ve];var It=ce==null||ce===""?[]:Array.isArray(ce)?ce:[ce],Se=(0,P.Z)(re,It),Lt=Se,un=void 0;if(tt){var rn=tt(Se,re,Fe);Ke(rn)?(Lt=rn.children,un=rn.props,_t.renderWithProps=!0):Lt=rn}return[Lt,un]},[Et,re,Ve,ce,tt,Fe],function(It,Se){if(it){var Lt=(0,X.Z)(It,2),un=Lt[1],rn=(0,X.Z)(Se,2),nn=rn[1];return it(nn,un)}return _t.renderWithProps?!0:!(0,H.Z)(It,Se,!0)});return yt}function Ye(re,ce,Fe,Ve){var tt=re+ce-1;return re<=Ve&&tt>=Fe}function ht(re,ce){return C(T,function(Fe){var Ve=Ye(re,ce||1,Fe.hoverStartRow,Fe.hoverEndRow);return[Ve,Fe.onHover]})}var pt=function(ce){var Fe=ce.ellipsis,Ve=ce.rowType,tt=ce.children,it,_t=Fe===!0?{showTitle:!0}:Fe;return _t&&(_t.showTitle||Ve==="header")&&(typeof tt=="string"||typeof tt=="number"?it=tt.toString():S.isValidElement(tt)&&typeof tt.props.children=="string"&&(it=tt.props.children)),it};function at(re){var ce,Fe,Ve,tt,it,_t,Et,yt,It=re.component,Se=re.children,Lt=re.ellipsis,un=re.scope,rn=re.prefixCls,nn=re.className,ut=re.align,Ln=re.record,zn=re.render,Nn=re.dataIndex,Kn=re.renderIndex,yr=re.shouldCellUpdate,br=re.index,dr=re.rowType,Lr=re.colSpan,Fr=re.rowSpan,Wn=re.fixLeft,fr=re.fixRight,Vn=re.firstFixLeft,Mn=re.lastFixLeft,ur=re.firstFixRight,Ir=re.lastFixRight,Gr=re.appendNode,q=re.additionalProps,l=q===void 0?{}:q,d=re.isSticky,f="".concat(rn,"-cell"),g=C(T,["supportSticky","allColumnsFixedLeft"]),k=g.supportSticky,ae=g.allColumnsFixedLeft,Re=Me(Ln,Nn,Kn,Se,zn,yr),Le=(0,X.Z)(Re,2),Qe=Le[0],dt=Le[1],wt={},Ut=typeof Wn=="number"&&k,mn=typeof fr=="number"&&k;Ut&&(wt.position="sticky",wt.left=Wn),mn&&(wt.position="sticky",wt.right=fr);var Zt=(ce=(Fe=(Ve=dt==null?void 0:dt.colSpan)!==null&&Ve!==void 0?Ve:l.colSpan)!==null&&Fe!==void 0?Fe:Lr)!==null&&ce!==void 0?ce:1,Qt=(tt=(it=(_t=dt==null?void 0:dt.rowSpan)!==null&&_t!==void 0?_t:l.rowSpan)!==null&&it!==void 0?it:Fr)!==null&&tt!==void 0?tt:1,cn=ht(br,Qt),wn=(0,X.Z)(cn,2),rr=wn[0],Cn=wn[1],nr=function(xi){var Ji;Ln&&Cn(br,br+Qt-1),l==null||(Ji=l.onMouseEnter)===null||Ji===void 0||Ji.call(l,xi)},Sr=function(xi){var Ji;Ln&&Cn(-1,-1),l==null||(Ji=l.onMouseLeave)===null||Ji===void 0||Ji.call(l,xi)};if(Zt===0||Qt===0)return null;var wr=(Et=l.title)!==null&&Et!==void 0?Et:pt({rowType:dr,ellipsis:Lt,children:Qe}),ii=Z()(f,nn,(yt={},(0,de.Z)(yt,"".concat(f,"-fix-left"),Ut&&k),(0,de.Z)(yt,"".concat(f,"-fix-left-first"),Vn&&k),(0,de.Z)(yt,"".concat(f,"-fix-left-last"),Mn&&k),(0,de.Z)(yt,"".concat(f,"-fix-left-all"),Mn&&ae&&k),(0,de.Z)(yt,"".concat(f,"-fix-right"),mn&&k),(0,de.Z)(yt,"".concat(f,"-fix-right-first"),ur&&k),(0,de.Z)(yt,"".concat(f,"-fix-right-last"),Ir&&k),(0,de.Z)(yt,"".concat(f,"-ellipsis"),Lt),(0,de.Z)(yt,"".concat(f,"-with-append"),Gr),(0,de.Z)(yt,"".concat(f,"-fix-sticky"),(Ut||mn)&&d&&k),(0,de.Z)(yt,"".concat(f,"-row-hover"),!dt&&rr),yt),l.className,dt==null?void 0:dt.className),ai={};ut&&(ai.textAlign=ut);var Zi=(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},wt),l.style),ai),dt==null?void 0:dt.style),ci=Qe;return(0,_e.Z)(ci)==="object"&&!Array.isArray(ci)&&!S.isValidElement(ci)&&(ci=null),Lt&&(Mn||ur)&&(ci=S.createElement("span",{className:"".concat(f,"-content")},ci)),S.createElement(It,(0,I.Z)({},dt,l,{className:ii,style:Zi,title:wr,scope:un,onMouseEnter:nr,onMouseLeave:Sr,colSpan:Zt!==1?Zt:null,rowSpan:Qt!==1?Qt:null}),Gr,ci)}var Bt=S.memo(at);function Vt(re,ce,Fe,Ve,tt,it){var _t=Fe[re]||{},Et=Fe[ce]||{},yt,It;_t.fixed==="left"?yt=Ve.left[tt==="rtl"?ce:re]:Et.fixed==="right"&&(It=Ve.right[tt==="rtl"?re:ce]);var Se=!1,Lt=!1,un=!1,rn=!1,nn=Fe[ce+1],ut=Fe[re-1],Ln=!(it!=null&&it.children);if(tt==="rtl"){if(yt!==void 0){var zn=ut&&ut.fixed==="left";rn=!zn&&Ln}else if(It!==void 0){var Nn=nn&&nn.fixed==="right";un=!Nn&&Ln}}else if(yt!==void 0){var Kn=nn&&nn.fixed==="left";Se=!Kn&&Ln}else if(It!==void 0){var yr=ut&&ut.fixed==="right";Lt=!yr&&Ln}return{fixLeft:yt,fixRight:It,lastFixLeft:Se,firstFixRight:Lt,lastFixRight:un,firstFixLeft:rn,isSticky:Ve.isSticky}}var qt=S.createContext({}),$t=qt;function Gt(re){var ce=re.className,Fe=re.index,Ve=re.children,tt=re.colSpan,it=tt===void 0?1:tt,_t=re.rowSpan,Et=re.align,yt=C(T,["prefixCls","direction"]),It=yt.prefixCls,Se=yt.direction,Lt=S.useContext($t),un=Lt.scrollColumnIndex,rn=Lt.stickyOffsets,nn=Lt.flattenColumns,ut=Lt.columns,Ln=Fe+it-1,zn=Ln+1===un?it+1:it,Nn=Vt(Fe,Fe+zn-1,nn,rn,Se,ut==null?void 0:ut[Fe]);return S.createElement(Bt,(0,I.Z)({className:ce,index:Fe,component:"td",prefixCls:It,record:null,dataIndex:null,align:Et,colSpan:zn,rowSpan:_t,render:function(){return Ve}},Nn))}var lt=h(37061),se=["children"];function ve(re){var ce=re.children,Fe=(0,lt.Z)(re,se);return S.createElement("tr",Fe,ce)}function ne(re){var ce=re.children;return ce}ne.Row=ve,ne.Cell=Gt;var Y=ne;function Ae(re){var ce=re.children,Fe=re.stickyOffsets,Ve=re.flattenColumns,tt=re.columns,it=C(T,"prefixCls"),_t=Ve.length-1,Et=Ve[_t],yt=S.useMemo(function(){return{stickyOffsets:Fe,flattenColumns:Ve,scrollColumnIndex:Et!=null&&Et.scrollbar?_t:null,columns:tt}},[Et,Ve,_t,Fe,tt]);return S.createElement($t.Provider,{value:yt},S.createElement("tfoot",{className:"".concat(it,"-summary")},ce))}var $=W(Ae),R=Y,L=h(70425),oe=h(29301),le=h(29194),J=h(24514),De=h(75152),je=h(26112);function ke(re,ce,Fe,Ve,tt,it,_t){re.push({record:ce,indent:Fe,index:_t});var Et=it(ce),yt=tt==null?void 0:tt.has(Et);if(ce&&Array.isArray(ce[Ve])&&yt)for(var It=0;It<ce[Ve].length;It+=1)ke(re,ce[Ve][It],Fe+1,Ve,tt,it,It)}function Pe(re,ce,Fe,Ve){var tt=S.useMemo(function(){if(Fe!=null&&Fe.size){for(var it=[],_t=0;_t<(re==null?void 0:re.length);_t+=1){var Et=re[_t];ke(it,Et,0,ce,Fe,Ve,_t)}return it}return re==null?void 0:re.map(function(yt,It){return{record:yt,indent:0,index:It}})},[re,ce,Fe,Ve]);return tt}function Xe(re){var ce=re.prefixCls,Fe=re.children,Ve=re.component,tt=re.cellComponent,it=re.className,_t=re.expanded,Et=re.colSpan,yt=re.isEmpty,It=C(T,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Se=It.scrollbarSize,Lt=It.fixHeader,un=It.fixColumn,rn=It.componentWidth,nn=It.horizonScroll,ut=Fe;return(yt?nn&&rn:un)&&(ut=S.createElement("div",{style:{width:rn-(Lt?Se:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ce,"-expanded-row-fixed")},ut)),S.createElement(Ve,{className:it,style:{display:_t?null:"none"}},S.createElement(Bt,{component:tt,prefixCls:ce,colSpan:Et},ut))}var st=Xe;function Ge(re,ce,Fe,Ve){var tt=C(T,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),it=tt.flattenColumns,_t=tt.expandableType,Et=tt.expandedKeys,yt=tt.childrenColumnName,It=tt.onTriggerExpand,Se=tt.rowExpandable,Lt=tt.onRow,un=tt.expandRowByClick,rn=tt.rowClassName,nn=_t==="nest",ut=_t==="row"&&(!Se||Se(re)),Ln=ut||nn,zn=Et&&Et.has(ce),Nn=yt&&re&&re[yt],Kn=(0,L.useEvent)(It),yr=Lt==null?void 0:Lt(re,Fe),br=yr==null?void 0:yr.onClick,dr=function(fr){un&&Ln&&It(re,fr);for(var Vn=arguments.length,Mn=new Array(Vn>1?Vn-1:0),ur=1;ur<Vn;ur++)Mn[ur-1]=arguments[ur];br==null||br.apply(void 0,[fr].concat(Mn))},Lr;typeof rn=="string"?Lr=rn:typeof rn=="function"&&(Lr=rn(re,Fe,Ve));var Fr=fe(it);return(0,xe.Z)((0,xe.Z)({},tt),{},{columnsKey:Fr,nestExpandable:nn,expanded:zn,hasNestChildren:Nn,record:re,onTriggerExpand:Kn,rowSupportExpand:ut,expandable:Ln,rowProps:(0,xe.Z)((0,xe.Z)({},yr),{},{className:Z()(Lr,yr==null?void 0:yr.className),onClick:dr})})}function gt(re,ce,Fe,Ve,tt){var it=re.record,_t=re.prefixCls,Et=re.columnsKey,yt=re.fixedInfoList,It=re.expandIconColumnIndex,Se=re.nestExpandable,Lt=re.indentSize,un=re.expandIcon,rn=re.expanded,nn=re.hasNestChildren,ut=re.onTriggerExpand,Ln=Et[Fe],zn=yt[Fe],Nn;Fe===(It||0)&&Se&&(Nn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(Lt*Ve,"px")},className:"".concat(_t,"-row-indent indent-level-").concat(Ve)}),un({prefixCls:_t,expanded:rn,expandable:nn,record:it,onExpand:ut})));var Kn;return ce.onCell&&(Kn=ce.onCell(it,tt)),{key:Ln,fixedInfo:zn,appendCellNode:Nn,additionalCellProps:Kn||{}}}function bt(re){var ce=re.className,Fe=re.style,Ve=re.record,tt=re.index,it=re.renderIndex,_t=re.rowKey,Et=re.indent,yt=Et===void 0?0:Et,It=re.rowComponent,Se=re.cellComponent,Lt=re.scopeCellComponent,un=Ge(Ve,_t,tt,yt),rn=un.prefixCls,nn=un.flattenColumns,ut=un.expandedRowClassName,Ln=un.expandedRowRender,zn=un.rowProps,Nn=un.expanded,Kn=un.rowSupportExpand,yr=S.useState(!1),br=(0,X.Z)(yr,2),dr=br[0],Lr=br[1];S.useEffect(function(){Nn&&Lr(!0)},[Nn]);var Fr=S.createElement(It,(0,I.Z)({},zn,{"data-row-key":_t,className:Z()(ce,"".concat(rn,"-row"),"".concat(rn,"-row-level-").concat(yt),zn==null?void 0:zn.className),style:(0,xe.Z)((0,xe.Z)({},Fe),zn==null?void 0:zn.style)}),nn.map(function(Mn,ur){var Ir=Mn.render,Gr=Mn.dataIndex,q=Mn.className,l=gt(un,Mn,ur,yt,tt),d=l.key,f=l.fixedInfo,g=l.appendCellNode,k=l.additionalCellProps;return S.createElement(Bt,(0,I.Z)({className:q,ellipsis:Mn.ellipsis,align:Mn.align,scope:Mn.rowScope,component:Mn.rowScope?Lt:Se,prefixCls:rn,key:d,record:Ve,index:tt,renderIndex:it,dataIndex:Gr,render:Ir,shouldCellUpdate:Mn.shouldCellUpdate},f,{appendNode:g,additionalProps:k}))})),Wn;if(Kn&&(dr||Nn)){var fr=Ln(Ve,tt,yt+1,Nn),Vn=ut&&ut(Ve,tt,yt);Wn=S.createElement(st,{expanded:Nn,className:Z()("".concat(rn,"-expanded-row"),"".concat(rn,"-expanded-row-level-").concat(yt+1),Vn),prefixCls:rn,component:It,cellComponent:Se,colSpan:nn.length,isEmpty:!1},fr)}return S.createElement(S.Fragment,null,Fr,Wn)}bt.displayName="BodyRow";var mt=W(bt);function zt(re){var ce=re.columnKey,Fe=re.onColumnResize,Ve=S.useRef();return S.useEffect(function(){Ve.current&&Fe(ce,Ve.current.offsetWidth)},[]),S.createElement(oe.Z,{data:ce},S.createElement("td",{ref:Ve,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ct(re){var ce=re.prefixCls,Fe=re.columnsKey,Ve=re.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(ce,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(oe.Z.Collection,{onBatchResize:function(it){it.forEach(function(_t){var Et=_t.data,yt=_t.size;Ve(Et,yt.offsetWidth)})}},Fe.map(function(tt){return S.createElement(zt,{key:tt,columnKey:tt,onColumnResize:Ve})})))}function w(re){var ce=re.data,Fe=re.measureColumnWidth,Ve=C(T,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),tt=Ve.prefixCls,it=Ve.getComponent,_t=Ve.onColumnResize,Et=Ve.flattenColumns,yt=Ve.getRowKey,It=Ve.expandedKeys,Se=Ve.childrenColumnName,Lt=Ve.emptyNode,un=Pe(ce,Se,It,yt),rn=S.useRef({renderWithProps:!1}),nn=it(["body","wrapper"],"tbody"),ut=it(["body","row"],"tr"),Ln=it(["body","cell"],"td"),zn=it(["body","cell"],"th"),Nn;ce.length?Nn=un.map(function(yr,br){var dr=yr.record,Lr=yr.indent,Fr=yr.index,Wn=yt(dr,br);return S.createElement(mt,{key:Wn,rowKey:Wn,record:dr,index:br,renderIndex:Fr,rowComponent:ut,cellComponent:Ln,scopeCellComponent:zn,getRowKey:yt,indent:Lr})}):Nn=S.createElement(st,{expanded:!0,className:"".concat(tt,"-placeholder"),prefixCls:tt,component:ut,cellComponent:Ln,colSpan:Et.length,isEmpty:!0},Lt);var Kn=fe(Et);return S.createElement(v.Provider,{value:rn.current},S.createElement(nn,{className:"".concat(tt,"-tbody")},Fe&&S.createElement(Ct,{prefixCls:tt,columnsKey:Kn,onColumnResize:_t}),Nn))}w.displayName="Body";var A=W(w),vt=["expandable"],ue="RC_TABLE_INTERNAL_COL_DEFINE";function Ne(re){var ce=re.expandable,Fe=(0,lt.Z)(re,vt),Ve;return"expandable"in re?Ve=(0,xe.Z)((0,xe.Z)({},Fe),ce):Ve=Fe,Ve.showExpandColumn===!1&&(Ve.expandIconColumnIndex=-1),Ve}var bn=["columnType"];function We(re){for(var ce=re.colWidths,Fe=re.columns,Ve=re.columCount,tt=[],it=Ve||Fe.length,_t=!1,Et=it-1;Et>=0;Et-=1){var yt=ce[Et],It=Fe&&Fe[Et],Se=It&&It[ue];if(yt||Se||_t){var Lt=Se||{},un=Lt.columnType,rn=(0,lt.Z)(Lt,bn);tt.unshift(S.createElement("col",(0,I.Z)({key:Et,style:{width:yt}},rn))),_t=!0}}return S.createElement("colgroup",null,tt)}var rt=We,Je=h(26407),Ee=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Te(re,ce){return(0,S.useMemo)(function(){for(var Fe=[],Ve=0;Ve<ce;Ve+=1){var tt=re[Ve];if(tt!==void 0)Fe[Ve]=tt;else return null}return Fe},[re.join("_"),ce])}var ze=S.forwardRef(function(re,ce){var Fe=re.className,Ve=re.noData,tt=re.columns,it=re.flattenColumns,_t=re.colWidths,Et=re.columCount,yt=re.stickyOffsets,It=re.direction,Se=re.fixHeader,Lt=re.stickyTopOffset,un=re.stickyBottomOffset,rn=re.stickyClassName,nn=re.onScroll,ut=re.maxContentScroll,Ln=re.children,zn=(0,lt.Z)(re,Ee),Nn=C(T,["prefixCls","scrollbarSize","isSticky"]),Kn=Nn.prefixCls,yr=Nn.scrollbarSize,br=Nn.isSticky,dr=br&&!Se?0:yr,Lr=S.useRef(null),Fr=S.useCallback(function(q){(0,m.mH)(ce,q),(0,m.mH)(Lr,q)},[]);S.useEffect(function(){var q;function l(d){var f=d,g=f.currentTarget,k=f.deltaX;k&&(nn({currentTarget:g,scrollLeft:g.scrollLeft+k}),d.preventDefault())}return(q=Lr.current)===null||q===void 0||q.addEventListener("wheel",l),function(){var d;(d=Lr.current)===null||d===void 0||d.removeEventListener("wheel",l)}},[]);var Wn=S.useMemo(function(){return it.every(function(q){return q.width})},[it]),fr=it[it.length-1],Vn={fixed:fr?fr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Kn,"-cell-scrollbar")}}},Mn=(0,S.useMemo)(function(){return dr?[].concat((0,Je.Z)(tt),[Vn]):tt},[dr,tt]),ur=(0,S.useMemo)(function(){return dr?[].concat((0,Je.Z)(it),[Vn]):it},[dr,it]),Ir=(0,S.useMemo)(function(){var q=yt.right,l=yt.left;return(0,xe.Z)((0,xe.Z)({},yt),{},{left:It==="rtl"?[].concat((0,Je.Z)(l.map(function(d){return d+dr})),[0]):l,right:It==="rtl"?q:[].concat((0,Je.Z)(q.map(function(d){return d+dr})),[0]),isSticky:br})},[dr,yt,br]),Gr=Te(_t,Et);return S.createElement("div",{style:(0,xe.Z)({overflow:"hidden"},br?{top:Lt,bottom:un}:{}),ref:Fr,className:Z()(Fe,(0,de.Z)({},rn,!!rn))},S.createElement("table",{style:{tableLayout:"fixed",visibility:Ve||Gr?null:"hidden"}},(!Ve||!ut||Wn)&&S.createElement(rt,{colWidths:Gr?[].concat((0,Je.Z)(Gr),[dr]):[],columCount:Et+1,columns:ur}),Ln((0,xe.Z)((0,xe.Z)({},zn),{},{stickyOffsets:Ir,columns:Mn,flattenColumns:ur}))))});ze.displayName="FixedHolder";var qe=S.memo(ze);function ge(re){var ce=re.cells,Fe=re.stickyOffsets,Ve=re.flattenColumns,tt=re.rowComponent,it=re.cellComponent,_t=re.tdCellComponent,Et=re.onHeaderRow,yt=re.index,It=C(T,["prefixCls","direction"]),Se=It.prefixCls,Lt=It.direction,un;Et&&(un=Et(ce.map(function(nn){return nn.column}),yt));var rn=fe(ce.map(function(nn){return nn.column}));return S.createElement(tt,un,ce.map(function(nn,ut){var Ln=nn.column,zn=Vt(nn.colStart,nn.colEnd,Ve,Fe,Lt,Ln),Nn;return Ln&&Ln.onHeaderCell&&(Nn=nn.column.onHeaderCell(Ln)),S.createElement(Bt,(0,I.Z)({},nn,{scope:Ln.title?nn.colSpan>1?"colgroup":"col":null,ellipsis:Ln.ellipsis,align:Ln.align,component:Ln.title?it:_t,prefixCls:Se,key:rn[ut]},zn,{additionalProps:Nn,rowType:"header"}))}))}ge.displayName="HeaderRow";var Jt=ge;function He(re){var ce=[];function Fe(_t,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ce[yt]=ce[yt]||[];var It=Et,Se=_t.filter(Boolean).map(function(Lt){var un={key:Lt.key,className:Lt.className||"",children:Lt.title,column:Lt,colStart:It},rn=1,nn=Lt.children;return nn&&nn.length>0&&(rn=Fe(nn,It,yt+1).reduce(function(ut,Ln){return ut+Ln},0),un.hasSubColumns=!0),"colSpan"in Lt&&(rn=Lt.colSpan),"rowSpan"in Lt&&(un.rowSpan=Lt.rowSpan),un.colSpan=rn,un.colEnd=un.colStart+rn-1,ce[yt].push(un),It+=rn,rn});return Se}Fe(re,0);for(var Ve=ce.length,tt=function(Et){ce[Et].forEach(function(yt){!("rowSpan"in yt)&&!yt.hasSubColumns&&(yt.rowSpan=Ve-Et)})},it=0;it<Ve;it+=1)tt(it);return ce}function fn(re){var ce=re.stickyOffsets,Fe=re.columns,Ve=re.flattenColumns,tt=re.onHeaderRow,it=C(T,["prefixCls","getComponent"]),_t=it.prefixCls,Et=it.getComponent,yt=S.useMemo(function(){return He(Fe)},[Fe]),It=Et(["header","wrapper"],"thead"),Se=Et(["header","row"],"tr"),Lt=Et(["header","cell"],"th"),un=Et(["header","cell"],"td");return S.createElement(It,{className:"".concat(_t,"-thead")},yt.map(function(rn,nn){var ut=S.createElement(Jt,{key:nn,flattenColumns:Ve,cells:rn,stickyOffsets:ce,rowComponent:Se,cellComponent:Lt,tdCellComponent:un,onHeaderRow:tt,index:nn});return ut}))}var An=W(fn),Hn=h(11592);function vr(re){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ce=="number"?ce:ce.endsWith("%")?re*parseFloat(ce)/100:null}function hn(re,ce){return S.useMemo(function(){if(ce&&ce>0){var Fe=0,Ve=0;re.forEach(function(It){var Se=vr(ce,It.width);Se?Fe+=Se:Ve+=1});var tt=ce-Fe,it=Ve,_t=tt/Ve,Et=0,yt=re.map(function(It){var Se=(0,xe.Z)({},It),Lt=vr(ce,Se.width);if(Lt)Se.width=Lt;else{var un=Math.floor(_t);Se.width=it===1?tt:un,tt-=un,it-=1}return Et+=Se.width,Se});return[yt,Et]}return[re,ce]},[re,ce])}var pn=["children"],et=["fixed"];function Rt(re){return(0,Hn.Z)(re).filter(function(ce){return S.isValidElement(ce)}).map(function(ce){var Fe=ce.key,Ve=ce.props,tt=Ve.children,it=(0,lt.Z)(Ve,pn),_t=(0,xe.Z)({key:Fe},it);return tt&&(_t.children=Rt(tt)),_t})}function Ft(re){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return re.filter(function(Fe){return Fe&&(0,_e.Z)(Fe)==="object"}).reduce(function(Fe,Ve,tt){var it=Ve.fixed,_t=it===!0?"left":it,Et="".concat(ce,"-").concat(tt),yt=Ve.children;return yt&&yt.length>0?[].concat((0,Je.Z)(Fe),(0,Je.Z)(Ft(yt,Et).map(function(It){return(0,xe.Z)({fixed:_t},It)}))):[].concat((0,Je.Z)(Fe),[(0,xe.Z)((0,xe.Z)({key:Et},Ve),{},{fixed:_t})])},[])}function Ue(re){for(var ce=!0,Fe=0;Fe<re.length;Fe+=1){var Ve=re[Fe];if(ce&&Ve.fixed!=="left")ce=!1;else if(!ce&&Ve.fixed==="left"){warning(!1,"Index ".concat(Fe-1," of `columns` missing `fixed='left'` prop."));break}}for(var tt=!0,it=re.length-1;it>=0;it-=1){var _t=re[it];if(tt&&_t.fixed!=="right")tt=!1;else if(!tt&&_t.fixed==="right"){warning(!1,"Index ".concat(it+1," of `columns` missing `fixed='right'` prop."));break}}}function Oe(re){return re.map(function(ce){var Fe=ce.fixed,Ve=(0,lt.Z)(ce,et),tt=Fe;return Fe==="left"?tt="right":Fe==="right"&&(tt="left"),(0,xe.Z)({fixed:tt},Ve)})}function xt(re,ce){var Fe=re.prefixCls,Ve=re.columns,tt=re.children,it=re.expandable,_t=re.expandedKeys,Et=re.columnTitle,yt=re.getRowKey,It=re.onTriggerExpand,Se=re.expandIcon,Lt=re.rowExpandable,un=re.expandIconColumnIndex,rn=re.direction,nn=re.expandRowByClick,ut=re.columnWidth,Ln=re.fixed,zn=re.scrollWidth,Nn=S.useMemo(function(){return Ve||Rt(tt)},[Ve,tt]),Kn=S.useMemo(function(){if(it){var fr,Vn=Nn.slice();if(!Vn.includes(z)){var Mn=un||0;Mn>=0&&Vn.splice(Mn,0,z)}var ur=Vn.indexOf(z);Vn=Vn.filter(function(l,d){return l!==z||d===ur});var Ir=Nn[ur],Gr;(Ln==="left"||Ln)&&!un?Gr="left":(Ln==="right"||Ln)&&un===Nn.length?Gr="right":Gr=Ir?Ir.fixed:null;var q=(fr={},(0,de.Z)(fr,ue,{className:"".concat(Fe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,de.Z)(fr,"title",Et),(0,de.Z)(fr,"fixed",Gr),(0,de.Z)(fr,"className","".concat(Fe,"-row-expand-icon-cell")),(0,de.Z)(fr,"width",ut),(0,de.Z)(fr,"render",function(d,f,g){var k=yt(f,g),ae=_t.has(k),Re=Lt?Lt(f):!0,Le=Se({prefixCls:Fe,expanded:ae,expandable:Re,record:f,onExpand:It});return nn?S.createElement("span",{onClick:function(dt){return dt.stopPropagation()}},Le):Le}),fr);return Vn.map(function(l){return l===z?q:l})}return Nn.filter(function(l){return l!==z})},[it,Nn,yt,_t,Se,rn]),yr=S.useMemo(function(){var fr=Kn;return ce&&(fr=ce(fr)),fr.length||(fr=[{render:function(){return null}}]),fr},[ce,Kn,rn]),br=S.useMemo(function(){return rn==="rtl"?Oe(Ft(yr)):Ft(yr)},[yr,rn,zn]),dr=hn(br,zn),Lr=(0,X.Z)(dr,2),Fr=Lr[0],Wn=Lr[1];return[yr,Fr,Wn]}var St=xt;function en(re){var ce,Fe=re.prefixCls,Ve=re.record,tt=re.onExpand,it=re.expanded,_t=re.expandable,Et="".concat(Fe,"-row-expand-icon");if(!_t)return S.createElement("span",{className:Z()(Et,"".concat(Fe,"-row-spaced"))});var yt=function(Se){tt(Ve,Se),Se.stopPropagation()};return S.createElement("span",{className:Z()(Et,(ce={},(0,de.Z)(ce,"".concat(Fe,"-row-expanded"),it),(0,de.Z)(ce,"".concat(Fe,"-row-collapsed"),!it),ce)),onClick:yt})}function jt(re,ce,Fe){var Ve=[];function tt(it){(it||[]).forEach(function(_t,Et){Ve.push(ce(_t,Et)),tt(_t[Fe])})}return tt(re),Ve}function sn(re,ce,Fe){var Ve=Ne(re),tt=Ve.expandIcon,it=Ve.expandedRowKeys,_t=Ve.defaultExpandedRowKeys,Et=Ve.defaultExpandAllRows,yt=Ve.expandedRowRender,It=Ve.onExpand,Se=Ve.onExpandedRowsChange,Lt=Ve.childrenColumnName,un=tt||en,rn=Lt||"children",nn=S.useMemo(function(){return yt?"row":re.expandable&&re.internalHooks===N&&re.expandable.__PARENT_RENDER_ICON__||ce.some(function(br){return br&&(0,_e.Z)(br)==="object"&&br[rn]})?"nest":!1},[!!yt,ce]),ut=S.useState(function(){return _t||(Et?jt(ce,Fe,rn):[])}),Ln=(0,X.Z)(ut,2),zn=Ln[0],Nn=Ln[1],Kn=S.useMemo(function(){return new Set(it||zn||[])},[it,zn]),yr=S.useCallback(function(br){var dr=Fe(br,ce.indexOf(br)),Lr,Fr=Kn.has(dr);Fr?(Kn.delete(dr),Lr=(0,Je.Z)(Kn)):Lr=[].concat((0,Je.Z)(Kn),[dr]),Nn(Lr),It&&It(!Fr,br),Se&&Se(Lr)},[Fe,Kn,ce,It,Se]);return[Ve,nn,Kn,un,rn,yr]}function Xt(re,ce,Fe,Ve){var tt=re.map(function(it,_t){return Vt(_t,_t,re,ce,Fe,Ve==null?void 0:Ve[_t])});return(0,pe.Z)(function(){return tt},[tt],function(it,_t){return!(0,H.Z)(it,_t)})}function vn(re){var ce=(0,S.useRef)(re),Fe=(0,S.useState)({}),Ve=(0,X.Z)(Fe,2),tt=Ve[1],it=(0,S.useRef)(null),_t=(0,S.useRef)([]);function Et(yt){_t.current.push(yt);var It=Promise.resolve();it.current=It,It.then(function(){if(it.current===It){var Se=_t.current,Lt=ce.current;_t.current=[],Se.forEach(function(un){ce.current=un(ce.current)}),it.current=null,Lt!==ce.current&&tt({})}})}return(0,S.useEffect)(function(){return function(){it.current=null}},[]),[ce.current,Et]}function _n(re){var ce=(0,S.useRef)(re||null),Fe=(0,S.useRef)();function Ve(){window.clearTimeout(Fe.current)}function tt(_t){ce.current=_t,Ve(),Fe.current=window.setTimeout(function(){ce.current=null,Fe.current=void 0},100)}function it(){return ce.current}return(0,S.useEffect)(function(){return Ve},[]),[tt,it]}function Mt(){var re=S.useState(-1),ce=(0,X.Z)(re,2),Fe=ce[0],Ve=ce[1],tt=S.useState(-1),it=(0,X.Z)(tt,2),_t=it[0],Et=it[1],yt=S.useCallback(function(It,Se){Ve(It),Et(Se)},[]);return[Fe,_t,yt]}var At=h(47273),tn=(0,At.Z)()?window:null;function an(re,ce){var Fe=(0,_e.Z)(re)==="object"?re:{},Ve=Fe.offsetHeader,tt=Ve===void 0?0:Ve,it=Fe.offsetSummary,_t=it===void 0?0:it,Et=Fe.offsetScroll,yt=Et===void 0?0:Et,It=Fe.getContainer,Se=It===void 0?function(){return tn}:It,Lt=Se()||tn;return S.useMemo(function(){var un=!!re;return{isSticky:un,stickyClassName:un?"".concat(ce,"-sticky-holder"):"",offsetHeader:tt,offsetSummary:_t,offsetScroll:yt,container:Lt}},[yt,tt,_t,ce,Lt])}function on(re,ce,Fe){var Ve=(0,S.useMemo)(function(){for(var tt=[],it=[],_t=0,Et=0,yt=0;yt<ce;yt+=1)if(Fe==="rtl"){it[yt]=Et,Et+=re[yt]||0;var It=ce-yt-1;tt[It]=_t,_t+=re[It]||0}else{tt[yt]=_t,_t+=re[yt]||0;var Se=ce-yt-1;it[Se]=Et,Et+=re[Se]||0}return{left:tt,right:it}},[re,ce,Fe]);return Ve}var Tn=on;function er(re){var ce=re.className,Fe=re.children;return S.createElement("div",{className:ce},Fe)}var Pn=er,Yt=h(8224),ct=h(55468),ft=function(ce,Fe){var Ve,tt,it=ce.scrollBodyRef,_t=ce.onScroll,Et=ce.offsetScroll,yt=ce.container,It=C(T,"prefixCls"),Se=((Ve=it.current)===null||Ve===void 0?void 0:Ve.scrollWidth)||0,Lt=((tt=it.current)===null||tt===void 0?void 0:tt.clientWidth)||0,un=Se&&Lt*(Lt/Se),rn=S.useRef(),nn=vn({scrollLeft:0,isHiddenScrollBar:!1}),ut=(0,X.Z)(nn,2),Ln=ut[0],zn=ut[1],Nn=S.useRef({delta:0,x:0}),Kn=S.useState(!1),yr=(0,X.Z)(Kn,2),br=yr[0],dr=yr[1],Lr=function(){dr(!1)},Fr=function(ur){ur.persist(),Nn.current.delta=ur.pageX-Ln.scrollLeft,Nn.current.x=0,dr(!0),ur.preventDefault()},Wn=function(ur){var Ir,Gr=ur||((Ir=window)===null||Ir===void 0?void 0:Ir.event),q=Gr.buttons;if(!br||q===0){br&&dr(!1);return}var l=Nn.current.x+ur.pageX-Nn.current.x-Nn.current.delta;l<=0&&(l=0),l+un>=Lt&&(l=Lt-un),_t({scrollLeft:l/Lt*(Se+2)}),Nn.current.x=ur.pageX},fr=function(){if(it.current){var ur=(0,ct.os)(it.current).top,Ir=ur+it.current.offsetHeight,Gr=yt===window?document.documentElement.scrollTop+window.innerHeight:(0,ct.os)(yt).top+yt.clientHeight;Ir-(0,De.Z)()<=Gr||ur>=Gr-Et?zn(function(q){return(0,xe.Z)((0,xe.Z)({},q),{},{isHiddenScrollBar:!0})}):zn(function(q){return(0,xe.Z)((0,xe.Z)({},q),{},{isHiddenScrollBar:!1})})}},Vn=function(ur){zn(function(Ir){return(0,xe.Z)((0,xe.Z)({},Ir),{},{scrollLeft:ur/Se*Lt||0})})};return S.useImperativeHandle(Fe,function(){return{setScrollLeft:Vn}}),S.useEffect(function(){var Mn=(0,Yt.Z)(document.body,"mouseup",Lr,!1),ur=(0,Yt.Z)(document.body,"mousemove",Wn,!1);return fr(),function(){Mn.remove(),ur.remove()}},[un,br]),S.useEffect(function(){var Mn=(0,Yt.Z)(yt,"scroll",fr,!1),ur=(0,Yt.Z)(window,"resize",fr,!1);return function(){Mn.remove(),ur.remove()}},[yt]),S.useEffect(function(){Ln.isHiddenScrollBar||zn(function(Mn){var ur=it.current;return ur?(0,xe.Z)((0,xe.Z)({},Mn),{},{scrollLeft:ur.scrollLeft/ur.scrollWidth*ur.clientWidth}):Mn})},[Ln.isHiddenScrollBar]),Se<=Lt||!un||Ln.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,De.Z)(),width:Lt,bottom:Et},className:"".concat(It,"-sticky-scroll")},S.createElement("div",{onMouseDown:Fr,ref:rn,className:Z()("".concat(It,"-sticky-scroll-bar"),(0,de.Z)({},"".concat(It,"-sticky-scroll-bar-active"),br)),style:{width:"".concat(un,"px"),transform:"translate3d(".concat(Ln.scrollLeft,"px, 0, 0)")}}))},Dt=S.forwardRef(ft);function Ot(re){return null}var Tt=Ot;function Kt(re){return null}var Nt=Kt,ln="rc-table",xn=[],Rn={};function Qn(){return"No Data"}function Jn(re){var ce,Fe=(0,xe.Z)({rowKey:"key",prefixCls:ln,emptyText:Qn},re),Ve=Fe.prefixCls,tt=Fe.className,it=Fe.rowClassName,_t=Fe.style,Et=Fe.data,yt=Fe.rowKey,It=Fe.scroll,Se=Fe.tableLayout,Lt=Fe.direction,un=Fe.title,rn=Fe.footer,nn=Fe.summary,ut=Fe.caption,Ln=Fe.id,zn=Fe.showHeader,Nn=Fe.components,Kn=Fe.emptyText,yr=Fe.onRow,br=Fe.onHeaderRow,dr=Fe.internalHooks,Lr=Fe.transformColumns,Fr=Fe.internalRefs,Wn=Fe.tailor,fr=Fe.sticky,Vn=Et||xn,Mn=!!Vn.length,ur=dr===N,Ir=S.useCallback(function(pi,Ki){return(0,P.Z)(Nn,pi)||Ki},[Nn]),Gr=S.useMemo(function(){return typeof yt=="function"?yt:function(pi){var Ki=pi&&pi[yt];return Ki}},[yt]),q=Ir(["body"]),l=Mt(),d=(0,X.Z)(l,3),f=d[0],g=d[1],k=d[2],ae=sn(Fe,Vn,Gr),Re=(0,X.Z)(ae,6),Le=Re[0],Qe=Re[1],dt=Re[2],wt=Re[3],Ut=Re[4],mn=Re[5],Zt=It==null?void 0:It.x,Qt=S.useState(0),cn=(0,X.Z)(Qt,2),wn=cn[0],rr=cn[1],Cn=St((0,xe.Z)((0,xe.Z)((0,xe.Z)({},Fe),Le),{},{expandable:!!Le.expandedRowRender,columnTitle:Le.columnTitle,expandedKeys:dt,getRowKey:Gr,onTriggerExpand:mn,expandIcon:wt,expandIconColumnIndex:Le.expandIconColumnIndex,direction:Lt,scrollWidth:ur&&Wn&&typeof Zt=="number"?Zt:null}),ur?Lr:null),nr=(0,X.Z)(Cn,3),Sr=nr[0],wr=nr[1],ii=nr[2],ai=ii!=null?ii:Zt,Zi=S.useMemo(function(){return{columns:Sr,flattenColumns:wr}},[Sr,wr]),ci=S.useRef(),si=S.useRef(),xi=S.useRef(),Ji=S.useRef(),_a=S.useRef(),Kr=S.useState(!1),ei=(0,X.Z)(Kr,2),Jr=ei[0],Ai=ei[1],ea=S.useState(!1),Zr=(0,X.Z)(ea,2),ra=Zr[0],ta=Zr[1],Ea=vn(new Map),$a=(0,X.Z)(Ea,2),Sa=$a[0],xs=$a[1],qa=fe(wr),Ma=qa.map(function(pi){return Sa.get(pi)}),ha=S.useMemo(function(){return Ma},[Ma.join("_")]),pa=Tn(ha,wr.length,Lt),Vi=It&&Be(It.y),wi=It&&Be(ai)||!!Le.fixed,rs=wi&&wr.some(function(pi){var Ki=pi.fixed;return Ki}),Is=S.useRef(),es=an(fr,Ve),Va=es.isSticky,io=es.offsetHeader,ao=es.offsetSummary,hi=es.offsetScroll,ki=es.stickyClassName,ma=es.container,Fi=S.useMemo(function(){return nn==null?void 0:nn(Vn)},[nn,Vn]),Ra=(Vi||Va)&&S.isValidElement(Fi)&&Fi.type===Y&&Fi.props.fixed,Na,za,gs;Vi&&(za={overflowY:"scroll",maxHeight:It.y}),wi&&(Na={overflowX:"auto"},Vi||(za={overflowY:"hidden"}),gs={width:ai===!0?"auto":ai,minWidth:"100%"});var so=S.useCallback(function(pi,Ki){(0,le.Z)(ci.current)&&xs(function(Ya){if(Ya.get(pi)!==Ki){var Ss=new Map(Ya);return Ss.set(pi,Ki),Ss}return Ya})},[]),Jo=_n(null),oo=(0,X.Z)(Jo,2),Co=oo[0],Fo=oo[1];function lo(pi,Ki){Ki&&(typeof Ki=="function"?Ki(pi):Ki.scrollLeft!==pi&&(Ki.scrollLeft=pi,Ki.scrollLeft!==pi&&setTimeout(function(){Ki.scrollLeft=pi},0)))}var _s=(0,ye.Z)(function(pi){var Ki=pi.currentTarget,Ya=pi.scrollLeft,Ss=Lt==="rtl",ws=typeof Ya=="number"?Ya:Ki.scrollLeft,Io=Ki||Rn;if(!Fo()||Fo()===Io){var Oo;Co(Io),lo(ws,si.current),lo(ws,xi.current),lo(ws,_a.current),lo(ws,(Oo=Is.current)===null||Oo===void 0?void 0:Oo.setScrollLeft)}var Lo=Ki||si.current;if(Lo){var Po=Lo.scrollWidth,ko=Lo.clientWidth;if(Po===ko){Ai(!1),ta(!1);return}Ss?(Ai(-ws<Po-ko),ta(-ws>0)):(Ai(ws>0),ta(ws<Po-ko))}}),To=function(){wi&&xi.current?_s({currentTarget:xi.current}):(Ai(!1),ta(!1))},$o=function(Ki){var Ya=Ki.width;Ya!==wn&&(To(),rr(ci.current?ci.current.offsetWidth:Ya))},zo=S.useRef(!1);S.useEffect(function(){zo.current&&To()},[wi,Et,Sr.length]),S.useEffect(function(){zo.current=!0},[]);var Uo=S.useState(0),Ko=(0,X.Z)(Uo,2),Fs=Ko[0],Do=Ko[1],Ho=S.useState(!0),Zo=(0,X.Z)(Ho,2),uo=Zo[0],jo=Zo[1];S.useEffect(function(){(!Wn||!ur)&&(xi.current instanceof Element?Do((0,De.o)(xi.current).width):Do((0,De.o)(Ji.current).width)),jo((0,J.G)("position","sticky"))},[]),S.useEffect(function(){ur&&Fr&&(Fr.body.current=xi.current)});var Ao=S.useCallback(function(pi){return S.createElement(S.Fragment,null,S.createElement(An,pi),Ra==="top"&&S.createElement($,pi,Fi))},[Ra,Fi]),qo=S.useCallback(function(pi){return S.createElement($,pi,Fi)},[Fi]),Wo=Ir(["table"],"table"),co=S.useMemo(function(){return Se||(rs?ai==="max-content"?"auto":"fixed":Vi||Va||wr.some(function(pi){var Ki=pi.ellipsis;return Ki})?"fixed":"auto")},[Vi,rs,wr,Se,Va]),fo,ho={colWidths:ha,columCount:wr.length,stickyOffsets:pa,onHeaderRow:br,fixHeader:Vi,scroll:It},Go=S.useMemo(function(){return Mn?null:typeof Kn=="function"?Kn():Kn},[Mn,Kn]),Ro=S.createElement(A,{data:Vn,measureColumnWidth:Vi||wi||Va}),po=S.createElement(rt,{colWidths:wr.map(function(pi){var Ki=pi.width;return Ki}),columns:wr}),Vo=ut!=null?S.createElement("caption",{className:"".concat(Ve,"-caption")},ut):void 0,mo=(0,je.Z)(Fe,{data:!0}),Os=(0,je.Z)(Fe,{aria:!0});if(Vi||Va){var Ha;typeof q=="function"?(Ha=q(Vn,{scrollbarSize:Fs,ref:xi,onScroll:_s}),ho.colWidths=wr.map(function(pi,Ki){var Ya=pi.width,Ss=Ki===wr.length-1?Ya-Fs:Ya;return typeof Ss=="number"&&!Number.isNaN(Ss)?Ss:0})):Ha=S.createElement("div",{style:(0,xe.Z)((0,xe.Z)({},Na),za),onScroll:_s,ref:xi,className:Z()("".concat(Ve,"-body"))},S.createElement(Wo,(0,I.Z)({style:(0,xe.Z)((0,xe.Z)({},gs),{},{tableLayout:co})},Os),Vo,po,Ro,!Ra&&Fi&&S.createElement($,{stickyOffsets:pa,flattenColumns:wr,columns:Sr},Fi)));var Ia=(0,xe.Z)((0,xe.Z)((0,xe.Z)({noData:!Vn.length,maxContentScroll:wi&&ai==="max-content"},ho),Zi),{},{direction:Lt,stickyClassName:ki,onScroll:_s});fo=S.createElement(S.Fragment,null,zn!==!1&&S.createElement(qe,(0,I.Z)({},Ia,{stickyTopOffset:io,className:"".concat(Ve,"-header"),ref:si}),Ao),Ha,Ra&&Ra!=="top"&&S.createElement(qe,(0,I.Z)({},Ia,{stickyBottomOffset:ao,className:"".concat(Ve,"-summary"),ref:_a}),qo),Va&&S.createElement(Dt,{ref:Is,offsetScroll:hi,scrollBodyRef:xi,onScroll:_s,container:ma}))}else fo=S.createElement("div",{style:(0,xe.Z)((0,xe.Z)({},Na),za),className:Z()("".concat(Ve,"-content")),onScroll:_s,ref:xi},S.createElement(Wo,(0,I.Z)({style:(0,xe.Z)((0,xe.Z)({},gs),{},{tableLayout:co})},Os),Vo,po,zn!==!1&&S.createElement(An,(0,I.Z)({},ho,Zi)),Ro,Fi&&S.createElement($,{stickyOffsets:pa,flattenColumns:wr,columns:Sr},Fi)));var Vs=S.createElement("div",(0,I.Z)({className:Z()(Ve,tt,(ce={},(0,de.Z)(ce,"".concat(Ve,"-rtl"),Lt==="rtl"),(0,de.Z)(ce,"".concat(Ve,"-ping-left"),Jr),(0,de.Z)(ce,"".concat(Ve,"-ping-right"),ra),(0,de.Z)(ce,"".concat(Ve,"-layout-fixed"),Se==="fixed"),(0,de.Z)(ce,"".concat(Ve,"-fixed-header"),Vi),(0,de.Z)(ce,"".concat(Ve,"-fixed-column"),rs),(0,de.Z)(ce,"".concat(Ve,"-scroll-horizontal"),wi),(0,de.Z)(ce,"".concat(Ve,"-has-fix-left"),wr[0]&&wr[0].fixed),(0,de.Z)(ce,"".concat(Ve,"-has-fix-right"),wr[wr.length-1]&&wr[wr.length-1].fixed==="right"),ce)),style:_t,id:Ln,ref:ci},mo),un&&S.createElement(Pn,{className:"".concat(Ve,"-title")},un(Vn)),S.createElement("div",{ref:Ji,className:"".concat(Ve,"-container")},fo),rn&&S.createElement(Pn,{className:"".concat(Ve,"-footer")},rn(Vn)));wi&&(Vs=S.createElement(oe.Z,{onResize:$o},Vs));var Es=Xt(wr,pa,Lt,Sr),el=S.useMemo(function(){return{scrollX:ai,prefixCls:Ve,getComponent:Ir,scrollbarSize:Fs,direction:Lt,fixedInfoList:Es,isSticky:Va,supportSticky:uo,componentWidth:wn,fixHeader:Vi,fixColumn:rs,horizonScroll:wi,tableLayout:co,rowClassName:it,expandedRowClassName:Le.expandedRowClassName,expandIcon:wt,expandableType:Qe,expandRowByClick:Le.expandRowByClick,expandedRowRender:Le.expandedRowRender,onTriggerExpand:mn,expandIconColumnIndex:Le.expandIconColumnIndex,indentSize:Le.indentSize,allColumnsFixedLeft:wr.every(function(pi){return pi.fixed==="left"}),emptyNode:Go,columns:Sr,flattenColumns:wr,onColumnResize:so,hoverStartRow:f,hoverEndRow:g,onHover:k,rowExpandable:Le.rowExpandable,onRow:yr,getRowKey:Gr,expandedKeys:dt,childrenColumnName:Ut}},[ai,Ve,Ir,Fs,Lt,Es,Va,uo,wn,Vi,rs,wi,co,it,Le.expandedRowClassName,wt,Qe,Le.expandRowByClick,Le.expandedRowRender,mn,Le.expandIconColumnIndex,Le.indentSize,Go,Sr,wr,so,f,g,k,Le.rowExpandable,yr,Gr,dt,Ut]);return S.createElement(T.Provider,{value:el},Vs)}function hr(re){return M(Jn,re)}var En=hr();En.EXPAND_COLUMN=z,En.INTERNAL_HOOKS=N,En.Column=Tt,En.ColumnGroup=Nt,En.Summary=R;var yn=En,pr=h(57149),Zn=a(null),Rr=a(null);function qn(re,ce,Fe){var Ve=ce||1;return Fe[re+Ve]-(Fe[re]||0)}function cr(re){var ce=re.rowInfo,Fe=re.column,Ve=re.colIndex,tt=re.indent,it=re.index,_t=re.renderIndex,Et=re.record,yt=re.style,It=re.className,Se=re.inverse,Lt=re.getHeight,un=Fe.render,rn=Fe.dataIndex,nn=Fe.className,ut=Fe.width,Ln=C(Rr,["columnsOffset"]),zn=Ln.columnsOffset,Nn=gt(ce,Fe,Ve,tt,it),Kn=Nn.key,yr=Nn.fixedInfo,br=Nn.appendCellNode,dr=Nn.additionalCellProps,Lr=dr.style,Fr=dr.colSpan,Wn=Fr===void 0?1:Fr,fr=dr.rowSpan,Vn=fr===void 0?1:fr,Mn=Ve-1,ur=qn(Mn,Wn,zn),Ir=Wn>1?ut-ur:0,Gr=(0,xe.Z)((0,xe.Z)((0,xe.Z)({},Lr),yt),{},{flex:"0 0 ".concat(ur,"px"),width:"".concat(ur,"px"),marginRight:Ir,pointerEvents:"auto"}),q=S.useMemo(function(){return Se?Vn<=1:Wn===0||Vn===0||Vn>1},[Vn,Wn,Se]);q?Gr.visibility="hidden":Se&&(Gr.height=Lt==null?void 0:Lt(Vn));var l=q?function(){return null}:un,d={};return(Vn===0||Wn===0)&&(d.rowSpan=1,d.colSpan=1),S.createElement(Bt,(0,I.Z)({className:Z()(nn,It),ellipsis:Fe.ellipsis,align:Fe.align,scope:Fe.rowScope,component:"div",prefixCls:ce.prefixCls,key:Kn,record:Et,index:it,renderIndex:_t,dataIndex:rn,render:l,shouldCellUpdate:Fe.shouldCellUpdate},yr,{appendNode:br,additionalProps:(0,xe.Z)((0,xe.Z)({},dr),{},{style:Gr},d)}))}var gr=cr,tr=["data","index","className","rowKey","style","extra","getHeight"],Or=S.forwardRef(function(re,ce){var Fe=re.data,Ve=re.index,tt=re.className,it=re.rowKey,_t=re.style,Et=re.extra,yt=re.getHeight,It=(0,lt.Z)(re,tr),Se=Fe.record,Lt=Fe.indent,un=Fe.index,rn=C(T,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),nn=rn.scrollX,ut=rn.flattenColumns,Ln=rn.prefixCls,zn=rn.fixColumn,Nn=rn.componentWidth,Kn=Ge(Se,it,Ve,Lt),yr=Kn.rowSupportExpand,br=Kn.expanded,dr=Kn.rowProps,Lr=Kn.expandedRowRender,Fr=Kn.expandedRowClassName,Wn;if(yr&&br){var fr=Lr(Se,Ve,Lt+1,br),Vn=Fr==null?void 0:Fr(Se,Ve,Lt),Mn={};zn&&(Mn={style:(0,de.Z)({},"--virtual-width","".concat(Nn,"px"))});var ur="".concat(Ln,"-expanded-row-cell");Wn=S.createElement("div",{className:Z()("".concat(Ln,"-expanded-row"),"".concat(Ln,"-expanded-row-level-").concat(Lt+1),Vn)},S.createElement(Bt,{component:"div",prefixCls:Ln,className:Z()(ur,(0,de.Z)({},"".concat(ur,"-fixed"),zn)),additionalProps:Mn},fr))}var Ir=(0,xe.Z)((0,xe.Z)({},_t),{},{width:nn});Et&&(Ir.position="absolute",Ir.pointerEvents="none");var Gr=S.createElement("div",(0,I.Z)({},dr,It,{ref:yr?null:ce,className:Z()(tt,"".concat(Ln,"-row"),dr==null?void 0:dr.className,(0,de.Z)({},"".concat(Ln,"-row-extra"),Et)),style:(0,xe.Z)((0,xe.Z)({},Ir),dr==null?void 0:dr.style)}),ut.map(function(q,l){return S.createElement(gr,{key:l,rowInfo:Kn,column:q,colIndex:l,indent:Lt,index:Ve,renderIndex:un,record:Se,inverse:Et,getHeight:yt})}));return yr?S.createElement("div",{ref:ce},Gr,Wn):Gr}),Vr=W(Or),Xn=Vr,Dn=S.forwardRef(function(re,ce){var Fe=re.data,Ve=re.onScroll,tt=C(T,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),it=tt.flattenColumns,_t=tt.onColumnResize,Et=tt.getRowKey,yt=tt.expandedKeys,It=tt.prefixCls,Se=tt.childrenColumnName,Lt=tt.emptyNode,un=tt.scrollX,rn=C(Zn),nn=rn.scrollY,ut=rn.listItemHeight,Ln=S.useRef(),zn=Pe(Fe,Se,yt,Et),Nn=S.useMemo(function(){var Wn=0;return it.map(function(fr){var Vn=fr.width,Mn=fr.key;return Wn+=Vn,[Mn,Vn,Wn]})},[it]),Kn=S.useMemo(function(){return Nn.map(function(Wn){return Wn[2]})},[Nn]);S.useEffect(function(){Nn.forEach(function(Wn){var fr=(0,X.Z)(Wn,2),Vn=fr[0],Mn=fr[1];_t(Vn,Mn)})},[Nn]),S.useImperativeHandle(ce,function(){var Wn={};return Object.defineProperty(Wn,"scrollLeft",{get:function(){var Vn;return((Vn=Ln.current)===null||Vn===void 0?void 0:Vn.getScrollInfo().x)||0},set:function(Vn){var Mn;(Mn=Ln.current)===null||Mn===void 0||Mn.scrollTo({left:Vn})}}),Wn});var yr=function(fr,Vn){var Mn,ur=(Mn=zn[Vn])===null||Mn===void 0?void 0:Mn.record,Ir=fr.onCell;if(Ir){var Gr,q=Ir(ur,Vn);return(Gr=q==null?void 0:q.rowSpan)!==null&&Gr!==void 0?Gr:1}return 1},br=function(fr){var Vn=fr.start,Mn=fr.end,ur=fr.getSize,Ir=fr.offsetY;if(Mn<0)return null;for(var Gr=it.filter(function(Zt){return yr(Zt,Vn)===0}),q=Vn,l=function(Qt){if(Gr=Gr.filter(function(cn){return yr(cn,Qt)===0}),!Gr.length)return q=Qt,"break"},d=Vn;d>=0;d-=1){var f=l(d);if(f==="break")break}for(var g=it.filter(function(Zt){return yr(Zt,Mn)!==1}),k=Mn,ae=function(Qt){if(g=g.filter(function(cn){return yr(cn,Qt)!==1}),!g.length)return k=Math.max(Qt-1,Mn),"break"},Re=Mn;Re<zn.length;Re+=1){var Le=ae(Re);if(Le==="break")break}for(var Qe=[],dt=function(Qt){var cn=zn[Qt];if(!cn)return"continue";it.some(function(wn){return yr(wn,Qt)>1})&&Qe.push(Qt)},wt=q;wt<=k;wt+=1)var Ut=dt(wt);var mn=Qe.map(function(Zt){var Qt=zn[Zt],cn=Et(Qt.record,Zt),wn=function(nr){var Sr=Zt+nr-1,wr=Et(zn[Sr].record,Sr),ii=ur(cn,wr);return ii.bottom-ii.top},rr=ur(cn);return S.createElement(Xn,{key:Zt,data:Qt,rowKey:cn,index:Zt,style:{top:-Ir+rr.top},extra:!0,getHeight:wn})});return mn},dr=S.useMemo(function(){return{columnsOffset:Kn}},[Kn]),Lr="".concat(It,"-tbody"),Fr;return zn.length?Fr=S.createElement(pr.Z,{fullHeight:!1,ref:Ln,className:Z()(Lr,"".concat(Lr,"-virtual")),height:nn,itemHeight:ut||24,data:zn,itemKey:function(fr){return Et(fr.record)},scrollWidth:un,onVirtualScroll:function(fr){var Vn=fr.x;Ve({scrollLeft:Vn})},extraRender:br},function(Wn,fr,Vn){var Mn=Et(Wn.record,fr);return S.createElement(Xn,(0,I.Z)({data:Wn,rowKey:Mn,index:fr},Vn))}):Fr=S.createElement("div",{className:Z()("".concat(It,"-placeholder"))},S.createElement(Bt,{component:"div",prefixCls:It},Lt)),S.createElement(Rr.Provider,{value:dr},Fr)}),nt=W(Dn),$n=nt,ar=function(ce,Fe){var Ve=Fe.ref,tt=Fe.onScroll;return S.createElement($n,{ref:Ve,data:ce,onScroll:tt})},Cr=100;function Tr(re){var ce=re.columns,Fe=re.scroll,Ve=re.prefixCls,tt=Ve===void 0?ln:Ve,it=re.className,_t=re.listItemHeight,Et=Fe||{},yt=Et.x,It=Et.y;typeof yt!="number"&&(yt=((ce||[]).length+1)*Cr),typeof It!="number"&&(It=500);var Se=S.useMemo(function(){return{scrollY:It,listItemHeight:_t}},[It,_t]);return S.createElement(Zn.Provider,{value:Se},S.createElement(yn,(0,I.Z)({},re,{className:Z()(it,"".concat(tt,"-virtual")),scroll:(0,xe.Z)((0,xe.Z)({},Fe),{},{x:yt}),components:{body:ar},columns:ce,internalHooks:N,tailor:!0})))}function Mr(re){return M(Tr,re)}var Hr=Mr(),xr=null;function $r(re){return null}var Wr=$r;function On(re){return null}var Fn=On,mr=h(2738),kr=h(68031),qr=h(36355),Un=h(93891),Ur=h(19716),jr=h(8628),fi=h(31724),Li=h(58421),Ei=h(71418),ti=h(88088);function vi(re){return function(Fe){let{prefixCls:Ve,onExpand:tt,record:it,expanded:_t,expandable:Et}=Fe;const yt=`${Ve}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:It=>{tt(it,It),It.stopPropagation()},className:Z()(yt,{[`${yt}-spaced`]:!Et,[`${yt}-expanded`]:Et&&_t,[`${yt}-collapsed`]:Et&&!_t}),"aria-label":_t?re.collapse:re.expand,"aria-expanded":_t})}}var li=vi;function Ri(re,ce){return"key"in re&&re.key!==void 0&&re.key!==null?re.key:re.dataIndex?Array.isArray(re.dataIndex)?re.dataIndex.join("."):re.dataIndex:ce}function Ii(re,ce){return ce?`${ce}-${re}`:`${re}`}function ji(re,ce){return typeof re=="function"?re(ce):re}function Di(re,ce){const Fe=ji(re,ce);return Object.prototype.toString.call(Fe)==="[object Object]"?"":Fe}var Gi={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"},zr=Gi,aa=h(7657),ga=function(ce,Fe){return S.createElement(aa.Z,(0,I.Z)({},ce,{ref:Fe,icon:zr}))},ua=S.forwardRef(ga),yi=ua,ca=h(56762);function wa(re){const ce=S.useRef(re),Fe=(0,ca.Z)();return[()=>ce.current,Ve=>{ce.current=Ve,Fe()}]}var kn=h(3113),Mi=h(24905),na=h(38854),sr=h(64165),_r=h(20834),or=h(40875),jn=h(5112),Nr=h(17574),Xr=h(47472),Ni=h(92832);function bi(re){let{value:ce,onChange:Fe,filterSearch:Ve,tablePrefixCls:tt,locale:it}=re;return Ve?S.createElement("div",{className:`${tt}-filter-dropdown-search`},S.createElement(Ni.default,{prefix:S.createElement(Xr.Z,null),placeholder:it.filterSearchPlaceholder,onChange:Fe,value:ce,htmlSize:1,className:`${tt}-filter-dropdown-search-input`})):null}var Oi=bi,Bi=h(10228);const va=re=>{const{keyCode:ce}=re;ce===Bi.Z.ENTER&&re.stopPropagation()};var Za=S.forwardRef((re,ce)=>S.createElement("div",{className:re.className,onClick:Fe=>Fe.stopPropagation(),onKeyDown:va,ref:ce},re.children));function da(re){let ce=[];return(re||[]).forEach(Fe=>{let{value:Ve,children:tt}=Fe;ce.push(Ve),tt&&(ce=[].concat((0,Je.Z)(ce),(0,Je.Z)(da(tt))))}),ce}function fa(re){return re.some(ce=>{let{children:Fe}=ce;return Fe})}function lr(re,ce){return typeof ce=="string"||typeof ce=="number"?ce==null?void 0:ce.toString().toLowerCase().includes(re.trim().toLowerCase()):!1}function ir(re){let{filters:ce,prefixCls:Fe,filteredKeys:Ve,filterMultiple:tt,searchValue:it,filterSearch:_t}=re;return ce.map((Et,yt)=>{const It=String(Et.value);if(Et.children)return{key:It||yt,label:Et.text,popupClassName:`${Fe}-dropdown-submenu`,children:ir({filters:Et.children,prefixCls:Fe,filteredKeys:Ve,filterMultiple:tt,searchValue:it,filterSearch:_t})};const Se=tt?Mi.default:jn.ZP,Lt={key:Et.value!==void 0?It:yt,label:S.createElement(S.Fragment,null,S.createElement(Se,{checked:Ve.includes(It)}),S.createElement("span",null,Et.text))};return it.trim()?typeof _t=="function"?_t(it,Et)?Lt:null:lr(it,Et.text)?Lt:null:Lt})}function Qr(re){var ce,Fe;const{tablePrefixCls:Ve,prefixCls:tt,column:it,dropdownPrefixCls:_t,columnKey:Et,filterMultiple:yt,filterMode:It="menu",filterSearch:Se=!1,filterState:Lt,triggerFilter:un,locale:rn,children:nn,getPopupContainer:ut}=re,{filterDropdownOpen:Ln,onFilterDropdownOpenChange:zn,filterResetToDefaultFilteredValue:Nn,defaultFilteredValue:Kn,filterDropdownVisible:yr,onFilterDropdownVisibleChange:br}=it,[dr,Lr]=S.useState(!1),Fr=!!(Lt&&(!((ce=Lt.filteredKeys)===null||ce===void 0)&&ce.length||Lt.forceFiltered)),Wn=Cn=>{Lr(Cn),zn==null||zn(Cn),br==null||br(Cn)},fr=(Fe=Ln!=null?Ln:yr)!==null&&Fe!==void 0?Fe:dr,Vn=Lt==null?void 0:Lt.filteredKeys,[Mn,ur]=wa(Vn||[]),Ir=Cn=>{let{selectedKeys:nr}=Cn;ur(nr)},Gr=(Cn,nr)=>{let{node:Sr,checked:wr}=nr;Ir(yt?{selectedKeys:Cn}:{selectedKeys:wr&&Sr.key?[Sr.key]:[]})};S.useEffect(()=>{dr&&Ir({selectedKeys:Vn||[]})},[Vn]);const[q,l]=S.useState([]),d=Cn=>{l(Cn)},[f,g]=S.useState(""),k=Cn=>{const{value:nr}=Cn.target;g(nr)};S.useEffect(()=>{dr||g("")},[dr]);const ae=Cn=>{const nr=Cn&&Cn.length?Cn:null;if(nr===null&&(!Lt||!Lt.filteredKeys)||(0,H.Z)(nr,Lt==null?void 0:Lt.filteredKeys,!0))return null;un({column:it,key:Et,filteredKeys:nr})},Re=()=>{Wn(!1),ae(Mn())},Le=function(){let{confirm:Cn,closeDropdown:nr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Cn&&ae([]),nr&&Wn(!1),g(""),ur(Nn?(Kn||[]).map(Sr=>String(Sr)):[])},Qe=function(){let{closeDropdown:Cn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Cn&&Wn(!1),ae(Mn())},dt=Cn=>{Cn&&Vn!==void 0&&ur(Vn||[]),Wn(Cn),!Cn&&!it.filterDropdown&&Re()},wt=Z()({[`${_t}-menu-without-submenu`]:!fa(it.filters||[])}),Ut=Cn=>{if(Cn.target.checked){const nr=da(it==null?void 0:it.filters).map(Sr=>String(Sr));ur(nr)}else ur([])},mn=Cn=>{let{filters:nr}=Cn;return(nr||[]).map((Sr,wr)=>{const ii=String(Sr.value),ai={title:Sr.text,key:Sr.value!==void 0?ii:wr};return Sr.children&&(ai.children=mn({filters:Sr.children})),ai})},Zt=Cn=>{var nr;return Object.assign(Object.assign({},Cn),{text:Cn.title,value:Cn.key,children:((nr=Cn.children)===null||nr===void 0?void 0:nr.map(Sr=>Zt(Sr)))||[]})};let Qt;if(typeof it.filterDropdown=="function")Qt=it.filterDropdown({prefixCls:`${_t}-custom`,setSelectedKeys:Cn=>Ir({selectedKeys:Cn}),selectedKeys:Mn(),confirm:Qe,clearFilters:Le,filters:it.filters,visible:fr,close:()=>{Wn(!1)}});else if(it.filterDropdown)Qt=it.filterDropdown;else{const Cn=Mn()||[],nr=()=>(it.filters||[]).length===0?S.createElement(sr.Z,{image:sr.Z.PRESENTED_IMAGE_SIMPLE,description:rn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):It==="tree"?S.createElement(S.Fragment,null,S.createElement(Oi,{filterSearch:Se,value:f,onChange:k,tablePrefixCls:Ve,locale:rn}),S.createElement("div",{className:`${Ve}-filter-dropdown-tree`},yt?S.createElement(Mi.default,{checked:Cn.length===da(it.filters).length,indeterminate:Cn.length>0&&Cn.length<da(it.filters).length,className:`${Ve}-filter-dropdown-checkall`,onChange:Ut},rn.filterCheckall):null,S.createElement(Nr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:yt,checkStrictly:!yt,className:`${_t}-menu`,onCheck:Gr,checkedKeys:Cn,selectedKeys:Cn,showIcon:!1,treeData:mn({filters:it.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:f.trim()?wr=>typeof Se=="function"?Se(f,Zt(wr)):lr(f,wr.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(Oi,{filterSearch:Se,value:f,onChange:k,tablePrefixCls:Ve,locale:rn}),S.createElement(_r.default,{selectable:!0,multiple:yt,prefixCls:`${_t}-menu`,className:wt,onSelect:Ir,onDeselect:Ir,selectedKeys:Cn,getPopupContainer:ut,openKeys:q,onOpenChange:d,items:ir({filters:it.filters||[],filterSearch:Se,prefixCls:tt,filteredKeys:Mn(),filterMultiple:yt,searchValue:f})})),Sr=()=>Nn?(0,H.Z)((Kn||[]).map(wr=>String(wr)),Cn,!0):Cn.length===0;Qt=S.createElement(S.Fragment,null,nr(),S.createElement("div",{className:`${tt}-dropdown-btns`},S.createElement(kn.ZP,{type:"link",size:"small",disabled:Sr(),onClick:()=>Le()},rn.filterReset),S.createElement(kn.ZP,{type:"primary",size:"small",onClick:Re},rn.filterConfirm)))}it.filterDropdown&&(Qt=S.createElement(or.J,{selectable:void 0},Qt));const cn=()=>S.createElement(Za,{className:`${tt}-dropdown`},Qt);let wn;typeof it.filterIcon=="function"?wn=it.filterIcon(Fr):it.filterIcon?wn=it.filterIcon:wn=S.createElement(yi,null);const{direction:rr}=S.useContext(qr.E_);return S.createElement("div",{className:`${tt}-column`},S.createElement("span",{className:`${Ve}-column-title`},nn),S.createElement(na.Z,{dropdownRender:cn,trigger:["click"],open:fr,onOpenChange:dt,getPopupContainer:ut,placement:rr==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:Z()(`${tt}-trigger`,{active:Fr}),onClick:Cn=>{Cn.stopPropagation()}},wn)))}var zi=Qr;function ui(re,ce,Fe){let Ve=[];return(re||[]).forEach((tt,it)=>{var _t;const Et=Ii(it,Fe);if(tt.filters||"filterDropdown"in tt||"onFilter"in tt)if("filteredValue"in tt){let yt=tt.filteredValue;"filterDropdown"in tt||(yt=(_t=yt==null?void 0:yt.map(String))!==null&&_t!==void 0?_t:yt),Ve.push({column:tt,key:Ri(tt,Et),filteredKeys:yt,forceFiltered:tt.filtered})}else Ve.push({column:tt,key:Ri(tt,Et),filteredKeys:ce&&tt.defaultFilteredValue?tt.defaultFilteredValue:void 0,forceFiltered:tt.filtered});"children"in tt&&(Ve=[].concat((0,Je.Z)(Ve),(0,Je.Z)(ui(tt.children,ce,Et))))}),Ve}function sa(re,ce,Fe,Ve,tt,it,_t,Et){return Fe.map((yt,It)=>{const Se=Ii(It,Et),{filterMultiple:Lt=!0,filterMode:un,filterSearch:rn}=yt;let nn=yt;if(nn.filters||nn.filterDropdown){const ut=Ri(nn,Se),Ln=Ve.find(zn=>{let{key:Nn}=zn;return ut===Nn});nn=Object.assign(Object.assign({},nn),{title:zn=>S.createElement(zi,{tablePrefixCls:re,prefixCls:`${re}-filter`,dropdownPrefixCls:ce,column:nn,columnKey:ut,filterState:Ln,filterMultiple:Lt,filterMode:un,filterSearch:rn,triggerFilter:it,locale:tt,getPopupContainer:_t},ji(yt.title,zn))})}return"children"in nn&&(nn=Object.assign(Object.assign({},nn),{children:sa(re,ce,nn.children,Ve,tt,it,_t,Se)})),nn})}function ja(re){const ce={};return re.forEach(Fe=>{let{key:Ve,filteredKeys:tt,column:it}=Fe;const{filters:_t,filterDropdown:Et}=it;if(Et)ce[Ve]=tt||null;else if(Array.isArray(tt)){const yt=da(_t);ce[Ve]=yt.filter(It=>tt.includes(String(It)))}else ce[Ve]=null}),ce}function Ka(re,ce){return ce.reduce((Fe,Ve)=>{const{column:{onFilter:tt,filters:it},filteredKeys:_t}=Ve;return tt&&_t&&_t.length?Fe.filter(Et=>_t.some(yt=>{const It=da(it),Se=It.findIndex(un=>String(un)===String(yt)),Lt=Se!==-1?It[Se]:yt;return tt(Lt,Et)})):Fe},re)}const ya=re=>re.flatMap(ce=>"children"in ce?[ce].concat((0,Je.Z)(ya(ce.children||[]))):[ce]);function as(re){let{prefixCls:ce,dropdownPrefixCls:Fe,mergedColumns:Ve,onFilterChange:tt,getPopupContainer:it,locale:_t}=re;const Et=S.useMemo(()=>ya(Ve||[]),[Ve]),[yt,It]=S.useState(()=>ui(Et,!0)),Se=S.useMemo(()=>{const nn=ui(Et,!1);if(nn.length===0)return nn;let ut=!0,Ln=!0;if(nn.forEach(zn=>{let{filteredKeys:Nn}=zn;Nn!==void 0?ut=!1:Ln=!1}),ut){const zn=(Et||[]).map((Nn,Kn)=>Ri(Nn,Ii(Kn)));return yt.filter(Nn=>{let{key:Kn}=Nn;return zn.includes(Kn)}).map(Nn=>{const Kn=Et[zn.findIndex(yr=>yr===Nn.key)];return Object.assign(Object.assign({},Nn),{column:Object.assign(Object.assign({},Nn.column),Kn),forceFiltered:Kn.filtered})})}return nn},[Et,yt]),Lt=S.useMemo(()=>ja(Se),[Se]),un=nn=>{const ut=Se.filter(Ln=>{let{key:zn}=Ln;return zn!==nn.key});ut.push(nn),It(ut),tt(ja(ut),ut)};return[nn=>sa(ce,Fe,nn,Se,_t,un,it),Se,Lt]}var ss=as;function os(re,ce,Fe){const Ve=S.useRef({});function tt(it){if(!Ve.current||Ve.current.data!==re||Ve.current.childrenColumnName!==ce||Ve.current.getRowKey!==Fe){let Et=function(yt){yt.forEach((It,Se)=>{const Lt=Fe(It,Se);_t.set(Lt,It),It&&typeof It=="object"&&ce in It&&Et(It[ce]||[])})};const _t=new Map;Et(re),Ve.current={data:re,childrenColumnName:ce,kvMap:_t,getRowKey:Fe}}return Ve.current.kvMap.get(it)}return[tt]}var ts=h(50371),ls=function(re,ce){var Fe={};for(var Ve in re)Object.prototype.hasOwnProperty.call(re,Ve)&&ce.indexOf(Ve)<0&&(Fe[Ve]=re[Ve]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ve=Object.getOwnPropertySymbols(re);tt<Ve.length;tt++)ce.indexOf(Ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(re,Ve[tt])&&(Fe[Ve[tt]]=re[Ve[tt]]);return Fe};const Aa=10;function Xi(re,ce){const Fe={current:re.current,pageSize:re.pageSize};return Object.keys(ce&&typeof ce=="object"?ce:{}).forEach(tt=>{const it=re[tt];typeof it!="function"&&(Fe[tt]=it)}),Fe}function us(re,ce,Fe){const Ve=Fe&&typeof Fe=="object"?Fe:{},{total:tt=0}=Ve,it=ls(Ve,["total"]),[_t,Et]=(0,S.useState)(()=>({current:"defaultCurrent"in it?it.defaultCurrent:1,pageSize:"defaultPageSize"in it?it.defaultPageSize:Aa})),yt=(0,ts.Z)(_t,it,{total:tt>0?tt:re}),It=Math.ceil((tt||re)/yt.pageSize);yt.current>It&&(yt.current=It||1);const Se=(un,rn)=>{Et({current:un!=null?un:1,pageSize:rn||yt.pageSize})},Lt=(un,rn)=>{var nn;Fe&&((nn=Fe.onChange)===null||nn===void 0||nn.call(Fe,un,rn)),Se(un,rn),ce(un,rn||(yt==null?void 0:yt.pageSize))};return Fe===!1?[{},()=>{}]:[Object.assign(Object.assign({},yt),{onChange:Lt}),Se]}var ns=us,ba=h(84105),xa=h(35654),ni=h(90782),Br=h(71430),ia=h(18929);const Ui={},Pi="SELECT_ALL",oa="SELECT_INVERT",mi="SELECT_NONE",Oa=[],la=(re,ce)=>{let Fe=[];return(ce||[]).forEach(Ve=>{Fe.push(Ve),Ve&&typeof Ve=="object"&&re in Ve&&(Fe=[].concat((0,Je.Z)(Fe),(0,Je.Z)(la(re,Ve[re]))))}),Fe};var Fa=(re,ce)=>{const{preserveSelectedRowKeys:Fe,selectedRowKeys:Ve,defaultSelectedRowKeys:tt,getCheckboxProps:it,onChange:_t,onSelect:Et,onSelectAll:yt,onSelectInvert:It,onSelectNone:Se,onSelectMultiple:Lt,columnWidth:un,type:rn,selections:nn,fixed:ut,renderCell:Ln,hideSelectAll:zn,checkStrictly:Nn=!0}=ce||{},{prefixCls:Kn,data:yr,pageData:br,getRecordByKey:dr,getRowKey:Lr,expandType:Fr,childrenColumnName:Wn,locale:fr,getPopupContainer:Vn}=re,[Mn,ur]=(0,ia.Z)(Ve||tt||Oa,{value:Ve}),Ir=S.useRef(new Map),Gr=(0,S.useCallback)(Zt=>{if(Fe){const Qt=new Map;Zt.forEach(cn=>{let wn=dr(cn);!wn&&Ir.current.has(cn)&&(wn=Ir.current.get(cn)),Qt.set(cn,wn)}),Ir.current=Qt}},[dr,Fe]);S.useEffect(()=>{Gr(Mn)},[Mn]);const{keyEntities:q}=(0,S.useMemo)(()=>{if(Nn)return{keyEntities:null};let Zt=yr;if(Fe){const Qt=new Set(yr.map((wn,rr)=>Lr(wn,rr))),cn=Array.from(Ir.current).reduce((wn,rr)=>{let[Cn,nr]=rr;return Qt.has(Cn)?wn:wn.concat(nr)},[]);Zt=[].concat((0,Je.Z)(Zt),(0,Je.Z)(cn))}return(0,Br.I8)(Zt,{externalGetKey:Lr,childrenPropName:Wn})},[yr,Lr,Nn,Wn,Fe]),l=(0,S.useMemo)(()=>la(Wn,br),[Wn,br]),d=(0,S.useMemo)(()=>{const Zt=new Map;return l.forEach((Qt,cn)=>{const wn=Lr(Qt,cn),rr=(it?it(Qt):null)||{};Zt.set(wn,rr)}),Zt},[l,Lr,it]),f=(0,S.useCallback)(Zt=>{var Qt;return!!(!((Qt=d.get(Lr(Zt)))===null||Qt===void 0)&&Qt.disabled)},[d,Lr]),[g,k]=(0,S.useMemo)(()=>{if(Nn)return[Mn||[],[]];const{checkedKeys:Zt,halfCheckedKeys:Qt}=(0,ni.S)(Mn,!0,q,f);return[Zt||[],Qt]},[Mn,Nn,q,f]),ae=(0,S.useMemo)(()=>{const Zt=rn==="radio"?g.slice(0,1):g;return new Set(Zt)},[g,rn]),Re=(0,S.useMemo)(()=>rn==="radio"?new Set:new Set(k),[k,rn]),[Le,Qe]=(0,S.useState)(null);S.useEffect(()=>{ce||ur(Oa)},[!!ce]);const dt=(0,S.useCallback)((Zt,Qt)=>{let cn,wn;Gr(Zt),Fe?(cn=Zt,wn=Zt.map(rr=>Ir.current.get(rr))):(cn=[],wn=[],Zt.forEach(rr=>{const Cn=dr(rr);Cn!==void 0&&(cn.push(rr),wn.push(Cn))})),ur(cn),_t==null||_t(cn,wn,{type:Qt})},[ur,dr,_t,Fe]),wt=(0,S.useCallback)((Zt,Qt,cn,wn)=>{if(Et){const rr=cn.map(Cn=>dr(Cn));Et(dr(Zt),Qt,rr,wn)}dt(cn,"single")},[Et,dr,dt]),Ut=(0,S.useMemo)(()=>!nn||zn?null:(nn===!0?[Pi,oa,mi]:nn).map(Qt=>Qt===Pi?{key:"all",text:fr.selectionAll,onSelect(){dt(yr.map((cn,wn)=>Lr(cn,wn)).filter(cn=>{const wn=d.get(cn);return!(wn!=null&&wn.disabled)||ae.has(cn)}),"all")}}:Qt===oa?{key:"invert",text:fr.selectInvert,onSelect(){const cn=new Set(ae);br.forEach((rr,Cn)=>{const nr=Lr(rr,Cn),Sr=d.get(nr);Sr!=null&&Sr.disabled||(cn.has(nr)?cn.delete(nr):cn.add(nr))});const wn=Array.from(cn);It&&It(wn),dt(wn,"invert")}}:Qt===mi?{key:"none",text:fr.selectNone,onSelect(){Se==null||Se(),dt(Array.from(ae).filter(cn=>{const wn=d.get(cn);return wn==null?void 0:wn.disabled}),"none")}}:Qt).map(Qt=>Object.assign(Object.assign({},Qt),{onSelect:function(){for(var cn,wn,rr=arguments.length,Cn=new Array(rr),nr=0;nr<rr;nr++)Cn[nr]=arguments[nr];(wn=Qt.onSelect)===null||wn===void 0||(cn=wn).call.apply(cn,[Qt].concat(Cn)),Qe(null)}})),[nn,ae,br,Lr,It,dt]);return[(0,S.useCallback)(Zt=>{var Qt;if(!ce)return Zt.filter(Kr=>Kr!==Ui);let cn=(0,Je.Z)(Zt);const wn=new Set(ae),rr=l.map(Lr).filter(Kr=>!d.get(Kr).disabled),Cn=rr.every(Kr=>wn.has(Kr)),nr=rr.some(Kr=>wn.has(Kr)),Sr=()=>{const Kr=[];Cn?rr.forEach(Jr=>{wn.delete(Jr),Kr.push(Jr)}):rr.forEach(Jr=>{wn.has(Jr)||(wn.add(Jr),Kr.push(Jr))});const ei=Array.from(wn);yt==null||yt(!Cn,ei.map(Jr=>dr(Jr)),Kr.map(Jr=>dr(Jr))),dt(ei,"all"),Qe(null)};let wr;if(rn!=="radio"){let Kr;if(Ut){const Zr={getPopupContainer:Vn,items:Ut.map((ra,ta)=>{const{key:Ea,text:$a,onSelect:Sa}=ra;return{key:Ea!=null?Ea:ta,onClick:()=>{Sa==null||Sa(rr)},label:$a}})};Kr=S.createElement("div",{className:`${Kn}-selection-extra`},S.createElement(na.Z,{menu:Zr,getPopupContainer:Vn},S.createElement("span",null,S.createElement(ba.Z,null))))}const ei=l.map((Zr,ra)=>{const ta=Lr(Zr,ra),Ea=d.get(ta)||{};return Object.assign({checked:wn.has(ta)},Ea)}).filter(Zr=>{let{disabled:ra}=Zr;return ra}),Jr=!!ei.length&&ei.length===l.length,Ai=Jr&&ei.every(Zr=>{let{checked:ra}=Zr;return ra}),ea=Jr&&ei.some(Zr=>{let{checked:ra}=Zr;return ra});wr=!zn&&S.createElement("div",{className:`${Kn}-selection`},S.createElement(Mi.default,{checked:Jr?Ai:!!l.length&&Cn,indeterminate:Jr?!Ai&&ea:!Cn&&nr,onChange:Sr,disabled:l.length===0||Jr,"aria-label":Kr?"Custom selection":"Select all",skipGroup:!0}),Kr)}let ii;rn==="radio"?ii=(Kr,ei,Jr)=>{const Ai=Lr(ei,Jr),ea=wn.has(Ai);return{node:S.createElement(jn.ZP,Object.assign({},d.get(Ai),{checked:ea,onClick:Zr=>Zr.stopPropagation(),onChange:Zr=>{wn.has(Ai)||wt(Ai,!0,[Ai],Zr.nativeEvent)}})),checked:ea}}:ii=(Kr,ei,Jr)=>{var Ai;const ea=Lr(ei,Jr),Zr=wn.has(ea),ra=Re.has(ea),ta=d.get(ea);let Ea;return Fr==="nest"?Ea=ra:Ea=(Ai=ta==null?void 0:ta.indeterminate)!==null&&Ai!==void 0?Ai:ra,{node:S.createElement(Mi.default,Object.assign({},ta,{indeterminate:Ea,checked:Zr,skipGroup:!0,onClick:$a=>$a.stopPropagation(),onChange:$a=>{let{nativeEvent:Sa}=$a;const{shiftKey:xs}=Sa;let qa=-1,Ma=-1;if(xs&&Nn){const ha=new Set([Le,ea]);rr.some((pa,Vi)=>{if(ha.has(pa))if(qa===-1)qa=Vi;else return Ma=Vi,!0;return!1})}if(Ma!==-1&&qa!==Ma&&Nn){const ha=rr.slice(qa,Ma+1),pa=[];Zr?ha.forEach(wi=>{wn.has(wi)&&(pa.push(wi),wn.delete(wi))}):ha.forEach(wi=>{wn.has(wi)||(pa.push(wi),wn.add(wi))});const Vi=Array.from(wn);Lt==null||Lt(!Zr,Vi.map(wi=>dr(wi)),pa.map(wi=>dr(wi))),dt(Vi,"multiple")}else{const ha=g;if(Nn){const pa=Zr?(0,xa._5)(ha,ea):(0,xa.L0)(ha,ea);wt(ea,!Zr,pa,Sa)}else{const pa=(0,ni.S)([].concat((0,Je.Z)(ha),[ea]),!0,q,f),{checkedKeys:Vi,halfCheckedKeys:wi}=pa;let rs=Vi;if(Zr){const Is=new Set(Vi);Is.delete(ea),rs=(0,ni.S)(Array.from(Is),{checked:!1,halfCheckedKeys:wi},q,f).checkedKeys}wt(ea,!Zr,rs,Sa)}}Qe(Zr?null:ea)}})),checked:Zr}};const ai=(Kr,ei,Jr)=>{const{node:Ai,checked:ea}=ii(Kr,ei,Jr);return Ln?Ln(ea,ei,Jr,Ai):Ai};if(!cn.includes(Ui))if(cn.findIndex(Kr=>{var ei;return((ei=Kr[ue])===null||ei===void 0?void 0:ei.columnType)==="EXPAND_COLUMN"})===0){const[Kr,...ei]=cn;cn=[Kr,Ui].concat((0,Je.Z)(ei))}else cn=[Ui].concat((0,Je.Z)(cn));const Zi=cn.indexOf(Ui);cn=cn.filter((Kr,ei)=>Kr!==Ui||ei===Zi);const ci=cn[Zi-1],si=cn[Zi+1];let xi=ut;xi===void 0&&((si==null?void 0:si.fixed)!==void 0?xi=si.fixed:(ci==null?void 0:ci.fixed)!==void 0&&(xi=ci.fixed)),xi&&ci&&((Qt=ci[ue])===null||Qt===void 0?void 0:Qt.columnType)==="EXPAND_COLUMN"&&ci.fixed===void 0&&(ci.fixed=xi);const Ji=Z()(`${Kn}-selection-col`,{[`${Kn}-selection-col-with-dropdown`]:nn&&rn==="checkbox"}),_a={fixed:xi,width:un,className:`${Kn}-selection-column`,title:ce.columnTitle||wr,render:ai,onCell:ce.onCell,[ue]:{className:Ji}};return cn.map(Kr=>Kr===Ui?_a:Kr)},[Lr,l,ce,g,ae,Re,un,Ut,Fr,Le,d,Lt,wt,f]),ae]},Ci=h(89489),vs=h(59477),Ta=h(6848);const Ga="ascend",Ts="descend";function Xa(re){return typeof re.sorter=="object"&&typeof re.sorter.multiple=="number"?re.sorter.multiple:!1}function cs(re){return typeof re=="function"?re:re&&typeof re=="object"&&re.compare?re.compare:!1}function ys(re,ce){return ce?re[re.indexOf(ce)+1]:re[0]}function ds(re,ce,Fe){let Ve=[];function tt(it,_t){Ve.push({column:it,key:Ri(it,_t),multiplePriority:Xa(it),sortOrder:it.sortOrder})}return(re||[]).forEach((it,_t)=>{const Et=Ii(_t,Fe);it.children?("sortOrder"in it&&tt(it,Et),Ve=[].concat((0,Je.Z)(Ve),(0,Je.Z)(ds(it.children,ce,Et)))):it.sorter&&("sortOrder"in it?tt(it,Et):ce&&it.defaultSortOrder&&Ve.push({column:it,key:Ri(it,Et),multiplePriority:Xa(it),sortOrder:it.defaultSortOrder}))}),Ve}function Ds(re,ce,Fe,Ve,tt,it,_t,Et){return(ce||[]).map((yt,It)=>{const Se=Ii(It,Et);let Lt=yt;if(Lt.sorter){const un=Lt.sortDirections||tt,rn=Lt.showSorterTooltip===void 0?_t:Lt.showSorterTooltip,nn=Ri(Lt,Se),ut=Fe.find(Fr=>{let{key:Wn}=Fr;return Wn===nn}),Ln=ut?ut.sortOrder:null,zn=ys(un,Ln);let Nn;if(yt.sortIcon)Nn=yt.sortIcon({sortOrder:Ln});else{const Fr=un.includes(Ga)&&S.createElement(vs.Z,{className:Z()(`${re}-column-sorter-up`,{active:Ln===Ga})}),Wn=un.includes(Ts)&&S.createElement(Ci.Z,{className:Z()(`${re}-column-sorter-down`,{active:Ln===Ts})});Nn=S.createElement("span",{className:Z()(`${re}-column-sorter`,{[`${re}-column-sorter-full`]:!!(Fr&&Wn)})},S.createElement("span",{className:`${re}-column-sorter-inner`,"aria-hidden":"true"},Fr,Wn))}const{cancelSort:Kn,triggerAsc:yr,triggerDesc:br}=it||{};let dr=Kn;zn===Ts?dr=br:zn===Ga&&(dr=yr);const Lr=typeof rn=="object"?rn:{title:dr};Lt=Object.assign(Object.assign({},Lt),{className:Z()(Lt.className,{[`${re}-column-sort`]:Ln}),title:Fr=>{const Wn=S.createElement("div",{className:`${re}-column-sorters`},S.createElement("span",{className:`${re}-column-title`},ji(yt.title,Fr)),Nn);return rn?S.createElement(Ta.Z,Object.assign({},Lr),Wn):Wn},onHeaderCell:Fr=>{const Wn=yt.onHeaderCell&&yt.onHeaderCell(Fr)||{},fr=Wn.onClick,Vn=Wn.onKeyDown;Wn.onClick=Ir=>{Ve({column:yt,key:nn,sortOrder:zn,multiplePriority:Xa(yt)}),fr==null||fr(Ir)},Wn.onKeyDown=Ir=>{Ir.keyCode===Bi.Z.ENTER&&(Ve({column:yt,key:nn,sortOrder:zn,multiplePriority:Xa(yt)}),Vn==null||Vn(Ir))};const Mn=Di(yt.title,{}),ur=Mn==null?void 0:Mn.toString();return Ln?Wn["aria-sort"]=Ln==="ascend"?"ascending":"descending":Wn["aria-label"]=ur||"",Wn.className=Z()(Wn.className,`${re}-column-has-sorters`),Wn.tabIndex=0,yt.ellipsis&&(Wn.title=(Mn!=null?Mn:"").toString()),Wn}})}return"children"in Lt&&(Lt=Object.assign(Object.assign({},Lt),{children:Ds(re,Lt.children,Fe,Ve,tt,it,_t,Se)})),Lt})}function Pa(re){const{column:ce,sortOrder:Fe}=re;return{column:ce,order:Fe,field:ce.dataIndex,columnKey:ce.key}}function bs(re){const ce=re.filter(Fe=>{let{sortOrder:Ve}=Fe;return Ve}).map(Pa);return ce.length===0&&re.length?Object.assign(Object.assign({},Pa(re[re.length-1])),{column:void 0}):ce.length<=1?ce[0]||{}:ce}function Ti(re,ce,Fe){const Ve=ce.slice().sort((_t,Et)=>Et.multiplePriority-_t.multiplePriority),tt=re.slice(),it=Ve.filter(_t=>{let{column:{sorter:Et},sortOrder:yt}=_t;return cs(Et)&&yt});return it.length?tt.sort((_t,Et)=>{for(let yt=0;yt<it.length;yt+=1){const It=it[yt],{column:{sorter:Se},sortOrder:Lt}=It,un=cs(Se);if(un&&Lt){const rn=un(_t,Et,Lt);if(rn!==0)return Lt===Ga?rn:-rn}}return 0}).map(_t=>{const Et=_t[Fe];return Et?Object.assign(Object.assign({},_t),{[Fe]:Ti(Et,ce,Fe)}):_t}):tt}function Si(re){let{prefixCls:ce,mergedColumns:Fe,onSorterChange:Ve,sortDirections:tt,tableLocale:it,showSorterTooltip:_t}=re;const[Et,yt]=S.useState(ds(Fe,!0)),It=S.useMemo(()=>{let nn=!0;const ut=ds(Fe,!1);if(!ut.length)return Et;const Ln=[];function zn(Kn){nn?Ln.push(Kn):Ln.push(Object.assign(Object.assign({},Kn),{sortOrder:null}))}let Nn=null;return ut.forEach(Kn=>{Nn===null?(zn(Kn),Kn.sortOrder&&(Kn.multiplePriority===!1?nn=!1:Nn=!0)):(Nn&&Kn.multiplePriority!==!1||(nn=!1),zn(Kn))}),Ln},[Fe,Et]),Se=S.useMemo(()=>{const nn=It.map(ut=>{let{column:Ln,sortOrder:zn}=ut;return{column:Ln,order:zn}});return{sortColumns:nn,sortColumn:nn[0]&&nn[0].column,sortOrder:nn[0]&&nn[0].order}},[It]);function Lt(nn){let ut;nn.multiplePriority===!1||!It.length||It[0].multiplePriority===!1?ut=[nn]:ut=[].concat((0,Je.Z)(It.filter(Ln=>{let{key:zn}=Ln;return zn!==nn.key})),[nn]),yt(ut),Ve(bs(ut),ut)}return[nn=>Ds(ce,nn,It,Lt,tt,it,_t),It,Se,()=>bs(It)]}function gi(re,ce){return re.map(Fe=>{const Ve=Object.assign({},Fe);return Ve.title=ji(Fe.title,ce),"children"in Ve&&(Ve.children=gi(Ve.children,ce)),Ve})}function Qi(re){return[S.useCallback(Fe=>gi(Fe,re),[re])]}var qi=hr((re,ce)=>{const{_renderTimes:Fe}=re,{_renderTimes:Ve}=ce;return Fe!==Ve}),fs=Mr((re,ce)=>{const{_renderTimes:Fe}=re,{_renderTimes:Ve}=ce;return Fe!==Ve}),Qa=h(64993),hs=h(17313),Ls=h(83116),ps=h(37613),Sn=re=>{const{componentCls:ce}=re,Fe=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`,Ve=(tt,it,_t)=>({[`&${ce}-${tt}`]:{[`> ${ce}-container`]:{[`> ${ce}-content, > ${ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ce}-expanded-row-fixed`]:{margin:`-${it}px -${_t+re.lineWidth}px`}}}}}});return{[`${ce}-wrapper`]:{[`${ce}${ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ce}-title`]:{border:Fe,borderBottom:0},[`> ${ce}-container`]:{borderInlineStart:Fe,borderTop:Fe,[`
> ${ce}-content,
> ${ce}-header,
> ${ce}-body,
> ${ce}-summary
`]:{"> 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:Fe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Fe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ce}-cell-fix-right-first::after`]:{borderInlineEnd:Fe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ce}-expanded-row-fixed`]:{margin:`-${re.tablePaddingVertical}px -${re.tablePaddingHorizontal+re.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:re.lineWidth,bottom:0,borderInlineEnd:Fe,content:'""'}}}}}},[`&${ce}-scroll-horizontal`]:{[`> ${ce}-container > ${ce}-body`]:{"> table > tbody":{[`
> tr${ce}-expanded-row,
> tr${ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ve("middle",re.tablePaddingVerticalMiddle,re.tablePaddingHorizontalMiddle)),Ve("small",re.tablePaddingVerticalSmall,re.tablePaddingHorizontalSmall)),{[`> ${ce}-footer`]:{border:Fe,borderTop:0}}),[`${ce}-cell`]:{[`${ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${re.lineWidth}px 0 ${re.lineWidth}px ${re.tableHeaderBg}`}},[`${ce}-bordered ${ce}-cell-scrollbar`]:{borderInlineEnd:Fe}}}},$s=re=>{const{componentCls:ce}=re;return{[`${ce}-wrapper`]:{[`${ce}-cell-ellipsis`]:Object.assign(Object.assign({},hs.vS),{wordBreak:"keep-all",[`
&${ce}-cell-fix-left-last,
&${ce}-cell-fix-right-first
`]:{overflow:"visible",[`${ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Xs=re=>{const{componentCls:ce}=re;return{[`${ce}-wrapper`]:{[`${ce}-tbody > tr${ce}-placeholder`]:{textAlign:"center",color:re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:re.colorBgContainer}}}}},zs=h(15969),Wa=re=>{const{componentCls:ce,antCls:Fe,controlInteractiveSize:Ve,motionDurationSlow:tt,lineWidth:it,paddingXS:_t,lineType:Et,tableBorderColor:yt,tableExpandIconBg:It,tableExpandColumnWidth:Se,borderRadius:Lt,fontSize:un,fontSizeSM:rn,lineHeight:nn,tablePaddingVertical:ut,tablePaddingHorizontal:Ln,tableExpandedRowBg:zn,paddingXXS:Nn}=re,Kn=Ve/2-it,yr=Kn*2+it*3,br=`${it}px ${Et} ${yt}`,dr=Nn-it;return{[`${ce}-wrapper`]:{[`${ce}-expand-icon-col`]:{width:Se},[`${ce}-row-expand-icon-cell`]:{textAlign:"center",[`${ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ce}-row-indent`]:{height:1,float:"left"},[`${ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,zs.N)(re)),{position:"relative",float:"left",boxSizing:"border-box",width:yr,height:yr,padding:0,color:"inherit",lineHeight:`${yr}px`,background:It,border:br,borderRadius:Lt,transform:`scale(${Ve/yr})`,transition:`all ${tt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${tt} ease-out`,content:'""'},"&::before":{top:Kn,insetInlineEnd:dr,insetInlineStart:dr,height:it},"&::after":{top:dr,bottom:dr,insetInlineStart:Kn,width:it,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"}}),[`${ce}-row-indent + ${ce}-row-expand-icon`]:{marginTop:(un*nn-it*3)/2-Math.ceil((rn*1.4-it*3)/2),marginInlineEnd:_t},[`tr${ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:zn}},[`${Fe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ce}-expanded-row-fixed`]:{position:"relative",margin:`-${ut}px -${Ln}px`,padding:`${ut}px ${Ln}px`}}}},Js=re=>{const{componentCls:ce,antCls:Fe,iconCls:Ve,tableFilterDropdownWidth:tt,tableFilterDropdownSearchWidth:it,paddingXXS:_t,paddingXS:Et,colorText:yt,lineWidth:It,lineType:Se,tableBorderColor:Lt,tableHeaderIconColor:un,fontSizeSM:rn,tablePaddingHorizontal:nn,borderRadius:ut,motionDurationSlow:Ln,colorTextDescription:zn,colorPrimary:Nn,tableHeaderFilterActiveBg:Kn,colorTextDisabled:yr,tableFilterDropdownBg:br,tableFilterDropdownHeight:dr,controlItemBgHover:Lr,controlItemBgActive:Fr,boxShadowSecondary:Wn,filterDropdownMenuBg:fr}=re,Vn=`${Fe}-dropdown`,Mn=`${ce}-filter-dropdown`,ur=`${Fe}-tree`,Ir=`${It}px ${Se} ${Lt}`;return[{[`${ce}-wrapper`]:{[`${ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-_t,marginInline:`${_t}px ${-nn/2}px`,padding:`0 ${_t}px`,color:un,fontSize:rn,borderRadius:ut,cursor:"pointer",transition:`all ${Ln}`,"&:hover":{color:zn,background:Kn},"&.active":{color:Nn}}}},{[`${Fe}-dropdown`]:{[Mn]:Object.assign(Object.assign({},(0,hs.Wf)(re)),{minWidth:tt,backgroundColor:br,borderRadius:ut,boxShadow:Wn,overflow:"hidden",[`${Vn}-menu`]:{maxHeight:dr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:fr,"&:empty::after":{display:"block",padding:`${Et}px 0`,color:yr,fontSize:rn,textAlign:"center",content:'"Not Found"'}},[`${Mn}-tree`]:{paddingBlock:`${Et}px 0`,paddingInline:Et,[ur]:{padding:0},[`${ur}-treenode ${ur}-node-content-wrapper:hover`]:{backgroundColor:Lr},[`${ur}-treenode-checkbox-checked ${ur}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Fr}}},[`${Mn}-search`]:{padding:Et,borderBottom:Ir,"&-input":{input:{minWidth:it},[Ve]:{color:yr}}},[`${Mn}-checkall`]:{width:"100%",marginBottom:_t,marginInlineStart:_t},[`${Mn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Et-It}px ${Et}px`,overflow:"hidden",borderTop:Ir}})}},{[`${Fe}-dropdown ${Mn}, ${Mn}-submenu`]:{[`${Fe}-checkbox-wrapper + span`]:{paddingInlineStart:Et,color:yt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ps=re=>{const{componentCls:ce,lineWidth:Fe,colorSplit:Ve,motionDurationSlow:tt,zIndexTableFixed:it,tableBg:_t,zIndexTableSticky:Et}=re,yt=Ve;return{[`${ce}-wrapper`]:{[`
${ce}-cell-fix-left,
${ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:it,background:_t},[`
${ce}-cell-fix-left-first::after,
${ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Fe,width:30,transform:"translateX(100%)",transition:`box-shadow ${tt}`,content:'""',pointerEvents:"none"},[`${ce}-cell-fix-left-all::after`]:{display:"none"},[`
${ce}-cell-fix-right-first::after,
${ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Fe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${tt}`,content:'""',pointerEvents:"none"},[`${ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Et+1,width:30,transition:`box-shadow ${tt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ce}-ping-left`]:{[`&:not(${ce}-has-fix-left) ${ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${yt}`}},[`
${ce}-cell-fix-left-first::after,
${ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${yt}`},[`${ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ce}-ping-right`]:{[`&:not(${ce}-has-fix-right) ${ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${yt}`}},[`
${ce}-cell-fix-right-first::after,
${ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${yt}`}}}}},ks=re=>{const{componentCls:ce,antCls:Fe}=re;return{[`${ce}-wrapper`]:{[`${ce}-pagination${Fe}-pagination`]:{margin:`${re.margin}px 0`},[`${ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ja=re=>{const{componentCls:ce,tableRadius:Fe}=re;return{[`${ce}-wrapper`]:{[ce]:{[`${ce}-title, ${ce}-header`]:{borderRadius:`${Fe}px ${Fe}px 0 0`},[`${ce}-title + ${ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ce}-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:Fe,borderStartEndRadius:Fe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Fe},"> *:last-child":{borderStartEndRadius:Fe}}},"&-footer":{borderRadius:`0 0 ${Fe}px ${Fe}px`}}}}},yo=re=>{const{componentCls:ce}=re;return{[`${ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ce}-pagination-left`]:{justifyContent:"flex-end"},[`${ce}-pagination-right`]:{justifyContent:"flex-start"},[`${ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ce}-row-indent`]:{float:"right"}}}}},Ks=re=>{const{componentCls:ce,antCls:Fe,iconCls:Ve,fontSizeIcon:tt,padding:it,paddingXS:_t,tableHeaderIconColor:Et,tableHeaderIconColorHover:yt,tableSelectionColumnWidth:It}=re;return{[`${ce}-wrapper`]:{[`${ce}-selection-col`]:{width:It,[`&${ce}-selection-col-with-dropdown`]:{width:It+tt+it/4}},[`${ce}-bordered ${ce}-selection-col`]:{width:It+_t*2,[`&${ce}-selection-col-with-dropdown`]:{width:It+tt+it/4+_t*2}},[`
table tr th${ce}-selection-column,
table tr td${ce}-selection-column
`]:{paddingInlineEnd:re.paddingXS,paddingInlineStart:re.paddingXS,textAlign:"center",[`${Fe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ce}-selection-column${ce}-cell-fix-left`]:{zIndex:re.zIndexTableFixed+1},[`table tr th${ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${re.tablePaddingHorizontal/4}px`,[Ve]:{color:Et,fontSize:tt,verticalAlign:"baseline","&:hover":{color:yt}}}}}},Hs=re=>{const{componentCls:ce}=re,Fe=(Ve,tt,it,_t)=>({[`${ce}${ce}-${Ve}`]:{fontSize:_t,[`
${ce}-title,
${ce}-footer,
${ce}-cell,
${ce}-thead > tr > th,
${ce}-tbody > tr > th,
${ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${tt}px ${it}px`},[`${ce}-filter-trigger`]:{marginInlineEnd:`-${it/2}px`},[`${ce}-expanded-row-fixed`]:{margin:`-${tt}px -${it}px`},[`${ce}-tbody`]:{[`${ce}-wrapper:only-child ${ce}`]:{marginBlock:`-${tt}px`,marginInline:`${re.tableExpandColumnWidth-it}px -${it}px`}},[`${ce}-selection-column`]:{paddingInlineStart:`${it/4}px`}}});return{[`${ce}-wrapper`]:Object.assign(Object.assign({},Fe("middle",re.tablePaddingVerticalMiddle,re.tablePaddingHorizontalMiddle,re.tableFontSizeMiddle)),Fe("small",re.tablePaddingVerticalSmall,re.tablePaddingHorizontalSmall,re.tableFontSizeSmall))}},xo=re=>{const{componentCls:ce,marginXXS:Fe,fontSizeIcon:Ve,tableHeaderIconColor:tt,tableHeaderIconColorHover:it}=re;return{[`${ce}-wrapper`]:{[`${ce}-thead th${ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${re.motionDurationSlow}`,"&:hover":{background:re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:re.colorPrimary},[`
&${ce}-cell-fix-left:hover,
&${ce}-cell-fix-right:hover
`]:{background:re.tableFixedHeaderSortActiveBg}},[`${ce}-thead th${ce}-column-sort`]:{background:re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ce}-column-sort`]:{background:re.tableBodySortBg},[`${ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ce}-column-sorter`]:{marginInlineStart:Fe,color:tt,fontSize:0,transition:`color ${re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ve,"&.active":{color:re.colorPrimary}},[`${ce}-column-sorter-up + ${ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ce}-column-sorters:hover ${ce}-column-sorter`]:{color:it}}}},Eo=re=>{const{componentCls:ce,opacityLoading:Fe,tableScrollThumbBg:Ve,tableScrollThumbBgHover:tt,tableScrollThumbSize:it,tableScrollBg:_t,zIndexTableSticky:Et,stickyScrollBarBorderRadius:yt}=re,It=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`;return{[`${ce}-wrapper`]:{[`${ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:Et,background:re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${it}px !important`,zIndex:Et,display:"flex",alignItems:"center",background:_t,borderTop:It,opacity:Fe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:it,backgroundColor:Ve,borderRadius:yt,transition:`all ${re.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:tt}}}}}}},Rs=re=>{const{componentCls:ce,lineWidth:Fe,tableBorderColor:Ve}=re,tt=`${Fe}px ${re.lineType} ${Ve}`;return{[`${ce}-wrapper`]:{[`${ce}-summary`]:{position:"relative",zIndex:re.zIndexTableFixed,background:re.tableBg,"> tr":{"> th, > td":{borderBottom:tt}}},[`div${ce}-summary`]:{boxShadow:`0 -${Fe}px 0 ${Ve}`}}}},Bs=re=>{const{componentCls:ce}=re,Fe=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`,Ve=`${ce}-expanded-row-cell`;return{[`${ce}-wrapper`]:{[`${ce}-tbody-virtual`]:{[`${ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ce}-cell`]:{borderBottom:Fe},[`${ce}-expanded-row`]:{[`${Ve}${Ve}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${re.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ce}-bordered`]:{[`${ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Fe,position:"absolute"},[`${ce}-cell`]:{borderInlineEnd:Fe,[`&${ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-re.lineWidth,borderInlineStart:Fe}}}}}}};const js=re=>{const{componentCls:ce,fontWeightStrong:Fe,tablePaddingVertical:Ve,tablePaddingHorizontal:tt,lineWidth:it,lineType:_t,tableBorderColor:Et,tableFontSize:yt,tableBg:It,tableRadius:Se,tableHeaderTextColor:Lt,motionDurationMid:un,tableHeaderBg:rn,tableHeaderCellSplitColor:nn,tableRowHoverBg:ut,tableSelectedRowBg:Ln,tableSelectedRowHoverBg:zn,tableFooterTextColor:Nn,tableFooterBg:Kn,paddingContentVerticalLG:yr}=re,br=`${it}px ${_t} ${Et}`;return{[`${ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,hs.dF)()),{[ce]:Object.assign(Object.assign({},(0,hs.Wf)(re)),{fontSize:yt,background:It,borderRadius:`${Se}px ${Se}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Se}px ${Se}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ce}-cell,
${ce}-thead > tr > th,
${ce}-tbody > tr > th,
${ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${yr}px ${tt}px`,overflowWrap:"break-word"},[`${ce}-title`]:{padding:`${Ve}px ${tt}px`},[`${ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Lt,fontWeight:Fe,textAlign:"start",background:rn,borderBottom:br,transition:`background ${un} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ce}-selection-column):not(${ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:nn,transform:"translateY(-50%)",transition:`background-color ${un}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${un}, border-color ${un}`,borderBottom:br,[`
> ${ce}-wrapper:only-child,
> ${ce}-expanded-row-fixed > ${ce}-wrapper:only-child
`]:{[ce]:{marginBlock:`-${Ve}px`,marginInline:`${re.tableExpandColumnWidth-tt}px -${tt}px`,[`${ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Lt,fontWeight:Fe,textAlign:"start",background:rn,borderBottom:br,transition:`background ${un} ease`},[`
&${ce}-row:hover > th,
&${ce}-row:hover > td,
> th${ce}-cell-row-hover,
> td${ce}-cell-row-hover
`]:{background:ut},[`&${ce}-row-selected`]:{"> th, > td":{background:Ln},"&:hover > th, &:hover > td":{background:zn}}}},[`${ce}-footer`]:{padding:`${Ve}px ${tt}px`,color:Nn,background:Kn}})}};var eo=(0,Ls.Z)("Table",re=>{const{colorTextHeading:ce,colorSplit:Fe,colorIcon:Ve,colorIconHover:tt,opacityLoading:it,colorBgContainer:_t,controlInteractiveSize:Et,headerBg:yt,headerColor:It,headerSortActiveBg:Se,headerSortHoverBg:Lt,bodySortBg:un,rowHoverBg:rn,rowSelectedBg:nn,rowSelectedHoverBg:ut,rowExpandedBg:Ln,cellPaddingBlock:zn,cellPaddingInline:Nn,cellPaddingBlockMD:Kn,cellPaddingInlineMD:yr,cellPaddingBlockSM:br,cellPaddingInlineSM:dr,borderColor:Lr,footerBg:Fr,footerColor:Wn,headerBorderRadius:fr,cellFontSize:Vn,cellFontSizeMD:Mn,cellFontSizeSM:ur,headerSplitColor:Ir,fixedHeaderSortActiveBg:Gr,headerFilterHoverBg:q,filterDropdownBg:l,expandIconBg:d,selectionColumnWidth:f,stickyScrollBarBg:g}=re,k=new Qa.C(Ve),ae=new Qa.C(tt),Re=2,Le=(0,ps.TS)(re,{tableFontSize:Vn,tableBg:_t,tableRadius:fr,tablePaddingVertical:zn,tablePaddingHorizontal:Nn,tablePaddingVerticalMiddle:Kn,tablePaddingHorizontalMiddle:yr,tablePaddingVerticalSmall:br,tablePaddingHorizontalSmall:dr,tableBorderColor:Lr,tableHeaderTextColor:It,tableHeaderBg:yt,tableFooterTextColor:Wn,tableFooterBg:Fr,tableHeaderCellSplitColor:Ir,tableHeaderSortBg:Se,tableHeaderSortHoverBg:Lt,tableHeaderIconColor:k.clone().setAlpha(k.getAlpha()*it).toRgbString(),tableHeaderIconColorHover:ae.clone().setAlpha(ae.getAlpha()*it).toRgbString(),tableBodySortBg:un,tableFixedHeaderSortActiveBg:Gr,tableHeaderFilterActiveBg:q,tableFilterDropdownBg:l,tableRowHoverBg:rn,tableSelectedRowBg:nn,tableSelectedRowHoverBg:ut,zIndexTableFixed:Re,zIndexTableSticky:Re+1,tableFontSizeMiddle:Mn,tableFontSizeSmall:ur,tableSelectionColumnWidth:f,tableExpandIconBg:d,tableExpandColumnWidth:Et+2*re.padding,tableExpandedRowBg:Ln,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:g,tableScrollThumbBgHover:ce,tableScrollBg:Fe});return[js(Le),ks(Le),Rs(Le),xo(Le),Js(Le),Sn(Le),Ja(Le),Wa(Le),Rs(Le),Xs(Le),Ks(Le),Ps(Le),Eo(Le),$s(Le),Hs(Le),yo(Le),Bs(Le)]},re=>{const{colorFillAlter:ce,colorBgContainer:Fe,colorTextHeading:Ve,colorFillSecondary:tt,colorFillContent:it,controlItemBgActive:_t,controlItemBgActiveHover:Et,padding:yt,paddingSM:It,paddingXS:Se,colorBorderSecondary:Lt,borderRadiusLG:un,fontSize:rn,controlHeight:nn,colorTextPlaceholder:ut}=re,Ln=new Qa.C(tt).onBackground(Fe).toHexShortString(),zn=new Qa.C(it).onBackground(Fe).toHexShortString(),Nn=new Qa.C(ce).onBackground(Fe).toHexShortString();return{headerBg:Nn,headerColor:Ve,headerSortActiveBg:Ln,headerSortHoverBg:zn,bodySortBg:Nn,rowHoverBg:Nn,rowSelectedBg:_t,rowSelectedHoverBg:Et,rowExpandedBg:ce,cellPaddingBlock:yt,cellPaddingInline:yt,cellPaddingBlockMD:It,cellPaddingInlineMD:Se,cellPaddingBlockSM:Se,cellPaddingInlineSM:Se,borderColor:Lt,headerBorderRadius:un,footerBg:Nn,footerColor:Ve,cellFontSize:rn,cellFontSizeMD:rn,cellFontSizeSM:rn,headerSplitColor:Lt,fixedHeaderSortActiveBg:Ln,headerFilterHoverBg:it,filterDropdownMenuBg:Fe,filterDropdownBg:Fe,expandIconBg:Fe,selectionColumnWidth:nn,stickyScrollBarBg:ut,stickyScrollBarBorderRadius:100}});const to=[],no=(re,ce)=>{const{prefixCls:Fe,className:Ve,rootClassName:tt,style:it,size:_t,bordered:Et,dropdownPrefixCls:yt,dataSource:It,pagination:Se,rowSelection:Lt,rowKey:un="key",rowClassName:rn,columns:nn,children:ut,childrenColumnName:Ln,onChange:zn,getPopupContainer:Nn,loading:Kn,expandIcon:yr,expandable:br,expandedRowRender:dr,expandIconColumnIndex:Lr,indentSize:Fr,scroll:Wn,sortDirections:fr,locale:Vn,showSorterTooltip:Mn=!0,virtual:ur}=re,Ir=S.useMemo(()=>nn||Rt(ut),[nn,ut]),Gr=S.useMemo(()=>Ir.some(hi=>hi.responsive),[Ir]),q=(0,jr.Z)(Gr),l=S.useMemo(()=>{const hi=new Set(Object.keys(q).filter(ki=>q[ki]));return Ir.filter(ki=>!ki.responsive||ki.responsive.some(ma=>hi.has(ma)))},[Ir,q]),d=(0,mr.Z)(re,["className","style","columns"]),{locale:f=fi.Z,direction:g,table:k,renderEmpty:ae,getPrefixCls:Re,getPopupContainer:Le}=S.useContext(qr.E_),Qe=(0,Ur.Z)(_t),dt=Object.assign(Object.assign({},f.Table),Vn),wt=It||to,Ut=Re("table",Fe),mn=Re("dropdown",yt),Zt=Object.assign({childrenColumnName:Ln,expandIconColumnIndex:Lr},br),{childrenColumnName:Qt="children"}=Zt,cn=S.useMemo(()=>wt.some(hi=>hi==null?void 0:hi[Qt])?"nest":dr||br&&br.expandedRowRender?"row":null,[wt]),wn={body:S.useRef()},rr=S.useMemo(()=>typeof un=="function"?un:hi=>hi==null?void 0:hi[un],[un]),[Cn]=os(wt,Qt,rr),nr={},Sr=function(hi,ki){let ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Fi,Ra,Na;const za=Object.assign(Object.assign({},nr),hi);ma&&((Fi=nr.resetPagination)===null||Fi===void 0||Fi.call(nr),!((Ra=za.pagination)===null||Ra===void 0)&&Ra.current&&(za.pagination.current=1),Se&&Se.onChange&&Se.onChange(1,(Na=za.pagination)===null||Na===void 0?void 0:Na.pageSize)),Wn&&Wn.scrollToFirstRowOnChange!==!1&&wn.body.current&&(0,kr.Z)(0,{getContainer:()=>wn.body.current}),zn==null||zn(za.pagination,za.filters,za.sorter,{currentDataSource:Ka(Ti(wt,za.sorterStates,Qt),za.filterStates),action:ki})},wr=(hi,ki)=>{Sr({sorter:hi,sorterStates:ki},"sort",!1)},[ii,ai,Zi,ci]=Si({prefixCls:Ut,mergedColumns:l,onSorterChange:wr,sortDirections:fr||["ascend","descend"],tableLocale:dt,showSorterTooltip:Mn}),si=S.useMemo(()=>Ti(wt,ai,Qt),[wt,ai]);nr.sorter=ci(),nr.sorterStates=ai;const xi=(hi,ki)=>{Sr({filters:hi,filterStates:ki},"filter",!0)},[Ji,_a,Kr]=ss({prefixCls:Ut,locale:dt,dropdownPrefixCls:mn,mergedColumns:l,onFilterChange:xi,getPopupContainer:Nn||Le}),ei=Ka(si,_a);nr.filters=Kr,nr.filterStates=_a;const Jr=S.useMemo(()=>{const hi={};return Object.keys(Kr).forEach(ki=>{Kr[ki]!==null&&(hi[ki]=Kr[ki])}),Object.assign(Object.assign({},Zi),{filters:hi})},[Zi,Kr]),[Ai]=Qi(Jr),ea=(hi,ki)=>{Sr({pagination:Object.assign(Object.assign({},nr.pagination),{current:hi,pageSize:ki})},"paginate")},[Zr,ra]=ns(ei.length,ea,Se);nr.pagination=Se===!1?{}:Xi(Zr,Se),nr.resetPagination=ra;const ta=S.useMemo(()=>{if(Se===!1||!Zr.pageSize)return ei;const{current:hi=1,total:ki,pageSize:ma=Aa}=Zr;return ei.length<ki?ei.length>ma?ei.slice((hi-1)*ma,hi*ma):ei:ei.slice((hi-1)*ma,hi*ma)},[!!Se,ei,Zr&&Zr.current,Zr&&Zr.pageSize,Zr&&Zr.total]),[Ea,$a]=Fa({prefixCls:Ut,data:ei,pageData:ta,getRowKey:rr,getRecordByKey:Cn,expandType:cn,childrenColumnName:Qt,locale:dt,getPopupContainer:Nn||Le},Lt),Sa=(hi,ki,ma)=>{let Fi;return typeof rn=="function"?Fi=Z()(rn(hi,ki,ma)):Fi=Z()(rn),Z()({[`${Ut}-row-selected`]:$a.has(rr(hi,ki))},Fi)};Zt.__PARENT_RENDER_ICON__=Zt.expandIcon,Zt.expandIcon=Zt.expandIcon||yr||li(dt),cn==="nest"&&Zt.expandIconColumnIndex===void 0?Zt.expandIconColumnIndex=Lt?1:0:Zt.expandIconColumnIndex>0&&Lt&&(Zt.expandIconColumnIndex-=1),typeof Zt.indentSize!="number"&&(Zt.indentSize=typeof Fr=="number"?Fr:15);const xs=S.useCallback(hi=>Ai(Ea(Ji(ii(hi)))),[ii,Ji,Ea]);let qa,Ma;if(Se!==!1&&(Zr!=null&&Zr.total)){let hi;Zr.size?hi=Zr.size:hi=Qe==="small"||Qe==="middle"?"small":void 0;const ki=Ra=>S.createElement(Li.Z,Object.assign({},Zr,{className:Z()(`${Ut}-pagination ${Ut}-pagination-${Ra}`,Zr.className),size:hi})),ma=g==="rtl"?"left":"right",{position:Fi}=Zr;if(Fi!==null&&Array.isArray(Fi)){const Ra=Fi.find(gs=>gs.includes("top")),Na=Fi.find(gs=>gs.includes("bottom")),za=Fi.every(gs=>`${gs}`=="none");!Ra&&!Na&&!za&&(Ma=ki(ma)),Ra&&(qa=ki(Ra.toLowerCase().replace("top",""))),Na&&(Ma=ki(Na.toLowerCase().replace("bottom","")))}else Ma=ki(ma)}let ha;typeof Kn=="boolean"?ha={spinning:Kn}:typeof Kn=="object"&&(ha=Object.assign({spinning:!0},Kn));const[pa,Vi]=eo(Ut),[,wi]=(0,ti.Z)(),rs=Z()(`${Ut}-wrapper`,k==null?void 0:k.className,{[`${Ut}-wrapper-rtl`]:g==="rtl"},Ve,tt,Vi),Is=Object.assign(Object.assign({},k==null?void 0:k.style),it),es=Vn&&Vn.emptyText||(ae==null?void 0:ae("Table"))||S.createElement(Un.Z,{componentName:"Table"}),Va=ur?fs:qi,io={},ao=S.useMemo(()=>{const{fontSize:hi,lineHeight:ki,padding:ma,paddingXS:Fi,paddingSM:Ra}=wi,Na=Math.floor(hi*ki);switch(Qe){case"large":return ma*2+Na;case"small":return Fi*2+Na;default:return Ra*2+Na}},[wi,Qe]);return ur&&(io.listItemHeight=ao),pa(S.createElement("div",{ref:ce,className:rs,style:Is},S.createElement(Ei.Z,Object.assign({spinning:!1},ha),qa,S.createElement(Va,Object.assign({},io,d,{columns:l,direction:g,expandable:Zt,prefixCls:Ut,className:Z()({[`${Ut}-middle`]:Qe==="middle",[`${Ut}-small`]:Qe==="small",[`${Ut}-bordered`]:Et,[`${Ut}-empty`]:wt.length===0}),data:ta,rowKey:rr,rowClassName:Sa,emptyText:es,internalHooks:N,internalRefs:wn,transformColumns:xs})),Ma)))};var ro=S.forwardRef(no);const wo=(re,ce)=>{const Fe=S.useRef(0);return Fe.current+=1,S.createElement(ro,Object.assign({},re,{ref:ce,_renderTimes:Fe.current}))},ka=S.forwardRef(wo);ka.SELECTION_COLUMN=Ui,ka.EXPAND_COLUMN=z,ka.SELECTION_ALL=Pi,ka.SELECTION_INVERT=oa,ka.SELECTION_NONE=mi,ka.Column=Wr,ka.ColumnGroup=Fn,ka.Summary=R;var Ws=ka,Gs=Ws},33166:function(Wt,Ze,h){"use strict";h.d(Ze,{i:function(){return z}});const z=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return N}});var z=h(33166);function N(X,ye){return z.i.reduce((U,H)=>{const S=X[`${H}1`],me=X[`${H}3`],a=X[`${H}6`],C=X[`${H}7`];return Object.assign(Object.assign({},U),ye(H,{lightColor:S,lightBorderColor:me,darkColor:a,textColor:C}))},{})}},6848:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return xe}});var z=h(59301),N=h(92310),X=h.n(N),ye=h(55477),U=h(18929),H=h(62892),S=h(79676),me=h(92343),a=h(36355),C=h(33234),I=h(88088),m=h(17313),u=h(29878),x=h(19447),y=h(45157),O=h(37613),te=h(83116);const B=de=>{const{componentCls:ee,tooltipMaxWidth:Z,tooltipColor:pe,tooltipBg:P,tooltipBorderRadius:ie,zIndexPopup:Q,controlHeight:v,boxShadowSecondary:E,paddingSM:K,paddingXS:fe,tooltipRadiusOuter:Be}=de;return[{[ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(de)),{position:"absolute",zIndex:Q,display:"block",width:"max-content",maxWidth:Z,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":P,[`${ee}-inner`]:{minWidth:v,minHeight:v,padding:`${K/2}px ${fe}px`,color:pe,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:P,borderRadius:ie,boxShadow:E,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${ee}-inner`]:{borderRadius:Math.min(ie,x.qN)}},[`${ee}-content`]:{position:"relative"}}),(0,y.Z)(de,(Ke,Me)=>{let{darkColor:Ye}=Me;return{[`&${ee}-${Ke}`]:{[`${ee}-inner`]:{backgroundColor:Ye},[`${ee}-arrow`]:{"--antd-arrow-background-color":Ye}}}})),{"&-rtl":{direction:"rtl"}})},(0,x.ZP)((0,O.TS)(de,{borderRadiusOuter:Be}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:ie,limitVerticalRadius:!0}),{[`${ee}-pure`]:{position:"relative",maxWidth:"none",margin:de.sizePopupArrow}}]};var M=(de,ee)=>(0,te.Z)("Tooltip",pe=>{if(ee===!1)return[];const{borderRadius:P,colorTextLightSolid:ie,colorBgDefault:Q,borderRadiusOuter:v}=pe,E=(0,O.TS)(pe,{tooltipMaxWidth:250,tooltipColor:ie,tooltipBorderRadius:P,tooltipBg:Q,tooltipRadiusOuter:v>4?4:v});return[B(E),(0,u._y)(pe,"zoom-big-fast")]},pe=>{let{zIndexPopupBase:P,colorBgSpotlight:ie}=pe;return{zIndexPopup:P+70,colorBgDefault:ie}},{resetStyle:!1})(de),W=h(36785);function V(de,ee){const Z=(0,W.o2)(ee),pe=X()({[`${de}-${ee}`]:ee&&Z}),P={},ie={};return ee&&!Z&&(P.background=ee,ie["--antd-arrow-background-color"]=ee),{className:pe,overlayStyle:P,arrowStyle:ie}}var T=de=>{const{prefixCls:ee,className:Z,placement:pe="top",title:P,color:ie,overlayInnerStyle:Q}=de,{getPrefixCls:v}=z.useContext(a.E_),E=v("tooltip",ee),[K,fe]=M(E,!0),Be=V(E,ie),Ke=Be.arrowStyle,Me=Object.assign(Object.assign({},Q),Be.overlayStyle),Ye=X()(fe,E,`${E}-pure`,`${E}-placement-${pe}`,Z,Be.className);return K(z.createElement("div",{className:Ye,style:Ke},z.createElement("div",{className:`${E}-arrow`}),z.createElement(ye.G,Object.assign({},de,{className:fe,prefixCls:E,overlayInnerStyle:Me}),P)))},G=function(de,ee){var Z={};for(var pe in de)Object.prototype.hasOwnProperty.call(de,pe)&&ee.indexOf(pe)<0&&(Z[pe]=de[pe]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,pe=Object.getOwnPropertySymbols(de);P<pe.length;P++)ee.indexOf(pe[P])<0&&Object.prototype.propertyIsEnumerable.call(de,pe[P])&&(Z[pe[P]]=de[pe[P]]);return Z};const j=(de,ee)=>{const Z={},pe=Object.assign({},de);return ee.forEach(P=>{de&&P in de&&(Z[P]=de[P],delete pe[P])}),{picked:Z,omitted:pe}};function be(de,ee){const Z=de.type;if((Z.__ANT_BUTTON===!0||de.type==="button")&&de.props.disabled||Z.__ANT_SWITCH===!0&&(de.props.disabled||de.props.loading)||Z.__ANT_RADIO===!0&&de.props.disabled){const{picked:pe,omitted:P}=j(de.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ie=Object.assign(Object.assign({display:"inline-block"},pe),{cursor:"not-allowed",width:de.props.block?"100%":void 0}),Q=Object.assign(Object.assign({},P),{pointerEvents:"none"}),v=(0,me.Tm)(de,{style:Q,className:null});return z.createElement("span",{style:ie,className:X()(de.props.className,`${ee}-disabled-compatible-wrapper`)},v)}return de}const _e=z.forwardRef((de,ee)=>{var Z,pe;const{prefixCls:P,openClassName:ie,getTooltipContainer:Q,overlayClassName:v,color:E,overlayInnerStyle:K,children:fe,afterOpenChange:Be,afterVisibleChange:Ke,destroyTooltipOnHide:Me,arrow:Ye=!0,title:ht,overlay:pt,builtinPlacements:at,arrowPointAtCenter:Bt=!1,autoAdjustOverflow:Vt=!0}=de,qt=!!Ye,[,$t]=(0,I.Z)(),{getPopupContainer:Gt,getPrefixCls:lt,direction:se}=z.useContext(a.E_),ve=z.useRef(null),ne=()=>{var rt;(rt=ve.current)===null||rt===void 0||rt.forceAlign()};z.useImperativeHandle(ee,()=>({forceAlign:ne,forcePopupAlign:()=>{ne()}}));const[Y,Ae]=(0,U.Z)(!1,{value:(Z=de.open)!==null&&Z!==void 0?Z:de.visible,defaultValue:(pe=de.defaultOpen)!==null&&pe!==void 0?pe:de.defaultVisible}),$=!ht&&!pt&&ht!==0,R=rt=>{var Je,Ee;Ae($?!1:rt),$||((Je=de.onOpenChange)===null||Je===void 0||Je.call(de,rt),(Ee=de.onVisibleChange)===null||Ee===void 0||Ee.call(de,rt))},L=z.useMemo(()=>{var rt,Je;let Ee=Bt;return typeof Ye=="object"&&(Ee=(Je=(rt=Ye.pointAtCenter)!==null&&rt!==void 0?rt:Ye.arrowPointAtCenter)!==null&&Je!==void 0?Je:Bt),at||(0,S.Z)({arrowPointAtCenter:Ee,autoAdjustOverflow:Vt,arrowWidth:qt?$t.sizePopupArrow:0,borderRadius:$t.borderRadius,offset:$t.marginXXS,visibleFirst:!0})},[Bt,Ye,at,$t]),oe=z.useMemo(()=>ht===0?ht:pt||ht||"",[pt,ht]),le=z.createElement(C.BR,null,typeof oe=="function"?oe():oe),{getPopupContainer:J,placement:De="top",mouseEnterDelay:je=.1,mouseLeaveDelay:ke=.1,overlayStyle:Pe,rootClassName:Xe}=de,st=G(de,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ge=lt("tooltip",P),gt=lt(),bt=de["data-popover-inject"];let mt=Y;!("open"in de)&&!("visible"in de)&&$&&(mt=!1);const zt=be((0,me.l$)(fe)&&!(0,me.M2)(fe)?fe:z.createElement("span",null,fe),Ge),Ct=zt.props,w=!Ct.className||typeof Ct.className=="string"?X()(Ct.className,ie||`${Ge}-open`):Ct.className,[A,vt]=M(Ge,!bt),ue=V(Ge,E),Ne=ue.arrowStyle,bn=Object.assign(Object.assign({},K),ue.overlayStyle),We=X()(v,{[`${Ge}-rtl`]:se==="rtl"},ue.className,Xe,vt);return A(z.createElement(ye.Z,Object.assign({},st,{showArrow:qt,placement:De,mouseEnterDelay:je,mouseLeaveDelay:ke,prefixCls:Ge,overlayClassName:We,overlayStyle:Object.assign(Object.assign({},Ne),Pe),getTooltipContainer:J||Q||Gt,ref:ve,builtinPlacements:L,overlay:le,visible:mt,onVisibleChange:R,afterVisibleChange:Be!=null?Be:Ke,overlayInnerStyle:bn,arrowContent:z.createElement("span",{className:`${Ge}-arrow-content`}),motion:{motionName:(0,H.m)(gt,"zoom-big-fast",de.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Me}),mt?(0,me.Tm)(zt,{className:w}):zt))});_e._InternalPanelDoNotUseOrYouWillBeFired=T;var xe=_e},17574:function(Wt,Ze,h){"use strict";h.d(Ze,{default:function(){return E}});var z=h(23130),N=h(26407),X=h(52671),ye=h(8657),U=h(92413),H=h(59301),S={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"},me=S,a=h(7657),C=function(fe,Be){return H.createElement(a.Z,(0,U.Z)({},fe,{ref:Be,icon:me}))},I=H.forwardRef(C),m=I,u=h(92310),x=h.n(u),y=h(35654),O=h(71430),te=h(36355),B=h(56082),M=h(62892),W=h(20648);const V=4;function b(K){const{dropPosition:fe,dropLevelOffset:Be,prefixCls:Ke,indent:Me,direction:Ye="ltr"}=K,ht=Ye==="ltr"?"left":"right",pt=Ye==="ltr"?"right":"left",at={[ht]:-Be*Me+V,[pt]:0};switch(fe){case-1:at.top=-3;break;case 1:at.bottom=-3;break;default:at.bottom=-3,at[ht]=Me+V;break}return H.createElement("div",{style:at,className:`${Ke}-drop-indicator`})}var T=h(71997),j=H.forwardRef((K,fe)=>{const{getPrefixCls:Be,direction:Ke,virtual:Me,tree:Ye}=H.useContext(te.E_),{prefixCls:ht,className:pt,showIcon:at=!1,showLine:Bt,switcherIcon:Vt,blockNode:qt=!1,children:$t,checkable:Gt=!1,selectable:lt=!0,draggable:se,motion:ve,style:ne}=K,Y=Be("tree",ht),Ae=Be(),$=ve!=null?ve:Object.assign(Object.assign({},(0,M.Z)(Ae)),{motionAppear:!1}),R=Object.assign(Object.assign({},K),{checkable:Gt,selectable:lt,showIcon:at,motion:$,blockNode:qt,showLine:!!Bt,dropIndicatorRender:b}),[L,oe]=(0,W.ZP)(Y),le=H.useMemo(()=>{if(!se)return!1;let De={};switch(typeof se){case"function":De.nodeDraggable=se;break;case"object":De=Object.assign({},se);break;default:break}return De.icon!==!1&&(De.icon=De.icon||H.createElement(B.Z,null)),De},[se]),J=De=>H.createElement(T.Z,{prefixCls:Y,switcherIcon:Vt,treeNodeProps:De,showLine:Bt});return L(H.createElement(z.Z,Object.assign({itemHeight:20,ref:fe,virtual:Me},R,{style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),ne),prefixCls:Y,className:x()({[`${Y}-icon-hide`]:!at,[`${Y}-block-node`]:qt,[`${Y}-unselectable`]:!lt,[`${Y}-rtl`]:Ke==="rtl"},Ye==null?void 0:Ye.className,pt,oe),direction:Ke,checkable:Gt&&H.createElement("span",{className:`${Y}-checkbox-inner`}),selectable:lt,switcherIcon:J,draggable:le}),$t))}),be;(function(K){K[K.None=0]="None",K[K.Start=1]="Start",K[K.End=2]="End"})(be||(be={}));function _e(K,fe){function Be(Ke){const{key:Me,children:Ye}=Ke;fe(Me,Ke)!==!1&&_e(Ye||[],fe)}K.forEach(Be)}function xe(K){let{treeData:fe,expandedKeys:Be,startKey:Ke,endKey:Me}=K;const Ye=[];let ht=be.None;if(Ke&&Ke===Me)return[Ke];if(!Ke||!Me)return[];function pt(at){return at===Ke||at===Me}return _e(fe,at=>{if(ht===be.End)return!1;if(pt(at)){if(Ye.push(at),ht===be.None)ht=be.Start;else if(ht===be.Start)return ht=be.End,!1}else ht===be.Start&&Ye.push(at);return Be.includes(at)}),Ye}function de(K,fe){const Be=(0,N.Z)(fe),Ke=[];return _e(K,(Me,Ye)=>{const ht=Be.indexOf(Me);return ht!==-1&&(Ke.push(Ye),Be.splice(ht,1)),!!Be.length}),Ke}var ee=function(K,fe){var Be={};for(var Ke in K)Object.prototype.hasOwnProperty.call(K,Ke)&&fe.indexOf(Ke)<0&&(Be[Ke]=K[Ke]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ke=Object.getOwnPropertySymbols(K);Me<Ke.length;Me++)fe.indexOf(Ke[Me])<0&&Object.prototype.propertyIsEnumerable.call(K,Ke[Me])&&(Be[Ke[Me]]=K[Ke[Me]]);return Be};function Z(K){const{isLeaf:fe,expanded:Be}=K;return fe?H.createElement(X.Z,null):Be?H.createElement(ye.Z,null):H.createElement(m,null)}function pe(K){let{treeData:fe,children:Be}=K;return fe||(0,O.zn)(Be)}const P=(K,fe)=>{var{defaultExpandAll:Be,defaultExpandParent:Ke,defaultExpandedKeys:Me}=K,Ye=ee(K,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ht=H.useRef(),pt=H.useRef(),at=()=>{const{keyEntities:le}=(0,O.I8)(pe(Ye));let J;return Be?J=Object.keys(le):Ke?J=(0,y.r7)(Ye.expandedKeys||Me||[],le):J=Ye.expandedKeys||Me,J},[Bt,Vt]=H.useState(Ye.selectedKeys||Ye.defaultSelectedKeys||[]),[qt,$t]=H.useState(()=>at());H.useEffect(()=>{"selectedKeys"in Ye&&Vt(Ye.selectedKeys)},[Ye.selectedKeys]),H.useEffect(()=>{"expandedKeys"in Ye&&$t(Ye.expandedKeys)},[Ye.expandedKeys]);const Gt=(le,J)=>{var De;return"expandedKeys"in Ye||$t(le),(De=Ye.onExpand)===null||De===void 0?void 0:De.call(Ye,le,J)},lt=(le,J)=>{var De;const{multiple:je}=Ye,{node:ke,nativeEvent:Pe}=J,{key:Xe=""}=ke,st=pe(Ye),Ge=Object.assign(Object.assign({},J),{selected:!0}),gt=(Pe==null?void 0:Pe.ctrlKey)||(Pe==null?void 0:Pe.metaKey),bt=Pe==null?void 0:Pe.shiftKey;let mt;je&&gt?(mt=le,ht.current=Xe,pt.current=mt,Ge.selectedNodes=de(st,mt)):je&&bt?(mt=Array.from(new Set([].concat((0,N.Z)(pt.current||[]),(0,N.Z)(xe({treeData:st,expandedKeys:qt,startKey:Xe,endKey:ht.current}))))),Ge.selectedNodes=de(st,mt)):(mt=[Xe],ht.current=Xe,pt.current=mt,Ge.selectedNodes=de(st,mt)),(De=Ye.onSelect)===null||De===void 0||De.call(Ye,mt,Ge),"selectedKeys"in Ye||Vt(mt)},{getPrefixCls:se,direction:ve}=H.useContext(te.E_),{prefixCls:ne,className:Y,showIcon:Ae=!0,expandAction:$="click"}=Ye,R=ee(Ye,["prefixCls","className","showIcon","expandAction"]),L=se("tree",ne),oe=x()(`${L}-directory`,{[`${L}-directory-rtl`]:ve==="rtl"},Y);return H.createElement(j,Object.assign({icon:Z,ref:fe,blockNode:!0},R,{showIcon:Ae,expandAction:$,prefixCls:L,className:oe,expandedKeys:qt,selectedKeys:Bt,onSelect:lt,onExpand:Gt}))};var Q=H.forwardRef(P);const v=j;v.DirectoryTree=Q,v.TreeNode=z.O;var E=v},20648:function(Wt,Ze,h){"use strict";h.d(Ze,{TM:function(){return u},Yk:function(){return m}});var z=h(93083),N=h(98447),X=h(17313),ye=h(8378),U=h(37613),H=h(83116);const S=new z.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),me=(x,y)=>({[`.${x}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${y.motionDurationSlow}`}}}),a=(x,y)=>({[`.${x}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:y.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${y.lineWidthBold}px solid ${y.colorPrimary}`,borderRadius:"50%",content:'""'}}}),C=(x,y)=>{const{treeCls:O,treeNodeCls:te,treeNodePadding:B,titleHeight:M,nodeSelectedBg:W,nodeHoverBg:V}=y,b=y.paddingXS;return{[O]:Object.assign(Object.assign({},(0,X.Wf)(y)),{background:y.colorBgContainer,borderRadius:y.borderRadius,transition:`background-color ${y.motionDurationSlow}`,[`&${O}-rtl`]:{[`${O}-switcher`]:{"&_close":{[`${O}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${O}-active-focused)`]:Object.assign({},(0,X.oN)(y)),[`${O}-list-holder-inner`]:{alignItems:"flex-start"},[`&${O}-block-node`]:{[`${O}-list-holder-inner`]:{alignItems:"stretch",[`${O}-node-content-wrapper`]:{flex:"auto"},[`${te}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:B,insetInlineStart:0,border:`1px solid ${y.colorPrimary}`,opacity:0,animationName:S,animationDuration:y.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${te}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${B}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${O}-node-content-wrapper`]:{color:y.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${O}-node-content-wrapper`]:Object.assign({},(0,X.oN)(y)),[`&:not(${te}-disabled).filter-node ${O}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${O}-draggable-icon`]:{flexShrink:0,width:M,lineHeight:`${M}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${y.motionDurationSlow}`,[`${te}:hover &`]:{opacity:.45}},[`&${te}-disabled`]:{[`${O}-draggable-icon`]:{visibility:"hidden"}}}},[`${O}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:M}},[`${O}-draggable-icon`]:{visibility:"hidden"},[`${O}-switcher`]:Object.assign(Object.assign({},me(x,y)),{position:"relative",flex:"none",alignSelf:"stretch",width:M,margin:0,lineHeight:`${M}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${O}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:y.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:M/2,bottom:-B,marginInlineStart:-1,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:M/2*.8,height:M/2,borderBottom:`1px solid ${y.colorBorder}`,content:'""'}}}),[`${O}-checkbox`]:{top:"initial",marginInlineEnd:b},[`${O}-node-content-wrapper, ${O}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:M,margin:0,padding:`0 ${y.paddingXS/2}px`,color:"inherit",lineHeight:`${M}px`,background:"transparent",borderRadius:y.borderRadius,cursor:"pointer",transition:`all ${y.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:V},[`&${O}-node-selected`]:{backgroundColor:W},[`${O}-iconEle`]:{display:"inline-block",width:M,height:M,lineHeight:`${M}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${O}-unselectable ${O}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${O}-node-content-wrapper`]:Object.assign({lineHeight:`${M}px`,userSelect:"none"},a(x,y)),[`${te}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${y.colorPrimary}`}},"&-show-line":{[`${O}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:M/2,bottom:-B,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${O}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${te}-leaf-last`]:{[`${O}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${M/2}px !important`}}}}})}},I=x=>{const{treeCls:y,treeNodeCls:O,treeNodePadding:te,directoryNodeSelectedBg:B,directoryNodeSelectedColor:M}=x;return{[`${y}${y}-directory`]:{[O]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:te,insetInlineStart:0,transition:`background-color ${x.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:x.controlItemBgHover}},"> *":{zIndex:1},[`${y}-switcher`]:{transition:`color ${x.motionDurationMid}`},[`${y}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${y}-node-selected`]:{color:M,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:B},[`${y}-switcher`]:{color:M},[`${y}-node-content-wrapper`]:{color:M,background:"transparent"}}}}}},m=(x,y)=>{const O=`.${x}`,te=`${O}-treenode`,B=y.paddingXS/2,M=(0,U.TS)(y,{treeCls:O,treeNodeCls:te,treeNodePadding:B});return[C(x,M),I(M)]},u=x=>{const{controlHeightSM:y}=x;return{titleHeight:y,nodeHoverBg:x.controlItemBgHover,nodeSelectedBg:x.controlItemBgActive}};Ze.ZP=(0,H.Z)("Tree",(x,y)=>{let{prefixCls:O}=y;return[{[x.componentCls]:(0,N.C2)(`${O}-checkbox`,x)},m(O,x),(0,ye.Z)(x)]},x=>{const{colorTextLightSolid:y,colorPrimary:O}=x;return Object.assign(Object.assign({},u(x)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:O})})},71997:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return te}});var z=h(92413),N=h(59301),X={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"},ye=X,U=h(7657),H=function(M,W){return N.createElement(U.Z,(0,z.Z)({},M,{ref:W,icon:ye}))},S=N.forwardRef(H),me=S,a=h(52671),C=h(58617),I=h(15075),m=h(43531),u=h(92310),x=h.n(u),y=h(92343),te=B=>{const{prefixCls:M,switcherIcon:W,treeNodeProps:V,showLine:b}=B,{isLeaf:T,expanded:G,loading:j}=V;if(j)return N.createElement(C.Z,{className:`${M}-switcher-loading-icon`});let be;if(b&&typeof b=="object"&&(be=b.showLeafIcon),T){if(!b)return null;if(typeof be!="boolean"&&be){const de=typeof be=="function"?be(V):be,ee=`${M}-switcher-line-custom-icon`;return(0,y.l$)(de)?(0,y.Tm)(de,{className:x()(de.props.className||"",ee)}):de}return be?N.createElement(a.Z,{className:`${M}-switcher-line-icon`}):N.createElement("span",{className:`${M}-switcher-leaf-line`})}const _e=`${M}-switcher-icon`,xe=typeof W=="function"?W(V):W;return(0,y.l$)(xe)?(0,y.Tm)(xe,{className:x()(xe.props.className||"",_e)}):xe!==void 0?xe:b?G?N.createElement(I.Z,{className:`${M}-switcher-line-icon`}):N.createElement(m.Z,{className:`${M}-switcher-line-icon`}):N.createElement(me,{className:_e})}},64018:function(){var Wt,Ze,h,z=!1,N,X;window.PR_SHOULD_USE_CONTINUATION=!0;var ye,U;(function(){var H=window,S=["break,continue,do,else,for,if,return,while"],me=[S,"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"],a=[me,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[a,"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"],I=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[a,"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"],u="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",x=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],y="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",O=[S,"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"],te=[S,"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"],B=[S,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],M=[C,m,I,x,y,O,te,B],W=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,V="str",b="kwd",T="com",G="typ",j="lit",be="pun",_e="pln",xe="tag",de="dec",ee="src",Z="atn",pe="atv",P="nocode",ie="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function Q(se){for(var ve=0,ne=!1,Y=!1,Ae=0,$=se.length;Ae<$;++Ae){var R=se[Ae];if(R.ignoreCase)Y=!0;else if(/[a-z]/i.test(R.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ne=!0,Y=!1;break}}var L={b:8,t:9,n:10,v:11,f:12,r:13};function oe(ke){var Pe=ke.charCodeAt(0);if(Pe!==92)return Pe;var Xe=ke.charAt(1);return Pe=L[Xe],Pe||("0"<=Xe&&Xe<="7"?parseInt(ke.substring(1),8):Xe==="u"||Xe==="x"?parseInt(ke.substring(2),16):ke.charCodeAt(1))}function le(ke){if(ke<32)return(ke<16?"\\x0":"\\x")+ke.toString(16);var Pe=String.fromCharCode(ke);return Pe==="\\"||Pe==="-"||Pe==="]"||Pe==="^"?"\\"+Pe:Pe}function J(ke){var Pe=ke.substring(1,ke.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Xe=[],st=Pe[0]==="^",Ge=["["];st&&Ge.push("^");for(var gt=st?1:0,bt=Pe.length;gt<bt;++gt){var mt=Pe[gt];if(/\\[bdsw]/i.test(mt))Ge.push(mt);else{var zt=oe(mt),Ct;gt+2<bt&&Pe[gt+1]==="-"?(Ct=oe(Pe[gt+2]),gt+=2):Ct=zt,Xe.push([zt,Ct]),Ct<65||zt>122||(Ct<65||zt>90||Xe.push([Math.max(65,zt)|32,Math.min(Ct,90)|32]),Ct<97||zt>122||Xe.push([Math.max(97,zt)&-33,Math.min(Ct,122)&-33]))}}Xe.sort(function(ue,Ne){return ue[0]-Ne[0]||Ne[1]-ue[1]});for(var w=[],A=[],gt=0;gt<Xe.length;++gt){var vt=Xe[gt];vt[0]<=A[1]+1?A[1]=Math.max(A[1],vt[1]):w.push(A=vt)}for(var gt=0;gt<w.length;++gt){var vt=w[gt];Ge.push(le(vt[0])),vt[1]>vt[0]&&(vt[1]+1>vt[0]&&Ge.push("-"),Ge.push(le(vt[1])))}return Ge.push("]"),Ge.join("")}function De(ke){for(var Pe=ke.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Xe=Pe.length,st=[],Ge=0,gt=0;Ge<Xe;++Ge){var bt=Pe[Ge];if(bt==="(")++gt;else if(bt.charAt(0)==="\\"){var mt=+bt.substring(1);mt&&(mt<=gt?st[mt]=-1:Pe[Ge]=le(mt))}}for(var Ge=1;Ge<st.length;++Ge)st[Ge]===-1&&(st[Ge]=++ve);for(var Ge=0,gt=0;Ge<Xe;++Ge){var bt=Pe[Ge];if(bt==="(")++gt,st[gt]||(Pe[Ge]="(?:");else if(bt.charAt(0)==="\\"){var mt=+bt.substring(1);mt&&mt<=gt&&(Pe[Ge]="\\"+st[mt])}}for(var Ge=0;Ge<Xe;++Ge)Pe[Ge]==="^"&&Pe[Ge+1]!=="^"&&(Pe[Ge]="");if(ke.ignoreCase&&ne)for(var Ge=0;Ge<Xe;++Ge){var bt=Pe[Ge],zt=bt.charAt(0);bt.length>=2&&zt==="["?Pe[Ge]=J(bt):zt!=="\\"&&(Pe[Ge]=bt.replace(/[a-zA-Z]/g,function(A){var vt=A.charCodeAt(0);return"["+String.fromCharCode(vt&-33,vt|32)+"]"}))}return Pe.join("")}for(var je=[],Ae=0,$=se.length;Ae<$;++Ae){var R=se[Ae];if(R.global||R.multiline)throw new Error(""+R);je.push("(?:"+De(R)+")")}return new RegExp(je.join("|"),Y?"gi":"g")}function v(se,ve){var ne=/(?:^|\s)nocode(?:\s|$)/,Y=[],Ae=0,$=[],R=0;function L(oe){var le=oe.nodeType;if(le==1){if(ne.test(oe.className))return;for(var J=oe.firstChild;J;J=J.nextSibling)L(J);var De=oe.nodeName.toLowerCase();(De==="br"||De==="li")&&(Y[R]=`
`,$[R<<1]=Ae++,$[R++<<1|1]=oe)}else if(le==3||le==4){var je=oe.nodeValue;je.length&&(ve?je=je.replace(/\r\n?/g,`
`):je=je.replace(/[ \t\r\n]+/g," "),Y[R]=je,$[R<<1]=Ae,Ae+=je.length,$[R++<<1|1]=oe)}}return L(se),{sourceCode:Y.join("").replace(/\n$/,""),spans:$}}function E(se,ve,ne,Y,Ae){if(ne){var $={sourceNode:se,pre:1,langExtension:null,numberLines:null,sourceCode:ne,spans:null,basePos:ve,decorations:null};Y($),Ae.push.apply(Ae,$.decorations)}}var K=/\S/;function fe(se){for(var ve=void 0,ne=se.firstChild;ne;ne=ne.nextSibling){var Y=ne.nodeType;ve=Y===1?ve?se:ne:Y===3&&K.test(ne.nodeValue)?se:ve}return ve===se?void 0:ve}function Be(se,ve){var ne={},Y;(function(){for(var R=se.concat(ve),L=[],oe={},le=0,J=R.length;le<J;++le){var De=R[le],je=De[3];if(je)for(var ke=je.length;--ke>=0;)ne[je.charAt(ke)]=De;var Pe=De[1],Xe=""+Pe;oe.hasOwnProperty(Xe)||(L.push(Pe),oe[Xe]=null)}L.push(/[\0-\uffff]/),Y=Q(L)})();var Ae=ve.length,$=function(R){for(var L=R.sourceCode,oe=R.basePos,le=R.sourceNode,J=[oe,_e],De=0,je=L.match(Y)||[],ke={},Pe=0,Xe=je.length;Pe<Xe;++Pe){var st=je[Pe],Ge=ke[st],gt=void 0,bt;if(typeof Ge=="string")bt=!1;else{var mt=ne[st.charAt(0)];if(mt)gt=st.match(mt[1]),Ge=mt[0];else{for(var zt=0;zt<Ae;++zt)if(mt=ve[zt],gt=st.match(mt[1]),gt){Ge=mt[0];break}gt||(Ge=_e)}bt=Ge.length>=5&&Ge.substring(0,5)==="lang-",bt&&!(gt&&typeof gt[1]=="string")&&(bt=!1,Ge=ee),bt||(ke[st]=Ge)}var Ct=De;if(De+=st.length,!bt)J.push(oe+Ct,Ge);else{var w=gt[1],A=st.indexOf(w),vt=A+w.length;gt[2]&&(vt=st.length-gt[2].length,A=vt-w.length);var ue=Ge.substring(5);E(le,oe+Ct,st.substring(0,A),$,J),E(le,oe+Ct+A,w,Bt(ue,w),J),E(le,oe+Ct+vt,st.substring(vt),$,J)}}R.decorations=J};return $}function Ke(se){var ve=[],ne=[];se.tripleQuotedStrings?ve.push([V,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):se.multiLineStrings?ve.push([V,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ve.push([V,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),se.verbatimStrings&&ne.push([V,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Y=se.hashComments;Y&&(se.cStyleComments?(Y>1?ve.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ve.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ne.push([V,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ve.push([T,/^#[^\r\n]*/,null,"#"])),se.cStyleComments&&(ne.push([T,/^\/\/[^\r\n]*/,null]),ne.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ae=se.regexLiterals;if(Ae){var $=Ae>1?"":`
\r`,R=$?".":"[\\S\\s]",L="/(?=[^/*"+$+"])(?:[^/\\x5B\\x5C"+$+"]|\\x5C"+R+"|\\x5B(?:[^\\x5C\\x5D"+$+"]|\\x5C"+R+")*(?:\\x5D|$))+/";ne.push(["lang-regex",RegExp("^"+ie+"("+L+")")])}var oe=se.types;oe&&ne.push([G,oe]);var le=(""+se.keywords).replace(/^ | $/g,"");le.length&&ne.push([b,new RegExp("^(?:"+le.replace(/[\s,]+/g,"|")+")\\b"),null]),ve.push([_e,/^\s+/,null,` \r
\xA0`]);var J="^.[^\\s\\w.$@'\"`/\\\\]*";return se.regexLiterals&&(J+="(?!s*/)"),ne.push([j,/^@[a-z_$][a-z_$@0-9]*/i,null],[G,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_e,/^[a-z_$][a-z_$@0-9]*/i,null],[j,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_e,/^\\[\s\S]?/,null],[be,new RegExp(J),null]),Be(ve,ne)}var Me=Ke({keywords:M,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ye(se,ve,ne){for(var Y=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,$=se.ownerDocument,R=$.createElement("li");se.firstChild;)R.appendChild(se.firstChild);var L=[R];function oe(Pe){var Xe=Pe.nodeType;if(Xe==1&&!Y.test(Pe.className))if(Pe.nodeName==="br")le(Pe),Pe.parentNode&&Pe.parentNode.removeChild(Pe);else for(var st=Pe.firstChild;st;st=st.nextSibling)oe(st);else if((Xe==3||Xe==4)&&ne){var Ge=Pe.nodeValue,gt=Ge.match(Ae);if(gt){var bt=Ge.substring(0,gt.index);Pe.nodeValue=bt;var mt=Ge.substring(gt.index+gt[0].length);if(mt){var zt=Pe.parentNode;zt.insertBefore($.createTextNode(mt),Pe.nextSibling)}le(Pe),bt||Pe.parentNode.removeChild(Pe)}}}function le(Pe){for(;!Pe.nextSibling;)if(Pe=Pe.parentNode,!Pe)return;function Xe(gt,bt){var mt=bt?gt.cloneNode(!1):gt,zt=gt.parentNode;if(zt){var Ct=Xe(zt,1),w=gt.nextSibling;Ct.appendChild(mt);for(var A=w;A;A=w)w=A.nextSibling,Ct.appendChild(A)}return mt}for(var st=Xe(Pe.nextSibling,0),Ge;(Ge=st.parentNode)&&Ge.nodeType===1;)st=Ge;L.push(st)}for(var J=0;J<L.length;++J)oe(L[J]);ve===(ve|0)&&L[0].setAttribute("value",ve);var De=$.createElement("ol");De.className="linenums";for(var je=Math.max(0,ve-1|0)||0,J=0,ke=L.length;J<ke;++J)R=L[J],R.className="L"+(J+je)%10,R.firstChild||R.appendChild($.createTextNode("\xA0")),De.appendChild(R);se.appendChild(De)}function ht(se){var ve=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ve=ve&&+ve[1]<=8;var ne=/\n/g,Y=se.sourceCode,Ae=Y.length,$=0,R=se.spans,L=R.length,oe=0,le=se.decorations,J=le.length,De=0;le[J]=Ae;var je,ke;for(ke=je=0;ke<J;)le[ke]!==le[ke+2]?(le[je++]=le[ke++],le[je++]=le[ke++]):ke+=2;for(J=je,ke=je=0;ke<J;){for(var Pe=le[ke],Xe=le[ke+1],st=ke+2;st+2<=J&&le[st+1]===Xe;)st+=2;le[je++]=Pe,le[je++]=Xe,ke=st}J=le.length=je;var Ge=se.sourceNode,gt="";Ge&&(gt=Ge.style.display,Ge.style.display="none");try{for(var bt=null;oe<L;){var mt=R[oe],zt=R[oe+2]||Ae,Ct=le[De+2]||Ae,st=Math.min(zt,Ct),w=R[oe+1],A;if(w.nodeType!==1&&(A=Y.substring($,st))){ve&&(A=A.replace(ne,"\r")),w.nodeValue=A;var vt=w.ownerDocument,ue=vt.createElement("span");ue.className=le[De+1];var Ne=w.parentNode;Ne.replaceChild(ue,w),ue.appendChild(w),$<zt&&(R[oe+1]=w=vt.createTextNode(Y.substring(st,zt)),Ne.insertBefore(w,ue.nextSibling))}$=st,$>=zt&&(oe+=2),$>=Ct&&(De+=2)}}finally{Ge&&(Ge.style.display=gt)}}var pt={};function at(se,ve){for(var ne=ve.length;--ne>=0;){var Y=ve[ne];pt.hasOwnProperty(Y)?H.console&&console.warn("cannot override language handler %s",Y):pt[Y]=se}}function Bt(se,ve){return se&&pt.hasOwnProperty(se)||(se=/^\s*</.test(ve)?"default-markup":"default-code"),pt[se]}at(Me,["default-code"]),at(Be([],[[_e,/^[^<?]+/],[de,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[be,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),at(Be([[_e,/^[\s]+/,null,` \r
`],[pe,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[xe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Z,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[be,/^[=<>\/]+/],["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"]),at(Be([],[[pe,/^[\s\S]+/]]),["uq.val"]),at(Ke({keywords:C,hashComments:!0,cStyleComments:!0,types:W}),["c","cc","cpp","cxx","cyc","m"]),at(Ke({keywords:"null,true,false"}),["json"]),at(Ke({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:W}),["cs"]),at(Ke({keywords:I,cStyleComments:!0}),["java"]),at(Ke({keywords:B,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),at(Ke({keywords:O,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),at(Ke({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),at(Ke({keywords:te,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),at(Ke({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),at(Ke({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),at(Be([],[[V,/^[\s\S]+/]]),["regex"]);function Vt(se){var ve=se.langExtension;try{var ne=v(se.sourceNode,se.pre),Y=ne.sourceCode;se.sourceCode=Y,se.spans=ne.spans,se.basePos=0,Bt(ve,Y)(se),ht(se)}catch(Ae){H.console&&console.log(Ae&&Ae.stack||Ae)}}function qt(se,ve,ne){var Y=ne||!1,Ae=ve||null,$=document.createElement("div");$.innerHTML="<pre>"+se+"</pre>",$=$.firstChild,Y&&Ye($,Y,!0);var R={langExtension:Ae,numberLines:Y,sourceNode:$,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Vt(R),$.innerHTML}function $t(se,ve){var ne=ve||document.body,Y=ne.ownerDocument||document;function Ae(mt){return ne.getElementsByTagName(mt)}for(var $=[Ae("pre"),Ae("code"),Ae("xmp")],R=[],L=0;L<$.length;++L)for(var oe=0,le=$[L].length;oe<le;++oe)R.push($[L][oe]);$=null;var J=Date;J.now||(J={now:function(){return+new Date}});var De=0,je=/\blang(?:uage)?-([\w.]+)(?!\S)/,ke=/\bprettyprint\b/,Pe=/\bprettyprinted\b/,Xe=/pre|xmp/i,st=/^code$/i,Ge=/^(?:pre|code|xmp)$/i,gt={};function bt(){for(var mt=H.PR_SHOULD_USE_CONTINUATION?J.now()+250:1/0;De<R.length&&J.now()<mt;De++){for(var zt=R[De],Ct=gt,w=zt;w=w.previousSibling;){var A=w.nodeType,vt=(A===7||A===8)&&w.nodeValue;if(vt?!/^\??prettify\b/.test(vt):A!==3||/\S/.test(w.nodeValue))break;if(vt){Ct={},vt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(He,fn,An){Ct[fn]=An});break}}var ue=zt.className;if((Ct!==gt||ke.test(ue))&&!Pe.test(ue)){for(var Ne=!1,bn=zt.parentNode;bn;bn=bn.parentNode){var We=bn.tagName;if(Ge.test(We)&&bn.className&&ke.test(bn.className)){Ne=!0;break}}if(!Ne){zt.className+=" prettyprinted";var rt=Ct.lang;if(!rt){rt=ue.match(je);var Je;!rt&&(Je=fe(zt))&&st.test(Je.tagName)&&(rt=Je.className.match(je)),rt&&(rt=rt[1])}var Ee;if(Xe.test(zt.tagName))Ee=1;else{var Te=zt.currentStyle,ze=Y.defaultView,qe=Te?Te.whiteSpace:ze&&ze.getComputedStyle?ze.getComputedStyle(zt,null).getPropertyValue("white-space"):0;Ee=qe&&qe.substring(0,3)==="pre"}var ge=Ct.linenums;(ge=ge==="true"||+ge)||(ge=ue.match(/\blinenums\b(?::(\d+))?/),ge=ge?ge[1]&&ge[1].length?+ge[1]:!0:!1),ge&&Ye(zt,ge,Ee);var Jt={langExtension:rt,sourceNode:zt,numberLines:ge,pre:Ee,sourceCode:null,basePos:null,spans:null,decorations:null};Vt(Jt)}}}De<R.length?H.setTimeout(bt,250):typeof se=="function"&&se()}bt()}var Gt=H.PR={createSimpleLexer:Be,registerLangHandler:at,sourceDecorator:Ke,PR_ATTRIB_NAME:Z,PR_ATTRIB_VALUE:pe,PR_COMMENT:T,PR_DECLARATION:de,PR_KEYWORD:b,PR_LITERAL:j,PR_NOCODE:P,PR_PLAIN:_e,PR_PUNCTUATION:be,PR_SOURCE:ee,PR_STRING:V,PR_TAG:xe,PR_TYPE:G,prettyPrintOne:z?H.prettyPrintOne=qt:ye=qt,prettyPrint:U=z?H.prettyPrint=$t:U=$t},lt=H.define;typeof lt=="function"&&lt.amd&&lt("google-code-prettify",[],function(){return Gt})})()},25769:function(Wt,Ze,h){"use strict";var z=h(98040),N={"text/plain":"Text","text/html":"Url",default:"Text"},X="Copy to clipboard: #{key}, Enter";function ye(H){var S=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return H.replace(/#{\s*key\s*}/g,S)}function U(H,S){var me,a,C,I,m,u,x=!1;S||(S={}),me=S.debug||!1;try{C=z(),I=document.createRange(),m=document.getSelection(),u=document.createElement("span"),u.textContent=H,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(O){if(O.stopPropagation(),S.format)if(O.preventDefault(),typeof O.clipboardData=="undefined"){me&&console.warn("unable to use e.clipboardData"),me&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var te=N[S.format]||N.default;window.clipboardData.setData(te,H)}else O.clipboardData.clearData(),O.clipboardData.setData(S.format,H);S.onCopy&&(O.preventDefault(),S.onCopy(O.clipboardData))}),document.body.appendChild(u),I.selectNodeContents(u),m.addRange(I);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");x=!0}catch(O){me&&console.error("unable to copy using execCommand: ",O),me&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(S.format||"text",H),S.onCopy&&S.onCopy(window.clipboardData),x=!0}catch(te){me&&console.error("unable to copy using clipboardData: ",te),me&&console.error("falling back to prompt"),a=ye("message"in S?S.message:X),window.prompt(a,H)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(I):m.removeAllRanges()),u&&document.body.removeChild(u),C()}return x}Wt.exports=U},97774:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var z=Object.assign||function(O){for(var te=1;te<arguments.length;te++){var B=arguments[te];for(var M in B)Object.prototype.hasOwnProperty.call(B,M)&&(O[M]=B[M])}return O},N=function(){function O(te,B){for(var M=0;M<B.length;M++){var W=B[M];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(te,W.key,W)}}return function(te,B,M){return B&&O(te.prototype,B),M&&O(te,M),te}}(),X=h(59301),ye=I(X),U=h(12708),H=I(U),S=h(53291),me=I(S),a=h(47242),C=h(65429);function I(O){return O&&O.__esModule?O:{default:O}}function m(O,te){if(!(O instanceof te))throw new TypeError("Cannot call a class as a function")}function u(O,te){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:O}function x(O,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);O.prototype=Object.create(te&&te.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(O,te):O.__proto__=te)}var y=function(O){x(te,O);function te(B){m(this,te);var M=u(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,B));return M.getEchartsInstance=function(){return M.echartsLib.getInstanceByDom(M.echartsElement)||M.echartsLib.init(M.echartsElement,M.props.theme,M.props.opts)},M.dispose=function(){if(M.echartsElement){try{(0,a.clear)(M.echartsElement)}catch(W){console.warn(W)}M.echartsLib.dispose(M.echartsElement)}},M.rerender=function(){var W=M.props,V=W.onEvents,b=W.onChartReady,T=M.renderEchartDom();M.bindEvents(T,V||{}),typeof b=="function"&&M.props.onChartReady(T),M.echartsElement&&(0,a.bind)(M.echartsElement,function(){try{T.resize()}catch(G){console.warn(G)}})},M.bindEvents=function(W,V){var b=function(j,be){typeof j=="string"&&typeof be=="function"&&W.on(j,function(_e){be(_e,W)})};for(var T in V)Object.prototype.hasOwnProperty.call(V,T)&&b(T,V[T])},M.renderEchartDom=function(){var W=M.getEchartsInstance();return W.setOption(M.props.option,M.props.notMerge||!1,M.props.lazyUpdate||!1),M.props.showLoading?W.showLoading(M.props.loadingOption||null):W.hideLoading(),W},M.echartsLib=B.echarts,M.echartsElement=null,M}return N(te,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(M){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(M,this.props))){if(!(0,me.default)(M.theme,this.props.theme)||!(0,me.default)(M.opts,this.props.opts)||!(0,me.default)(M.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var W=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,me.default)((0,C.pick)(this.props,W),(0,C.pick)(M,W))){var V=this.renderEchartDom();if(!(0,me.default)(M.style,this.props.style)||!(0,me.default)(M.className,this.props.className))try{V.resize()}catch(b){console.warn(b)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var M=this,W=this.props,V=W.style,b=W.className,T=z({height:300},V);return ye.default.createElement("div",{ref:function(j){M.echartsElement=j},style:T,className:"echarts-for-react "+b})}}]),te}(X.Component);Ze.default=y,y.propTypes={option:H.default.object.isRequired,echarts:H.default.object,notMerge:H.default.bool,lazyUpdate:H.default.bool,style:H.default.object,className:H.default.string,theme:H.default.oneOfType([H.default.string,H.default.object]),onChartReady:H.default.func,showLoading:H.default.bool,loadingOption:H.default.object,onEvents:H.default.object,opts:H.default.shape({devicePixelRatio:H.default.number,renderer:H.default.oneOf(["canvas","svg"]),width:H.default.oneOfType([H.default.number,H.default.oneOf([null,void 0,"auto"])]),height:H.default.oneOfType([H.default.number,H.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:H.default.func},y.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Wt,Ze,h){"use strict";var z;z={value:!0},Ze.Z=void 0;var N=h(76411),X=H(N),ye=h(97774),U=H(ye);function H(I){return I&&I.__esModule?I:{default:I}}function S(I,m){if(!(I instanceof m))throw new TypeError("Cannot call a class as a function")}function me(I,m){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:I}function a(I,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);I.prototype=Object.create(m&&m.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(I,m):I.__proto__=m)}var C=function(I){a(m,I);function m(u){S(this,m);var x=me(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,u));return x.echartsLib=X.default,x}return m}(U.default);Ze.Z=C},65429:function(Wt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});var h=Ze.pick=function(N,X){var ye={};return X.forEach(function(U){ye[U]=N[U]}),ye}},53291:function(Wt){"use strict";var Ze=Array.isArray,h=Object.keys,z=Object.prototype.hasOwnProperty;Wt.exports=function N(X,ye){if(X===ye)return!0;if(X&&ye&&typeof X=="object"&&typeof ye=="object"){var U=Ze(X),H=Ze(ye),S,me,a;if(U&&H){if(me=X.length,me!=ye.length)return!1;for(S=me;S--!==0;)if(!N(X[S],ye[S]))return!1;return!0}if(U!=H)return!1;var C=X instanceof Date,I=ye instanceof Date;if(C!=I)return!1;if(C&&I)return X.getTime()==ye.getTime();var m=X instanceof RegExp,u=ye instanceof RegExp;if(m!=u)return!1;if(m&&u)return X.toString()==ye.toString();var x=h(X);if(me=x.length,me!==h(ye).length)return!1;for(S=me;S--!==0;)if(!z.call(ye,x[S]))return!1;for(S=me;S--!==0;)if(a=x[S],!N(X[a],ye[a]))return!1;return!0}return X!==X&&ye!==ye}},53184:function(Wt,Ze,h){"use strict";var z,N;function X(ye,U,H){var S=function(me,a){return ye.js_beautify(me,a)};return S.js=ye.js_beautify,S.css=U.css_beautify,S.html=H.html_beautify,S.js_beautify=ye.js_beautify,S.css_beautify=U.css_beautify,S.html_beautify=H.html_beautify,S}z=[h(58553),h(87804),h(40998)],N=function(ye,U,H){return X(ye,U,H)}.apply(Ze,z),N!==void 0&&(Wt.exports=N)},87804:function(Wt,Ze){var h,z;(function(){var N;(function(){"use strict";var ye=[,,function(me){function a(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var m=new a(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},a.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},a.prototype.has_match=function(m){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(m))return!0;return!1},a.prototype.set_indent=function(m,u){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(m){this.__items.push(m);var u=m.lastIndexOf(`
`);u!==-1?this.__character_count=m.length-u:this.__character_count+=m.length},a.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function C(m,u){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),u=u||"",m.indent_level>0&&(u=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}C.prototype.get_indent_size=function(m,u){var x=this.__base_string_length;return u=u||0,m<0&&(x=0),x+=m*this.__indent_size,x+=u,x},C.prototype.get_indent_string=function(m,u){var x=this.__base_string;return u=u||0,m<0&&(m=0,x=""),u+=m*this.__indent_size,this.__ensure_cache(u),x+=this.__cache[u],x},C.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var m=this.__cache.length,u=0,x="";this.__indent_size&&m>=this.__indent_size&&(u=Math.floor(m/this.__indent_size),m-=u*this.__indent_size,x=new Array(u+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function I(m,u){this.__indent_cache=new C(m,u),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}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(m,u){return this.__indent_cache.get_indent_string(m,u)},I.prototype.get_indent_size=function(m,u){return this.__indent_cache.get_indent_size(m,u)},I.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},I.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},I.prototype.get_code=function(m){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var x=this.__lines.join(`
`);return m!==`
`&&(x=x.replace(/[\n]/g,m)),x},I.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},I.prototype.set_indent=function(m,u){return m=m||0,u=u||0,this.next_line.set_indent(m,u),this.__lines.length>1?(this.current_line.set_indent(m,u),!0):(this.current_line.set_indent(),!1)},I.prototype.add_raw_token=function(m){for(var u=0;u<m.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},I.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},I.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},I.prototype.remove_indent=function(m){for(var u=this.__lines.length;m<u;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},I.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},I.prototype.just_added_newline=function(){return this.current_line.is_empty()},I.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},I.prototype.ensure_empty_line_above=function(m,u){for(var x=this.__lines.length-2;x>=0;){var y=this.__lines[x];if(y.is_empty())break;if(y.item(0).indexOf(m)!==0&&y.item(-1)!==u){this.__lines.splice(x+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},me.exports.Output=I},,,,function(me){function a(m,u){this.raw_options=C(m,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}a.prototype._get_array=function(m,u){var x=this.raw_options[m],y=u||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(y=x.concat()):typeof x=="string"&&(y=x.split(/[^a-zA-Z0-9_\/\-]+/)),y},a.prototype._get_boolean=function(m,u){var x=this.raw_options[m],y=x===void 0?!!u:!!x;return y},a.prototype._get_characters=function(m,u){var x=this.raw_options[m],y=u||"";return typeof x=="string"&&(y=x.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},a.prototype._get_number=function(m,u){var x=this.raw_options[m];u=parseInt(u,10),isNaN(u)&&(u=0);var y=parseInt(x,10);return isNaN(y)&&(y=u),y},a.prototype._get_selection=function(m,u,x){var y=this._get_selection_list(m,u,x);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y[0]},a.prototype._get_selection_list=function(m,u,x){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[u[0]],!this._is_valid_selection(x,u))throw new Error("Invalid Default Value!");var y=this._get_array(m,x);if(!this._is_valid_selection(y,u))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y},a.prototype._is_valid_selection=function(m,u){return m.length&&u.length&&!m.some(function(x){return u.indexOf(x)===-1})};function C(m,u){var x={};m=I(m);var y;for(y in m)y!==u&&(x[y]=m[y]);if(u&&m[u])for(y in m[u])x[y]=m[u][y];return x}function I(m){var u={},x;for(x in m){var y=x.replace(/-/g,"_");u[y]=m[x]}return u}me.exports.Options=a,me.exports.normalizeOpts=I,me.exports.mergeOpts=C},,function(me){var a=RegExp.prototype.hasOwnProperty("sticky");function C(I){this.__input=I||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__input.charAt(this.__position),this.__position+=1),I},C.prototype.peek=function(I){var m=null;return I=I||0,I+=this.__position,I>=0&&I<this.__input_length&&(m=this.__input.charAt(I)),m},C.prototype.__match=function(I,m){I.lastIndex=m;var u=I.exec(this.__input);return u&&!(a&&I.sticky)&&u.index!==m&&(u=null),u},C.prototype.test=function(I,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(I,m):!1},C.prototype.testChar=function(I,m){var u=this.peek(m);return I.lastIndex=0,u!==null&&I.test(u)},C.prototype.match=function(I){var m=this.__match(I,this.__position);return m?this.__position+=m[0].length:m=null,m},C.prototype.read=function(I,m,u){var x="",y;return I&&(y=this.match(I),y&&(x+=y[0])),m&&(y||!I)&&(x+=this.readUntil(m,u)),x},C.prototype.readUntil=function(I,m){var u="",x=this.__position;I.lastIndex=this.__position;var y=I.exec(this.__input);return y?(x=y.index,m&&(x+=y[0].length)):x=this.__input_length,u=this.__input.substring(this.__position,x),this.__position=x,u},C.prototype.readUntilAfter=function(I){return this.readUntil(I,!0)},C.prototype.get_regexp=function(I,m){var u=null,x="g";return m&&a&&(x="y"),typeof I=="string"&&I!==""?u=new RegExp(I,x):I&&(u=new RegExp(I.source,x)),u},C.prototype.get_literal_regexp=function(I){return RegExp(I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(I){var m=this.__position,u=this.readUntilAfter(I);return this.__position=m,u},C.prototype.lookBack=function(I){var m=this.__position-1;return m>=I.length&&this.__input.substring(m-I.length,m).toLowerCase()===I},me.exports.InputScanner=C},,,,,function(me){function a(C,I){C=typeof C=="string"?C:C.source,I=typeof I=="string"?I:I.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+I,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+I,"g")}a.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var I={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(C);m;)I[m[1]]=m[2],m=this.__directive_pattern.exec(C);return I},a.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},me.exports.Directives=a},,function(me,a,C){var I=C(16).Beautifier,m=C(17).Options;function u(x,y){var O=new I(x,y);return O.beautify()}me.exports=u,me.exports.defaultOptions=function(){return new m}},function(me,a,C){var I=C(17).Options,m=C(2).Output,u=C(8).InputScanner,x=C(13).Directives,y=new x(/\/\*/,/\*\//),O=/\r\n|[\r\n]/,te=/\r\n|[\r\n]/g,B=/\s/,M=/(?:\s|\n)+/g,W=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,V=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function b(T,G){this._source_text=T||"",this._options=new I(G),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"]}b.prototype.eatString=function(T){var G="";for(this._ch=this._input.next();this._ch;){if(G+=this._ch,this._ch==="\\")G+=this._input.next();else if(T.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return G},b.prototype.eatWhitespace=function(T){for(var G=B.test(this._input.peek()),j=0;B.test(this._input.peek());)this._ch=this._input.next(),T&&this._ch===`
`&&(j===0||j<this._options.max_preserve_newlines)&&(j++,this._output.add_new_line(!0));return G},b.prototype.foundNestedPseudoClass=function(){for(var T=0,G=1,j=this._input.peek(G);j;){if(j==="{")return!0;if(j==="(")T+=1;else if(j===")"){if(T===0)return!1;T-=1}else if(j===";"||j==="}")return!1;G++,j=this._input.peek(G)}return!1},b.prototype.print_string=function(T){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(T)},b.prototype.preserveSingleSpace=function(T){T&&(this._output.space_before_token=!0)},b.prototype.indent=function(){this._indentLevel++},b.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T=this._source_text,G=this._options.eol;G==="auto"&&(G=`
`,T&&O.test(T||"")&&(G=T.match(O)[0])),T=T.replace(te,`
`);var j=T.match(/^[\t ]*/)[0];this._output=new m(this._options,j),this._input=new u(T),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var be=0,_e=!1,xe=!1,de=!1,ee=!1,Z=!1,pe=this._ch,P=!1,ie,Q,v;ie=this._input.read(M),Q=ie!=="",v=pe,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),pe=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var E=this._input.read(W),K=y.get_directives(E);K&&K.ignore==="start"&&(E+=y.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(V)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(Q),this.print_string(this._ch);var fe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);fe.match(/[ :]$/)&&(fe=this.eatString(": ").replace(/\s+$/,""),this.print_string(fe),this._output.space_before_token=!0),be===0&&fe.indexOf(":")!==-1&&(xe=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(Q),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Be=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Be.match(/[ :]$/)&&(Be=this.eatString(": ").replace(/\s+$/,""),this.print_string(Be),this._output.space_before_token=!0),be===0&&Be.indexOf(":")!==-1?(xe=!0,this.indent()):Be in this.NESTED_AT_RULE?(this._nestedLevel+=1,Be in this.CONDITIONAL_GROUP_RULE&&(de=!0)):be===0&&!xe&&(ee=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(Q),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")xe&&(xe=!1,this.outdent()),ee=!1,de?(de=!1,_e=this._indentLevel>=this._nestedLevel):_e=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_e&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(v==="("?this._output.space_before_token=!1:v!==","&&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(),v==="{"&&this._output.trim(!0),xe&&(this.outdent(),xe=!1),this.print_string(this._ch),_e=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Ke=0;Ke<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ke++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ke])){P=!0;break}(_e||de)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!ee&&be===0?(this.print_string(":"),xe||(xe=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Me=v==='"'||v==="'";this.preserveSingleSpace(Me||Q),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")P=!1,be===0?(xe&&(this.outdent(),xe=!1),ee=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),be++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),be&&(be--,this.outdent()));else{var Ye=!1;this._input.lookBack("with")&&(Ye=!0),this.preserveSingleSpace(Q||Ye),this.print_string(this._ch),xe&&v==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),Z=!0):(this.eatWhitespace(),be++,this.indent())}else if(this._ch===")")be&&(be--,this.outdent()),Z&&this._input.peek()===";"&&this._options.selector_separator_newline&&(Z=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!xe||Z)&&be===0&&!ee?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!xe&&be===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&B.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(Q),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),B.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ht=v==='"'||v==="'";this.preserveSingleSpace(ht||Q),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&P&&this._output.add_new_line()}var pt=this._output.get_code(G);return pt},me.exports.Beautifier=b},function(me,a,C){var I=C(6).Options;function m(u){I.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var x=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||x;var y=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var O=0;O<y.length;O++)y[O]!=="expand"?this.brace_style="collapse":this.brace_style=y[O]}m.prototype=new I,me.exports.Options=m}],U={};function H(me){var a=U[me];if(a!==void 0)return a.exports;var C=U[me]={exports:{}};return ye[me](C,C.exports,H),C.exports}var S=H(15);N=S})();var X=N;h=[],z=function(){return{css_beautify:X}}.apply(Ze,h),z!==void 0&&(Wt.exports=z)})()},40998:function(Wt,Ze,h){var z,N;(function(){var X;(function(){"use strict";var S=[,,function(I){function m(y){this.__parent=y,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=[]}m.prototype.clone_empty=function(){var y=new m(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},m.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},m.prototype.has_match=function(y){for(var O=this.__items.length-1;O>=0;O--)if(this.__items[O].match(y))return!0;return!1},m.prototype.set_indent=function(y,O){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=O||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var y=this.__parent.current_line;return y.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),y.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),y.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,y.__items[0]===" "&&(y.__items.splice(0,1),y.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(y){this.__items.push(y);var O=y.lastIndexOf(`
`);O!==-1?this.__character_count=y.length-O:this.__character_count+=y.length},m.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var y="";return this.is_empty()?this.__parent.indent_empty_lines&&(y=this.__parent.get_indent_string(this.__indent_count)):(y=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),y+=this.__items.join("")),y};function u(y,O){this.__cache=[""],this.__indent_size=y.indent_size,this.__indent_string=y.indent_char,y.indent_with_tabs||(this.__indent_string=new Array(y.indent_size+1).join(y.indent_char)),O=O||"",y.indent_level>0&&(O=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=O,this.__base_string_length=O.length}u.prototype.get_indent_size=function(y,O){var te=this.__base_string_length;return O=O||0,y<0&&(te=0),te+=y*this.__indent_size,te+=O,te},u.prototype.get_indent_string=function(y,O){var te=this.__base_string;return O=O||0,y<0&&(y=0,te=""),O+=y*this.__indent_size,this.__ensure_cache(O),te+=this.__cache[O],te},u.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var y=this.__cache.length,O=0,te="";this.__indent_size&&y>=this.__indent_size&&(O=Math.floor(y/this.__indent_size),y-=O*this.__indent_size,te=new Array(O+1).join(this.__indent_string)),y&&(te+=new Array(y+1).join(" ")),this.__cache.push(te)};function x(y,O){this.__indent_cache=new u(y,O),this.raw=!1,this._end_with_newline=y.end_with_newline,this.indent_size=y.indent_size,this.wrap_line_length=y.wrap_line_length,this.indent_empty_lines=y.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}x.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},x.prototype.get_line_number=function(){return this.__lines.length},x.prototype.get_indent_string=function(y,O){return this.__indent_cache.get_indent_string(y,O)},x.prototype.get_indent_size=function(y,O){return this.__indent_cache.get_indent_size(y,O)},x.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},x.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},x.prototype.get_code=function(y){this.trim(!0);var O=this.current_line.pop();O&&(O[O.length-1]===`
`&&(O=O.replace(/\n+$/g,"")),this.current_line.push(O)),this._end_with_newline&&this.__add_outputline();var te=this.__lines.join(`
`);return y!==`
`&&(te=te.replace(/[\n]/g,y)),te},x.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},x.prototype.set_indent=function(y,O){return y=y||0,O=O||0,this.next_line.set_indent(y,O),this.__lines.length>1?(this.current_line.set_indent(y,O),!0):(this.current_line.set_indent(),!1)},x.prototype.add_raw_token=function(y){for(var O=0;O<y.newlines;O++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(y.whitespace_before),this.current_line.push(y.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},x.prototype.add_token=function(y){this.__add_space_before_token(),this.current_line.push(y),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},x.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},x.prototype.remove_indent=function(y){for(var O=this.__lines.length;y<O;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},x.prototype.trim=function(y){for(y=y===void 0?!1:y,this.current_line.trim();y&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},x.prototype.just_added_newline=function(){return this.current_line.is_empty()},x.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},x.prototype.ensure_empty_line_above=function(y,O){for(var te=this.__lines.length-2;te>=0;){var B=this.__lines[te];if(B.is_empty())break;if(B.item(0).indexOf(y)!==0&&B.item(-1)!==O){this.__lines.splice(te+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}te--}},I.exports.Output=x},function(I){function m(u,x,y,O){this.type=u,this.text=x,this.comments_before=null,this.newlines=y||0,this.whitespace_before=O||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}I.exports.Token=m},,,function(I){function m(y,O){this.raw_options=u(y,O),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}m.prototype._get_array=function(y,O){var te=this.raw_options[y],B=O||[];return typeof te=="object"?te!==null&&typeof te.concat=="function"&&(B=te.concat()):typeof te=="string"&&(B=te.split(/[^a-zA-Z0-9_\/\-]+/)),B},m.prototype._get_boolean=function(y,O){var te=this.raw_options[y],B=te===void 0?!!O:!!te;return B},m.prototype._get_characters=function(y,O){var te=this.raw_options[y],B=O||"";return typeof te=="string"&&(B=te.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),B},m.prototype._get_number=function(y,O){var te=this.raw_options[y];O=parseInt(O,10),isNaN(O)&&(O=0);var B=parseInt(te,10);return isNaN(B)&&(B=O),B},m.prototype._get_selection=function(y,O,te){var B=this._get_selection_list(y,O,te);if(B.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
`+O+`
You passed in: '`+this.raw_options[y]+"'");return B[0]},m.prototype._get_selection_list=function(y,O,te){if(!O||O.length===0)throw new Error("Selection list cannot be empty.");if(te=te||[O[0]],!this._is_valid_selection(te,O))throw new Error("Invalid Default Value!");var B=this._get_array(y,te);if(!this._is_valid_selection(B,O))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
`+O+`
You passed in: '`+this.raw_options[y]+"'");return B},m.prototype._is_valid_selection=function(y,O){return y.length&&O.length&&!y.some(function(te){return O.indexOf(te)===-1})};function u(y,O){var te={};y=x(y);var B;for(B in y)B!==O&&(te[B]=y[B]);if(O&&y[O])for(B in y[O])te[B]=y[O][B];return te}function x(y){var O={},te;for(te in y){var B=te.replace(/-/g,"_");O[B]=y[te]}return O}I.exports.Options=m,I.exports.normalizeOpts=x,I.exports.mergeOpts=u},,function(I){var m=RegExp.prototype.hasOwnProperty("sticky");function u(x){this.__input=x||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var x=null;return this.hasNext()&&(x=this.__input.charAt(this.__position),this.__position+=1),x},u.prototype.peek=function(x){var y=null;return x=x||0,x+=this.__position,x>=0&&x<this.__input_length&&(y=this.__input.charAt(x)),y},u.prototype.__match=function(x,y){x.lastIndex=y;var O=x.exec(this.__input);return O&&!(m&&x.sticky)&&O.index!==y&&(O=null),O},u.prototype.test=function(x,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(x,y):!1},u.prototype.testChar=function(x,y){var O=this.peek(y);return x.lastIndex=0,O!==null&&x.test(O)},u.prototype.match=function(x){var y=this.__match(x,this.__position);return y?this.__position+=y[0].length:y=null,y},u.prototype.read=function(x,y,O){var te="",B;return x&&(B=this.match(x),B&&(te+=B[0])),y&&(B||!x)&&(te+=this.readUntil(y,O)),te},u.prototype.readUntil=function(x,y){var O="",te=this.__position;x.lastIndex=this.__position;var B=x.exec(this.__input);return B?(te=B.index,y&&(te+=B[0].length)):te=this.__input_length,O=this.__input.substring(this.__position,te),this.__position=te,O},u.prototype.readUntilAfter=function(x){return this.readUntil(x,!0)},u.prototype.get_regexp=function(x,y){var O=null,te="g";return y&&m&&(te="y"),typeof x=="string"&&x!==""?O=new RegExp(x,te):x&&(O=new RegExp(x.source,te)),O},u.prototype.get_literal_regexp=function(x){return RegExp(x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(x){var y=this.__position,O=this.readUntilAfter(x);return this.__position=y,O},u.prototype.lookBack=function(x){var y=this.__position-1;return y>=x.length&&this.__input.substring(y-x.length,y).toLowerCase()===x},I.exports.InputScanner=u},function(I,m,u){var x=u(8).InputScanner,y=u(3).Token,O=u(10).TokenStream,te=u(11).WhitespacePattern,B={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},M=function(W,V){this._input=new x(W),this._options=V||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new te(this._input)};M.prototype.tokenize=function(){this._input.restart(),this.__tokens=new O,this._reset();for(var W,V=new y(B.START,""),b=null,T=[],G=new O;V.type!==B.EOF;){for(W=this._get_next_token(V,b);this._is_comment(W);)G.add(W),W=this._get_next_token(V,b);G.isEmpty()||(W.comments_before=G,G=new O),W.parent=b,this._is_opening(W)?(T.push(b),b=W):b&&this._is_closing(W,b)&&(W.opened=b,b.closed=W,b=T.pop(),W.parent=b),W.previous=V,V.next=W,this.__tokens.add(W),V=W}return this.__tokens},M.prototype._is_first_token=function(){return this.__tokens.isEmpty()},M.prototype._reset=function(){},M.prototype._get_next_token=function(W,V){this._readWhitespace();var b=this._input.read(/.+/g);return b?this._create_token(B.RAW,b):this._create_token(B.EOF,"")},M.prototype._is_comment=function(W){return!1},M.prototype._is_opening=function(W){return!1},M.prototype._is_closing=function(W,V){return!1},M.prototype._create_token=function(W,V){var b=new y(W,V,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return b},M.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},I.exports.Tokenizer=M,I.exports.TOKEN=B},function(I){function m(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}m.prototype.restart=function(){this.__position=0},m.prototype.isEmpty=function(){return this.__tokens_length===0},m.prototype.hasNext=function(){return this.__position<this.__tokens_length},m.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},m.prototype.peek=function(u){var x=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(x=this.__tokens[u]),x},m.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},I.exports.TokenStream=m},function(I,m,u){var x=u(12).Pattern;function y(O,te){x.call(this,O,te),te?this._line_regexp=this._input.get_regexp(te._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new x,y.prototype.__set_whitespace_patterns=function(O,te){O+="\\t ",te+="\\n\\r",this._match_pattern=this._input.get_regexp("["+O+te+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+te+"]")},y.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var O=this._input.read(this._match_pattern);if(O===" ")this.whitespace_before_token=" ";else if(O){var te=this.__split(this._newline_regexp,O);this.newline_count=te.length-1,this.whitespace_before_token=te[this.newline_count]}return O},y.prototype.matching=function(O,te){var B=this._create();return B.__set_whitespace_patterns(O,te),B._update(),B},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(O,te){O.lastIndex=0;for(var B=0,M=[],W=O.exec(te);W;)M.push(te.substring(B,W.index)),B=W.index+W[0].length,W=O.exec(te);return B<te.length?M.push(te.substring(B,te.length)):M.push(""),M},I.exports.WhitespacePattern=y},function(I){function m(u,x){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,x&&(this._starting_pattern=this._input.get_regexp(x._starting_pattern,!0),this._match_pattern=this._input.get_regexp(x._match_pattern,!0),this._until_pattern=this._input.get_regexp(x._until_pattern),this._until_after=x._until_after)}m.prototype.read=function(){var u=this._input.read(this._starting_pattern);return(!this._starting_pattern||u)&&(u+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),u},m.prototype.read_match=function(){return this._input.match(this._match_pattern)},m.prototype.until_after=function(u){var x=this._create();return x._until_after=!0,x._until_pattern=this._input.get_regexp(u),x._update(),x},m.prototype.until=function(u){var x=this._create();return x._until_after=!1,x._until_pattern=this._input.get_regexp(u),x._update(),x},m.prototype.starting_with=function(u){var x=this._create();return x._starting_pattern=this._input.get_regexp(u,!0),x._update(),x},m.prototype.matching=function(u){var x=this._create();return x._match_pattern=this._input.get_regexp(u,!0),x._update(),x},m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){},I.exports.Pattern=m},function(I){function m(u,x){u=typeof u=="string"?u:u.source,x=typeof x=="string"?x:x.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+x,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+x,"g")}m.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var x={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(u);y;)x[y[1]]=y[2],y=this.__directive_pattern.exec(u);return x},m.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},I.exports.Directives=m},function(I,m,u){var x=u(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function O(te,B){x.call(this,te,B),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),B&&(this.__template_pattern=this._input.get_regexp(B.__template_pattern),this._excluded=Object.assign(this._excluded,B._excluded),this._disabled=Object.assign(this._disabled,B._disabled));var M=new x(te);this.__patterns={handlebars_comment:M.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:M.starting_with(/{{{/).until_after(/}}}/),handlebars:M.starting_with(/{{/).until_after(/}}/),php:M.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:M.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:M.starting_with(/{%/).until_after(/%}/),django_value:M.starting_with(/{{/).until_after(/}}/),django_comment:M.starting_with(/{#/).until_after(/#}/),smarty:M.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:M.starting_with(/{\*/).until_after(/\*}/),smarty_literal:M.starting_with(/{literal}/).until_after(/{\/literal}/)}}O.prototype=new x,O.prototype._create=function(){return new O(this._input,this)},O.prototype._update=function(){this.__set_templated_pattern()},O.prototype.disable=function(te){var B=this._create();return B._disabled[te]=!0,B._update(),B},O.prototype.read_options=function(te){var B=this._create();for(var M in y)B._disabled[M]=te.templating.indexOf(M)===-1;return B._update(),B},O.prototype.exclude=function(te){var B=this._create();return B._excluded[te]=!0,B._update(),B},O.prototype.read=function(){var te="";this._match_pattern?te=this._input.read(this._starting_pattern):te=this._input.read(this._starting_pattern,this.__template_pattern);for(var B=this._read_template();B;)this._match_pattern?B+=this._input.read(this._match_pattern):B+=this._input.readUntil(this.__template_pattern),te+=B,B=this._read_template();return this._until_after&&(te+=this._input.readUntilAfter(this._until_pattern)),te},O.prototype.__set_templated_pattern=function(){var te=[];this._disabled.php||te.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||te.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(te.push(this.__patterns.django._starting_pattern.source),te.push(this.__patterns.django_value._starting_pattern.source),te.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||te.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&te.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+te.join("|")+")")},O.prototype._read_template=function(){var te="",B=this._input.peek();if(B==="<"){var M=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&M==="?"&&(te=te||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&M==="%"&&(te=te||this.__patterns.erb.read())}else B==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(te=te||this.__patterns.handlebars_comment.read(),te=te||this.__patterns.handlebars_unescaped.read(),te=te||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(te=te||this.__patterns.django_value.read()),this._excluded.django||(te=te||this.__patterns.django_comment.read(),te=te||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(te=te||this.__patterns.smarty_comment.read(),te=te||this.__patterns.smarty_literal.read(),te=te||this.__patterns.smarty.read()));return te},I.exports.TemplatablePattern=O},,,,function(I,m,u){var x=u(19).Beautifier,y=u(20).Options;function O(te,B,M,W){var V=new x(te,B,M,W);return V.beautify()}I.exports=O,I.exports.defaultOptions=function(){return new y}},function(I,m,u){var x=u(20).Options,y=u(2).Output,O=u(21).Tokenizer,te=u(21).TOKEN,B=/\r\n|[\r\n]/,M=/\r\n|[\r\n]/g,W=function(ee,Z){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=ee.max_preserve_newlines,this.preserve_newlines=ee.preserve_newlines,this._output=new y(ee,Z)};W.prototype.current_line_has_match=function(ee){return this._output.current_line.has_match(ee)},W.prototype.set_space_before_token=function(ee,Z){this._output.space_before_token=ee,this._output.non_breaking_space=Z},W.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},W.prototype.add_raw_token=function(ee){this._output.add_raw_token(ee)},W.prototype.print_preserved_newlines=function(ee){var Z=0;ee.type!==te.TEXT&&ee.previous.type!==te.TEXT&&(Z=ee.newlines?1:0),this.preserve_newlines&&(Z=ee.newlines<this.max_preserve_newlines+1?ee.newlines:this.max_preserve_newlines+1);for(var pe=0;pe<Z;pe++)this.print_newline(pe>0);return Z!==0},W.prototype.traverse_whitespace=function(ee){return ee.whitespace_before||ee.newlines?(this.print_preserved_newlines(ee)||(this._output.space_before_token=!0),!0):!1},W.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},W.prototype.print_newline=function(ee){this._output.add_new_line(ee)},W.prototype.print_token=function(ee){ee.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(ee.text))},W.prototype.indent=function(){this.indent_level++},W.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},W.prototype.get_full_indent=function(ee){return ee=this.indent_level+(ee||0),ee<1?"":this._output.get_indent_string(ee)};var V=function(ee){for(var Z=null,pe=ee.next;pe.type!==te.EOF&&ee.closed!==pe;){if(pe.type===te.ATTRIBUTE&&pe.text==="type"){pe.next&&pe.next.type===te.EQUALS&&pe.next.next&&pe.next.next.type===te.VALUE&&(Z=pe.next.next.text);break}pe=pe.next}return Z},b=function(ee,Z){var pe=null,P=null;return Z.closed?(ee==="script"?pe="text/javascript":ee==="style"&&(pe="text/css"),pe=V(Z)||pe,pe.search("text/css")>-1?P="css":pe.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":pe.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":pe.search(/test\/null/)>-1&&(P="null"),P):null};function T(ee,Z){return Z.indexOf(ee)!==-1}function G(ee,Z,pe){this.parent=ee||null,this.tag=Z?Z.tag_name:"",this.indent_level=pe||0,this.parser_token=Z||null}function j(ee){this._printer=ee,this._current_frame=null}j.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},j.prototype.record_tag=function(ee){var Z=new G(this._current_frame,ee,this._printer.indent_level);this._current_frame=Z},j.prototype._try_pop_frame=function(ee){var Z=null;return ee&&(Z=ee.parser_token,this._printer.indent_level=ee.indent_level,this._current_frame=ee.parent),Z},j.prototype._get_frame=function(ee,Z){for(var pe=this._current_frame;pe&&ee.indexOf(pe.tag)===-1;){if(Z&&Z.indexOf(pe.tag)!==-1){pe=null;break}pe=pe.parent}return pe},j.prototype.try_pop=function(ee,Z){var pe=this._get_frame([ee],Z);return this._try_pop_frame(pe)},j.prototype.indent_to_tag=function(ee){var Z=this._get_frame(ee);Z&&(this._printer.indent_level=Z.indent_level)};function be(ee,Z,pe,P){this._source_text=ee||"",Z=Z||{},this._js_beautify=pe,this._css_beautify=P,this._tag_stack=null;var ie=new x(Z,"html");this._options=ie,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}be.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ee=this._source_text,Z=this._options.eol;this._options.eol==="auto"&&(Z=`
`,ee&&B.test(ee)&&(Z=ee.match(B)[0])),ee=ee.replace(M,`
`);var pe=ee.match(/^[\t ]*/)[0],P={text:"",type:""},ie=new _e(this._options),Q=new W(this._options,pe),v=new O(ee,this._options).tokenize();this._tag_stack=new j(Q);for(var E=null,K=v.next();K.type!==te.EOF;)K.type===te.TAG_OPEN||K.type===te.COMMENT?(E=this._handle_tag_open(Q,K,ie,P,v),ie=E):K.type===te.ATTRIBUTE||K.type===te.EQUALS||K.type===te.VALUE||K.type===te.TEXT&&!ie.tag_complete?E=this._handle_inside_tag(Q,K,ie,P):K.type===te.TAG_CLOSE?E=this._handle_tag_close(Q,K,ie):K.type===te.TEXT?E=this._handle_text(Q,K,ie):K.type===te.CONTROL_FLOW_OPEN?E=this._handle_control_flow_open(Q,K):K.type===te.CONTROL_FLOW_CLOSE?E=this._handle_control_flow_close(Q,K):Q.add_raw_token(K),P=E,K=v.next();var fe=Q._output.get_code(Z);return fe},be.prototype._handle_control_flow_open=function(ee,Z){var pe={text:Z.text,type:Z.type};return ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),Z.newlines?ee.print_preserved_newlines(Z):ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),ee.print_token(Z),ee.indent(),pe},be.prototype._handle_control_flow_close=function(ee,Z){var pe={text:Z.text,type:Z.type};return ee.deindent(),Z.newlines?ee.print_preserved_newlines(Z):ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),ee.print_token(Z),pe},be.prototype._handle_tag_close=function(ee,Z,pe){var P={text:Z.text,type:Z.type};return ee.alignment_size=0,pe.tag_complete=!0,ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),pe.is_unformatted?ee.add_raw_token(Z):(pe.tag_start_char==="<"&&(ee.set_space_before_token(Z.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&pe.has_wrapped_attrs&&ee.print_newline(!1)),ee.print_token(Z)),pe.indent_content&&!(pe.is_unformatted||pe.is_content_unformatted)&&(ee.indent(),pe.indent_content=!1),!pe.is_inline_element&&!(pe.is_unformatted||pe.is_content_unformatted)&&ee.set_wrap_point(),P},be.prototype._handle_inside_tag=function(ee,Z,pe,P){var ie=pe.has_wrapped_attrs,Q={text:Z.text,type:Z.type};return ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),pe.is_unformatted?ee.add_raw_token(Z):pe.tag_start_char==="{"&&Z.type===te.TEXT?ee.print_preserved_newlines(Z)?(Z.newlines=0,ee.add_raw_token(Z)):ee.print_token(Z):(Z.type===te.ATTRIBUTE?ee.set_space_before_token(!0):(Z.type===te.EQUALS||Z.type===te.VALUE&&Z.previous.type===te.EQUALS)&&ee.set_space_before_token(!1),Z.type===te.ATTRIBUTE&&pe.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(ee.traverse_whitespace(Z),ie=ie||Z.newlines!==0),this._is_wrap_attributes_force&&pe.attr_count>=this._options.wrap_attributes_min_attrs&&(P.type!==te.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(ee.print_newline(!1),ie=!0)),ee.print_token(Z),ie=ie||ee.previous_token_wrapped(),pe.has_wrapped_attrs=ie),Q},be.prototype._handle_text=function(ee,Z,pe){var P={text:Z.text,type:"TK_CONTENT"};return pe.custom_beautifier_name?this._print_custom_beatifier_text(ee,Z,pe):pe.is_unformatted||pe.is_content_unformatted?ee.add_raw_token(Z):(ee.traverse_whitespace(Z),ee.print_token(Z)),P},be.prototype._print_custom_beatifier_text=function(ee,Z,pe){var P=this;if(Z.text!==""){var ie=Z.text,Q,v=1,E="",K="";pe.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?Q=this._js_beautify:pe.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?Q=this._css_beautify:pe.custom_beautifier_name==="html"&&(Q=function(ht,pt){var at=new be(ht,pt,P._js_beautify,P._css_beautify);return at.beautify()}),this._options.indent_scripts==="keep"?v=0:this._options.indent_scripts==="separate"&&(v=-ee.indent_level);var fe=ee.get_full_indent(v);if(ie=ie.replace(/\n[ \t]*$/,""),pe.custom_beautifier_name!=="html"&&ie[0]==="<"&&ie.match(/^(<!--|<!\[CDATA\[)/)){var Be=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ie);if(!Be){ee.add_raw_token(Z);return}E=fe+Be[1]+`
`,ie=Be[4],Be[5]&&(K=fe+Be[5]),ie=ie.replace(/\n[ \t]*$/,""),(Be[2]||Be[3].indexOf(`
`)!==-1)&&(Be=Be[3].match(/[ \t]+$/),Be&&(Z.whitespace_before=Be[0]))}if(ie)if(Q){var Ke=function(){this.eol=`
`};Ke.prototype=this._options.raw_options;var Me=new Ke;ie=Q(fe+ie,Me)}else{var Ye=Z.whitespace_before;Ye&&(ie=ie.replace(new RegExp(`
(`+Ye+")?","g"),`
`)),ie=fe+ie.replace(/\n/g,`
`+fe)}E&&(ie?ie=E+ie+`
`+K:ie=E+K),ee.print_newline(!1),ie&&(Z.text=ie,Z.whitespace_before="",Z.newlines=0,ee.add_raw_token(Z),ee.print_newline(!0))}},be.prototype._handle_tag_open=function(ee,Z,pe,P,ie){var Q=this._get_tag_open_token(Z);if((pe.is_unformatted||pe.is_content_unformatted)&&!pe.is_empty_element&&Z.type===te.TAG_OPEN&&!Q.is_start_tag?(ee.add_raw_token(Z),Q.start_tag_token=this._tag_stack.try_pop(Q.tag_name)):(ee.traverse_whitespace(Z),this._set_tag_position(ee,Z,Q,pe,P),Q.is_inline_element||ee.set_wrap_point(),ee.print_token(Z)),Q.is_start_tag&&this._is_wrap_attributes_force){var v=0,E;do E=ie.peek(v),E.type===te.ATTRIBUTE&&(Q.attr_count+=1),v+=1;while(E.type!==te.EOF&&E.type!==te.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(Q.alignment_size=Z.text.length+1),!Q.tag_complete&&!Q.is_unformatted&&(ee.alignment_size=Q.alignment_size),Q};var _e=function(ee,Z,pe){if(this.parent=Z||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="",!pe)this.tag_complete=!0;else{var P;this.tag_start_char=pe.text[0],this.text=pe.text,this.tag_start_char==="<"?(P=pe.text.match(/^<([^\s>]*)/),this.tag_check=P?P[1]:""):(P=pe.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=P?P[1]:"",(pe.text.startsWith("{{#>")||pe.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&pe.next!==null?this.tag_check=pe.next.text.split(" ")[0]:this.tag_check=pe.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),pe.type===te.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||pe.closed&&pe.closed.text==="/>";var ie=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ie=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!ee.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ie)))}};be.prototype._get_tag_open_token=function(ee){var Z=new _e(this._options,this._tag_stack.get_parser_token(),ee);return Z.alignment_size=this._options.wrap_attributes_indent_size,Z.is_end_tag=Z.is_end_tag||T(Z.tag_check,this._options.void_elements),Z.is_empty_element=Z.tag_complete||Z.is_start_tag&&Z.is_end_tag,Z.is_unformatted=!Z.tag_complete&&T(Z.tag_check,this._options.unformatted),Z.is_content_unformatted=!Z.is_empty_element&&T(Z.tag_check,this._options.content_unformatted),Z.is_inline_element=T(Z.tag_name,this._options.inline)||this._options.inline_custom_elements&&Z.tag_name.includes("-")||Z.tag_start_char==="{",Z},be.prototype._set_tag_position=function(ee,Z,pe,P,ie){if(pe.is_empty_element||(pe.is_end_tag?pe.start_tag_token=this._tag_stack.try_pop(pe.tag_name):(this._do_optional_end_element(pe)&&(pe.is_inline_element||ee.print_newline(!1)),this._tag_stack.record_tag(pe),(pe.tag_name==="script"||pe.tag_name==="style")&&!(pe.is_unformatted||pe.is_content_unformatted)&&(pe.custom_beautifier_name=b(pe.tag_check,Z)))),T(pe.tag_check,this._options.extra_liners)&&(ee.print_newline(!1),ee._output.just_added_blankline()||ee.print_newline(!0)),pe.is_empty_element){if(pe.tag_start_char==="{"&&pe.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),pe.indent_content=!0;var Q=ee.current_line_has_match(/{{#if/);Q||ee.print_newline(!1)}pe.tag_name==="!--"&&ie.type===te.TAG_CLOSE&&P.is_end_tag&&pe.text.indexOf(`
`)===-1||(pe.is_inline_element||pe.is_unformatted||ee.print_newline(!1),this._calcluate_parent_multiline(ee,pe))}else if(pe.is_end_tag){var v=!1;v=pe.start_tag_token&&pe.start_tag_token.multiline_content,v=v||!pe.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(ie.type===te.TAG_CLOSE&&pe.start_tag_token===P)&&ie.type!=="TK_CONTENT",(pe.is_content_unformatted||pe.is_unformatted)&&(v=!1),v&&ee.print_newline(!1)}else pe.indent_content=!pe.custom_beautifier_name,pe.tag_start_char==="<"&&(pe.tag_name==="html"?pe.indent_content=this._options.indent_inner_html:pe.tag_name==="head"?pe.indent_content=this._options.indent_head_inner_html:pe.tag_name==="body"&&(pe.indent_content=this._options.indent_body_inner_html)),!(pe.is_inline_element||pe.is_unformatted)&&(ie.type!=="TK_CONTENT"||pe.is_content_unformatted)&&ee.print_newline(!1),this._calcluate_parent_multiline(ee,pe)},be.prototype._calcluate_parent_multiline=function(ee,Z){Z.parent&&ee._output.just_added_newline()&&!((Z.is_inline_element||Z.is_unformatted)&&Z.parent.is_inline_element)&&(Z.parent.multiline_content=!0)};var xe=["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"],de=["a","audio","del","ins","map","noscript","video"];be.prototype._do_optional_end_element=function(ee){var Z=null;if(!(ee.is_empty_element||!ee.is_start_tag||!ee.parent)){if(ee.tag_name==="body")Z=Z||this._tag_stack.try_pop("head");else if(ee.tag_name==="li")Z=Z||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(ee.tag_name==="dd"||ee.tag_name==="dt")Z=Z||this._tag_stack.try_pop("dt",["dl"]),Z=Z||this._tag_stack.try_pop("dd",["dl"]);else if(ee.parent.tag_name==="p"&&xe.indexOf(ee.tag_name)!==-1){var pe=ee.parent.parent;(!pe||de.indexOf(pe.tag_name)===-1)&&(Z=Z||this._tag_stack.try_pop("p"))}else ee.tag_name==="rp"||ee.tag_name==="rt"?(Z=Z||this._tag_stack.try_pop("rt",["ruby","rtc"]),Z=Z||this._tag_stack.try_pop("rp",["ruby","rtc"])):ee.tag_name==="optgroup"?Z=Z||this._tag_stack.try_pop("optgroup",["select"]):ee.tag_name==="option"?Z=Z||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):ee.tag_name==="colgroup"?Z=Z||this._tag_stack.try_pop("caption",["table"]):ee.tag_name==="thead"?(Z=Z||this._tag_stack.try_pop("caption",["table"]),Z=Z||this._tag_stack.try_pop("colgroup",["table"])):ee.tag_name==="tbody"||ee.tag_name==="tfoot"?(Z=Z||this._tag_stack.try_pop("caption",["table"]),Z=Z||this._tag_stack.try_pop("colgroup",["table"]),Z=Z||this._tag_stack.try_pop("thead",["table"]),Z=Z||this._tag_stack.try_pop("tbody",["table"])):ee.tag_name==="tr"?(Z=Z||this._tag_stack.try_pop("caption",["table"]),Z=Z||this._tag_stack.try_pop("colgroup",["table"]),Z=Z||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(ee.tag_name==="th"||ee.tag_name==="td")&&(Z=Z||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),Z=Z||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return ee.parent=this._tag_stack.get_parser_token(),Z}},I.exports.Beautifier=be},function(I,m,u){var x=u(6).Options;function y(O){x.call(this,O,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_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"])}y.prototype=new x,I.exports.Options=y},function(I,m,u){var x=u(9).Tokenizer,y=u(9).TOKEN,O=u(13).Directives,te=u(14).TemplatablePattern,B=u(12).Pattern,M={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:y.START,RAW:y.RAW,EOF:y.EOF},W=new O(/<\!--/,/-->/),V=function(b,T){x.call(this,b,T),this._current_tag_name="";var G=new te(this._input).read_options(this._options),j=new B(this._input);if(this.__patterns={word:G.until(/[\n\r\t <]/),word_control_flow_close_excluded:G.until(/[\n\r\t <}]/),single_quote:G.until_after(/'/),double_quote:G.until_after(/"/),attribute:G.until(/[\n\r\t =>]|\/>/),element_name:G.until(/[\n\r\t >\/]/),angular_control_flow_start:j.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),handlebars_open:j.until(/[\n\r\t }]/),handlebars_raw_close:j.until(/}}/),comment:j.starting_with(/<!--/).until_after(/-->/),cdata:j.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:j.starting_with(/<!\[/).until_after(/]>/),processing:j.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 be=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=j.matching(be).until_after(be)}};V.prototype=new x,V.prototype._is_comment=function(b){return!1},V.prototype._is_opening=function(b){return b.type===M.TAG_OPEN||b.type===M.CONTROL_FLOW_OPEN},V.prototype._is_closing=function(b,T){return b.type===M.TAG_CLOSE&&T&&((b.text===">"||b.text==="/>")&&T.text[0]==="<"||b.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")||b.type===M.CONTROL_FLOW_CLOSE&&b.text==="}"&&T.text.endsWith("{")},V.prototype._reset=function(){this._current_tag_name=""},V.prototype._get_next_token=function(b,T){var G=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token(M.EOF,""):(G=G||this._read_open_handlebars(j,T),G=G||this._read_attribute(j,b,T),G=G||this._read_close(j,T),G=G||this._read_script_and_style(j,b),G=G||this._read_control_flows(j,T),G=G||this._read_raw_content(j,b,T),G=G||this._read_content_word(j,T),G=G||this._read_comment_or_cdata(j),G=G||this._read_processing(j),G=G||this._read_open(j,T),G=G||this._create_token(M.UNKNOWN,this._input.next()),G)},V.prototype._read_comment_or_cdata=function(b){var T=null,G=null,j=null;if(b==="<"){var be=this._input.peek(1);be==="!"&&(G=this.__patterns.comment.read(),G?(j=W.get_directives(G),j&&j.ignore==="start"&&(G+=W.readIgnored(this._input))):G=this.__patterns.cdata.read()),G&&(T=this._create_token(M.COMMENT,G),T.directives=j)}return T},V.prototype._read_processing=function(b){var T=null,G=null,j=null;if(b==="<"){var be=this._input.peek(1);(be==="!"||be==="?")&&(G=this.__patterns.conditional_comment.read(),G=G||this.__patterns.processing.read()),G&&(T=this._create_token(M.COMMENT,G),T.directives=j)}return T},V.prototype._read_open=function(b,T){var G=null,j=null;return(!T||T.type===M.CONTROL_FLOW_OPEN)&&b==="<"&&(G=this._input.next(),this._input.peek()==="/"&&(G+=this._input.next()),G+=this.__patterns.element_name.read(),j=this._create_token(M.TAG_OPEN,G)),j},V.prototype._read_open_handlebars=function(b,T){var G=null,j=null;return(!T||T.type===M.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&b==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(G=this.__patterns.handlebars_comment.read(),G=G||this.__patterns.handlebars.read(),j=this._create_token(M.COMMENT,G)):(G=this.__patterns.handlebars_open.read(),j=this._create_token(M.TAG_OPEN,G))),j},V.prototype._read_control_flows=function(b,T){var G="",j=null;if(!this._options.templating.includes("angular"))return j;if(b==="@"){if(G=this.__patterns.angular_control_flow_start.read(),G==="")return j;for(var be=G.endsWith("(")?1:0,_e=0;!(G.endsWith("{")&&be===_e);){var xe=this._input.next();if(xe===null)break;xe==="("?be++:xe===")"&&_e++,G+=xe}j=this._create_token(M.CONTROL_FLOW_OPEN,G)}else b==="}"&&T&&T.type===M.CONTROL_FLOW_OPEN&&(G=this._input.next(),j=this._create_token(M.CONTROL_FLOW_CLOSE,G));return j},V.prototype._read_close=function(b,T){var G=null,j=null;return T&&T.type===M.TAG_OPEN&&(T.text[0]==="<"&&(b===">"||b==="/"&&this._input.peek(1)===">")?(G=this._input.next(),b==="/"&&(G+=this._input.next()),j=this._create_token(M.TAG_CLOSE,G)):T.text[0]==="{"&&b==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),j=this._create_token(M.TAG_CLOSE,"}}"))),j},V.prototype._read_attribute=function(b,T,G){var j=null,be="";if(G&&G.text[0]==="<")if(b==="=")j=this._create_token(M.EQUALS,this._input.next());else if(b==='"'||b==="'"){var _e=this._input.next();b==='"'?_e+=this.__patterns.double_quote.read():_e+=this.__patterns.single_quote.read(),j=this._create_token(M.VALUE,_e)}else be=this.__patterns.attribute.read(),be&&(T.type===M.EQUALS?j=this._create_token(M.VALUE,be):j=this._create_token(M.ATTRIBUTE,be));return j},V.prototype._is_content_unformatted=function(b){return this._options.void_elements.indexOf(b)===-1&&(this._options.content_unformatted.indexOf(b)!==-1||this._options.unformatted.indexOf(b)!==-1)},V.prototype._read_raw_content=function(b,T,G){var j="";if(G&&G.text[0]==="{")j=this.__patterns.handlebars_raw_close.read();else if(T.type===M.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var be=T.opened.text.substr(1).toLowerCase();this._is_content_unformatted(be)&&(j=this._input.readUntil(new RegExp("</"+be+"[\\n\\r\\t ]*?>","ig")))}return j?this._create_token(M.TEXT,j):null},V.prototype._read_script_and_style=function(b,T){if(T.type===M.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var G=T.opened.text.substr(1).toLowerCase();if(G==="script"||G==="style"){var j=this._read_comment_or_cdata(b);if(j)return j.type=M.TEXT,j;var be=this._input.readUntil(new RegExp("</"+G+"[\\n\\r\\t ]*?>","ig"));if(be)return this._create_token(M.TEXT,be)}}return null},V.prototype._read_content_word=function(b,T){var G="";return this._options.unformatted_content_delimiter&&b===this._options.unformatted_content_delimiter[0]&&(G=this.__patterns.unformatted_content_delimiter.read()),G||(G=T&&T.type===M.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),G?this._create_token(M.TEXT,G):null},I.exports.Tokenizer=V,I.exports.TOKEN=M}],me={};function a(I){var m=me[I];if(m!==void 0)return m.exports;var u=me[I]={exports:{}};return S[I](u,u.exports,a),u.exports}var C=a(18);X=C})();var ye=X;if(1)z=[h,h(58553),h(87804)],N=function(S){var me=h(58553),a=h(87804);return{html_beautify:function(C,I){return ye(C,I,me.js_beautify,a.css_beautify)}}}.apply(Ze,z),N!==void 0&&(Wt.exports=N);else var U,H})()},58553:function(Wt,Ze){var h,z;(function(){var N;(function(){"use strict";var ye=[function(me,a,C){var I=C(1).Beautifier,m=C(5).Options;function u(x,y){var O=new I(x,y);return O.beautify()}me.exports=u,me.exports.defaultOptions=function(){return new m}},function(me,a,C){var I=C(2).Output,m=C(3).Token,u=C(4),x=C(5).Options,y=C(7).Tokenizer,O=C(7).line_starters,te=C(7).positionable_operators,B=C(7).TOKEN;function M(E,K){return K.indexOf(E)!==-1}function W(E){return E.replace(/^\s+/g,"")}function V(E){for(var K={},fe=0;fe<E.length;fe++)K[E[fe].replace(/-/g,"_")]=E[fe];return K}function b(E,K){return E&&E.type===B.RESERVED&&E.text===K}function T(E,K){return E&&E.type===B.RESERVED&&M(E.text,K)}var G=["case","return","do","if","throw","else","await","break","continue","async"],j=["before-newline","after-newline","preserve-newline"],be=V(j),_e=[be.before_newline,be.preserve_newline],xe={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function de(E,K){K.multiline_frame||K.mode===xe.ForInitializer||K.mode===xe.Conditional||E.remove_indent(K.start_line_index)}function ee(E){E=E.replace(u.allLineBreaks,`
`);for(var K=[],fe=E.indexOf(`
`);fe!==-1;)K.push(E.substring(0,fe)),E=E.substring(fe+1),fe=E.indexOf(`
`);return E.length&&K.push(E),K}function Z(E){return E===xe.ArrayLiteral}function pe(E){return M(E,[xe.Expression,xe.ForInitializer,xe.Conditional])}function P(E,K){for(var fe=0;fe<E.length;fe++){var Be=E[fe].trim();if(Be.charAt(0)!==K)return!1}return!0}function ie(E,K){for(var fe=0,Be=E.length,Ke;fe<Be;fe++)if(Ke=E[fe],Ke&&Ke.indexOf(K)!==0)return!1;return!0}function Q(E,K){K=K||{},this._source_text=E||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new x(K)}Q.prototype.create_flags=function(E,K){var fe=0;E&&(fe=E.indentation_level,!this._output.just_added_newline()&&E.line_indent_level>fe&&(fe=E.line_indent_level));var Be={mode:K,parent:E,last_token:E?E.last_token:new m(B.START_BLOCK,""),last_word:E?E.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:fe,alignment:0,line_indent_level:E?E.line_indent_level:fe,start_line_index:this._output.get_line_number(),ternary_depth:0};return Be},Q.prototype._reset=function(E){var K=E.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new I(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(xe.BlockStatement);var fe=new y(E,this._options);return this._tokens=fe.tokenize(),E},Q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E,K=this._reset(this._source_text),fe=this._options.eol;this._options.eol==="auto"&&(fe=`
`,K&&u.lineBreak.test(K||"")&&(fe=K.match(u.lineBreak)[0]));for(var Be=this._tokens.next();Be;)this.handle_token(Be),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Be,Be=this._tokens.next();return E=this._output.get_code(fe),E},Q.prototype.handle_token=function(E,K){E.type===B.START_EXPR?this.handle_start_expr(E):E.type===B.END_EXPR?this.handle_end_expr(E):E.type===B.START_BLOCK?this.handle_start_block(E):E.type===B.END_BLOCK?this.handle_end_block(E):E.type===B.WORD?this.handle_word(E):E.type===B.RESERVED?this.handle_word(E):E.type===B.SEMICOLON?this.handle_semicolon(E):E.type===B.STRING?this.handle_string(E):E.type===B.EQUALS?this.handle_equals(E):E.type===B.OPERATOR?this.handle_operator(E):E.type===B.COMMA?this.handle_comma(E):E.type===B.BLOCK_COMMENT?this.handle_block_comment(E,K):E.type===B.COMMENT?this.handle_comment(E,K):E.type===B.DOT?this.handle_dot(E):E.type===B.EOF?this.handle_eof(E):E.type===B.UNKNOWN?this.handle_unknown(E,K):this.handle_unknown(E,K)},Q.prototype.handle_whitespace_and_comments=function(E,K){var fe=E.newlines,Be=this._options.keep_array_indentation&&Z(this._flags.mode);if(E.comments_before)for(var Ke=E.comments_before.next();Ke;)this.handle_whitespace_and_comments(Ke,K),this.handle_token(Ke,K),Ke=E.comments_before.next();if(Be)for(var Me=0;Me<fe;Me+=1)this.print_newline(Me>0,K);else if(this._options.max_preserve_newlines&&fe>this._options.max_preserve_newlines&&(fe=this._options.max_preserve_newlines),this._options.preserve_newlines&&fe>1){this.print_newline(!1,K);for(var Ye=1;Ye<fe;Ye+=1)this.print_newline(!0,K)}};var v=["async","break","continue","return","throw","yield"];Q.prototype.allow_wrap_or_preserved_newline=function(E,K){if(K=K===void 0?!1:K,!this._output.just_added_newline()){var fe=this._options.preserve_newlines&&E.newlines||K,Be=M(this._flags.last_token.text,te)||M(E.text,te);if(Be){var Ke=M(this._flags.last_token.text,te)&&M(this._options.operator_position,_e)||M(E.text,te);fe=fe&&Ke}if(fe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(T(this._flags.last_token,v))return;this._output.set_wrap_point()}}},Q.prototype.print_newline=function(E,K){if(!K&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==B.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var fe=this._tokens.peek();this._flags.mode===xe.Statement&&!(this._flags.if_block&&b(fe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(E)&&(this._flags.multiline_frame=!0)},Q.prototype.print_token_line_indentation=function(E){this._output.just_added_newline()&&(this._options.keep_array_indentation&&E.newlines&&(E.text==="["||Z(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(E.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},Q.prototype.print_token=function(E){if(this._output.raw){this._output.add_raw_token(E);return}if(this._options.comma_first&&E.previous&&E.previous.type===B.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(E),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(E),this._output.non_breaking_space=!0,this._output.add_token(E.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},Q.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Q.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Q.prototype.set_mode=function(E){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,E),this._flags=this.create_flags(this._previous_flags,E),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Q.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===xe.Statement&&de(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Q.prototype.start_of_object_property=function(){return this._flags.parent.mode===xe.ObjectLiteral&&this._flags.mode===xe.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"]))},Q.prototype.start_of_statement=function(E){var K=!1;return K=K||T(this._flags.last_token,["var","let","const"])&&E.type===B.WORD,K=K||b(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===xe.ObjectLiteral&&this._flags.mode===xe.Statement)&&T(this._flags.last_token,v)&&!E.newlines,K=K||b(this._flags.last_token,"else")&&!(b(E,"if")&&!E.comments_before),K=K||this._flags.last_token.type===B.END_EXPR&&(this._previous_flags.mode===xe.ForInitializer||this._previous_flags.mode===xe.Conditional),K=K||this._flags.last_token.type===B.WORD&&this._flags.mode===xe.BlockStatement&&!this._flags.in_case&&!(E.text==="--"||E.text==="++")&&this._last_last_text!=="function"&&E.type!==B.WORD&&E.type!==B.RESERVED,K=K||this._flags.mode===xe.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"])),K?(this.set_mode(xe.Statement),this.indent(),this.handle_whitespace_and_comments(E,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E,T(E,["do","for","if","while"])),!0):!1},Q.prototype.handle_start_expr=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E);var K=xe.Expression;if(E.text==="["){if(this._flags.last_token.type===B.WORD||this._flags.last_token.text===")"){T(this._flags.last_token,O)&&(this._output.space_before_token=!0),this.print_token(E),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=xe.ArrayLiteral,Z(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()),M(this._flags.last_token.type,[B.START_EXPR,B.END_EXPR,B.WORD,B.OPERATOR,B.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===B.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=xe.ForInitializer):M(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=xe.Conditional):M(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&E.whitespace_before===""?this._output.space_before_token=!1:(M(this._flags.last_token.text,O)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===B.EQUALS||this._flags.last_token.type===B.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E);else if(this._flags.last_token.type===B.WORD){this._output.space_before_token=!1;var fe=this._tokens.peek(-3);if(this._options.space_after_named_function&&fe){var Be=this._tokens.peek(-4);T(fe,["async","function"])||fe.text==="*"&&T(Be,["async","function"])?this._output.space_before_token=!0:this._flags.mode===xe.ObjectLiteral?(fe.text==="{"||fe.text===","||fe.text==="*"&&(Be.text==="{"||Be.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(E);(this._flags.last_token.type===B.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(M(this._last_last_text,["function","yield"])||this._flags.mode===xe.ObjectLiteral&&M(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===B.START_BLOCK?this.print_newline():(this._flags.last_token.type===B.END_EXPR||this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===B.COMMA)&&this.allow_wrap_or_preserved_newline(E,E.newlines),this.print_token(E),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},Q.prototype.handle_end_expr=function(E){for(;this._flags.mode===xe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(E,E.text==="]"&&Z(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===B.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(E),this.restore_mode(),de(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===xe.Conditional&&(this._previous_flags.mode=xe.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},Q.prototype.handle_start_block=function(E){this.handle_whitespace_and_comments(E);var K=this._tokens.peek(),fe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===B.END_EXPR?(this.set_mode(xe.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(xe.BlockStatement):fe&&(M(fe.text,[":",","])&&M(K.type,[B.STRING,B.WORD,B.RESERVED])||M(K.text,["get","set","..."])&&M(fe.type,[B.WORD,B.RESERVED]))?M(this._last_last_text,["class","interface"])&&!M(fe.text,[":",","])?this.set_mode(xe.BlockStatement):this.set_mode(xe.ObjectLiteral):this._flags.last_token.type===B.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(xe.BlockStatement):M(this._flags.last_token.type,[B.EQUALS,B.START_EXPR,B.COMMA,B.OPERATOR])||T(this._flags.last_token,["return","throw","import","default"])?this.set_mode(xe.ObjectLiteral):this.set_mode(xe.BlockStatement),this._flags.last_token&&T(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Be=!K.comments_before&&K.text==="}",Ke=Be&&this._flags.last_word==="function"&&this._flags.last_token.type===B.END_EXPR;if(this._options.brace_preserve_inline){var Me=0,Ye=null;this._flags.inline_frame=!0;do if(Me+=1,Ye=this._tokens.peek(Me-1),Ye.newlines){this._flags.inline_frame=!1;break}while(Ye.type!==B.EOF&&!(Ye.type===B.END_BLOCK&&Ye.opened===E))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&E.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==B.OPERATOR&&(Ke||this._flags.last_token.type===B.EQUALS||T(this._flags.last_token,G)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(Z(this._previous_flags.mode)&&(this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.COMMA)&&((this._flags.last_token.type===B.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(E),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==B.OPERATOR&&this._flags.last_token.type!==B.START_EXPR&&(M(this._flags.last_token.type,[B.START_BLOCK,B.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(E),this.indent(),!Be&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},Q.prototype.handle_end_block=function(E){for(this.handle_whitespace_and_comments(E);this._flags.mode===xe.Statement;)this.restore_mode();var K=this._flags.last_token.type===B.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(Z(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(E)},Q.prototype.handle_word=function(E){if(E.type===B.RESERVED){if(M(E.text,["set","get"])&&this._flags.mode!==xe.ObjectLiteral)E.type=B.WORD;else if(E.text==="import"&&M(this._tokens.peek().text,["(","."]))E.type=B.WORD;else if(M(E.text,["as","from"])&&!this._flags.import_block)E.type=B.WORD;else if(this._flags.mode===xe.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(E.type=B.WORD)}}if(this.start_of_statement(E)?T(this._flags.last_token,["var","let","const"])&&E.type===B.WORD&&(this._flags.declaration_statement=!0):E.newlines&&!pe(this._flags.mode)&&(this._flags.last_token.type!==B.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==B.EQUALS&&(this._options.preserve_newlines||!T(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(E),this.print_newline()):this.handle_whitespace_and_comments(E),this._flags.do_block&&!this._flags.do_while)if(b(E,"while")){this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&b(E,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===xe.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&T(E,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(E),this._flags.in_case=!0;return}if((this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.EQUALS||this._flags.last_token.type===B.OPERATOR)&&!this.start_of_object_property()&&!(M(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===xe.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(E),b(E,"function")){(M(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(M(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===B.OPERATOR))&&!this._output.just_added_blankline()&&!E.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===B.RESERVED||this._flags.last_token.type===B.WORD?T(this._flags.last_token,["get","set","new","export"])||T(this._flags.last_token,v)?this._output.space_before_token=!0:b(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===B.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(pe(this._flags.mode)||Z(this._flags.mode))||this.print_newline(),this.print_token(E),this._flags.last_word=E.text;return}var fe="NONE";if(this._flags.last_token.type===B.END_BLOCK?this._previous_flags.inline_frame?fe="SPACE":T(E,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&E.newlines?fe="NEWLINE":(fe="SPACE",this._output.space_before_token=!0):fe="NEWLINE":this._flags.last_token.type===B.SEMICOLON&&this._flags.mode===xe.BlockStatement?fe="NEWLINE":this._flags.last_token.type===B.SEMICOLON&&pe(this._flags.mode)?fe="SPACE":this._flags.last_token.type===B.STRING?fe="NEWLINE":this._flags.last_token.type===B.RESERVED||this._flags.last_token.type===B.WORD||this._flags.last_token.text==="*"&&(M(this._last_last_text,["function","yield"])||this._flags.mode===xe.ObjectLiteral&&M(this._last_last_text,["{",","]))?fe="SPACE":this._flags.last_token.type===B.START_BLOCK?this._flags.inline_frame?fe="SPACE":fe="NEWLINE":this._flags.last_token.type===B.END_EXPR&&(this._output.space_before_token=!0,fe="NEWLINE"),T(E,O)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?fe="SPACE":fe="NEWLINE"),T(E,["else","catch","finally"]))if((!(this._flags.last_token.type===B.END_BLOCK&&this._previous_flags.mode===xe.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&E.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Be=this._output.current_line;Be.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else fe==="NEWLINE"?T(this._flags.last_token,G)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&T(E,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==B.END_EXPR?(this._flags.last_token.type!==B.START_EXPR||!T(E,["var","let","const"]))&&this._flags.last_token.text!==":"&&(b(E,"if")&&b(E.previous,"else")?this._output.space_before_token=!0:this.print_newline()):T(E,O)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&Z(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():fe==="SPACE"&&(this._output.space_before_token=!0);E.previous&&(E.previous.type===B.WORD||E.previous.type===B.RESERVED)&&(this._output.space_before_token=!0),this.print_token(E),this._flags.last_word=E.text,E.type===B.RESERVED&&(E.text==="do"?this._flags.do_block=!0:E.text==="if"?this._flags.if_block=!0:E.text==="import"?this._flags.import_block=!0:this._flags.import_block&&b(E,"from")&&(this._flags.import_block=!1))},Q.prototype.handle_semicolon=function(E){this.start_of_statement(E)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(E);for(var K=this._tokens.peek();this._flags.mode===xe.Statement&&!(this._flags.if_block&&b(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(E)},Q.prototype.handle_string=function(E){E.text.startsWith("`")&&E.newlines===0&&E.whitespace_before===""&&(E.previous.text===")"||this._flags.last_token.type===B.WORD)||(this.start_of_statement(E)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(E),this._flags.last_token.type===B.RESERVED||this._flags.last_token.type===B.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.EQUALS||this._flags.last_token.type===B.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E):E.text.startsWith("`")&&this._flags.last_token.type===B.END_EXPR&&(E.previous.text==="]"||E.previous.text===")")&&E.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(E)},Q.prototype.handle_equals=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0},Q.prototype.handle_comma=function(E){this.handle_whitespace_and_comments(E,!0),this.print_token(E),this._output.space_before_token=!0,this._flags.declaration_statement?(pe(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(E)):this._flags.mode===xe.ObjectLiteral||this._flags.mode===xe.Statement&&this._flags.parent.mode===xe.ObjectLiteral?(this._flags.mode===xe.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(E)},Q.prototype.handle_operator=function(E){var K=E.text==="*"&&(T(this._flags.last_token,["function","yield"])||M(this._flags.last_token.type,[B.START_BLOCK,B.COMMA,B.END_BLOCK,B.SEMICOLON])),fe=M(E.text,["-","+"])&&(M(this._flags.last_token.type,[B.START_BLOCK,B.START_EXPR,B.EQUALS,B.OPERATOR])||M(this._flags.last_token.text,O)||this._flags.last_token.text===",");if(!this.start_of_statement(E)){var Be=!K;this.handle_whitespace_and_comments(E,Be)}if(E.text==="*"&&this._flags.last_token.type===B.DOT){this.print_token(E);return}if(E.text==="::"){this.print_token(E);return}if(M(E.text,["-","+"])&&this.start_of_object_property()){this.print_token(E);return}if(this._flags.last_token.type===B.OPERATOR&&M(this._options.operator_position,_e)&&this.allow_wrap_or_preserved_newline(E),E.text===":"&&this._flags.in_case){this.print_token(E),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==B.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ke=!0,Me=!0,Ye=!1;if(E.text===":"?this._flags.ternary_depth===0?Ke=!1:(this._flags.ternary_depth-=1,Ye=!0):E.text==="?"&&(this._flags.ternary_depth+=1),!fe&&!K&&this._options.preserve_newlines&&M(E.text,te)){var ht=E.text===":",pt=ht&&Ye,at=ht&&!Ye;switch(this._options.operator_position){case be.before_newline:this._output.space_before_token=!at,this.print_token(E),(!ht||pt)&&this.allow_wrap_or_preserved_newline(E),this._output.space_before_token=!0;return;case be.after_newline:this._output.space_before_token=!0,!ht||pt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(E):this._output.space_before_token=!1,this.print_token(E),this._output.space_before_token=!0;return;case be.preserve_newline:at||this.allow_wrap_or_preserved_newline(E),Ke=!(this._output.just_added_newline()||at),this._output.space_before_token=Ke,this.print_token(E),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(E),Ke=!1;var Bt=this._tokens.peek();Me=Bt&&M(Bt.type,[B.WORD,B.RESERVED])}else if(E.text==="...")this.allow_wrap_or_preserved_newline(E),Ke=this._flags.last_token.type===B.START_BLOCK,Me=!1;else if(M(E.text,["--","++","!","~"])||fe){if((this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.START_EXPR)&&this.allow_wrap_or_preserved_newline(E),Ke=!1,Me=!1,E.newlines&&(E.text==="--"||E.text==="++"||E.text==="~")){var Vt=T(this._flags.last_token,G)&&E.newlines;Vt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Vt,!0)}this._flags.last_token.text===";"&&pe(this._flags.mode)&&(Ke=!0),this._flags.last_token.type===B.RESERVED?Ke=!0:this._flags.last_token.type===B.END_EXPR?Ke=!(this._flags.last_token.text==="]"&&(E.text==="--"||E.text==="++")):this._flags.last_token.type===B.OPERATOR&&(Ke=M(E.text,["--","-","++","+"])&&M(this._flags.last_token.text,["--","-","++","+"]),M(E.text,["+","-"])&&M(this._flags.last_token.text,["--","++"])&&(Me=!0)),(this._flags.mode===xe.BlockStatement&&!this._flags.inline_frame||this._flags.mode===xe.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ke,this.print_token(E),this._output.space_before_token=Me},Q.prototype.handle_block_comment=function(E,K){if(this._output.raw){this._output.add_raw_token(E),E.directives&&E.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(E.directives){this.print_newline(!1,K),this.print_token(E),E.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!u.newline.test(E.text)&&!E.newlines){this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0;return}else this.print_block_commment(E,K)},Q.prototype.print_block_commment=function(E,K){var fe=ee(E.text),Be,Ke=!1,Me=!1,Ye=E.whitespace_before,ht=Ye.length;if(this.print_newline(!1,K),this.print_token_line_indentation(E),this._output.add_token(fe[0]),this.print_newline(!1,K),fe.length>1){for(fe=fe.slice(1),Ke=P(fe,"*"),Me=ie(fe,Ye),Ke&&(this._flags.alignment=1),Be=0;Be<fe.length;Be++)Ke?(this.print_token_line_indentation(E),this._output.add_token(W(fe[Be]))):Me&&fe[Be]?(this.print_token_line_indentation(E),this._output.add_token(fe[Be].substring(ht))):(this._output.current_line.set_indent(-1),this._output.add_token(fe[Be])),this.print_newline(!1,K);this._flags.alignment=0}},Q.prototype.handle_comment=function(E,K){E.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(E),this.print_newline(!1,K)},Q.prototype.handle_dot=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),T(this._flags.last_token,G)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(E,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(E)},Q.prototype.handle_unknown=function(E,K){this.print_token(E),E.text[E.text.length-1]===`
`&&this.print_newline(!1,K)},Q.prototype.handle_eof=function(E){for(;this._flags.mode===xe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E)},me.exports.Beautifier=Q},function(me){function a(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var m=new a(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},a.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},a.prototype.has_match=function(m){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(m))return!0;return!1},a.prototype.set_indent=function(m,u){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(m){this.__items.push(m);var u=m.lastIndexOf(`
`);u!==-1?this.__character_count=m.length-u:this.__character_count+=m.length},a.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function C(m,u){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),u=u||"",m.indent_level>0&&(u=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}C.prototype.get_indent_size=function(m,u){var x=this.__base_string_length;return u=u||0,m<0&&(x=0),x+=m*this.__indent_size,x+=u,x},C.prototype.get_indent_string=function(m,u){var x=this.__base_string;return u=u||0,m<0&&(m=0,x=""),u+=m*this.__indent_size,this.__ensure_cache(u),x+=this.__cache[u],x},C.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var m=this.__cache.length,u=0,x="";this.__indent_size&&m>=this.__indent_size&&(u=Math.floor(m/this.__indent_size),m-=u*this.__indent_size,x=new Array(u+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function I(m,u){this.__indent_cache=new C(m,u),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}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(m,u){return this.__indent_cache.get_indent_string(m,u)},I.prototype.get_indent_size=function(m,u){return this.__indent_cache.get_indent_size(m,u)},I.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},I.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},I.prototype.get_code=function(m){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var x=this.__lines.join(`
`);return m!==`
`&&(x=x.replace(/[\n]/g,m)),x},I.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},I.prototype.set_indent=function(m,u){return m=m||0,u=u||0,this.next_line.set_indent(m,u),this.__lines.length>1?(this.current_line.set_indent(m,u),!0):(this.current_line.set_indent(),!1)},I.prototype.add_raw_token=function(m){for(var u=0;u<m.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},I.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},I.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},I.prototype.remove_indent=function(m){for(var u=this.__lines.length;m<u;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},I.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},I.prototype.just_added_newline=function(){return this.current_line.is_empty()},I.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},I.prototype.ensure_empty_line_above=function(m,u){for(var x=this.__lines.length-2;x>=0;){var y=this.__lines[x];if(y.is_empty())break;if(y.item(0).indexOf(m)!==0&&y.item(-1)!==u){this.__lines.splice(x+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},me.exports.Output=I},function(me){function a(C,I,m,u){this.type=C,this.text=I,this.comments_before=null,this.newlines=m||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}me.exports.Token=a},function(me,a){var C="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",I="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",m="\\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",u="\\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",x="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",y="(?:"+x+"|["+C+m+"])",O="(?:"+x+"|["+I+m+u+"])*";a.identifier=new RegExp(y+O,"g"),a.identifierStart=new RegExp(y),a.identifierMatch=new RegExp("(?:"+x+"|["+I+m+u+"])+");var te=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;a.newline=/[\n\r\u2028\u2029]/,a.lineBreak=new RegExp(`\r
|`+a.newline.source),a.allLineBreaks=new RegExp(a.lineBreak.source,"g")},function(me,a,C){var I=C(6).Options,m=["before-newline","after-newline","preserve-newline"];function u(x){I.call(this,x,"js");var y=this.raw_options.brace_style||null;y==="expand-strict"?this.raw_options.brace_style="expand":y==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var O=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var te=0;te<O.length;te++)O[te]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=O[te];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",m),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}u.prototype=new I,me.exports.Options=u},function(me){function a(m,u){this.raw_options=C(m,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}a.prototype._get_array=function(m,u){var x=this.raw_options[m],y=u||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(y=x.concat()):typeof x=="string"&&(y=x.split(/[^a-zA-Z0-9_\/\-]+/)),y},a.prototype._get_boolean=function(m,u){var x=this.raw_options[m],y=x===void 0?!!u:!!x;return y},a.prototype._get_characters=function(m,u){var x=this.raw_options[m],y=u||"";return typeof x=="string"&&(y=x.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},a.prototype._get_number=function(m,u){var x=this.raw_options[m];u=parseInt(u,10),isNaN(u)&&(u=0);var y=parseInt(x,10);return isNaN(y)&&(y=u),y},a.prototype._get_selection=function(m,u,x){var y=this._get_selection_list(m,u,x);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y[0]},a.prototype._get_selection_list=function(m,u,x){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[u[0]],!this._is_valid_selection(x,u))throw new Error("Invalid Default Value!");var y=this._get_array(m,x);if(!this._is_valid_selection(y,u))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y},a.prototype._is_valid_selection=function(m,u){return m.length&&u.length&&!m.some(function(x){return u.indexOf(x)===-1})};function C(m,u){var x={};m=I(m);var y;for(y in m)y!==u&&(x[y]=m[y]);if(u&&m[u])for(y in m[u])x[y]=m[u][y];return x}function I(m){var u={},x;for(x in m){var y=x.replace(/-/g,"_");u[y]=m[x]}return u}me.exports.Options=a,me.exports.normalizeOpts=I,me.exports.mergeOpts=C},function(me,a,C){var I=C(8).InputScanner,m=C(9).Tokenizer,u=C(9).TOKEN,x=C(13).Directives,y=C(4),O=C(12).Pattern,te=C(14).TemplatablePattern;function B(P,ie){return ie.indexOf(P)!==-1}var M={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:u.START,RAW:u.RAW,EOF:u.EOF},W=new x(/\/\*/,/\*\//),V=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,b=/[0-9]/,T=/[^\d\.]/,G=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),j=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";j=j.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),j="\\?\\.(?!\\d) "+j,j=j.replace(/ /g,"|");var be=new RegExp(j),_e="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),xe=_e.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),de=new RegExp("^(?:"+xe.join("|")+")$"),ee,Z=function(P,ie){m.call(this,P,ie),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var Q=new O(this._input),v=new te(this._input).read_options(this._options);this.__patterns={template:v,identifier:v.starting_with(y.identifier).matching(y.identifierMatch),number:Q.matching(V),punct:Q.matching(be),comment:Q.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:Q.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:Q.matching(/<!--/),html_comment_end:Q.matching(/-->/),include:Q.starting_with(/#include/).until_after(y.lineBreak),shebang:Q.starting_with(/#!/).until_after(y.lineBreak),xml:Q.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:v.until(/['\\\n\r\u2028\u2029]/),double_quote:v.until(/["\\\n\r\u2028\u2029]/),template_text:v.until(/[`\\$]/),template_expression:v.until(/[`}\\]/)}};Z.prototype=new m,Z.prototype._is_comment=function(P){return P.type===M.COMMENT||P.type===M.BLOCK_COMMENT||P.type===M.UNKNOWN},Z.prototype._is_opening=function(P){return P.type===M.START_BLOCK||P.type===M.START_EXPR},Z.prototype._is_closing=function(P,ie){return(P.type===M.END_BLOCK||P.type===M.END_EXPR)&&ie&&(P.text==="]"&&ie.text==="["||P.text===")"&&ie.text==="("||P.text==="}"&&ie.text==="{")},Z.prototype._reset=function(){ee=!1},Z.prototype._get_next_token=function(P,ie){var Q=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(M.EOF,""):(Q=Q||this._read_non_javascript(v),Q=Q||this._read_string(v),Q=Q||this._read_pair(v,this._input.peek(1)),Q=Q||this._read_word(P),Q=Q||this._read_singles(v),Q=Q||this._read_comment(v),Q=Q||this._read_regexp(v,P),Q=Q||this._read_xml(v,P),Q=Q||this._read_punctuation(),Q=Q||this._create_token(M.UNKNOWN,this._input.next()),Q)},Z.prototype._read_word=function(P){var ie;if(ie=this.__patterns.identifier.read(),ie!=="")return ie=ie.replace(y.allLineBreaks,`
`),!(P.type===M.DOT||P.type===M.RESERVED&&(P.text==="set"||P.text==="get"))&&de.test(ie)?(ie==="in"||ie==="of")&&(P.type===M.WORD||P.type===M.STRING)?this._create_token(M.OPERATOR,ie):this._create_token(M.RESERVED,ie):this._create_token(M.WORD,ie);if(ie=this.__patterns.number.read(),ie!=="")return this._create_token(M.WORD,ie)},Z.prototype._read_singles=function(P){var ie=null;return P==="("||P==="["?ie=this._create_token(M.START_EXPR,P):P===")"||P==="]"?ie=this._create_token(M.END_EXPR,P):P==="{"?ie=this._create_token(M.START_BLOCK,P):P==="}"?ie=this._create_token(M.END_BLOCK,P):P===";"?ie=this._create_token(M.SEMICOLON,P):P==="."&&T.test(this._input.peek(1))?ie=this._create_token(M.DOT,P):P===","&&(ie=this._create_token(M.COMMA,P)),ie&&this._input.next(),ie},Z.prototype._read_pair=function(P,ie){var Q=null;return P==="#"&&ie==="{"&&(Q=this._create_token(M.START_BLOCK,P+ie)),Q&&(this._input.next(),this._input.next()),Q},Z.prototype._read_punctuation=function(){var P=this.__patterns.punct.read();if(P!=="")return P==="="?this._create_token(M.EQUALS,P):P==="?."?this._create_token(M.DOT,P):this._create_token(M.OPERATOR,P)},Z.prototype._read_non_javascript=function(P){var ie="";if(P==="#"){if(this._is_first_token()&&(ie=this.__patterns.shebang.read(),ie))return this._create_token(M.UNKNOWN,ie.trim()+`
`);if(ie=this.__patterns.include.read(),ie)return this._create_token(M.UNKNOWN,ie.trim()+`
`);P=this._input.next();var Q="#";if(this._input.hasNext()&&this._input.testChar(b)){do P=this._input.next(),Q+=P;while(this._input.hasNext()&&P!=="#"&&P!=="=");return P==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(Q+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(Q+="{}",this._input.next(),this._input.next())),this._create_token(M.WORD,Q)}this._input.back()}else if(P==="<"&&this._is_first_token()){if(ie=this.__patterns.html_comment_start.read(),ie){for(;this._input.hasNext()&&!this._input.testChar(y.newline);)ie+=this._input.next();return ee=!0,this._create_token(M.COMMENT,ie)}}else if(ee&&P==="-"&&(ie=this.__patterns.html_comment_end.read(),ie))return ee=!1,this._create_token(M.COMMENT,ie);return null},Z.prototype._read_comment=function(P){var ie=null;if(P==="/"){var Q="";if(this._input.peek(1)==="*"){Q=this.__patterns.block_comment.read();var v=W.get_directives(Q);v&&v.ignore==="start"&&(Q+=W.readIgnored(this._input)),Q=Q.replace(y.allLineBreaks,`
`),ie=this._create_token(M.BLOCK_COMMENT,Q),ie.directives=v}else this._input.peek(1)==="/"&&(Q=this.__patterns.comment.read(),ie=this._create_token(M.COMMENT,Q))}return ie},Z.prototype._read_string=function(P){if(P==="`"||P==="'"||P==='"'){var ie=this._input.next();return this.has_char_escapes=!1,P==="`"?ie+=this._read_string_recursive("`",!0,"${"):ie+=this._read_string_recursive(P),this.has_char_escapes&&this._options.unescape_strings&&(ie=pe(ie)),this._input.peek()===P&&(ie+=this._input.next()),ie=ie.replace(y.allLineBreaks,`
`),this._create_token(M.STRING,ie)}return null},Z.prototype._allow_regexp_or_xml=function(P){return P.type===M.RESERVED&&B(P.text,["return","case","throw","else","do","typeof","yield"])||P.type===M.END_EXPR&&P.text===")"&&P.opened.previous.type===M.RESERVED&&B(P.opened.previous.text,["if","while","for"])||B(P.type,[M.COMMENT,M.START_EXPR,M.START_BLOCK,M.START,M.END_BLOCK,M.OPERATOR,M.EQUALS,M.EOF,M.SEMICOLON,M.COMMA])},Z.prototype._read_regexp=function(P,ie){if(P==="/"&&this._allow_regexp_or_xml(ie)){for(var Q=this._input.next(),v=!1,E=!1;this._input.hasNext()&&(v||E||this._input.peek()!==P)&&!this._input.testChar(y.newline);)Q+=this._input.peek(),v?v=!1:(v=this._input.peek()==="\\",this._input.peek()==="["?E=!0:this._input.peek()==="]"&&(E=!1)),this._input.next();return this._input.peek()===P&&(Q+=this._input.next(),Q+=this._input.read(y.identifier)),this._create_token(M.STRING,Q)}return null},Z.prototype._read_xml=function(P,ie){if(this._options.e4x&&P==="<"&&this._allow_regexp_or_xml(ie)){var Q="",v=this.__patterns.xml.read_match();if(v){for(var E=v[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=E.indexOf("{")===0,fe=0;v;){var Be=!!v[1],Ke=v[2],Me=!!v[v.length-1]||Ke.slice(0,8)==="![CDATA[";if(!Me&&(Ke===E||K&&Ke.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Be?--fe:++fe),Q+=v[0],fe<=0)break;v=this.__patterns.xml.read_match()}return v||(Q+=this._input.match(/[\s\S]*/g)[0]),Q=Q.replace(y.allLineBreaks,`
`),this._create_token(M.STRING,Q)}}return null};function pe(P){for(var ie="",Q=0,v=new I(P),E=null;v.hasNext();)if(E=v.match(/([\s]|[^\\]|\\\\)+/g),E&&(ie+=E[0]),v.peek()==="\\"){if(v.next(),v.peek()==="x")E=v.match(/x([0-9A-Fa-f]{2})/g);else if(v.peek()==="u")E=v.match(/u([0-9A-Fa-f]{4})/g),E||(E=v.match(/u\{([0-9A-Fa-f]+)\}/g));else{ie+="\\",v.hasNext()&&(ie+=v.next());continue}if(!E||(Q=parseInt(E[1],16),Q>126&&Q<=255&&E[0].indexOf("x")===0))return P;Q>=0&&Q<32||Q>1114111?ie+="\\"+E[0]:Q===34||Q===39||Q===92?ie+="\\"+String.fromCharCode(Q):ie+=String.fromCharCode(Q)}return ie}Z.prototype._read_string_recursive=function(P,ie,Q){var v,E;P==="'"?E=this.__patterns.single_quote:P==='"'?E=this.__patterns.double_quote:P==="`"?E=this.__patterns.template_text:P==="}"&&(E=this.__patterns.template_expression);for(var K=E.read(),fe="";this._input.hasNext();){if(fe=this._input.next(),fe===P||!ie&&y.newline.test(fe)){this._input.back();break}else fe==="\\"&&this._input.hasNext()?(v=this._input.peek(),v==="x"||v==="u"?this.has_char_escapes=!0:v==="\r"&&this._input.peek(1)===`
`&&this._input.next(),fe+=this._input.next()):Q&&(Q==="${"&&fe==="$"&&this._input.peek()==="{"&&(fe+=this._input.next()),Q===fe&&(P==="`"?fe+=this._read_string_recursive("}",ie,"`"):fe+=this._read_string_recursive("`",ie,"${"),this._input.hasNext()&&(fe+=this._input.next())));fe+=E.read(),K+=fe}return K},me.exports.Tokenizer=Z,me.exports.TOKEN=M,me.exports.positionable_operators=G.slice(),me.exports.line_starters=_e.slice()},function(me){var a=RegExp.prototype.hasOwnProperty("sticky");function C(I){this.__input=I||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__input.charAt(this.__position),this.__position+=1),I},C.prototype.peek=function(I){var m=null;return I=I||0,I+=this.__position,I>=0&&I<this.__input_length&&(m=this.__input.charAt(I)),m},C.prototype.__match=function(I,m){I.lastIndex=m;var u=I.exec(this.__input);return u&&!(a&&I.sticky)&&u.index!==m&&(u=null),u},C.prototype.test=function(I,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(I,m):!1},C.prototype.testChar=function(I,m){var u=this.peek(m);return I.lastIndex=0,u!==null&&I.test(u)},C.prototype.match=function(I){var m=this.__match(I,this.__position);return m?this.__position+=m[0].length:m=null,m},C.prototype.read=function(I,m,u){var x="",y;return I&&(y=this.match(I),y&&(x+=y[0])),m&&(y||!I)&&(x+=this.readUntil(m,u)),x},C.prototype.readUntil=function(I,m){var u="",x=this.__position;I.lastIndex=this.__position;var y=I.exec(this.__input);return y?(x=y.index,m&&(x+=y[0].length)):x=this.__input_length,u=this.__input.substring(this.__position,x),this.__position=x,u},C.prototype.readUntilAfter=function(I){return this.readUntil(I,!0)},C.prototype.get_regexp=function(I,m){var u=null,x="g";return m&&a&&(x="y"),typeof I=="string"&&I!==""?u=new RegExp(I,x):I&&(u=new RegExp(I.source,x)),u},C.prototype.get_literal_regexp=function(I){return RegExp(I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(I){var m=this.__position,u=this.readUntilAfter(I);return this.__position=m,u},C.prototype.lookBack=function(I){var m=this.__position-1;return m>=I.length&&this.__input.substring(m-I.length,m).toLowerCase()===I},me.exports.InputScanner=C},function(me,a,C){var I=C(8).InputScanner,m=C(3).Token,u=C(10).TokenStream,x=C(11).WhitespacePattern,y={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},O=function(te,B){this._input=new I(te),this._options=B||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new x(this._input)};O.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var te,B=new m(y.START,""),M=null,W=[],V=new u;B.type!==y.EOF;){for(te=this._get_next_token(B,M);this._is_comment(te);)V.add(te),te=this._get_next_token(B,M);V.isEmpty()||(te.comments_before=V,V=new u),te.parent=M,this._is_opening(te)?(W.push(M),M=te):M&&this._is_closing(te,M)&&(te.opened=M,M.closed=te,M=W.pop(),te.parent=M),te.previous=B,B.next=te,this.__tokens.add(te),B=te}return this.__tokens},O.prototype._is_first_token=function(){return this.__tokens.isEmpty()},O.prototype._reset=function(){},O.prototype._get_next_token=function(te,B){this._readWhitespace();var M=this._input.read(/.+/g);return M?this._create_token(y.RAW,M):this._create_token(y.EOF,"")},O.prototype._is_comment=function(te){return!1},O.prototype._is_opening=function(te){return!1},O.prototype._is_closing=function(te,B){return!1},O.prototype._create_token=function(te,B){var M=new m(te,B,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return M},O.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},me.exports.Tokenizer=O,me.exports.TOKEN=y},function(me){function a(C){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=C}a.prototype.restart=function(){this.__position=0},a.prototype.isEmpty=function(){return this.__tokens_length===0},a.prototype.hasNext=function(){return this.__position<this.__tokens_length},a.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__tokens[this.__position],this.__position+=1),C},a.prototype.peek=function(C){var I=null;return C=C||0,C+=this.__position,C>=0&&C<this.__tokens_length&&(I=this.__tokens[C]),I},a.prototype.add=function(C){this.__parent_token&&(C.parent=this.__parent_token),this.__tokens.push(C),this.__tokens_length+=1},me.exports.TokenStream=a},function(me,a,C){var I=C(12).Pattern;function m(u,x){I.call(this,u,x),x?this._line_regexp=this._input.get_regexp(x._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new I,m.prototype.__set_whitespace_patterns=function(u,x){u+="\\t ",x+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+x+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+x+"]")},m.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var x=this.__split(this._newline_regexp,u);this.newline_count=x.length-1,this.whitespace_before_token=x[this.newline_count]}return u},m.prototype.matching=function(u,x){var y=this._create();return y.__set_whitespace_patterns(u,x),y._update(),y},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(u,x){u.lastIndex=0;for(var y=0,O=[],te=u.exec(x);te;)O.push(x.substring(y,te.index)),y=te.index+te[0].length,te=u.exec(x);return y<x.length?O.push(x.substring(y,x.length)):O.push(""),O},me.exports.WhitespacePattern=m},function(me){function a(C,I){this._input=C,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,I&&(this._starting_pattern=this._input.get_regexp(I._starting_pattern,!0),this._match_pattern=this._input.get_regexp(I._match_pattern,!0),this._until_pattern=this._input.get_regexp(I._until_pattern),this._until_after=I._until_after)}a.prototype.read=function(){var C=this._input.read(this._starting_pattern);return(!this._starting_pattern||C)&&(C+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),C},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(C){var I=this._create();return I._until_after=!0,I._until_pattern=this._input.get_regexp(C),I._update(),I},a.prototype.until=function(C){var I=this._create();return I._until_after=!1,I._until_pattern=this._input.get_regexp(C),I._update(),I},a.prototype.starting_with=function(C){var I=this._create();return I._starting_pattern=this._input.get_regexp(C,!0),I._update(),I},a.prototype.matching=function(C){var I=this._create();return I._match_pattern=this._input.get_regexp(C,!0),I._update(),I},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},me.exports.Pattern=a},function(me){function a(C,I){C=typeof C=="string"?C:C.source,I=typeof I=="string"?I:I.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+I,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+I,"g")}a.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var I={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(C);m;)I[m[1]]=m[2],m=this.__directive_pattern.exec(C);return I},a.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},me.exports.Directives=a},function(me,a,C){var I=C(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(x,y){I.call(this,x,y),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),y&&(this.__template_pattern=this._input.get_regexp(y.__template_pattern),this._excluded=Object.assign(this._excluded,y._excluded),this._disabled=Object.assign(this._disabled,y._disabled));var O=new I(x);this.__patterns={handlebars_comment:O.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:O.starting_with(/{{{/).until_after(/}}}/),handlebars:O.starting_with(/{{/).until_after(/}}/),php:O.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:O.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:O.starting_with(/{%/).until_after(/%}/),django_value:O.starting_with(/{{/).until_after(/}}/),django_comment:O.starting_with(/{#/).until_after(/#}/),smarty:O.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:O.starting_with(/{\*/).until_after(/\*}/),smarty_literal:O.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new I,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(x){var y=this._create();return y._disabled[x]=!0,y._update(),y},u.prototype.read_options=function(x){var y=this._create();for(var O in m)y._disabled[O]=x.templating.indexOf(O)===-1;return y._update(),y},u.prototype.exclude=function(x){var y=this._create();return y._excluded[x]=!0,y._update(),y},u.prototype.read=function(){var x="";this._match_pattern?x=this._input.read(this._starting_pattern):x=this._input.read(this._starting_pattern,this.__template_pattern);for(var y=this._read_template();y;)this._match_pattern?y+=this._input.read(this._match_pattern):y+=this._input.readUntil(this.__template_pattern),x+=y,y=this._read_template();return this._until_after&&(x+=this._input.readUntilAfter(this._until_pattern)),x},u.prototype.__set_templated_pattern=function(){var x=[];this._disabled.php||x.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||x.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(x.push(this.__patterns.django._starting_pattern.source),x.push(this.__patterns.django_value._starting_pattern.source),x.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||x.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&x.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+x.join("|")+")")},u.prototype._read_template=function(){var x="",y=this._input.peek();if(y==="<"){var O=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&O==="?"&&(x=x||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&O==="%"&&(x=x||this.__patterns.erb.read())}else y==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(x=x||this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars_unescaped.read(),x=x||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(x=x||this.__patterns.django_value.read()),this._excluded.django||(x=x||this.__patterns.django_comment.read(),x=x||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(x=x||this.__patterns.smarty_comment.read(),x=x||this.__patterns.smarty_literal.read(),x=x||this.__patterns.smarty.read()));return x},me.exports.TemplatablePattern=u}],U={};function H(me){var a=U[me];if(a!==void 0)return a.exports;var C=U[me]={exports:{}};return ye[me](C,C.exports,H),C.exports}var S=H(0);N=S})();var X=N;h=[],z=function(){return{js_beautify:X}}.apply(Ze,h),z!==void 0&&(Wt.exports=z)})()},15342:function(Wt){(function(h,z){Wt.exports=z()})(typeof self!="undefined"?self:this,function(){return function(Ze){var h={};function z(N){if(h[N])return h[N].exports;var X=h[N]={i:N,l:!1,exports:{}};return Ze[N].call(X.exports,X,X.exports,z),X.l=!0,X.exports}return z.m=Ze,z.c=h,z.d=function(N,X,ye){z.o(N,X)||Object.defineProperty(N,X,{enumerable:!0,get:ye})},z.r=function(N){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})},z.t=function(N,X){if(X&1&&(N=z(N)),X&8||X&4&&typeof N=="object"&&N&&N.__esModule)return N;var ye=Object.create(null);if(z.r(ye),Object.defineProperty(ye,"default",{enumerable:!0,value:N}),X&2&&typeof N!="string")for(var U in N)z.d(ye,U,function(H){return N[H]}.bind(null,U));return ye},z.n=function(N){var X=N&&N.__esModule?function(){return N.default}:function(){return N};return z.d(X,"a",X),X},z.o=function(N,X){return Object.prototype.hasOwnProperty.call(N,X)},z.p="",z(z.s=1)}([function(Ze,h,z){},function(Ze,h,z){"use strict";z.r(h);var N=z(0),X=function(){function q(l,d,f){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=f}return q.range=function(d,f){return f?!d||!d.loc||!f.loc||d.loc.lexer!==f.loc.lexer?null:new q(d.loc.lexer,d.loc.start,f.loc.end):d&&d.loc},q}(),ye=function(){function q(d,f){this.text=void 0,this.loc=void 0,this.text=d,this.loc=f}var l=q.prototype;return l.range=function(f,g){return new q(g,X.range(this,f))},q}(),U=function q(l,d){this.position=void 0;var f="KaTeX parse error: "+l,g,k=d&&d.loc;if(k&&k.start<=k.end){var ae=k.lexer.input;g=k.start;var Re=k.end;g===ae.length?f+=" at end of input: ":f+=" at position "+(g+1)+": ";var Le=ae.slice(g,Re).replace(/[^]/g,"$&\u0332"),Qe;g>15?Qe="\u2026"+ae.slice(g-15,g):Qe=ae.slice(0,g);var dt;Re+15<ae.length?dt=ae.slice(Re,Re+15)+"\u2026":dt=ae.slice(Re),f+=Qe+Le+dt}var wt=new Error(f);return wt.name="ParseError",wt.__proto__=q.prototype,wt.position=g,wt};U.prototype.__proto__=Error.prototype;var H=U,S=function(l,d){return l.indexOf(d)!==-1},me=function(l,d){return l===void 0?d:l},a=/([A-Z])/g,C=function(l){return l.replace(a,"-$1").toLowerCase()},I={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},m=/[&><"']/g;function u(q){return String(q).replace(m,function(l){return I[l]})}var x=function q(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?q(l.body[0]):l:l.type==="font"?q(l.body):l},y=function(l){var d=x(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},O=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},te=function(l){var d=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(l);return d!=null?d[1]:"_relative"},B={contains:S,deflt:me,escape:u,hyphenate:C,getBaseElem:x,isCharacterBox:y,protocolFromUrl:te},M=function(){function q(d){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,d=d||{},this.displayMode=B.deflt(d.displayMode,!1),this.output=B.deflt(d.output,"htmlAndMathml"),this.leqno=B.deflt(d.leqno,!1),this.fleqn=B.deflt(d.fleqn,!1),this.throwOnError=B.deflt(d.throwOnError,!0),this.errorColor=B.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,B.deflt(d.minRuleThickness,0)),this.colorIsTextColor=B.deflt(d.colorIsTextColor,!1),this.strict=B.deflt(d.strict,"warn"),this.trust=B.deflt(d.trust,!1),this.maxSize=Math.max(0,B.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,B.deflt(d.maxExpand,1e3))}var l=q.prototype;return l.reportNonstrict=function(f,g,k){var ae=this.strict;if(typeof ae=="function"&&(ae=ae(f,g,k)),!(!ae||ae==="ignore")){if(ae===!0||ae==="error")throw new H("LaTeX-incompatible input and strict mode is set to 'error': "+(g+" ["+f+"]"),k);ae==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(g+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ae+"': "+g+" ["+f+"]"))}},l.useStrictBehavior=function(f,g,k){var ae=this.strict;if(typeof ae=="function")try{ae=ae(f,g,k)}catch(Re){ae="error"}return!ae||ae==="ignore"?!1:ae===!0||ae==="error"?!0:ae==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(g+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ae+"': "+g+" ["+f+"]")),!1)},l.isTrusted=function(f){f.url&&!f.protocol&&(f.protocol=B.protocolFromUrl(f.url));var g=typeof this.trust=="function"?this.trust(f):this.trust;return!!g},q}(),W=function(){function q(d,f,g){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=f,this.cramped=g}var l=q.prototype;return l.sup=function(){return de[ee[this.id]]},l.sub=function(){return de[Z[this.id]]},l.fracNum=function(){return de[pe[this.id]]},l.fracDen=function(){return de[P[this.id]]},l.cramp=function(){return de[ie[this.id]]},l.text=function(){return de[Q[this.id]]},l.isTight=function(){return this.size>=2},q}(),V=0,b=1,T=2,G=3,j=4,be=5,_e=6,xe=7,de=[new W(V,0,!1),new W(b,0,!0),new W(T,1,!1),new W(G,1,!0),new W(j,2,!1),new W(be,2,!0),new W(_e,3,!1),new W(xe,3,!0)],ee=[j,be,j,be,_e,xe,_e,xe],Z=[be,be,be,be,xe,xe,xe,xe],pe=[T,G,j,be,_e,xe,_e,xe],P=[G,G,be,be,xe,xe,xe,xe],ie=[b,b,G,G,be,be,xe,xe],Q=[V,b,T,G,T,G,T,G],v={DISPLAY:de[V],TEXT:de[T],SCRIPT:de[j],SCRIPTSCRIPT:de[_e]},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]]}];function K(q){for(var l=0;l<E.length;l++)for(var d=E[l],f=0;f<d.blocks.length;f++){var g=d.blocks[f];if(q>=g[0]&&q<=g[1])return d.name}return null}var fe=[];E.forEach(function(q){return q.blocks.forEach(function(l){return fe.push.apply(fe,l)})});function Be(q){for(var l=0;l<fe.length;l+=2)if(q>=fe[l]&&q<=fe[l+1])return!0;return!1}var Ke=80,Me=function(l,d){return"M95,"+(622+l+d)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+l/2.075+" -"+l+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+l)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},Ye=function(l,d){return"M263,"+(601+l+d)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+l/2.084+" -"+l+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+l)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},ht=function(l,d){return"M983 "+(10+l+d)+`
l`+l/3.13+" -"+l+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},pt=function(l,d){return"M424,"+(2398+l+d)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+l)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+l)+" "+d+`
h400000v`+(40+l)+"h-400000z"},at=function(l,d){return"M473,"+(2713+l+d)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+l)+" "+d+"h400000v"+(40+l)+"H1017.7z"},Bt=function(l,d,f){var g=f-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
H742v`+g+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+d+"H400000v"+(40+l)+"H742z"},Vt=function(l,d,f){d=1e3*d;var g="";switch(l){case"sqrtMain":g=Me(d,Ke);break;case"sqrtSize1":g=Ye(d,Ke);break;case"sqrtSize2":g=ht(d,Ke);break;case"sqrtSize3":g=pt(d,Ke);break;case"sqrtSize4":g=at(d,Ke);break;case"sqrtTall":g=Bt(d,Ke,f)}return g},qt={doubleleftarrow:`M262 157
l10-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
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
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
c2 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
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
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-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
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
-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
-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
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-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
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
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
-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
c-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
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
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
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
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
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
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 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
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-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
-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
-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
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
-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
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
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
-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
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
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-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
-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
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8
c28.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
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-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
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
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
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.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
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
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
-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
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.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
60.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
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 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
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.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
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 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
-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
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
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
-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
-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
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-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
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.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
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-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
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
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
-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
-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
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
-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
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
m0 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
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
-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
-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
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
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
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-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
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
-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
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
M399960 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
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-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
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
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
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
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
c-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
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
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
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
-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
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
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-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
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 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
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
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-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
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-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
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-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
-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
-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
-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,
-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,
-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,
-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,
-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
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-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
s-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
121.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
s2.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
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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
-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
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,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
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-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
c-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
M0 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
c1.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,
1c0,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,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 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
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-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
c-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
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},$t=function(){function q(d){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=d,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=q.prototype;return l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){for(var f=document.createDocumentFragment(),g=0;g<this.children.length;g++)f.appendChild(this.children[g].toNode());return f},l.toMarkup=function(){for(var f="",g=0;g<this.children.length;g++)f+=this.children[g].toMarkup();return f},l.toText=function(){var f=function(k){return k.toText()};return this.children.map(f).join("")},q}(),Gt=function(l){return l.filter(function(d){return d}).join(" ")},lt=function(l,d,f){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=f||{},d){d.style.isTight()&&this.classes.push("mtight");var g=d.getColor();g&&(this.style.color=g)}},se=function(l){var d=document.createElement(l);d.className=Gt(this.classes);for(var f in this.style)this.style.hasOwnProperty(f)&&(d.style[f]=this.style[f]);for(var g in this.attributes)this.attributes.hasOwnProperty(g)&&d.setAttribute(g,this.attributes[g]);for(var k=0;k<this.children.length;k++)d.appendChild(this.children[k].toNode());return d},ve=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+B.escape(Gt(this.classes))+'"');var f="";for(var g in this.style)this.style.hasOwnProperty(g)&&(f+=B.hyphenate(g)+":"+this.style[g]+";");f&&(d+=' style="'+B.escape(f)+'"');for(var k in this.attributes)this.attributes.hasOwnProperty(k)&&(d+=" "+k+'="'+B.escape(this.attributes[k])+'"');d+=">";for(var ae=0;ae<this.children.length;ae++)d+=this.children[ae].toMarkup();return d+="</"+l+">",d},ne=function(){function q(d,f,g,k){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,lt.call(this,d,g,k),this.children=f||[]}var l=q.prototype;return l.setAttribute=function(f,g){this.attributes[f]=g},l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){return se.call(this,"span")},l.toMarkup=function(){return ve.call(this,"span")},q}(),Y=function(){function q(d,f,g,k){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,lt.call(this,f,k),this.children=g||[],this.setAttribute("href",d)}var l=q.prototype;return l.setAttribute=function(f,g){this.attributes[f]=g},l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){return se.call(this,"a")},l.toMarkup=function(){return ve.call(this,"a")},q}(),Ae=function(){function q(d,f,g){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=f,this.src=d,this.classes=["mord"],this.style=g}var l=q.prototype;return l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){var f=document.createElement("img");f.src=this.src,f.alt=this.alt,f.className="mord";for(var g in this.style)this.style.hasOwnProperty(g)&&(f.style[g]=this.style[g]);return f},l.toMarkup=function(){var f="<img src='"+this.src+" 'alt='"+this.alt+"' ",g="";for(var k in this.style)this.style.hasOwnProperty(k)&&(g+=B.hyphenate(k)+":"+this.style[k]+";");return g&&(f+=' style="'+B.escape(g)+'"'),f+="'/>",f},q}(),$={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},R=function(){function q(d,f,g,k,ae,Re,Le,Qe){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=d,this.height=f||0,this.depth=g||0,this.italic=k||0,this.skew=ae||0,this.width=Re||0,this.classes=Le||[],this.style=Qe||{},this.maxFontSize=0;var dt=K(this.text.charCodeAt(0));dt&&this.classes.push(dt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=$[this.text])}var l=q.prototype;return l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){var f=document.createTextNode(this.text),g=null;this.italic>0&&(g=document.createElement("span"),g.style.marginRight=this.italic+"em"),this.classes.length>0&&(g=g||document.createElement("span"),g.className=Gt(this.classes));for(var k in this.style)this.style.hasOwnProperty(k)&&(g=g||document.createElement("span"),g.style[k]=this.style[k]);return g?(g.appendChild(f),g):f},l.toMarkup=function(){var f=!1,g="<span";this.classes.length&&(f=!0,g+=' class="',g+=B.escape(Gt(this.classes)),g+='"');var k="";this.italic>0&&(k+="margin-right:"+this.italic+"em;");for(var ae in this.style)this.style.hasOwnProperty(ae)&&(k+=B.hyphenate(ae)+":"+this.style[ae]+";");k&&(f=!0,g+=' style="'+B.escape(k)+'"');var Re=B.escape(this.text);return f?(g+=">",g+=Re,g+="</span>",g):Re},q}(),L=function(){function q(d,f){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=f||{}}var l=q.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"svg");for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&g.setAttribute(k,this.attributes[k]);for(var ae=0;ae<this.children.length;ae++)g.appendChild(this.children[ae].toNode());return g},l.toMarkup=function(){var f="<svg";for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+"='"+this.attributes[g]+"'");f+=">";for(var k=0;k<this.children.length;k++)f+=this.children[k].toMarkup();return f+="</svg>",f},q}(),oe=function(){function q(d,f){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=f}var l=q.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"path");return this.alternate?g.setAttribute("d",this.alternate):g.setAttribute("d",qt[this.pathName]),g},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+qt[this.pathName]+"'/>"},q}(),le=function(){function q(d){this.attributes=void 0,this.attributes=d||{}}var l=q.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"line");for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&g.setAttribute(k,this.attributes[k]);return g},l.toMarkup=function(){var f="<line";for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+"='"+this.attributes[g]+"'");return f+="/>",f},q}();function J(q){if(q instanceof R)return q;throw new Error("Expected symbolNode but got "+String(q)+".")}function De(q){if(q instanceof ne)return q;throw new Error("Expected span<HtmlDomNode> but got "+String(q)+".")}var je={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ke={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Pe={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Xe(q,l){je[q]=l}function st(q,l,d){if(!je[l])throw new Error("Font metrics not found for font: "+l+".");var f=q.charCodeAt(0),g=je[l][f];if(!g&&q[0]in Pe&&(f=Pe[q[0]].charCodeAt(0),g=je[l][f]),!g&&d==="text"&&Be(f)&&(g=je[l][77]),g)return{depth:g[0],height:g[1],italic:g[2],skew:g[3],width:g[4]}}var Ge={};function gt(q){var l;if(q>=5?l=0:q>=3?l=1:l=2,!Ge[l]){var d=Ge[l]={cssEmPerMu:ke.quad[l]/18};for(var f in ke)ke.hasOwnProperty(f)&&(d[f]=ke[f][l])}return Ge[l]}var bt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},mt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zt={math:{},text:{}},Ct=zt;function w(q,l,d,f,g,k){zt[q][g]={font:l,group:d,replace:f},k&&f&&(zt[q][f]=zt[q][g])}var A="math",vt="text",ue="main",Ne="ams",bn="accent-token",We="bin",rt="close",Je="inner",Ee="mathord",Te="op-token",ze="open",qe="punct",ge="rel",Jt="spacing",He="textord";w(A,ue,ge,"\u2261","\\equiv",!0),w(A,ue,ge,"\u227A","\\prec",!0),w(A,ue,ge,"\u227B","\\succ",!0),w(A,ue,ge,"\u223C","\\sim",!0),w(A,ue,ge,"\u22A5","\\perp"),w(A,ue,ge,"\u2AAF","\\preceq",!0),w(A,ue,ge,"\u2AB0","\\succeq",!0),w(A,ue,ge,"\u2243","\\simeq",!0),w(A,ue,ge,"\u2223","\\mid",!0),w(A,ue,ge,"\u226A","\\ll",!0),w(A,ue,ge,"\u226B","\\gg",!0),w(A,ue,ge,"\u224D","\\asymp",!0),w(A,ue,ge,"\u2225","\\parallel"),w(A,ue,ge,"\u22C8","\\bowtie",!0),w(A,ue,ge,"\u2323","\\smile",!0),w(A,ue,ge,"\u2291","\\sqsubseteq",!0),w(A,ue,ge,"\u2292","\\sqsupseteq",!0),w(A,ue,ge,"\u2250","\\doteq",!0),w(A,ue,ge,"\u2322","\\frown",!0),w(A,ue,ge,"\u220B","\\ni",!0),w(A,ue,ge,"\u221D","\\propto",!0),w(A,ue,ge,"\u22A2","\\vdash",!0),w(A,ue,ge,"\u22A3","\\dashv",!0),w(A,ue,ge,"\u220B","\\owns"),w(A,ue,qe,".","\\ldotp"),w(A,ue,qe,"\u22C5","\\cdotp"),w(A,ue,He,"#","\\#"),w(vt,ue,He,"#","\\#"),w(A,ue,He,"&","\\&"),w(vt,ue,He,"&","\\&"),w(A,ue,He,"\u2135","\\aleph",!0),w(A,ue,He,"\u2200","\\forall",!0),w(A,ue,He,"\u210F","\\hbar",!0),w(A,ue,He,"\u2203","\\exists",!0),w(A,ue,He,"\u2207","\\nabla",!0),w(A,ue,He,"\u266D","\\flat",!0),w(A,ue,He,"\u2113","\\ell",!0),w(A,ue,He,"\u266E","\\natural",!0),w(A,ue,He,"\u2663","\\clubsuit",!0),w(A,ue,He,"\u2118","\\wp",!0),w(A,ue,He,"\u266F","\\sharp",!0),w(A,ue,He,"\u2662","\\diamondsuit",!0),w(A,ue,He,"\u211C","\\Re",!0),w(A,ue,He,"\u2661","\\heartsuit",!0),w(A,ue,He,"\u2111","\\Im",!0),w(A,ue,He,"\u2660","\\spadesuit",!0),w(vt,ue,He,"\xA7","\\S",!0),w(vt,ue,He,"\xB6","\\P",!0),w(A,ue,He,"\u2020","\\dag"),w(vt,ue,He,"\u2020","\\dag"),w(vt,ue,He,"\u2020","\\textdagger"),w(A,ue,He,"\u2021","\\ddag"),w(vt,ue,He,"\u2021","\\ddag"),w(vt,ue,He,"\u2021","\\textdaggerdbl"),w(A,ue,rt,"\u23B1","\\rmoustache",!0),w(A,ue,ze,"\u23B0","\\lmoustache",!0),w(A,ue,rt,"\u27EF","\\rgroup",!0),w(A,ue,ze,"\u27EE","\\lgroup",!0),w(A,ue,We,"\u2213","\\mp",!0),w(A,ue,We,"\u2296","\\ominus",!0),w(A,ue,We,"\u228E","\\uplus",!0),w(A,ue,We,"\u2293","\\sqcap",!0),w(A,ue,We,"\u2217","\\ast"),w(A,ue,We,"\u2294","\\sqcup",!0),w(A,ue,We,"\u25EF","\\bigcirc"),w(A,ue,We,"\u2219","\\bullet"),w(A,ue,We,"\u2021","\\ddagger"),w(A,ue,We,"\u2240","\\wr",!0),w(A,ue,We,"\u2A3F","\\amalg"),w(A,ue,We,"&","\\And"),w(A,ue,ge,"\u27F5","\\longleftarrow",!0),w(A,ue,ge,"\u21D0","\\Leftarrow",!0),w(A,ue,ge,"\u27F8","\\Longleftarrow",!0),w(A,ue,ge,"\u27F6","\\longrightarrow",!0),w(A,ue,ge,"\u21D2","\\Rightarrow",!0),w(A,ue,ge,"\u27F9","\\Longrightarrow",!0),w(A,ue,ge,"\u2194","\\leftrightarrow",!0),w(A,ue,ge,"\u27F7","\\longleftrightarrow",!0),w(A,ue,ge,"\u21D4","\\Leftrightarrow",!0),w(A,ue,ge,"\u27FA","\\Longleftrightarrow",!0),w(A,ue,ge,"\u21A6","\\mapsto",!0),w(A,ue,ge,"\u27FC","\\longmapsto",!0),w(A,ue,ge,"\u2197","\\nearrow",!0),w(A,ue,ge,"\u21A9","\\hookleftarrow",!0),w(A,ue,ge,"\u21AA","\\hookrightarrow",!0),w(A,ue,ge,"\u2198","\\searrow",!0),w(A,ue,ge,"\u21BC","\\leftharpoonup",!0),w(A,ue,ge,"\u21C0","\\rightharpoonup",!0),w(A,ue,ge,"\u2199","\\swarrow",!0),w(A,ue,ge,"\u21BD","\\leftharpoondown",!0),w(A,ue,ge,"\u21C1","\\rightharpoondown",!0),w(A,ue,ge,"\u2196","\\nwarrow",!0),w(A,ue,ge,"\u21CC","\\rightleftharpoons",!0),w(A,Ne,ge,"\u226E","\\nless",!0),w(A,Ne,ge,"\uE010","\\@nleqslant"),w(A,Ne,ge,"\uE011","\\@nleqq"),w(A,Ne,ge,"\u2A87","\\lneq",!0),w(A,Ne,ge,"\u2268","\\lneqq",!0),w(A,Ne,ge,"\uE00C","\\@lvertneqq"),w(A,Ne,ge,"\u22E6","\\lnsim",!0),w(A,Ne,ge,"\u2A89","\\lnapprox",!0),w(A,Ne,ge,"\u2280","\\nprec",!0),w(A,Ne,ge,"\u22E0","\\npreceq",!0),w(A,Ne,ge,"\u22E8","\\precnsim",!0),w(A,Ne,ge,"\u2AB9","\\precnapprox",!0),w(A,Ne,ge,"\u2241","\\nsim",!0),w(A,Ne,ge,"\uE006","\\@nshortmid"),w(A,Ne,ge,"\u2224","\\nmid",!0),w(A,Ne,ge,"\u22AC","\\nvdash",!0),w(A,Ne,ge,"\u22AD","\\nvDash",!0),w(A,Ne,ge,"\u22EA","\\ntriangleleft"),w(A,Ne,ge,"\u22EC","\\ntrianglelefteq",!0),w(A,Ne,ge,"\u228A","\\subsetneq",!0),w(A,Ne,ge,"\uE01A","\\@varsubsetneq"),w(A,Ne,ge,"\u2ACB","\\subsetneqq",!0),w(A,Ne,ge,"\uE017","\\@varsubsetneqq"),w(A,Ne,ge,"\u226F","\\ngtr",!0),w(A,Ne,ge,"\uE00F","\\@ngeqslant"),w(A,Ne,ge,"\uE00E","\\@ngeqq"),w(A,Ne,ge,"\u2A88","\\gneq",!0),w(A,Ne,ge,"\u2269","\\gneqq",!0),w(A,Ne,ge,"\uE00D","\\@gvertneqq"),w(A,Ne,ge,"\u22E7","\\gnsim",!0),w(A,Ne,ge,"\u2A8A","\\gnapprox",!0),w(A,Ne,ge,"\u2281","\\nsucc",!0),w(A,Ne,ge,"\u22E1","\\nsucceq",!0),w(A,Ne,ge,"\u22E9","\\succnsim",!0),w(A,Ne,ge,"\u2ABA","\\succnapprox",!0),w(A,Ne,ge,"\u2246","\\ncong",!0),w(A,Ne,ge,"\uE007","\\@nshortparallel"),w(A,Ne,ge,"\u2226","\\nparallel",!0),w(A,Ne,ge,"\u22AF","\\nVDash",!0),w(A,Ne,ge,"\u22EB","\\ntriangleright"),w(A,Ne,ge,"\u22ED","\\ntrianglerighteq",!0),w(A,Ne,ge,"\uE018","\\@nsupseteqq"),w(A,Ne,ge,"\u228B","\\supsetneq",!0),w(A,Ne,ge,"\uE01B","\\@varsupsetneq"),w(A,Ne,ge,"\u2ACC","\\supsetneqq",!0),w(A,Ne,ge,"\uE019","\\@varsupsetneqq"),w(A,Ne,ge,"\u22AE","\\nVdash",!0),w(A,Ne,ge,"\u2AB5","\\precneqq",!0),w(A,Ne,ge,"\u2AB6","\\succneqq",!0),w(A,Ne,ge,"\uE016","\\@nsubseteqq"),w(A,Ne,We,"\u22B4","\\unlhd"),w(A,Ne,We,"\u22B5","\\unrhd"),w(A,Ne,ge,"\u219A","\\nleftarrow",!0),w(A,Ne,ge,"\u219B","\\nrightarrow",!0),w(A,Ne,ge,"\u21CD","\\nLeftarrow",!0),w(A,Ne,ge,"\u21CF","\\nRightarrow",!0),w(A,Ne,ge,"\u21AE","\\nleftrightarrow",!0),w(A,Ne,ge,"\u21CE","\\nLeftrightarrow",!0),w(A,Ne,ge,"\u25B3","\\vartriangle"),w(A,Ne,He,"\u210F","\\hslash"),w(A,Ne,He,"\u25BD","\\triangledown"),w(A,Ne,He,"\u25CA","\\lozenge"),w(A,Ne,He,"\u24C8","\\circledS"),w(A,Ne,He,"\xAE","\\circledR"),w(vt,Ne,He,"\xAE","\\circledR"),w(A,Ne,He,"\u2221","\\measuredangle",!0),w(A,Ne,He,"\u2204","\\nexists"),w(A,Ne,He,"\u2127","\\mho"),w(A,Ne,He,"\u2132","\\Finv",!0),w(A,Ne,He,"\u2141","\\Game",!0),w(A,Ne,He,"\u2035","\\backprime"),w(A,Ne,He,"\u25B2","\\blacktriangle"),w(A,Ne,He,"\u25BC","\\blacktriangledown"),w(A,Ne,He,"\u25A0","\\blacksquare"),w(A,Ne,He,"\u29EB","\\blacklozenge"),w(A,Ne,He,"\u2605","\\bigstar"),w(A,Ne,He,"\u2222","\\sphericalangle",!0),w(A,Ne,He,"\u2201","\\complement",!0),w(A,Ne,He,"\xF0","\\eth",!0),w(A,Ne,He,"\u2571","\\diagup"),w(A,Ne,He,"\u2572","\\diagdown"),w(A,Ne,He,"\u25A1","\\square"),w(A,Ne,He,"\u25A1","\\Box"),w(A,Ne,He,"\u25CA","\\Diamond"),w(A,Ne,He,"\xA5","\\yen",!0),w(vt,Ne,He,"\xA5","\\yen",!0),w(A,Ne,He,"\u2713","\\checkmark",!0),w(vt,Ne,He,"\u2713","\\checkmark"),w(A,Ne,He,"\u2136","\\beth",!0),w(A,Ne,He,"\u2138","\\daleth",!0),w(A,Ne,He,"\u2137","\\gimel",!0),w(A,Ne,He,"\u03DD","\\digamma",!0),w(A,Ne,He,"\u03F0","\\varkappa"),w(A,Ne,ze,"\u250C","\\ulcorner",!0),w(A,Ne,rt,"\u2510","\\urcorner",!0),w(A,Ne,ze,"\u2514","\\llcorner",!0),w(A,Ne,rt,"\u2518","\\lrcorner",!0),w(A,Ne,ge,"\u2266","\\leqq",!0),w(A,Ne,ge,"\u2A7D","\\leqslant",!0),w(A,Ne,ge,"\u2A95","\\eqslantless",!0),w(A,Ne,ge,"\u2272","\\lesssim",!0),w(A,Ne,ge,"\u2A85","\\lessapprox",!0),w(A,Ne,ge,"\u224A","\\approxeq",!0),w(A,Ne,We,"\u22D6","\\lessdot"),w(A,Ne,ge,"\u22D8","\\lll",!0),w(A,Ne,ge,"\u2276","\\lessgtr",!0),w(A,Ne,ge,"\u22DA","\\lesseqgtr",!0),w(A,Ne,ge,"\u2A8B","\\lesseqqgtr",!0),w(A,Ne,ge,"\u2251","\\doteqdot"),w(A,Ne,ge,"\u2253","\\risingdotseq",!0),w(A,Ne,ge,"\u2252","\\fallingdotseq",!0),w(A,Ne,ge,"\u223D","\\backsim",!0),w(A,Ne,ge,"\u22CD","\\backsimeq",!0),w(A,Ne,ge,"\u2AC5","\\subseteqq",!0),w(A,Ne,ge,"\u22D0","\\Subset",!0),w(A,Ne,ge,"\u228F","\\sqsubset",!0),w(A,Ne,ge,"\u227C","\\preccurlyeq",!0),w(A,Ne,ge,"\u22DE","\\curlyeqprec",!0),w(A,Ne,ge,"\u227E","\\precsim",!0),w(A,Ne,ge,"\u2AB7","\\precapprox",!0),w(A,Ne,ge,"\u22B2","\\vartriangleleft"),w(A,Ne,ge,"\u22B4","\\trianglelefteq"),w(A,Ne,ge,"\u22A8","\\vDash",!0),w(A,Ne,ge,"\u22AA","\\Vvdash",!0),w(A,Ne,ge,"\u2323","\\smallsmile"),w(A,Ne,ge,"\u2322","\\smallfrown"),w(A,Ne,ge,"\u224F","\\bumpeq",!0),w(A,Ne,ge,"\u224E","\\Bumpeq",!0),w(A,Ne,ge,"\u2267","\\geqq",!0),w(A,Ne,ge,"\u2A7E","\\geqslant",!0),w(A,Ne,ge,"\u2A96","\\eqslantgtr",!0),w(A,Ne,ge,"\u2273","\\gtrsim",!0),w(A,Ne,ge,"\u2A86","\\gtrapprox",!0),w(A,Ne,We,"\u22D7","\\gtrdot"),w(A,Ne,ge,"\u22D9","\\ggg",!0),w(A,Ne,ge,"\u2277","\\gtrless",!0),w(A,Ne,ge,"\u22DB","\\gtreqless",!0),w(A,Ne,ge,"\u2A8C","\\gtreqqless",!0),w(A,Ne,ge,"\u2256","\\eqcirc",!0),w(A,Ne,ge,"\u2257","\\circeq",!0),w(A,Ne,ge,"\u225C","\\triangleq",!0),w(A,Ne,ge,"\u223C","\\thicksim"),w(A,Ne,ge,"\u2248","\\thickapprox"),w(A,Ne,ge,"\u2AC6","\\supseteqq",!0),w(A,Ne,ge,"\u22D1","\\Supset",!0),w(A,Ne,ge,"\u2290","\\sqsupset",!0),w(A,Ne,ge,"\u227D","\\succcurlyeq",!0),w(A,Ne,ge,"\u22DF","\\curlyeqsucc",!0),w(A,Ne,ge,"\u227F","\\succsim",!0),w(A,Ne,ge,"\u2AB8","\\succapprox",!0),w(A,Ne,ge,"\u22B3","\\vartriangleright"),w(A,Ne,ge,"\u22B5","\\trianglerighteq"),w(A,Ne,ge,"\u22A9","\\Vdash",!0),w(A,Ne,ge,"\u2223","\\shortmid"),w(A,Ne,ge,"\u2225","\\shortparallel"),w(A,Ne,ge,"\u226C","\\between",!0),w(A,Ne,ge,"\u22D4","\\pitchfork",!0),w(A,Ne,ge,"\u221D","\\varpropto"),w(A,Ne,ge,"\u25C0","\\blacktriangleleft"),w(A,Ne,ge,"\u2234","\\therefore",!0),w(A,Ne,ge,"\u220D","\\backepsilon"),w(A,Ne,ge,"\u25B6","\\blacktriangleright"),w(A,Ne,ge,"\u2235","\\because",!0),w(A,Ne,ge,"\u22D8","\\llless"),w(A,Ne,ge,"\u22D9","\\gggtr"),w(A,Ne,We,"\u22B2","\\lhd"),w(A,Ne,We,"\u22B3","\\rhd"),w(A,Ne,ge,"\u2242","\\eqsim",!0),w(A,ue,ge,"\u22C8","\\Join"),w(A,Ne,ge,"\u2251","\\Doteq",!0),w(A,Ne,We,"\u2214","\\dotplus",!0),w(A,Ne,We,"\u2216","\\smallsetminus"),w(A,Ne,We,"\u22D2","\\Cap",!0),w(A,Ne,We,"\u22D3","\\Cup",!0),w(A,Ne,We,"\u2A5E","\\doublebarwedge",!0),w(A,Ne,We,"\u229F","\\boxminus",!0),w(A,Ne,We,"\u229E","\\boxplus",!0),w(A,Ne,We,"\u22C7","\\divideontimes",!0),w(A,Ne,We,"\u22C9","\\ltimes",!0),w(A,Ne,We,"\u22CA","\\rtimes",!0),w(A,Ne,We,"\u22CB","\\leftthreetimes",!0),w(A,Ne,We,"\u22CC","\\rightthreetimes",!0),w(A,Ne,We,"\u22CF","\\curlywedge",!0),w(A,Ne,We,"\u22CE","\\curlyvee",!0),w(A,Ne,We,"\u229D","\\circleddash",!0),w(A,Ne,We,"\u229B","\\circledast",!0),w(A,Ne,We,"\u22C5","\\centerdot"),w(A,Ne,We,"\u22BA","\\intercal",!0),w(A,Ne,We,"\u22D2","\\doublecap"),w(A,Ne,We,"\u22D3","\\doublecup"),w(A,Ne,We,"\u22A0","\\boxtimes",!0),w(A,Ne,ge,"\u21E2","\\dashrightarrow",!0),w(A,Ne,ge,"\u21E0","\\dashleftarrow",!0),w(A,Ne,ge,"\u21C7","\\leftleftarrows",!0),w(A,Ne,ge,"\u21C6","\\leftrightarrows",!0),w(A,Ne,ge,"\u21DA","\\Lleftarrow",!0),w(A,Ne,ge,"\u219E","\\twoheadleftarrow",!0),w(A,Ne,ge,"\u21A2","\\leftarrowtail",!0),w(A,Ne,ge,"\u21AB","\\looparrowleft",!0),w(A,Ne,ge,"\u21CB","\\leftrightharpoons",!0),w(A,Ne,ge,"\u21B6","\\curvearrowleft",!0),w(A,Ne,ge,"\u21BA","\\circlearrowleft",!0),w(A,Ne,ge,"\u21B0","\\Lsh",!0),w(A,Ne,ge,"\u21C8","\\upuparrows",!0),w(A,Ne,ge,"\u21BF","\\upharpoonleft",!0),w(A,Ne,ge,"\u21C3","\\downharpoonleft",!0),w(A,Ne,ge,"\u22B8","\\multimap",!0),w(A,Ne,ge,"\u21AD","\\leftrightsquigarrow",!0),w(A,Ne,ge,"\u21C9","\\rightrightarrows",!0),w(A,Ne,ge,"\u21C4","\\rightleftarrows",!0),w(A,Ne,ge,"\u21A0","\\twoheadrightarrow",!0),w(A,Ne,ge,"\u21A3","\\rightarrowtail",!0),w(A,Ne,ge,"\u21AC","\\looparrowright",!0),w(A,Ne,ge,"\u21B7","\\curvearrowright",!0),w(A,Ne,ge,"\u21BB","\\circlearrowright",!0),w(A,Ne,ge,"\u21B1","\\Rsh",!0),w(A,Ne,ge,"\u21CA","\\downdownarrows",!0),w(A,Ne,ge,"\u21BE","\\upharpoonright",!0),w(A,Ne,ge,"\u21C2","\\downharpoonright",!0),w(A,Ne,ge,"\u21DD","\\rightsquigarrow",!0),w(A,Ne,ge,"\u21DD","\\leadsto"),w(A,Ne,ge,"\u21DB","\\Rrightarrow",!0),w(A,Ne,ge,"\u21BE","\\restriction"),w(A,ue,He,"\u2018","`"),w(A,ue,He,"$","\\$"),w(vt,ue,He,"$","\\$"),w(vt,ue,He,"$","\\textdollar"),w(A,ue,He,"%","\\%"),w(vt,ue,He,"%","\\%"),w(A,ue,He,"_","\\_"),w(vt,ue,He,"_","\\_"),w(vt,ue,He,"_","\\textunderscore"),w(A,ue,He,"\u2220","\\angle",!0),w(A,ue,He,"\u221E","\\infty",!0),w(A,ue,He,"\u2032","\\prime"),w(A,ue,He,"\u25B3","\\triangle"),w(A,ue,He,"\u0393","\\Gamma",!0),w(A,ue,He,"\u0394","\\Delta",!0),w(A,ue,He,"\u0398","\\Theta",!0),w(A,ue,He,"\u039B","\\Lambda",!0),w(A,ue,He,"\u039E","\\Xi",!0),w(A,ue,He,"\u03A0","\\Pi",!0),w(A,ue,He,"\u03A3","\\Sigma",!0),w(A,ue,He,"\u03A5","\\Upsilon",!0),w(A,ue,He,"\u03A6","\\Phi",!0),w(A,ue,He,"\u03A8","\\Psi",!0),w(A,ue,He,"\u03A9","\\Omega",!0),w(A,ue,He,"A","\u0391"),w(A,ue,He,"B","\u0392"),w(A,ue,He,"E","\u0395"),w(A,ue,He,"Z","\u0396"),w(A,ue,He,"H","\u0397"),w(A,ue,He,"I","\u0399"),w(A,ue,He,"K","\u039A"),w(A,ue,He,"M","\u039C"),w(A,ue,He,"N","\u039D"),w(A,ue,He,"O","\u039F"),w(A,ue,He,"P","\u03A1"),w(A,ue,He,"T","\u03A4"),w(A,ue,He,"X","\u03A7"),w(A,ue,He,"\xAC","\\neg",!0),w(A,ue,He,"\xAC","\\lnot"),w(A,ue,He,"\u22A4","\\top"),w(A,ue,He,"\u22A5","\\bot"),w(A,ue,He,"\u2205","\\emptyset"),w(A,Ne,He,"\u2205","\\varnothing"),w(A,ue,Ee,"\u03B1","\\alpha",!0),w(A,ue,Ee,"\u03B2","\\beta",!0),w(A,ue,Ee,"\u03B3","\\gamma",!0),w(A,ue,Ee,"\u03B4","\\delta",!0),w(A,ue,Ee,"\u03F5","\\epsilon",!0),w(A,ue,Ee,"\u03B6","\\zeta",!0),w(A,ue,Ee,"\u03B7","\\eta",!0),w(A,ue,Ee,"\u03B8","\\theta",!0),w(A,ue,Ee,"\u03B9","\\iota",!0),w(A,ue,Ee,"\u03BA","\\kappa",!0),w(A,ue,Ee,"\u03BB","\\lambda",!0),w(A,ue,Ee,"\u03BC","\\mu",!0),w(A,ue,Ee,"\u03BD","\\nu",!0),w(A,ue,Ee,"\u03BE","\\xi",!0),w(A,ue,Ee,"\u03BF","\\omicron",!0),w(A,ue,Ee,"\u03C0","\\pi",!0),w(A,ue,Ee,"\u03C1","\\rho",!0),w(A,ue,Ee,"\u03C3","\\sigma",!0),w(A,ue,Ee,"\u03C4","\\tau",!0),w(A,ue,Ee,"\u03C5","\\upsilon",!0),w(A,ue,Ee,"\u03D5","\\phi",!0),w(A,ue,Ee,"\u03C7","\\chi",!0),w(A,ue,Ee,"\u03C8","\\psi",!0),w(A,ue,Ee,"\u03C9","\\omega",!0),w(A,ue,Ee,"\u03B5","\\varepsilon",!0),w(A,ue,Ee,"\u03D1","\\vartheta",!0),w(A,ue,Ee,"\u03D6","\\varpi",!0),w(A,ue,Ee,"\u03F1","\\varrho",!0),w(A,ue,Ee,"\u03C2","\\varsigma",!0),w(A,ue,Ee,"\u03C6","\\varphi",!0),w(A,ue,We,"\u2217","*"),w(A,ue,We,"+","+"),w(A,ue,We,"\u2212","-"),w(A,ue,We,"\u22C5","\\cdot",!0),w(A,ue,We,"\u2218","\\circ"),w(A,ue,We,"\xF7","\\div",!0),w(A,ue,We,"\xB1","\\pm",!0),w(A,ue,We,"\xD7","\\times",!0),w(A,ue,We,"\u2229","\\cap",!0),w(A,ue,We,"\u222A","\\cup",!0),w(A,ue,We,"\u2216","\\setminus"),w(A,ue,We,"\u2227","\\land"),w(A,ue,We,"\u2228","\\lor"),w(A,ue,We,"\u2227","\\wedge",!0),w(A,ue,We,"\u2228","\\vee",!0),w(A,ue,He,"\u221A","\\surd"),w(A,ue,ze,"(","("),w(A,ue,ze,"[","["),w(A,ue,ze,"\u27E8","\\langle",!0),w(A,ue,ze,"\u2223","\\lvert"),w(A,ue,ze,"\u2225","\\lVert"),w(A,ue,rt,")",")"),w(A,ue,rt,"]","]"),w(A,ue,rt,"?","?"),w(A,ue,rt,"!","!"),w(A,ue,rt,"\u27E9","\\rangle",!0),w(A,ue,rt,"\u2223","\\rvert"),w(A,ue,rt,"\u2225","\\rVert"),w(A,ue,ge,"=","="),w(A,ue,ge,"<","<"),w(A,ue,ge,">",">"),w(A,ue,ge,":",":"),w(A,ue,ge,"\u2248","\\approx",!0),w(A,ue,ge,"\u2245","\\cong",!0),w(A,ue,ge,"\u2265","\\ge"),w(A,ue,ge,"\u2265","\\geq",!0),w(A,ue,ge,"\u2190","\\gets"),w(A,ue,ge,">","\\gt"),w(A,ue,ge,"\u2208","\\in",!0),w(A,ue,ge,"\uE020","\\@not"),w(A,ue,ge,"\u2282","\\subset",!0),w(A,ue,ge,"\u2283","\\supset",!0),w(A,ue,ge,"\u2286","\\subseteq",!0),w(A,ue,ge,"\u2287","\\supseteq",!0),w(A,Ne,ge,"\u2288","\\nsubseteq",!0),w(A,Ne,ge,"\u2289","\\nsupseteq",!0),w(A,ue,ge,"\u22A8","\\models"),w(A,ue,ge,"\u2190","\\leftarrow",!0),w(A,ue,ge,"\u2264","\\le"),w(A,ue,ge,"\u2264","\\leq",!0),w(A,ue,ge,"<","\\lt"),w(A,ue,ge,"\u2192","\\rightarrow",!0),w(A,ue,ge,"\u2192","\\to"),w(A,Ne,ge,"\u2271","\\ngeq",!0),w(A,Ne,ge,"\u2270","\\nleq",!0),w(A,ue,Jt,"\xA0","\\ "),w(A,ue,Jt,"\xA0","~"),w(A,ue,Jt,"\xA0","\\space"),w(A,ue,Jt,"\xA0","\\nobreakspace"),w(vt,ue,Jt,"\xA0","\\ "),w(vt,ue,Jt,"\xA0","~"),w(vt,ue,Jt,"\xA0","\\space"),w(vt,ue,Jt,"\xA0","\\nobreakspace"),w(A,ue,Jt,null,"\\nobreak"),w(A,ue,Jt,null,"\\allowbreak"),w(A,ue,qe,",",","),w(A,ue,qe,";",";"),w(A,Ne,We,"\u22BC","\\barwedge",!0),w(A,Ne,We,"\u22BB","\\veebar",!0),w(A,ue,We,"\u2299","\\odot",!0),w(A,ue,We,"\u2295","\\oplus",!0),w(A,ue,We,"\u2297","\\otimes",!0),w(A,ue,He,"\u2202","\\partial",!0),w(A,ue,We,"\u2298","\\oslash",!0),w(A,Ne,We,"\u229A","\\circledcirc",!0),w(A,Ne,We,"\u22A1","\\boxdot",!0),w(A,ue,We,"\u25B3","\\bigtriangleup"),w(A,ue,We,"\u25BD","\\bigtriangledown"),w(A,ue,We,"\u2020","\\dagger"),w(A,ue,We,"\u22C4","\\diamond"),w(A,ue,We,"\u22C6","\\star"),w(A,ue,We,"\u25C3","\\triangleleft"),w(A,ue,We,"\u25B9","\\triangleright"),w(A,ue,ze,"{","\\{"),w(vt,ue,He,"{","\\{"),w(vt,ue,He,"{","\\textbraceleft"),w(A,ue,rt,"}","\\}"),w(vt,ue,He,"}","\\}"),w(vt,ue,He,"}","\\textbraceright"),w(A,ue,ze,"{","\\lbrace"),w(A,ue,rt,"}","\\rbrace"),w(A,ue,ze,"[","\\lbrack"),w(vt,ue,He,"[","\\lbrack"),w(A,ue,rt,"]","\\rbrack"),w(vt,ue,He,"]","\\rbrack"),w(A,ue,ze,"(","\\lparen"),w(A,ue,rt,")","\\rparen"),w(vt,ue,He,"<","\\textless"),w(vt,ue,He,">","\\textgreater"),w(A,ue,ze,"\u230A","\\lfloor",!0),w(A,ue,rt,"\u230B","\\rfloor",!0),w(A,ue,ze,"\u2308","\\lceil",!0),w(A,ue,rt,"\u2309","\\rceil",!0),w(A,ue,He,"\\","\\backslash"),w(A,ue,He,"\u2223","|"),w(A,ue,He,"\u2223","\\vert"),w(vt,ue,He,"|","\\textbar"),w(A,ue,He,"\u2225","\\|"),w(A,ue,He,"\u2225","\\Vert"),w(vt,ue,He,"\u2225","\\textbardbl"),w(vt,ue,He,"~","\\textasciitilde"),w(vt,ue,He,"\\","\\textbackslash"),w(vt,ue,He,"^","\\textasciicircum"),w(A,ue,ge,"\u2191","\\uparrow",!0),w(A,ue,ge,"\u21D1","\\Uparrow",!0),w(A,ue,ge,"\u2193","\\downarrow",!0),w(A,ue,ge,"\u21D3","\\Downarrow",!0),w(A,ue,ge,"\u2195","\\updownarrow",!0),w(A,ue,ge,"\u21D5","\\Updownarrow",!0),w(A,ue,Te,"\u2210","\\coprod"),w(A,ue,Te,"\u22C1","\\bigvee"),w(A,ue,Te,"\u22C0","\\bigwedge"),w(A,ue,Te,"\u2A04","\\biguplus"),w(A,ue,Te,"\u22C2","\\bigcap"),w(A,ue,Te,"\u22C3","\\bigcup"),w(A,ue,Te,"\u222B","\\int"),w(A,ue,Te,"\u222B","\\intop"),w(A,ue,Te,"\u222C","\\iint"),w(A,ue,Te,"\u222D","\\iiint"),w(A,ue,Te,"\u220F","\\prod"),w(A,ue,Te,"\u2211","\\sum"),w(A,ue,Te,"\u2A02","\\bigotimes"),w(A,ue,Te,"\u2A01","\\bigoplus"),w(A,ue,Te,"\u2A00","\\bigodot"),w(A,ue,Te,"\u222E","\\oint"),w(A,ue,Te,"\u222F","\\oiint"),w(A,ue,Te,"\u2230","\\oiiint"),w(A,ue,Te,"\u2A06","\\bigsqcup"),w(A,ue,Te,"\u222B","\\smallint"),w(vt,ue,Je,"\u2026","\\textellipsis"),w(A,ue,Je,"\u2026","\\mathellipsis"),w(vt,ue,Je,"\u2026","\\ldots",!0),w(A,ue,Je,"\u2026","\\ldots",!0),w(A,ue,Je,"\u22EF","\\@cdots",!0),w(A,ue,Je,"\u22F1","\\ddots",!0),w(A,ue,He,"\u22EE","\\varvdots"),w(A,ue,bn,"\u02CA","\\acute"),w(A,ue,bn,"\u02CB","\\grave"),w(A,ue,bn,"\xA8","\\ddot"),w(A,ue,bn,"~","\\tilde"),w(A,ue,bn,"\u02C9","\\bar"),w(A,ue,bn,"\u02D8","\\breve"),w(A,ue,bn,"\u02C7","\\check"),w(A,ue,bn,"^","\\hat"),w(A,ue,bn,"\u20D7","\\vec"),w(A,ue,bn,"\u02D9","\\dot"),w(A,ue,bn,"\u02DA","\\mathring"),w(A,ue,Ee,"\u0131","\\imath",!0),w(A,ue,Ee,"\u0237","\\jmath",!0),w(vt,ue,He,"\u0131","\\i",!0),w(vt,ue,He,"\u0237","\\j",!0),w(vt,ue,He,"\xDF","\\ss",!0),w(vt,ue,He,"\xE6","\\ae",!0),w(vt,ue,He,"\xE6","\\ae",!0),w(vt,ue,He,"\u0153","\\oe",!0),w(vt,ue,He,"\xF8","\\o",!0),w(vt,ue,He,"\xC6","\\AE",!0),w(vt,ue,He,"\u0152","\\OE",!0),w(vt,ue,He,"\xD8","\\O",!0),w(vt,ue,bn,"\u02CA","\\'"),w(vt,ue,bn,"\u02CB","\\`"),w(vt,ue,bn,"\u02C6","\\^"),w(vt,ue,bn,"\u02DC","\\~"),w(vt,ue,bn,"\u02C9","\\="),w(vt,ue,bn,"\u02D8","\\u"),w(vt,ue,bn,"\u02D9","\\."),w(vt,ue,bn,"\u02DA","\\r"),w(vt,ue,bn,"\u02C7","\\v"),w(vt,ue,bn,"\xA8",'\\"'),w(vt,ue,bn,"\u02DD","\\H"),w(vt,ue,bn,"\u25EF","\\textcircled");var fn={"--":!0,"---":!0,"``":!0,"''":!0};w(vt,ue,He,"\u2013","--"),w(vt,ue,He,"\u2013","\\textendash"),w(vt,ue,He,"\u2014","---"),w(vt,ue,He,"\u2014","\\textemdash"),w(vt,ue,He,"\u2018","`"),w(vt,ue,He,"\u2018","\\textquoteleft"),w(vt,ue,He,"\u2019","'"),w(vt,ue,He,"\u2019","\\textquoteright"),w(vt,ue,He,"\u201C","``"),w(vt,ue,He,"\u201C","\\textquotedblleft"),w(vt,ue,He,"\u201D","''"),w(vt,ue,He,"\u201D","\\textquotedblright"),w(A,ue,He,"\xB0","\\degree",!0),w(vt,ue,He,"\xB0","\\degree"),w(vt,ue,He,"\xB0","\\textdegree",!0),w(A,ue,Ee,"\xA3","\\pounds"),w(A,ue,Ee,"\xA3","\\mathsterling",!0),w(vt,ue,Ee,"\xA3","\\pounds"),w(vt,ue,Ee,"\xA3","\\textsterling",!0),w(A,Ne,He,"\u2720","\\maltese"),w(vt,Ne,He,"\u2720","\\maltese"),w(vt,ue,Jt,"\xA0","\\ "),w(vt,ue,Jt,"\xA0"," "),w(vt,ue,Jt,"\xA0","~");for(var An='0123456789/@."',Hn=0;Hn<An.length;Hn++){var vr=An.charAt(Hn);w(A,ue,He,vr,vr)}for(var hn='0123456789!@*()-=+[]<>|";:?/.,',pn=0;pn<hn.length;pn++){var et=hn.charAt(pn);w(vt,ue,He,et,et)}for(var Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ft=0;Ft<Rt.length;Ft++){var Ue=Rt.charAt(Ft);w(A,ue,Ee,Ue,Ue),w(vt,ue,He,Ue,Ue)}w(A,Ne,He,"C","\u2102"),w(vt,Ne,He,"C","\u2102"),w(A,Ne,He,"H","\u210D"),w(vt,Ne,He,"H","\u210D"),w(A,Ne,He,"N","\u2115"),w(vt,Ne,He,"N","\u2115"),w(A,Ne,He,"P","\u2119"),w(vt,Ne,He,"P","\u2119"),w(A,Ne,He,"Q","\u211A"),w(vt,Ne,He,"Q","\u211A"),w(A,Ne,He,"R","\u211D"),w(vt,Ne,He,"R","\u211D"),w(A,Ne,He,"Z","\u2124"),w(vt,Ne,He,"Z","\u2124"),w(A,ue,Ee,"h","\u210E"),w(vt,ue,Ee,"h","\u210E");for(var Oe="",xt=0;xt<Rt.length;xt++){var St=Rt.charAt(xt);Oe=String.fromCharCode(55349,56320+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56372+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56424+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56580+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56736+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56788+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56840+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56944+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),xt<26&&(Oe=String.fromCharCode(55349,56632+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe),Oe=String.fromCharCode(55349,56476+xt),w(A,ue,Ee,St,Oe),w(vt,ue,He,St,Oe))}Oe="\u{1D55C}",w(A,ue,Ee,"k",Oe),w(vt,ue,He,"k",Oe);for(var en=0;en<10;en++){var jt=en.toString();Oe=String.fromCharCode(55349,57294+en),w(A,ue,Ee,jt,Oe),w(vt,ue,He,jt,Oe),Oe=String.fromCharCode(55349,57314+en),w(A,ue,Ee,jt,Oe),w(vt,ue,He,jt,Oe),Oe=String.fromCharCode(55349,57324+en),w(A,ue,Ee,jt,Oe),w(vt,ue,He,jt,Oe),Oe=String.fromCharCode(55349,57334+en),w(A,ue,Ee,jt,Oe),w(vt,ue,He,jt,Oe)}for(var sn="\xC7\xD0\xDE\xE7\xFE",Xt=0;Xt<sn.length;Xt++){var vn=sn.charAt(Xt);w(A,ue,Ee,vn,vn),w(vt,ue,He,vn,vn)}w(vt,ue,He,"\xF0","\xF0"),w(vt,ue,He,"\u2013","\u2013"),w(vt,ue,He,"\u2014","\u2014"),w(vt,ue,He,"\u2018","\u2018"),w(vt,ue,He,"\u2019","\u2019"),w(vt,ue,He,"\u201C","\u201C"),w(vt,ue,He,"\u201D","\u201D");var _n=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Mt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],At=function(l,d){var f=l.charCodeAt(0),g=l.charCodeAt(1),k=(f-55296)*1024+(g-56320)+65536,ae=d==="math"?0:1;if(119808<=k&&k<120484){var Re=Math.floor((k-119808)/26);return[_n[Re][2],_n[Re][ae]]}else if(120782<=k&&k<=120831){var Le=Math.floor((k-120782)/10);return[Mt[Le][2],Mt[Le][ae]]}else{if(k===120485||k===120486)return[_n[0][2],_n[0][ae]];if(120486<k&&k<120782)return["",""];throw new H("Unsupported character: "+l)}},tn=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],an=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],on=function(l,d){return d.size<2?l:tn[l-1][d.size-1]},Tn=function(){function q(d){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=d.style,this.color=d.color,this.size=d.size||q.BASESIZE,this.textSize=d.textSize||this.size,this.phantom=!!d.phantom,this.font=d.font||"",this.fontFamily=d.fontFamily||"",this.fontWeight=d.fontWeight||"",this.fontShape=d.fontShape||"",this.sizeMultiplier=an[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=q.prototype;return l.extend=function(f){var g={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var k in f)f.hasOwnProperty(k)&&(g[k]=f[k]);return new q(g)},l.havingStyle=function(f){return this.style===f?this:this.extend({style:f,size:on(this.textSize,f)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(f){return this.size===f&&this.textSize===f?this:this.extend({style:this.style.text(),size:f,textSize:f,sizeMultiplier:an[f-1]})},l.havingBaseStyle=function(f){f=f||this.style.text();var g=on(q.BASESIZE,f);return this.size===g&&this.textSize===q.BASESIZE&&this.style===f?this:this.extend({style:f,size:g})},l.havingBaseSizing=function(){var f;switch(this.style.id){case 4:case 5:f=3;break;case 6:case 7:f=1;break;default:f=6}return this.extend({style:this.style.text(),size:f})},l.withColor=function(f){return this.extend({color:f})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(f){return this.extend({font:f})},l.withTextFontFamily=function(f){return this.extend({fontFamily:f,font:""})},l.withTextFontWeight=function(f){return this.extend({fontWeight:f,font:""})},l.withTextFontShape=function(f){return this.extend({fontShape:f,font:""})},l.sizingClasses=function(f){return f.size!==this.size?["sizing","reset-size"+f.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==q.BASESIZE?["sizing","reset-size"+this.size,"size"+q.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=gt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},q}();Tn.BASESIZE=6;var er=Tn,Pn={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Yt={ex:!0,em:!0,mu:!0},ct=function(l){return typeof l!="string"&&(l=l.unit),l in Pn||l in Yt||l==="ex"},ft=function(l,d){var f;if(l.unit in Pn)f=Pn[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")f=d.fontMetrics().cssEmPerMu;else{var g;if(d.style.isTight()?g=d.havingStyle(d.style.text()):g=d,l.unit==="ex")f=g.fontMetrics().xHeight;else if(l.unit==="em")f=g.fontMetrics().quad;else throw new H("Invalid unit: '"+l.unit+"'");g!==d&&(f*=g.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*f,d.maxSize)},Dt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Ot=function(l,d,f){return Ct[f][l]&&Ct[f][l].replace&&(l=Ct[f][l].replace),{value:l,metrics:st(l,d,f)}},Tt=function(l,d,f,g,k){var ae=Ot(l,d,f),Re=ae.metrics;l=ae.value;var Le;if(Re){var Qe=Re.italic;(f==="text"||g&&g.font==="mathit")&&(Qe=0),Le=new R(l,Re.height,Re.depth,Qe,Re.skew,Re.width,k)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+f+"'")),Le=new R(l,0,0,0,0,0,k);if(g){Le.maxFontSize=g.sizeMultiplier,g.style.isTight()&&Le.classes.push("mtight");var dt=g.getColor();dt&&(Le.style.color=dt)}return Le},Kt=function(l,d,f,g){return g===void 0&&(g=[]),f.font==="boldsymbol"&&Ot(l,"Main-Bold",d).metrics?Tt(l,"Main-Bold",d,f,g.concat(["mathbf"])):l==="\\"||Ct[d][l].font==="main"?Tt(l,"Main-Regular",d,f,g):Tt(l,"AMS-Regular",d,f,g.concat(["amsrm"]))},Nt=function(l,d,f,g){return/[0-9]/.test(l.charAt(0))||B.contains(Dt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ln=function(l,d,f,g){return B.contains(Dt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},xn=function(l,d,f,g){return Ot(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Rn=function(l,d,f){var g=l.mode,k=l.text,ae=["mord"],Re=g==="math"||g==="text"&&d.font,Le=Re?d.font:d.fontFamily;if(k.charCodeAt(0)===55349){var Qe=At(k,g),dt=Qe[0],wt=Qe[1];return Tt(k,dt,g,d,ae.concat(wt))}else if(Le){var Ut,mn;if(Le==="boldsymbol"||Le==="mathnormal"){var Zt=Le==="boldsymbol"?xn(k,g,d,ae):ln(k,g,d,ae);Ut=Zt.fontName,mn=[Zt.fontClass]}else B.contains(Dt,k)?(Ut="Main-Italic",mn=["mathit"]):Re?(Ut=Vr[Le].fontName,mn=[Le]):(Ut=Or(Le,d.fontWeight,d.fontShape),mn=[Le,d.fontWeight,d.fontShape]);if(Ot(k,Ut,g).metrics)return Tt(k,Ut,g,d,ae.concat(mn));if(fn.hasOwnProperty(k)&&Ut.substr(0,10)==="Typewriter"){for(var Qt=[],cn=0;cn<k.length;cn++)Qt.push(Tt(k[cn],Ut,g,d,ae.concat(mn)));return Rr(Qt)}}if(f==="mathord"){var wn=Nt(k,g,d,ae);return Tt(k,wn.fontName,g,d,ae.concat([wn.fontClass]))}else if(f==="textord"){var rr=Ct[g][k]&&Ct[g][k].font;if(rr==="ams"){var Cn=Or("amsrm",d.fontWeight,d.fontShape);return Tt(k,Cn,g,d,ae.concat("amsrm",d.fontWeight,d.fontShape))}else if(rr==="main"||!rr){var nr=Or("textrm",d.fontWeight,d.fontShape);return Tt(k,nr,g,d,ae.concat(d.fontWeight,d.fontShape))}else{var Sr=Or(rr,d.fontWeight,d.fontShape);return Tt(k,Sr,g,d,ae.concat(Sr,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+f+" in makeOrd")},Qn=function(l,d){if(Gt(l.classes)!==Gt(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var f in l.style)if(l.style.hasOwnProperty(f)&&l.style[f]!==d.style[f])return!1;for(var g in d.style)if(d.style.hasOwnProperty(g)&&l.style[g]!==d.style[g])return!1;return!0},Jn=function(l){for(var d=0;d<l.length-1;d++){var f=l[d],g=l[d+1];f instanceof R&&g instanceof R&&Qn(f,g)&&(f.text+=g.text,f.height=Math.max(f.height,g.height),f.depth=Math.max(f.depth,g.depth),f.italic=g.italic,l.splice(d+1,1),d--)}return l},hr=function(l){for(var d=0,f=0,g=0,k=0;k<l.children.length;k++){var ae=l.children[k];ae.height>d&&(d=ae.height),ae.depth>f&&(f=ae.depth),ae.maxFontSize>g&&(g=ae.maxFontSize)}l.height=d,l.depth=f,l.maxFontSize=g},En=function(l,d,f,g){var k=new ne(l,d,f,g);return hr(k),k},yn=function(l,d,f,g){return new ne(l,d,f,g)},pr=function(l,d,f){var g=En([l],[],d);return g.height=Math.max(f||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),g.style.borderBottomWidth=g.height+"em",g.maxFontSize=1,g},Zn=function(l,d,f,g){var k=new Y(l,d,f,g);return hr(k),k},Rr=function(l){var d=new $t(l);return hr(d),d},qn=function(l,d){return l instanceof $t?En([],[l],d):l},cr=function(l){if(l.positionType==="individualShift"){for(var d=l.children,f=[d[0]],g=-d[0].shift-d[0].elem.depth,k=g,ae=1;ae<d.length;ae++){var Re=-d[ae].shift-k-d[ae].elem.depth,Le=Re-(d[ae-1].elem.height+d[ae-1].elem.depth);k=k+Re,f.push({type:"kern",size:Le}),f.push(d[ae])}return{children:f,depth:g}}var Qe;if(l.positionType==="top"){for(var dt=l.positionData,wt=0;wt<l.children.length;wt++){var Ut=l.children[wt];dt-=Ut.type==="kern"?Ut.size:Ut.elem.height+Ut.elem.depth}Qe=dt}else if(l.positionType==="bottom")Qe=-l.positionData;else{var mn=l.children[0];if(mn.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Qe=-mn.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Qe=-mn.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Qe}},gr=function(l,d){for(var f=cr(l),g=f.children,k=f.depth,ae=0,Re=0;Re<g.length;Re++){var Le=g[Re];if(Le.type==="elem"){var Qe=Le.elem;ae=Math.max(ae,Qe.maxFontSize,Qe.height)}}ae+=2;var dt=En(["pstrut"],[]);dt.style.height=ae+"em";for(var wt=[],Ut=k,mn=k,Zt=k,Qt=0;Qt<g.length;Qt++){var cn=g[Qt];if(cn.type==="kern")Zt+=cn.size;else{var wn=cn.elem,rr=cn.wrapperClasses||[],Cn=cn.wrapperStyle||{},nr=En(rr,[dt,wn],void 0,Cn);nr.style.top=-ae-Zt-wn.depth+"em",cn.marginLeft&&(nr.style.marginLeft=cn.marginLeft),cn.marginRight&&(nr.style.marginRight=cn.marginRight),wt.push(nr),Zt+=wn.height+wn.depth}Ut=Math.min(Ut,Zt),mn=Math.max(mn,Zt)}var Sr=En(["vlist"],wt);Sr.style.height=mn+"em";var wr;if(Ut<0){var ii=En([],[]),ai=En(["vlist"],[ii]);ai.style.height=-Ut+"em";var Zi=En(["vlist-s"],[new R("\u200B")]);wr=[En(["vlist-r"],[Sr,Zi]),En(["vlist-r"],[ai])]}else wr=[En(["vlist-r"],[Sr])];var ci=En(["vlist-t"],wr);return wr.length===2&&ci.classes.push("vlist-t2"),ci.height=mn,ci.depth=-Ut,ci},tr=function(l,d){var f=En(["mspace"],[],d),g=ft(l,d);return f.style.marginRight=g+"em",f},Or=function(l,d,f){var g="";switch(l){case"amsrm":g="AMS";break;case"textrm":g="Main";break;case"textsf":g="SansSerif";break;case"texttt":g="Typewriter";break;default:g=l}var k;return d==="textbf"&&f==="textit"?k="BoldItalic":d==="textbf"?k="Bold":d==="textit"?k="Italic":k="Regular",g+"-"+k},Vr={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"}},Xn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Dn=function(l,d){var f=Xn[l],g=f[0],k=f[1],ae=f[2],Re=new oe(g),Le=new L([Re],{width:k+"em",height:ae+"em",style:"width:"+k+"em",viewBox:"0 0 "+1e3*k+" "+1e3*ae,preserveAspectRatio:"xMinYMin"}),Qe=yn(["overlay"],[Le],d);return Qe.height=ae,Qe.style.height=ae+"em",Qe.style.width=k+"em",Qe},nt={fontMap:Vr,makeSymbol:Tt,mathsym:Kt,makeSpan:En,makeSvgSpan:yn,makeLineSpan:pr,makeAnchor:Zn,makeFragment:Rr,wrapFragment:qn,makeVList:gr,makeOrd:Rn,makeGlue:tr,staticSvg:Dn,svgData:Xn,tryCombineChars:Jn};function $n(q,l){var d=ar(q,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(q?"node of type "+q.type:String(q)));return d}function ar(q,l){return q&&q.type===l?q:null}function Cr(q,l){var d=Tr(q,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(q?q.type==="atom"?"atom of family "+q.family:"node of type "+q.type:String(q)));return d}function Tr(q,l){return q&&q.type==="atom"&&q.family===l?q:null}function Mr(q){var l=Hr(q);if(!l)throw new Error("Expected node of symbol group type, but got "+(q?"node of type "+q.type:String(q)));return l}function Hr(q){return q&&(q.type==="atom"||mt.hasOwnProperty(q.type))?q:null}var xr={number:3,unit:"mu"},$r={number:4,unit:"mu"},Wr={number:5,unit:"mu"},On={mord:{mop:xr,mbin:$r,mrel:Wr,minner:xr},mop:{mord:xr,mop:xr,mrel:Wr,minner:xr},mbin:{mord:$r,mop:$r,mopen:$r,minner:$r},mrel:{mord:Wr,mop:Wr,mopen:Wr,minner:Wr},mopen:{},mclose:{mop:xr,mbin:$r,mrel:Wr,minner:xr},mpunct:{mord:xr,mop:xr,mrel:Wr,mopen:xr,mclose:xr,mpunct:xr,minner:xr},minner:{mord:xr,mop:xr,mbin:$r,mrel:Wr,mopen:xr,mpunct:xr,minner:xr}},Fn={mord:{mop:xr},mop:{mord:xr,mop:xr},mbin:{},mrel:{},mopen:{},mclose:{mop:xr},mpunct:{},minner:{mop:xr}},mr={},kr={},qr={};function Un(q){for(var l=q.type,d=q.names,f=q.props,g=q.handler,k=q.htmlBuilder,ae=q.mathmlBuilder,Re={type:l,numArgs:f.numArgs,argTypes:f.argTypes,greediness:f.greediness===void 0?1:f.greediness,allowedInText:!!f.allowedInText,allowedInMath:f.allowedInMath===void 0?!0:f.allowedInMath,numOptionalArgs:f.numOptionalArgs||0,infix:!!f.infix,handler:g},Le=0;Le<d.length;++Le)mr[d[Le]]=Re;l&&(k&&(kr[l]=k),ae&&(qr[l]=ae))}function Ur(q){var l=q.type,d=q.htmlBuilder,f=q.mathmlBuilder;Un({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:f})}var jr=function(l){var d=ar(l,"ordgroup");return d?d.body:[l]},fi=nt.makeSpan,Li=["leftmost","mbin","mopen","mrel","mop","mpunct"],Ei=["rightmost","mrel","mclose","mpunct"],ti={display:v.DISPLAY,text:v.TEXT,script:v.SCRIPT,scriptscript:v.SCRIPTSCRIPT},vi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},li=function(l,d,f,g){g===void 0&&(g=[null,null]);for(var k=[],ae=0;ae<l.length;ae++){var Re=zr(l[ae],d);if(Re instanceof $t){var Le=Re.children;k.push.apply(k,Le)}else k.push(Re)}if(!f)return k;var Qe=d;if(l.length===1){var dt=ar(l[0],"sizing")||ar(l[0],"styling");dt&&(dt.type==="sizing"?Qe=d.havingSize(dt.size):dt.type==="styling"&&(Qe=d.havingStyle(ti[dt.style])))}var wt=fi([g[0]||"leftmost"],[],d),Ut=fi([g[1]||"rightmost"],[],d);return Ri(k,function(mn,Zt){var Qt=Zt.classes[0],cn=mn.classes[0];Qt==="mbin"&&B.contains(Ei,cn)?Zt.classes[0]="mord":cn==="mbin"&&B.contains(Li,Qt)&&(mn.classes[0]="mord")},{node:wt},Ut),Ri(k,function(mn,Zt){var Qt=Di(Zt),cn=Di(mn),wn=Qt&&cn?mn.hasClass("mtight")?Fn[Qt][cn]:On[Qt][cn]:null;if(wn)return nt.makeGlue(wn,Qe)},{node:wt},Ut),k},Ri=function q(l,d,f,g){g&&l.push(g);for(var k=0;k<l.length;k++){var ae=l[k],Re=Ii(ae);if(Re){q(Re.children,d,f);continue}if(ae.classes[0]!=="mspace"){var Le=d(ae,f.node);Le&&(f.insertAfter?f.insertAfter(Le):(l.unshift(Le),k++)),f.node=ae,f.insertAfter=function(Qe){return function(dt){l.splice(Qe+1,0,dt),k++}}(k)}}g&&l.pop()},Ii=function(l){return l instanceof $t||l instanceof Y?l:null},ji=function q(l,d){var f=Ii(l);if(f){var g=f.children;if(g.length){if(d==="right")return q(g[g.length-1],"right");if(d==="left")return q(g[0],"left")}}return l},Di=function(l,d){return l?(d&&(l=ji(l,d)),vi[l.classes[0]]||null):null},Gi=function(l,d){var f=["nulldelimiter"].concat(l.baseSizingClasses());return fi(d.concat(f))},zr=function(l,d,f){if(!l)return fi();if(kr[l.type]){var g=kr[l.type](l,d);if(f&&d.size!==f.size){g=fi(d.sizingClasses(f),[g],d);var k=d.sizeMultiplier/f.sizeMultiplier;g.height*=k,g.depth*=k}return g}else throw new H("Got group of unknown type: '"+l.type+"'")};function aa(q,l){var d=fi(["base"],q,l),f=fi(["strut"]);return f.style.height=d.height+d.depth+"em",f.style.verticalAlign=-d.depth+"em",d.children.unshift(f),d}function ga(q,l){var d=null;q.length===1&&q[0].type==="tag"&&(d=q[0].tag,q=q[0].body);for(var f=li(q,l,!0),g=[],k=[],ae=0;ae<f.length;ae++)if(k.push(f[ae]),f[ae].hasClass("mbin")||f[ae].hasClass("mrel")||f[ae].hasClass("allowbreak")){for(var Re=!1;ae<f.length-1&&f[ae+1].hasClass("mspace")&&!f[ae+1].hasClass("newline");)ae++,k.push(f[ae]),f[ae].hasClass("nobreak")&&(Re=!0);Re||(g.push(aa(k,l)),k=[])}else f[ae].hasClass("newline")&&(k.pop(),k.length>0&&(g.push(aa(k,l)),k=[]),g.push(f[ae]));k.length>0&&g.push(aa(k,l));var Le;d&&(Le=aa(li(d,l,!0)),Le.classes=["tag"],g.push(Le));var Qe=fi(["katex-html"],g);if(Qe.setAttribute("aria-hidden","true"),Le){var dt=Le.children[0];dt.style.height=Qe.height+Qe.depth+"em",dt.style.verticalAlign=-Qe.depth+"em"}return Qe}function ua(q){return new $t(q)}var yi=function(){function q(d,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=f||[]}var l=q.prototype;return l.setAttribute=function(f,g){this.attributes[f]=g},l.getAttribute=function(f){return this.attributes[f]},l.toNode=function(){var f=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&f.setAttribute(g,this.attributes[g]);for(var k=0;k<this.children.length;k++)f.appendChild(this.children[k].toNode());return f},l.toMarkup=function(){var f="<"+this.type;for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+'="',f+=B.escape(this.attributes[g]),f+='"');f+=">";for(var k=0;k<this.children.length;k++)f+=this.children[k].toMarkup();return f+="</"+this.type+">",f},l.toText=function(){return this.children.map(function(f){return f.toText()}).join("")},q}(),ca=function(){function q(d){this.text=void 0,this.text=d}var l=q.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return B.escape(this.toText())},l.toText=function(){return this.text},q}(),wa=function(){function q(d){this.width=void 0,this.character=void 0,this.width=d,d>=.05555&&d<=.05556?this.character="\u200A":d>=.1666&&d<=.1667?this.character="\u2009":d>=.2222&&d<=.2223?this.character="\u2005":d>=.2777&&d<=.2778?this.character="\u2005\u200A":d>=-.05556&&d<=-.05555?this.character="\u200A\u2063":d>=-.1667&&d<=-.1666?this.character="\u2009\u2063":d>=-.2223&&d<=-.2222?this.character="\u205F\u2063":d>=-.2778&&d<=-.2777?this.character="\u2005\u2063":this.character=null}var l=q.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var f=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return f.setAttribute("width",this.width+"em"),f},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},q}(),kn={MathNode:yi,TextNode:ca,SpaceNode:wa,newDocumentFragment:ua},Mi=function(l,d,f){return Ct[d][l]&&Ct[d][l].replace&&l.charCodeAt(0)!==55349&&!(fn.hasOwnProperty(l)&&f&&(f.fontFamily&&f.fontFamily.substr(4,2)==="tt"||f.font&&f.font.substr(4,2)==="tt"))&&(l=Ct[d][l].replace),new kn.TextNode(l)},na=function(l){return l.length===1?l[0]:new kn.MathNode("mrow",l)},sr=function(l,d){if(d.fontFamily==="texttt")return"monospace";if(d.fontFamily==="textsf")return d.fontShape==="textit"&&d.fontWeight==="textbf"?"sans-serif-bold-italic":d.fontShape==="textit"?"sans-serif-italic":d.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(d.fontShape==="textit"&&d.fontWeight==="textbf")return"bold-italic";if(d.fontShape==="textit")return"italic";if(d.fontWeight==="textbf")return"bold";var f=d.font;if(!f||f==="mathnormal")return null;var g=l.mode;if(f==="mathit")return"italic";if(f==="boldsymbol")return"bold-italic";if(f==="mathbf")return"bold";if(f==="mathbb")return"double-struck";if(f==="mathfrak")return"fraktur";if(f==="mathscr"||f==="mathcal")return"script";if(f==="mathsf")return"sans-serif";if(f==="mathtt")return"monospace";var k=l.text;if(B.contains(["\\imath","\\jmath"],k))return null;Ct[g][k]&&Ct[g][k].replace&&(k=Ct[g][k].replace);var ae=nt.fontMap[f].fontName;return st(k,ae,g)?nt.fontMap[f].variant:null},_r=function(l,d,f){if(l.length===1){var g=jn(l[0],d);return f&&g instanceof yi&&g.type==="mo"&&(g.setAttribute("lspace","0em"),g.setAttribute("rspace","0em")),[g]}for(var k=[],ae,Re=0;Re<l.length;Re++){var Le=jn(l[Re],d);if(Le instanceof yi&&ae instanceof yi){if(Le.type==="mtext"&&ae.type==="mtext"&&Le.getAttribute("mathvariant")===ae.getAttribute("mathvariant")){var Qe;(Qe=ae.children).push.apply(Qe,Le.children);continue}else if(Le.type==="mn"&&ae.type==="mn"){var dt;(dt=ae.children).push.apply(dt,Le.children);continue}else if(Le.type==="mi"&&Le.children.length===1&&ae.type==="mn"){var wt=Le.children[0];if(wt instanceof ca&&wt.text==="."){var Ut;(Ut=ae.children).push.apply(Ut,Le.children);continue}}else if(ae.type==="mi"&&ae.children.length===1){var mn=ae.children[0];if(mn instanceof ca&&mn.text==="\u0338"&&(Le.type==="mo"||Le.type==="mi"||Le.type==="mn")){var Zt=Le.children[0];Zt instanceof ca&&Zt.text.length>0&&(Zt.text=Zt.text.slice(0,1)+"\u0338"+Zt.text.slice(1),k.pop())}}}k.push(Le),ae=Le}return k},or=function(l,d,f){return na(_r(l,d,f))},jn=function(l,d){if(!l)return new kn.MathNode("mrow");if(qr[l.type]){var f=qr[l.type](l,d);return f}else throw new H("Got group of unknown type: '"+l.type+"'")};function Nr(q,l,d,f){var g=_r(q,d),k;g.length===1&&g[0]instanceof yi&&B.contains(["mrow","mtable"],g[0].type)?k=g[0]:k=new kn.MathNode("mrow",g);var ae=new kn.MathNode("annotation",[new kn.TextNode(l)]);ae.setAttribute("encoding","application/x-tex");var Re=new kn.MathNode("semantics",[k,ae]),Le=new kn.MathNode("math",[Re]);Le.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Qe=f?"katex":"katex-mathml";return nt.makeSpan([Qe],[Le])}var Xr=function(l){return new er({style:l.displayMode?v.DISPLAY:v.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Ni=function(l,d){if(d.displayMode){var f=["katex-display"];d.leqno&&f.push("leqno"),d.fleqn&&f.push("fleqn"),l=nt.makeSpan(f,[l])}return l},bi=function(l,d,f){var g=Xr(f),k;if(f.output==="mathml")return Nr(l,d,g,!0);if(f.output==="html"){var ae=ga(l,g);k=nt.makeSpan(["katex"],[ae])}else{var Re=Nr(l,d,g,!1),Le=ga(l,g);k=nt.makeSpan(["katex"],[Re,Le])}return Ni(k,f)},Oi=function(l,d,f){var g=Xr(f),k=ga(l,g),ae=nt.makeSpan(["katex"],[k]);return Ni(ae,f)},Bi=bi,va={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},Ca=function(l){var d=new kn.MathNode("mo",[new kn.TextNode(va[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},Za={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]},da=function(l){return l.type==="ordgroup"?l.body.length:1},fa=function(l,d){function f(){var Le=4e5,Qe=l.label.substr(1);if(B.contains(["widehat","widecheck","widetilde","utilde"],Qe)){var dt=l,wt=da(dt.base),Ut,mn,Zt;if(wt>5)Qe==="widehat"||Qe==="widecheck"?(Ut=420,Le=2364,Zt=.42,mn=Qe+"4"):(Ut=312,Le=2340,Zt=.34,mn="tilde4");else{var Qt=[1,1,2,2,3,3][wt];Qe==="widehat"||Qe==="widecheck"?(Le=[0,1062,2364,2364,2364][Qt],Ut=[0,239,300,360,420][Qt],Zt=[0,.24,.3,.3,.36,.42][Qt],mn=Qe+Qt):(Le=[0,600,1033,2339,2340][Qt],Ut=[0,260,286,306,312][Qt],Zt=[0,.26,.286,.3,.306,.34][Qt],mn="tilde"+Qt)}var cn=new oe(mn),wn=new L([cn],{width:"100%",height:Zt+"em",viewBox:"0 0 "+Le+" "+Ut,preserveAspectRatio:"none"});return{span:nt.makeSvgSpan([],[wn],d),minWidth:0,height:Zt}}else{var rr=[],Cn=Za[Qe],nr=Cn[0],Sr=Cn[1],wr=Cn[2],ii=wr/1e3,ai=nr.length,Zi,ci;if(ai===1){var si=Cn[3];Zi=["hide-tail"],ci=[si]}else if(ai===2)Zi=["halfarrow-left","halfarrow-right"],ci=["xMinYMin","xMaxYMin"];else if(ai===3)Zi=["brace-left","brace-center","brace-right"],ci=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+ai+" children.");for(var xi=0;xi<ai;xi++){var Ji=new oe(nr[xi]),_a=new L([Ji],{width:"400em",height:ii+"em",viewBox:"0 0 "+Le+" "+wr,preserveAspectRatio:ci[xi]+" slice"}),Kr=nt.makeSvgSpan([Zi[xi]],[_a],d);if(ai===1)return{span:Kr,minWidth:Sr,height:ii};Kr.style.height=ii+"em",rr.push(Kr)}return{span:nt.makeSpan(["stretchy"],rr,d),minWidth:Sr,height:ii}}}var g=f(),k=g.span,ae=g.minWidth,Re=g.height;return k.height=Re,k.style.height=Re+"em",ae>0&&(k.style.minWidth=ae+"em"),k},lr=function(l,d,f,g){var k,ae=l.height+l.depth+2*f;if(/fbox|color/.test(d)){if(k=nt.makeSpan(["stretchy",d],[],g),d==="fbox"){var Re=g.color&&g.getColor();Re&&(k.style.borderColor=Re)}}else{var Le=[];/^[bx]cancel$/.test(d)&&Le.push(new le({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Le.push(new le({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Qe=new L(Le,{width:"100%",height:ae+"em"});k=nt.makeSvgSpan([],[Qe],g)}return k.height=ae,k.style.height=ae+"em",k},ir={encloseSpan:lr,mathMLnode:Ca,svgSpan:fa},Qr=function(l,d){var f,g,k=ar(l,"supsub"),ae;k?(g=$n(k.base,"accent"),f=g.base,k.base=f,ae=De(zr(k,d)),k.base=g):(g=$n(l,"accent"),f=g.base);var Re=zr(f,d.havingCrampedStyle()),Le=g.isShifty&&B.isCharacterBox(f),Qe=0;if(Le){var dt=B.getBaseElem(f),wt=zr(dt,d.havingCrampedStyle());Qe=J(wt).skew}var Ut=Math.min(Re.height,d.fontMetrics().xHeight),mn;if(g.isStretchy)mn=ir.svgSpan(g,d),mn=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"elem",elem:mn,wrapperClasses:["svg-align"],wrapperStyle:Qe>0?{width:"calc(100% - "+2*Qe+"em)",marginLeft:2*Qe+"em"}:void 0}]},d);else{var Zt,Qt;g.label==="\\vec"?(Zt=nt.staticSvg("vec",d),Qt=nt.svgData.vec[1]):(Zt=nt.makeOrd({mode:g.mode,text:g.label},d,"textord"),Zt=J(Zt),Zt.italic=0,Qt=Zt.width),mn=nt.makeSpan(["accent-body"],[Zt]);var cn=g.label==="\\textcircled";cn&&(mn.classes.push("accent-full"),Ut=Re.height);var wn=Qe;cn||(wn-=Qt/2),mn.style.left=wn+"em",g.label==="\\textcircled"&&(mn.style.top=".2em"),mn=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"kern",size:-Ut},{type:"elem",elem:mn}]},d)}var rr=nt.makeSpan(["mord","accent"],[mn],d);return ae?(ae.children[0]=rr,ae.height=Math.max(rr.height,ae.height),ae.classes[0]="mord",ae):rr},zi=function(l,d){var f=l.isStretchy?ir.mathMLnode(l.label):new kn.MathNode("mo",[Mi(l.label,l.mode)]),g=new kn.MathNode("mover",[jn(l.base,d),f]);return g.setAttribute("accent","true"),g},ui=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(q){return"\\"+q}).join("|"));Un({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(l,d){var f=d[0],g=!ui.test(l.funcName),k=!g||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:g,isShifty:k,base:f}},htmlBuilder:Qr,mathmlBuilder:zi}),Un({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:f}},htmlBuilder:Qr,mathmlBuilder:zi}),Un({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"accentUnder",mode:f.mode,label:g,base:k}},htmlBuilder:function(l,d){var f=zr(l.base,d),g=ir.svgSpan(l,d),k=l.label==="\\utilde"?.12:0,ae=nt.makeVList({positionType:"bottom",positionData:g.height+k,children:[{type:"elem",elem:g,wrapperClasses:["svg-align"]},{type:"kern",size:k},{type:"elem",elem:f}]},d);return nt.makeSpan(["mord","accentunder"],[ae],d)},mathmlBuilder:function(l,d){var f=ir.mathMLnode(l.label),g=new kn.MathNode("munder",[jn(l.base,d),f]);return g.setAttribute("accentunder","true"),g}});var sa=function(l){var d=new kn.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};Un({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(l,d,f){var g=l.parser,k=l.funcName;return{type:"xArrow",mode:g.mode,label:k,body:d[0],below:f[0]}},htmlBuilder:function(l,d){var f=d.style,g=d.havingStyle(f.sup()),k=nt.wrapFragment(zr(l.body,g,d),d);k.classes.push("x-arrow-pad");var ae;l.below&&(g=d.havingStyle(f.sub()),ae=nt.wrapFragment(zr(l.below,g,d),d),ae.classes.push("x-arrow-pad"));var Re=ir.svgSpan(l,d),Le=-d.fontMetrics().axisHeight+.5*Re.height,Qe=-d.fontMetrics().axisHeight-.5*Re.height-.111;(k.depth>.25||l.label==="\\xleftequilibrium")&&(Qe-=k.depth);var dt;if(ae){var wt=-d.fontMetrics().axisHeight+ae.height+.5*Re.height+.111;dt=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:Qe},{type:"elem",elem:Re,shift:Le},{type:"elem",elem:ae,shift:wt}]},d)}else dt=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:Qe},{type:"elem",elem:Re,shift:Le}]},d);return dt.children[0].children[0].children[1].classes.push("svg-align"),nt.makeSpan(["mrel","x-arrow"],[dt],d)},mathmlBuilder:function(l,d){var f=ir.mathMLnode(l.label),g;if(l.body){var k=sa(jn(l.body,d));if(l.below){var ae=sa(jn(l.below,d));g=new kn.MathNode("munderover",[f,ae,k])}else g=new kn.MathNode("mover",[f,k])}else if(l.below){var Re=sa(jn(l.below,d));g=new kn.MathNode("munder",[f,Re])}else g=sa(),g=new kn.MathNode("mover",[f,g]);return g}}),Un({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var f=l.parser,g=$n(d[0],"ordgroup"),k=g.body,ae="",Re=0;Re<k.length;Re++){var Le=$n(k[Re],"textord");ae+=Le.text}var Qe=parseInt(ae);if(isNaN(Qe))throw new H("\\@char has non-numeric argument "+ae);return{type:"textord",mode:f.mode,text:String.fromCharCode(Qe)}}});var ja=function(l,d){var f=li(l.body,d.withColor(l.color),!1);return nt.makeFragment(f)},Ka=function(l,d){var f=_r(l.body,d.withColor(l.color)),g=new kn.MathNode("mstyle",f);return g.setAttribute("mathcolor",l.color),g};Un({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var f=l.parser,g=$n(d[0],"color-token").color,k=d[1];return{type:"color",mode:f.mode,color:g,body:jr(k)}},htmlBuilder:ja,mathmlBuilder:Ka}),Un({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var f=l.parser,g=l.breakOnTokenText,k=$n(d[0],"color-token").color;f.gullet.macros.set("\\current@color",k);var ae=f.parseExpression(!0,g);return{type:"color",mode:f.mode,color:k,body:ae}},htmlBuilder:ja,mathmlBuilder:Ka}),Un({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=f[0],Re=k==="\\cr",Le=!1;return Re||(g.settings.displayMode&&g.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Le=!1:Le=!0),{type:"cr",mode:g.mode,newLine:Le,newRow:Re,size:ae&&$n(ae,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new H("\\cr valid only within a tabular/array environment");var f=nt.makeSpan(["mspace"],[],d);return l.newLine&&(f.classes.push("newline"),l.size&&(f.style.marginTop=ft(l.size,d)+"em")),f},mathmlBuilder:function(l,d){var f=new kn.MathNode("mspace");return l.newLine&&(f.setAttribute("linebreak","newline"),l.size&&f.setAttribute("height",ft(l.size,d)+"em")),f}});var ya=function(l,d,f){var g=Ct.math[l]&&Ct.math[l].replace,k=st(g||l,d,f);if(!k)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return k},as=function(l,d,f,g){var k=f.havingBaseStyle(d),ae=nt.makeSpan(g.concat(k.sizingClasses(f)),[l],f),Re=k.sizeMultiplier/f.sizeMultiplier;return ae.height*=Re,ae.depth*=Re,ae.maxFontSize=k.sizeMultiplier,ae},ss=function(l,d,f){var g=d.havingBaseStyle(f),k=(1-d.sizeMultiplier/g.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=k+"em",l.height-=k,l.depth+=k},os=function(l,d,f,g,k,ae){var Re=nt.makeSymbol(l,"Main-Regular",k,g),Le=as(Re,d,g,ae);return f&&ss(Le,g,d),Le},ts=function(l,d,f,g){return nt.makeSymbol(l,"Size"+d+"-Regular",f,g)},ls=function(l,d,f,g,k,ae){var Re=ts(l,d,k,g),Le=as(nt.makeSpan(["delimsizing","size"+d],[Re],g),v.TEXT,g,ae);return f&&ss(Le,g,v.TEXT),Le},Aa=function(l,d,f){var g;d==="Size1-Regular"?g="delim-size1":g="delim-size4";var k=nt.makeSpan(["delimsizinginner",g],[nt.makeSpan([],[nt.makeSymbol(l,d,f)])]);return{type:"elem",elem:k}},Xi={type:"kern",size:-.005},us=function(l,d,f,g,k,ae){var Re,Le,Qe,dt;Re=Qe=dt=l,Le=null;var wt="Size1-Regular";l==="\\uparrow"?Qe=dt="\u23D0":l==="\\Uparrow"?Qe=dt="\u2016":l==="\\downarrow"?Re=Qe="\u23D0":l==="\\Downarrow"?Re=Qe="\u2016":l==="\\updownarrow"?(Re="\\uparrow",Qe="\u23D0",dt="\\downarrow"):l==="\\Updownarrow"?(Re="\\Uparrow",Qe="\u2016",dt="\\Downarrow"):l==="["||l==="\\lbrack"?(Re="\u23A1",Qe="\u23A2",dt="\u23A3",wt="Size4-Regular"):l==="]"||l==="\\rbrack"?(Re="\u23A4",Qe="\u23A5",dt="\u23A6",wt="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Qe=Re="\u23A2",dt="\u23A3",wt="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Re="\u23A1",Qe=dt="\u23A2",wt="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Qe=Re="\u23A5",dt="\u23A6",wt="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Re="\u23A4",Qe=dt="\u23A5",wt="Size4-Regular"):l==="("||l==="\\lparen"?(Re="\u239B",Qe="\u239C",dt="\u239D",wt="Size4-Regular"):l===")"||l==="\\rparen"?(Re="\u239E",Qe="\u239F",dt="\u23A0",wt="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Re="\u23A7",Le="\u23A8",dt="\u23A9",Qe="\u23AA",wt="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Re="\u23AB",Le="\u23AC",dt="\u23AD",Qe="\u23AA",wt="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Re="\u23A7",dt="\u23A9",Qe="\u23AA",wt="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Re="\u23AB",dt="\u23AD",Qe="\u23AA",wt="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Re="\u23A7",dt="\u23AD",Qe="\u23AA",wt="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Re="\u23AB",dt="\u23A9",Qe="\u23AA",wt="Size4-Regular");var Ut=ya(Re,wt,k),mn=Ut.height+Ut.depth,Zt=ya(Qe,wt,k),Qt=Zt.height+Zt.depth,cn=ya(dt,wt,k),wn=cn.height+cn.depth,rr=0,Cn=1;if(Le!==null){var nr=ya(Le,wt,k);rr=nr.height+nr.depth,Cn=2}var Sr=mn+wn+rr,wr=Math.max(0,Math.ceil((d-Sr)/(Cn*Qt))),ii=Sr+wr*Cn*Qt,ai=g.fontMetrics().axisHeight;f&&(ai*=g.sizeMultiplier);var Zi=ii/2-ai,ci=(wr+1)*.005-Qt,si=[];if(si.push(Aa(dt,wt,k)),Le===null)for(var xi=0;xi<wr;xi++)si.push(Xi),si.push(Aa(Qe,wt,k));else{for(var Ji=0;Ji<wr;Ji++)si.push(Xi),si.push(Aa(Qe,wt,k));si.push({type:"kern",size:ci}),si.push(Aa(Qe,wt,k)),si.push(Xi),si.push(Aa(Le,wt,k));for(var _a=0;_a<wr;_a++)si.push(Xi),si.push(Aa(Qe,wt,k))}si.push({type:"kern",size:ci}),si.push(Aa(Qe,wt,k)),si.push(Xi),si.push(Aa(Re,wt,k));var Kr=g.havingBaseStyle(v.TEXT),ei=nt.makeVList({positionType:"bottom",positionData:Zi,children:si},Kr);return as(nt.makeSpan(["delimsizing","mult"],[ei],Kr),v.TEXT,g,ae)},ns=80,ba=.08,xa=function(l,d,f,g,k){var ae=Vt(l,g,f),Re=new oe(l,ae),Le=new L([Re],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});return nt.makeSvgSpan(["hide-tail"],[Le],k)},ni=function(l,d){var f=d.havingBaseSizing(),g=Fa("\\surd",l*f.sizeMultiplier,la,f),k=f.sizeMultiplier,ae=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Re,Le=0,Qe=0,dt=0,wt;return g.type==="small"?(dt=1e3+1e3*ae+ns,l<1?k=1:l<1.4&&(k=.7),Le=(1+ae+ba)/k,Qe=(1+ae)/k,Re=xa("sqrtMain",Le,dt,ae,d),Re.style.minWidth="0.853em",wt=.833/k):g.type==="large"?(dt=(1e3+ns)*Pi[g.size],Qe=(Pi[g.size]+ae)/k,Le=(Pi[g.size]+ae+ba)/k,Re=xa("sqrtSize"+g.size,Le,dt,ae,d),Re.style.minWidth="1.02em",wt=1/k):(Le=l+ae+ba,Qe=l+ae,dt=Math.floor(1e3*l+ae)+ns,Re=xa("sqrtTall",Le,dt,ae,d),Re.style.minWidth="0.742em",wt=1.056),Re.height=Qe,Re.style.height=Le+"em",{span:Re,advanceWidth:wt,ruleWidth:(d.fontMetrics().sqrtRuleThickness+ae)*k}},Br=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ia=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ui=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Pi=[0,1.2,1.8,2.4,3],oa=function(l,d,f,g,k){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),B.contains(Br,l)||B.contains(Ui,l))return ls(l,d,!1,f,g,k);if(B.contains(ia,l))return us(l,Pi[d],!1,f,g,k);throw new H("Illegal delimiter: '"+l+"'")},mi=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Oa=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"stack"}],la=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],La=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+l.type+"' here.")},Fa=function(l,d,f,g){for(var k=Math.min(2,3-g.style.size),ae=k;ae<f.length&&f[ae].type!=="stack";ae++){var Re=ya(l,La(f[ae]),"math"),Le=Re.height+Re.depth;if(f[ae].type==="small"){var Qe=g.havingBaseStyle(f[ae].style);Le*=Qe.sizeMultiplier}if(Le>d)return f[ae]}return f[f.length-1]},Ci=function(l,d,f,g,k,ae){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Re;B.contains(Ui,l)?Re=mi:B.contains(Br,l)?Re=la:Re=Oa;var Le=Fa(l,d,Re,g);return Le.type==="small"?os(l,Le.style,f,g,k,ae):Le.type==="large"?ls(l,Le.size,f,g,k,ae):us(l,d,f,g,k,ae)},vs=function(l,d,f,g,k,ae){var Re=g.fontMetrics().axisHeight*g.sizeMultiplier,Le=901,Qe=5/g.fontMetrics().ptPerEm,dt=Math.max(d-Re,f+Re),wt=Math.max(dt/500*Le,2*dt-Qe);return Ci(l,wt,!0,g,k,ae)},Ta={sqrtImage:ni,sizedDelim:oa,customSizedDelim:Ci,leftRightDelim:vs},Ga={"\\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}},Ts=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Xa(q,l){var d=Hr(q);if(d&&B.contains(Ts,d.text))return d;throw new H("Invalid delimiter: '"+(d?d.text:JSON.stringify(q))+"' after '"+l.funcName+"'",q)}Un({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(l,d){var f=Xa(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:Ga[l.funcName].size,mclass:Ga[l.funcName].mclass,delim:f.text}},htmlBuilder:function(l,d){return l.delim==="."?nt.makeSpan([l.mclass]):Ta.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(Mi(l.delim,l.mode));var f=new kn.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?f.setAttribute("fence","true"):f.setAttribute("fence","false"),f}});function cs(q){if(!q.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Un({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var f=l.parser.gullet.macros.get("\\current@color");if(f&&typeof f!="string")throw new H("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:Xa(d[0],l).text,color:f}}}),Un({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var f=Xa(d[0],l),g=l.parser;++g.leftrightDepth;var k=g.parseExpression(!1);--g.leftrightDepth,g.expect("\\right",!1);var ae=$n(g.parseFunction(),"leftright-right");return{type:"leftright",mode:g.mode,body:k,left:f.text,right:ae.delim,rightColor:ae.color}},htmlBuilder:function(l,d){cs(l);for(var f=li(l.body,d,!0,["mopen","mclose"]),g=0,k=0,ae=!1,Re=0;Re<f.length;Re++)f[Re].isMiddle?ae=!0:(g=Math.max(f[Re].height,g),k=Math.max(f[Re].depth,k));g*=d.sizeMultiplier,k*=d.sizeMultiplier;var Le;if(l.left==="."?Le=Gi(d,["mopen"]):Le=Ta.leftRightDelim(l.left,g,k,d,l.mode,["mopen"]),f.unshift(Le),ae)for(var Qe=1;Qe<f.length;Qe++){var dt=f[Qe],wt=dt.isMiddle;wt&&(f[Qe]=Ta.leftRightDelim(wt.delim,g,k,wt.options,l.mode,[]))}var Ut;if(l.right===".")Ut=Gi(d,["mclose"]);else{var mn=l.rightColor?d.withColor(l.rightColor):d;Ut=Ta.leftRightDelim(l.right,g,k,mn,l.mode,["mclose"])}return f.push(Ut),nt.makeSpan(["minner"],f,d)},mathmlBuilder:function(l,d){cs(l);var f=_r(l.body,d);if(l.left!=="."){var g=new kn.MathNode("mo",[Mi(l.left,l.mode)]);g.setAttribute("fence","true"),f.unshift(g)}if(l.right!=="."){var k=new kn.MathNode("mo",[Mi(l.right,l.mode)]);k.setAttribute("fence","true"),l.rightColor&&k.setAttribute("mathcolor",l.rightColor),f.push(k)}return na(f)}}),Un({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var f=Xa(d[0],l);if(!l.parser.leftrightDepth)throw new H("\\middle without preceding \\left",f);return{type:"middle",mode:l.parser.mode,delim:f.text}},htmlBuilder:function(l,d){var f;if(l.delim===".")f=Gi(d,[]);else{f=Ta.sizedDelim(l.delim,1,d,l.mode,[]);var g={delim:l.delim,options:d};f.isMiddle=g}return f},mathmlBuilder:function(l,d){var f=l.delim==="\\vert"||l.delim==="|"?Mi("|","text"):Mi(l.delim,l.mode),g=new kn.MathNode("mo",[f]);return g.setAttribute("fence","true"),g.setAttribute("lspace","0.05em"),g.setAttribute("rspace","0.05em"),g}});var ys=function(l,d){var f=nt.wrapFragment(zr(l.body,d),d),g=l.label.substr(1),k=d.sizeMultiplier,ae,Re=0,Le=B.isCharacterBox(l.body);if(g==="sout")ae=nt.makeSpan(["stretchy","sout"]),ae.height=d.fontMetrics().defaultRuleThickness/k,Re=-.5*d.fontMetrics().xHeight;else{/cancel/.test(g)?Le||f.classes.push("cancel-pad"):f.classes.push("boxpad");var Qe=0,dt=0;/box/.test(g)?(dt=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),Qe=d.fontMetrics().fboxsep+(g==="colorbox"?0:dt)):Qe=Le?.2:0,ae=ir.encloseSpan(f,g,Qe,d),/fbox|boxed|fcolorbox/.test(g)&&(ae.style.borderStyle="solid",ae.style.borderWidth=dt+"em"),Re=f.depth+Qe,l.backgroundColor&&(ae.style.backgroundColor=l.backgroundColor,l.borderColor&&(ae.style.borderColor=l.borderColor))}var wt;return l.backgroundColor?wt=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ae,shift:Re},{type:"elem",elem:f,shift:0}]},d):wt=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:ae,shift:Re,wrapperClasses:/cancel/.test(g)?["svg-align"]:[]}]},d),/cancel/.test(g)&&(wt.height=f.height,wt.depth=f.depth),/cancel/.test(g)&&!Le?nt.makeSpan(["mord","cancel-lap"],[wt],d):nt.makeSpan(["mord"],[wt],d)},ds=function(l,d){var f=0,g=new kn.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[jn(l.body,d)]);switch(l.label){case"\\cancel":g.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":g.setAttribute("notation","downdiagonalstrike");break;case"\\sout":g.setAttribute("notation","horizontalstrike");break;case"\\fbox":g.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(f=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,g.setAttribute("width","+"+2*f+"pt"),g.setAttribute("height","+"+2*f+"pt"),g.setAttribute("lspace",f+"pt"),g.setAttribute("voffset",f+"pt"),l.label==="\\fcolorbox"){var k=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);g.setAttribute("style","border: "+k+"em solid "+String(l.borderColor))}break;case"\\xcancel":g.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&g.setAttribute("mathbackground",l.backgroundColor),g};Un({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=$n(d[0],"color-token").color,Re=d[1];return{type:"enclose",mode:g.mode,label:k,backgroundColor:ae,body:Re}},htmlBuilder:ys,mathmlBuilder:ds}),Un({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=$n(d[0],"color-token").color,Re=$n(d[1],"color-token").color,Le=d[2];return{type:"enclose",mode:g.mode,label:k,backgroundColor:Re,borderColor:ae,body:Le}},htmlBuilder:ys,mathmlBuilder:ds}),Un({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"enclose",mode:f.mode,label:"\\fbox",body:d[0]}}}),Un({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=d[0];return{type:"enclose",mode:g.mode,label:k,body:ae}},htmlBuilder:ys,mathmlBuilder:ds});var Ds={};function Pa(q){for(var l=q.type,d=q.names,f=q.props,g=q.handler,k=q.htmlBuilder,ae=q.mathmlBuilder,Re={type:l,numArgs:f.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:g},Le=0;Le<d.length;++Le)Ds[d[Le]]=Re;k&&(kr[l]=k),ae&&(qr[l]=ae)}function bs(q){var l=[];q.consumeSpaces();for(var d=q.fetch().text;d==="\\hline"||d==="\\hdashline";)q.consume(),l.push(d==="\\hdashline"),q.consumeSpaces(),d=q.fetch().text;return l}function Ti(q,l,d){var f=l.hskipBeforeAndAfter,g=l.addJot,k=l.cols,ae=l.arraystretch,Re=l.colSeparationType;if(q.gullet.beginGroup(),q.gullet.macros.set("\\\\","\\cr"),!ae){var Le=q.gullet.expandMacroAsText("\\arraystretch");if(Le==null)ae=1;else if(ae=parseFloat(Le),!ae||ae<0)throw new H("Invalid \\arraystretch: "+Le)}q.gullet.beginGroup();var Qe=[],dt=[Qe],wt=[],Ut=[];for(Ut.push(bs(q));;){var mn=q.parseExpression(!1,"\\cr");q.gullet.endGroup(),q.gullet.beginGroup(),mn={type:"ordgroup",mode:q.mode,body:mn},d&&(mn={type:"styling",mode:q.mode,style:d,body:[mn]}),Qe.push(mn);var Zt=q.fetch().text;if(Zt==="&")q.consume();else if(Zt==="\\end"){Qe.length===1&&mn.type==="styling"&&mn.body[0].body.length===0&&dt.pop(),Ut.length<dt.length+1&&Ut.push([]);break}else if(Zt==="\\cr"){var Qt=$n(q.parseFunction(),"cr");wt.push(Qt.size),Ut.push(bs(q)),Qe=[],dt.push(Qe)}else throw new H("Expected & or \\\\ or \\cr or \\end",q.nextToken)}return q.gullet.endGroup(),q.gullet.endGroup(),{type:"array",mode:q.mode,addJot:g,arraystretch:ae,body:dt,cols:k,rowGaps:wt,hskipBeforeAndAfter:f,hLinesBeforeRow:Ut,colSeparationType:Re}}function Si(q){return q.substr(0,1)==="d"?"display":"text"}var gi=function(l,d){var f,g,k=l.body.length,ae=l.hLinesBeforeRow,Re=0,Le=new Array(k),Qe=[],dt=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),wt=1/d.fontMetrics().ptPerEm,Ut=5*wt;if(l.colSeparationType&&l.colSeparationType==="small"){var mn=d.havingStyle(v.SCRIPT).sizeMultiplier;Ut=.2778*(mn/d.sizeMultiplier)}var Zt=12*wt,Qt=3*wt,cn=l.arraystretch*Zt,wn=.7*cn,rr=.3*cn,Cn=0;function nr(Vi){for(var wi=0;wi<Vi.length;++wi)wi>0&&(Cn+=.25),Qe.push({pos:Cn,isDashed:Vi[wi]})}for(nr(ae[0]),f=0;f<l.body.length;++f){var Sr=l.body[f],wr=wn,ii=rr;Re<Sr.length&&(Re=Sr.length);var ai=new Array(Sr.length);for(g=0;g<Sr.length;++g){var Zi=zr(Sr[g],d);ii<Zi.depth&&(ii=Zi.depth),wr<Zi.height&&(wr=Zi.height),ai[g]=Zi}var ci=l.rowGaps[f],si=0;ci&&(si=ft(ci,d),si>0&&(si+=rr,ii<si&&(ii=si),si=0)),l.addJot&&(ii+=Qt),ai.height=wr,ai.depth=ii,Cn+=wr,ai.pos=Cn,Cn+=ii+si,Le[f]=ai,nr(ae[f+1])}var xi=Cn/2+d.fontMetrics().axisHeight,Ji=l.cols||[],_a=[],Kr,ei;for(g=0,ei=0;g<Re||ei<Ji.length;++g,++ei){for(var Jr=Ji[ei]||{},Ai=!0;Jr.type==="separator";){if(Ai||(Kr=nt.makeSpan(["arraycolsep"],[]),Kr.style.width=d.fontMetrics().doubleRuleSep+"em",_a.push(Kr)),Jr.separator==="|"||Jr.separator===":"){var ea=Jr.separator==="|"?"solid":"dashed",Zr=nt.makeSpan(["vertical-separator"],[],d);Zr.style.height=Cn+"em",Zr.style.borderRightWidth=dt+"em",Zr.style.borderRightStyle=ea,Zr.style.margin="0 -"+dt/2+"em",Zr.style.verticalAlign=-(Cn-xi)+"em",_a.push(Zr)}else throw new H("Invalid separator type: "+Jr.separator);ei++,Jr=Ji[ei]||{},Ai=!1}if(!(g>=Re)){var ra=void 0;(g>0||l.hskipBeforeAndAfter)&&(ra=B.deflt(Jr.pregap,Ut),ra!==0&&(Kr=nt.makeSpan(["arraycolsep"],[]),Kr.style.width=ra+"em",_a.push(Kr)));var ta=[];for(f=0;f<k;++f){var Ea=Le[f],$a=Ea[g];if($a){var Sa=Ea.pos-xi;$a.depth=Ea.depth,$a.height=Ea.height,ta.push({type:"elem",elem:$a,shift:Sa})}}ta=nt.makeVList({positionType:"individualShift",children:ta},d),ta=nt.makeSpan(["col-align-"+(Jr.align||"c")],[ta]),_a.push(ta),(g<Re-1||l.hskipBeforeAndAfter)&&(ra=B.deflt(Jr.postgap,Ut),ra!==0&&(Kr=nt.makeSpan(["arraycolsep"],[]),Kr.style.width=ra+"em",_a.push(Kr)))}}if(Le=nt.makeSpan(["mtable"],_a),Qe.length>0){for(var xs=nt.makeLineSpan("hline",d,dt),qa=nt.makeLineSpan("hdashline",d,dt),Ma=[{type:"elem",elem:Le,shift:0}];Qe.length>0;){var ha=Qe.pop(),pa=ha.pos-xi;ha.isDashed?Ma.push({type:"elem",elem:qa,shift:pa}):Ma.push({type:"elem",elem:xs,shift:pa})}Le=nt.makeVList({positionType:"individualShift",children:Ma},d)}return nt.makeSpan(["mord"],[Le],d)},Qi={c:"center ",l:"left ",r:"right "},qi=function(l,d){var f=new kn.MathNode("mtable",l.body.map(function(Cn){return new kn.MathNode("mtr",Cn.map(function(nr){return new kn.MathNode("mtd",[jn(nr,d)])}))})),g=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);f.setAttribute("rowspacing",g+"em");var k="",ae="";if(l.cols){var Re=l.cols,Le="",Qe=!1,dt=0,wt=Re.length;Re[0].type==="separator"&&(k+="top ",dt=1),Re[Re.length-1].type==="separator"&&(k+="bottom ",wt-=1);for(var Ut=dt;Ut<wt;Ut++)Re[Ut].type==="align"?(ae+=Qi[Re[Ut].align],Qe&&(Le+="none "),Qe=!0):Re[Ut].type==="separator"&&Qe&&(Le+=Re[Ut].separator==="|"?"solid ":"dashed ",Qe=!1);f.setAttribute("columnalign",ae.trim()),/[sd]/.test(Le)&&f.setAttribute("columnlines",Le.trim())}if(l.colSeparationType==="align"){for(var mn=l.cols||[],Zt="",Qt=1;Qt<mn.length;Qt++)Zt+=Qt%2?"0em ":"1em ";f.setAttribute("columnspacing",Zt.trim())}else l.colSeparationType==="alignat"?f.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):f.setAttribute("columnspacing","1em");var cn="",wn=l.hLinesBeforeRow;k+=wn[0].length>0?"left ":"",k+=wn[wn.length-1].length>0?"right ":"";for(var rr=1;rr<wn.length-1;rr++)cn+=wn[rr].length===0?"none ":wn[rr][0]?"dashed ":"solid ";return/[sd]/.test(cn)&&f.setAttribute("rowlines",cn.trim()),k!==""&&(f=new kn.MathNode("menclose",[f]),f.setAttribute("notation",k.trim())),l.arraystretch&&l.arraystretch<1&&(f=new kn.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},fs=function(l,d){var f=[],g=Ti(l.parser,{cols:f,addJot:!0},"display"),k,ae=0,Re={type:"ordgroup",mode:l.mode,body:[]},Le=ar(d[0],"ordgroup");if(Le){for(var Qe="",dt=0;dt<Le.body.length;dt++){var wt=$n(Le.body[dt],"textord");Qe+=wt.text}k=Number(Qe),ae=k*2}var Ut=!ae;g.body.forEach(function(cn){for(var wn=1;wn<cn.length;wn+=2){var rr=$n(cn[wn],"styling"),Cn=$n(rr.body[0],"ordgroup");Cn.body.unshift(Re)}if(Ut)ae<cn.length&&(ae=cn.length);else{var nr=cn.length/2;if(k<nr)throw new H("Too many math in a row: "+("expected "+k+", but got "+nr),cn[0])}});for(var mn=0;mn<ae;++mn){var Zt="r",Qt=0;mn%2===1?Zt="l":mn>0&&Ut&&(Qt=1),f[mn]={type:"align",align:Zt,pregap:Qt,postgap:0}}return g.colSeparationType=Ut?"align":"alignat",g};Pa({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var f=Hr(d[0]),g=f?[d[0]]:$n(d[0],"ordgroup").body,k=g.map(function(Re){var Le=Mr(Re),Qe=Le.text;if("lcr".indexOf(Qe)!==-1)return{type:"align",align:Qe};if(Qe==="|")return{type:"separator",separator:"|"};if(Qe===":")return{type:"separator",separator:":"};throw new H("Unknown column alignment: "+Qe,Re)}),ae={cols:k,hskipBeforeAndAfter:!0};return Ti(l.parser,ae,Si(l.envName))},htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var d={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],f={hskipBeforeAndAfter:!1},g=Ti(l.parser,f,Si(l.envName));return d?{type:"leftright",mode:l.mode,body:[g],left:d[0],right:d[1],rightColor:void 0}:g},htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},f=Ti(l.parser,d,"script");return f.colSeparationType="small",f},htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var f=Hr(d[0]),g=f?[d[0]]:$n(d[0],"ordgroup").body,k=g.map(function(Re){var Le=Mr(Re),Qe=Le.text;if("lc".indexOf(Qe)!==-1)return{type:"align",align:Qe};throw new H("Unknown column alignment: "+Qe,Re)});if(k.length>1)throw new H("{subarray} can contain only one column");var ae={cols:k,hskipBeforeAndAfter:!1,arraystretch:.5};if(ae=Ti(l.parser,ae,"script"),ae.body[0].length>1)throw new H("{subarray} can contain only one column");return ae},htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var d={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},f=Ti(l.parser,d,Si(l.envName));return{type:"leftright",mode:l.mode,body:[f],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["aligned"],props:{numArgs:0},handler:fs,htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Ti(l.parser,d,"display")},htmlBuilder:gi,mathmlBuilder:qi}),Pa({type:"array",names:["alignedat"],props:{numArgs:1},handler:fs,htmlBuilder:gi,mathmlBuilder:qi}),Un({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new H(l.funcName+" valid only within array environment")}});var Qa=Ds,hs=Qa;Un({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];if(k.type!=="ordgroup")throw new H("Invalid environment name",k);for(var ae="",Re=0;Re<k.body.length;++Re)ae+=$n(k.body[Re],"textord").text;if(g==="\\begin"){if(!hs.hasOwnProperty(ae))throw new H("No such environment: "+ae,k);var Le=hs[ae],Qe=f.parseArguments("\\begin{"+ae+"}",Le),dt=Qe.args,wt=Qe.optArgs,Ut={mode:f.mode,envName:ae,parser:f},mn=Le.handler(Ut,dt,wt);f.expect("\\end",!1);var Zt=f.nextToken,Qt=$n(f.parseFunction(),"environment");if(Qt.name!==ae)throw new H("Mismatch: \\begin{"+ae+"} matched by \\end{"+Qt.name+"}",Zt);return mn}return{type:"environment",mode:f.mode,name:ae,nameGroup:k}}});var Ls=nt.makeSpan;function ps(q,l){var d=li(q.body,l,!0);return Ls([q.mclass],d,l)}function ms(q,l){var d,f=_r(q.body,l);return q.mclass==="minner"?kn.newDocumentFragment(f):(q.mclass==="mord"?q.isCharacterBox?(d=f[0],d.type="mi"):d=new kn.MathNode("mi",f):(q.isCharacterBox?(d=f[0],d.type="mo"):d=new kn.MathNode("mo",f),q.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):q.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(q.mclass==="mopen"||q.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}Un({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"mclass",mode:f.mode,mclass:"m"+g.substr(5),body:jr(k),isCharacterBox:B.isCharacterBox(k)}},htmlBuilder:ps,mathmlBuilder:ms});var Sn=function(l){var d=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return d.type==="atom"&&(d.family==="bin"||d.family==="rel")?"m"+d.family:"mord"};Un({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var f=l.parser;return{type:"mclass",mode:f.mode,mclass:Sn(d[0]),body:[d[1]],isCharacterBox:B.isCharacterBox(d[1])}}}),Un({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[1],ae=d[0],Re;g!=="\\stackrel"?Re=Sn(k):Re="mrel";var Le={type:"op",mode:k.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:g!=="\\stackrel",body:jr(k)},Qe={type:"supsub",mode:ae.mode,base:Le,sup:g==="\\underset"?null:ae,sub:g==="\\underset"?ae:null};return{type:"mclass",mode:f.mode,mclass:Re,body:[Qe],isCharacterBox:B.isCharacterBox(Qe)}},htmlBuilder:ps,mathmlBuilder:ms});var As=function(l,d){var f=l.font,g=d.withFont(f);return zr(l.body,g)},$s=function(l,d){var f=l.font,g=d.withFont(f);return jn(l.body,g)},go={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Un({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0],ae=g;return ae in go&&(ae=go[ae]),{type:"font",mode:f.mode,font:ae.slice(1),body:k}},htmlBuilder:As,mathmlBuilder:$s}),Un({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var f=l.parser,g=d[0],k=B.isCharacterBox(g);return{type:"mclass",mode:f.mode,mclass:Sn(g),body:[{type:"font",mode:f.mode,font:"boldsymbol",body:g}],isCharacterBox:k}}}),Un({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=l.breakOnTokenText,ae=f.mode,Re=f.parseExpression(!0,k),Le="math"+g.slice(1);return{type:"font",mode:ae,font:Le,body:{type:"ordgroup",mode:f.mode,body:Re}}},htmlBuilder:As,mathmlBuilder:$s});var Xs=function(l,d){var f=d;return l==="display"?f=f.id>=v.SCRIPT.id?f.text():v.DISPLAY:l==="text"&&f.size===v.DISPLAY.size?f=v.TEXT:l==="script"?f=v.SCRIPT:l==="scriptscript"&&(f=v.SCRIPTSCRIPT),f},zs=function(l,d){var f=Xs(l.size,d.style),g=f.fracNum(),k=f.fracDen(),ae;ae=d.havingStyle(g);var Re=zr(l.numer,ae,d);if(l.continued){var Le=8.5/d.fontMetrics().ptPerEm,Qe=3.5/d.fontMetrics().ptPerEm;Re.height=Re.height<Le?Le:Re.height,Re.depth=Re.depth<Qe?Qe:Re.depth}ae=d.havingStyle(k);var dt=zr(l.denom,ae,d),wt,Ut,mn;l.hasBarLine?(l.barSize?(Ut=ft(l.barSize,d),wt=nt.makeLineSpan("frac-line",d,Ut)):wt=nt.makeLineSpan("frac-line",d),Ut=wt.height,mn=wt.height):(wt=null,Ut=0,mn=d.fontMetrics().defaultRuleThickness);var Zt,Qt,cn;f.size===v.DISPLAY.size||l.size==="display"?(Zt=d.fontMetrics().num1,Ut>0?Qt=3*mn:Qt=7*mn,cn=d.fontMetrics().denom1):(Ut>0?(Zt=d.fontMetrics().num2,Qt=mn):(Zt=d.fontMetrics().num3,Qt=3*mn),cn=d.fontMetrics().denom2);var wn;if(wt){var Cn=d.fontMetrics().axisHeight;Zt-Re.depth-(Cn+.5*Ut)<Qt&&(Zt+=Qt-(Zt-Re.depth-(Cn+.5*Ut))),Cn-.5*Ut-(dt.height-cn)<Qt&&(cn+=Qt-(Cn-.5*Ut-(dt.height-cn)));var nr=-(Cn-.5*Ut);wn=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:cn},{type:"elem",elem:wt,shift:nr},{type:"elem",elem:Re,shift:-Zt}]},d)}else{var rr=Zt-Re.depth-(dt.height-cn);rr<Qt&&(Zt+=.5*(Qt-rr),cn+=.5*(Qt-rr)),wn=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:cn},{type:"elem",elem:Re,shift:-Zt}]},d)}ae=d.havingStyle(f),wn.height*=ae.sizeMultiplier/d.sizeMultiplier,wn.depth*=ae.sizeMultiplier/d.sizeMultiplier;var Sr;f.size===v.DISPLAY.size?Sr=d.fontMetrics().delim1:Sr=d.fontMetrics().delim2;var wr,ii;return l.leftDelim==null?wr=Gi(d,["mopen"]):wr=Ta.customSizedDelim(l.leftDelim,Sr,!0,d.havingStyle(f),l.mode,["mopen"]),l.continued?ii=nt.makeSpan([]):l.rightDelim==null?ii=Gi(d,["mclose"]):ii=Ta.customSizedDelim(l.rightDelim,Sr,!0,d.havingStyle(f),l.mode,["mclose"]),nt.makeSpan(["mord"].concat(ae.sizingClasses(d)),[wr,nt.makeSpan(["mfrac"],[wn]),ii],d)},Qs=function(l,d){var f=new kn.MathNode("mfrac",[jn(l.numer,d),jn(l.denom,d)]);if(!l.hasBarLine)f.setAttribute("linethickness","0px");else if(l.barSize){var g=ft(l.barSize,d);f.setAttribute("linethickness",g+"em")}var k=Xs(l.size,d.style);if(k.size!==d.style.size){f=new kn.MathNode("mstyle",[f]);var ae=k.size===v.DISPLAY.size?"true":"false";f.setAttribute("displaystyle",ae),f.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Re=[];if(l.leftDelim!=null){var Le=new kn.MathNode("mo",[new kn.TextNode(l.leftDelim.replace("\\",""))]);Le.setAttribute("fence","true"),Re.push(Le)}if(Re.push(f),l.rightDelim!=null){var Qe=new kn.MathNode("mo",[new kn.TextNode(l.rightDelim.replace("\\",""))]);Qe.setAttribute("fence","true"),Re.push(Qe)}return na(Re)}return f};Un({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0],ae=d[1],Re,Le=null,Qe=null,dt="auto";switch(g){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Re=!0;break;case"\\\\atopfrac":Re=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Re=!1,Le="(",Qe=")";break;case"\\\\bracefrac":Re=!1,Le="\\{",Qe="\\}";break;case"\\\\brackfrac":Re=!1,Le="[",Qe="]";break;default:throw new Error("Unrecognized genfrac command")}switch(g){case"\\cfrac":case"\\dfrac":case"\\dbinom":dt="display";break;case"\\tfrac":case"\\tbinom":dt="text";break}return{type:"genfrac",mode:f.mode,continued:g==="\\cfrac",numer:k,denom:ae,hasBarLine:Re,leftDelim:Le,rightDelim:Qe,size:dt,barSize:null}},htmlBuilder:zs,mathmlBuilder:Qs}),Un({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,f=l.funcName,g=l.token,k;switch(f){case"\\over":k="\\frac";break;case"\\choose":k="\\binom";break;case"\\atop":k="\\\\atopfrac";break;case"\\brace":k="\\\\bracefrac";break;case"\\brack":k="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:k,token:g}}});var Wa=["display","text","script","scriptscript"],Us=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};Un({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var f=l.parser,g=d[4],k=d[5],ae=ar(d[0],"atom");ae&&(ae=Cr(d[0],"open"));var Re=ae?Us(ae.text):null,Le=ar(d[1],"atom");Le&&(Le=Cr(d[1],"close"));var Qe=Le?Us(Le.text):null,dt=$n(d[2],"size"),wt,Ut=null;dt.isBlank?wt=!0:(Ut=dt.value,wt=Ut.number>0);var mn="auto",Zt=ar(d[3],"ordgroup");if(Zt){if(Zt.body.length>0){var Qt=$n(Zt.body[0],"textord");mn=Wa[Number(Qt.text)]}}else Zt=$n(d[3],"textord"),mn=Wa[Number(Zt.text)];return{type:"genfrac",mode:f.mode,numer:g,denom:k,continued:!1,hasBarLine:wt,barSize:Ut,leftDelim:Re,rightDelim:Qe,size:mn}},htmlBuilder:zs,mathmlBuilder:Qs}),Un({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=l.token;return{type:"infix",mode:f.mode,replaceWith:"\\\\abovefrac",size:$n(d[0],"size").value,token:k}}}),Un({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0],ae=O($n(d[1],"infix").size),Re=d[2],Le=ae.number>0;return{type:"genfrac",mode:f.mode,numer:k,denom:Re,continued:!1,hasBarLine:Le,barSize:ae,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:zs,mathmlBuilder:Qs});var Js=function(l,d){var f=d.style,g,k,ae=ar(l,"supsub");ae?(g=ae.sup?zr(ae.sup,d.havingStyle(f.sup()),d):zr(ae.sub,d.havingStyle(f.sub()),d),k=$n(ae.base,"horizBrace")):k=$n(l,"horizBrace");var Re=zr(k.base,d.havingBaseStyle(v.DISPLAY)),Le=ir.svgSpan(k,d),Qe;if(k.isOver?(Qe=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"kern",size:.1},{type:"elem",elem:Le}]},d),Qe.children[0].children[0].children[1].classes.push("svg-align")):(Qe=nt.makeVList({positionType:"bottom",positionData:Re.depth+.1+Le.height,children:[{type:"elem",elem:Le},{type:"kern",size:.1},{type:"elem",elem:Re}]},d),Qe.children[0].children[0].children[0].classes.push("svg-align")),g){var dt=nt.makeSpan(["mord",k.isOver?"mover":"munder"],[Qe],d);k.isOver?Qe=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:dt},{type:"kern",size:.2},{type:"elem",elem:g}]},d):Qe=nt.makeVList({positionType:"bottom",positionData:dt.depth+.2+g.height+g.depth,children:[{type:"elem",elem:g},{type:"kern",size:.2},{type:"elem",elem:dt}]},d)}return nt.makeSpan(["mord",k.isOver?"mover":"munder"],[Qe],d)},No=function(l,d){var f=ir.mathMLnode(l.label);return new kn.MathNode(l.isOver?"mover":"munder",[jn(l.base,d),f])};Un({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName;return{type:"horizBrace",mode:f.mode,label:g,isOver:/^\\over/.test(g),base:d[0]}},htmlBuilder:Js,mathmlBuilder:No}),Un({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[1],k=$n(d[0],"url").url;return f.settings.isTrusted({command:"\\href",url:k})?{type:"href",mode:f.mode,href:k,body:jr(g)}:f.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var f=li(l.body,d,!1);return nt.makeAnchor(l.href,[],f,d)},mathmlBuilder:function(l,d){var f=or(l.body,d);return f instanceof yi||(f=new yi("mrow",[f])),f.setAttribute("href",l.href),f}}),Un({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=$n(d[0],"url").url;if(!f.settings.isTrusted({command:"\\url",url:g}))return f.formatUnsupportedCmd("\\url");for(var k=[],ae=0;ae<g.length;ae++){var Re=g[ae];Re==="~"&&(Re="\\textasciitilde"),k.push({type:"textord",mode:"text",text:Re})}var Le={type:"text",mode:f.mode,font:"\\texttt",body:k};return{type:"href",mode:f.mode,href:g,body:jr(Le)}}}),Un({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"htmlmathml",mode:f.mode,html:jr(d[0]),mathml:jr(d[1])}},htmlBuilder:function(l,d){var f=li(l.html,d,!1);return nt.makeFragment(f)},mathmlBuilder:function(l,d){return or(l.mathml,d)}});var Ps=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new H("Invalid size: '"+l+"' in \\includegraphics");var f={number:+(d[1]+d[2]),unit:d[3]};if(!ct(f))throw new H("Invalid unit: '"+f.unit+"' in \\includegraphics.");return f};Un({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,f){var g=l.parser,k={number:0,unit:"em"},ae={number:.9,unit:"em"},Re={number:0,unit:"em"},Le="";if(f[0])for(var Qe=$n(f[0],"raw").string,dt=Qe.split(","),wt=0;wt<dt.length;wt++){var Ut=dt[wt].split("=");if(Ut.length===2){var mn=Ut[1].trim();switch(Ut[0].trim()){case"alt":Le=mn;break;case"width":k=Ps(mn);break;case"height":ae=Ps(mn);break;case"totalheight":Re=Ps(mn);break;default:throw new H("Invalid key: '"+Ut[0]+"' in \\includegraphics.")}}}var Zt=$n(d[0],"url").url;return Le===""&&(Le=Zt,Le=Le.replace(/^.*[\\/]/,""),Le=Le.substring(0,Le.lastIndexOf("."))),g.settings.isTrusted({command:"\\includegraphics",url:Zt})?{type:"includegraphics",mode:g.mode,alt:Le,width:k,height:ae,totalheight:Re,src:Zt}:g.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var f=ft(l.height,d),g=0;l.totalheight.number>0&&(g=ft(l.totalheight,d)-f,g=Number(g.toFixed(2)));var k=0;l.width.number>0&&(k=ft(l.width,d));var ae={height:f+g+"em"};k>0&&(ae.width=k+"em"),g>0&&(ae.verticalAlign=-g+"em");var Re=new Ae(l.src,l.alt,ae);return Re.height=f,Re.depth=g,Re},mathmlBuilder:function(l,d){var f=new kn.MathNode("mglyph",[]);f.setAttribute("alt",l.alt);var g=ft(l.height,d),k=0;if(l.totalheight.number>0&&(k=ft(l.totalheight,d)-g,k=k.toFixed(2),f.setAttribute("valign","-"+k+"em")),f.setAttribute("height",g+k+"em"),l.width.number>0){var ae=ft(l.width,d);f.setAttribute("width",ae+"em")}return f.setAttribute("src",l.src),f}}),Un({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=$n(d[0],"size");if(f.settings.strict){var ae=g[1]==="m",Re=k.value.unit==="mu";ae?(Re||f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" supports only mu units, "+("not "+k.value.unit+" units")),f.mode!=="math"&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" works only in math mode")):Re&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" doesn't support mu units")}return{type:"kern",mode:f.mode,dimension:k.value}},htmlBuilder:function(l,d){return nt.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var f=ft(l.dimension,d);return new kn.SpaceNode(f)}}),Un({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"lap",mode:f.mode,alignment:g.slice(5),body:k}},htmlBuilder:function(l,d){var f;l.alignment==="clap"?(f=nt.makeSpan([],[zr(l.body,d)]),f=nt.makeSpan(["inner"],[f],d)):f=nt.makeSpan(["inner"],[zr(l.body,d)]);var g=nt.makeSpan(["fix"],[]),k=nt.makeSpan([l.alignment],[f,g],d),ae=nt.makeSpan(["strut"]);return ae.style.height=k.height+k.depth+"em",ae.style.verticalAlign=-k.depth+"em",k.children.unshift(ae),k=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k}]},d),nt.makeSpan(["mord"],[k],d)},mathmlBuilder:function(l,d){var f=new kn.MathNode("mpadded",[jn(l.body,d)]);if(l.alignment!=="rlap"){var g=l.alignment==="llap"?"-1":"-0.5";f.setAttribute("lspace",g+"width")}return f.setAttribute("width","0px"),f}}),Un({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=l.funcName,g=l.parser,k=g.mode;g.switchMode("math");var ae=f==="\\("?"\\)":"$",Re=g.parseExpression(!1,ae);return g.expect(ae),g.switchMode(k),{type:"styling",mode:g.mode,style:"text",body:Re}}}),Un({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new H("Mismatched "+l.funcName)}});var qs=function(l,d){switch(d.style.size){case v.DISPLAY.size:return l.display;case v.TEXT.size:return l.text;case v.SCRIPT.size:return l.script;case v.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};Un({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var f=l.parser;return{type:"mathchoice",mode:f.mode,display:jr(d[0]),text:jr(d[1]),script:jr(d[2]),scriptscript:jr(d[3])}},htmlBuilder:function(l,d){var f=qs(l,d),g=li(f,d,!1);return nt.makeFragment(g)},mathmlBuilder:function(l,d){var f=qs(l,d);return or(f,d)}});var ks=function(l,d,f,g,k,ae,Re){l=nt.makeSpan([],[l]);var Le,Qe;if(d){var dt=zr(d,g.havingStyle(k.sup()),g);Qe={elem:dt,kern:Math.max(g.fontMetrics().bigOpSpacing1,g.fontMetrics().bigOpSpacing3-dt.depth)}}if(f){var wt=zr(f,g.havingStyle(k.sub()),g);Le={elem:wt,kern:Math.max(g.fontMetrics().bigOpSpacing2,g.fontMetrics().bigOpSpacing4-wt.height)}}var Ut;if(Qe&&Le){var mn=g.fontMetrics().bigOpSpacing5+Le.elem.height+Le.elem.depth+Le.kern+l.depth+Re;Ut=nt.makeVList({positionType:"bottom",positionData:mn,children:[{type:"kern",size:g.fontMetrics().bigOpSpacing5},{type:"elem",elem:Le.elem,marginLeft:-ae+"em"},{type:"kern",size:Le.kern},{type:"elem",elem:l},{type:"kern",size:Qe.kern},{type:"elem",elem:Qe.elem,marginLeft:ae+"em"},{type:"kern",size:g.fontMetrics().bigOpSpacing5}]},g)}else if(Le){var Zt=l.height-Re;Ut=nt.makeVList({positionType:"top",positionData:Zt,children:[{type:"kern",size:g.fontMetrics().bigOpSpacing5},{type:"elem",elem:Le.elem,marginLeft:-ae+"em"},{type:"kern",size:Le.kern},{type:"elem",elem:l}]},g)}else if(Qe){var Qt=l.depth+Re;Ut=nt.makeVList({positionType:"bottom",positionData:Qt,children:[{type:"elem",elem:l},{type:"kern",size:Qe.kern},{type:"elem",elem:Qe.elem,marginLeft:ae+"em"},{type:"kern",size:g.fontMetrics().bigOpSpacing5}]},g)}else return l;return nt.makeSpan(["mop","op-limits"],[Ut],g)},vo=["\\smallint"],Ja=function(l,d){var f,g,k=!1,ae,Re=ar(l,"supsub");Re?(f=Re.sup,g=Re.sub,ae=$n(Re.base,"op"),k=!0):ae=$n(l,"op");var Le=d.style,Qe=!1;Le.size===v.DISPLAY.size&&ae.symbol&&!B.contains(vo,ae.name)&&(Qe=!0);var dt;if(ae.symbol){var wt=Qe?"Size2-Regular":"Size1-Regular",Ut="";if((ae.name==="\\oiint"||ae.name==="\\oiiint")&&(Ut=ae.name.substr(1),ae.name=Ut==="oiint"?"\\iint":"\\iiint"),dt=nt.makeSymbol(ae.name,wt,"math",d,["mop","op-symbol",Qe?"large-op":"small-op"]),Ut.length>0){var mn=dt.italic,Zt=nt.staticSvg(Ut+"Size"+(Qe?"2":"1"),d);dt=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:0},{type:"elem",elem:Zt,shift:Qe?.08:0}]},d),ae.name="\\"+Ut,dt.classes.unshift("mop"),dt.italic=mn}}else if(ae.body){var Qt=li(ae.body,d,!0);Qt.length===1&&Qt[0]instanceof R?(dt=Qt[0],dt.classes[0]="mop"):dt=nt.makeSpan(["mop"],nt.tryCombineChars(Qt),d)}else{for(var cn=[],wn=1;wn<ae.name.length;wn++)cn.push(nt.mathsym(ae.name[wn],ae.mode,d));dt=nt.makeSpan(["mop"],cn,d)}var rr=0,Cn=0;return(dt instanceof R||ae.name==="\\oiint"||ae.name==="\\oiiint")&&!ae.suppressBaseShift&&(rr=(dt.height-dt.depth)/2-d.fontMetrics().axisHeight,Cn=dt.italic),k?ks(dt,f,g,d,Le,Cn,rr):(rr&&(dt.style.position="relative",dt.style.top=rr+"em"),dt)},Ms=function(l,d){var f;if(l.symbol)f=new yi("mo",[Mi(l.name,l.mode)]),B.contains(vo,l.name)&&f.setAttribute("largeop","false");else if(l.body)f=new yi("mo",_r(l.body,d));else{f=new yi("mi",[new ca(l.name.slice(1))]);var g=new yi("mo",[Mi("\u2061","text")]);l.parentIsSupSub?f=new yi("mo",[f,g]):f=ua([f,g])}return f},yo={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Un({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(l,d){var f=l.parser,g=l.funcName,k=g;return k.length===1&&(k=yo[k]),{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:k}},htmlBuilder:Ja,mathmlBuilder:Ms}),Un({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=d[0];return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:jr(g)}},htmlBuilder:Ja,mathmlBuilder:Ms});var bo={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Un({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(l){var d=l.parser,f=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:Ja,mathmlBuilder:Ms}),Un({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,f=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:Ja,mathmlBuilder:Ms}),Un({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var d=l.parser,f=l.funcName,g=f;return g.length===1&&(g=bo[g]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:g}},htmlBuilder:Ja,mathmlBuilder:Ms});var Ks=function(l,d){var f,g,k=!1,ae,Re=ar(l,"supsub");Re?(f=Re.sup,g=Re.sub,ae=$n(Re.base,"operatorname"),k=!0):ae=$n(l,"operatorname");var Le;if(ae.body.length>0){for(var Qe=ae.body.map(function(mn){var Zt=mn.text;return typeof Zt=="string"?{type:"textord",mode:mn.mode,text:Zt}:mn}),dt=li(Qe,d.withFont("mathrm"),!0),wt=0;wt<dt.length;wt++){var Ut=dt[wt];Ut instanceof R&&(Ut.text=Ut.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Le=nt.makeSpan(["mop"],dt,d)}else Le=nt.makeSpan(["mop"],[],d);return k?ks(Le,f,g,d,d.style,0,0):Le},Bo=function(l,d){for(var f=_r(l.body,d.withFont("mathrm")),g=!0,k=0;k<f.length;k++){var ae=f[k];if(!(ae instanceof kn.SpaceNode))if(ae instanceof kn.MathNode)switch(ae.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Re=ae.children[0];ae.children.length===1&&Re instanceof kn.TextNode?Re.text=Re.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):g=!1;break}default:g=!1}else g=!1}if(g){var Le=f.map(function(wt){return wt.toText()}).join("");f=[new kn.TextNode(Le)]}var Qe=new kn.MathNode("mi",f);Qe.setAttribute("mathvariant","normal");var dt=new kn.MathNode("mo",[Mi("\u2061","text")]);return l.parentIsSupSub?new kn.MathNode("mo",[Qe,dt]):kn.newDocumentFragment([Qe,dt])};Un({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"operatorname",mode:f.mode,body:jr(k),alwaysHandleSupSub:g==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ks,mathmlBuilder:Bo}),Ur({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?nt.makeFragment(li(l.body,d,!1)):nt.makeSpan(["mord"],li(l.body,d,!0),d)},mathmlBuilder:function(l,d){return or(l.body,d,!0)}}),Un({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=d[0];return{type:"overline",mode:f.mode,body:g}},htmlBuilder:function(l,d){var f=zr(l.body,d.havingCrampedStyle()),g=nt.makeLineSpan("overline-line",d),k=d.fontMetrics().defaultRuleThickness,ae=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:3*k},{type:"elem",elem:g},{type:"kern",size:k}]},d);return nt.makeSpan(["mord","overline"],[ae],d)},mathmlBuilder:function(l,d){var f=new kn.MathNode("mo",[new kn.TextNode("\u203E")]);f.setAttribute("stretchy","true");var g=new kn.MathNode("mover",[jn(l.body,d),f]);return g.setAttribute("accent","true"),g}}),Un({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[0];return{type:"phantom",mode:f.mode,body:jr(g)}},htmlBuilder:function(l,d){var f=li(l.body,d.withPhantom(),!1);return nt.makeFragment(f)},mathmlBuilder:function(l,d){var f=_r(l.body,d);return new kn.MathNode("mphantom",f)}}),Un({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[0];return{type:"hphantom",mode:f.mode,body:g}},htmlBuilder:function(l,d){var f=nt.makeSpan([],[zr(l.body,d.withPhantom())]);if(f.height=0,f.depth=0,f.children)for(var g=0;g<f.children.length;g++)f.children[g].height=0,f.children[g].depth=0;return f=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d),nt.makeSpan(["mord"],[f],d)},mathmlBuilder:function(l,d){var f=_r(jr(l.body),d),g=new kn.MathNode("mphantom",f),k=new kn.MathNode("mpadded",[g]);return k.setAttribute("height","0px"),k.setAttribute("depth","0px"),k}}),Un({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[0];return{type:"vphantom",mode:f.mode,body:g}},htmlBuilder:function(l,d){var f=nt.makeSpan(["inner"],[zr(l.body,d.withPhantom())]),g=nt.makeSpan(["fix"],[]);return nt.makeSpan(["mord","rlap"],[f,g],d)},mathmlBuilder:function(l,d){var f=_r(jr(l.body),d),g=new kn.MathNode("mphantom",f),k=new kn.MathNode("mpadded",[g]);return k.setAttribute("width","0px"),k}}),Un({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=$n(d[0],"size").value,k=d[1];return{type:"raisebox",mode:f.mode,dy:g,body:k}},htmlBuilder:function(l,d){var f=zr(l.body,d),g=ft(l.dy,d);return nt.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},d)},mathmlBuilder:function(l,d){var f=new kn.MathNode("mpadded",[jn(l.body,d)]),g=l.dy.number+l.dy.unit;return f.setAttribute("voffset",g),f}}),Un({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,f){var g=l.parser,k=f[0],ae=$n(d[0],"size"),Re=$n(d[1],"size");return{type:"rule",mode:g.mode,shift:k&&$n(k,"size").value,width:ae.value,height:Re.value}},htmlBuilder:function(l,d){var f=nt.makeSpan(["mord","rule"],[],d),g=ft(l.width,d),k=ft(l.height,d),ae=l.shift?ft(l.shift,d):0;return f.style.borderRightWidth=g+"em",f.style.borderTopWidth=k+"em",f.style.bottom=ae+"em",f.width=g,f.height=k+ae,f.depth=-ae,f.maxFontSize=k*1.125*d.sizeMultiplier,f},mathmlBuilder:function(l,d){var f=ft(l.width,d),g=ft(l.height,d),k=l.shift?ft(l.shift,d):0,ae=d.color&&d.getColor()||"black",Re=new kn.MathNode("mspace");Re.setAttribute("mathbackground",ae),Re.setAttribute("width",f+"em"),Re.setAttribute("height",g+"em");var Le=new kn.MathNode("mpadded",[Re]);return k>=0?Le.setAttribute("height","+"+k+"em"):(Le.setAttribute("height",k+"em"),Le.setAttribute("depth","+"+-k+"em")),Le.setAttribute("voffset",k+"em"),Le}});function Hs(q,l,d){for(var f=li(q,l,!1),g=l.sizeMultiplier/d.sizeMultiplier,k=0;k<f.length;k++){var ae=f[k].classes.indexOf("sizing");ae<0?Array.prototype.push.apply(f[k].classes,l.sizingClasses(d)):f[k].classes[ae+1]==="reset-size"+l.size&&(f[k].classes[ae+1]="reset-size"+d.size),f[k].height*=g,f[k].depth*=g}return nt.makeFragment(f)}var Ns=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],xo=function(l,d){var f=d.havingSize(l.size);return Hs(l.body,f,d)};Un({type:"sizing",names:Ns,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,g=l.funcName,k=l.parser,ae=k.parseExpression(!1,f);return{type:"sizing",mode:k.mode,size:Ns.indexOf(g)+1,body:ae}},htmlBuilder:xo,mathmlBuilder:function(l,d){var f=d.havingSize(l.size),g=_r(l.body,f),k=new kn.MathNode("mstyle",g);return k.setAttribute("mathsize",f.sizeMultiplier+"em"),k}}),Un({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,f){var g=l.parser,k=!1,ae=!1,Re=f[0]&&$n(f[0],"ordgroup");if(Re)for(var Le="",Qe=0;Qe<Re.body.length;++Qe){var dt=Re.body[Qe];if(Le=dt.text,Le==="t")k=!0;else if(Le==="b")ae=!0;else{k=!1,ae=!1;break}}else k=!0,ae=!0;var wt=d[0];return{type:"smash",mode:g.mode,body:wt,smashHeight:k,smashDepth:ae}},htmlBuilder:function(l,d){var f=nt.makeSpan([],[zr(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return f;if(l.smashHeight&&(f.height=0,f.children))for(var g=0;g<f.children.length;g++)f.children[g].height=0;if(l.smashDepth&&(f.depth=0,f.children))for(var k=0;k<f.children.length;k++)f.children[k].depth=0;var ae=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d);return nt.makeSpan(["mord"],[ae],d)},mathmlBuilder:function(l,d){var f=new kn.MathNode("mpadded",[jn(l.body,d)]);return l.smashHeight&&f.setAttribute("height","0px"),l.smashDepth&&f.setAttribute("depth","0px"),f}}),Un({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,f){var g=l.parser,k=f[0],ae=d[0];return{type:"sqrt",mode:g.mode,body:ae,index:k}},htmlBuilder:function(l,d){var f=zr(l.body,d.havingCrampedStyle());f.height===0&&(f.height=d.fontMetrics().xHeight),f=nt.wrapFragment(f,d);var g=d.fontMetrics(),k=g.defaultRuleThickness,ae=k;d.style.id<v.TEXT.id&&(ae=d.fontMetrics().xHeight);var Re=k+ae/4,Le=f.height+f.depth+Re+k,Qe=Ta.sqrtImage(Le,d),dt=Qe.span,wt=Qe.ruleWidth,Ut=Qe.advanceWidth,mn=dt.height-wt;mn>f.height+f.depth+Re&&(Re=(Re+mn-f.height-f.depth)/2);var Zt=dt.height-f.height-Re-wt;f.style.paddingLeft=Ut+"em";var Qt=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:-(f.height+Zt)},{type:"elem",elem:dt},{type:"kern",size:wt}]},d);if(l.index){var cn=d.havingStyle(v.SCRIPTSCRIPT),wn=zr(l.index,cn,d),rr=.6*(Qt.height-Qt.depth),Cn=nt.makeVList({positionType:"shift",positionData:-rr,children:[{type:"elem",elem:wn}]},d),nr=nt.makeSpan(["root"],[Cn]);return nt.makeSpan(["mord","sqrt"],[nr,Qt],d)}else return nt.makeSpan(["mord","sqrt"],[Qt],d)},mathmlBuilder:function(l,d){var f=l.body,g=l.index;return g?new kn.MathNode("mroot",[jn(f,d),jn(g,d)]):new kn.MathNode("msqrt",[jn(f,d)])}});var _o={display:v.DISPLAY,text:v.TEXT,script:v.SCRIPT,scriptscript:v.SCRIPTSCRIPT};Un({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,g=l.funcName,k=l.parser,ae=k.parseExpression(!0,f),Re=g.slice(1,g.length-5);return{type:"styling",mode:k.mode,style:Re,body:ae}},htmlBuilder:function(l,d){var f=_o[l.style],g=d.havingStyle(f).withFont("");return Hs(l.body,g,d)},mathmlBuilder:function(l,d){var f=_o[l.style],g=d.havingStyle(f),k=_r(l.body,g),ae=new kn.MathNode("mstyle",k),Re={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Le=Re[l.style];return ae.setAttribute("scriptlevel",Le[0]),ae.setAttribute("displaystyle",Le[1]),ae}});var Eo=function(l,d){var f=l.base;if(f)if(f.type==="op"){var g=f.limits&&(d.style.size===v.DISPLAY.size||f.alwaysHandleSupSub);return g?Ja:null}else if(f.type==="operatorname"){var k=f.alwaysHandleSupSub&&(d.style.size===v.DISPLAY.size||f.limits);return k?Ks:null}else{if(f.type==="accent")return B.isCharacterBox(f.base)?Qr:null;if(f.type==="horizBrace"){var ae=!l.sub;return ae===f.isOver?Js:null}else return null}else return null};Ur({type:"supsub",htmlBuilder:function(l,d){var f=Eo(l,d);if(f)return f(l,d);var g=l.base,k=l.sup,ae=l.sub,Re=zr(g,d),Le,Qe,dt=d.fontMetrics(),wt=0,Ut=0,mn=g&&B.isCharacterBox(g);if(k){var Zt=d.havingStyle(d.style.sup());Le=zr(k,Zt,d),mn||(wt=Re.height-Zt.fontMetrics().supDrop*Zt.sizeMultiplier/d.sizeMultiplier)}if(ae){var Qt=d.havingStyle(d.style.sub());Qe=zr(ae,Qt,d),mn||(Ut=Re.depth+Qt.fontMetrics().subDrop*Qt.sizeMultiplier/d.sizeMultiplier)}var cn;d.style===v.DISPLAY?cn=dt.sup1:d.style.cramped?cn=dt.sup3:cn=dt.sup2;var wn=d.sizeMultiplier,rr=.5/dt.ptPerEm/wn+"em",Cn=null;if(Qe){var nr=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Re instanceof R||nr)&&(Cn=-Re.italic+"em")}var Sr;if(Le&&Qe){wt=Math.max(wt,cn,Le.depth+.25*dt.xHeight),Ut=Math.max(Ut,dt.sub2);var wr=dt.defaultRuleThickness,ii=4*wr;if(wt-Le.depth-(Qe.height-Ut)<ii){Ut=ii-(wt-Le.depth)+Qe.height;var ai=.8*dt.xHeight-(wt-Le.depth);ai>0&&(wt+=ai,Ut-=ai)}var Zi=[{type:"elem",elem:Qe,shift:Ut,marginRight:rr,marginLeft:Cn},{type:"elem",elem:Le,shift:-wt,marginRight:rr}];Sr=nt.makeVList({positionType:"individualShift",children:Zi},d)}else if(Qe){Ut=Math.max(Ut,dt.sub1,Qe.height-.8*dt.xHeight);var ci=[{type:"elem",elem:Qe,marginLeft:Cn,marginRight:rr}];Sr=nt.makeVList({positionType:"shift",positionData:Ut,children:ci},d)}else if(Le)wt=Math.max(wt,cn,Le.depth+.25*dt.xHeight),Sr=nt.makeVList({positionType:"shift",positionData:-wt,children:[{type:"elem",elem:Le,marginRight:rr}]},d);else throw new Error("supsub must have either sup or sub.");var si=Di(Re,"right")||"mord";return nt.makeSpan([si],[Re,nt.makeSpan(["msupsub"],[Sr])],d)},mathmlBuilder:function(l,d){var f=!1,g,k,ae=ar(l.base,"horizBrace");ae&&(k=!!l.sup,k===ae.isOver&&(f=!0,g=ae.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Re=[jn(l.base,d)];l.sub&&Re.push(jn(l.sub,d)),l.sup&&Re.push(jn(l.sup,d));var Le;if(f)Le=g?"mover":"munder";else if(l.sub)if(l.sup){var wt=l.base;wt&&wt.type==="op"&&wt.limits&&d.style===v.DISPLAY||wt&&wt.type==="operatorname"&&wt.alwaysHandleSupSub&&(d.style===v.DISPLAY||wt.limits)?Le="munderover":Le="msubsup"}else{var dt=l.base;dt&&dt.type==="op"&&dt.limits&&(d.style===v.DISPLAY||dt.alwaysHandleSupSub)||dt&&dt.type==="operatorname"&&dt.alwaysHandleSupSub&&(dt.limits||d.style===v.DISPLAY)?Le="munder":Le="msub"}else{var Qe=l.base;Qe&&Qe.type==="op"&&Qe.limits&&(d.style===v.DISPLAY||Qe.alwaysHandleSupSub)||Qe&&Qe.type==="operatorname"&&Qe.alwaysHandleSupSub&&(Qe.limits||d.style===v.DISPLAY)?Le="mover":Le="msup"}var Ut=new kn.MathNode(Le,Re);return Ut}}),Ur({type:"atom",htmlBuilder:function(l,d){return nt.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var f=new kn.MathNode("mo",[Mi(l.text,l.mode)]);if(l.family==="bin"){var g=sr(l,d);g==="bold-italic"&&f.setAttribute("mathvariant",g)}else l.family==="punct"?f.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&f.setAttribute("stretchy","false");return f}});var So={mi:"italic",mn:"normal",mtext:"normal"};Ur({type:"mathord",htmlBuilder:function(l,d){return nt.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var f=new kn.MathNode("mi",[Mi(l.text,l.mode,d)]),g=sr(l,d)||"italic";return g!==So[f.type]&&f.setAttribute("mathvariant",g),f}}),Ur({type:"textord",htmlBuilder:function(l,d){return nt.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var f=Mi(l.text,l.mode,d),g=sr(l,d)||"normal",k;return l.mode==="text"?k=new kn.MathNode("mtext",[f]):/[0-9]/.test(l.text)?k=new kn.MathNode("mn",[f]):l.text==="\\prime"?k=new kn.MathNode("mo",[f]):k=new kn.MathNode("mi",[f]),g!==So[k.type]&&k.setAttribute("mathvariant",g),k}});var Rs={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ur({type:"spacing",htmlBuilder:function(l,d){if(Zs.hasOwnProperty(l.text)){var f=Zs[l.text].className||"";if(l.mode==="text"){var g=nt.makeOrd(l,d,"textord");return g.classes.push(f),g}else return nt.makeSpan(["mspace",f],[nt.mathsym(l.text,l.mode,d)],d)}else{if(Rs.hasOwnProperty(l.text))return nt.makeSpan(["mspace",Rs[l.text]],[],d);throw new H('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var f;if(Zs.hasOwnProperty(l.text))f=new kn.MathNode("mtext",[new kn.TextNode("\xA0")]);else{if(Rs.hasOwnProperty(l.text))return new kn.MathNode("mspace");throw new H('Unknown type of space "'+l.text+'"')}return f}});var Bs=function(){var l=new kn.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};Ur({type:"tag",mathmlBuilder:function(l,d){var f=new kn.MathNode("mtable",[new kn.MathNode("mtr",[Bs(),new kn.MathNode("mtd",[or(l.body,d)]),Bs(),new kn.MathNode("mtd",[or(l.tag,d)])])]);return f.setAttribute("width","100%"),f}});var js={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},to={"\\textit":"textit","\\textup":"textup"},no=function(l,d){var f=l.font;return f?js[f]?d.withTextFontFamily(js[f]):eo[f]?d.withTextFontWeight(eo[f]):d.withTextFontShape(to[f]):d};Un({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"text",mode:f.mode,body:jr(k),font:g}},htmlBuilder:function(l,d){var f=no(l,d),g=li(l.body,f,!0);return nt.makeSpan(["mord","text"],nt.tryCombineChars(g),f)},mathmlBuilder:function(l,d){var f=no(l,d);return or(l.body,f)}}),Un({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"underline",mode:f.mode,body:d[0]}},htmlBuilder:function(l,d){var f=zr(l.body,d),g=nt.makeLineSpan("underline-line",d),k=d.fontMetrics().defaultRuleThickness,ae=nt.makeVList({positionType:"top",positionData:f.height,children:[{type:"kern",size:k},{type:"elem",elem:g},{type:"kern",size:3*k},{type:"elem",elem:f}]},d);return nt.makeSpan(["mord","underline"],[ae],d)},mathmlBuilder:function(l,d){var f=new kn.MathNode("mo",[new kn.TextNode("\u203E")]);f.setAttribute("stretchy","true");var g=new kn.MathNode("munder",[jn(l.body,d),f]);return g.setAttribute("accentunder","true"),g}}),Un({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,f){throw new H("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var f=ro(l),g=[],k=d.havingStyle(d.style.text()),ae=0;ae<f.length;ae++){var Re=f[ae];Re==="~"&&(Re="\\textasciitilde"),g.push(nt.makeSymbol(Re,"Typewriter-Regular",l.mode,k,["mord","texttt"]))}return nt.makeSpan(["mord","text"].concat(k.sizingClasses(d)),nt.tryCombineChars(g),k)},mathmlBuilder:function(l,d){var f=new kn.TextNode(ro(l)),g=new kn.MathNode("mtext",[f]);return g.setAttribute("mathvariant","monospace"),g}});var ro=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},wo=mr,ka=wo,Ws=`[ \r
]`,Gs="\\\\[a-zA-Z@]+",re="\\\\[^\uD800-\uDFFF]",ce=""+Gs+Ws+"*",Fe=new RegExp("^("+Gs+")"+Ws+"*$"),Ve="[\u0300-\u036F]",tt=new RegExp(Ve+"+$"),it="("+Ws+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Ve+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ve+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ce)+("|"+re+")"),_t=function(){function q(d,f){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=f,this.tokenRegex=new RegExp(it,"g"),this.catcodes={"%":14}}var l=q.prototype;return l.setCatcode=function(f,g){this.catcodes[f]=g},l.lex=function(){var f=this.input,g=this.tokenRegex.lastIndex;if(g===f.length)return new ye("EOF",new X(this,g,g));var k=this.tokenRegex.exec(f);if(k===null||k.index!==g)throw new H("Unexpected character: '"+f[g]+"'",new ye(f[g],new X(this,g,g+1)));var ae=k[2]||" ";if(this.catcodes[ae]===14){var Re=f.indexOf(`
`,this.tokenRegex.lastIndex);return Re===-1?(this.tokenRegex.lastIndex=f.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Re+1,this.lex()}var Le=ae.match(Fe);return Le&&(ae=Le[1]),new ye(ae,new X(this,g,this.tokenRegex.lastIndex))},q}(),Et=function(){function q(d,f){d===void 0&&(d={}),f===void 0&&(f={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=f,this.builtins=d,this.undefStack=[]}var l=q.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new H("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var g in f)f.hasOwnProperty(g)&&(f[g]===void 0?delete this.current[g]:this.current[g]=f[g])},l.has=function(f){return this.current.hasOwnProperty(f)||this.builtins.hasOwnProperty(f)},l.get=function(f){return this.current.hasOwnProperty(f)?this.current[f]:this.builtins[f]},l.set=function(f,g,k){if(k===void 0&&(k=!1),k){for(var ae=0;ae<this.undefStack.length;ae++)delete this.undefStack[ae][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=g)}else{var Re=this.undefStack[this.undefStack.length-1];Re&&!Re.hasOwnProperty(f)&&(Re[f]=this.current[f])}this.current[f]=g},q}(),yt={},It=yt;function Se(q,l){yt[q]=l}Se("\\@firstoftwo",function(q){var l=q.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Se("\\@secondoftwo",function(q){var l=q.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Se("\\@ifnextchar",function(q){var l=q.consumeArgs(3),d=q.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Se("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Se("\\TextOrMath",function(q){var l=q.consumeArgs(2);return q.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var Lt={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};Se("\\char",function(q){var l=q.popToken(),d,f="";if(l.text==="'")d=8,l=q.popToken();else if(l.text==='"')d=16,l=q.popToken();else if(l.text==="`")if(l=q.popToken(),l.text[0]==="\\")f=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new H("\\char` missing argument");f=l.text.charCodeAt(0)}else d=10;if(d){if(f=Lt[l.text],f==null||f>=d)throw new H("Invalid base-"+d+" digit "+l.text);for(var g;(g=Lt[q.future().text])!=null&&g<d;)f*=d,f+=g,q.popToken()}return"\\@char{"+f+"}"});var un=function(l,d){var f=l.consumeArgs(1)[0];if(f.length!==1)throw new H("\\gdef's first argument must be a macro name");var g=f[0].text,k=0;for(f=l.consumeArgs(1)[0];f.length===1&&f[0].text==="#";){if(f=l.consumeArgs(1)[0],f.length!==1)throw new H('Invalid argument number length "'+f.length+'"');if(!/^[1-9]$/.test(f[0].text))throw new H('Invalid argument number "'+f[0].text+'"');if(k++,parseInt(f[0].text)!==k)throw new H('Argument number "'+f[0].text+'" out of order');f=l.consumeArgs(1)[0]}return l.macros.set(g,{tokens:f,numArgs:k},d),""};Se("\\gdef",function(q){return un(q,!0)}),Se("\\def",function(q){return un(q,!1)}),Se("\\global",function(q){var l=q.consumeArgs(1)[0];if(l.length!==1)throw new H("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return un(q,!0);throw new H("Invalid command '"+d+"' after \\global")});var rn=function(l,d,f){var g=l.consumeArgs(1)[0];if(g.length!==1)throw new H("\\newcommand's first argument must be a macro name");var k=g[0].text,ae=l.isDefined(k);if(ae&&!d)throw new H("\\newcommand{"+k+"} attempting to redefine "+(k+"; use \\renewcommand"));if(!ae&&!f)throw new H("\\renewcommand{"+k+"} when command "+k+" does not yet exist; use \\newcommand");var Re=0;if(g=l.consumeArgs(1)[0],g.length===1&&g[0].text==="["){for(var Le="",Qe=l.expandNextToken();Qe.text!=="]"&&Qe.text!=="EOF";)Le+=Qe.text,Qe=l.expandNextToken();if(!Le.match(/^\s*[0-9]+\s*$/))throw new H("Invalid number of arguments: "+Le);Re=parseInt(Le),g=l.consumeArgs(1)[0]}return l.macros.set(k,{tokens:g,numArgs:Re}),""};Se("\\newcommand",function(q){return rn(q,!1,!0)}),Se("\\renewcommand",function(q){return rn(q,!0,!1)}),Se("\\providecommand",function(q){return rn(q,!0,!0)}),Se("\\bgroup","{"),Se("\\egroup","}"),Se("\\lq","`"),Se("\\rq","'"),Se("\\aa","\\r a"),Se("\\AA","\\r A"),Se("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Se("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Se("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Se("\u212C","\\mathscr{B}"),Se("\u2130","\\mathscr{E}"),Se("\u2131","\\mathscr{F}"),Se("\u210B","\\mathscr{H}"),Se("\u2110","\\mathscr{I}"),Se("\u2112","\\mathscr{L}"),Se("\u2133","\\mathscr{M}"),Se("\u211B","\\mathscr{R}"),Se("\u212D","\\mathfrak{C}"),Se("\u210C","\\mathfrak{H}"),Se("\u2128","\\mathfrak{Z}"),Se("\\Bbbk","\\Bbb{k}"),Se("\xB7","\\cdotp"),Se("\\llap","\\mathllap{\\textrm{#1}}"),Se("\\rlap","\\mathrlap{\\textrm{#1}}"),Se("\\clap","\\mathclap{\\textrm{#1}}"),Se("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Se("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Se("\\ne","\\neq"),Se("\u2260","\\neq"),Se("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Se("\u2209","\\notin"),Se("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Se("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Se("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Se("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Se("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Se("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Se("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Se("\u27C2","\\perp"),Se("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Se("\u220C","\\notni"),Se("\u231C","\\ulcorner"),Se("\u231D","\\urcorner"),Se("\u231E","\\llcorner"),Se("\u231F","\\lrcorner"),Se("\xA9","\\copyright"),Se("\xAE","\\textregistered"),Se("\uFE0F","\\textregistered"),Se("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Se("\u22EE","\\vdots"),Se("\\varGamma","\\mathit{\\Gamma}"),Se("\\varDelta","\\mathit{\\Delta}"),Se("\\varTheta","\\mathit{\\Theta}"),Se("\\varLambda","\\mathit{\\Lambda}"),Se("\\varXi","\\mathit{\\Xi}"),Se("\\varPi","\\mathit{\\Pi}"),Se("\\varSigma","\\mathit{\\Sigma}"),Se("\\varUpsilon","\\mathit{\\Upsilon}"),Se("\\varPhi","\\mathit{\\Phi}"),Se("\\varPsi","\\mathit{\\Psi}"),Se("\\varOmega","\\mathit{\\Omega}"),Se("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Se("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Se("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Se("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Se("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Se("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var nn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\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"};Se("\\dots",function(q){var l="\\dotso",d=q.expandAfterFuture().text;return d in nn?l=nn[d]:(d.substr(0,4)==="\\not"||d in Ct.math&&B.contains(["bin","rel"],Ct.math[d].group))&&(l="\\dotsb"),l});var ut={")":!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};Se("\\dotso",function(q){var l=q.future().text;return l in ut?"\\ldots\\,":"\\ldots"}),Se("\\dotsc",function(q){var l=q.future().text;return l in ut&&l!==","?"\\ldots\\,":"\\ldots"}),Se("\\cdots",function(q){var l=q.future().text;return l in ut?"\\@cdots\\,":"\\@cdots"}),Se("\\dotsb","\\cdots"),Se("\\dotsm","\\cdots"),Se("\\dotsi","\\!\\cdots"),Se("\\dotsx","\\ldots\\,"),Se("\\DOTSI","\\relax"),Se("\\DOTSB","\\relax"),Se("\\DOTSX","\\relax"),Se("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Se("\\,","\\tmspace+{3mu}{.1667em}"),Se("\\thinspace","\\,"),Se("\\>","\\mskip{4mu}"),Se("\\:","\\tmspace+{4mu}{.2222em}"),Se("\\medspace","\\:"),Se("\\;","\\tmspace+{5mu}{.2777em}"),Se("\\thickspace","\\;"),Se("\\!","\\tmspace-{3mu}{.1667em}"),Se("\\negthinspace","\\!"),Se("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Se("\\negthickspace","\\tmspace-{5mu}{.277em}"),Se("\\enspace","\\kern.5em "),Se("\\enskip","\\hskip.5em\\relax"),Se("\\quad","\\hskip1em\\relax"),Se("\\qquad","\\hskip2em\\relax"),Se("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Se("\\tag@paren","\\tag@literal{({#1})}"),Se("\\tag@literal",function(q){if(q.macros.get("\\df@tag"))throw new H("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Se("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Se("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Se("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Se("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Se("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Se("\\\\","\\newline"),Se("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ln=je["Main-Regular"][84][1]-.7*je["Main-Regular"][65][1]+"em";Se("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ln+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Se("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ln+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Se("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Se("\\@hspace","\\hskip #1\\relax"),Se("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Se("\\ordinarycolon",":"),Se("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Se("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Se("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Se("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Se("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Se("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Se("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Se("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Se("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Se("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Se("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Se("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Se("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Se("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Se("\u2237","\\dblcolon"),Se("\u2239","\\eqcolon"),Se("\u2254","\\coloneqq"),Se("\u2255","\\eqqcolon"),Se("\u2A74","\\Coloneqq"),Se("\\ratio","\\vcentcolon"),Se("\\coloncolon","\\dblcolon"),Se("\\colonequals","\\coloneqq"),Se("\\coloncolonequals","\\Coloneqq"),Se("\\equalscolon","\\eqqcolon"),Se("\\equalscoloncolon","\\Eqqcolon"),Se("\\colonminus","\\coloneq"),Se("\\coloncolonminus","\\Coloneq"),Se("\\minuscolon","\\eqcolon"),Se("\\minuscoloncolon","\\Eqcolon"),Se("\\coloncolonapprox","\\Colonapprox"),Se("\\coloncolonsim","\\Colonsim"),Se("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Se("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Se("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Se("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Se("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Se("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Se("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Se("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Se("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Se("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Se("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Se("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Se("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Se("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Se("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Se("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Se("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Se("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Se("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Se("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Se("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Se("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Se("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Se("\u27E6","\\llbracket"),Se("\u27E7","\\rrbracket"),Se("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Se("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Se("\u2983","\\lBrace"),Se("\u2984","\\rBrace"),Se("\\darr","\\downarrow"),Se("\\dArr","\\Downarrow"),Se("\\Darr","\\Downarrow"),Se("\\lang","\\langle"),Se("\\rang","\\rangle"),Se("\\uarr","\\uparrow"),Se("\\uArr","\\Uparrow"),Se("\\Uarr","\\Uparrow"),Se("\\N","\\mathbb{N}"),Se("\\R","\\mathbb{R}"),Se("\\Z","\\mathbb{Z}"),Se("\\alef","\\aleph"),Se("\\alefsym","\\aleph"),Se("\\Alpha","\\mathrm{A}"),Se("\\Beta","\\mathrm{B}"),Se("\\bull","\\bullet"),Se("\\Chi","\\mathrm{X}"),Se("\\clubs","\\clubsuit"),Se("\\cnums","\\mathbb{C}"),Se("\\Complex","\\mathbb{C}"),Se("\\Dagger","\\ddagger"),Se("\\diamonds","\\diamondsuit"),Se("\\empty","\\emptyset"),Se("\\Epsilon","\\mathrm{E}"),Se("\\Eta","\\mathrm{H}"),Se("\\exist","\\exists"),Se("\\harr","\\leftrightarrow"),Se("\\hArr","\\Leftrightarrow"),Se("\\Harr","\\Leftrightarrow"),Se("\\hearts","\\heartsuit"),Se("\\image","\\Im"),Se("\\infin","\\infty"),Se("\\Iota","\\mathrm{I}"),Se("\\isin","\\in"),Se("\\Kappa","\\mathrm{K}"),Se("\\larr","\\leftarrow"),Se("\\lArr","\\Leftarrow"),Se("\\Larr","\\Leftarrow"),Se("\\lrarr","\\leftrightarrow"),Se("\\lrArr","\\Leftrightarrow"),Se("\\Lrarr","\\Leftrightarrow"),Se("\\Mu","\\mathrm{M}"),Se("\\natnums","\\mathbb{N}"),Se("\\Nu","\\mathrm{N}"),Se("\\Omicron","\\mathrm{O}"),Se("\\plusmn","\\pm"),Se("\\rarr","\\rightarrow"),Se("\\rArr","\\Rightarrow"),Se("\\Rarr","\\Rightarrow"),Se("\\real","\\Re"),Se("\\reals","\\mathbb{R}"),Se("\\Reals","\\mathbb{R}"),Se("\\Rho","\\mathrm{P}"),Se("\\sdot","\\cdot"),Se("\\sect","\\S"),Se("\\spades","\\spadesuit"),Se("\\sub","\\subset"),Se("\\sube","\\subseteq"),Se("\\supe","\\supseteq"),Se("\\Tau","\\mathrm{T}"),Se("\\thetasym","\\vartheta"),Se("\\weierp","\\wp"),Se("\\Zeta","\\mathrm{Z}"),Se("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Se("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Se("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Se("\\blue","\\textcolor{##6495ed}{#1}"),Se("\\orange","\\textcolor{##ffa500}{#1}"),Se("\\pink","\\textcolor{##ff00af}{#1}"),Se("\\red","\\textcolor{##df0030}{#1}"),Se("\\green","\\textcolor{##28ae7b}{#1}"),Se("\\gray","\\textcolor{gray}{#1}"),Se("\\purple","\\textcolor{##9d38bd}{#1}"),Se("\\blueA","\\textcolor{##ccfaff}{#1}"),Se("\\blueB","\\textcolor{##80f6ff}{#1}"),Se("\\blueC","\\textcolor{##63d9ea}{#1}"),Se("\\blueD","\\textcolor{##11accd}{#1}"),Se("\\blueE","\\textcolor{##0c7f99}{#1}"),Se("\\tealA","\\textcolor{##94fff5}{#1}"),Se("\\tealB","\\textcolor{##26edd5}{#1}"),Se("\\tealC","\\textcolor{##01d1c1}{#1}"),Se("\\tealD","\\textcolor{##01a995}{#1}"),Se("\\tealE","\\textcolor{##208170}{#1}"),Se("\\greenA","\\textcolor{##b6ffb0}{#1}"),Se("\\greenB","\\textcolor{##8af281}{#1}"),Se("\\greenC","\\textcolor{##74cf70}{#1}"),Se("\\greenD","\\textcolor{##1fab54}{#1}"),Se("\\greenE","\\textcolor{##0d923f}{#1}"),Se("\\goldA","\\textcolor{##ffd0a9}{#1}"),Se("\\goldB","\\textcolor{##ffbb71}{#1}"),Se("\\goldC","\\textcolor{##ff9c39}{#1}"),Se("\\goldD","\\textcolor{##e07d10}{#1}"),Se("\\goldE","\\textcolor{##a75a05}{#1}"),Se("\\redA","\\textcolor{##fca9a9}{#1}"),Se("\\redB","\\textcolor{##ff8482}{#1}"),Se("\\redC","\\textcolor{##f9685d}{#1}"),Se("\\redD","\\textcolor{##e84d39}{#1}"),Se("\\redE","\\textcolor{##bc2612}{#1}"),Se("\\maroonA","\\textcolor{##ffbde0}{#1}"),Se("\\maroonB","\\textcolor{##ff92c6}{#1}"),Se("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Se("\\maroonD","\\textcolor{##ca337c}{#1}"),Se("\\maroonE","\\textcolor{##9e034e}{#1}"),Se("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Se("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Se("\\purpleC","\\textcolor{##aa87ff}{#1}"),Se("\\purpleD","\\textcolor{##7854ab}{#1}"),Se("\\purpleE","\\textcolor{##543b78}{#1}"),Se("\\mintA","\\textcolor{##f5f9e8}{#1}"),Se("\\mintB","\\textcolor{##edf2df}{#1}"),Se("\\mintC","\\textcolor{##e0e5cc}{#1}"),Se("\\grayA","\\textcolor{##f6f7f7}{#1}"),Se("\\grayB","\\textcolor{##f0f1f2}{#1}"),Se("\\grayC","\\textcolor{##e3e5e6}{#1}"),Se("\\grayD","\\textcolor{##d6d8da}{#1}"),Se("\\grayE","\\textcolor{##babec2}{#1}"),Se("\\grayF","\\textcolor{##888d93}{#1}"),Se("\\grayG","\\textcolor{##626569}{#1}"),Se("\\grayH","\\textcolor{##3b3e40}{#1}"),Se("\\grayI","\\textcolor{##21242c}{#1}"),Se("\\kaBlue","\\textcolor{##314453}{#1}"),Se("\\kaGreen","\\textcolor{##71B307}{#1}");var zn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Nn=function(){function q(d,f,g){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=f,this.expansionCount=0,this.feed(d),this.macros=new Et(It,f.macros),this.mode=g,this.stack=[]}var l=q.prototype;return l.feed=function(f){this.lexer=new _t(f,this.settings)},l.switchMode=function(f){this.mode=f},l.beginGroup=function(){this.macros.beginGroup()},l.endGroup=function(){this.macros.endGroup()},l.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},l.popToken=function(){return this.future(),this.stack.pop()},l.pushToken=function(f){this.stack.push(f)},l.pushTokens=function(f){var g;(g=this.stack).push.apply(g,f)},l.consumeSpaces=function(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}},l.consumeArgs=function(f){for(var g=[],k=0;k<f;++k){this.consumeSpaces();var ae=this.popToken();if(ae.text==="{"){for(var Re=[],Le=1;Le!==0;){var Qe=this.popToken();if(Re.push(Qe),Qe.text==="{")++Le;else if(Qe.text==="}")--Le;else if(Qe.text==="EOF")throw new H("End of input in macro argument",ae)}Re.pop(),Re.reverse(),g[k]=Re}else{if(ae.text==="EOF")throw new H("End of input expecting macro argument");g[k]=[ae]}}return g},l.expandOnce=function(){var f=this.popToken(),g=f.text,k=this._getExpansion(g);if(k==null)return this.pushToken(f),f;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new H("Too many expansions: infinite loop or need to increase maxExpand setting");var ae=k.tokens;if(k.numArgs){var Re=this.consumeArgs(k.numArgs);ae=ae.slice();for(var Le=ae.length-1;Le>=0;--Le){var Qe=ae[Le];if(Qe.text==="#"){if(Le===0)throw new H("Incomplete placeholder at end of macro body",Qe);if(Qe=ae[--Le],Qe.text==="#")ae.splice(Le+1,1);else if(/^[1-9]$/.test(Qe.text)){var dt;(dt=ae).splice.apply(dt,[Le,2].concat(Re[+Qe.text-1]))}else throw new H("Not a valid argument number",Qe)}}}return this.pushTokens(ae),ae},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var f=this.expandOnce();if(f instanceof ye)if(f.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(f){if(this.macros.get(f)){var g=[],k=this.stack.length;for(this.pushToken(new ye(f));this.stack.length>k;){var ae=this.expandOnce();ae instanceof ye&&g.push(this.stack.pop())}return g}},l.expandMacroAsText=function(f){var g=this.expandMacro(f);return g&&g.map(function(k){return k.text}).join("")},l._getExpansion=function(f){var g=this.macros.get(f);if(g==null)return g;var k=typeof g=="function"?g(this):g;if(typeof k=="string"){var ae=0;if(k.indexOf("#")!==-1)for(var Re=k.replace(/##/g,"");Re.indexOf("#"+(ae+1))!==-1;)++ae;for(var Le=new _t(k,this.settings),Qe=[],dt=Le.lex();dt.text!=="EOF";)Qe.push(dt),dt=Le.lex();Qe.reverse();var wt={tokens:Qe,numArgs:ae};return wt}return k},l.isDefined=function(f){return this.macros.has(f)||ka.hasOwnProperty(f)||Ct.math.hasOwnProperty(f)||Ct.text.hasOwnProperty(f)||zn.hasOwnProperty(f)},q}(),Kn={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},yr={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},br=function(){function q(d,f){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 Nn(d,f,this.mode),this.settings=f,this.leftrightDepth=0}var l=q.prototype;return l.expect=function(f,g){if(g===void 0&&(g=!0),this.fetch().text!==f)throw new H("Expected '"+f+"', got '"+this.fetch().text+"'",this.fetch());g&&this.consume()},l.consume=function(){this.nextToken=null},l.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},l.switchMode=function(f){this.mode=f,this.gullet.switchMode(f)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var f=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),f},l.parseExpression=function(f,g){for(var k=[];;){this.mode==="math"&&this.consumeSpaces();var ae=this.fetch();if(q.endOfExpression.indexOf(ae.text)!==-1||g&&ae.text===g||f&&ka[ae.text]&&ka[ae.text].infix)break;var Re=this.parseAtom(g);if(!Re)break;k.push(Re)}return this.mode==="text"&&this.formLigatures(k),this.handleInfixNodes(k)},l.handleInfixNodes=function(f){for(var g=-1,k,ae=0;ae<f.length;ae++){var Re=ar(f[ae],"infix");if(Re){if(g!==-1)throw new H("only one infix operator per group",Re.token);g=ae,k=Re.replaceWith}}if(g!==-1&&k){var Le,Qe,dt=f.slice(0,g),wt=f.slice(g+1);dt.length===1&&dt[0].type==="ordgroup"?Le=dt[0]:Le={type:"ordgroup",mode:this.mode,body:dt},wt.length===1&&wt[0].type==="ordgroup"?Qe=wt[0]:Qe={type:"ordgroup",mode:this.mode,body:wt};var Ut;return k==="\\\\abovefrac"?Ut=this.callFunction(k,[Le,f[g],Qe],[]):Ut=this.callFunction(k,[Le,Qe],[]),[Ut]}else return f},l.handleSupSubscript=function(f){var g=this.fetch(),k=g.text;this.consume();var ae=this.parseGroup(f,!1,q.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ae)throw new H("Expected group after '"+k+"'",g);return ae},l.formatUnsupportedCmd=function(f){for(var g=[],k=0;k<f.length;k++)g.push({type:"textord",mode:"text",text:f[k]});var ae={type:"text",mode:this.mode,body:g},Re={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ae]};return Re},l.parseAtom=function(f){var g=this.parseGroup("atom",!1,null,f);if(this.mode==="text")return g;for(var k,ae;;){this.consumeSpaces();var Re=this.fetch();if(Re.text==="\\limits"||Re.text==="\\nolimits"){var Le=ar(g,"op");if(Le){var Qe=Re.text==="\\limits";Le.limits=Qe,Le.alwaysHandleSupSub=!0}else if(Le=ar(g,"operatorname"),Le&&Le.alwaysHandleSupSub){var dt=Re.text==="\\limits";Le.limits=dt}else throw new H("Limit controls must follow a math operator",Re);this.consume()}else if(Re.text==="^"){if(k)throw new H("Double superscript",Re);k=this.handleSupSubscript("superscript")}else if(Re.text==="_"){if(ae)throw new H("Double subscript",Re);ae=this.handleSupSubscript("subscript")}else if(Re.text==="'"){if(k)throw new H("Double superscript",Re);var wt={type:"textord",mode:this.mode,text:"\\prime"},Ut=[wt];for(this.consume();this.fetch().text==="'";)Ut.push(wt),this.consume();this.fetch().text==="^"&&Ut.push(this.handleSupSubscript("superscript")),k={type:"ordgroup",mode:this.mode,body:Ut}}else break}return k||ae?{type:"supsub",mode:this.mode,base:g,sup:k,sub:ae}:g},l.parseFunction=function(f,g,k){var ae=this.fetch(),Re=ae.text,Le=ka[Re];if(!Le)return null;if(this.consume(),k!=null&&Le.greediness<=k)throw new H("Got function '"+Re+"' with no arguments"+(g?" as "+g:""),ae);if(this.mode==="text"&&!Le.allowedInText)throw new H("Can't use function '"+Re+"' in text mode",ae);if(this.mode==="math"&&Le.allowedInMath===!1)throw new H("Can't use function '"+Re+"' in math mode",ae);var Qe=this.parseArguments(Re,Le),dt=Qe.args,wt=Qe.optArgs;return this.callFunction(Re,dt,wt,ae,f)},l.callFunction=function(f,g,k,ae,Re){var Le={funcName:f,parser:this,token:ae,breakOnTokenText:Re},Qe=ka[f];if(Qe&&Qe.handler)return Qe.handler(Le,g,k);throw new H("No function handler for "+f)},l.parseArguments=function(f,g){var k=g.numArgs+g.numOptionalArgs;if(k===0)return{args:[],optArgs:[]};for(var ae=g.greediness,Re=[],Le=[],Qe=0;Qe<k;Qe++){var dt=g.argTypes&&g.argTypes[Qe],wt=Qe<g.numOptionalArgs,Ut=Qe>0&&!wt||Qe===0&&!wt&&this.mode==="math",mn=this.parseGroupOfType("argument to '"+f+"'",dt,wt,ae,Ut);if(!mn){if(wt){Le.push(null);continue}throw new H("Expected group after '"+f+"'",this.fetch())}(wt?Le:Re).push(mn)}return{args:Re,optArgs:Le}},l.parseGroupOfType=function(f,g,k,ae,Re){switch(g){case"color":return Re&&this.consumeSpaces(),this.parseColorGroup(k);case"size":return Re&&this.consumeSpaces(),this.parseSizeGroup(k);case"url":return this.parseUrlGroup(k,Re);case"math":case"text":return this.parseGroup(f,k,ae,void 0,g,Re);case"hbox":{var Le=this.parseGroup(f,k,ae,void 0,"text",Re);if(!Le)return Le;var Qe={type:"styling",mode:Le.mode,body:[Le],style:"text"};return Qe}case"raw":{if(Re&&this.consumeSpaces(),k&&this.fetch().text==="{")return null;var dt=this.parseStringGroup("raw",k,!0);if(dt)return{type:"raw",mode:"text",string:dt.text};throw new H("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(f,k,ae,void 0,void 0,Re);default:throw new H("Unknown group type as "+f,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(f,g,k){var ae=g?"[":"{",Re=g?"]":"}",Le=this.fetch();if(Le.text!==ae){if(g)return null;if(k&&Le.text!=="EOF"&&/[^{}[\]]/.test(Le.text))return this.consume(),Le}var Qe=this.mode;this.mode="text",this.expect(ae);for(var dt="",wt=this.fetch(),Ut=0,mn=wt,Zt;(Zt=this.fetch()).text!==Re||k&&Ut>0;){switch(Zt.text){case"EOF":throw new H("Unexpected end of input in "+f,wt.range(mn,dt));case ae:Ut++;break;case Re:Ut--;break}mn=Zt,dt+=mn.text,this.consume()}return this.expect(Re),this.mode=Qe,wt.range(mn,dt)},l.parseRegexGroup=function(f,g){var k=this.mode;this.mode="text";for(var ae=this.fetch(),Re=ae,Le="",Qe;(Qe=this.fetch()).text!=="EOF"&&f.test(Le+Qe.text);)Re=Qe,Le+=Re.text,this.consume();if(Le==="")throw new H("Invalid "+g+": '"+ae.text+"'",ae);return this.mode=k,ae.range(Re,Le)},l.parseColorGroup=function(f){var g=this.parseStringGroup("color",f);if(!g)return null;var k=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(g.text);if(!k)throw new H("Invalid color: '"+g.text+"'",g);var ae=k[0];return/^[0-9a-f]{6}$/i.test(ae)&&(ae="#"+ae),{type:"color-token",mode:this.mode,color:ae}},l.parseSizeGroup=function(f){var g,k=!1;if(!f&&this.fetch().text!=="{"?g=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):g=this.parseStringGroup("size",f),!g)return null;!f&&g.text.length===0&&(g.text="0pt",k=!0);var ae=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(g.text);if(!ae)throw new H("Invalid size: '"+g.text+"'",g);var Re={number:+(ae[1]+ae[2]),unit:ae[3]};if(!ct(Re))throw new H("Invalid unit: '"+Re.unit+"'",g);return{type:"size",mode:this.mode,value:Re,isBlank:k}},l.parseUrlGroup=function(f,g){this.gullet.lexer.setCatcode("%",13);var k=this.parseStringGroup("url",f,!0);if(this.gullet.lexer.setCatcode("%",14),!k)return null;var ae=k.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ae}},l.parseGroup=function(f,g,k,ae,Re,Le){var Qe=this.mode;Re&&this.switchMode(Re),Le&&this.consumeSpaces();var dt=this.fetch(),wt=dt.text,Ut;if(g?wt==="[":wt==="{"||wt==="\\begingroup"){this.consume();var mn=q.endOfGroup[wt];this.gullet.beginGroup();var Zt=this.parseExpression(!1,mn),Qt=this.fetch();this.expect(mn),this.gullet.endGroup(),Ut={type:"ordgroup",mode:this.mode,loc:X.range(dt,Qt),body:Zt,semisimple:wt==="\\begingroup"||void 0}}else if(g)Ut=null;else if(Ut=this.parseFunction(ae,f,k)||this.parseSymbol(),Ut==null&&wt[0]==="\\"&&!zn.hasOwnProperty(wt)){if(this.settings.throwOnError)throw new H("Undefined control sequence: "+wt,dt);Ut=this.formatUnsupportedCmd(wt),this.consume()}return Re&&this.switchMode(Qe),Ut},l.formLigatures=function(f){for(var g=f.length-1,k=0;k<g;++k){var ae=f[k],Re=ae.text;Re==="-"&&f[k+1].text==="-"&&(k+1<g&&f[k+2].text==="-"?(f.splice(k,3,{type:"textord",mode:"text",loc:X.range(ae,f[k+2]),text:"---"}),g-=2):(f.splice(k,2,{type:"textord",mode:"text",loc:X.range(ae,f[k+1]),text:"--"}),g-=1)),(Re==="'"||Re==="`")&&f[k+1].text===Re&&(f.splice(k,2,{type:"textord",mode:"text",loc:X.range(ae,f[k+1]),text:Re+Re}),g-=1)}},l.parseSymbol=function(){var f=this.fetch(),g=f.text;if(/^\\verb[^a-zA-Z]/.test(g)){this.consume();var k=g.slice(5),ae=k.charAt(0)==="*";if(ae&&(k=k.slice(1)),k.length<2||k.charAt(0)!==k.slice(-1))throw new H(`\\verb assertion failed --
please report what input caused this bug`);return k=k.slice(1,-1),{type:"verb",mode:"text",body:k,star:ae}}yr.hasOwnProperty(g[0])&&!Ct[this.mode][g[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+g[0]+'" used in math mode',f),g=yr[g[0]]+g.substr(1));var Re=tt.exec(g);Re&&(g=g.substring(0,Re.index),g==="i"?g="\u0131":g==="j"&&(g="\u0237"));var Le;if(Ct[this.mode][g]){this.settings.strict&&this.mode==="math"&&sn.indexOf(g)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+g[0]+'" used in math mode',f);var Qe=Ct[this.mode][g].group,dt=X.range(f),wt;if(bt.hasOwnProperty(Qe)){var Ut=Qe;wt={type:"atom",mode:this.mode,family:Ut,loc:dt,text:g}}else wt={type:Qe,mode:this.mode,loc:dt,text:g};Le=wt}else if(g.charCodeAt(0)>=128)this.settings.strict&&(Be(g.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+g[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+g[0]+'"'+(" ("+g.charCodeAt(0)+")"),f)),Le={type:"textord",mode:"text",loc:X.range(f),text:g};else return null;if(this.consume(),Re)for(var mn=0;mn<Re[0].length;mn++){var Zt=Re[0][mn];if(!Kn[Zt])throw new H("Unknown accent ' "+Zt+"'",f);var Qt=Kn[Zt][this.mode];if(!Qt)throw new H("Accent "+Zt+" unsupported in "+this.mode+" mode",f);Le={type:"accent",mode:this.mode,loc:X.range(f),label:Qt,isStretchy:!1,isShifty:!0,base:Le}}return Le},q}();br.endOfExpression=["}","\\endgroup","\\end","\\right","&"],br.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},br.SUPSUB_GREEDINESS=1;var dr=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var f=new br(l,d);delete f.gullet.macros.current["\\df@tag"];var g=f.parse();if(f.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new H("\\tag works only in display equations");f.gullet.feed("\\df@tag"),g=[{type:"tag",mode:"text",body:g,tag:f.parse()}]}return g},Lr=dr,Fr=function(l,d,f){d.textContent="";var g=Mn(l,f).toNode();d.appendChild(g)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Fr=function(){throw new H("KaTeX doesn't work in quirks mode.")});var Wn=function(l,d){var f=Mn(l,d).toMarkup();return f},fr=function(l,d){var f=new M(d);return Lr(l,f)},Vn=function(l,d,f){if(f.throwOnError||!(l instanceof H))throw l;var g=nt.makeSpan(["katex-error"],[new R(d)]);return g.setAttribute("title",l.toString()),g.setAttribute("style","color:"+f.errorColor),g},Mn=function(l,d){var f=new M(d);try{var g=Lr(l,f);return bi(g,l,f)}catch(k){return Vn(k,l,f)}},ur=function(l,d){var f=new M(d);try{var g=Lr(l,f);return Oi(g,l,f)}catch(k){return Vn(k,l,f)}},Ir={version:"0.11.1",render:Fr,renderToString:Wn,ParseError:H,__parse:fr,__renderToDomTree:Mn,__renderToHTMLTree:ur,__setFontMetrics:Xe,__defineSymbol:w,__defineMacro:Se,__domTree:{Span:ne,Anchor:Y,SymbolNode:R,SvgNode:L,PathNode:oe,LineNode:le}},Gr=h.default=Ir}]).default})},32834:function(Wt){(function(Ze,h){Wt.exports=h()})(this,function(){"use strict";function Ze(We,rt){for(var Je=0;Je<rt.length;Je++){var Ee=rt[Je];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(We,Ee.key,Ee)}}function h(We,rt,Je){return rt&&Ze(We.prototype,rt),Je&&Ze(We,Je),We}function z(We,rt){if(We){if(typeof We=="string")return N(We,rt);var Je=Object.prototype.toString.call(We).slice(8,-1);if(Je==="Object"&&We.constructor&&(Je=We.constructor.name),Je==="Map"||Je==="Set")return Array.from(We);if(Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je))return N(We,rt)}}function N(We,rt){(rt==null||rt>We.length)&&(rt=We.length);for(var Je=0,Ee=new Array(rt);Je<rt;Je++)Ee[Je]=We[Je];return Ee}function X(We,rt){var Je=typeof Symbol!="undefined"&&We[Symbol.iterator]||We["@@iterator"];if(Je)return(Je=Je.call(We)).next.bind(Je);if(Array.isArray(We)||(Je=z(We))||rt&&We&&typeof We.length=="number"){Je&&(We=Je);var Ee=0;return function(){return Ee>=We.length?{done:!0}:{done:!1,value:We[Ee++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye={exports:{}};function U(){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 H(We){ye.exports.defaults=We}ye.exports={defaults:U(),getDefaults:U,changeDefaults:H};var S=/[&<>"']/,me=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(rt){return I[rt]};function u(We,rt){if(rt){if(S.test(We))return We.replace(me,m)}else if(a.test(We))return We.replace(C,m);return We}var x=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(We){return We.replace(x,function(rt,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}var O=/(^|[^\[])\^/g;function te(We,rt){We=We.source||We,rt=rt||"";var Je={replace:function(Te,ze){return ze=ze.source||ze,ze=ze.replace(O,"$1"),We=We.replace(Te,ze),Je},getRegex:function(){return new RegExp(We,rt)}};return Je}var B=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function W(We,rt,Je){if(We){var Ee;try{Ee=decodeURIComponent(y(Je)).replace(B,"").toLowerCase()}catch(Te){return null}if(Ee.indexOf("javascript:")===0||Ee.indexOf("vbscript:")===0||Ee.indexOf("data:")===0)return null}rt&&!M.test(Je)&&(Je=j(rt,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(Te){return null}return Je}var V={},b=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,G=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(We,rt){V[" "+We]||(b.test(We)?V[" "+We]=We+"/":V[" "+We]=de(We,"/",!0)),We=V[" "+We];var Je=We.indexOf(":")===-1;return rt.substring(0,2)==="//"?Je?rt:We.replace(T,"$1")+rt:rt.charAt(0)==="/"?Je?rt:We.replace(G,"$1")+rt:We+rt}var be={exec:function(){}};function _e(We){for(var rt=1,Je,Ee;rt<arguments.length;rt++){Je=arguments[rt];for(Ee in Je)Object.prototype.hasOwnProperty.call(Je,Ee)&&(We[Ee]=Je[Ee])}return We}function xe(We,rt){var Je=We.replace(/\|/g,function(ze,qe,ge){for(var Jt=!1,He=qe;--He>=0&&ge[He]==="\\";)Jt=!Jt;return Jt?"|":" |"}),Ee=Je.split(/ \|/),Te=0;if(Ee.length>rt)Ee.splice(rt);else for(;Ee.length<rt;)Ee.push("");for(;Te<Ee.length;Te++)Ee[Te]=Ee[Te].trim().replace(/\\\|/g,"|");return Ee}function de(We,rt,Je){var Ee=We.length;if(Ee===0)return"";for(var Te=0;Te<Ee;){var ze=We.charAt(Ee-Te-1);if(ze===rt&&!Je)Te++;else if(ze!==rt&&Je)Te++;else break}return We.substr(0,Ee-Te)}function ee(We,rt){if(We.indexOf(rt[1])===-1)return-1;for(var Je=We.length,Ee=0,Te=0;Te<Je;Te++)if(We[Te]==="\\")Te++;else if(We[Te]===rt[0])Ee++;else if(We[Te]===rt[1]&&(Ee--,Ee<0))return Te;return-1}function Z(We){We&&We.sanitize&&!We.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function pe(We,rt){if(rt<1)return"";for(var Je="";rt>1;)rt&1&&(Je+=We),rt>>=1,We+=We;return Je+We}var P={escape:u,unescape:y,edit:te,cleanUrl:W,resolveUrl:j,noopTest:be,merge:_e,splitCells:xe,rtrim:de,findClosingBracket:ee,checkSanitizeDeprecation:Z,repeatString:pe},ie=ye.exports.defaults,Q=P.rtrim,v=P.splitCells,E=P.escape,K=P.findClosingBracket;function fe(We,rt,Je){var Ee=rt.href,Te=rt.title?E(rt.title):null,ze=We[1].replace(/\\([\[\]])/g,"$1");return We[0].charAt(0)!=="!"?{type:"link",raw:Je,href:Ee,title:Te,text:ze}:{type:"image",raw:Je,href:Ee,title:Te,text:E(ze)}}function Be(We,rt){var Je=We.match(/^(\s+)(?:```)/);if(Je===null)return rt;var Ee=Je[1];return rt.split(`
`).map(function(Te){var ze=Te.match(/^\s+/);if(ze===null)return Te;var qe=ze[0];return qe.length>=Ee.length?Te.slice(Ee.length):Te}).join(`
`)}var Ke=function(){function We(Je){this.options=Je||ie}var rt=We.prototype;return rt.space=function(Ee){var Te=this.rules.block.newline.exec(Ee);if(Te)return Te[0].length>1?{type:"space",raw:Te[0]}:{raw:`
`}},rt.code=function(Ee){var Te=this.rules.block.code.exec(Ee);if(Te){var ze=Te[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Te[0],codeBlockStyle:"indented",text:this.options.pedantic?ze:Q(ze,`
`)}}},rt.fences=function(Ee){var Te=this.rules.block.fences.exec(Ee);if(Te){var ze=Te[0],qe=Be(ze,Te[3]||"");return{type:"code",raw:ze,lang:Te[2]?Te[2].trim():Te[2],text:qe}}},rt.heading=function(Ee){var Te=this.rules.block.heading.exec(Ee);if(Te){var ze=Te[2].trim();if(/#$/.test(ze)){var qe=Q(ze,"#");(this.options.pedantic||!qe||/ $/.test(qe))&&(ze=qe.trim())}return{type:"heading",raw:Te[0],depth:Te[1].length,text:ze}}},rt.nptable=function(Ee){var Te=this.rules.block.nptable.exec(Ee);if(Te){var ze={type:"table",header:v(Te[1].replace(/^ *| *\| *$/g,"")),align:Te[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Te[3]?Te[3].replace(/\n$/,"").split(`
`):[],raw:Te[0]};if(ze.header.length===ze.align.length){var qe=ze.align.length,ge;for(ge=0;ge<qe;ge++)/^ *-+: *$/.test(ze.align[ge])?ze.align[ge]="right":/^ *:-+: *$/.test(ze.align[ge])?ze.align[ge]="center":/^ *:-+ *$/.test(ze.align[ge])?ze.align[ge]="left":ze.align[ge]=null;for(qe=ze.cells.length,ge=0;ge<qe;ge++)ze.cells[ge]=v(ze.cells[ge],ze.header.length);return ze}}},rt.hr=function(Ee){var Te=this.rules.block.hr.exec(Ee);if(Te)return{type:"hr",raw:Te[0]}},rt.blockquote=function(Ee){var Te=this.rules.block.blockquote.exec(Ee);if(Te){var ze=Te[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Te[0],text:ze}}},rt.list=function(Ee){var Te=this.rules.block.list.exec(Ee);if(Te){var ze=Te[0],qe=Te[2],ge=qe.length>1,Jt={type:"list",raw:ze,ordered:ge,start:ge?+qe.slice(0,-1):"",loose:!1,items:[]},He=Te[0].match(this.rules.block.item),fn=!1,An,Hn,vr,hn,pn,et,Rt,Ft,Ue,Oe=He.length;vr=this.rules.block.listItemStart.exec(He[0]);for(var xt=0;xt<Oe;xt++){if(An=He[xt],ze=An,this.options.pedantic||(Ue=An.match(new RegExp("\\n\\s*\\n {0,"+(vr[0].length-1)+"}\\S")),Ue&&(pn=An.length-Ue.index+He.slice(xt+1).join(`
`).length,Jt.raw=Jt.raw.substring(0,Jt.raw.length-pn),An=An.substring(0,Ue.index),ze=An,Oe=xt+1)),xt!==Oe-1){if(hn=this.rules.block.listItemStart.exec(He[xt+1]),this.options.pedantic?hn[1].length>vr[1].length:hn[1].length>=vr[0].length||hn[1].length>3){He.splice(xt,2,He[xt]+(!this.options.pedantic&&hn[1].length<vr[0].length&&!He[xt].match(/\n$/)?"":`
`)+He[xt+1]),xt--,Oe--;continue}else(!this.options.pedantic||this.options.smartLists?hn[2][hn[2].length-1]!==qe[qe.length-1]:ge===(hn[2].length===1))&&(pn=He.slice(xt+1).join(`
`).length,Jt.raw=Jt.raw.substring(0,Jt.raw.length-pn),xt=Oe-1);vr=hn}Hn=An.length,An=An.replace(/^ *([*+-]|\d+[.)]) ?/,""),~An.indexOf(`
`)&&(Hn-=An.length,An=this.options.pedantic?An.replace(/^ {1,4}/gm,""):An.replace(new RegExp("^ {1,"+Hn+"}","gm"),"")),An=Q(An,`
`),xt!==Oe-1&&(ze=ze+`
`),et=fn||/\n\n(?!\s*$)/.test(ze),xt!==Oe-1&&(fn=ze.slice(-2)===`
`,et||(et=fn)),et&&(Jt.loose=!0),this.options.gfm&&(Rt=/^\[[ xX]\] /.test(An),Ft=void 0,Rt&&(Ft=An[1]!==" ",An=An.replace(/^\[[ xX]\] +/,""))),Jt.items.push({type:"list_item",raw:ze,task:Rt,checked:Ft,loose:et,text:An})}return Jt}},rt.html=function(Ee){var Te=this.rules.block.html.exec(Ee);if(Te)return{type:this.options.sanitize?"paragraph":"html",raw:Te[0],pre:!this.options.sanitizer&&(Te[1]==="pre"||Te[1]==="script"||Te[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Te[0]):E(Te[0]):Te[0]}},rt.def=function(Ee){var Te=this.rules.block.def.exec(Ee);if(Te){Te[3]&&(Te[3]=Te[3].substring(1,Te[3].length-1));var ze=Te[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:ze,raw:Te[0],href:Te[2],title:Te[3]}}},rt.table=function(Ee){var Te=this.rules.block.table.exec(Ee);if(Te){var ze={type:"table",header:v(Te[1].replace(/^ *| *\| *$/g,"")),align:Te[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Te[3]?Te[3].replace(/\n$/,"").split(`
`):[]};if(ze.header.length===ze.align.length){ze.raw=Te[0];var qe=ze.align.length,ge;for(ge=0;ge<qe;ge++)/^ *-+: *$/.test(ze.align[ge])?ze.align[ge]="right":/^ *:-+: *$/.test(ze.align[ge])?ze.align[ge]="center":/^ *:-+ *$/.test(ze.align[ge])?ze.align[ge]="left":ze.align[ge]=null;for(qe=ze.cells.length,ge=0;ge<qe;ge++)ze.cells[ge]=v(ze.cells[ge].replace(/^ *\| *| *\| *$/g,""),ze.header.length);return ze}}},rt.lheading=function(Ee){var Te=this.rules.block.lheading.exec(Ee);if(Te)return{type:"heading",raw:Te[0],depth:Te[2].charAt(0)==="="?1:2,text:Te[1]}},rt.paragraph=function(Ee){var Te=this.rules.block.paragraph.exec(Ee);if(Te)return{type:"paragraph",raw:Te[0],text:Te[1].charAt(Te[1].length-1)===`
`?Te[1].slice(0,-1):Te[1]}},rt.text=function(Ee){var Te=this.rules.block.text.exec(Ee);if(Te)return{type:"text",raw:Te[0],text:Te[0]}},rt.escape=function(Ee){var Te=this.rules.inline.escape.exec(Ee);if(Te)return{type:"escape",raw:Te[0],text:E(Te[1])}},rt.tag=function(Ee,Te,ze){var qe=this.rules.inline.tag.exec(Ee);if(qe)return!Te&&/^<a /i.test(qe[0])?Te=!0:Te&&/^<\/a>/i.test(qe[0])&&(Te=!1),!ze&&/^<(pre|code|kbd|script)(\s|>)/i.test(qe[0])?ze=!0:ze&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(qe[0])&&(ze=!1),{type:this.options.sanitize?"text":"html",raw:qe[0],inLink:Te,inRawBlock:ze,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(qe[0]):E(qe[0]):qe[0]}},rt.link=function(Ee){var Te=this.rules.inline.link.exec(Ee);if(Te){var ze=Te[2].trim();if(!this.options.pedantic&&/^</.test(ze)){if(!/>$/.test(ze))return;var qe=Q(ze.slice(0,-1),"\\");if((ze.length-qe.length)%2===0)return}else{var ge=K(Te[2],"()");if(ge>-1){var Jt=Te[0].indexOf("!")===0?5:4,He=Jt+Te[1].length+ge;Te[2]=Te[2].substring(0,ge),Te[0]=Te[0].substring(0,He).trim(),Te[3]=""}}var fn=Te[2],An="";if(this.options.pedantic){var Hn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(fn);Hn&&(fn=Hn[1],An=Hn[3])}else An=Te[3]?Te[3].slice(1,-1):"";return fn=fn.trim(),/^</.test(fn)&&(this.options.pedantic&&!/>$/.test(ze)?fn=fn.slice(1):fn=fn.slice(1,-1)),fe(Te,{href:fn&&fn.replace(this.rules.inline._escapes,"$1"),title:An&&An.replace(this.rules.inline._escapes,"$1")},Te[0])}},rt.reflink=function(Ee,Te){var ze;if((ze=this.rules.inline.reflink.exec(Ee))||(ze=this.rules.inline.nolink.exec(Ee))){var qe=(ze[2]||ze[1]).replace(/\s+/g," ");if(qe=Te[qe.toLowerCase()],!qe||!qe.href){var ge=ze[0].charAt(0);return{type:"text",raw:ge,text:ge}}return fe(ze,qe,ze[0])}},rt.emStrong=function(Ee,Te,ze){ze===void 0&&(ze="");var qe=this.rules.inline.emStrong.lDelim.exec(Ee);if(qe&&!(qe[3]&&ze.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\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\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-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\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 ge=qe[1]||qe[2]||"";if(!ge||ge&&(ze===""||this.rules.inline.punctuation.exec(ze))){var Jt=qe[0].length-1,He,fn,An=Jt,Hn=0,vr=qe[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(vr.lastIndex=0,Te=Te.slice(-1*Ee.length+Jt);(qe=vr.exec(Te))!=null;)if(He=qe[1]||qe[2]||qe[3]||qe[4]||qe[5]||qe[6],!!He){if(fn=He.length,qe[3]||qe[4]){An+=fn;continue}else if((qe[5]||qe[6])&&Jt%3&&!((Jt+fn)%3)){Hn+=fn;continue}if(An-=fn,!(An>0))return fn=Math.min(fn,fn+An+Hn),Math.min(Jt,fn)%2?{type:"em",raw:Ee.slice(0,Jt+qe.index+fn+1),text:Ee.slice(1,Jt+qe.index+fn)}:{type:"strong",raw:Ee.slice(0,Jt+qe.index+fn+1),text:Ee.slice(2,Jt+qe.index+fn-1)}}}}},rt.codespan=function(Ee){var Te=this.rules.inline.code.exec(Ee);if(Te){var ze=Te[2].replace(/\n/g," "),qe=/[^ ]/.test(ze),ge=/^ /.test(ze)&&/ $/.test(ze);return qe&&ge&&(ze=ze.substring(1,ze.length-1)),ze=E(ze,!0),{type:"codespan",raw:Te[0],text:ze}}},rt.br=function(Ee){var Te=this.rules.inline.br.exec(Ee);if(Te)return{type:"br",raw:Te[0]}},rt.del=function(Ee){var Te=this.rules.inline.del.exec(Ee);if(Te)return{type:"del",raw:Te[0],text:Te[2]}},rt.autolink=function(Ee,Te){var ze=this.rules.inline.autolink.exec(Ee);if(ze){var qe,ge;return ze[2]==="@"?(qe=E(this.options.mangle?Te(ze[1]):ze[1]),ge="mailto:"+qe):(qe=E(ze[1]),ge=qe),{type:"link",raw:ze[0],text:qe,href:ge,tokens:[{type:"text",raw:qe,text:qe}]}}},rt.url=function(Ee,Te){var ze;if(ze=this.rules.inline.url.exec(Ee)){var qe,ge;if(ze[2]==="@")qe=E(this.options.mangle?Te(ze[0]):ze[0]),ge="mailto:"+qe;else{var Jt;do Jt=ze[0],ze[0]=this.rules.inline._backpedal.exec(ze[0])[0];while(Jt!==ze[0]);qe=E(ze[0]),ze[1]==="www."?ge="http://"+qe:ge=qe}return{type:"link",raw:ze[0],text:qe,href:ge,tokens:[{type:"text",raw:qe,text:qe}]}}},rt.inlineText=function(Ee,Te,ze){var qe=this.rules.inline.text.exec(Ee);if(qe){var ge;return Te?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(qe[0]):E(qe[0]):qe[0]:ge=E(this.options.smartypants?ze(qe[0]):qe[0]),{type:"text",raw:qe[0],text:ge}}},We}(),Me=P.noopTest,Ye=P.edit,ht=P.merge,pt={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]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Me,table:Me,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};pt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,pt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,pt.def=Ye(pt.def).replace("label",pt._label).replace("title",pt._title).getRegex(),pt.bullet=/(?:[*+-]|\d{1,9}[.)])/,pt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,pt.item=Ye(pt.item,"gm").replace(/bull/g,pt.bullet).getRegex(),pt.listItemStart=Ye(/^( *)(bull) */).replace("bull",pt.bullet).getRegex(),pt.list=Ye(pt.list).replace(/bull/g,pt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pt.def.source+")").getRegex(),pt._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",pt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,pt.html=Ye(pt.html,"i").replace("comment",pt._comment).replace("tag",pt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pt.paragraph=Ye(pt._paragraph).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",pt._tag).getRegex(),pt.blockquote=Ye(pt.blockquote).replace("paragraph",pt.paragraph).getRegex(),pt.normal=ht({},pt),pt.gfm=ht({},pt.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*|$)"}),pt.gfm.nptable=Ye(pt.gfm.nptable).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",pt._tag).getRegex(),pt.gfm.table=Ye(pt.gfm.table).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",pt._tag).getRegex(),pt.pedantic=ht({},pt.normal,{html:Ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Me,paragraph:Ye(pt.normal._paragraph).replace("hr",pt.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",pt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var at={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Me,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",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:Me,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};at._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",at.punctuation=Ye(at.punctuation).replace(/punctuation/g,at._punctuation).getRegex(),at.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,at.escapedEmSt=/\\\*|\\_/g,at._comment=Ye(pt._comment).replace("(?:-->|$)","-->").getRegex(),at.emStrong.lDelim=Ye(at.emStrong.lDelim).replace(/punct/g,at._punctuation).getRegex(),at.emStrong.rDelimAst=Ye(at.emStrong.rDelimAst,"g").replace(/punct/g,at._punctuation).getRegex(),at.emStrong.rDelimUnd=Ye(at.emStrong.rDelimUnd,"g").replace(/punct/g,at._punctuation).getRegex(),at._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,at._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,at._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])?)+(?![-_])/,at.autolink=Ye(at.autolink).replace("scheme",at._scheme).replace("email",at._email).getRegex(),at._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,at.tag=Ye(at.tag).replace("comment",at._comment).replace("attribute",at._attribute).getRegex(),at._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,at._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,at._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,at.link=Ye(at.link).replace("label",at._label).replace("href",at._href).replace("title",at._title).getRegex(),at.reflink=Ye(at.reflink).replace("label",at._label).getRegex(),at.reflinkSearch=Ye(at.reflinkSearch,"g").replace("reflink",at.reflink).replace("nolink",at.nolink).getRegex(),at.normal=ht({},at),at.pedantic=ht({},at.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:Ye(/^!?\[(label)\]\((.*?)\)/).replace("label",at._label).getRegex(),reflink:Ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",at._label).getRegex()}),at.gfm=ht({},at.normal,{escape:Ye(at.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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),at.gfm.url=Ye(at.gfm.url,"i").replace("email",at.gfm._extended_email).getRegex(),at.breaks=ht({},at.gfm,{br:Ye(at.br).replace("{2,}","*").getRegex(),text:Ye(at.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Bt={block:pt,inline:at},Vt=Ke,qt=ye.exports.defaults,$t=Bt.block,Gt=Bt.inline,lt=P.repeatString;function se(We){return We.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function ve(We){var rt="",Je,Ee,Te=We.length;for(Je=0;Je<Te;Je++)Ee=We.charCodeAt(Je),Math.random()>.5&&(Ee="x"+Ee.toString(16)),rt+="&#"+Ee+";";return rt}var ne=function(){function We(Je){this.tokens=[],this.tokens.links=Object.create(null),this.options=Je||qt,this.options.tokenizer=this.options.tokenizer||new Vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ee={block:$t.normal,inline:Gt.normal};this.options.pedantic?(Ee.block=$t.pedantic,Ee.inline=Gt.pedantic):this.options.gfm&&(Ee.block=$t.gfm,this.options.breaks?Ee.inline=Gt.breaks:Ee.inline=Gt.gfm),this.tokenizer.rules=Ee}We.lex=function(Ee,Te){var ze=new We(Te);return ze.lex(Ee)},We.lexInline=function(Ee,Te){var ze=new We(Te);return ze.inlineTokens(Ee)};var rt=We.prototype;return rt.lex=function(Ee){return Ee=Ee.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ee,this.tokens,!0),this.inline(this.tokens),this.tokens},rt.blockTokens=function(Ee,Te,ze){Te===void 0&&(Te=[]),ze===void 0&&(ze=!0),this.options.pedantic&&(Ee=Ee.replace(/^ +$/gm,""));for(var qe,ge,Jt,He;Ee;){if(qe=this.tokenizer.space(Ee)){Ee=Ee.substring(qe.raw.length),qe.type&&Te.push(qe);continue}if(qe=this.tokenizer.code(Ee)){Ee=Ee.substring(qe.raw.length),He=Te[Te.length-1],He&&He.type==="paragraph"?(He.raw+=`
`+qe.raw,He.text+=`
`+qe.text):Te.push(qe);continue}if(qe=this.tokenizer.fences(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(qe=this.tokenizer.heading(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(qe=this.tokenizer.nptable(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(qe=this.tokenizer.hr(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(qe=this.tokenizer.blockquote(Ee)){Ee=Ee.substring(qe.raw.length),qe.tokens=this.blockTokens(qe.text,[],ze),Te.push(qe);continue}if(qe=this.tokenizer.list(Ee)){for(Ee=Ee.substring(qe.raw.length),Jt=qe.items.length,ge=0;ge<Jt;ge++)qe.items[ge].tokens=this.blockTokens(qe.items[ge].text,[],!1);Te.push(qe);continue}if(qe=this.tokenizer.html(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(ze&&(qe=this.tokenizer.def(Ee))){Ee=Ee.substring(qe.raw.length),this.tokens.links[qe.tag]||(this.tokens.links[qe.tag]={href:qe.href,title:qe.title});continue}if(qe=this.tokenizer.table(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(qe=this.tokenizer.lheading(Ee)){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(ze&&(qe=this.tokenizer.paragraph(Ee))){Ee=Ee.substring(qe.raw.length),Te.push(qe);continue}if(qe=this.tokenizer.text(Ee)){Ee=Ee.substring(qe.raw.length),He=Te[Te.length-1],He&&He.type==="text"?(He.raw+=`
`+qe.raw,He.text+=`
`+qe.text):Te.push(qe);continue}if(Ee){var fn="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(fn);break}else throw new Error(fn)}}return Te},rt.inline=function(Ee){var Te,ze,qe,ge,Jt,He,fn=Ee.length;for(Te=0;Te<fn;Te++)switch(He=Ee[Te],He.type){case"paragraph":case"text":case"heading":{He.tokens=[],this.inlineTokens(He.text,He.tokens);break}case"table":{for(He.tokens={header:[],cells:[]},ge=He.header.length,ze=0;ze<ge;ze++)He.tokens.header[ze]=[],this.inlineTokens(He.header[ze],He.tokens.header[ze]);for(ge=He.cells.length,ze=0;ze<ge;ze++)for(Jt=He.cells[ze],He.tokens.cells[ze]=[],qe=0;qe<Jt.length;qe++)He.tokens.cells[ze][qe]=[],this.inlineTokens(Jt[qe],He.tokens.cells[ze][qe]);break}case"blockquote":{this.inline(He.tokens);break}case"list":{for(ge=He.items.length,ze=0;ze<ge;ze++)this.inline(He.items[ze].tokens);break}}return Ee},rt.inlineTokens=function(Ee,Te,ze,qe){Te===void 0&&(Te=[]),ze===void 0&&(ze=!1),qe===void 0&&(qe=!1);var ge,Jt,He=Ee,fn,An,Hn;if(this.tokens.links){var vr=Object.keys(this.tokens.links);if(vr.length>0)for(;(fn=this.tokenizer.rules.inline.reflinkSearch.exec(He))!=null;)vr.includes(fn[0].slice(fn[0].lastIndexOf("[")+1,-1))&&(He=He.slice(0,fn.index)+"["+lt("a",fn[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(fn=this.tokenizer.rules.inline.blockSkip.exec(He))!=null;)He=He.slice(0,fn.index)+"["+lt("a",fn[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(fn=this.tokenizer.rules.inline.escapedEmSt.exec(He))!=null;)He=He.slice(0,fn.index)+"++"+He.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;Ee;){if(An||(Hn=""),An=!1,ge=this.tokenizer.escape(Ee)){Ee=Ee.substring(ge.raw.length),Te.push(ge);continue}if(ge=this.tokenizer.tag(Ee,ze,qe)){Ee=Ee.substring(ge.raw.length),ze=ge.inLink,qe=ge.inRawBlock;var hn=Te[Te.length-1];hn&&ge.type==="text"&&hn.type==="text"?(hn.raw+=ge.raw,hn.text+=ge.text):Te.push(ge);continue}if(ge=this.tokenizer.link(Ee)){Ee=Ee.substring(ge.raw.length),ge.type==="link"&&(ge.tokens=this.inlineTokens(ge.text,[],!0,qe)),Te.push(ge);continue}if(ge=this.tokenizer.reflink(Ee,this.tokens.links)){Ee=Ee.substring(ge.raw.length);var pn=Te[Te.length-1];ge.type==="link"?(ge.tokens=this.inlineTokens(ge.text,[],!0,qe),Te.push(ge)):pn&&ge.type==="text"&&pn.type==="text"?(pn.raw+=ge.raw,pn.text+=ge.text):Te.push(ge);continue}if(ge=this.tokenizer.emStrong(Ee,He,Hn)){Ee=Ee.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],ze,qe),Te.push(ge);continue}if(ge=this.tokenizer.codespan(Ee)){Ee=Ee.substring(ge.raw.length),Te.push(ge);continue}if(ge=this.tokenizer.br(Ee)){Ee=Ee.substring(ge.raw.length),Te.push(ge);continue}if(ge=this.tokenizer.del(Ee)){Ee=Ee.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],ze,qe),Te.push(ge);continue}if(ge=this.tokenizer.autolink(Ee,ve)){Ee=Ee.substring(ge.raw.length),Te.push(ge);continue}if(!ze&&(ge=this.tokenizer.url(Ee,ve))){Ee=Ee.substring(ge.raw.length),Te.push(ge);continue}if(ge=this.tokenizer.inlineText(Ee,qe,se)){Ee=Ee.substring(ge.raw.length),ge.raw.slice(-1)!=="_"&&(Hn=ge.raw.slice(-1)),An=!0,Jt=Te[Te.length-1],Jt&&Jt.type==="text"?(Jt.raw+=ge.raw,Jt.text+=ge.text):Te.push(ge);continue}if(Ee){var et="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(et);break}else throw new Error(et)}}return Te},h(We,null,[{key:"rules",get:function(){return{block:$t,inline:Gt}}}]),We}(),Y=ye.exports.defaults,Ae=P.cleanUrl,$=P.escape,R=function(){function We(Je){this.options=Je||Y}var rt=We.prototype;return rt.code=function(Ee,Te,ze){var qe=(Te||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(Ee,qe);ge!=null&&ge!==Ee&&(ze=!0,Ee=ge)}return Ee=Ee.replace(/\n$/,"")+`
`,qe?'<pre><code class="'+this.options.langPrefix+$(qe,!0)+'">'+(ze?Ee:$(Ee,!0))+`</code></pre>
`:"<pre><code>"+(ze?Ee:$(Ee,!0))+`</code></pre>
`},rt.blockquote=function(Ee){return`<blockquote>
`+Ee+`</blockquote>
`},rt.html=function(Ee){return Ee},rt.heading=function(Ee,Te,ze,qe){return this.options.headerIds?"<h"+Te+' id="'+this.options.headerPrefix+qe.slug(ze)+'">'+Ee+"</h"+Te+`>
`:"<h"+Te+">"+Ee+"</h"+Te+`>
`},rt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},rt.list=function(Ee,Te,ze){var qe=Te?"ol":"ul",ge=Te&&ze!==1?' start="'+ze+'"':"";return"<"+qe+ge+`>
`+Ee+"</"+qe+`>
`},rt.listitem=function(Ee){return"<li>"+Ee+`</li>
`},rt.checkbox=function(Ee){return"<input "+(Ee?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},rt.paragraph=function(Ee){return"<p>"+Ee+`</p>
`},rt.table=function(Ee,Te){return Te&&(Te="<tbody>"+Te+"</tbody>"),`<table>
<thead>
`+Ee+`</thead>
`+Te+`</table>
`},rt.tablerow=function(Ee){return`<tr>
`+Ee+`</tr>
`},rt.tablecell=function(Ee,Te){var ze=Te.header?"th":"td",qe=Te.align?"<"+ze+' align="'+Te.align+'">':"<"+ze+">";return qe+Ee+"</"+ze+`>
`},rt.strong=function(Ee){return"<strong>"+Ee+"</strong>"},rt.em=function(Ee){return"<em>"+Ee+"</em>"},rt.codespan=function(Ee){return"<code>"+Ee+"</code>"},rt.br=function(){return this.options.xhtml?"<br/>":"<br>"},rt.del=function(Ee){return"<del>"+Ee+"</del>"},rt.link=function(Ee,Te,ze){if(Ee=Ae(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return ze;var qe='<a href="'+$(Ee)+'"';return Te&&(qe+=' title="'+Te+'"'),qe+=">"+ze+"</a>",qe},rt.image=function(Ee,Te,ze){if(Ee=Ae(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return ze;var qe='<img src="'+Ee+'" alt="'+ze+'"';return Te&&(qe+=' title="'+Te+'"'),qe+=this.options.xhtml?"/>":">",qe},rt.text=function(Ee){return Ee},We}(),L=function(){function We(){}var rt=We.prototype;return rt.strong=function(Ee){return Ee},rt.em=function(Ee){return Ee},rt.codespan=function(Ee){return Ee},rt.del=function(Ee){return Ee},rt.html=function(Ee){return Ee},rt.text=function(Ee){return Ee},rt.link=function(Ee,Te,ze){return""+ze},rt.image=function(Ee,Te,ze){return""+ze},rt.br=function(){return""},We}(),oe=function(){function We(){this.seen={}}var rt=We.prototype;return rt.serialize=function(Ee){return Ee.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},rt.getNextSafeSlug=function(Ee,Te){var ze=Ee,qe=0;if(this.seen.hasOwnProperty(ze)){qe=this.seen[Ee];do qe++,ze=Ee+"-"+qe;while(this.seen.hasOwnProperty(ze))}return Te||(this.seen[Ee]=qe,this.seen[ze]=0),ze},rt.slug=function(Ee,Te){Te===void 0&&(Te={});var ze=this.serialize(Ee);return this.getNextSafeSlug(ze,Te.dryrun)},We}(),le=R,J=L,De=oe,je=ye.exports.defaults,ke=P.unescape,Pe=function(){function We(Je){this.options=Je||je,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new J,this.slugger=new De}We.parse=function(Ee,Te){var ze=new We(Te);return ze.parse(Ee)},We.parseInline=function(Ee,Te){var ze=new We(Te);return ze.parseInline(Ee)};var rt=We.prototype;return rt.parse=function(Ee,Te){Te===void 0&&(Te=!0);var ze="",qe,ge,Jt,He,fn,An,Hn,vr,hn,pn,et,Rt,Ft,Ue,Oe,xt,St,en,jt=Ee.length;for(qe=0;qe<jt;qe++)switch(pn=Ee[qe],pn.type){case"space":continue;case"hr":{ze+=this.renderer.hr();continue}case"heading":{ze+=this.renderer.heading(this.parseInline(pn.tokens),pn.depth,ke(this.parseInline(pn.tokens,this.textRenderer)),this.slugger);continue}case"code":{ze+=this.renderer.code(pn.text,pn.lang,pn.escaped);continue}case"table":{for(vr="",Hn="",He=pn.header.length,ge=0;ge<He;ge++)Hn+=this.renderer.tablecell(this.parseInline(pn.tokens.header[ge]),{header:!0,align:pn.align[ge]});for(vr+=this.renderer.tablerow(Hn),hn="",He=pn.cells.length,ge=0;ge<He;ge++){for(An=pn.tokens.cells[ge],Hn="",fn=An.length,Jt=0;Jt<fn;Jt++)Hn+=this.renderer.tablecell(this.parseInline(An[Jt]),{header:!1,align:pn.align[Jt]});hn+=this.renderer.tablerow(Hn)}ze+=this.renderer.table(vr,hn);continue}case"blockquote":{hn=this.parse(pn.tokens),ze+=this.renderer.blockquote(hn);continue}case"list":{for(et=pn.ordered,Rt=pn.start,Ft=pn.loose,He=pn.items.length,hn="",ge=0;ge<He;ge++)Oe=pn.items[ge],xt=Oe.checked,St=Oe.task,Ue="",Oe.task&&(en=this.renderer.checkbox(xt),Ft?Oe.tokens.length>0&&Oe.tokens[0].type==="text"?(Oe.tokens[0].text=en+" "+Oe.tokens[0].text,Oe.tokens[0].tokens&&Oe.tokens[0].tokens.length>0&&Oe.tokens[0].tokens[0].type==="text"&&(Oe.tokens[0].tokens[0].text=en+" "+Oe.tokens[0].tokens[0].text)):Oe.tokens.unshift({type:"text",text:en}):Ue+=en),Ue+=this.parse(Oe.tokens,Ft),hn+=this.renderer.listitem(Ue,St,xt);ze+=this.renderer.list(hn,et,Rt);continue}case"html":{ze+=this.renderer.html(pn.text);continue}case"paragraph":{ze+=this.renderer.paragraph(this.parseInline(pn.tokens));continue}case"text":{for(hn=pn.tokens?this.parseInline(pn.tokens):pn.text;qe+1<jt&&Ee[qe+1].type==="text";)pn=Ee[++qe],hn+=`
`+(pn.tokens?this.parseInline(pn.tokens):pn.text);ze+=Te?this.renderer.paragraph(hn):hn;continue}default:{var sn='Token with "'+pn.type+'" type was not found.';if(this.options.silent){console.error(sn);return}else throw new Error(sn)}}return ze},rt.parseInline=function(Ee,Te){Te=Te||this.renderer;var ze="",qe,ge,Jt=Ee.length;for(qe=0;qe<Jt;qe++)switch(ge=Ee[qe],ge.type){case"escape":{ze+=Te.text(ge.text);break}case"html":{ze+=Te.html(ge.text);break}case"link":{ze+=Te.link(ge.href,ge.title,this.parseInline(ge.tokens,Te));break}case"image":{ze+=Te.image(ge.href,ge.title,ge.text);break}case"strong":{ze+=Te.strong(this.parseInline(ge.tokens,Te));break}case"em":{ze+=Te.em(this.parseInline(ge.tokens,Te));break}case"codespan":{ze+=Te.codespan(ge.text);break}case"br":{ze+=Te.br();break}case"del":{ze+=Te.del(this.parseInline(ge.tokens,Te));break}case"text":{ze+=Te.text(ge.text);break}default:{var He='Token with "'+ge.type+'" type was not found.';if(this.options.silent){console.error(He);return}else throw new Error(He)}}return ze},We}(),Xe=ne,st=Pe,Ge=Ke,gt=R,bt=L,mt=oe,zt=P.merge,Ct=P.checkSanitizeDeprecation,w=P.escape,A=ye.exports.getDefaults,vt=ye.exports.changeDefaults,ue=ye.exports.defaults;function Ne(We,rt,Je){if(typeof We=="undefined"||We===null)throw new Error("marked(): input parameter is undefined or null");if(typeof We!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(We)+", string expected");if(typeof rt=="function"&&(Je=rt,rt=null),rt=zt({},Ne.defaults,rt||{}),Ct(rt),Je){var Ee=rt.highlight,Te;try{Te=Xe.lex(We,rt)}catch(Jt){return Je(Jt)}var ze=function(He){var fn;if(!He)try{rt.walkTokens&&Ne.walkTokens(Te,rt.walkTokens),fn=st.parse(Te,rt)}catch(An){He=An}return rt.highlight=Ee,He?Je(He):Je(null,fn)};if(!Ee||Ee.length<3||(delete rt.highlight,!Te.length))return ze();var qe=0;Ne.walkTokens(Te,function(Jt){Jt.type==="code"&&(qe++,setTimeout(function(){Ee(Jt.text,Jt.lang,function(He,fn){if(He)return ze(He);fn!=null&&fn!==Jt.text&&(Jt.text=fn,Jt.escaped=!0),qe--,qe===0&&ze()})},0))}),qe===0&&ze();return}try{var ge=Xe.lex(We,rt);return rt.walkTokens&&Ne.walkTokens(ge,rt.walkTokens),st.parse(ge,rt)}catch(Jt){if(Jt.message+=`
Please report this to https://github.com/markedjs/marked.`,rt.silent)return"<p>An error occurred:</p><pre>"+w(Jt.message+"",!0)+"</pre>";throw Jt}}Ne.options=Ne.setOptions=function(We){return zt(Ne.defaults,We),vt(Ne.defaults),Ne},Ne.getDefaults=A,Ne.defaults=ue,Ne.use=function(We){var rt=zt({},We);if(We.renderer&&function(){var Ee=Ne.defaults.renderer||new gt,Te=function(ge){var Jt=Ee[ge];Ee[ge]=function(){for(var He=arguments.length,fn=new Array(He),An=0;An<He;An++)fn[An]=arguments[An];var Hn=We.renderer[ge].apply(Ee,fn);return Hn===!1&&(Hn=Jt.apply(Ee,fn)),Hn}};for(var ze in We.renderer)Te(ze);rt.renderer=Ee}(),We.tokenizer&&function(){var Ee=Ne.defaults.tokenizer||new Ge,Te=function(ge){var Jt=Ee[ge];Ee[ge]=function(){for(var He=arguments.length,fn=new Array(He),An=0;An<He;An++)fn[An]=arguments[An];var Hn=We.tokenizer[ge].apply(Ee,fn);return Hn===!1&&(Hn=Jt.apply(Ee,fn)),Hn}};for(var ze in We.tokenizer)Te(ze);rt.tokenizer=Ee}(),We.walkTokens){var Je=Ne.defaults.walkTokens;rt.walkTokens=function(Ee){We.walkTokens(Ee),Je&&Je(Ee)}}Ne.setOptions(rt)},Ne.walkTokens=function(We,rt){for(var Je=X(We),Ee;!(Ee=Je()).done;){var Te=Ee.value;switch(rt(Te),Te.type){case"table":{for(var ze=X(Te.tokens.header),qe;!(qe=ze()).done;){var ge=qe.value;Ne.walkTokens(ge,rt)}for(var Jt=X(Te.tokens.cells),He;!(He=Jt()).done;)for(var fn=He.value,An=X(fn),Hn;!(Hn=An()).done;){var vr=Hn.value;Ne.walkTokens(vr,rt)}break}case"list":{Ne.walkTokens(Te.items,rt);break}default:Te.tokens&&Ne.walkTokens(Te.tokens,rt)}}},Ne.parseInline=function(We,rt){if(typeof We=="undefined"||We===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof We!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(We)+", string expected");rt=zt({},Ne.defaults,rt||{}),Ct(rt);try{var Je=Xe.lexInline(We,rt);return rt.walkTokens&&Ne.walkTokens(Je,rt.walkTokens),st.parseInline(Je,rt)}catch(Ee){if(Ee.message+=`
Please report this to https://github.com/markedjs/marked.`,rt.silent)return"<p>An error occurred:</p><pre>"+w(Ee.message+"",!0)+"</pre>";throw Ee}},Ne.Parser=st,Ne.parser=st.parse,Ne.Renderer=gt,Ne.TextRenderer=bt,Ne.Lexer=Xe,Ne.lexer=Xe.lex,Ne.Tokenizer=Ge,Ne.Slugger=mt,Ne.parse=Ne;var bn=Ne;return bn})},11690:function(Wt){const Ze=/[&<>"']/,h=/[&<>"']/g,z=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,X={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye=j=>X[j];function U(j,be){if(be){if(Ze.test(j))return j.replace(h,ye)}else if(z.test(j))return j.replace(N,ye);return j}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function S(j){return j.replace(H,(be,_e)=>(_e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""))}const me=/(^|[^\[])\^/g;function a(j,be){j=j.source||j,be=be||"";const _e={replace:(xe,de)=>(de=de.source||de,de=de.replace(me,"$1"),j=j.replace(xe,de),_e),getRegex:()=>new RegExp(j,be)};return _e}const C=/[^\w:]/g,I=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(j,be,_e){if(j){let xe;try{xe=decodeURIComponent(S(_e)).replace(C,"").toLowerCase()}catch(de){return null}if(xe.indexOf("javascript:")===0||xe.indexOf("vbscript:")===0||xe.indexOf("data:")===0)return null}be&&!I.test(_e)&&(_e=te(be,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(xe){return null}return _e}const u={},x=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function te(j,be){u[" "+j]||(x.test(j)?u[" "+j]=j+"/":u[" "+j]=V(j,"/",!0)),j=u[" "+j];const _e=j.indexOf(":")===-1;return be.substring(0,2)==="//"?_e?be:j.replace(y,"$1")+be:be.charAt(0)==="/"?_e?be:j.replace(O,"$1")+be:j+be}const B={exec:function(){}};function M(j){let be=1,_e,xe;for(;be<arguments.length;be++){_e=arguments[be];for(xe in _e)Object.prototype.hasOwnProperty.call(_e,xe)&&(j[xe]=_e[xe])}return j}function W(j,be){const _e=j.replace(/\|/g,(ee,Z,pe)=>{let P=!1,ie=Z;for(;--ie>=0&&pe[ie]==="\\";)P=!P;return P?"|":" |"}),xe=_e.split(/ \|/);let de=0;if(xe.length>be)xe.splice(be);else for(;xe.length<be;)xe.push("");for(;de<xe.length;de++)xe[de]=xe[de].trim().replace(/\\\|/g,"|");return xe}function V(j,be,_e){const xe=j.length;if(xe===0)return"";let de=0;for(;de<xe;){const ee=j.charAt(xe-de-1);if(ee===be&&!_e)de++;else if(ee!==be&&_e)de++;else break}return j.substr(0,xe-de)}function b(j,be){if(j.indexOf(be[1])===-1)return-1;const _e=j.length;let xe=0,de=0;for(;de<_e;de++)if(j[de]==="\\")de++;else if(j[de]===be[0])xe++;else if(j[de]===be[1]&&(xe--,xe<0))return de;return-1}function T(j){j&&j.sanitize&&!j.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function G(j,be){if(be<1)return"";let _e="";for(;be>1;)be&1&&(_e+=j),be>>=1,j+=j;return _e+j}Wt.exports={escape:U,unescape:S,edit:a,cleanUrl:m,resolveUrl:te,noopTest:B,merge:M,splitCells:W,rtrim:V,findClosingBracket:b,checkSanitizeDeprecation:T,repeatString:G}},75918:function(Wt,Ze,h){"use strict";h.d(Ze,{Wi:function(){return H},Z0:function(){return S},aU:function(){return U},eZ:function(){return a},wY:function(){return me}});var z=h(4348),N=h(69323),X=h(13268),ye=function(C,I,m,u){function x(y){return y instanceof m?y:new m(function(O){O(y)})}return new(m||(m=Promise))(function(y,O){function te(W){try{M(u.next(W))}catch(V){O(V)}}function B(W){try{M(u.throw(W))}catch(V){O(V)}}function M(W){W.done?y(W.value):x(W.value).then(te,B)}M((u=u.apply(C,I||[])).next())})};class U extends N.JT{constructor(I,m="",u="",x=!0,y){super(),this._onDidChange=this._register(new z.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=I,this._label=m,this._cssClass=u,this._enabled=x,this._actionCallback=y}get id(){return this._id}get label(){return this._label}set label(I){this._setLabel(I)}_setLabel(I){this._label!==I&&(this._label=I,this._onDidChange.fire({label:I}))}get tooltip(){return this._tooltip||""}set tooltip(I){this._setTooltip(I)}_setTooltip(I){this._tooltip!==I&&(this._tooltip=I,this._onDidChange.fire({tooltip:I}))}get class(){return this._cssClass}set class(I){this._setClass(I)}_setClass(I){this._cssClass!==I&&(this._cssClass=I,this._onDidChange.fire({class:I}))}get enabled(){return this._enabled}set enabled(I){this._setEnabled(I)}_setEnabled(I){this._enabled!==I&&(this._enabled=I,this._onDidChange.fire({enabled:I}))}get checked(){return this._checked}set checked(I){this._setChecked(I)}_setChecked(I){this._checked!==I&&(this._checked=I,this._onDidChange.fire({checked:I}))}run(I,m){return ye(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(I))})}}class H extends N.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new z.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new z.Q5),this.onDidRun=this._onDidRun.event}run(I,m){return ye(this,void 0,void 0,function*(){if(!I.enabled)return;this._onBeforeRun.fire({action:I});let u;try{yield this.runAction(I,m)}catch(x){u=x}this._onDidRun.fire({action:I,error:u})})}runAction(I,m){return ye(this,void 0,void 0,function*(){yield I.run(m)})}}class S extends U{constructor(I){super(S.ID,I,I?"separator text":"separator"),this.checked=!1,this.enabled=!1}}S.ID="vs.actions.separator";class me{constructor(I,m,u,x){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=I,this.label=m,this.class=x,this._actions=u}get actions(){return this._actions}dispose(){}run(){return ye(this,void 0,void 0,function*(){})}}class a extends U{constructor(){super(a.ID,X.N("submenu.empty","(empty)"),void 0,!1)}}a.ID="vs.actions.empty"},76068:function(Wt,Ze,h){"use strict";h.d(Ze,{ok:function(){return z}});function z(N,X){if(!N)throw new Error(X?`Assertion failed (${X})`:"Assertion Failed")}},52615:function(Wt,Ze,h){"use strict";h.d(Ze,{CM:function(){return U},JL:function(){return H},dT:function(){return me},fK:function(){return ye},lA:function(){return S}});var z=h(4348);class N{constructor(){this._icons=new Map,this._onDidRegister=new z.Q5}add(C){const I=this._icons.get(C.id);I?C.description?I.description=C.description:console.error(`Duplicate registration of codicon ${C.id}`):(this._icons.set(C.id,C),this._onDidRegister.fire(C))}get(C){return this._icons.get(C)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const X=new N,ye=X;function U(a,C){return new S(a,C)}function H(a){return a?a.replace(/\$\((.*?)\)/g,(C,I)=>` ${I} `).trim():""}class S{constructor(C,I,m){this.id=C,this.definition=I,this.description=m,X.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var me;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const C=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function I(x){if(x instanceof S)return["codicon","codicon-"+x.id];const y=C.exec(x.id);if(!y)return I(S.error);let[,O,te]=y;const B=["codicon","codicon-"+O];return te&&B.push("codicon-modifier-"+te.substr(1)),B}a.asClassNameArray=I;function m(x){return I(x).join(" ")}a.asClassName=m;function u(x){return"."+I(x).join(".")}a.asCSSSelector=u})(me||(me={})),function(a){a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"})}(S||(S={}))},79881:function(Wt,Ze,h){"use strict";h.d(Ze,{B8:function(){return I},Cp:function(){return ye},F0:function(){return me},L6:function(){return C},VV:function(){return S},b1:function(){return a},dL:function(){return X},ri:function(){return U}});class z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+`
`+u.stack):u},0)}}emit(u){this.listeners.forEach(x=>{x(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const N=new z;function X(m){S(m)||N.onUnexpectedError(m)}function ye(m){S(m)||N.onUnexpectedExternalError(m)}function U(m){if(m instanceof Error){let{name:u,message:x}=m;const y=m.stacktrace||m.stack;return{$isError:!0,name:u,message:x,stack:y}}return m}const H="Canceled";function S(m){return m instanceof Error&&m.name===H&&m.message===H}function me(){const m=new Error(H);return m.name=m.message,m}function a(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function C(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class I extends Error{constructor(u){super("NotSupported"),u&&(this.message=u)}}},4348:function(Wt,Ze,h){"use strict";h.d(Ze,{D0:function(){return I},E7:function(){return m},K3:function(){return C},Q5:function(){return a},ZD:function(){return u},ju:function(){return U}});var z=h(79881),N=h(69323),X=h(34502),ye=h(95830),U;(function(x){x.None=()=>N.JT.None;function y(pe){return(P,ie=null,Q)=>{let v=!1,E;return E=pe(K=>{if(!v)return E?E.dispose():v=!0,P.call(ie,K)},null,Q),v&&E.dispose(),E}}x.once=y;function O(pe,P){return b((ie,Q=null,v)=>pe(E=>ie.call(Q,P(E)),null,v))}x.map=O;function te(pe,P){return b((ie,Q=null,v)=>pe(E=>{P(E),ie.call(Q,E)},null,v))}x.forEach=te;function B(pe,P){return b((ie,Q=null,v)=>pe(E=>P(E)&&ie.call(Q,E),null,v))}x.filter=B;function M(pe){return pe}x.signal=M;function W(...pe){return(P,ie=null,Q)=>(0,N.F8)(...pe.map(v=>v(E=>P.call(ie,E),null,Q)))}x.any=W;function V(pe,P,ie){let Q=ie;return O(pe,v=>(Q=P(Q,v),Q))}x.reduce=V;function b(pe){let P;const ie=new a({onFirstListenerAdd(){P=pe(ie.fire,ie)},onLastListenerRemove(){P.dispose()}});return ie.event}function T(pe,P,ie=100,Q=!1,v){let E,K,fe,Be=0;const Ke=new a({leakWarningThreshold:v,onFirstListenerAdd(){E=pe(Me=>{Be++,K=P(K,Me),Q&&!fe&&(Ke.fire(K),K=void 0),clearTimeout(fe),fe=setTimeout(()=>{const Ye=K;K=void 0,fe=void 0,(!Q||Be>1)&&Ke.fire(Ye),Be=0},ie)})},onLastListenerRemove(){E.dispose()}});return Ke.event}x.debounce=T;function G(pe,P=(ie,Q)=>ie===Q){let ie=!0,Q;return B(pe,v=>{const E=ie||!P(v,Q);return ie=!1,Q=v,E})}x.latch=G;function j(pe,P){return[x.filter(pe,P),x.filter(pe,ie=>!P(ie))]}x.split=j;function be(pe,P=!1,ie=[]){let Q=ie.slice(),v=pe(fe=>{Q?Q.push(fe):K.fire(fe)});const E=()=>{Q&&Q.forEach(fe=>K.fire(fe)),Q=null},K=new a({onFirstListenerAdd(){v||(v=pe(fe=>K.fire(fe)))},onFirstListenerDidAdd(){Q&&(P?setTimeout(E):E())},onLastListenerRemove(){v&&v.dispose(),v=null}});return K.event}x.buffer=be;class _e{constructor(P){this.event=P}map(P){return new _e(O(this.event,P))}forEach(P){return new _e(te(this.event,P))}filter(P){return new _e(B(this.event,P))}reduce(P,ie){return new _e(V(this.event,P,ie))}latch(){return new _e(G(this.event))}debounce(P,ie=100,Q=!1,v){return new _e(T(this.event,P,ie,Q,v))}on(P,ie,Q){return this.event(P,ie,Q)}once(P,ie,Q){return y(this.event)(P,ie,Q)}}function xe(pe){return new _e(pe)}x.chain=xe;function de(pe,P,ie=Q=>Q){const Q=(...fe)=>K.fire(ie(...fe)),v=()=>pe.on(P,Q),E=()=>pe.removeListener(P,Q),K=new a({onFirstListenerAdd:v,onLastListenerRemove:E});return K.event}x.fromNodeEventEmitter=de;function ee(pe,P,ie=Q=>Q){const Q=(...fe)=>K.fire(ie(...fe)),v=()=>pe.addEventListener(P,Q),E=()=>pe.removeEventListener(P,Q),K=new a({onFirstListenerAdd:v,onLastListenerRemove:E});return K.event}x.fromDOMEventEmitter=ee;function Z(pe){return new Promise(P=>y(pe)(P))}x.toPromise=Z})(U||(U={}));class H{constructor(y){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${y}_${H._idPool++}`}start(y){this._stopWatch=new ye.G(!0),this._listenerCount=y}stop(){if(this._stopWatch){const y=this._stopWatch.elapsed();this._elapsedOverall+=y,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${y.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}H._idPool=0;let S=-1;class me{constructor(y,O=Math.random().toString(18).slice(2,5)){this.customThreshold=y,this.name=O,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(y){let O=S;if(typeof this.customThreshold=="number"&&(O=this.customThreshold),O<=0||y<O)return;this._stacks||(this._stacks=new Map);const te=new Error().stack.split(`
`).slice(3).join(`
`),B=this._stacks.get(te)||0;if(this._stacks.set(te,B+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=O*.5;let M,W=0;for(const[V,b]of this._stacks)(!M||W<b)&&(M=V,W=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${y} listeners already. MOST frequent listener (${W}):`),console.warn(M)}return()=>{const M=this._stacks.get(te)||0;this._stacks.set(te,M-1)}}}class a{constructor(y){var O;this._disposed=!1,this._options=y,this._leakageMon=S>0?new me(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((O=this._options)===null||O===void 0)&&O._profName?new H(this._options._profName):void 0}get event(){return this._event||(this._event=(y,O,te)=>{var B;this._listeners||(this._listeners=new X.S);const M=this._listeners.isEmpty();M&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const W=this._listeners.push(O?[y,O]:y);M&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,y,O);const V=(B=this._leakageMon)===null||B===void 0?void 0:B.check(this._listeners.size),b=(0,N.OF)(()=>{V&&V(),this._disposed||(W(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return te instanceof N.SL?te.add(b):Array.isArray(te)&&te.push(b),b}),this._event}fire(y){var O,te;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new X.S);for(let B of this._listeners)this._deliveryQueue.push([B,y]);for((O=this._perfMon)===null||O===void 0||O.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[B,M]=this._deliveryQueue.shift();try{typeof B=="function"?B.call(void 0,M):B[0].call(B[1],M)}catch(W){(0,z.dL)(W)}}(te=this._perfMon)===null||te===void 0||te.stop()}}dispose(){var y,O,te,B,M;this._disposed||(this._disposed=!0,(y=this._listeners)===null||y===void 0||y.clear(),(O=this._deliveryQueue)===null||O===void 0||O.clear(),(B=(te=this._options)===null||te===void 0?void 0:te.onLastListenerRemove)===null||B===void 0||B.call(te),(M=this._leakageMon)===null||M===void 0||M.dispose())}}class C extends a{constructor(y){super(y),this._isPaused=0,this._eventQueue=new X.S,this._mergeFn=y==null?void 0:y.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const y=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(y))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(y){this._listeners&&(this._isPaused!==0?this._eventQueue.push(y):super.fire(y))}}class I extends C{constructor(y){var O;super(y),this._delay=(O=y.delay)!==null&&O!==void 0?O:100}fire(y){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(y)}}class m{constructor(){this.buffers=[]}wrapEvent(y){return(O,te,B)=>y(M=>{const W=this.buffers[this.buffers.length-1];W?W.push(()=>O.call(te,M)):O.call(te,M)},void 0,B)}bufferEvents(y){const O=[];this.buffers.push(O);const te=y();return this.buffers.pop(),O.forEach(B=>B()),te}}class u{constructor(){this.listening=!1,this.inputEvent=U.None,this.inputEventListener=N.JT.None,this.emitter=new a({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(y){this.inputEvent=y,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=y(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Wt,Ze,h){"use strict";h.d(Ze,{I:function(){return z}});function z(N){const X=this;let ye=!1,U;return function(){return ye||(ye=!0,U=N.apply(X,arguments)),U}}},88226:function(Wt,Ze,h){"use strict";h.d(Ze,{$:function(){return z}});var z;(function(N){function X(W){return W&&typeof W=="object"&&typeof W[Symbol.iterator]=="function"}N.is=X;const ye=Object.freeze([]);function U(){return ye}N.empty=U;function*H(W){yield W}N.single=H;function S(W){return W||ye}N.from=S;function me(W){return!W||W[Symbol.iterator]().next().done===!0}N.isEmpty=me;function a(W){return W[Symbol.iterator]().next().value}N.first=a;function C(W,V){for(const b of W)if(V(b))return!0;return!1}N.some=C;function I(W,V){for(const b of W)if(V(b))return b}N.find=I;function*m(W,V){for(const b of W)V(b)&&(yield b)}N.filter=m;function*u(W,V){let b=0;for(const T of W)yield V(T,b++)}N.map=u;function*x(...W){for(const V of W)for(const b of V)yield b}N.concat=x;function*y(W){for(const V of W)for(const b of V)yield b}N.concatNested=y;function O(W,V,b){let T=b;for(const G of W)T=V(T,G);return T}N.reduce=O;function*te(W,V,b=W.length){for(V<0&&(V+=W.length),b<0?b+=W.length:b>W.length&&(b=W.length);V<b;V++)yield W[V]}N.slice=te;function B(W,V=Number.POSITIVE_INFINITY){const b=[];if(V===0)return[b,W];const T=W[Symbol.iterator]();for(let G=0;G<V;G++){const j=T.next();if(j.done)return[b,N.empty()];b.push(j.value)}return[b,{[Symbol.iterator](){return T}}]}N.consume=B;function M(W,V,b=(T,G)=>T===G){const T=W[Symbol.iterator](),G=V[Symbol.iterator]();for(;;){const j=T.next(),be=G.next();if(j.done!==be.done)return!1;if(j.done)return!0;if(!b(j.value,be.value))return!1}}N.equals=M})(z||(z={}))},69323:function(Wt,Ze,h){"use strict";h.d(Ze,{B9:function(){return u},F8:function(){return x},JT:function(){return te},Jz:function(){return M},OF:function(){return y},SL:function(){return O},Wf:function(){return m},XK:function(){return B},dk:function(){return C}});var z=h(17845),N=h(88226);const X=!1;let ye=null;function U(W){ye=W}if(X){const W="__is_disposable_tracked__";U(new class{trackDisposable(V){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{V[W]||console.log(b)},3e3)}setParent(V,b){if(V&&V!==te.None)try{V[W]=!0}catch(T){}}markAsDisposed(V){if(V&&V!==te.None)try{V[W]=!0}catch(b){}}markAsSingleton(V){}})}function H(W){return ye==null||ye.trackDisposable(W),W}function S(W){ye==null||ye.markAsDisposed(W)}function me(W,V){ye==null||ye.setParent(W,V)}function a(W,V){if(ye)for(const b of W)ye.setParent(b,V)}function C(W){return ye==null||ye.markAsSingleton(W),W}class I extends Error{constructor(V){super(`Encountered errors while disposing of store. Errors: [${V.join(", ")}]`),this.errors=V}}function m(W){return typeof W.dispose=="function"&&W.dispose.length===0}function u(W){if(N.$.is(W)){let V=[];for(const b of W)if(b)try{b.dispose()}catch(T){V.push(T)}if(V.length===1)throw V[0];if(V.length>1)throw new I(V);return Array.isArray(W)?[]:W}else if(W)return W.dispose(),W}function x(...W){const V=y(()=>u(W));return a(W,V),V}function y(W){const V=H({dispose:(0,z.I)(()=>{S(V),W()})});return V}class O{constructor(){this._toDispose=new Set,this._isDisposed=!1,H(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(V){if(!V)return V;if(V===this)throw new Error("Cannot register a disposable on itself!");return me(V,this),this._isDisposed?O.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(V),V}}O.DISABLE_DISPOSED_WARNING=!1;class te{constructor(){this._store=new O,H(this),me(this._store,this)}dispose(){S(this),this._store.dispose()}_register(V){if(V===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(V)}}te.None=Object.freeze({dispose(){}});class B{constructor(){this._isDisposed=!1,H(this)}get value(){return this._isDisposed?void 0:this._value}set value(V){var b;this._isDisposed||V===this._value||((b=this._value)===null||b===void 0||b.dispose(),V&&me(V,this),this._value=V)}clear(){this.value=void 0}dispose(){var V;this._isDisposed=!0,S(this),(V=this._value)===null||V===void 0||V.dispose(),this._value=void 0}clearAndLeak(){const V=this._value;return this._value=void 0,V&&me(V,null),V}}class M{constructor(V){this.object=V}dispose(){}}},34502:function(Wt,Ze,h){"use strict";h.d(Ze,{S:function(){return N}});class z{constructor(ye){this.element=ye,this.next=z.Undefined,this.prev=z.Undefined}}z.Undefined=new z(void 0);class N{constructor(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===z.Undefined}clear(){let ye=this._first;for(;ye!==z.Undefined;){const U=ye.next;ye.prev=z.Undefined,ye.next=z.Undefined,ye=U}this._first=z.Undefined,this._last=z.Undefined,this._size=0}unshift(ye){return this._insert(ye,!1)}push(ye){return this._insert(ye,!0)}_insert(ye,U){const H=new z(ye);if(this._first===z.Undefined)this._first=H,this._last=H;else if(U){const me=this._last;this._last=H,H.prev=me,me.next=H}else{const me=this._first;this._first=H,H.next=me,me.prev=H}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(H))}}shift(){if(this._first!==z.Undefined){const ye=this._first.element;return this._remove(this._first),ye}}pop(){if(this._last!==z.Undefined){const ye=this._last.element;return this._remove(this._last),ye}}_remove(ye){if(ye.prev!==z.Undefined&&ye.next!==z.Undefined){const U=ye.prev;U.next=ye.next,ye.next.prev=U}else ye.prev===z.Undefined&&ye.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):ye.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):ye.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1}*[Symbol.iterator](){let ye=this._first;for(;ye!==z.Undefined;)yield ye.element,ye=ye.next}}},23345:function(Wt,Ze,h){"use strict";h.d(Ze,{$L:function(){return T},ED:function(){return M},IJ:function(){return V},OS:function(){return _e},WE:function(){return j},dz:function(){return W},gn:function(){return G},li:function(){return y},r:function(){return ee},tY:function(){return b},xS:function(){return be}});var z=h(97671),N;const X="en";let ye=!1,U=!1,H=!1,S=!1,me=!1,a=!1,C=!1,I,m=null,u=null,x;const y=typeof self=="object"?self:typeof h.g=="object"?h.g:{};let O;typeof y.vscode!="undefined"&&typeof y.vscode.process!="undefined"?O=y.vscode.process:typeof z!="undefined"&&(O=z);const te=typeof((N=O==null?void 0:O.versions)===null||N===void 0?void 0:N.electron)=="string"&&O.type==="renderer";if(typeof navigator=="object"&&!te)x=navigator.userAgent,ye=x.indexOf("Windows")>=0,U=x.indexOf("Macintosh")>=0,C=(x.indexOf("Macintosh")>=0||x.indexOf("iPad")>=0||x.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=x.indexOf("Linux")>=0,a=!0,I=navigator.language,m=I;else if(typeof O=="object"){ye=O.platform==="win32",U=O.platform==="darwin",H=O.platform==="linux",S=H&&!!O.env.SNAP&&!!O.env.SNAP_REVISION,I=X,m=X;const Z=O.env.VSCODE_NLS_CONFIG;if(Z)try{const pe=JSON.parse(Z),P=pe.availableLanguages["*"];I=pe.locale,m=P||X,u=pe._translationsConfigFile}catch(pe){}me=!0}else console.error("Unable to resolve platform.");let B=0;U?B=1:ye?B=3:H&&(B=2);const M=ye,W=U,V=H,b=me,T=a,G=C,j=x,be=function(){if(y.setImmediate)return y.setImmediate.bind(y);if(typeof y.postMessage=="function"&&!y.importScripts){let P=[];y.addEventListener("message",Q=>{if(Q.data&&Q.data.vscodeSetImmediateId)for(let v=0,E=P.length;v<E;v++){const K=P[v];if(K.id===Q.data.vscodeSetImmediateId){P.splice(v,1),K.callback();return}}});let ie=0;return Q=>{const v=++ie;P.push({id:v,callback:Q}),y.postMessage({vscodeSetImmediateId:v},"*")}}if(typeof(O==null?void 0:O.nextTick)=="function")return O.nextTick.bind(O);const pe=Promise.resolve();return P=>pe.then(P)}(),_e=U||C?2:ye?1:3;let xe=!0,de=!1;function ee(){if(!de){de=!0;const Z=new Uint8Array(2);Z[0]=1,Z[1]=2,xe=new Uint16Array(Z.buffer)[0]===513}return xe}},95830:function(Wt,Ze,h){"use strict";h.d(Ze,{G:function(){return X}});var z=h(23345);const N=z.li.performance&&typeof z.li.performance.now=="function";class X{constructor(U){this._highResolution=N&&U,this._startTime=this._now(),this._stopTime=-1}static create(U=!0){return new X(U)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?z.li.performance.now():Date.now()}}},82983:function(Wt,Ze,h){"use strict";h.d(Ze,{$i:function(){return Be},C8:function(){return pt},GF:function(){return I},HO:function(){return ie},IO:function(){return m},K7:function(){return ht},Kw:function(){return Vt},LC:function(){return y},Mh:function(){return be},P1:function(){return _e},PJ:function(){return qt},Qe:function(){return Ke},R1:function(){return C},RP:function(){return K},S6:function(){return $t},TT:function(){return M},Ut:function(){return v},V8:function(){return O},WU:function(){return X},YK:function(){return de},YU:function(){return ye},ZG:function(){return xe},ZH:function(){return Z},ab:function(){return Me},c1:function(){return at},df:function(){return T},ec:function(){return U},fi:function(){return Gt},fy:function(){return H},j3:function(){return S},j_:function(){return V},m5:function(){return z},mK:function(){return b},mr:function(){return u},oH:function(){return ve},oL:function(){return me},ok:function(){return j},ow:function(){return te},qq:function(){return G},qu:function(){return B},rL:function(){return ee},uS:function(){return Bt},un:function(){return a},uq:function(){return x},vH:function(){return P},xe:function(){return Ye},zY:function(){return W}});function z($){return!$||typeof $!="string"?!0:$.trim().length===0}const N=/{(\d+)}/g;function X($,...R){return R.length===0?$:$.replace(N,function(L,oe){const le=parseInt(oe,10);return isNaN(le)||le<0||le>=R.length?L:R[le]})}function ye($){return $.replace(/[<>&]/g,function(R){switch(R){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return R}})}function U($){return $.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function H($,R=" "){const L=S($,R);return me(L,R)}function S($,R){if(!$||!R)return $;const L=R.length;if(L===0||$.length===0)return $;let oe=0;for(;$.indexOf(R,oe)===oe;)oe=oe+L;return $.substring(oe)}function me($,R){if(!$||!R)return $;const L=R.length,oe=$.length;if(L===0||oe===0)return $;let le=oe,J=-1;for(;J=$.lastIndexOf(R,le-1),!(J===-1||J+L!==le);){if(J===0)return"";le=J}return $.substring(0,le)}function a($){return $.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C($){return $.replace(/\*/g,"")}function I($,R,L={}){if(!$)throw new Error("Cannot create regex from empty string");R||($=U($)),L.wholeWord&&(/\B/.test($.charAt(0))||($="\\b"+$),/\B/.test($.charAt($.length-1))||($=$+"\\b"));let oe="";return L.global&&(oe+="g"),L.matchCase||(oe+="i"),L.multiline&&(oe+="m"),L.unicode&&(oe+="u"),new RegExp($,oe)}function m($){return $.source==="^"||$.source==="^$"||$.source==="$"||$.source==="^\\s*$"?!1:!!($.exec("")&&$.lastIndex===0)}function u($){return($.global?"g":"")+($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")}function x($){return $.split(/\r\n|\r|\n/)}function y($){for(let R=0,L=$.length;R<L;R++){const oe=$.charCodeAt(R);if(oe!==32&&oe!==9)return R}return-1}function O($,R=0,L=$.length){for(let oe=R;oe<L;oe++){const le=$.charCodeAt(oe);if(le!==32&&le!==9)return $.substring(R,oe)}return $.substring(R,L)}function te($,R=$.length-1){for(let L=R;L>=0;L--){const oe=$.charCodeAt(L);if(oe!==32&&oe!==9)return L}return-1}function B($,R){return $<R?-1:$>R?1:0}function M($,R,L=0,oe=$.length,le=0,J=R.length){for(;L<oe&&le<J;L++,le++){let ke=$.charCodeAt(L),Pe=R.charCodeAt(le);if(ke<Pe)return-1;if(ke>Pe)return 1}const De=oe-L,je=J-le;return De<je?-1:De>je?1:0}function W($,R){return V($,R,0,$.length,0,R.length)}function V($,R,L=0,oe=$.length,le=0,J=R.length){for(;L<oe&&le<J;L++,le++){let ke=$.charCodeAt(L),Pe=R.charCodeAt(le);if(ke===Pe)continue;if(ke>=128||Pe>=128)return M($.toLowerCase(),R.toLowerCase(),L,oe,le,J);b(ke)&&(ke-=32),b(Pe)&&(Pe-=32);const Xe=ke-Pe;if(Xe!==0)return Xe}const De=oe-L,je=J-le;return De<je?-1:De>je?1:0}function b($){return $>=97&&$<=122}function T($){return $>=65&&$<=90}function G($,R){return $.length===R.length&&V($,R)===0}function j($,R){const L=R.length;return R.length>$.length?!1:V($,R,0,L)===0}function be($,R){let L,oe=Math.min($.length,R.length);for(L=0;L<oe;L++)if($.charCodeAt(L)!==R.charCodeAt(L))return L;return oe}function _e($,R){let L,oe=Math.min($.length,R.length);const le=$.length-1,J=R.length-1;for(L=0;L<oe;L++)if($.charCodeAt(le-L)!==R.charCodeAt(J-L))return L;return oe}function xe($){return 55296<=$&&$<=56319}function de($){return 56320<=$&&$<=57343}function ee($,R){return($-55296<<10)+(R-56320)+65536}function Z($,R,L){const oe=$.charCodeAt(L);if(xe(oe)&&L+1<R){const le=$.charCodeAt(L+1);if(de(le))return ee(oe,le)}return oe}function pe($,R){const L=$.charCodeAt(R-1);if(de(L)&&R>1){const oe=$.charCodeAt(R-2);if(xe(oe))return ee(oe,L)}return L}function P($,R){const L=lt.getInstance(),oe=R,le=$.length,J=Z($,le,R);R+=J>=65536?2:1;let De=L.getGraphemeBreakType(J);for(;R<le;){const je=Z($,le,R),ke=L.getGraphemeBreakType(je);if(Gt(De,ke))break;R+=je>=65536?2:1,De=ke}return R-oe}function ie($,R){const L=lt.getInstance(),oe=R,le=pe($,R);R-=le>=65536?2:1;let J=L.getGraphemeBreakType(le);for(;R>0;){const De=pe($,R),je=L.getGraphemeBreakType(De);if(Gt(je,J))break;R-=De>=65536?2:1,J=je}return oe-R}const Q=/(?:[\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 v($){return Q.test($)}const E=/(?:[\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 K($){return E.test($)}const fe=/^[\t\n\r\x20-\x7E]*$/;function Be($){return fe.test($)}const Ke=/[\u2028\u2029]/;function Me($){return Ke.test($)}function Ye($){for(let R=0,L=$.length;R<L;R++)if(ht($.charCodeAt(R)))return!0;return!1}function ht($){return $=+$,$>=11904&&$<=55215||$>=63744&&$<=64255||$>=65281&&$<=65374}function pt($){return $>=127462&&$<=127487||$===8986||$===8987||$===9200||$===9203||$>=9728&&$<=10175||$===11088||$===11093||$>=127744&&$<=128591||$>=128640&&$<=128764||$>=128992&&$<=129003||$>=129280&&$<=129535||$>=129648&&$<=129750}const at="\uFEFF";function Bt($){return!!($&&$.length>0&&$.charCodeAt(0)===65279)}function Vt($,R=!1){return $?(R&&($=$.replace(/\\./g,"")),$.toLowerCase()!==$):!1}function qt($){return $=$%(2*26),$<26?String.fromCharCode(97+$):String.fromCharCode(65+$-26)}function $t($){return lt.getInstance().getGraphemeBreakType($)}function Gt($,R){return $===0?R!==5&&R!==7:$===2&&R===3?!1:$===4||$===2||$===3||R===4||R===2||R===3?!0:!($===8&&(R===8||R===9||R===11||R===12)||($===11||$===9)&&(R===9||R===10)||($===12||$===10)&&R===10||R===5||R===13||R===7||$===1||$===13&&R===14||$===6&&R===6)}class lt{constructor(){this._data=se()}static getInstance(){return lt._INSTANCE||(lt._INSTANCE=new lt),lt._INSTANCE}getGraphemeBreakType(R){if(R<32)return R===10?3:R===13?2:4;if(R<127)return 0;const L=this._data,oe=L.length/3;let le=1;for(;le<=oe;)if(R<L[3*le])le=2*le;else if(R>L[3*le+1])le=2*le+1;else return L[3*le+2];return 0}}lt._INSTANCE=null;function se(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function ve($,R){if($===0)return 0;const L=ne($,R);if(L!==void 0)return L;const oe=pe(R,$);return $-=Y(oe),$}function ne($,R){let L=pe(R,$);for($-=Y(L);Ae(L)||L===65039||L===8419;){if($===0)return;L=pe(R,$),$-=Y(L)}if(pt(L)){if($>=0){const oe=pe(R,$);oe===8205&&($-=Y(oe))}return $}}function Y($){return $>=65536?2:1}function Ae($){return 127995<=$&&$<=127999}},72999:function(Wt,Ze,h){"use strict";h.d(Ze,{$E:function(){return y},$K:function(){return S},D8:function(){return m},HD:function(){return N},IU:function(){return O},Jp:function(){return me},Kn:function(){return X},cW:function(){return C},f6:function(){return te},hj:function(){return ye},jn:function(){return U},kJ:function(){return z},mf:function(){return I},o8:function(){return H},p_:function(){return a},vE:function(){return B}});function z(M){return Array.isArray(M)}function N(M){return typeof M=="string"}function X(M){return typeof M=="object"&&M!==null&&!Array.isArray(M)&&!(M instanceof RegExp)&&!(M instanceof Date)}function ye(M){return typeof M=="number"&&!isNaN(M)}function U(M){return M===!0||M===!1}function H(M){return typeof M=="undefined"}function S(M){return!me(M)}function me(M){return H(M)||M===null}function a(M,W){if(!M)throw new Error(W?`Unexpected type, expected '${W}'`:"Unexpected type")}function C(M){if(me(M))throw new Error("Assertion Failed: argument is undefined or null");return M}function I(M){return typeof M=="function"}function m(M,W){const V=Math.min(M.length,W.length);for(let b=0;b<V;b++)u(M[b],W[b])}function u(M,W){if(N(W)){if(typeof M!==W)throw new Error(`argument does not match constraint: typeof ${W}`)}else if(I(W)){try{if(M instanceof W)return}catch(V){}if(!me(M)&&M.constructor===W||W.length===1&&W.call(void 0,M)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(M){let W=[],V=Object.getPrototypeOf(M);for(;Object.prototype!==V;)W=W.concat(Object.getOwnPropertyNames(V)),V=Object.getPrototypeOf(V);return W}function y(M){const W=[];for(const V of x(M))typeof M[V]=="function"&&W.push(V);return W}function O(M,W){const V=T=>function(){const G=Array.prototype.slice.call(arguments,0);return W(T,G)};let b={};for(const T of M)b[T]=V(T);return b}function te(M){return M===null?void 0:M}function B(M,W="Unreachable"){throw new Error(W)}},13268:function(Wt,Ze,h){"use strict";h.d(Ze,{N:function(){return N}});function z(X,ye){let U;return ye.length===0?U=X:U=X.replace(/\{(\d+)\}/g,function(H,S){const me=S[0];return typeof ye[me]!="undefined"?ye[me]:H}),U}function N(X,ye,...U){return z(ye,U)}},96236:function(Wt,Ze,h){"use strict";h.d(Ze,{BH:function(){return O},NZ:function(){return te},U8:function(){return B},co:function(){return y},eH:function(){return x},vr:function(){return u}});var z=h(75918),N=h(52615),X=h(4348),ye=h(88226),U=h(69323),H=h(34502),S=h(35884),me=h(90689),a=h(16925),C=h(49055),I=function(M,W,V,b){var T=arguments.length,G=T<3?W:b===null?b=Object.getOwnPropertyDescriptor(W,V):b,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(M,W,V,b);else for(var be=M.length-1;be>=0;be--)(j=M[be])&&(G=(T<3?j(G):T>3?j(W,V,G):j(W,V))||G);return T>3&&G&&Object.defineProperty(W,V,G),G},m=function(M,W){return function(V,b){W(V,b,M)}};function u(M){return M.command!==void 0}class x{constructor(W){this.id=x._idPool++,this._debugName=W}}x._idPool=0,x.CommandPalette=new x("CommandPalette"),x.EditorContext=new x("EditorContext"),x.SimpleEditorContext=new x("SimpleEditorContext"),x.EditorContextCopy=new x("EditorContextCopy"),x.EditorContextPeek=new x("EditorContextPeek"),x.MenubarEditMenu=new x("MenubarEditMenu"),x.MenubarCopy=new x("MenubarCopy"),x.MenubarGoMenu=new x("MenubarGoMenu"),x.MenubarSelectionMenu=new x("MenubarSelectionMenu"),x.InlineCompletionsActions=new x("InlineCompletionsActions");const y=(0,a.yh)("menuService"),O=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new X.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:M=>M===x.CommandPalette}}addCommand(M){return this.addCommands(ye.$.single(M))}addCommands(M){for(const W of M)this._commands.set(W.id,W);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,U.OF)(()=>{let W=!1;for(const V of M)W=this._commands.delete(V.id)||W;W&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(M){return this._commands.get(M)}getCommands(){const M=new Map;return this._commands.forEach((W,V)=>M.set(V,W)),M}appendMenuItem(M,W){return this.appendMenuItems(ye.$.single({id:M,item:W}))}appendMenuItems(M){const W=new Set,V=new H.S;for(const{id:b,item:T}of M){let G=this._menuItems.get(b);G||(G=new H.S,this._menuItems.set(b,G)),V.push(G.push(T)),W.add(b)}return this._onDidChangeMenu.fire(W),(0,U.OF)(()=>{if(V.size>0){for(let b of V)b();this._onDidChangeMenu.fire(W),V.clear()}})}getMenuItems(M){let W;return this._menuItems.has(M)?W=[...this._menuItems.get(M)]:W=[],M===x.CommandPalette&&this._appendImplicitItems(W),W}_appendImplicitItems(M){const W=new Set;for(const V of M)u(V)&&(W.add(V.command.id),V.alt&&W.add(V.alt.id));this._commands.forEach((V,b)=>{W.has(b)||M.push({command:V})})}};class te extends z.wY{constructor(W,V,b,T){super(`submenuitem.${W.submenu.id}`,typeof W.title=="string"?W.title:W.title.value,[],"submenu"),this.item=W,this._menuService=V,this._contextKeyService=b,this._options=T}get actions(){const W=[],V=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=V.getActions(this._options);V.dispose();for(const[,T]of b)T.length>0&&(W.push(...T),W.push(new z.Z0));return W.length&&W.pop(),W}}let B=class Sl{constructor(W,V,b,T,G){var j,be;if(this._commandService=G,this.id=W.id,this.label=b!=null&&b.renderShortTitle&&W.shortTitle?typeof W.shortTitle=="string"?W.shortTitle:W.shortTitle.value:typeof W.title=="string"?W.title:W.title.value,this.tooltip=(be=typeof W.tooltip=="string"?W.tooltip:(j=W.tooltip)===null||j===void 0?void 0:j.value)!==null&&be!==void 0?be:"",this.enabled=!W.precondition||T.contextMatchesRules(W.precondition),this.checked=void 0,W.toggled){const _e=W.toggled.condition?W.toggled:{condition:W.toggled};this.checked=T.contextMatchesRules(_e.condition),this.checked&&_e.tooltip&&(this.tooltip=typeof _e.tooltip=="string"?_e.tooltip:_e.tooltip.value),_e.title&&(this.label=typeof _e.title=="string"?_e.title:_e.title.value)}this.item=W,this.alt=V?new Sl(V,void 0,b,T,G):void 0,this._options=b,C.kS.isThemeIcon(W.icon)&&(this.class=N.dT.asClassName(W.icon))}dispose(){}run(...W){var V,b;let T=[];return!((V=this._options)===null||V===void 0)&&V.arg&&(T=[...T,this._options.arg]),!((b=this._options)===null||b===void 0)&&b.shouldForwardArgs&&(T=[...T,...W]),this._commandService.executeCommand(this.id,...T)}};B=I([m(3,me.i6),m(4,S.H)],B)},35884:function(Wt,Ze,h){"use strict";h.d(Ze,{H:function(){return S},P:function(){return me}});var z=h(4348),N=h(88226),X=h(69323),ye=h(34502),U=h(72999),H=h(16925);const S=(0,H.yh)("commandService"),me=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new z.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(a,C){if(!a)throw new Error("invalid command");if(typeof a=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:a,handler:C})}if(a.description){const y=[];for(let te of a.description.args)y.push(te.constraint);const O=a.handler;a.handler=function(te,...B){return(0,U.D8)(B,y),O(te,...B)}}const{id:I}=a;let m=this._commands.get(I);m||(m=new ye.S,this._commands.set(I,m));let u=m.unshift(a),x=(0,X.OF)(()=>{u();const y=this._commands.get(I);y!=null&&y.isEmpty()&&this._commands.delete(I)});return this._onDidRegisterCommand.fire(I),x}registerCommandAlias(a,C){return me.registerCommand(a,(I,...m)=>I.get(S).executeCommand(C,...m))}getCommand(a){const C=this._commands.get(a);if(!(!C||C.isEmpty()))return N.$.first(C)}getCommands(){const a=new Map;for(const C of this._commands.keys()){const I=this.getCommand(C);I&&a.set(C,I)}return a}};me.registerCommand("noop",()=>{})},90689:function(Wt,Ze,h){"use strict";h.d(Ze,{Ao:function(){return S},Eq:function(){return ee},Fb:function(){return me},K8:function(){return P},i6:function(){return de},uy:function(){return xe}});var z=h(23345),N=h(82983),X=h(16925);let ye=z.WE||"";const U=new Map;U.set("false",!1),U.set("true",!0),U.set("isMac",z.dz),U.set("isLinux",z.IJ),U.set("isWindows",z.ED),U.set("isWeb",z.$L),U.set("isMacNative",z.dz&&!z.$L),U.set("isEdge",ye.indexOf("Edg/")>=0),U.set("isFirefox",ye.indexOf("Firefox")>=0),U.set("isChrome",ye.indexOf("Chrome")>=0),U.set("isSafari",ye.indexOf("Safari")>=0);const H=Object.prototype.hasOwnProperty;class S{static has(v){return m.create(v)}static equals(v,E){return u.create(v,E)}static regex(v,E){return T.create(v,E)}static not(v){return te.create(v)}static and(...v){return be.create(v,null)}static or(...v){return _e.create(v,null,!0)}static deserialize(v,E=!1){if(v)return this._deserializeOrExpression(v,E)}static _deserializeOrExpression(v,E){let K=v.split("||");return _e.create(K.map(fe=>this._deserializeAndExpression(fe,E)),null,!0)}static _deserializeAndExpression(v,E){let K=v.split("&&");return be.create(K.map(fe=>this._deserializeOne(fe,E)),null)}static _deserializeOne(v,E){if(v=v.trim(),v.indexOf("!=")>=0){let K=v.split("!=");return O.create(K[0].trim(),this._deserializeValue(K[1],E))}if(v.indexOf("==")>=0){let K=v.split("==");return u.create(K[0].trim(),this._deserializeValue(K[1],E))}if(v.indexOf("=~")>=0){let K=v.split("=~");return T.create(K[0].trim(),this._deserializeRegexValue(K[1],E))}if(v.indexOf(" in ")>=0){let K=v.split(" in ");return x.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(v)){const K=v.split(">=");return W.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(v)){const K=v.split(">");return M.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(v)){const K=v.split("<=");return b.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(v)){const K=v.split("<");return V.create(K[0].trim(),K[1].trim())}return/^\!\s*/.test(v)?te.create(v.substr(1).trim()):m.create(v)}static _deserializeValue(v,E){if(v=v.trim(),v==="true")return!0;if(v==="false")return!1;let K=/^'([^']*)'$/.exec(v);return K?K[1].trim():v}static _deserializeRegexValue(v,E){if((0,N.m5)(v)){if(E)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let K=v.indexOf("/"),fe=v.lastIndexOf("/");if(K===fe||K<0){if(E)throw new Error(`bad regexp-value '${v}', missing /-enclosure`);return console.warn(`bad regexp-value '${v}', missing /-enclosure`),null}let Be=v.slice(K+1,fe),Ke=v[fe+1]==="i"?"i":"";try{return new RegExp(Be,Ke)}catch(Me){if(E)throw new Error(`bad regexp-value '${v}', parse error: ${Me}`);return console.warn(`bad regexp-value '${v}', parse error: ${Me}`),null}}}function me(Q,v){const E=Q?Q.substituteConstants():void 0,K=v?v.substituteConstants():void 0;return!E&&!K?!0:!E||!K?!1:E.equals(K)}function a(Q,v){return Q.cmp(v)}class C{constructor(){this.type=0}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!1}serialize(){return"false"}keys(){return[]}negate(){return I.INSTANCE}}C.INSTANCE=new C;class I{constructor(){this.type=1}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!0}serialize(){return"true"}keys(){return[]}negate(){return C.INSTANCE}}I.INSTANCE=new I;class m{constructor(v,E){this.key=v,this.negated=E,this.type=2}static create(v,E=null){const K=U.get(v);return typeof K=="boolean"?K?I.INSTANCE:C.INSTANCE:new m(v,E)}cmp(v){return v.type!==this.type?this.type-v.type:Z(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=U.get(this.key);return typeof v=="boolean"?v?I.INSTANCE:C.INSTANCE:this}evaluate(v){return!!v.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=te.create(this.key,this)),this.negated}}class u{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=4}static create(v,E,K=null){if(typeof E=="boolean")return E?m.create(v,K):te.create(v,K);const fe=U.get(v);return typeof fe=="boolean"?E===(fe?"true":"false")?I.INSTANCE:C.INSTANCE:new u(v,E,K)}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=U.get(this.key);if(typeof v=="boolean"){const E=v?"true":"false";return this.value===E?I.INSTANCE:C.INSTANCE}return this}evaluate(v){return v.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class x{constructor(v,E){this.key=v,this.valueKey=E,this.type=10,this.negated=null}static create(v,E){return new x(v,E)}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.valueKey,v.key,v.valueKey)}equals(v){return v.type===this.type?this.key===v.key&&this.valueKey===v.valueKey:!1}substituteConstants(){return this}evaluate(v){const E=v.getValue(this.valueKey),K=v.getValue(this.key);return Array.isArray(E)?E.indexOf(K)>=0:typeof K=="string"&&typeof E=="object"&&E!==null?H.call(E,K):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=y.create(this)),this.negated}}class y{constructor(v){this._actual=v,this.type=11}static create(v){return new y(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class O{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=5}static create(v,E,K=null){if(typeof E=="boolean")return E?te.create(v,K):m.create(v,K);const fe=U.get(v);return typeof fe=="boolean"?E===(fe?"true":"false")?C.INSTANCE:I.INSTANCE:new O(v,E,K)}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=U.get(this.key);if(typeof v=="boolean"){const E=v?"true":"false";return this.value===E?C.INSTANCE:I.INSTANCE}return this}evaluate(v){return v.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class te{constructor(v,E){this.key=v,this.negated=E,this.type=3}static create(v,E=null){const K=U.get(v);return typeof K=="boolean"?K?C.INSTANCE:I.INSTANCE:new te(v,E)}cmp(v){return v.type!==this.type?this.type-v.type:Z(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=U.get(this.key);return typeof v=="boolean"?v?C.INSTANCE:I.INSTANCE:this}evaluate(v){return!v.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function B(Q,v){if(typeof Q=="string"){const E=parseFloat(Q);isNaN(E)||(Q=E)}return typeof Q=="string"||typeof Q=="number"?v(Q):C.INSTANCE}class M{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=12}static create(v,E,K=null){return B(E,fe=>new M(v,fe,K))}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class W{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=13}static create(v,E,K=null){return B(E,fe=>new W(v,fe,K))}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class V{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=14}static create(v,E,K=null){return B(E,fe=>new V(v,fe,K))}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.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 b{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=15}static create(v,E,K=null){return B(E,fe=>new b(v,fe,K))}cmp(v){return v.type!==this.type?this.type-v.type:pe(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class T{constructor(v,E){this.key=v,this.regexp=E,this.type=7,this.negated=null}static create(v,E){return new T(v,E)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.key<v.key)return-1;if(this.key>v.key)return 1;const E=this.regexp?this.regexp.source:"",K=v.regexp?v.regexp.source:"";return E<K?-1:E>K?1:0}equals(v){if(v.type===this.type){const E=this.regexp?this.regexp.source:"",K=v.regexp?v.regexp.source:"";return this.key===v.key&&E===K}return!1}substituteConstants(){return this}evaluate(v){let E=v.getValue(this.key);return this.regexp?this.regexp.test(E):!1}serialize(){const v=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${v}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this)),this.negated}}class G{constructor(v){this._actual=v,this.type=8}static create(v){return new G(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function j(Q){let v=null;for(let E=0,K=Q.length;E<K;E++){const fe=Q[E].substituteConstants();if(Q[E]!==fe&&v===null){v=[];for(let Be=0;Be<E;Be++)v[Be]=Q[Be]}v!==null&&(v[E]=fe)}return v===null?Q:v}class be{constructor(v,E){this.expr=v,this.negated=E,this.type=6}static create(v,E){return be._normalizeArr(v,E)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let E=0,K=this.expr.length;E<K;E++){const fe=a(this.expr[E],v.expr[E]);if(fe!==0)return fe}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let E=0,K=this.expr.length;E<K;E++)if(!this.expr[E].equals(v.expr[E]))return!1;return!0}return!1}substituteConstants(){const v=j(this.expr);return v===this.expr?this:be.create(v,this.negated)}evaluate(v){for(let E=0,K=this.expr.length;E<K;E++)if(!this.expr[E].evaluate(v))return!1;return!0}static _normalizeArr(v,E){const K=[];let fe=!1;for(const Be of v)if(Be){if(Be.type===1){fe=!0;continue}if(Be.type===0)return C.INSTANCE;if(Be.type===6){K.push(...Be.expr);continue}K.push(Be)}if(K.length===0&&fe)return I.INSTANCE;if(K.length!==0){if(K.length===1)return K[0];K.sort(a);for(let Be=1;Be<K.length;Be++)K[Be-1].equals(K[Be])&&(K.splice(Be,1),Be--);if(K.length===1)return K[0];for(;K.length>1;){const Be=K[K.length-1];if(Be.type!==9)break;K.pop();const Ke=K.pop(),Me=K.length===0,Ye=_e.create(Be.expr.map(ht=>be.create([ht,Ke],null)),null,Me);Ye&&(K.push(Ye),K.sort(a))}return K.length===1?K[0]:new be(K,E)}}serialize(){return this.expr.map(v=>v.serialize()).join(" && ")}keys(){const v=[];for(let E of this.expr)v.push(...E.keys());return v}negate(){if(!this.negated){const v=[];for(let E of this.expr)v.push(E.negate());this.negated=_e.create(v,this,!0)}return this.negated}}class _e{constructor(v,E){this.expr=v,this.negated=E,this.type=9}static create(v,E,K){return _e._normalizeArr(v,E,K)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let E=0,K=this.expr.length;E<K;E++){const fe=a(this.expr[E],v.expr[E]);if(fe!==0)return fe}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let E=0,K=this.expr.length;E<K;E++)if(!this.expr[E].equals(v.expr[E]))return!1;return!0}return!1}substituteConstants(){const v=j(this.expr);return v===this.expr?this:_e.create(v,this.negated,!1)}evaluate(v){for(let E=0,K=this.expr.length;E<K;E++)if(this.expr[E].evaluate(v))return!0;return!1}static _normalizeArr(v,E,K){let fe=[],Be=!1;if(v){for(let Ke=0,Me=v.length;Ke<Me;Ke++){const Ye=v[Ke];if(Ye){if(Ye.type===0){Be=!0;continue}if(Ye.type===1)return I.INSTANCE;if(Ye.type===9){fe=fe.concat(Ye.expr);continue}fe.push(Ye)}}if(fe.length===0&&Be)return C.INSTANCE;fe.sort(a)}if(fe.length!==0){if(fe.length===1)return fe[0];for(let Ke=1;Ke<fe.length;Ke++)fe[Ke-1].equals(fe[Ke])&&(fe.splice(Ke,1),Ke--);if(fe.length===1)return fe[0];if(K){for(let Ke=0;Ke<fe.length;Ke++)for(let Me=Ke+1;Me<fe.length;Me++)P(fe[Ke],fe[Me])&&(fe.splice(Me,1),Me--);if(fe.length===1)return fe[0]}return new _e(fe,E)}}serialize(){return this.expr.map(v=>v.serialize()).join(" || ")}keys(){const v=[];for(let E of this.expr)v.push(...E.keys());return v}negate(){if(!this.negated){let v=[];for(let E of this.expr)v.push(E.negate());for(;v.length>1;){const E=v.shift(),K=v.shift(),fe=[];for(const Ke of ie(E))for(const Me of ie(K))fe.push(be.create([Ke,Me],null));const Be=v.length===0;v.unshift(_e.create(fe,null,Be))}this.negated=v[0]}return this.negated}}class xe extends m{constructor(v,E,K){super(v,null),this._defaultValue=E,typeof K=="object"?xe._info.push(Object.assign(Object.assign({},K),{key:v})):K!==!0&&xe._info.push({key:v,description:K,type:E!=null?typeof E:void 0})}static all(){return xe._info.values()}bindTo(v){return v.createKey(this.key,this._defaultValue)}getValue(v){return v.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(v){return u.create(this.key,v)}}xe._info=[];const de=(0,X.yh)("contextKeyService"),ee="setContext";function Z(Q,v){return Q<v?-1:Q>v?1:0}function pe(Q,v,E,K){return Q<E?-1:Q>E?1:v<K?-1:v>K?1:0}function P(Q,v){if(v.type===6&&Q.type!==9&&Q.type!==6){for(const fe of v.expr)if(Q.equals(fe))return!0}const E=Q.negate(),K=ie(E).concat(ie(v));K.sort(a);for(let fe=0;fe<K.length;fe++){const Ke=K[fe].negate();for(let Me=fe+1;Me<K.length;Me++){const Ye=K[Me];if(Ke.equals(Ye))return!0}}return!1}function ie(Q){return Q.type===9?Q.expr:[Q]}},16925:function(Wt,Ze,h){"use strict";h.d(Ze,{I8:function(){return z},TG:function(){return N},jt:function(){return U},yh:function(){return ye}});var z;(function(H){H.serviceIds=new Map,H.DI_TARGET="$di$target",H.DI_DEPENDENCIES="$di$dependencies";function S(me){return me[H.DI_DEPENDENCIES]||[]}H.getServiceDependencies=S})(z||(z={}));const N=ye("instantiationService");function X(H,S,me,a){S[z.DI_TARGET]===S?S[z.DI_DEPENDENCIES].push({id:H,index:me,optional:a}):(S[z.DI_DEPENDENCIES]=[{id:H,index:me,optional:a}],S[z.DI_TARGET]=S)}function ye(H){if(z.serviceIds.has(H))return z.serviceIds.get(H);const S=function(me,a,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");X(S,me,C,!1)};return S.toString=()=>H,z.serviceIds.set(H,S),S}function U(H){return function(S,me,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");X(H,S,a,!0)}}},44650:function(Wt,Ze,h){"use strict";h.d(Ze,{B:function(){return ye}});var z=h(76068),N=h(72999);class X{constructor(){this.data=new Map}add(H,S){z.ok(N.HD(H)),z.ok(N.Kn(S)),z.ok(!this.data.has(H),"There is already an extension with this id"),this.data.set(H,S)}as(H){return this.data.get(H)||null}}const ye=new X},66213:function(Wt,Ze,h){"use strict";h.d(Ze,{e:function(){return z}});var z;(function(N){N.DARK="dark",N.LIGHT="light",N.HIGH_CONTRAST="hc"})(z||(z={}))},49055:function(Wt,Ze,h){"use strict";h.d(Ze,{EN:function(){return a},IP:function(){return m},Ic:function(){return y},XE:function(){return S},bB:function(){return O},kS:function(){return C},m6:function(){return I}});var z=h(52615),N=h(4348),X=h(69323),ye=h(16925),U=h(44650),H=h(66213);const S=(0,ye.yh)("themeService");var me;(function(te){function B(M){return M&&typeof M=="object"&&typeof M.id=="string"}te.isThemeColor=B})(me||(me={}));function a(te){return{id:te}}var C;(function(te){function B(G){return G&&typeof G=="object"&&typeof G.id=="string"&&(typeof G.color=="undefined"||me.isThemeColor(G.color))}te.isThemeIcon=B;const M=new RegExp(`^\\$\\((${z.dT.iconNameExpression}(?:${z.dT.iconModifierExpression})?)\\)$`);function W(G){const j=M.exec(G);if(!j)return;let[,be]=j;return{id:be}}te.fromString=W;function V(G,j){let be=G.id;const _e=be.lastIndexOf("~");return _e!==-1&&(be=be.substring(0,_e)),j&&(be=`${be}~${j}`),{id:be}}te.modify=V;function b(G,j){var be,_e;return G.id===j.id&&((be=G.color)===null||be===void 0?void 0:be.id)===((_e=j.color)===null||_e===void 0?void 0:_e.id)}te.isEqual=b;function T(G,j){return{id:G.id,color:j?a(j):void 0}}te.asThemeIcon=T,te.asClassNameArray=z.dT.asClassNameArray,te.asClassName=z.dT.asClassName,te.asCSSSelector=z.dT.asCSSSelector})(C||(C={}));function I(te){switch(te){case H.e.DARK:return"vs-dark";case H.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const m={ThemingContribution:"base.contributions.theming"};class u{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.Q5}onColorThemeChange(B){return this.themingParticipants.push(B),this.onThemingParticipantAddedEmitter.fire(B),(0,X.OF)(()=>{const M=this.themingParticipants.indexOf(B);this.themingParticipants.splice(M,1)})}getThemingParticipants(){return this.themingParticipants}}let x=new u;U.B.add(m.ThemingContribution,x);function y(te){return x.onColorThemeChange(te)}class O extends X.JT{constructor(B){super(),this.themeService=B,this.theme=B.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(M=>this.onThemeChange(M)))}onThemeChange(B){this.theme=B,this.updateStyles()}updateStyles(){}}},5630:function(Wt,Ze,h){"use strict";var z=h(92413),N=h(33708),X=h(400),ye=h(33606),U=h(37061),H=h(92310),S=h.n(H),me=h(18929),a=h(59301),C=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],I=(0,a.forwardRef)(function(m,u){var x,y=m.prefixCls,O=y===void 0?"rc-checkbox":y,te=m.className,B=m.style,M=m.checked,W=m.disabled,V=m.defaultChecked,b=V===void 0?!1:V,T=m.type,G=T===void 0?"checkbox":T,j=m.title,be=m.onChange,_e=(0,U.Z)(m,C),xe=(0,a.useRef)(null),de=(0,me.Z)(b,{value:M}),ee=(0,ye.Z)(de,2),Z=ee[0],pe=ee[1];(0,a.useImperativeHandle)(u,function(){return{focus:function(){var v;(v=xe.current)===null||v===void 0||v.focus()},blur:function(){var v;(v=xe.current)===null||v===void 0||v.blur()},input:xe.current}});var P=S()(O,te,(x={},(0,X.Z)(x,"".concat(O,"-checked"),Z),(0,X.Z)(x,"".concat(O,"-disabled"),W),x)),ie=function(v){W||("checked"in m||pe(v.target.checked),be==null||be({target:(0,N.Z)((0,N.Z)({},m),{},{type:G,checked:v.target.checked}),stopPropagation:function(){v.stopPropagation()},preventDefault:function(){v.preventDefault()},nativeEvent:v.nativeEvent}))};return a.createElement("span",{className:P,title:j,style:B},a.createElement("input",(0,z.Z)({},_e,{className:"".concat(O,"-input"),ref:xe,onChange:ie,disabled:W,checked:!!Z,type:G})),a.createElement("span",{className:"".concat(O,"-inner")}))});Ze.Z=I},31561:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return G}});var z=h(92413),N=h(400),X=h(33606),ye=h(37061),U=h(35593),H=h(92310),S=h.n(H),me=h(8654),a=h(59301),C=h(10228),I=h(16089),m=C.Z.ESC,u=C.Z.TAB;function x(j){var be=j.visible,_e=j.triggerRef,xe=j.onVisibleChange,de=j.autoFocus,ee=j.overlayRef,Z=a.useRef(!1),pe=function(){if(be){var v,E;(v=_e.current)===null||v===void 0||(E=v.focus)===null||E===void 0||E.call(v),xe==null||xe(!1)}},P=function(){var v;return(v=ee.current)!==null&&v!==void 0&&v.focus?(ee.current.focus(),Z.current=!0,!0):!1},ie=function(v){switch(v.keyCode){case m:pe();break;case u:{var E=!1;Z.current||(E=P()),E?v.preventDefault():pe();break}}};a.useEffect(function(){return be?(window.addEventListener("keydown",ie),de&&(0,I.Z)(P,3),function(){window.removeEventListener("keydown",ie),Z.current=!1}):function(){Z.current=!1}},[be])}var y=(0,a.forwardRef)(function(j,be){var _e=j.overlay,xe=j.arrow,de=j.prefixCls,ee=(0,a.useMemo)(function(){var pe;return typeof _e=="function"?pe=_e():pe=_e,pe},[_e]),Z=(0,me.sQ)(be,ee==null?void 0:ee.ref);return a.createElement(a.Fragment,null,xe&&a.createElement("div",{className:"".concat(de,"-arrow")}),a.cloneElement(ee,{ref:(0,me.Yr)(ee)?Z:void 0}))}),O=y,te={adjustX:1,adjustY:1},B=[0,0],M={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:B},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:B},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:B},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:B},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:B},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:B}},W=M,V=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function b(j,be){var _e,xe=j.arrow,de=xe===void 0?!1:xe,ee=j.prefixCls,Z=ee===void 0?"rc-dropdown":ee,pe=j.transitionName,P=j.animation,ie=j.align,Q=j.placement,v=Q===void 0?"bottomLeft":Q,E=j.placements,K=E===void 0?W:E,fe=j.getPopupContainer,Be=j.showAction,Ke=j.hideAction,Me=j.overlayClassName,Ye=j.overlayStyle,ht=j.visible,pt=j.trigger,at=pt===void 0?["hover"]:pt,Bt=j.autoFocus,Vt=j.overlay,qt=j.children,$t=j.onVisibleChange,Gt=(0,ye.Z)(j,V),lt=a.useState(),se=(0,X.Z)(lt,2),ve=se[0],ne=se[1],Y="visible"in j?ht:ve,Ae=a.useRef(null),$=a.useRef(null),R=a.useRef(null);a.useImperativeHandle(be,function(){return Ae.current});var L=function(st){ne(st),$t==null||$t(st)};x({visible:Y,triggerRef:R,onVisibleChange:L,autoFocus:Bt,overlayRef:$});var oe=function(st){var Ge=j.onOverlayClick;ne(!1),Ge&&Ge(st)},le=function(){return a.createElement(O,{ref:$,overlay:Vt,prefixCls:Z,arrow:de})},J=function(){return typeof Vt=="function"?le:le()},De=function(){var st=j.minOverlayWidthMatchTrigger,Ge=j.alignPoint;return"minOverlayWidthMatchTrigger"in j?st:!Ge},je=function(){var st=j.openClassName;return st!==void 0?st:"".concat(Z,"-open")},ke=a.cloneElement(qt,{className:S()((_e=qt.props)===null||_e===void 0?void 0:_e.className,Y&&je()),ref:(0,me.Yr)(qt)?(0,me.sQ)(R,qt.ref):void 0}),Pe=Ke;return!Pe&&at.indexOf("contextMenu")!==-1&&(Pe=["click"]),a.createElement(U.Z,(0,z.Z)({builtinPlacements:K},Gt,{prefixCls:Z,ref:Ae,popupClassName:S()(Me,(0,N.Z)({},"".concat(Z,"-show-arrow"),de)),popupStyle:Ye,action:at,showAction:Be,hideAction:Pe,popupPlacement:v,popupAlign:ie,popupTransitionName:pe,popupAnimation:P,popupVisible:Y,stretch:De()?"minWidth":"",popup:J(),onPopupVisibleChange:L,onPopupClick:oe,getPopupContainer:fe}),ke)}var T=a.forwardRef(b),G=T},93681:function(Wt,Ze,h){"use strict";h.r(Ze),h.d(Ze,{BaseInput:function(){return C},default:function(){return M}});var z=h(92413),N=h(33708),X=h(400),ye=h(39559),U=h(92310),H=h.n(U),S=h(59301),me=h(5643),a=function(V){var b,T,G=V.inputElement,j=V.prefixCls,be=V.prefix,_e=V.suffix,xe=V.addonBefore,de=V.addonAfter,ee=V.className,Z=V.style,pe=V.disabled,P=V.readOnly,ie=V.focused,Q=V.triggerFocus,v=V.allowClear,E=V.value,K=V.handleReset,fe=V.hidden,Be=V.classes,Ke=V.classNames,Me=V.dataAttrs,Ye=V.styles,ht=V.components,pt=(ht==null?void 0:ht.affixWrapper)||"span",at=(ht==null?void 0:ht.groupWrapper)||"span",Bt=(ht==null?void 0:ht.wrapper)||"span",Vt=(ht==null?void 0:ht.groupAddon)||"span",qt=(0,S.useRef)(null),$t=function(le){var J;(J=qt.current)!==null&&J!==void 0&&J.contains(le.target)&&(Q==null||Q())},Gt=function(){var le;if(!v)return null;var J=!pe&&!P&&E,De="".concat(j,"-clear-icon"),je=(0,ye.Z)(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"\u2716";return S.createElement("span",{onClick:K,onMouseDown:function(Pe){return Pe.preventDefault()},className:H()(De,(le={},(0,X.Z)(le,"".concat(De,"-hidden"),!J),(0,X.Z)(le,"".concat(De,"-has-suffix"),!!_e),le)),role:"button",tabIndex:-1},je)},lt=(0,S.cloneElement)(G,{value:E,hidden:fe,className:H()((b=G.props)===null||b===void 0?void 0:b.className,!(0,me.X3)(V)&&!(0,me.He)(V)&&ee)||null,style:(0,N.Z)((0,N.Z)({},(T=G.props)===null||T===void 0?void 0:T.style),!(0,me.X3)(V)&&!(0,me.He)(V)?Z:{})});if((0,me.X3)(V)){var se,ve="".concat(j,"-affix-wrapper"),ne=H()(ve,(se={},(0,X.Z)(se,"".concat(ve,"-disabled"),pe),(0,X.Z)(se,"".concat(ve,"-focused"),ie),(0,X.Z)(se,"".concat(ve,"-readonly"),P),(0,X.Z)(se,"".concat(ve,"-input-with-clear-btn"),_e&&v&&E),se),!(0,me.He)(V)&&ee,Be==null?void 0:Be.affixWrapper,Ke==null?void 0:Ke.affixWrapper),Y=(_e||v)&&S.createElement("span",{className:H()("".concat(j,"-suffix"),Ke==null?void 0:Ke.suffix),style:Ye==null?void 0:Ye.suffix},Gt(),_e);lt=S.createElement(pt,(0,z.Z)({className:ne,style:(0,N.Z)((0,N.Z)({},(0,me.He)(V)?void 0:Z),Ye==null?void 0:Ye.affixWrapper),hidden:!(0,me.He)(V)&&fe,onClick:$t},Me==null?void 0:Me.affixWrapper,{ref:qt}),be&&S.createElement("span",{className:H()("".concat(j,"-prefix"),Ke==null?void 0:Ke.prefix),style:Ye==null?void 0:Ye.prefix},be),(0,S.cloneElement)(G,{value:E,hidden:null}),Y)}if((0,me.He)(V)){var Ae="".concat(j,"-group"),$="".concat(Ae,"-addon"),R=H()("".concat(j,"-wrapper"),Ae,Be==null?void 0:Be.wrapper),L=H()("".concat(j,"-group-wrapper"),ee,Be==null?void 0:Be.group);return S.createElement(at,{className:L,style:Z,hidden:fe},S.createElement(Bt,{className:R},xe&&S.createElement(Vt,{className:$},xe),(0,S.cloneElement)(lt,{hidden:null}),de&&S.createElement(Vt,{className:$},de)))}return lt},C=a,I=h(26407),m=h(33606),u=h(37061),x=h(18929),y=h(2738),O=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],te=(0,S.forwardRef)(function(W,V){var b=W.autoComplete,T=W.onChange,G=W.onFocus,j=W.onBlur,be=W.onPressEnter,_e=W.onKeyDown,xe=W.prefixCls,de=xe===void 0?"rc-input":xe,ee=W.disabled,Z=W.htmlSize,pe=W.className,P=W.maxLength,ie=W.suffix,Q=W.showCount,v=W.type,E=v===void 0?"text":v,K=W.classes,fe=W.classNames,Be=W.styles,Ke=(0,u.Z)(W,O),Me=(0,x.Z)(W.defaultValue,{value:W.value}),Ye=(0,m.Z)(Me,2),ht=Ye[0],pt=Ye[1],at=(0,S.useState)(!1),Bt=(0,m.Z)(at,2),Vt=Bt[0],qt=Bt[1],$t=(0,S.useRef)(null),Gt=function(L){$t.current&&(0,me.nH)($t.current,L)};(0,S.useImperativeHandle)(V,function(){return{focus:Gt,blur:function(){var L;(L=$t.current)===null||L===void 0||L.blur()},setSelectionRange:function(L,oe,le){var J;(J=$t.current)===null||J===void 0||J.setSelectionRange(L,oe,le)},select:function(){var L;(L=$t.current)===null||L===void 0||L.select()},input:$t.current}}),(0,S.useEffect)(function(){qt(function(R){return R&&ee?!1:R})},[ee]);var lt=function(L){W.value===void 0&&pt(L.target.value),$t.current&&(0,me.rJ)($t.current,L,T)},se=function(L){be&&L.key==="Enter"&&be(L),_e==null||_e(L)},ve=function(L){qt(!0),G==null||G(L)},ne=function(L){qt(!1),j==null||j(L)},Y=function(L){pt(""),Gt(),$t.current&&(0,me.rJ)($t.current,L,T)},Ae=function(){var L=(0,y.Z)(W,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,z.Z)({autoComplete:b},L,{onChange:lt,onFocus:ve,onBlur:ne,onKeyDown:se,className:H()(de,(0,X.Z)({},"".concat(de,"-disabled"),ee),fe==null?void 0:fe.input),style:Be==null?void 0:Be.input,ref:$t,size:Z,type:E}))},$=function(){var L=Number(P)>0;if(ie||Q){var oe=(0,me.D7)(ht),le=(0,I.Z)(oe).length,J=(0,ye.Z)(Q)==="object"?Q.formatter({value:oe,count:le,maxLength:P}):"".concat(le).concat(L?" / ".concat(P):"");return S.createElement(S.Fragment,null,!!Q&&S.createElement("span",{className:H()("".concat(de,"-show-count-suffix"),(0,X.Z)({},"".concat(de,"-show-count-has-suffix"),!!ie),fe==null?void 0:fe.count),style:(0,N.Z)({},Be==null?void 0:Be.count)},J),ie)}return null};return S.createElement(C,(0,z.Z)({},Ke,{prefixCls:de,className:pe,inputElement:Ae(),handleReset:Y,value:(0,me.D7)(ht),focused:Vt,triggerFocus:Gt,suffix:$(),disabled:ee,classes:K,classNames:fe,styles:Be}))}),B=te,M=B},5643:function(Wt,Ze,h){"use strict";h.d(Ze,{D7:function(){return U},He:function(){return z},X3:function(){return N},nH:function(){return ye},rJ:function(){return X}});function z(H){return!!(H.addonBefore||H.addonAfter)}function N(H){return!!(H.prefix||H.suffix||H.allowClear)}function X(H,S,me,a){if(me){var C=S;if(S.type==="click"){var I=H.cloneNode(!0);C=Object.create(S,{target:{value:I},currentTarget:{value:I}}),I.value="",me(C);return}if(a!==void 0){C=Object.create(S,{target:{value:H},currentTarget:{value:H}}),H.value=a,me(C);return}me(C)}}function ye(H,S){if(H){H.focus(S);var me=S||{},a=me.cursor;if(a){var C=H.value.length;switch(a){case"start":H.setSelectionRange(0,0);break;case"end":H.setSelectionRange(C,C);break;default:H.setSelectionRange(0,C)}}}}function U(H){return typeof H=="undefined"||H===null?"":String(H)}},15285:function(Wt,Ze,h){"use strict";h.d(Ze,{iz:function(){return _n},ck:function(){return Je},BW:function(){return vn},sN:function(){return Je},Wd:function(){return St},ZP:function(){return Yt},Xl:function(){return _e}});var z=h(92413),N=h(400),X=h(33708),ye=h(26407),U=h(33606),H=h(37061),S=h(92310),me=h.n(S),a=h(11780),C=h(18929),I=h(13697),m=h(48736),u=h(59301),x=h(4676),y=u.createContext(null);function O(ct,ft){return ct===void 0?null:"".concat(ct,"-").concat(ft)}function te(ct){var ft=u.useContext(y);return O(ft,ct)}var B=h(80547),M=["children","locked"],W=u.createContext(null);function V(ct,ft){var Dt=(0,X.Z)({},ct);return Object.keys(ft).forEach(function(Ot){var Tt=ft[Ot];Tt!==void 0&&(Dt[Ot]=Tt)}),Dt}function b(ct){var ft=ct.children,Dt=ct.locked,Ot=(0,H.Z)(ct,M),Tt=u.useContext(W),Kt=(0,B.Z)(function(){return V(Tt,Ot)},[Tt,Ot],function(Nt,ln){return!Dt&&(Nt[0]!==ln[0]||!(0,I.Z)(Nt[1],ln[1],!0))});return u.createElement(W.Provider,{value:Kt},ft)}var T=[],G=u.createContext(null);function j(){return u.useContext(G)}var be=u.createContext(T);function _e(ct){var ft=u.useContext(be);return u.useMemo(function(){return ct!==void 0?[].concat((0,ye.Z)(ft),[ct]):ft},[ft,ct])}var xe=u.createContext(null),de=u.createContext({}),ee=de,Z=h(29194);function pe(ct){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Z.Z)(ct)){var Dt=ct.nodeName.toLowerCase(),Ot=["input","select","textarea","button"].includes(Dt)||ct.isContentEditable||Dt==="a"&&!!ct.getAttribute("href"),Tt=ct.getAttribute("tabindex"),Kt=Number(Tt),Nt=null;return Tt&&!Number.isNaN(Kt)?Nt=Kt:Ot&&Nt===null&&(Nt=0),Ot&&ct.disabled&&(Nt=null),Nt!==null&&(Nt>=0||ft&&Nt<0)}return!1}function P(ct){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=(0,ye.Z)(ct.querySelectorAll("*")).filter(function(Ot){return pe(Ot,ft)});return pe(ct,ft)&&Dt.unshift(ct),Dt}var ie=null;function Q(){ie=document.activeElement}function v(){ie=null}function E(){if(ie)try{ie.focus()}catch(ct){}}function K(ct,ft){if(ft.keyCode===9){var Dt=P(ct),Ot=Dt[ft.shiftKey?0:Dt.length-1],Tt=Ot===document.activeElement||ct===document.activeElement;if(Tt){var Kt=Dt[ft.shiftKey?Dt.length-1:0];Kt.focus(),ft.preventDefault()}}}var fe=h(10228),Be=h(16089),Ke=fe.Z.LEFT,Me=fe.Z.RIGHT,Ye=fe.Z.UP,ht=fe.Z.DOWN,pt=fe.Z.ENTER,at=fe.Z.ESC,Bt=fe.Z.HOME,Vt=fe.Z.END,qt=[Ye,ht,Ke,Me];function $t(ct,ft,Dt,Ot){var Tt,Kt,Nt,ln,xn="prev",Rn="next",Qn="children",Jn="parent";if(ct==="inline"&&Ot===pt)return{inlineTrigger:!0};var hr=(Tt={},(0,N.Z)(Tt,Ye,xn),(0,N.Z)(Tt,ht,Rn),Tt),En=(Kt={},(0,N.Z)(Kt,Ke,Dt?Rn:xn),(0,N.Z)(Kt,Me,Dt?xn:Rn),(0,N.Z)(Kt,ht,Qn),(0,N.Z)(Kt,pt,Qn),Kt),yn=(Nt={},(0,N.Z)(Nt,Ye,xn),(0,N.Z)(Nt,ht,Rn),(0,N.Z)(Nt,pt,Qn),(0,N.Z)(Nt,at,Jn),(0,N.Z)(Nt,Ke,Dt?Qn:Jn),(0,N.Z)(Nt,Me,Dt?Jn:Qn),Nt),pr={inline:hr,horizontal:En,vertical:yn,inlineSub:hr,horizontalSub:yn,verticalSub:yn},Zn=(ln=pr["".concat(ct).concat(ft?"":"Sub")])===null||ln===void 0?void 0:ln[Ot];switch(Zn){case xn:return{offset:-1,sibling:!0};case Rn:return{offset:1,sibling:!0};case Jn:return{offset:-1,sibling:!1};case Qn:return{offset:1,sibling:!1};default:return null}}function Gt(ct){for(var ft=ct;ft;){if(ft.getAttribute("data-menu-list"))return ft;ft=ft.parentElement}return null}function lt(ct,ft){for(var Dt=ct||document.activeElement;Dt;){if(ft.has(Dt))return Dt;Dt=Dt.parentElement}return null}function se(ct,ft){var Dt=P(ct,!0);return Dt.filter(function(Ot){return ft.has(Ot)})}function ve(ct,ft,Dt){var Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ct)return null;var Tt=se(ct,ft),Kt=Tt.length,Nt=Tt.findIndex(function(ln){return Dt===ln});return Ot<0?Nt===-1?Nt=Kt-1:Nt-=1:Ot>0&&(Nt+=1),Nt=(Nt+Kt)%Kt,Tt[Nt]}var ne=function(ft,Dt){var Ot=new Set,Tt=new Map,Kt=new Map;return ft.forEach(function(Nt){var ln=document.querySelector("[data-menu-id='".concat(O(Dt,Nt),"']"));ln&&(Ot.add(ln),Kt.set(ln,Nt),Tt.set(Nt,ln))}),{elements:Ot,key2element:Tt,element2key:Kt}};function Y(ct,ft,Dt,Ot,Tt,Kt,Nt,ln,xn,Rn){var Qn=u.useRef(),Jn=u.useRef();Jn.current=ft;var hr=function(){Be.Z.cancel(Qn.current)};return u.useEffect(function(){return function(){hr()}},[]),function(En){var yn=En.which;if([].concat(qt,[pt,at,Bt,Vt]).includes(yn)){var pr=Kt(),Zn=ne(pr,Ot),Rr=Zn,qn=Rr.elements,cr=Rr.key2element,gr=Rr.element2key,tr=cr.get(ft),Or=lt(tr,qn),Vr=gr.get(Or),Xn=$t(ct,Nt(Vr,!0).length===1,Dt,yn);if(!Xn&&yn!==Bt&&yn!==Vt)return;(qt.includes(yn)||[Bt,Vt].includes(yn))&&En.preventDefault();var Dn=function(xr){if(xr){var $r=xr,Wr=xr.querySelector("a");Wr!=null&&Wr.getAttribute("href")&&($r=Wr);var On=gr.get(xr);ln(On),hr(),Qn.current=(0,Be.Z)(function(){Jn.current===On&&$r.focus()})}};if([Bt,Vt].includes(yn)||Xn.sibling||!Or){var nt;!Or||ct==="inline"?nt=Tt.current:nt=Gt(Or);var $n,ar=se(nt,qn);yn===Bt?$n=ar[0]:yn===Vt?$n=ar[ar.length-1]:$n=ve(nt,qn,Or,Xn.offset),Dn($n)}else if(Xn.inlineTrigger)xn(Vr);else if(Xn.offset>0)xn(Vr,!0),hr(),Qn.current=(0,Be.Z)(function(){Zn=ne(pr,Ot);var Hr=Or.getAttribute("aria-controls"),xr=document.getElementById(Hr),$r=ve(xr,Zn.elements);Dn($r)},5);else if(Xn.offset<0){var Cr=Nt(Vr,!0),Tr=Cr[Cr.length-2],Mr=cr.get(Tr);xn(Tr,!1),Dn(Mr)}}Rn==null||Rn(En)}}function Ae(ct){Promise.resolve().then(ct)}var $="__RC_UTIL_PATH_SPLIT__",R=function(ft){return ft.join($)},L=function(ft){return ft.split($)},oe="rc-menu-more";function le(){var ct=u.useState({}),ft=(0,U.Z)(ct,2),Dt=ft[1],Ot=(0,u.useRef)(new Map),Tt=(0,u.useRef)(new Map),Kt=u.useState([]),Nt=(0,U.Z)(Kt,2),ln=Nt[0],xn=Nt[1],Rn=(0,u.useRef)(0),Qn=(0,u.useRef)(!1),Jn=function(){Qn.current||Dt({})},hr=(0,u.useCallback)(function(cr,gr){var tr=R(gr);Tt.current.set(tr,cr),Ot.current.set(cr,tr),Rn.current+=1;var Or=Rn.current;Ae(function(){Or===Rn.current&&Jn()})},[]),En=(0,u.useCallback)(function(cr,gr){var tr=R(gr);Tt.current.delete(tr),Ot.current.delete(cr)},[]),yn=(0,u.useCallback)(function(cr){xn(cr)},[]),pr=(0,u.useCallback)(function(cr,gr){var tr=Ot.current.get(cr)||"",Or=L(tr);return gr&&ln.includes(Or[0])&&Or.unshift(oe),Or},[ln]),Zn=(0,u.useCallback)(function(cr,gr){return cr.some(function(tr){var Or=pr(tr,!0);return Or.includes(gr)})},[pr]),Rr=function(){var gr=(0,ye.Z)(Ot.current.keys());return ln.length&&gr.push(oe),gr},qn=(0,u.useCallback)(function(cr){var gr="".concat(Ot.current.get(cr)).concat($),tr=new Set;return(0,ye.Z)(Tt.current.keys()).forEach(function(Or){Or.startsWith(gr)&&tr.add(Tt.current.get(Or))}),tr},[]);return u.useEffect(function(){return function(){Qn.current=!0}},[]),{registerPath:hr,unregisterPath:En,refreshOverflowKeys:yn,isSubPathKey:Zn,getKeyPath:pr,getKeys:Rr,getSubPathKeys:qn}}function J(ct){var ft=u.useRef(ct);ft.current=ct;var Dt=u.useCallback(function(){for(var Ot,Tt=arguments.length,Kt=new Array(Tt),Nt=0;Nt<Tt;Nt++)Kt[Nt]=arguments[Nt];return(Ot=ft.current)===null||Ot===void 0?void 0:Ot.call.apply(Ot,[ft].concat(Kt))},[]);return ct?Dt:void 0}var De=Math.random().toFixed(5).toString().slice(2),je=0;function ke(ct){var ft=(0,C.Z)(ct,{value:ct}),Dt=(0,U.Z)(ft,2),Ot=Dt[0],Tt=Dt[1];return u.useEffect(function(){je+=1;var Kt="".concat(De,"-").concat(je);Tt("rc-menu-uuid-".concat(Kt))},[]),Ot}var Pe=h(6909),Xe=h(4771),st=h(9427),Ge=h(25440),gt=h(2738),bt=h(8654);function mt(ct,ft,Dt,Ot){var Tt=u.useContext(W),Kt=Tt.activeKey,Nt=Tt.onActive,ln=Tt.onInactive,xn={active:Kt===ct};return ft||(xn.onMouseEnter=function(Rn){Dt==null||Dt({key:ct,domEvent:Rn}),Nt(ct)},xn.onMouseLeave=function(Rn){Ot==null||Ot({key:ct,domEvent:Rn}),ln(ct)}),xn}function zt(ct){var ft=u.useContext(W),Dt=ft.mode,Ot=ft.rtl,Tt=ft.inlineIndent;if(Dt!=="inline")return null;var Kt=ct;return Ot?{paddingRight:Kt*Tt}:{paddingLeft:Kt*Tt}}function Ct(ct){var ft=ct.icon,Dt=ct.props,Ot=ct.children,Tt;return ft===null||ft===!1?null:(typeof ft=="function"?Tt=u.createElement(ft,(0,X.Z)({},Dt)):typeof ft!="boolean"&&(Tt=ft),Tt||Ot||null)}var w=["item"];function A(ct){var ft=ct.item,Dt=(0,H.Z)(ct,w);return Object.defineProperty(Dt,"item",{get:function(){return(0,m.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ft}}),Dt}var vt=["title","attribute","elementRef"],ue=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ne=["active"],bn=function(ct){(0,st.Z)(Dt,ct);var ft=(0,Ge.Z)(Dt);function Dt(){return(0,Pe.Z)(this,Dt),ft.apply(this,arguments)}return(0,Xe.Z)(Dt,[{key:"render",value:function(){var Tt=this.props,Kt=Tt.title,Nt=Tt.attribute,ln=Tt.elementRef,xn=(0,H.Z)(Tt,vt),Rn=(0,gt.Z)(xn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,m.ZP)(!Nt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(a.Z.Item,(0,z.Z)({},Nt,{title:typeof Kt=="string"?Kt:void 0},Rn,{ref:ln}))}}]),Dt}(u.Component),We=u.forwardRef(function(ct,ft){var Dt,Ot=ct.style,Tt=ct.className,Kt=ct.eventKey,Nt=ct.warnKey,ln=ct.disabled,xn=ct.itemIcon,Rn=ct.children,Qn=ct.role,Jn=ct.onMouseEnter,hr=ct.onMouseLeave,En=ct.onClick,yn=ct.onKeyDown,pr=ct.onFocus,Zn=(0,H.Z)(ct,ue),Rr=te(Kt),qn=u.useContext(W),cr=qn.prefixCls,gr=qn.onItemClick,tr=qn.disabled,Or=qn.overflowDisabled,Vr=qn.itemIcon,Xn=qn.selectedKeys,Dn=qn.onActive,nt=u.useContext(ee),$n=nt._internalRenderMenuItem,ar="".concat(cr,"-item"),Cr=u.useRef(),Tr=u.useRef(),Mr=tr||ln,Hr=(0,bt.x1)(ft,Tr),xr=_e(Kt),$r=function(ti){return{key:Kt,keyPath:(0,ye.Z)(xr).reverse(),item:Cr.current,domEvent:ti}},Wr=xn||Vr,On=mt(Kt,Mr,Jn,hr),Fn=On.active,mr=(0,H.Z)(On,Ne),kr=Xn.includes(Kt),qr=zt(xr.length),Un=function(ti){if(!Mr){var vi=$r(ti);En==null||En(A(vi)),gr(vi)}},Ur=function(ti){if(yn==null||yn(ti),ti.which===fe.Z.ENTER){var vi=$r(ti);En==null||En(A(vi)),gr(vi)}},jr=function(ti){Dn(Kt),pr==null||pr(ti)},fi={};ct.role==="option"&&(fi["aria-selected"]=kr);var Li=u.createElement(bn,(0,z.Z)({ref:Cr,elementRef:Hr,role:Qn===null?"none":Qn||"menuitem",tabIndex:ln?null:-1,"data-menu-id":Or&&Rr?null:Rr},Zn,mr,fi,{component:"li","aria-disabled":ln,style:(0,X.Z)((0,X.Z)({},qr),Ot),className:me()(ar,(Dt={},(0,N.Z)(Dt,"".concat(ar,"-active"),Fn),(0,N.Z)(Dt,"".concat(ar,"-selected"),kr),(0,N.Z)(Dt,"".concat(ar,"-disabled"),Mr),Dt),Tt),onClick:Un,onKeyDown:Ur,onFocus:jr}),Rn,u.createElement(Ct,{props:(0,X.Z)((0,X.Z)({},ct),{},{isSelected:kr}),icon:Wr}));return $n&&(Li=$n(Li,ct,{selected:kr})),Li});function rt(ct,ft){var Dt=ct.eventKey,Ot=j(),Tt=_e(Dt);return u.useEffect(function(){if(Ot)return Ot.registerPath(Dt,Tt),function(){Ot.unregisterPath(Dt,Tt)}},[Tt]),Ot?null:u.createElement(We,(0,z.Z)({},ct,{ref:ft}))}var Je=u.forwardRef(rt),Ee=["className","children"],Te=function(ft,Dt){var Ot=ft.className,Tt=ft.children,Kt=(0,H.Z)(ft,Ee),Nt=u.useContext(W),ln=Nt.prefixCls,xn=Nt.mode,Rn=Nt.rtl;return u.createElement("ul",(0,z.Z)({className:me()(ln,Rn&&"".concat(ln,"-rtl"),"".concat(ln,"-sub"),"".concat(ln,"-").concat(xn==="inline"?"inline":"vertical"),Ot),role:"menu"},Kt,{"data-menu-list":!0,ref:Dt}),Tt)},ze=u.forwardRef(Te);ze.displayName="SubMenuList";var qe=ze,ge=h(11592);function Jt(ct,ft){return(0,ge.Z)(ct).map(function(Dt,Ot){if(u.isValidElement(Dt)){var Tt,Kt,Nt=Dt.key,ln=(Tt=(Kt=Dt.props)===null||Kt===void 0?void 0:Kt.eventKey)!==null&&Tt!==void 0?Tt:Nt,xn=ln==null;xn&&(ln="tmp_key-".concat([].concat((0,ye.Z)(ft),[Ot]).join("-")));var Rn={key:ln,eventKey:ln};return u.cloneElement(Dt,Rn)}return Dt})}var He=h(35593),fn={adjustX:1,adjustY:1},An={topLeft:{points:["bl","tl"],overflow:fn},topRight:{points:["br","tr"],overflow:fn},bottomLeft:{points:["tl","bl"],overflow:fn},bottomRight:{points:["tr","br"],overflow:fn},leftTop:{points:["tr","tl"],overflow:fn},leftBottom:{points:["br","bl"],overflow:fn},rightTop:{points:["tl","tr"],overflow:fn},rightBottom:{points:["bl","br"],overflow:fn}},Hn={topLeft:{points:["bl","tl"],overflow:fn},topRight:{points:["br","tr"],overflow:fn},bottomLeft:{points:["tl","bl"],overflow:fn},bottomRight:{points:["tr","br"],overflow:fn},rightTop:{points:["tr","tl"],overflow:fn},rightBottom:{points:["br","bl"],overflow:fn},leftTop:{points:["tl","tr"],overflow:fn},leftBottom:{points:["bl","br"],overflow:fn}},vr=null;function hn(ct,ft,Dt){if(ft)return ft;if(Dt)return Dt[ct]||Dt.other}var pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function et(ct){var ft=ct.prefixCls,Dt=ct.visible,Ot=ct.children,Tt=ct.popup,Kt=ct.popupStyle,Nt=ct.popupClassName,ln=ct.popupOffset,xn=ct.disabled,Rn=ct.mode,Qn=ct.onVisibleChange,Jn=u.useContext(W),hr=Jn.getPopupContainer,En=Jn.rtl,yn=Jn.subMenuOpenDelay,pr=Jn.subMenuCloseDelay,Zn=Jn.builtinPlacements,Rr=Jn.triggerSubMenuAction,qn=Jn.forceSubMenuRender,cr=Jn.rootClassName,gr=Jn.motion,tr=Jn.defaultMotions,Or=u.useState(!1),Vr=(0,U.Z)(Or,2),Xn=Vr[0],Dn=Vr[1],nt=En?(0,X.Z)((0,X.Z)({},Hn),Zn):(0,X.Z)((0,X.Z)({},An),Zn),$n=pn[Rn],ar=hn(Rn,gr,tr),Cr=u.useRef(ar);Rn!=="inline"&&(Cr.current=ar);var Tr=(0,X.Z)((0,X.Z)({},Cr.current),{},{leavedClassName:"".concat(ft,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Mr=u.useRef();return u.useEffect(function(){return Mr.current=(0,Be.Z)(function(){Dn(Dt)}),function(){Be.Z.cancel(Mr.current)}},[Dt]),u.createElement(He.Z,{prefixCls:ft,popupClassName:me()("".concat(ft,"-popup"),(0,N.Z)({},"".concat(ft,"-rtl"),En),Nt,cr),stretch:Rn==="horizontal"?"minWidth":null,getPopupContainer:hr,builtinPlacements:nt,popupPlacement:$n,popupVisible:Xn,popup:Tt,popupStyle:Kt,popupAlign:ln&&{offset:ln},action:xn?[]:[Rr],mouseEnterDelay:yn,mouseLeaveDelay:pr,onPopupVisibleChange:Qn,forceRender:qn,popupMotion:Tr,fresh:!0},Ot)}var Rt=h(77900);function Ft(ct){var ft=ct.id,Dt=ct.open,Ot=ct.keyPath,Tt=ct.children,Kt="inline",Nt=u.useContext(W),ln=Nt.prefixCls,xn=Nt.forceSubMenuRender,Rn=Nt.motion,Qn=Nt.defaultMotions,Jn=Nt.mode,hr=u.useRef(!1);hr.current=Jn===Kt;var En=u.useState(!hr.current),yn=(0,U.Z)(En,2),pr=yn[0],Zn=yn[1],Rr=hr.current?Dt:!1;u.useEffect(function(){hr.current&&Zn(!1)},[Jn]);var qn=(0,X.Z)({},hn(Kt,Rn,Qn));Ot.length>1&&(qn.motionAppear=!1);var cr=qn.onVisibleChanged;return qn.onVisibleChanged=function(gr){return!hr.current&&!gr&&Zn(!0),cr==null?void 0:cr(gr)},pr?null:u.createElement(b,{mode:Kt,locked:!hr.current},u.createElement(Rt.default,(0,z.Z)({visible:Rr},qn,{forceRender:xn,removeOnLeave:!1,leavedClassName:"".concat(ln,"-hidden")}),function(gr){var tr=gr.className,Or=gr.style;return u.createElement(qe,{id:ft,className:tr,style:Or},Tt)}))}var Ue=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Oe=["active"],xt=function(ft){var Dt,Ot=ft.style,Tt=ft.className,Kt=ft.title,Nt=ft.eventKey,ln=ft.warnKey,xn=ft.disabled,Rn=ft.internalPopupClose,Qn=ft.children,Jn=ft.itemIcon,hr=ft.expandIcon,En=ft.popupClassName,yn=ft.popupOffset,pr=ft.popupStyle,Zn=ft.onClick,Rr=ft.onMouseEnter,qn=ft.onMouseLeave,cr=ft.onTitleClick,gr=ft.onTitleMouseEnter,tr=ft.onTitleMouseLeave,Or=(0,H.Z)(ft,Ue),Vr=te(Nt),Xn=u.useContext(W),Dn=Xn.prefixCls,nt=Xn.mode,$n=Xn.openKeys,ar=Xn.disabled,Cr=Xn.overflowDisabled,Tr=Xn.activeKey,Mr=Xn.selectedKeys,Hr=Xn.itemIcon,xr=Xn.expandIcon,$r=Xn.onItemClick,Wr=Xn.onOpenChange,On=Xn.onActive,Fn=u.useContext(ee),mr=Fn._internalRenderSubMenuItem,kr=u.useContext(xe),qr=kr.isSubPathKey,Un=_e(),Ur="".concat(Dn,"-submenu"),jr=ar||xn,fi=u.useRef(),Li=u.useRef(),Ei=Jn!=null?Jn:Hr,ti=hr!=null?hr:xr,vi=$n.includes(Nt),li=!Cr&&vi,Ri=qr(Mr,Nt),Ii=mt(Nt,jr,gr,tr),ji=Ii.active,Di=(0,H.Z)(Ii,Oe),Gi=u.useState(!1),zr=(0,U.Z)(Gi,2),aa=zr[0],ga=zr[1],ua=function(Oi){jr||ga(Oi)},yi=function(Oi){ua(!0),Rr==null||Rr({key:Nt,domEvent:Oi})},ca=function(Oi){ua(!1),qn==null||qn({key:Nt,domEvent:Oi})},wa=u.useMemo(function(){return ji||(nt!=="inline"?aa||qr([Tr],Nt):!1)},[nt,ji,Tr,aa,Nt,qr]),kn=zt(Un.length),Mi=function(Oi){jr||(cr==null||cr({key:Nt,domEvent:Oi}),nt==="inline"&&Wr(Nt,!vi))},na=J(function(bi){Zn==null||Zn(A(bi)),$r(bi)}),sr=function(Oi){nt!=="inline"&&Wr(Nt,Oi)},_r=function(){On(Nt)},or=Vr&&"".concat(Vr,"-popup"),jn=u.createElement("div",(0,z.Z)({role:"menuitem",style:kn,className:"".concat(Ur,"-title"),tabIndex:jr?null:-1,ref:fi,title:typeof Kt=="string"?Kt:null,"data-menu-id":Cr&&Vr?null:Vr,"aria-expanded":li,"aria-haspopup":!0,"aria-controls":or,"aria-disabled":jr,onClick:Mi,onFocus:_r},Di),Kt,u.createElement(Ct,{icon:nt!=="horizontal"?ti:void 0,props:(0,X.Z)((0,X.Z)({},ft),{},{isOpen:li,isSubMenu:!0})},u.createElement("i",{className:"".concat(Ur,"-arrow")}))),Nr=u.useRef(nt);if(nt!=="inline"&&Un.length>1?Nr.current="vertical":Nr.current=nt,!Cr){var Xr=Nr.current;jn=u.createElement(et,{mode:Xr,prefixCls:Ur,visible:!Rn&&li&&nt!=="inline",popupClassName:En,popupOffset:yn,popupStyle:pr,popup:u.createElement(b,{mode:Xr==="horizontal"?"vertical":Xr},u.createElement(qe,{id:or,ref:Li},Qn)),disabled:jr,onVisibleChange:sr},jn)}var Ni=u.createElement(a.Z.Item,(0,z.Z)({role:"none"},Or,{component:"li",style:Ot,className:me()(Ur,"".concat(Ur,"-").concat(nt),Tt,(Dt={},(0,N.Z)(Dt,"".concat(Ur,"-open"),li),(0,N.Z)(Dt,"".concat(Ur,"-active"),wa),(0,N.Z)(Dt,"".concat(Ur,"-selected"),Ri),(0,N.Z)(Dt,"".concat(Ur,"-disabled"),jr),Dt)),onMouseEnter:yi,onMouseLeave:ca}),jn,!Cr&&u.createElement(Ft,{id:or,open:li,keyPath:Un},Qn));return mr&&(Ni=mr(Ni,ft,{selected:Ri,active:wa,open:li,disabled:jr})),u.createElement(b,{onItemClick:na,mode:nt==="horizontal"?"vertical":nt,itemIcon:Ei,expandIcon:ti},Ni)};function St(ct){var ft=ct.eventKey,Dt=ct.children,Ot=_e(ft),Tt=Jt(Dt,Ot),Kt=j();u.useEffect(function(){if(Kt)return Kt.registerPath(ft,Ot),function(){Kt.unregisterPath(ft,Ot)}},[Ot]);var Nt;return Kt?Nt=Tt:Nt=u.createElement(xt,ct,Tt),u.createElement(be.Provider,{value:Ot},Nt)}var en=h(39559),jt=["className","title","eventKey","children"],sn=["children"],Xt=function(ft){var Dt=ft.className,Ot=ft.title,Tt=ft.eventKey,Kt=ft.children,Nt=(0,H.Z)(ft,jt),ln=u.useContext(W),xn=ln.prefixCls,Rn="".concat(xn,"-item-group");return u.createElement("li",(0,z.Z)({role:"presentation"},Nt,{onClick:function(Jn){return Jn.stopPropagation()},className:me()(Rn,Dt)}),u.createElement("div",{role:"presentation",className:"".concat(Rn,"-title"),title:typeof Ot=="string"?Ot:void 0},Ot),u.createElement("ul",{role:"group",className:"".concat(Rn,"-list")},Kt))};function vn(ct){var ft=ct.children,Dt=(0,H.Z)(ct,sn),Ot=_e(Dt.eventKey),Tt=Jt(ft,Ot),Kt=j();return Kt?Tt:u.createElement(Xt,(0,gt.Z)(Dt,["warnKey"]),Tt)}function _n(ct){var ft=ct.className,Dt=ct.style,Ot=u.useContext(W),Tt=Ot.prefixCls,Kt=j();return Kt?null:u.createElement("li",{role:"separator",className:me()("".concat(Tt,"-item-divider"),ft),style:Dt})}var Mt=["label","children","key","type"];function At(ct){return(ct||[]).map(function(ft,Dt){if(ft&&(0,en.Z)(ft)==="object"){var Ot=ft,Tt=Ot.label,Kt=Ot.children,Nt=Ot.key,ln=Ot.type,xn=(0,H.Z)(Ot,Mt),Rn=Nt!=null?Nt:"tmp-".concat(Dt);return Kt||ln==="group"?ln==="group"?u.createElement(vn,(0,z.Z)({key:Rn},xn,{title:Tt}),At(Kt)):u.createElement(St,(0,z.Z)({key:Rn},xn,{title:Tt}),At(Kt)):ln==="divider"?u.createElement(_n,(0,z.Z)({key:Rn},xn)):u.createElement(Je,(0,z.Z)({key:Rn},xn),Tt)}return null}).filter(function(ft){return ft})}function tn(ct,ft,Dt){var Ot=ct;return ft&&(Ot=At(ft)),Jt(Ot,Dt)}var an=["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"],on=[],Tn=u.forwardRef(function(ct,ft){var Dt,Ot,Tt=ct,Kt=Tt.prefixCls,Nt=Kt===void 0?"rc-menu":Kt,ln=Tt.rootClassName,xn=Tt.style,Rn=Tt.className,Qn=Tt.tabIndex,Jn=Qn===void 0?0:Qn,hr=Tt.items,En=Tt.children,yn=Tt.direction,pr=Tt.id,Zn=Tt.mode,Rr=Zn===void 0?"vertical":Zn,qn=Tt.inlineCollapsed,cr=Tt.disabled,gr=Tt.disabledOverflow,tr=Tt.subMenuOpenDelay,Or=tr===void 0?.1:tr,Vr=Tt.subMenuCloseDelay,Xn=Vr===void 0?.1:Vr,Dn=Tt.forceSubMenuRender,nt=Tt.defaultOpenKeys,$n=Tt.openKeys,ar=Tt.activeKey,Cr=Tt.defaultActiveFirst,Tr=Tt.selectable,Mr=Tr===void 0?!0:Tr,Hr=Tt.multiple,xr=Hr===void 0?!1:Hr,$r=Tt.defaultSelectedKeys,Wr=Tt.selectedKeys,On=Tt.onSelect,Fn=Tt.onDeselect,mr=Tt.inlineIndent,kr=mr===void 0?24:mr,qr=Tt.motion,Un=Tt.defaultMotions,Ur=Tt.triggerSubMenuAction,jr=Ur===void 0?"hover":Ur,fi=Tt.builtinPlacements,Li=Tt.itemIcon,Ei=Tt.expandIcon,ti=Tt.overflowedIndicator,vi=ti===void 0?"...":ti,li=Tt.overflowedIndicatorPopupClassName,Ri=Tt.getPopupContainer,Ii=Tt.onClick,ji=Tt.onOpenChange,Di=Tt.onKeyDown,Gi=Tt.openAnimation,zr=Tt.openTransitionName,aa=Tt._internalRenderMenuItem,ga=Tt._internalRenderSubMenuItem,ua=(0,H.Z)(Tt,an),yi=u.useMemo(function(){return tn(En,hr,on)},[En,hr]),ca=u.useState(!1),wa=(0,U.Z)(ca,2),kn=wa[0],Mi=wa[1],na=u.useRef(),sr=ke(pr),_r=yn==="rtl",or=(0,C.Z)(nt,{value:$n,postState:function(Si){return Si||on}}),jn=(0,U.Z)(or,2),Nr=jn[0],Xr=jn[1],Ni=function(Si){var gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Qi(){Xr(Si),ji==null||ji(Si)}gi?(0,x.flushSync)(Qi):Qi()},bi=u.useState(Nr),Oi=(0,U.Z)(bi,2),Bi=Oi[0],va=Oi[1],Ca=u.useRef(!1),Za=u.useMemo(function(){return(Rr==="inline"||Rr==="vertical")&&qn?["vertical",qn]:[Rr,!1]},[Rr,qn]),da=(0,U.Z)(Za,2),fa=da[0],lr=da[1],ir=fa==="inline",Qr=u.useState(fa),zi=(0,U.Z)(Qr,2),ui=zi[0],sa=zi[1],ja=u.useState(lr),Ka=(0,U.Z)(ja,2),ya=Ka[0],as=Ka[1];u.useEffect(function(){sa(fa),as(lr),Ca.current&&(ir?Xr(Bi):Ni(on))},[fa,lr]);var ss=u.useState(0),os=(0,U.Z)(ss,2),ts=os[0],ls=os[1],Aa=ts>=yi.length-1||ui!=="horizontal"||gr;u.useEffect(function(){ir&&va(Nr)},[Nr]),u.useEffect(function(){return Ca.current=!0,function(){Ca.current=!1}},[]);var Xi=le(),us=Xi.registerPath,ns=Xi.unregisterPath,ba=Xi.refreshOverflowKeys,xa=Xi.isSubPathKey,ni=Xi.getKeyPath,Br=Xi.getKeys,ia=Xi.getSubPathKeys,Ui=u.useMemo(function(){return{registerPath:us,unregisterPath:ns}},[us,ns]),Pi=u.useMemo(function(){return{isSubPathKey:xa}},[xa]);u.useEffect(function(){ba(Aa?on:yi.slice(ts+1).map(function(Ti){return Ti.key}))},[ts,Aa]);var oa=(0,C.Z)(ar||Cr&&((Dt=yi[0])===null||Dt===void 0?void 0:Dt.key),{value:ar}),mi=(0,U.Z)(oa,2),Oa=mi[0],la=mi[1],La=J(function(Ti){la(Ti)}),Fa=J(function(){la(void 0)});(0,u.useImperativeHandle)(ft,function(){return{list:na.current,focus:function(Si){var gi,Qi=Br(),qi=ne(Qi,sr),fs=qi.elements,Qa=qi.key2element,hs=qi.element2key,Ls=se(na.current,fs),ps=Oa!=null?Oa:Ls[0]?hs.get(Ls[0]):(gi=yi.find(function(As){return!As.props.disabled}))===null||gi===void 0?void 0:gi.key,ms=Qa.get(ps);if(ps&&ms){var Sn;ms==null||(Sn=ms.focus)===null||Sn===void 0||Sn.call(ms,Si)}}}});var Ci=(0,C.Z)($r||[],{value:Wr,postState:function(Si){return Array.isArray(Si)?Si:Si==null?on:[Si]}}),vs=(0,U.Z)(Ci,2),Ta=vs[0],Ga=vs[1],Ts=function(Si){if(Mr){var gi=Si.key,Qi=Ta.includes(gi),qi;xr?Qi?qi=Ta.filter(function(Qa){return Qa!==gi}):qi=[].concat((0,ye.Z)(Ta),[gi]):qi=[gi],Ga(qi);var fs=(0,X.Z)((0,X.Z)({},Si),{},{selectedKeys:qi});Qi?Fn==null||Fn(fs):On==null||On(fs)}!xr&&Nr.length&&ui!=="inline"&&Ni(on)},Xa=J(function(Ti){Ii==null||Ii(A(Ti)),Ts(Ti)}),cs=J(function(Ti,Si){var gi=Nr.filter(function(qi){return qi!==Ti});if(Si)gi.push(Ti);else if(ui!=="inline"){var Qi=ia(Ti);gi=gi.filter(function(qi){return!Qi.has(qi)})}(0,I.Z)(Nr,gi,!0)||Ni(gi,!0)}),ys=function(Si,gi){var Qi=gi!=null?gi:!Nr.includes(Si);cs(Si,Qi)},ds=Y(ui,Oa,_r,sr,na,Br,ni,la,ys,Di);u.useEffect(function(){Mi(!0)},[]);var Ds=u.useMemo(function(){return{_internalRenderMenuItem:aa,_internalRenderSubMenuItem:ga}},[aa,ga]),Pa=ui!=="horizontal"||gr?yi:yi.map(function(Ti,Si){return u.createElement(b,{key:Ti.key,overflowDisabled:Si>ts},Ti)}),bs=u.createElement(a.Z,(0,z.Z)({id:pr,ref:na,prefixCls:"".concat(Nt,"-overflow"),component:"ul",itemComponent:Je,className:me()(Nt,"".concat(Nt,"-root"),"".concat(Nt,"-").concat(ui),Rn,(Ot={},(0,N.Z)(Ot,"".concat(Nt,"-inline-collapsed"),ya),(0,N.Z)(Ot,"".concat(Nt,"-rtl"),_r),Ot),ln),dir:yn,style:xn,role:"menu",tabIndex:Jn,data:Pa,renderRawItem:function(Si){return Si},renderRawRest:function(Si){var gi=Si.length,Qi=gi?yi.slice(-gi):null;return u.createElement(St,{eventKey:oe,title:vi,disabled:Aa,internalPopupClose:gi===0,popupClassName:li},Qi)},maxCount:ui!=="horizontal"||gr?a.Z.INVALIDATE:a.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Si){ls(Si)},onKeyDown:ds},ua));return u.createElement(ee.Provider,{value:Ds},u.createElement(y.Provider,{value:sr},u.createElement(b,{prefixCls:Nt,rootClassName:ln,mode:ui,openKeys:Nr,rtl:_r,disabled:cr,motion:kn?qr:null,defaultMotions:kn?Un:null,activeKey:Oa,onActive:La,onInactive:Fa,selectedKeys:Ta,inlineIndent:kr,subMenuOpenDelay:Or,subMenuCloseDelay:Xn,forceSubMenuRender:Dn,builtinPlacements:fi,triggerSubMenuAction:jr,getPopupContainer:Ri,itemIcon:Li,expandIcon:Ei,onItemClick:Xa,onOpenChange:cs},u.createElement(xe.Provider,{value:Pi},bs),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(G.Provider,{value:Ui},yi)))))}),er=Tn,Pn=er;Pn.Item=Je,Pn.SubMenu=St,Pn.ItemGroup=vn,Pn.Divider=_n;var Yt=Pn},11780:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return Q}});var z=h(92413),N=h(33708),X=h(33606),ye=h(37061),U=h(59301),H=h(92310),S=h.n(H),me=h(29301),a=h(34280),C=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],I=void 0;function m(v,E){var K=v.prefixCls,fe=v.invalidate,Be=v.item,Ke=v.renderItem,Me=v.responsive,Ye=v.responsiveDisabled,ht=v.registerSize,pt=v.itemKey,at=v.className,Bt=v.style,Vt=v.children,qt=v.display,$t=v.order,Gt=v.component,lt=Gt===void 0?"div":Gt,se=(0,ye.Z)(v,C),ve=Me&&!qt;function ne(L){ht(pt,L)}U.useEffect(function(){return function(){ne(null)}},[]);var Y=Ke&&Be!==I?Ke(Be,{index:$t}):Vt,Ae;fe||(Ae={opacity:ve?0:1,height:ve?0:I,overflowY:ve?"hidden":I,order:Me?$t:I,pointerEvents:ve?"none":I,position:ve?"absolute":I});var $={};ve&&($["aria-hidden"]=!0);var R=U.createElement(lt,(0,z.Z)({className:S()(!fe&&K,at),style:(0,N.Z)((0,N.Z)({},Ae),Bt)},$,se,{ref:E}),Y);return Me&&(R=U.createElement(me.Z,{onResize:function(oe){var le=oe.offsetWidth;ne(le)},disabled:Ye},R)),R}var u=U.forwardRef(m);u.displayName="Item";var x=u,y=h(6089),O=h(4676),te=h(16089);function B(v){if(typeof MessageChannel=="undefined")(0,te.Z)(v);else{var E=new MessageChannel;E.port1.onmessage=function(){return v()},E.port2.postMessage(void 0)}}function M(){var v=U.useRef(null),E=function(fe){v.current||(v.current=[],B(function(){(0,O.unstable_batchedUpdates)(function(){v.current.forEach(function(Be){Be()}),v.current=null})})),v.current.push(fe)};return E}function W(v,E){var K=U.useState(E),fe=(0,X.Z)(K,2),Be=fe[0],Ke=fe[1],Me=(0,y.Z)(function(Ye){v(function(){Ke(Ye)})});return[Be,Me]}var V=U.createContext(null),b=["component"],T=["className"],G=["className"],j=function(E,K){var fe=U.useContext(V);if(!fe){var Be=E.component,Ke=Be===void 0?"div":Be,Me=(0,ye.Z)(E,b);return U.createElement(Ke,(0,z.Z)({},Me,{ref:K}))}var Ye=fe.className,ht=(0,ye.Z)(fe,T),pt=E.className,at=(0,ye.Z)(E,G);return U.createElement(V.Provider,{value:null},U.createElement(x,(0,z.Z)({ref:K,className:S()(Ye,pt)},ht,at)))},be=U.forwardRef(j);be.displayName="RawItem";var _e=be,xe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],de="responsive",ee="invalidate";function Z(v){return"+ ".concat(v.length," ...")}function pe(v,E){var K=v.prefixCls,fe=K===void 0?"rc-overflow":K,Be=v.data,Ke=Be===void 0?[]:Be,Me=v.renderItem,Ye=v.renderRawItem,ht=v.itemKey,pt=v.itemWidth,at=pt===void 0?10:pt,Bt=v.ssr,Vt=v.style,qt=v.className,$t=v.maxCount,Gt=v.renderRest,lt=v.renderRawRest,se=v.suffix,ve=v.component,ne=ve===void 0?"div":ve,Y=v.itemComponent,Ae=v.onVisibleChange,$=(0,ye.Z)(v,xe),R=Bt==="full",L=M(),oe=W(L,null),le=(0,X.Z)(oe,2),J=le[0],De=le[1],je=J||0,ke=W(L,new Map),Pe=(0,X.Z)(ke,2),Xe=Pe[0],st=Pe[1],Ge=W(L,0),gt=(0,X.Z)(Ge,2),bt=gt[0],mt=gt[1],zt=W(L,0),Ct=(0,X.Z)(zt,2),w=Ct[0],A=Ct[1],vt=W(L,0),ue=(0,X.Z)(vt,2),Ne=ue[0],bn=ue[1],We=(0,U.useState)(null),rt=(0,X.Z)(We,2),Je=rt[0],Ee=rt[1],Te=(0,U.useState)(null),ze=(0,X.Z)(Te,2),qe=ze[0],ge=ze[1],Jt=U.useMemo(function(){return qe===null&&R?Number.MAX_SAFE_INTEGER:qe||0},[qe,J]),He=(0,U.useState)(!1),fn=(0,X.Z)(He,2),An=fn[0],Hn=fn[1],vr="".concat(fe,"-item"),hn=Math.max(bt,w),pn=$t===de,et=Ke.length&&pn,Rt=$t===ee,Ft=et||typeof $t=="number"&&Ke.length>$t,Ue=(0,U.useMemo)(function(){var Yt=Ke;return et?J===null&&R?Yt=Ke:Yt=Ke.slice(0,Math.min(Ke.length,je/at)):typeof $t=="number"&&(Yt=Ke.slice(0,$t)),Yt},[Ke,at,J,$t,et]),Oe=(0,U.useMemo)(function(){return et?Ke.slice(Jt+1):Ke.slice(Ue.length)},[Ke,Ue,et,Jt]),xt=(0,U.useCallback)(function(Yt,ct){var ft;return typeof ht=="function"?ht(Yt):(ft=ht&&(Yt==null?void 0:Yt[ht]))!==null&&ft!==void 0?ft:ct},[ht]),St=(0,U.useCallback)(Me||function(Yt){return Yt},[Me]);function en(Yt,ct,ft){qe===Yt&&(ct===void 0||ct===Je)||(ge(Yt),ft||(Hn(Yt<Ke.length-1),Ae==null||Ae(Yt)),ct!==void 0&&Ee(ct))}function jt(Yt,ct){De(ct.clientWidth)}function sn(Yt,ct){st(function(ft){var Dt=new Map(ft);return ct===null?Dt.delete(Yt):Dt.set(Yt,ct),Dt})}function Xt(Yt,ct){A(ct),mt(w)}function vn(Yt,ct){bn(ct)}function _n(Yt){return Xe.get(xt(Ue[Yt],Yt))}(0,a.Z)(function(){if(je&&typeof hn=="number"&&Ue){var Yt=Ne,ct=Ue.length,ft=ct-1;if(!ct){en(0,null);return}for(var Dt=0;Dt<ct;Dt+=1){var Ot=_n(Dt);if(R&&(Ot=Ot||0),Ot===void 0){en(Dt-1,void 0,!0);break}if(Yt+=Ot,ft===0&&Yt<=je||Dt===ft-1&&Yt+_n(ft)<=je){en(ft,null);break}else if(Yt+hn>je){en(Dt-1,Yt-Ot-Ne+w);break}}se&&_n(0)+Ne>je&&Ee(null)}},[je,Xe,w,Ne,xt,Ue]);var Mt=An&&!!Oe.length,At={};Je!==null&&et&&(At={position:"absolute",left:Je,top:0});var tn={prefixCls:vr,responsive:et,component:Y,invalidate:Rt},an=Ye?function(Yt,ct){var ft=xt(Yt,ct);return U.createElement(V.Provider,{key:ft,value:(0,N.Z)((0,N.Z)({},tn),{},{order:ct,item:Yt,itemKey:ft,registerSize:sn,display:ct<=Jt})},Ye(Yt,ct))}:function(Yt,ct){var ft=xt(Yt,ct);return U.createElement(x,(0,z.Z)({},tn,{order:ct,key:ft,item:Yt,renderItem:St,itemKey:ft,registerSize:sn,display:ct<=Jt}))},on={order:Mt?Jt:Number.MAX_SAFE_INTEGER,className:"".concat(vr,"-rest"),registerSize:Xt,display:Mt},Tn=Gt||Z,er=lt?U.createElement(V.Provider,{value:(0,N.Z)((0,N.Z)({},tn),on)},lt(Oe)):U.createElement(x,(0,z.Z)({},tn,on),typeof Tn=="function"?Tn(Oe):Tn),Pn=U.createElement(ne,(0,z.Z)({className:S()(!Rt&&fe,qt),style:Vt,ref:E},$),Ue.map(an),Ft?er:null,se&&U.createElement(x,(0,z.Z)({},tn,{responsive:pn,responsiveDisabled:!et,order:Jt,className:"".concat(vr,"-suffix"),registerSize:vn,display:!0,style:At}),se));return pn?U.createElement(me.Z,{onResize:jt,disabled:!et},Pn):Pn}var P=U.forwardRef(pe);P.displayName="Overflow",P.Item=_e,P.RESPONSIVE=de,P.INVALIDATE=ee;var ie=P,Q=ie},29301:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return ee}});var z=h(92413),N=h(59301),X=h(11592),ye=h(48736),U=h(33708),H=h(39559),S=h(76846),me=h(8654),a=N.createContext(null);function C(Z){var pe=Z.children,P=Z.onBatchResize,ie=N.useRef(0),Q=N.useRef([]),v=N.useContext(a),E=N.useCallback(function(K,fe,Be){ie.current+=1;var Ke=ie.current;Q.current.push({size:K,element:fe,data:Be}),Promise.resolve().then(function(){Ke===ie.current&&(P==null||P(Q.current),Q.current=[])}),v==null||v(K,fe,Be)},[P,v]);return N.createElement(a.Provider,{value:E},pe)}var I=h(76374),m=new Map;function u(Z){Z.forEach(function(pe){var P,ie=pe.target;(P=m.get(ie))===null||P===void 0||P.forEach(function(Q){return Q(ie)})})}var x=new I.Z(u),y=null,O=null;function te(Z,pe){m.has(Z)||(m.set(Z,new Set),x.observe(Z)),m.get(Z).add(pe)}function B(Z,pe){m.has(Z)&&(m.get(Z).delete(pe),m.get(Z).size||(x.unobserve(Z),m.delete(Z)))}var M=h(6909),W=h(4771),V=h(9427),b=h(25440),T=function(Z){(0,V.Z)(P,Z);var pe=(0,b.Z)(P);function P(){return(0,M.Z)(this,P),pe.apply(this,arguments)}return(0,W.Z)(P,[{key:"render",value:function(){return this.props.children}}]),P}(N.Component);function G(Z,pe){var P=Z.children,ie=Z.disabled,Q=N.useRef(null),v=N.useRef(null),E=N.useContext(a),K=typeof P=="function",fe=K?P(Q):P,Be=N.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ke=!K&&N.isValidElement(fe)&&(0,me.Yr)(fe),Me=Ke?(0,me.C4)(fe):null,Ye=(0,me.x1)(Me,Q),ht=function(){var Vt;return(0,S.ZP)(Q.current)||(Q.current&&(0,H.Z)(Q.current)==="object"?(0,S.ZP)((Vt=Q.current)===null||Vt===void 0?void 0:Vt.nativeElement):null)||(0,S.ZP)(v.current)};N.useImperativeHandle(pe,function(){return ht()});var pt=N.useRef(Z);pt.current=Z;var at=N.useCallback(function(Bt){var Vt=pt.current,qt=Vt.onResize,$t=Vt.data,Gt=Bt.getBoundingClientRect(),lt=Gt.width,se=Gt.height,ve=Bt.offsetWidth,ne=Bt.offsetHeight,Y=Math.floor(lt),Ae=Math.floor(se);if(Be.current.width!==Y||Be.current.height!==Ae||Be.current.offsetWidth!==ve||Be.current.offsetHeight!==ne){var $={width:Y,height:Ae,offsetWidth:ve,offsetHeight:ne};Be.current=$;var R=ve===Math.round(lt)?lt:ve,L=ne===Math.round(se)?se:ne,oe=(0,U.Z)((0,U.Z)({},$),{},{offsetWidth:R,offsetHeight:L});E==null||E(oe,Bt,$t),qt&&Promise.resolve().then(function(){qt(oe,Bt)})}},[]);return N.useEffect(function(){var Bt=ht();return Bt&&!ie&&te(Bt,at),function(){return B(Bt,at)}},[Q.current,ie]),N.createElement(T,{ref:v},Ke?N.cloneElement(fe,{ref:Ye}):fe)}var j=N.forwardRef(G),be=j,_e="rc-observer-key";function xe(Z,pe){var P=Z.children,ie=typeof P=="function"?[P]:(0,X.Z)(P);return ie.map(function(Q,v){var E=(Q==null?void 0:Q.key)||"".concat(_e,"-").concat(v);return N.createElement(be,(0,z.Z)({},Z,{key:E,ref:v===0?pe:void 0}),Q)})}var de=N.forwardRef(xe);de.Collection=C;var ee=de},17115:function(Wt,Ze,h){"use strict";h.d(Ze,{ZP:function(){return S}});var z=h(33606),N=h(59301),X=h(47273),ye=0,U=(0,X.Z)();function H(){var me;return U?(me=ye,ye+=1):me="TEST_OR_SSR",me}function S(me){var a=N.useState(),C=(0,z.Z)(a,2),I=C[0],m=C[1];return N.useEffect(function(){m("rc_select_".concat(H()))},[]),me||I}},77861:function(Wt,Ze,h){"use strict";h.d(Ze,{Ac:function(){return De},Xo:function(){return A},Wx:function(){return ue},ZP:function(){return Ft},lk:function(){return V}});var z=h(92413),N=h(26407),X=h(400),ye=h(33708),U=h(33606),H=h(37061),S=h(39559),me=h(18929),a=h(48736),C=h(59301),I=h(92310),m=h.n(I),u=h(34280),x=h(49658),y=h(10228),O=h(8654),te=function(Oe){var xt=Oe.className,St=Oe.customizeIcon,en=Oe.customizeIconProps,jt=Oe.onMouseDown,sn=Oe.onClick,Xt=Oe.children,vn;return typeof St=="function"?vn=St(en):vn=St,C.createElement("span",{className:xt,onMouseDown:function(Mt){Mt.preventDefault(),jt&&jt(Mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:sn,"aria-hidden":!0},vn!==void 0?vn:C.createElement("span",{className:m()(xt.split(/\s+/).map(function(_n){return"".concat(_n,"-icon")}))},Xt))},B=te;function M(Ue,Oe,xt,St,en){var jt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,sn=arguments.length>6?arguments[6]:void 0,Xt=arguments.length>7?arguments[7]:void 0,vn=C.useMemo(function(){if((0,S.Z)(St)==="object")return St.clearIcon;if(en)return en},[St,en]),_n=C.useMemo(function(){return!!(!jt&&St&&(xt.length||sn)&&!(Xt==="combobox"&&sn===""))},[St,jt,xt.length,sn,Xt]);return{allowClear:_n,clearIcon:C.createElement(B,{className:"".concat(Ue,"-clear"),onMouseDown:Oe,customizeIcon:vn},"\xD7")}}var W=C.createContext(null);function V(){return C.useContext(W)}function b(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Oe=C.useState(!1),xt=(0,U.Z)(Oe,2),St=xt[0],en=xt[1],jt=C.useRef(null),sn=function(){window.clearTimeout(jt.current)};C.useEffect(function(){return sn},[]);var Xt=function(_n,Mt){sn(),jt.current=window.setTimeout(function(){en(_n),Mt&&Mt()},Ue)};return[St,Xt,sn]}function T(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Oe=C.useRef(null),xt=C.useRef(null);C.useEffect(function(){return function(){window.clearTimeout(xt.current)}},[]);function St(en){(en||Oe.current===null)&&(Oe.current=en),window.clearTimeout(xt.current),xt.current=window.setTimeout(function(){Oe.current=null},Ue)}return[function(){return Oe.current},St]}function G(Ue,Oe,xt,St){var en=C.useRef(null);en.current={open:Oe,triggerOpen:xt,customizedTrigger:St},C.useEffect(function(){function jt(sn){var Xt;if(!((Xt=en.current)!==null&&Xt!==void 0&&Xt.customizedTrigger)){var vn=sn.target;vn.shadowRoot&&sn.composed&&(vn=sn.composedPath()[0]||vn),en.current.open&&Ue().filter(function(_n){return _n}).every(function(_n){return!_n.contains(vn)&&_n!==vn})&&en.current.triggerOpen(!1)}}return window.addEventListener("mousedown",jt),function(){return window.removeEventListener("mousedown",jt)}},[])}var j=h(26112),be=h(11780),_e=function(Oe,xt){var St,en,jt=Oe.prefixCls,sn=Oe.id,Xt=Oe.inputElement,vn=Oe.disabled,_n=Oe.tabIndex,Mt=Oe.autoFocus,At=Oe.autoComplete,tn=Oe.editable,an=Oe.activeDescendantId,on=Oe.value,Tn=Oe.maxLength,er=Oe.onKeyDown,Pn=Oe.onMouseDown,Yt=Oe.onChange,ct=Oe.onPaste,ft=Oe.onCompositionStart,Dt=Oe.onCompositionEnd,Ot=Oe.open,Tt=Oe.attrs,Kt=Xt||C.createElement("input",null),Nt=Kt,ln=Nt.ref,xn=Nt.props,Rn=xn.onKeyDown,Qn=xn.onChange,Jn=xn.onMouseDown,hr=xn.onCompositionStart,En=xn.onCompositionEnd,yn=xn.style;return(0,a.Kp)(!("maxLength"in Kt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Kt=C.cloneElement(Kt,(0,ye.Z)((0,ye.Z)((0,ye.Z)({type:"search"},xn),{},{id:sn,ref:(0,O.sQ)(xt,ln),disabled:vn,tabIndex:_n,autoComplete:At||"off",autoFocus:Mt,className:m()("".concat(jt,"-selection-search-input"),(St=Kt)===null||St===void 0||(en=St.props)===null||en===void 0?void 0:en.className),role:"combobox","aria-label":"Search","aria-expanded":Ot||!1,"aria-haspopup":"listbox","aria-owns":"".concat(sn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(sn,"_list"),"aria-activedescendant":Ot?an:void 0},Tt),{},{value:tn?on:"",maxLength:Tn,readOnly:!tn,unselectable:tn?null:"on",style:(0,ye.Z)((0,ye.Z)({},yn),{},{opacity:tn?null:0}),onKeyDown:function(Zn){er(Zn),Rn&&Rn(Zn)},onMouseDown:function(Zn){Pn(Zn),Jn&&Jn(Zn)},onChange:function(Zn){Yt(Zn),Qn&&Qn(Zn)},onCompositionStart:function(Zn){ft(Zn),hr&&hr(Zn)},onCompositionEnd:function(Zn){Dt(Zn),En&&En(Zn)},onPaste:ct})),Kt},xe=C.forwardRef(_e);xe.displayName="Input";var de=xe;function ee(Ue){return Array.isArray(Ue)?Ue:Ue!==void 0?[Ue]:[]}var Z=typeof window!="undefined"&&window.document&&window.document.documentElement,pe=Z;function P(Ue){return Ue!=null}function ie(Ue){return!Ue&&Ue!==0}function Q(Ue){return["string","number"].includes((0,S.Z)(Ue))}function v(Ue){var Oe=void 0;return Ue&&(Q(Ue.title)?Oe=Ue.title.toString():Q(Ue.label)&&(Oe=Ue.label.toString())),Oe}function E(Ue,Oe){pe?C.useLayoutEffect(Ue,Oe):C.useEffect(Ue,Oe)}function K(Ue){var Oe;return(Oe=Ue.key)!==null&&Oe!==void 0?Oe:Ue.value}var fe=function(Oe){Oe.preventDefault(),Oe.stopPropagation()},Be=function(Oe){var xt=Oe.id,St=Oe.prefixCls,en=Oe.values,jt=Oe.open,sn=Oe.searchValue,Xt=Oe.autoClearSearchValue,vn=Oe.inputRef,_n=Oe.placeholder,Mt=Oe.disabled,At=Oe.mode,tn=Oe.showSearch,an=Oe.autoFocus,on=Oe.autoComplete,Tn=Oe.activeDescendantId,er=Oe.tabIndex,Pn=Oe.removeIcon,Yt=Oe.maxTagCount,ct=Oe.maxTagTextLength,ft=Oe.maxTagPlaceholder,Dt=ft===void 0?function(Tr){return"+ ".concat(Tr.length," ...")}:ft,Ot=Oe.tagRender,Tt=Oe.onToggleOpen,Kt=Oe.onRemove,Nt=Oe.onInputChange,ln=Oe.onInputPaste,xn=Oe.onInputKeyDown,Rn=Oe.onInputMouseDown,Qn=Oe.onInputCompositionStart,Jn=Oe.onInputCompositionEnd,hr=C.useRef(null),En=(0,C.useState)(0),yn=(0,U.Z)(En,2),pr=yn[0],Zn=yn[1],Rr=(0,C.useState)(!1),qn=(0,U.Z)(Rr,2),cr=qn[0],gr=qn[1],tr="".concat(St,"-selection"),Or=jt||At==="multiple"&&Xt===!1||At==="tags"?sn:"",Vr=At==="tags"||At==="multiple"&&Xt===!1||tn&&(jt||cr);E(function(){Zn(hr.current.scrollWidth)},[Or]);function Xn(Tr,Mr,Hr,xr,$r){return C.createElement("span",{className:m()("".concat(tr,"-item"),(0,X.Z)({},"".concat(tr,"-item-disabled"),Hr)),title:v(Tr)},C.createElement("span",{className:"".concat(tr,"-item-content")},Mr),xr&&C.createElement(B,{className:"".concat(tr,"-item-remove"),onMouseDown:fe,onClick:$r,customizeIcon:Pn},"\xD7"))}function Dn(Tr,Mr,Hr,xr,$r){var Wr=function(Fn){fe(Fn),Tt(!jt)};return C.createElement("span",{onMouseDown:Wr},Ot({label:Mr,value:Tr,disabled:Hr,closable:xr,onClose:$r}))}function nt(Tr){var Mr=Tr.disabled,Hr=Tr.label,xr=Tr.value,$r=!Mt&&!Mr,Wr=Hr;if(typeof ct=="number"&&(typeof Hr=="string"||typeof Hr=="number")){var On=String(Wr);On.length>ct&&(Wr="".concat(On.slice(0,ct),"..."))}var Fn=function(kr){kr&&kr.stopPropagation(),Kt(Tr)};return typeof Ot=="function"?Dn(xr,Wr,Mr,$r,Fn):Xn(Tr,Wr,Mr,$r,Fn)}function $n(Tr){var Mr=typeof Dt=="function"?Dt(Tr):Dt;return Xn({title:Mr},Mr,!1)}var ar=C.createElement("div",{className:"".concat(tr,"-search"),style:{width:pr},onFocus:function(){gr(!0)},onBlur:function(){gr(!1)}},C.createElement(de,{ref:vn,open:jt,prefixCls:St,id:xt,inputElement:null,disabled:Mt,autoFocus:an,autoComplete:on,editable:Vr,activeDescendantId:Tn,value:Or,onKeyDown:xn,onMouseDown:Rn,onChange:Nt,onPaste:ln,onCompositionStart:Qn,onCompositionEnd:Jn,tabIndex:er,attrs:(0,j.Z)(Oe,!0)}),C.createElement("span",{ref:hr,className:"".concat(tr,"-search-mirror"),"aria-hidden":!0},Or,"\xA0")),Cr=C.createElement(be.Z,{prefixCls:"".concat(tr,"-overflow"),data:en,renderItem:nt,renderRest:$n,suffix:ar,itemKey:K,maxCount:Yt});return C.createElement(C.Fragment,null,Cr,!en.length&&!Or&&C.createElement("span",{className:"".concat(tr,"-placeholder")},_n))},Ke=Be,Me=function(Oe){var xt=Oe.inputElement,St=Oe.prefixCls,en=Oe.id,jt=Oe.inputRef,sn=Oe.disabled,Xt=Oe.autoFocus,vn=Oe.autoComplete,_n=Oe.activeDescendantId,Mt=Oe.mode,At=Oe.open,tn=Oe.values,an=Oe.placeholder,on=Oe.tabIndex,Tn=Oe.showSearch,er=Oe.searchValue,Pn=Oe.activeValue,Yt=Oe.maxLength,ct=Oe.onInputKeyDown,ft=Oe.onInputMouseDown,Dt=Oe.onInputChange,Ot=Oe.onInputPaste,Tt=Oe.onInputCompositionStart,Kt=Oe.onInputCompositionEnd,Nt=Oe.title,ln=C.useState(!1),xn=(0,U.Z)(ln,2),Rn=xn[0],Qn=xn[1],Jn=Mt==="combobox",hr=Jn||Tn,En=tn[0],yn=er||"";Jn&&Pn&&!Rn&&(yn=Pn),C.useEffect(function(){Jn&&Qn(!1)},[Jn,Pn]);var pr=Mt!=="combobox"&&!At&&!Tn?!1:!!yn,Zn=Nt===void 0?v(En):Nt,Rr=function(){if(En)return null;var cr=pr?{visibility:"hidden"}:void 0;return C.createElement("span",{className:"".concat(St,"-selection-placeholder"),style:cr},an)};return C.createElement(C.Fragment,null,C.createElement("span",{className:"".concat(St,"-selection-search")},C.createElement(de,{ref:jt,prefixCls:St,id:en,open:At,inputElement:xt,disabled:sn,autoFocus:Xt,autoComplete:vn,editable:hr,activeDescendantId:_n,value:yn,onKeyDown:ct,onMouseDown:ft,onChange:function(cr){Qn(!0),Dt(cr)},onPaste:Ot,onCompositionStart:Tt,onCompositionEnd:Kt,tabIndex:on,attrs:(0,j.Z)(Oe,!0),maxLength:Jn?Yt:void 0})),!Jn&&En?C.createElement("span",{className:"".concat(St,"-selection-item"),title:Zn,style:pr?{visibility:"hidden"}:void 0},En.label):null,Rr())},Ye=Me;function ht(Ue){return![y.Z.ESC,y.Z.SHIFT,y.Z.BACKSPACE,y.Z.TAB,y.Z.WIN_KEY,y.Z.ALT,y.Z.META,y.Z.WIN_KEY_RIGHT,y.Z.CTRL,y.Z.SEMICOLON,y.Z.EQUALS,y.Z.CAPS_LOCK,y.Z.CONTEXT_MENU,y.Z.F1,y.Z.F2,y.Z.F3,y.Z.F4,y.Z.F5,y.Z.F6,y.Z.F7,y.Z.F8,y.Z.F9,y.Z.F10,y.Z.F11,y.Z.F12].includes(Ue)}var pt=function(Oe,xt){var St=(0,C.useRef)(null),en=(0,C.useRef)(!1),jt=Oe.prefixCls,sn=Oe.open,Xt=Oe.mode,vn=Oe.showSearch,_n=Oe.tokenWithEnter,Mt=Oe.autoClearSearchValue,At=Oe.onSearch,tn=Oe.onSearchSubmit,an=Oe.onToggleOpen,on=Oe.onInputKeyDown,Tn=Oe.domRef;C.useImperativeHandle(xt,function(){return{focus:function(){St.current.focus()},blur:function(){St.current.blur()}}});var er=T(0),Pn=(0,U.Z)(er,2),Yt=Pn[0],ct=Pn[1],ft=function(yn){var pr=yn.which;(pr===y.Z.UP||pr===y.Z.DOWN)&&yn.preventDefault(),on&&on(yn),pr===y.Z.ENTER&&Xt==="tags"&&!en.current&&!sn&&(tn==null||tn(yn.target.value)),ht(pr)&&an(!0)},Dt=function(){ct(!0)},Ot=(0,C.useRef)(null),Tt=function(yn){At(yn,!0,en.current)!==!1&&an(!0)},Kt=function(){en.current=!0},Nt=function(yn){en.current=!1,Xt!=="combobox"&&Tt(yn.target.value)},ln=function(yn){var pr=yn.target.value;if(_n&&Ot.current&&/[\r\n]/.test(Ot.current)){var Zn=Ot.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");pr=pr.replace(Zn,Ot.current)}Ot.current=null,Tt(pr)},xn=function(yn){var pr=yn.clipboardData,Zn=pr.getData("text");Ot.current=Zn},Rn=function(yn){var pr=yn.target;if(pr!==St.current){var Zn=document.body.style.msTouchAction!==void 0;Zn?setTimeout(function(){St.current.focus()}):St.current.focus()}},Qn=function(yn){var pr=Yt();yn.target!==St.current&&!pr&&Xt!=="combobox"&&yn.preventDefault(),(Xt!=="combobox"&&(!vn||!pr)||!sn)&&(sn&&Mt!==!1&&At("",!0,!1),an())},Jn={inputRef:St,onInputKeyDown:ft,onInputMouseDown:Dt,onInputChange:ln,onInputPaste:xn,onInputCompositionStart:Kt,onInputCompositionEnd:Nt},hr=Xt==="multiple"||Xt==="tags"?C.createElement(Ke,(0,z.Z)({},Oe,Jn)):C.createElement(Ye,(0,z.Z)({},Oe,Jn));return C.createElement("div",{ref:Tn,className:"".concat(jt,"-selector"),onClick:Rn,onMouseDown:Qn},hr)},at=C.forwardRef(pt);at.displayName="Selector";var Bt=at,Vt=h(35593),qt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$t=function(Oe){var xt=Oe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"}}},Gt=function(Oe,xt){var St=Oe.prefixCls,en=Oe.disabled,jt=Oe.visible,sn=Oe.children,Xt=Oe.popupElement,vn=Oe.animation,_n=Oe.transitionName,Mt=Oe.dropdownStyle,At=Oe.dropdownClassName,tn=Oe.direction,an=tn===void 0?"ltr":tn,on=Oe.placement,Tn=Oe.builtinPlacements,er=Oe.dropdownMatchSelectWidth,Pn=Oe.dropdownRender,Yt=Oe.dropdownAlign,ct=Oe.getPopupContainer,ft=Oe.empty,Dt=Oe.getTriggerDOMNode,Ot=Oe.onPopupVisibleChange,Tt=Oe.onPopupMouseEnter,Kt=(0,H.Z)(Oe,qt),Nt="".concat(St,"-dropdown"),ln=Xt;Pn&&(ln=Pn(Xt));var xn=C.useMemo(function(){return Tn||$t(er)},[Tn,er]),Rn=vn?"".concat(Nt,"-").concat(vn):_n,Qn=typeof er=="number",Jn=C.useMemo(function(){return Qn?null:er===!1?"minWidth":"width"},[er,Qn]),hr=Mt;Qn&&(hr=(0,ye.Z)((0,ye.Z)({},hr),{},{width:er}));var En=C.useRef(null);return C.useImperativeHandle(xt,function(){return{getPopupElement:function(){return En.current}}}),C.createElement(Vt.Z,(0,z.Z)({},Kt,{showAction:Ot?["click"]:[],hideAction:Ot?["click"]:[],popupPlacement:on||(an==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:xn,prefixCls:Nt,popupTransitionName:Rn,popup:C.createElement("div",{ref:En,onMouseEnter:Tt},ln),stretch:Jn,popupAlign:Yt,popupVisible:jt,getPopupContainer:ct,popupClassName:m()(At,(0,X.Z)({},"".concat(Nt,"-empty"),ft)),popupStyle:hr,getTriggerDOMNode:Dt,onPopupVisibleChange:Ot}),sn)},lt=C.forwardRef(Gt);lt.displayName="SelectTrigger";var se=lt,ve=h(34589);function ne(Ue,Oe){var xt=Ue.key,St;return"value"in Ue&&(St=Ue.value),xt!=null?xt:St!==void 0?St:"rc-index-key-".concat(Oe)}function Y(Ue,Oe){var xt=Ue||{},St=xt.label,en=xt.value,jt=xt.options,sn=xt.groupLabel,Xt=St||(Oe?"children":"label");return{label:Xt,value:en||"value",options:jt||"options",groupLabel:sn||Xt}}function Ae(Ue){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xt=Oe.fieldNames,St=Oe.childrenAsData,en=[],jt=Y(xt,!1),sn=jt.label,Xt=jt.value,vn=jt.options,_n=jt.groupLabel;function Mt(At,tn){At.forEach(function(an){if(tn||!(vn in an)){var on=an[Xt];en.push({key:ne(an,en.length),groupOption:tn,data:an,label:an[sn],value:on})}else{var Tn=an[_n];Tn===void 0&&St&&(Tn=an.label),en.push({key:ne(an,en.length),group:!0,data:an,label:Tn}),Mt(an[vn],!0)}})}return Mt(Ue,!1),en}function $(Ue){var Oe=(0,ye.Z)({},Ue);return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,a.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Oe}}),Oe}function R(Ue,Oe){if(!Oe||!Oe.length)return null;var xt=!1;function St(jt,sn){var Xt=(0,ve.Z)(sn),vn=Xt[0],_n=Xt.slice(1);if(!vn)return[jt];var Mt=jt.split(vn);return xt=xt||Mt.length>1,Mt.reduce(function(At,tn){return[].concat((0,N.Z)(At),(0,N.Z)(St(tn,_n)))},[]).filter(function(At){return At})}var en=St(Ue,Oe);return xt?en:null}var L=["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"],oe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function le(Ue){return Ue==="tags"||Ue==="multiple"}var J=C.forwardRef(function(Ue,Oe){var xt,St,en=Ue.id,jt=Ue.prefixCls,sn=Ue.className,Xt=Ue.showSearch,vn=Ue.tagRender,_n=Ue.direction,Mt=Ue.omitDomProps,At=Ue.displayValues,tn=Ue.onDisplayValuesChange,an=Ue.emptyOptions,on=Ue.notFoundContent,Tn=on===void 0?"Not Found":on,er=Ue.onClear,Pn=Ue.mode,Yt=Ue.disabled,ct=Ue.loading,ft=Ue.getInputElement,Dt=Ue.getRawInputElement,Ot=Ue.open,Tt=Ue.defaultOpen,Kt=Ue.onDropdownVisibleChange,Nt=Ue.activeValue,ln=Ue.onActiveValueChange,xn=Ue.activeDescendantId,Rn=Ue.searchValue,Qn=Ue.autoClearSearchValue,Jn=Ue.onSearch,hr=Ue.onSearchSplit,En=Ue.tokenSeparators,yn=Ue.allowClear,pr=Ue.suffixIcon,Zn=Ue.clearIcon,Rr=Ue.OptionList,qn=Ue.animation,cr=Ue.transitionName,gr=Ue.dropdownStyle,tr=Ue.dropdownClassName,Or=Ue.dropdownMatchSelectWidth,Vr=Ue.dropdownRender,Xn=Ue.dropdownAlign,Dn=Ue.placement,nt=Ue.builtinPlacements,$n=Ue.getPopupContainer,ar=Ue.showAction,Cr=ar===void 0?[]:ar,Tr=Ue.onFocus,Mr=Ue.onBlur,Hr=Ue.onKeyUp,xr=Ue.onKeyDown,$r=Ue.onMouseDown,Wr=(0,H.Z)(Ue,L),On=le(Pn),Fn=(Xt!==void 0?Xt:On)||Pn==="combobox",mr=(0,ye.Z)({},Wr);oe.forEach(function(ni){delete mr[ni]}),Mt==null||Mt.forEach(function(ni){delete mr[ni]});var kr=C.useState(!1),qr=(0,U.Z)(kr,2),Un=qr[0],Ur=qr[1];C.useEffect(function(){Ur((0,x.Z)())},[]);var jr=C.useRef(null),fi=C.useRef(null),Li=C.useRef(null),Ei=C.useRef(null),ti=C.useRef(null),vi=b(),li=(0,U.Z)(vi,3),Ri=li[0],Ii=li[1],ji=li[2];C.useImperativeHandle(Oe,function(){var ni,Br;return{focus:(ni=Ei.current)===null||ni===void 0?void 0:ni.focus,blur:(Br=Ei.current)===null||Br===void 0?void 0:Br.blur,scrollTo:function(Ui){var Pi;return(Pi=ti.current)===null||Pi===void 0?void 0:Pi.scrollTo(Ui)}}});var Di=C.useMemo(function(){var ni;if(Pn!=="combobox")return Rn;var Br=(ni=At[0])===null||ni===void 0?void 0:ni.value;return typeof Br=="string"||typeof Br=="number"?String(Br):""},[Rn,Pn,At]),Gi=Pn==="combobox"&&typeof ft=="function"&&ft()||null,zr=typeof Dt=="function"&&Dt(),aa=(0,O.x1)(fi,zr==null||(xt=zr.props)===null||xt===void 0?void 0:xt.ref),ga=C.useState(!1),ua=(0,U.Z)(ga,2),yi=ua[0],ca=ua[1];(0,u.Z)(function(){ca(!0)},[]);var wa=(0,me.Z)(!1,{defaultValue:Tt,value:Ot}),kn=(0,U.Z)(wa,2),Mi=kn[0],na=kn[1],sr=yi?Mi:!1,_r=!Tn&&an;(Yt||_r&&sr&&Pn==="combobox")&&(sr=!1);var or=_r?!1:sr,jn=C.useCallback(function(ni){var Br=ni!==void 0?ni:!sr;Yt||(na(Br),sr!==Br&&(Kt==null||Kt(Br)))},[Yt,sr,na,Kt]),Nr=C.useMemo(function(){return(En||[]).some(function(ni){return[`
`,`\r
`].includes(ni)})},[En]),Xr=function(Br,ia,Ui){var Pi=!0,oa=Br;ln==null||ln(null);var mi=Ui?null:R(Br,En);return Pn!=="combobox"&&mi&&(oa="",hr==null||hr(mi),jn(!1),Pi=!1),Jn&&Di!==oa&&Jn(oa,{source:ia?"typing":"effect"}),Pi},Ni=function(Br){!Br||!Br.trim()||Jn(Br,{source:"submit"})};C.useEffect(function(){!sr&&!On&&Pn!=="combobox"&&Xr("",!1,!1)},[sr]),C.useEffect(function(){Mi&&Yt&&na(!1),Yt&&Ii(!1)},[Yt]);var bi=T(),Oi=(0,U.Z)(bi,2),Bi=Oi[0],va=Oi[1],Ca=function(Br){var ia=Bi(),Ui=Br.which;if(Ui===y.Z.ENTER&&(Pn!=="combobox"&&Br.preventDefault(),sr||jn(!0)),va(!!Di),Ui===y.Z.BACKSPACE&&!ia&&On&&!Di&&At.length){for(var Pi=(0,N.Z)(At),oa=null,mi=Pi.length-1;mi>=0;mi-=1){var Oa=Pi[mi];if(!Oa.disabled){Pi.splice(mi,1),oa=Oa;break}}oa&&tn(Pi,{type:"remove",values:[oa]})}for(var la=arguments.length,La=new Array(la>1?la-1:0),Fa=1;Fa<la;Fa++)La[Fa-1]=arguments[Fa];if(sr&&ti.current){var Ci;(Ci=ti.current).onKeyDown.apply(Ci,[Br].concat(La))}xr==null||xr.apply(void 0,[Br].concat(La))},Za=function(Br){for(var ia=arguments.length,Ui=new Array(ia>1?ia-1:0),Pi=1;Pi<ia;Pi++)Ui[Pi-1]=arguments[Pi];if(sr&&ti.current){var oa;(oa=ti.current).onKeyUp.apply(oa,[Br].concat(Ui))}Hr==null||Hr.apply(void 0,[Br].concat(Ui))},da=function(Br){var ia=At.filter(function(Ui){return Ui!==Br});tn(ia,{type:"remove",values:[Br]})},fa=C.useRef(!1),lr=function(){Ii(!0),Yt||(Tr&&!fa.current&&Tr.apply(void 0,arguments),Cr.includes("focus")&&jn(!0)),fa.current=!0},ir=function(){Ii(!1,function(){fa.current=!1,jn(!1)}),!Yt&&(Di&&(Pn==="tags"?Jn(Di,{source:"submit"}):Pn==="multiple"&&Jn("",{source:"blur"})),Mr&&Mr.apply(void 0,arguments))},Qr=[];C.useEffect(function(){return function(){Qr.forEach(function(ni){return clearTimeout(ni)}),Qr.splice(0,Qr.length)}},[]);var zi=function(Br){var ia,Ui=Br.target,Pi=(ia=Li.current)===null||ia===void 0?void 0:ia.getPopupElement();if(Pi&&Pi.contains(Ui)){var oa=setTimeout(function(){var La=Qr.indexOf(oa);if(La!==-1&&Qr.splice(La,1),ji(),!Un&&!Pi.contains(document.activeElement)){var Fa;(Fa=Ei.current)===null||Fa===void 0||Fa.focus()}});Qr.push(oa)}for(var mi=arguments.length,Oa=new Array(mi>1?mi-1:0),la=1;la<mi;la++)Oa[la-1]=arguments[la];$r==null||$r.apply(void 0,[Br].concat(Oa))},ui=C.useState({}),sa=(0,U.Z)(ui,2),ja=sa[1];function Ka(){ja({})}var ya;zr&&(ya=function(Br){jn(Br)}),G(function(){var ni;return[jr.current,(ni=Li.current)===null||ni===void 0?void 0:ni.getPopupElement()]},or,jn,!!zr);var as=C.useMemo(function(){return(0,ye.Z)((0,ye.Z)({},Ue),{},{notFoundContent:Tn,open:sr,triggerOpen:or,id:en,showSearch:Fn,multiple:On,toggleOpen:jn})},[Ue,Tn,or,sr,en,Fn,On,jn]),ss=!!pr||ct,os;ss&&(os=C.createElement(B,{className:m()("".concat(jt,"-arrow"),(0,X.Z)({},"".concat(jt,"-arrow-loading"),ct)),customizeIcon:pr,customizeIconProps:{loading:ct,searchValue:Di,open:sr,focused:Ri,showSearch:Fn}}));var ts=function(){var Br;er==null||er(),(Br=Ei.current)===null||Br===void 0||Br.focus(),tn([],{type:"clear",values:At}),Xr("",!1,!1)},ls=M(jt,ts,At,yn,Zn,Yt,Di,Pn),Aa=ls.allowClear,Xi=ls.clearIcon,us=C.createElement(Rr,{ref:ti}),ns=m()(jt,sn,(St={},(0,X.Z)(St,"".concat(jt,"-focused"),Ri),(0,X.Z)(St,"".concat(jt,"-multiple"),On),(0,X.Z)(St,"".concat(jt,"-single"),!On),(0,X.Z)(St,"".concat(jt,"-allow-clear"),yn),(0,X.Z)(St,"".concat(jt,"-show-arrow"),ss),(0,X.Z)(St,"".concat(jt,"-disabled"),Yt),(0,X.Z)(St,"".concat(jt,"-loading"),ct),(0,X.Z)(St,"".concat(jt,"-open"),sr),(0,X.Z)(St,"".concat(jt,"-customize-input"),Gi),(0,X.Z)(St,"".concat(jt,"-show-search"),Fn),St)),ba=C.createElement(se,{ref:Li,disabled:Yt,prefixCls:jt,visible:or,popupElement:us,animation:qn,transitionName:cr,dropdownStyle:gr,dropdownClassName:tr,direction:_n,dropdownMatchSelectWidth:Or,dropdownRender:Vr,dropdownAlign:Xn,placement:Dn,builtinPlacements:nt,getPopupContainer:$n,empty:an,getTriggerDOMNode:function(){return fi.current},onPopupVisibleChange:ya,onPopupMouseEnter:Ka},zr?C.cloneElement(zr,{ref:aa}):C.createElement(Bt,(0,z.Z)({},Ue,{domRef:fi,prefixCls:jt,inputElement:Gi,ref:Ei,id:en,showSearch:Fn,autoClearSearchValue:Qn,mode:Pn,activeDescendantId:xn,tagRender:vn,values:At,open:sr,onToggleOpen:jn,activeValue:Nt,searchValue:Di,onSearch:Xr,onSearchSubmit:Ni,onRemove:da,tokenWithEnter:Nr}))),xa;return zr?xa=ba:xa=C.createElement("div",(0,z.Z)({className:ns},mr,{ref:jr,onMouseDown:zi,onKeyDown:Ca,onKeyUp:Za,onFocus:lr,onBlur:ir}),Ri&&!sr&&C.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(At.map(function(ni){var Br=ni.label,ia=ni.value;return["number","string"].includes((0,S.Z)(Br))?Br:ia}).join(", "))),ba,os,Aa&&Xi),C.createElement(W.Provider,{value:as},xa)}),De=J,je=function(Ue,Oe){var xt=C.useRef({values:new Map,options:new Map}),St=C.useMemo(function(){var jt=xt.current,sn=jt.values,Xt=jt.options,vn=Ue.map(function(At){if(At.label===void 0){var tn;return(0,ye.Z)((0,ye.Z)({},At),{},{label:(tn=sn.get(At.value))===null||tn===void 0?void 0:tn.label})}return At}),_n=new Map,Mt=new Map;return vn.forEach(function(At){_n.set(At.value,At),Mt.set(At.value,Oe.get(At.value)||Xt.get(At.value))}),xt.current.values=_n,xt.current.options=Mt,vn},[Ue,Oe]),en=C.useCallback(function(jt){return Oe.get(jt)||xt.current.options.get(jt)},[Oe]);return[St,en]};function ke(Ue,Oe){return ee(Ue).join("").toUpperCase().includes(Oe)}var Pe=function(Ue,Oe,xt,St,en){return C.useMemo(function(){if(!xt||St===!1)return Ue;var jt=Oe.options,sn=Oe.label,Xt=Oe.value,vn=[],_n=typeof St=="function",Mt=xt.toUpperCase(),At=_n?St:function(an,on){return en?ke(on[en],Mt):on[jt]?ke(on[sn!=="children"?sn:"label"],Mt):ke(on[Xt],Mt)},tn=_n?function(an){return $(an)}:function(an){return an};return Ue.forEach(function(an){if(an[jt]){var on=At(xt,tn(an));if(on)vn.push(an);else{var Tn=an[jt].filter(function(er){return At(xt,tn(er))});Tn.length&&vn.push((0,ye.Z)((0,ye.Z)({},an),{},(0,X.Z)({},jt,Tn)))}return}At(xt,tn(an))&&vn.push(an)}),vn},[Ue,St,en,xt,Oe])},Xe=h(17115),st=h(11592),Ge=["children","value"],gt=["children"];function bt(Ue){var Oe=Ue,xt=Oe.key,St=Oe.props,en=St.children,jt=St.value,sn=(0,H.Z)(St,Ge);return(0,ye.Z)({key:xt,value:jt!==void 0?jt:xt,children:en},sn)}function mt(Ue){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,st.Z)(Ue).map(function(xt,St){if(!C.isValidElement(xt)||!xt.type)return null;var en=xt,jt=en.type.isSelectOptGroup,sn=en.key,Xt=en.props,vn=Xt.children,_n=(0,H.Z)(Xt,gt);return Oe||!jt?bt(xt):(0,ye.Z)((0,ye.Z)({key:"__RC_SELECT_GRP__".concat(sn===null?St:sn,"__"),label:sn},_n),{},{options:mt(vn)})}).filter(function(xt){return xt})}function zt(Ue,Oe,xt,St,en){return C.useMemo(function(){var jt=Ue,sn=!Ue;sn&&(jt=mt(Oe));var Xt=new Map,vn=new Map,_n=function(tn,an,on){on&&typeof on=="string"&&tn.set(an[on],an)};function Mt(At){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an=0;an<At.length;an+=1){var on=At[an];!on[xt.options]||tn?(Xt.set(on[xt.value],on),_n(vn,on,xt.label),_n(vn,on,St),_n(vn,on,en)):Mt(on[xt.options],!0)}}return Mt(jt),{options:jt,valueOptions:Xt,labelOptions:vn}},[Ue,Oe,xt,St,en])}function Ct(Ue){var Oe=C.useRef();Oe.current=Ue;var xt=C.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return xt}var w=function(){return null};w.isSelectOptGroup=!0;var A=w,vt=function(){return null};vt.isSelectOption=!0;var ue=vt,Ne=h(80547),bn=h(2738),We=h(57149),rt=C.createContext(null),Je=rt;function Ee(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Te=["disabled","title","children","style","className"];function ze(Ue){return typeof Ue=="string"||typeof Ue=="number"}var qe=function(Oe,xt){var St=V(),en=St.prefixCls,jt=St.id,sn=St.open,Xt=St.multiple,vn=St.mode,_n=St.searchValue,Mt=St.toggleOpen,At=St.notFoundContent,tn=St.onPopupScroll,an=C.useContext(Je),on=an.flattenOptions,Tn=an.onActiveValue,er=an.defaultActiveFirstOption,Pn=an.onSelect,Yt=an.menuItemSelectedIcon,ct=an.rawValues,ft=an.fieldNames,Dt=an.virtual,Ot=an.direction,Tt=an.listHeight,Kt=an.listItemHeight,Nt="".concat(en,"-item"),ln=(0,Ne.Z)(function(){return on},[sn,on],function(Xn,Dn){return Dn[0]&&Xn[1]!==Dn[1]}),xn=C.useRef(null),Rn=function(Dn){Dn.preventDefault()},Qn=function(Dn){xn.current&&xn.current.scrollTo(typeof Dn=="number"?{index:Dn}:Dn)},Jn=function(Dn){for(var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,$n=ln.length,ar=0;ar<$n;ar+=1){var Cr=(Dn+ar*nt+$n)%$n,Tr=ln[Cr],Mr=Tr.group,Hr=Tr.data;if(!Mr&&!Hr.disabled)return Cr}return-1},hr=C.useState(function(){return Jn(0)}),En=(0,U.Z)(hr,2),yn=En[0],pr=En[1],Zn=function(Dn){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;pr(Dn);var $n={source:nt?"keyboard":"mouse"},ar=ln[Dn];if(!ar){Tn(null,-1,$n);return}Tn(ar.value,Dn,$n)};(0,C.useEffect)(function(){Zn(er!==!1?Jn(0):-1)},[ln.length,_n]);var Rr=C.useCallback(function(Xn){return ct.has(Xn)&&vn!=="combobox"},[vn,(0,N.Z)(ct).toString(),ct.size]);(0,C.useEffect)(function(){var Xn=setTimeout(function(){if(!Xt&&sn&&ct.size===1){var nt=Array.from(ct)[0],$n=ln.findIndex(function(ar){var Cr=ar.data;return Cr.value===nt});$n!==-1&&(Zn($n),Qn($n))}});if(sn){var Dn;(Dn=xn.current)===null||Dn===void 0||Dn.scrollTo(void 0)}return function(){return clearTimeout(Xn)}},[sn,_n,on.length]);var qn=function(Dn){Dn!==void 0&&Pn(Dn,{selected:!ct.has(Dn)}),Xt||Mt(!1)};if(C.useImperativeHandle(xt,function(){return{onKeyDown:function(Dn){var nt=Dn.which,$n=Dn.ctrlKey;switch(nt){case y.Z.N:case y.Z.P:case y.Z.UP:case y.Z.DOWN:{var ar=0;if(nt===y.Z.UP?ar=-1:nt===y.Z.DOWN?ar=1:Ee()&&$n&&(nt===y.Z.N?ar=1:nt===y.Z.P&&(ar=-1)),ar!==0){var Cr=Jn(yn+ar,ar);Qn(Cr),Zn(Cr,!0)}break}case y.Z.ENTER:{var Tr=ln[yn];Tr&&!Tr.data.disabled?qn(Tr.value):qn(void 0),sn&&Dn.preventDefault();break}case y.Z.ESC:Mt(!1),sn&&Dn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Dn){Qn(Dn)}}}),ln.length===0)return C.createElement("div",{role:"listbox",id:"".concat(jt,"_list"),className:"".concat(Nt,"-empty"),onMouseDown:Rn},At);var cr=Object.keys(ft).map(function(Xn){return ft[Xn]}),gr=function(Dn){return Dn.label};function tr(Xn,Dn){var nt=Xn.group;return{role:nt?"presentation":"option",id:"".concat(jt,"_list_").concat(Dn)}}var Or=function(Dn){var nt=ln[Dn];if(!nt)return null;var $n=nt.data||{},ar=$n.value,Cr=nt.group,Tr=(0,j.Z)($n,!0),Mr=gr(nt);return nt?C.createElement("div",(0,z.Z)({"aria-label":typeof Mr=="string"&&!Cr?Mr:null},Tr,{key:Dn},tr(nt,Dn),{"aria-selected":Rr(ar)}),ar):null},Vr={role:"listbox",id:"".concat(jt,"_list")};return C.createElement(C.Fragment,null,Dt&&C.createElement("div",(0,z.Z)({},Vr,{style:{height:0,width:0,overflow:"hidden"}}),Or(yn-1),Or(yn),Or(yn+1)),C.createElement(We.Z,{itemKey:"key",ref:xn,data:ln,height:Tt,itemHeight:Kt,fullHeight:!1,onMouseDown:Rn,onScroll:tn,virtual:Dt,direction:Ot,innerProps:Dt?null:Vr},function(Xn,Dn){var nt,$n=Xn.group,ar=Xn.groupOption,Cr=Xn.data,Tr=Xn.label,Mr=Xn.value,Hr=Cr.key;if($n){var xr,$r=(xr=Cr.title)!==null&&xr!==void 0?xr:ze(Tr)?Tr.toString():void 0;return C.createElement("div",{className:m()(Nt,"".concat(Nt,"-group")),title:$r},Tr!==void 0?Tr:Hr)}var Wr=Cr.disabled,On=Cr.title,Fn=Cr.children,mr=Cr.style,kr=Cr.className,qr=(0,H.Z)(Cr,Te),Un=(0,bn.Z)(qr,cr),Ur=Rr(Mr),jr="".concat(Nt,"-option"),fi=m()(Nt,jr,kr,(nt={},(0,X.Z)(nt,"".concat(jr,"-grouped"),ar),(0,X.Z)(nt,"".concat(jr,"-active"),yn===Dn&&!Wr),(0,X.Z)(nt,"".concat(jr,"-disabled"),Wr),(0,X.Z)(nt,"".concat(jr,"-selected"),Ur),nt)),Li=gr(Xn),Ei=!Yt||typeof Yt=="function"||Ur,ti=typeof Li=="number"?Li:Li||Mr,vi=ze(ti)?ti.toString():void 0;return On!==void 0&&(vi=On),C.createElement("div",(0,z.Z)({},(0,j.Z)(Un),Dt?{}:tr(Xn,Dn),{"aria-selected":Ur,className:fi,title:vi,onMouseMove:function(){yn===Dn||Wr||Zn(Dn)},onClick:function(){Wr||qn(Mr)},style:mr}),C.createElement("div",{className:"".concat(jr,"-content")},ti),C.isValidElement(Yt)||Ur,Ei&&C.createElement(B,{className:"".concat(Nt,"-option-state"),customizeIcon:Yt,customizeIconProps:{isSelected:Ur}},Ur?"\u2713":null))}))},ge=C.forwardRef(qe);ge.displayName="OptionList";var Jt=ge;function He(Ue){var Oe=Ue.mode,xt=Ue.options,St=Ue.children,en=Ue.backfill,jt=Ue.allowClear,sn=Ue.placeholder,Xt=Ue.getInputElement,vn=Ue.showSearch,_n=Ue.onSearch,Mt=Ue.defaultOpen,At=Ue.autoFocus,tn=Ue.labelInValue,an=Ue.value,on=Ue.inputValue,Tn=Ue.optionLabelProp,er=isMultiple(Oe),Pn=vn!==void 0?vn:er||Oe==="combobox",Yt=xt||convertChildrenToData(St);if(warning(Oe!=="tags"||Yt.every(function(Ot){return!Ot.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Oe==="tags"||Oe==="combobox"){var ct=Yt.some(function(Ot){return Ot.options?Ot.options.some(function(Tt){return typeof("value"in Tt?Tt.value:Tt.key)=="number"}):typeof("value"in Ot?Ot.value:Ot.key)=="number"});warning(!ct,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Oe!=="combobox"||!Tn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Oe==="combobox"||!en,"`backfill` only works with `combobox` mode."),warning(Oe==="combobox"||!Xt,"`getInputElement` only work with `combobox` mode."),noteOnce(Oe!=="combobox"||!Xt||!jt||!sn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_n&&!Pn&&Oe!=="combobox"&&Oe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Mt||At,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),an!=null){var ft=toArray(an);warning(!tn||ft.every(function(Ot){return _typeof(Ot)==="object"&&("key"in Ot||"value"in Ot)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!er||Array.isArray(an),"`value` should be array when `mode` is `multiple` or `tags`")}if(St){var Dt=null;toNodeArray(St).some(function(Ot){if(!React.isValidElement(Ot)||!Ot.type)return!1;var Tt=Ot,Kt=Tt.type;if(Kt.isSelectOption)return!1;if(Kt.isSelectOptGroup){var Nt=toNodeArray(Ot.props.children).every(function(ln){return!React.isValidElement(ln)||!Ot.type||ln.type.isSelectOption?!0:(Dt=ln.type,!1)});return!Nt}return Dt=Kt,!0}),Dt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Dt.displayName||Dt.name||Dt,"`.")),warning(on===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function fn(Ue,Oe){if(Ue){var xt=function St(en){for(var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn<en.length;sn++){var Xt=en[sn];if(Xt[Oe==null?void 0:Oe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!jt&&Array.isArray(Xt[Oe==null?void 0:Oe.options])&&St(Xt[Oe==null?void 0:Oe.options],!0))break}};xt(Ue)}}var An=null,Hn=["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"],vr=["inputValue"];function hn(Ue){return!Ue||(0,S.Z)(Ue)!=="object"}var pn=C.forwardRef(function(Ue,Oe){var xt=Ue.id,St=Ue.mode,en=Ue.prefixCls,jt=en===void 0?"rc-select":en,sn=Ue.backfill,Xt=Ue.fieldNames,vn=Ue.inputValue,_n=Ue.searchValue,Mt=Ue.onSearch,At=Ue.autoClearSearchValue,tn=At===void 0?!0:At,an=Ue.onSelect,on=Ue.onDeselect,Tn=Ue.dropdownMatchSelectWidth,er=Tn===void 0?!0:Tn,Pn=Ue.filterOption,Yt=Ue.filterSort,ct=Ue.optionFilterProp,ft=Ue.optionLabelProp,Dt=Ue.options,Ot=Ue.children,Tt=Ue.defaultActiveFirstOption,Kt=Ue.menuItemSelectedIcon,Nt=Ue.virtual,ln=Ue.direction,xn=Ue.listHeight,Rn=xn===void 0?200:xn,Qn=Ue.listItemHeight,Jn=Qn===void 0?20:Qn,hr=Ue.value,En=Ue.defaultValue,yn=Ue.labelInValue,pr=Ue.onChange,Zn=(0,H.Z)(Ue,Hn),Rr=(0,Xe.ZP)(xt),qn=le(St),cr=!!(!Dt&&Ot),gr=C.useMemo(function(){return Pn===void 0&&St==="combobox"?!1:Pn},[Pn,St]),tr=C.useMemo(function(){return Y(Xt,cr)},[JSON.stringify(Xt),cr]),Or=(0,me.Z)("",{value:_n!==void 0?_n:vn,postState:function(_r){return _r||""}}),Vr=(0,U.Z)(Or,2),Xn=Vr[0],Dn=Vr[1],nt=zt(Dt,Ot,tr,ct,ft),$n=nt.valueOptions,ar=nt.labelOptions,Cr=nt.options,Tr=C.useCallback(function(sr){var _r=ee(sr);return _r.map(function(or){var jn,Nr,Xr,Ni,bi;if(hn(or))jn=or;else{var Oi;Xr=or.key,Nr=or.label,jn=(Oi=or.value)!==null&&Oi!==void 0?Oi:Xr}var Bi=$n.get(jn);if(Bi){var va;if(Nr===void 0&&(Nr=Bi==null?void 0:Bi[ft||tr.label]),Xr===void 0&&(Xr=(va=Bi==null?void 0:Bi.key)!==null&&va!==void 0?va:jn),Ni=Bi==null?void 0:Bi.disabled,bi=Bi==null?void 0:Bi.title,0)var Ca}return{label:Nr,value:jn,key:Xr,disabled:Ni,title:bi}})},[tr,ft,$n]),Mr=(0,me.Z)(En,{value:hr}),Hr=(0,U.Z)(Mr,2),xr=Hr[0],$r=Hr[1],Wr=C.useMemo(function(){var sr,_r=Tr(xr);return St==="combobox"&&ie((sr=_r[0])===null||sr===void 0?void 0:sr.value)?[]:_r},[xr,Tr,St]),On=je(Wr,$n),Fn=(0,U.Z)(On,2),mr=Fn[0],kr=Fn[1],qr=C.useMemo(function(){if(!St&&mr.length===1){var sr=mr[0];if(sr.value===null&&(sr.label===null||sr.label===void 0))return[]}return mr.map(function(_r){var or;return(0,ye.Z)((0,ye.Z)({},_r),{},{label:(or=_r.label)!==null&&or!==void 0?or:_r.value})})},[St,mr]),Un=C.useMemo(function(){return new Set(mr.map(function(sr){return sr.value}))},[mr]);C.useEffect(function(){if(St==="combobox"){var sr,_r=(sr=mr[0])===null||sr===void 0?void 0:sr.value;Dn(P(_r)?String(_r):"")}},[mr]);var Ur=Ct(function(sr,_r){var or,jn=_r!=null?_r:sr;return or={},(0,X.Z)(or,tr.value,sr),(0,X.Z)(or,tr.label,jn),or}),jr=C.useMemo(function(){if(St!=="tags")return Cr;var sr=(0,N.Z)(Cr),_r=function(jn){return $n.has(jn)};return(0,N.Z)(mr).sort(function(or,jn){return or.value<jn.value?-1:1}).forEach(function(or){var jn=or.value;_r(jn)||sr.push(Ur(jn,or.label))}),sr},[Ur,Cr,$n,mr,St]),fi=Pe(jr,tr,Xn,gr,ct),Li=C.useMemo(function(){return St!=="tags"||!Xn||fi.some(function(sr){return sr[ct||"value"]===Xn})||fi.some(function(sr){return sr[tr.value]===Xn})?fi:[Ur(Xn)].concat((0,N.Z)(fi))},[Ur,ct,St,fi,Xn,tr]),Ei=C.useMemo(function(){return Yt?(0,N.Z)(Li).sort(function(sr,_r){return Yt(sr,_r)}):Li},[Li,Yt]),ti=C.useMemo(function(){return Ae(Ei,{fieldNames:tr,childrenAsData:cr})},[Ei,tr,cr]),vi=function(_r){var or=Tr(_r);if($r(or),pr&&(or.length!==mr.length||or.some(function(Xr,Ni){var bi;return((bi=mr[Ni])===null||bi===void 0?void 0:bi.value)!==(Xr==null?void 0:Xr.value)}))){var jn=yn?or:or.map(function(Xr){return Xr.value}),Nr=or.map(function(Xr){return $(kr(Xr.value))});pr(qn?jn:jn[0],qn?Nr:Nr[0])}},li=C.useState(null),Ri=(0,U.Z)(li,2),Ii=Ri[0],ji=Ri[1],Di=C.useState(0),Gi=(0,U.Z)(Di,2),zr=Gi[0],aa=Gi[1],ga=Tt!==void 0?Tt:St!=="combobox",ua=C.useCallback(function(sr,_r){var or=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jn=or.source,Nr=jn===void 0?"keyboard":jn;aa(_r),sn&&St==="combobox"&&sr!==null&&Nr==="keyboard"&&ji(String(sr))},[sn,St]),yi=function(_r,or,jn){var Nr=function(){var fa,lr=kr(_r);return[yn?{label:lr==null?void 0:lr[tr.label],value:_r,key:(fa=lr==null?void 0:lr.key)!==null&&fa!==void 0?fa:_r}:_r,$(lr)]};if(or&&an){var Xr=Nr(),Ni=(0,U.Z)(Xr,2),bi=Ni[0],Oi=Ni[1];an(bi,Oi)}else if(!or&&on&&jn!=="clear"){var Bi=Nr(),va=(0,U.Z)(Bi,2),Ca=va[0],Za=va[1];on(Ca,Za)}},ca=Ct(function(sr,_r){var or,jn=qn?_r.selected:!0;jn?or=qn?[].concat((0,N.Z)(mr),[sr]):[sr]:or=mr.filter(function(Nr){return Nr.value!==sr}),vi(or),yi(sr,jn),St==="combobox"?ji(""):(!le||tn)&&(Dn(""),ji(""))}),wa=function(_r,or){vi(_r);var jn=or.type,Nr=or.values;(jn==="remove"||jn==="clear")&&Nr.forEach(function(Xr){yi(Xr.value,!1,jn)})},kn=function(_r,or){if(Dn(_r),ji(null),or.source==="submit"){var jn=(_r||"").trim();if(jn){var Nr=Array.from(new Set([].concat((0,N.Z)(Un),[jn])));vi(Nr),yi(jn,!0),Dn("")}return}or.source!=="blur"&&(St==="combobox"&&vi(_r),Mt==null||Mt(_r))},Mi=function(_r){var or=_r;St!=="tags"&&(or=_r.map(function(Nr){var Xr=ar.get(Nr);return Xr==null?void 0:Xr.value}).filter(function(Nr){return Nr!==void 0}));var jn=Array.from(new Set([].concat((0,N.Z)(Un),(0,N.Z)(or))));vi(jn),jn.forEach(function(Nr){yi(Nr,!0)})},na=C.useMemo(function(){var sr=Nt!==!1&&er!==!1;return(0,ye.Z)((0,ye.Z)({},nt),{},{flattenOptions:ti,onActiveValue:ua,defaultActiveFirstOption:ga,onSelect:ca,menuItemSelectedIcon:Kt,rawValues:Un,fieldNames:tr,virtual:sr,direction:ln,listHeight:Rn,listItemHeight:Jn,childrenAsData:cr})},[nt,ti,ua,ga,ca,Kt,Un,tr,Nt,er,Rn,Jn,cr]);return C.createElement(Je.Provider,{value:na},C.createElement(De,(0,z.Z)({},Zn,{id:Rr,prefixCls:jt,ref:Oe,omitDomProps:vr,mode:St,displayValues:qr,onDisplayValuesChange:wa,direction:ln,searchValue:Xn,onSearch:kn,autoClearSearchValue:tn,onSearchSplit:Mi,dropdownMatchSelectWidth:er,OptionList:Jt,emptyOptions:!ti.length,activeValue:Ii,activeDescendantId:"".concat(Rr,"_list_").concat(zr)})))}),et=pn;et.Option=ue,et.OptGroup=A;var Rt=et,Ft=Rt},9296:function(Wt,Ze,h){"use strict";h.r(Ze),h.d(Ze,{ResizableTextArea:function(){return xe},default:function(){return ie}});var z=h(92413),N=h(33708),X=h(400),ye=h(39559),U=h(33606),H=h(37061),S=h(26407),me=h(92310),a=h.n(me),C=h(93681),I=h(5643),m=h(18929),u=h(59301),x=h(29301),y=h(34280),O=h(16089),te=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,B=["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"],M={},W;function V(Q){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=Q.getAttribute("id")||Q.getAttribute("data-reactid")||Q.getAttribute("name");if(v&&M[E])return M[E];var K=window.getComputedStyle(Q),fe=K.getPropertyValue("box-sizing")||K.getPropertyValue("-moz-box-sizing")||K.getPropertyValue("-webkit-box-sizing"),Be=parseFloat(K.getPropertyValue("padding-bottom"))+parseFloat(K.getPropertyValue("padding-top")),Ke=parseFloat(K.getPropertyValue("border-bottom-width"))+parseFloat(K.getPropertyValue("border-top-width")),Me=B.map(function(ht){return"".concat(ht,":").concat(K.getPropertyValue(ht))}).join(";"),Ye={sizingStyle:Me,paddingSize:Be,borderSize:Ke,boxSizing:fe};return v&&E&&(M[E]=Ye),Ye}function b(Q){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;W||(W=document.createElement("textarea"),W.setAttribute("tab-index","-1"),W.setAttribute("aria-hidden","true"),document.body.appendChild(W)),Q.getAttribute("wrap")?W.setAttribute("wrap",Q.getAttribute("wrap")):W.removeAttribute("wrap");var fe=V(Q,v),Be=fe.paddingSize,Ke=fe.borderSize,Me=fe.boxSizing,Ye=fe.sizingStyle;W.setAttribute("style","".concat(Ye,";").concat(te)),W.value=Q.value||Q.placeholder||"";var ht=void 0,pt=void 0,at,Bt=W.scrollHeight;if(Me==="border-box"?Bt+=Ke:Me==="content-box"&&(Bt-=Be),E!==null||K!==null){W.value=" ";var Vt=W.scrollHeight-Be;E!==null&&(ht=Vt*E,Me==="border-box"&&(ht=ht+Be+Ke),Bt=Math.max(ht,Bt)),K!==null&&(pt=Vt*K,Me==="border-box"&&(pt=pt+Be+Ke),at=Bt>pt?"":"hidden",Bt=Math.min(pt,Bt))}var qt={height:Bt,overflowY:at,resize:"none"};return ht&&(qt.minHeight=ht),pt&&(qt.maxHeight=pt),qt}var T=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],G=0,j=1,be=2,_e=u.forwardRef(function(Q,v){var E=Q,K=E.prefixCls,fe=E.onPressEnter,Be=E.defaultValue,Ke=E.value,Me=E.autoSize,Ye=E.onResize,ht=E.className,pt=E.style,at=E.disabled,Bt=E.onChange,Vt=E.onInternalAutoSize,qt=(0,H.Z)(E,T),$t=(0,m.Z)(Be,{value:Ke,postState:function(A){return A!=null?A:""}}),Gt=(0,U.Z)($t,2),lt=Gt[0],se=Gt[1],ve=function(A){se(A.target.value),Bt==null||Bt(A)},ne=u.useRef();u.useImperativeHandle(v,function(){return{textArea:ne.current}});var Y=u.useMemo(function(){return Me&&(0,ye.Z)(Me)==="object"?[Me.minRows,Me.maxRows]:[]},[Me]),Ae=(0,U.Z)(Y,2),$=Ae[0],R=Ae[1],L=!!Me,oe=function(){try{if(document.activeElement===ne.current){var A=ne.current,vt=A.selectionStart,ue=A.selectionEnd,Ne=A.scrollTop;ne.current.setSelectionRange(vt,ue),ne.current.scrollTop=Ne}}catch(bn){}},le=u.useState(be),J=(0,U.Z)(le,2),De=J[0],je=J[1],ke=u.useState(),Pe=(0,U.Z)(ke,2),Xe=Pe[0],st=Pe[1],Ge=function(){je(G)};(0,y.Z)(function(){L&&Ge()},[Ke,$,R,L]),(0,y.Z)(function(){if(De===G)je(j);else if(De===j){var w=b(ne.current,!1,$,R);je(be),st(w)}else oe()},[De]);var gt=u.useRef(),bt=function(){O.Z.cancel(gt.current)},mt=function(A){De===be&&(Ye==null||Ye(A),Me&&(bt(),gt.current=(0,O.Z)(function(){Ge()})))};u.useEffect(function(){return bt},[]);var zt=L?Xe:null,Ct=(0,N.Z)((0,N.Z)({},pt),zt);return(De===G||De===j)&&(Ct.overflowY="hidden",Ct.overflowX="hidden"),u.createElement(x.Z,{onResize:mt,disabled:!(Me||Ye)},u.createElement("textarea",(0,z.Z)({},qt,{ref:ne,style:Ct,className:a()(K,ht,(0,X.Z)({},"".concat(K,"-disabled"),at)),disabled:at,value:lt,onChange:ve})))}),xe=_e,de=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ee(Q,v){return(0,S.Z)(Q||"").slice(0,v).join("")}function Z(Q,v,E,K){var fe=E;return Q?fe=ee(E,K):(0,S.Z)(v||"").length<E.length&&(0,S.Z)(E||"").length>K&&(fe=v),fe}var pe=u.forwardRef(function(Q,v){var E,K=Q.defaultValue,fe=Q.value,Be=Q.onFocus,Ke=Q.onBlur,Me=Q.onChange,Ye=Q.allowClear,ht=Q.maxLength,pt=Q.onCompositionStart,at=Q.onCompositionEnd,Bt=Q.suffix,Vt=Q.prefixCls,qt=Vt===void 0?"rc-textarea":Vt,$t=Q.classes,Gt=Q.showCount,lt=Q.className,se=Q.style,ve=Q.disabled,ne=Q.hidden,Y=Q.classNames,Ae=Q.styles,$=Q.onResize,R=(0,H.Z)(Q,de),L=(0,m.Z)(K,{value:fe,defaultValue:K}),oe=(0,U.Z)(L,2),le=oe[0],J=oe[1],De=(0,u.useRef)(null),je=u.useState(!1),ke=(0,U.Z)(je,2),Pe=ke[0],Xe=ke[1],st=u.useState(!1),Ge=(0,U.Z)(st,2),gt=Ge[0],bt=Ge[1],mt=u.useRef(),zt=u.useRef(0),Ct=u.useState(null),w=(0,U.Z)(Ct,2),A=w[0],vt=w[1],ue=function(){var hn;(hn=De.current)===null||hn===void 0||hn.textArea.focus()};(0,u.useImperativeHandle)(v,function(){return{resizableTextArea:De.current,focus:ue,blur:function(){var hn;(hn=De.current)===null||hn===void 0||hn.textArea.blur()}}}),(0,u.useEffect)(function(){Xe(function(vr){return!ve&&vr})},[ve]);var Ne=Number(ht)>0,bn=function(hn){bt(!0),mt.current=le,zt.current=hn.currentTarget.selectionStart,pt==null||pt(hn)},We=function(hn){bt(!1);var pn=hn.currentTarget.value;if(Ne){var et,Rt=zt.current>=ht+1||zt.current===((et=mt.current)===null||et===void 0?void 0:et.length);pn=Z(Rt,mt.current,pn,ht)}pn!==le&&(J(pn),(0,I.rJ)(hn.currentTarget,hn,Me,pn)),at==null||at(hn)},rt=function(hn){var pn=hn.target.value;if(!gt&&Ne){var et=hn.target.selectionStart>=ht+1||hn.target.selectionStart===pn.length||!hn.target.selectionStart;pn=Z(et,le,pn,ht)}J(pn),(0,I.rJ)(hn.currentTarget,hn,Me,pn)},Je=function(hn){var pn=R.onPressEnter,et=R.onKeyDown;hn.key==="Enter"&&pn&&pn(hn),et==null||et(hn)},Ee=function(hn){Xe(!0),Be==null||Be(hn)},Te=function(hn){Xe(!1),Ke==null||Ke(hn)},ze=function(hn){var pn;J(""),ue(),(0,I.rJ)((pn=De.current)===null||pn===void 0?void 0:pn.textArea,hn,Me)},qe=(0,I.D7)(le);!gt&&Ne&&fe==null&&(qe=ee(qe,ht));var ge=Bt,Jt;if(Gt){var He=(0,S.Z)(qe).length;(0,ye.Z)(Gt)==="object"?Jt=Gt.formatter({value:qe,count:He,maxLength:ht}):Jt="".concat(He).concat(Ne?" / ".concat(ht):""),ge=u.createElement(u.Fragment,null,ge,u.createElement("span",{className:a()("".concat(qt,"-data-count"),Y==null?void 0:Y.count),style:Ae==null?void 0:Ae.count},Jt))}var fn=function(hn){var pn;$==null||$(hn),(pn=De.current)!==null&&pn!==void 0&&pn.textArea.style.height&&vt(!0)},An=!R.autoSize&&!Gt&&!Ye,Hn=u.createElement(C.BaseInput,{value:qe,allowClear:Ye,handleReset:ze,suffix:ge,prefixCls:qt,classes:{affixWrapper:a()($t==null?void 0:$t.affixWrapper,(E={},(0,X.Z)(E,"".concat(qt,"-show-count"),Gt),(0,X.Z)(E,"".concat(qt,"-textarea-allow-clear"),Ye),E))},disabled:ve,focused:Pe,className:lt,style:(0,N.Z)((0,N.Z)({},se),A&&!An?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Jt=="string"?Jt:void 0}},hidden:ne,inputElement:u.createElement(xe,(0,z.Z)({},R,{onKeyDown:Je,onChange:rt,onFocus:Ee,onBlur:Te,onCompositionStart:bn,onCompositionEnd:We,className:Y==null?void 0:Y.textarea,style:(0,N.Z)((0,N.Z)({},Ae==null?void 0:Ae.textarea),{},{resize:se==null?void 0:se.resize}),disabled:ve,prefixCls:qt,onResize:fn,ref:De}))});return Hn}),P=pe,ie=P},55477:function(Wt,Ze,h){"use strict";h.d(Ze,{G:function(){return u},Z:function(){return te}});var z=h(92413),N=h(33708),X=h(37061),ye=h(35593),U=h(59301),H={shiftX:64,adjustY:1},S={adjustX:1,shiftY:!0},me=[0,0],a={left:{points:["cr","cl"],overflow:S,offset:[-4,0],targetOffset:me},right:{points:["cl","cr"],overflow:S,offset:[4,0],targetOffset:me},top:{points:["bc","tc"],overflow:H,offset:[0,-4],targetOffset:me},bottom:{points:["tc","bc"],overflow:H,offset:[0,4],targetOffset:me},topLeft:{points:["bl","tl"],overflow:H,offset:[0,-4],targetOffset:me},leftTop:{points:["tr","tl"],overflow:S,offset:[-4,0],targetOffset:me},topRight:{points:["br","tr"],overflow:H,offset:[0,-4],targetOffset:me},rightTop:{points:["tl","tr"],overflow:S,offset:[4,0],targetOffset:me},bottomRight:{points:["tr","br"],overflow:H,offset:[0,4],targetOffset:me},rightBottom:{points:["bl","br"],overflow:S,offset:[4,0],targetOffset:me},bottomLeft:{points:["tl","bl"],overflow:H,offset:[0,4],targetOffset:me},leftBottom:{points:["br","bl"],overflow:S,offset:[-4,0],targetOffset:me}},C=null,I=h(92310),m=h.n(I);function u(B){var M=B.children,W=B.prefixCls,V=B.id,b=B.overlayInnerStyle,T=B.className,G=B.style;return U.createElement("div",{className:m()("".concat(W,"-content"),T),style:G},U.createElement("div",{className:"".concat(W,"-inner"),id:V,role:"tooltip",style:b},typeof M=="function"?M():M))}var x=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],y=function(M,W){var V=M.overlayClassName,b=M.trigger,T=b===void 0?["hover"]:b,G=M.mouseEnterDelay,j=G===void 0?0:G,be=M.mouseLeaveDelay,_e=be===void 0?.1:be,xe=M.overlayStyle,de=M.prefixCls,ee=de===void 0?"rc-tooltip":de,Z=M.children,pe=M.onVisibleChange,P=M.afterVisibleChange,ie=M.transitionName,Q=M.animation,v=M.motion,E=M.placement,K=E===void 0?"right":E,fe=M.align,Be=fe===void 0?{}:fe,Ke=M.destroyTooltipOnHide,Me=Ke===void 0?!1:Ke,Ye=M.defaultVisible,ht=M.getTooltipContainer,pt=M.overlayInnerStyle,at=M.arrowContent,Bt=M.overlay,Vt=M.id,qt=M.showArrow,$t=qt===void 0?!0:qt,Gt=(0,X.Z)(M,x),lt=(0,U.useRef)(null);(0,U.useImperativeHandle)(W,function(){return lt.current});var se=(0,N.Z)({},Gt);"visible"in M&&(se.popupVisible=M.visible);var ve=function(){return U.createElement(u,{key:"content",prefixCls:ee,id:Vt,overlayInnerStyle:pt},Bt)};return U.createElement(ye.Z,(0,z.Z)({popupClassName:V,prefixCls:ee,popup:ve,action:T,builtinPlacements:a,popupPlacement:K,ref:lt,popupAlign:Be,getPopupContainer:ht,onPopupVisibleChange:pe,afterPopupVisibleChange:P,popupTransitionName:ie,popupAnimation:Q,popupMotion:v,defaultPopupVisible:Ye,autoDestroy:Me,mouseLeaveDelay:_e,popupStyle:xe,mouseEnterDelay:j,arrow:$t},se),Z)},O=(0,U.forwardRef)(y),te=O},39417:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return j}});var z=h(92413),N=h(400),X=h(37061),ye=h(33708),U=h(6909),H=h(4771),S=h(25314),me=h(9427),a=h(25440),C=h(92310),I=h.n(C),m=h(26112),u=h(59301),x=h(39378),y=function(_e){for(var xe=_e.prefixCls,de=_e.level,ee=_e.isStart,Z=_e.isEnd,pe="".concat(xe,"-indent-unit"),P=[],ie=0;ie<de;ie+=1){var Q;P.push(u.createElement("span",{key:ie,className:I()(pe,(Q={},(0,N.Z)(Q,"".concat(pe,"-start"),ee[ie]),(0,N.Z)(Q,"".concat(pe,"-end"),Z[ie]),Q))}))}return u.createElement("span",{"aria-hidden":"true",className:"".concat(xe,"-indent")},P)},O=u.memo(y),te=h(67841),B=h(71430),M=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",V="close",b="---",T=function(be){(0,me.Z)(xe,be);var _e=(0,a.Z)(xe);function xe(){var de;(0,U.Z)(this,xe);for(var ee=arguments.length,Z=new Array(ee),pe=0;pe<ee;pe++)Z[pe]=arguments[pe];return de=_e.call.apply(_e,[this].concat(Z)),de.state={dragNodeHighlight:!1},de.selectHandle=void 0,de.cacheIndent=void 0,de.onSelectorClick=function(P){var ie=de.props.context.onNodeClick;ie(P,(0,B.F)(de.props)),de.isSelectable()?de.onSelect(P):de.onCheck(P)},de.onSelectorDoubleClick=function(P){var ie=de.props.context.onNodeDoubleClick;ie(P,(0,B.F)(de.props))},de.onSelect=function(P){if(!de.isDisabled()){var ie=de.props.context.onNodeSelect;ie(P,(0,B.F)(de.props))}},de.onCheck=function(P){if(!de.isDisabled()){var ie=de.props,Q=ie.disableCheckbox,v=ie.checked,E=de.props.context.onNodeCheck;if(!(!de.isCheckable()||Q)){var K=!v;E(P,(0,B.F)(de.props),K)}}},de.onMouseEnter=function(P){var ie=de.props.context.onNodeMouseEnter;ie(P,(0,B.F)(de.props))},de.onMouseLeave=function(P){var ie=de.props.context.onNodeMouseLeave;ie(P,(0,B.F)(de.props))},de.onContextMenu=function(P){var ie=de.props.context.onNodeContextMenu;ie(P,(0,B.F)(de.props))},de.onDragStart=function(P){var ie=de.props.context.onNodeDragStart;P.stopPropagation(),de.setState({dragNodeHighlight:!0}),ie(P,(0,S.Z)(de));try{P.dataTransfer.setData("text/plain","")}catch(Q){}},de.onDragEnter=function(P){var ie=de.props.context.onNodeDragEnter;P.preventDefault(),P.stopPropagation(),ie(P,(0,S.Z)(de))},de.onDragOver=function(P){var ie=de.props.context.onNodeDragOver;P.preventDefault(),P.stopPropagation(),ie(P,(0,S.Z)(de))},de.onDragLeave=function(P){var ie=de.props.context.onNodeDragLeave;P.stopPropagation(),ie(P,(0,S.Z)(de))},de.onDragEnd=function(P){var ie=de.props.context.onNodeDragEnd;P.stopPropagation(),de.setState({dragNodeHighlight:!1}),ie(P,(0,S.Z)(de))},de.onDrop=function(P){var ie=de.props.context.onNodeDrop;P.preventDefault(),P.stopPropagation(),de.setState({dragNodeHighlight:!1}),ie(P,(0,S.Z)(de))},de.onExpand=function(P){var ie=de.props,Q=ie.loading,v=ie.context.onNodeExpand;Q||v(P,(0,B.F)(de.props))},de.setSelectHandle=function(P){de.selectHandle=P},de.getNodeState=function(){var P=de.props.expanded;return de.isLeaf()?null:P?W:V},de.hasChildren=function(){var P=de.props.eventKey,ie=de.props.context.keyEntities,Q=(0,te.Z)(ie,P)||{},v=Q.children;return!!(v||[]).length},de.isLeaf=function(){var P=de.props,ie=P.isLeaf,Q=P.loaded,v=de.props.context.loadData,E=de.hasChildren();return ie===!1?!1:ie||!v&&!E||v&&Q&&!E},de.isDisabled=function(){var P=de.props.disabled,ie=de.props.context.disabled;return!!(ie||P)},de.isCheckable=function(){var P=de.props.checkable,ie=de.props.context.checkable;return!ie||P===!1?!1:ie},de.syncLoadData=function(P){var ie=P.expanded,Q=P.loading,v=P.loaded,E=de.props.context,K=E.loadData,fe=E.onNodeLoad;Q||K&&ie&&!de.isLeaf()&&!de.hasChildren()&&!v&&fe((0,B.F)(de.props))},de.isDraggable=function(){var P=de.props,ie=P.data,Q=P.context.draggable;return!!(Q&&(!Q.nodeDraggable||Q.nodeDraggable(ie)))},de.renderDragHandler=function(){var P=de.props.context,ie=P.draggable,Q=P.prefixCls;return ie!=null&&ie.icon?u.createElement("span",{className:"".concat(Q,"-draggable-icon")},ie.icon):null},de.renderSwitcherIconDom=function(P){var ie=de.props.switcherIcon,Q=de.props.context.switcherIcon,v=ie||Q;return typeof v=="function"?v((0,ye.Z)((0,ye.Z)({},de.props),{},{isLeaf:P})):v},de.renderSwitcher=function(){var P=de.props.expanded,ie=de.props.context.prefixCls;if(de.isLeaf()){var Q=de.renderSwitcherIconDom(!0);return Q!==!1?u.createElement("span",{className:I()("".concat(ie,"-switcher"),"".concat(ie,"-switcher-noop"))},Q):null}var v=I()("".concat(ie,"-switcher"),"".concat(ie,"-switcher_").concat(P?W:V)),E=de.renderSwitcherIconDom(!1);return E!==!1?u.createElement("span",{onClick:de.onExpand,className:v},E):null},de.renderCheckbox=function(){var P=de.props,ie=P.checked,Q=P.halfChecked,v=P.disableCheckbox,E=de.props.context.prefixCls,K=de.isDisabled(),fe=de.isCheckable();if(!fe)return null;var Be=typeof fe!="boolean"?fe:null;return u.createElement("span",{className:I()("".concat(E,"-checkbox"),ie&&"".concat(E,"-checkbox-checked"),!ie&&Q&&"".concat(E,"-checkbox-indeterminate"),(K||v)&&"".concat(E,"-checkbox-disabled")),onClick:de.onCheck},Be)},de.renderIcon=function(){var P=de.props.loading,ie=de.props.context.prefixCls;return u.createElement("span",{className:I()("".concat(ie,"-iconEle"),"".concat(ie,"-icon__").concat(de.getNodeState()||"docu"),P&&"".concat(ie,"-icon_loading"))})},de.renderSelector=function(){var P=de.state.dragNodeHighlight,ie=de.props,Q=ie.title,v=Q===void 0?b:Q,E=ie.selected,K=ie.icon,fe=ie.loading,Be=ie.data,Ke=de.props.context,Me=Ke.prefixCls,Ye=Ke.showIcon,ht=Ke.icon,pt=Ke.loadData,at=Ke.titleRender,Bt=de.isDisabled(),Vt="".concat(Me,"-node-content-wrapper"),qt;if(Ye){var $t=K||ht;qt=$t?u.createElement("span",{className:I()("".concat(Me,"-iconEle"),"".concat(Me,"-icon__customize"))},typeof $t=="function"?$t(de.props):$t):de.renderIcon()}else pt&&fe&&(qt=de.renderIcon());var Gt;typeof v=="function"?Gt=v(Be):at?Gt=at(Be):Gt=v;var lt=u.createElement("span",{className:"".concat(Me,"-title")},Gt);return u.createElement("span",{ref:de.setSelectHandle,title:typeof v=="string"?v:"",className:I()("".concat(Vt),"".concat(Vt,"-").concat(de.getNodeState()||"normal"),!Bt&&(E||P)&&"".concat(Me,"-node-selected")),onMouseEnter:de.onMouseEnter,onMouseLeave:de.onMouseLeave,onContextMenu:de.onContextMenu,onClick:de.onSelectorClick,onDoubleClick:de.onSelectorDoubleClick},qt,lt,de.renderDropIndicator())},de.renderDropIndicator=function(){var P=de.props,ie=P.disabled,Q=P.eventKey,v=de.props.context,E=v.draggable,K=v.dropLevelOffset,fe=v.dropPosition,Be=v.prefixCls,Ke=v.indent,Me=v.dropIndicatorRender,Ye=v.dragOverNodeKey,ht=v.direction,pt=!!E,at=!ie&&pt&&Ye===Q,Bt=Ke!=null?Ke:de.cacheIndent;return de.cacheIndent=Ke,at?Me({dropPosition:fe,dropLevelOffset:K,indent:Bt,prefixCls:Be,direction:ht}):null},de}return(0,H.Z)(xe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ee=this.props.selectable,Z=this.props.context.selectable;return typeof ee=="boolean"?ee:Z}},{key:"render",value:function(){var ee,Z=this.props,pe=Z.eventKey,P=Z.className,ie=Z.style,Q=Z.dragOver,v=Z.dragOverGapTop,E=Z.dragOverGapBottom,K=Z.isLeaf,fe=Z.isStart,Be=Z.isEnd,Ke=Z.expanded,Me=Z.selected,Ye=Z.checked,ht=Z.halfChecked,pt=Z.loading,at=Z.domRef,Bt=Z.active,Vt=Z.data,qt=Z.onMouseMove,$t=Z.selectable,Gt=(0,X.Z)(Z,M),lt=this.props.context,se=lt.prefixCls,ve=lt.filterTreeNode,ne=lt.keyEntities,Y=lt.dropContainerKey,Ae=lt.dropTargetKey,$=lt.draggingNodeKey,R=this.isDisabled(),L=(0,m.Z)(Gt,{aria:!0,data:!0}),oe=(0,te.Z)(ne,pe)||{},le=oe.level,J=Be[Be.length-1],De=this.isDraggable(),je=!R&&De,ke=$===pe,Pe=$t!==void 0?{"aria-selected":!!$t}:void 0;return u.createElement("div",(0,z.Z)({ref:at,className:I()(P,"".concat(se,"-treenode"),(ee={},(0,N.Z)(ee,"".concat(se,"-treenode-disabled"),R),(0,N.Z)(ee,"".concat(se,"-treenode-switcher-").concat(Ke?"open":"close"),!K),(0,N.Z)(ee,"".concat(se,"-treenode-checkbox-checked"),Ye),(0,N.Z)(ee,"".concat(se,"-treenode-checkbox-indeterminate"),ht),(0,N.Z)(ee,"".concat(se,"-treenode-selected"),Me),(0,N.Z)(ee,"".concat(se,"-treenode-loading"),pt),(0,N.Z)(ee,"".concat(se,"-treenode-active"),Bt),(0,N.Z)(ee,"".concat(se,"-treenode-leaf-last"),J),(0,N.Z)(ee,"".concat(se,"-treenode-draggable"),De),(0,N.Z)(ee,"dragging",ke),(0,N.Z)(ee,"drop-target",Ae===pe),(0,N.Z)(ee,"drop-container",Y===pe),(0,N.Z)(ee,"drag-over",!R&&Q),(0,N.Z)(ee,"drag-over-gap-top",!R&&v),(0,N.Z)(ee,"drag-over-gap-bottom",!R&&E),(0,N.Z)(ee,"filter-node",ve&&ve((0,B.F)(this.props))),ee)),style:ie,draggable:je,"aria-grabbed":ke,onDragStart:je?this.onDragStart:void 0,onDragEnter:De?this.onDragEnter:void 0,onDragOver:De?this.onDragOver:void 0,onDragLeave:De?this.onDragLeave:void 0,onDrop:De?this.onDrop:void 0,onDragEnd:De?this.onDragEnd:void 0,onMouseMove:qt},Pe,L),u.createElement(O,{prefixCls:se,level:le,isStart:fe,isEnd:Be}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),xe}(u.Component),G=function(_e){return u.createElement(x.k.Consumer,null,function(xe){return u.createElement(T,(0,z.Z)({},_e,{context:xe}))})};G.displayName="TreeNode",G.isTreeNode=1;var j=G},39378:function(Wt,Ze,h){"use strict";h.d(Ze,{k:function(){return N}});var z=h(59301),N=z.createContext(null)},23130:function(Wt,Ze,h){"use strict";h.d(Ze,{O:function(){return j.Z},Z:function(){return lt}});var z=h(92413),N=h(400),X=h(39559),ye=h(33708),U=h(26407),H=h(6909),S=h(4771),me=h(25314),a=h(9427),C=h(25440),I=h(92310),m=h.n(I),u=h(10228),x=h(26112),y=h(48736),O=h(59301),te=h(39378);function B(se){var ve=se.dropPosition,ne=se.dropLevelOffset,Y=se.indent,Ae={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ve){case-1:Ae.top=0,Ae.left=-ne*Y;break;case 1:Ae.bottom=0,Ae.left=-ne*Y;break;case 0:Ae.bottom=0,Ae.left=Y;break}return O.createElement("div",{style:Ae})}function M(se){if(se==null)throw new TypeError("Cannot destructure "+se)}var W=h(33606),V=h(37061),b=h(34280),T=h(57149),G=h(77900),j=h(39417);function be(se,ve){var ne=O.useState(!1),Y=(0,W.Z)(ne,2),Ae=Y[0],$=Y[1];O.useLayoutEffect(function(){if(Ae)return se(),function(){ve()}},[Ae]),O.useLayoutEffect(function(){return $(!0),function(){$(!1)}},[])}var _e=h(71430),xe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],de=function(ve,ne){var Y=ve.className,Ae=ve.style,$=ve.motion,R=ve.motionNodes,L=ve.motionType,oe=ve.onMotionStart,le=ve.onMotionEnd,J=ve.active,De=ve.treeNodeRequiredProps,je=(0,V.Z)(ve,xe),ke=O.useState(!0),Pe=(0,W.Z)(ke,2),Xe=Pe[0],st=Pe[1],Ge=O.useContext(te.k),gt=Ge.prefixCls,bt=R&&L!=="hide";(0,b.Z)(function(){R&&bt!==Xe&&st(bt)},[R]);var mt=function(){R&&oe()},zt=O.useRef(!1),Ct=function(){R&&!zt.current&&(zt.current=!0,le())};be(mt,Ct);var w=function(vt){bt===vt&&Ct()};return R?O.createElement(G.default,(0,z.Z)({ref:ne,visible:Xe},$,{motionAppear:L==="show",onVisibleChanged:w}),function(A,vt){var ue=A.className,Ne=A.style;return O.createElement("div",{ref:vt,className:m()("".concat(gt,"-treenode-motion"),ue),style:Ne},R.map(function(bn){var We=(0,z.Z)({},(M(bn.data),bn.data)),rt=bn.title,Je=bn.key,Ee=bn.isStart,Te=bn.isEnd;delete We.children;var ze=(0,_e.H8)(Je,De);return O.createElement(j.Z,(0,z.Z)({},We,ze,{title:rt,active:J,data:bn.data,key:Je,isStart:Ee,isEnd:Te}))}))}):O.createElement(j.Z,(0,z.Z)({domRef:ne,className:Y,style:Ae},je,{active:J}))};de.displayName="MotionTreeNode";var ee=O.forwardRef(de),Z=ee;function pe(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=se.length,Y=ve.length;if(Math.abs(ne-Y)!==1)return{add:!1,key:null};function Ae($,R){var L=new Map;$.forEach(function(le){L.set(le,!0)});var oe=R.filter(function(le){return!L.has(le)});return oe.length===1?oe[0]:null}return ne<Y?{add:!0,key:Ae(se,ve)}:{add:!1,key:Ae(ve,se)}}function P(se,ve,ne){var Y=se.findIndex(function(L){return L.key===ne}),Ae=se[Y+1],$=ve.findIndex(function(L){return L.key===ne});if(Ae){var R=ve.findIndex(function(L){return L.key===Ae.key});return ve.slice($+1,R)}return ve.slice($+1)}var ie=["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"],Q={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},E="RC_TREE_MOTION_".concat(Math.random()),K={key:E},fe={key:E,level:0,index:0,pos:"0",node:K,nodes:[K]},Be={parent:null,children:[],pos:fe.pos,data:K,title:null,key:E,isStart:[],isEnd:[]};function Ke(se,ve,ne,Y){return ve===!1||!ne?se:se.slice(0,Math.ceil(ne/Y)+1)}function Me(se){var ve=se.key,ne=se.pos;return(0,_e.km)(ve,ne)}function Ye(se){for(var ve=String(se.data.key),ne=se;ne.parent;)ne=ne.parent,ve="".concat(ne.data.key," > ").concat(ve);return ve}var ht=O.forwardRef(function(se,ve){var ne=se.prefixCls,Y=se.data,Ae=se.selectable,$=se.checkable,R=se.expandedKeys,L=se.selectedKeys,oe=se.checkedKeys,le=se.loadedKeys,J=se.loadingKeys,De=se.halfCheckedKeys,je=se.keyEntities,ke=se.disabled,Pe=se.dragging,Xe=se.dragOverNodeKey,st=se.dropPosition,Ge=se.motion,gt=se.height,bt=se.itemHeight,mt=se.virtual,zt=se.focusable,Ct=se.activeItem,w=se.focused,A=se.tabIndex,vt=se.onKeyDown,ue=se.onFocus,Ne=se.onBlur,bn=se.onActiveChange,We=se.onListChangeStart,rt=se.onListChangeEnd,Je=(0,V.Z)(se,ie),Ee=O.useRef(null),Te=O.useRef(null);O.useImperativeHandle(ve,function(){return{scrollTo:function(At){Ee.current.scrollTo(At)},getIndentWidth:function(){return Te.current.offsetWidth}}});var ze=O.useState(R),qe=(0,W.Z)(ze,2),ge=qe[0],Jt=qe[1],He=O.useState(Y),fn=(0,W.Z)(He,2),An=fn[0],Hn=fn[1],vr=O.useState(Y),hn=(0,W.Z)(vr,2),pn=hn[0],et=hn[1],Rt=O.useState([]),Ft=(0,W.Z)(Rt,2),Ue=Ft[0],Oe=Ft[1],xt=O.useState(null),St=(0,W.Z)(xt,2),en=St[0],jt=St[1],sn=O.useRef(Y);sn.current=Y;function Xt(){var Mt=sn.current;Hn(Mt),et(Mt),Oe([]),jt(null),rt()}(0,b.Z)(function(){Jt(R);var Mt=pe(ge,R);if(Mt.key!==null)if(Mt.add){var At=An.findIndex(function(Pn){var Yt=Pn.key;return Yt===Mt.key}),tn=Ke(P(An,Y,Mt.key),mt,gt,bt),an=An.slice();an.splice(At+1,0,Be),et(an),Oe(tn),jt("show")}else{var on=Y.findIndex(function(Pn){var Yt=Pn.key;return Yt===Mt.key}),Tn=Ke(P(Y,An,Mt.key),mt,gt,bt),er=Y.slice();er.splice(on+1,0,Be),et(er),Oe(Tn),jt("hide")}else An!==Y&&(Hn(Y),et(Y))},[R,Y]),O.useEffect(function(){Pe||Xt()},[Pe]);var vn=Ge?pn:Y,_n={expandedKeys:R,selectedKeys:L,loadedKeys:le,loadingKeys:J,checkedKeys:oe,halfCheckedKeys:De,dragOverNodeKey:Xe,dropPosition:st,keyEntities:je};return O.createElement(O.Fragment,null,w&&Ct&&O.createElement("span",{style:Q,"aria-live":"assertive"},Ye(Ct)),O.createElement("div",null,O.createElement("input",{style:Q,disabled:zt===!1||ke,tabIndex:zt!==!1?A:null,onKeyDown:vt,onFocus:ue,onBlur:Ne,value:"",onChange:v,"aria-label":"for screen reader"})),O.createElement("div",{className:"".concat(ne,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},O.createElement("div",{className:"".concat(ne,"-indent")},O.createElement("div",{ref:Te,className:"".concat(ne,"-indent-unit")}))),O.createElement(T.Z,(0,z.Z)({},Je,{data:vn,itemKey:Me,height:gt,fullHeight:!1,virtual:mt,itemHeight:bt,prefixCls:"".concat(ne,"-list"),ref:Ee,onVisibleChange:function(At,tn){var an=new Set(At),on=tn.filter(function(Tn){return!an.has(Tn)});on.some(function(Tn){return Me(Tn)===E})&&Xt()}}),function(Mt){var At=Mt.pos,tn=(0,z.Z)({},(M(Mt.data),Mt.data)),an=Mt.title,on=Mt.key,Tn=Mt.isStart,er=Mt.isEnd,Pn=(0,_e.km)(on,At);delete tn.key,delete tn.children;var Yt=(0,_e.H8)(Pn,_n);return O.createElement(Z,(0,z.Z)({},tn,Yt,{title:an,active:!!Ct&&on===Ct.key,pos:At,data:Mt.data,isStart:Tn,isEnd:er,motion:Ge,motionNodes:on===E?Ue:null,motionType:en,onMotionStart:We,onMotionEnd:Xt,treeNodeRequiredProps:_n,onMouseMove:function(){bn(null)}}))}))});ht.displayName="NodeList";var pt=ht,at=h(35654),Bt=h(90782),Vt=h(67841),qt=10,$t=function(se){(0,a.Z)(ne,se);var ve=(0,C.Z)(ne);function ne(){var Y;(0,H.Z)(this,ne);for(var Ae=arguments.length,$=new Array(Ae),R=0;R<Ae;R++)$[R]=arguments[R];return Y=ve.call.apply(ve,[this].concat($)),Y.destroyed=!1,Y.delayedDragEnterLogic=void 0,Y.loadingRetryTimes={},Y.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,_e.w$)()},Y.dragStartMousePosition=null,Y.dragNode=void 0,Y.currentMouseOverDroppableNodeKey=null,Y.listRef=O.createRef(),Y.onNodeDragStart=function(L,oe){var le=Y.state,J=le.expandedKeys,De=le.keyEntities,je=Y.props.onDragStart,ke=oe.props.eventKey;Y.dragNode=oe,Y.dragStartMousePosition={x:L.clientX,y:L.clientY};var Pe=(0,at._5)(J,ke);Y.setState({draggingNodeKey:ke,dragChildrenKeys:(0,at.wA)(ke,De),indent:Y.listRef.current.getIndentWidth()}),Y.setExpandedKeys(Pe),window.addEventListener("dragend",Y.onWindowDragEnd),je==null||je({event:L,node:(0,_e.F)(oe.props)})},Y.onNodeDragEnter=function(L,oe){var le=Y.state,J=le.expandedKeys,De=le.keyEntities,je=le.dragChildrenKeys,ke=le.flattenNodes,Pe=le.indent,Xe=Y.props,st=Xe.onDragEnter,Ge=Xe.onExpand,gt=Xe.allowDrop,bt=Xe.direction,mt=oe.props,zt=mt.pos,Ct=mt.eventKey,w=(0,me.Z)(Y),A=w.dragNode;if(Y.currentMouseOverDroppableNodeKey!==Ct&&(Y.currentMouseOverDroppableNodeKey=Ct),!A){Y.resetDragState();return}var vt=(0,at.OM)(L,A,oe,Pe,Y.dragStartMousePosition,gt,ke,De,J,bt),ue=vt.dropPosition,Ne=vt.dropLevelOffset,bn=vt.dropTargetKey,We=vt.dropContainerKey,rt=vt.dropTargetPos,Je=vt.dropAllowed,Ee=vt.dragOverNodeKey;if(je.indexOf(bn)!==-1||!Je){Y.resetDragState();return}if(Y.delayedDragEnterLogic||(Y.delayedDragEnterLogic={}),Object.keys(Y.delayedDragEnterLogic).forEach(function(Te){clearTimeout(Y.delayedDragEnterLogic[Te])}),A.props.eventKey!==oe.props.eventKey&&(L.persist(),Y.delayedDragEnterLogic[zt]=window.setTimeout(function(){if(Y.state.draggingNodeKey!==null){var Te=(0,U.Z)(J),ze=(0,Vt.Z)(De,oe.props.eventKey);ze&&(ze.children||[]).length&&(Te=(0,at.L0)(J,oe.props.eventKey)),"expandedKeys"in Y.props||Y.setExpandedKeys(Te),Ge==null||Ge(Te,{node:(0,_e.F)(oe.props),expanded:!0,nativeEvent:L.nativeEvent})}},800)),A.props.eventKey===bn&&Ne===0){Y.resetDragState();return}Y.setState({dragOverNodeKey:Ee,dropPosition:ue,dropLevelOffset:Ne,dropTargetKey:bn,dropContainerKey:We,dropTargetPos:rt,dropAllowed:Je}),st==null||st({event:L,node:(0,_e.F)(oe.props),expandedKeys:J})},Y.onNodeDragOver=function(L,oe){var le=Y.state,J=le.dragChildrenKeys,De=le.flattenNodes,je=le.keyEntities,ke=le.expandedKeys,Pe=le.indent,Xe=Y.props,st=Xe.onDragOver,Ge=Xe.allowDrop,gt=Xe.direction,bt=(0,me.Z)(Y),mt=bt.dragNode;if(mt){var zt=(0,at.OM)(L,mt,oe,Pe,Y.dragStartMousePosition,Ge,De,je,ke,gt),Ct=zt.dropPosition,w=zt.dropLevelOffset,A=zt.dropTargetKey,vt=zt.dropContainerKey,ue=zt.dropAllowed,Ne=zt.dropTargetPos,bn=zt.dragOverNodeKey;J.indexOf(A)!==-1||!ue||(mt.props.eventKey===A&&w===0?Y.state.dropPosition===null&&Y.state.dropLevelOffset===null&&Y.state.dropTargetKey===null&&Y.state.dropContainerKey===null&&Y.state.dropTargetPos===null&&Y.state.dropAllowed===!1&&Y.state.dragOverNodeKey===null||Y.resetDragState():Ct===Y.state.dropPosition&&w===Y.state.dropLevelOffset&&A===Y.state.dropTargetKey&&vt===Y.state.dropContainerKey&&Ne===Y.state.dropTargetPos&&ue===Y.state.dropAllowed&&bn===Y.state.dragOverNodeKey||Y.setState({dropPosition:Ct,dropLevelOffset:w,dropTargetKey:A,dropContainerKey:vt,dropTargetPos:Ne,dropAllowed:ue,dragOverNodeKey:bn}),st==null||st({event:L,node:(0,_e.F)(oe.props)}))}},Y.onNodeDragLeave=function(L,oe){Y.currentMouseOverDroppableNodeKey===oe.props.eventKey&&!L.currentTarget.contains(L.relatedTarget)&&(Y.resetDragState(),Y.currentMouseOverDroppableNodeKey=null);var le=Y.props.onDragLeave;le==null||le({event:L,node:(0,_e.F)(oe.props)})},Y.onWindowDragEnd=function(L){Y.onNodeDragEnd(L,null,!0),window.removeEventListener("dragend",Y.onWindowDragEnd)},Y.onNodeDragEnd=function(L,oe){var le=Y.props.onDragEnd;Y.setState({dragOverNodeKey:null}),Y.cleanDragState(),le==null||le({event:L,node:(0,_e.F)(oe.props)}),Y.dragNode=null,window.removeEventListener("dragend",Y.onWindowDragEnd)},Y.onNodeDrop=function(L,oe){var le,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,De=Y.state,je=De.dragChildrenKeys,ke=De.dropPosition,Pe=De.dropTargetKey,Xe=De.dropTargetPos,st=De.dropAllowed;if(st){var Ge=Y.props.onDrop;if(Y.setState({dragOverNodeKey:null}),Y.cleanDragState(),Pe!==null){var gt=(0,ye.Z)((0,ye.Z)({},(0,_e.H8)(Pe,Y.getTreeNodeRequiredProps())),{},{active:((le=Y.getActiveItem())===null||le===void 0?void 0:le.key)===Pe,data:(0,Vt.Z)(Y.state.keyEntities,Pe).node}),bt=je.indexOf(Pe)!==-1;(0,y.ZP)(!bt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var mt=(0,at.yx)(Xe),zt={event:L,node:(0,_e.F)(gt),dragNode:Y.dragNode?(0,_e.F)(Y.dragNode.props):null,dragNodesKeys:[Y.dragNode.props.eventKey].concat(je),dropToGap:ke!==0,dropPosition:ke+Number(mt[mt.length-1])};J||Ge==null||Ge(zt),Y.dragNode=null}}},Y.cleanDragState=function(){var L=Y.state.draggingNodeKey;L!==null&&Y.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Y.dragStartMousePosition=null,Y.currentMouseOverDroppableNodeKey=null},Y.triggerExpandActionExpand=function(L,oe){var le=Y.state,J=le.expandedKeys,De=le.flattenNodes,je=oe.expanded,ke=oe.key,Pe=oe.isLeaf;if(!(Pe||L.shiftKey||L.metaKey||L.ctrlKey)){var Xe=De.filter(function(Ge){return Ge.key===ke})[0],st=(0,_e.F)((0,ye.Z)((0,ye.Z)({},(0,_e.H8)(ke,Y.getTreeNodeRequiredProps())),{},{data:Xe.data}));Y.setExpandedKeys(je?(0,at._5)(J,ke):(0,at.L0)(J,ke)),Y.onNodeExpand(L,st)}},Y.onNodeClick=function(L,oe){var le=Y.props,J=le.onClick,De=le.expandAction;De==="click"&&Y.triggerExpandActionExpand(L,oe),J==null||J(L,oe)},Y.onNodeDoubleClick=function(L,oe){var le=Y.props,J=le.onDoubleClick,De=le.expandAction;De==="doubleClick"&&Y.triggerExpandActionExpand(L,oe),J==null||J(L,oe)},Y.onNodeSelect=function(L,oe){var le=Y.state.selectedKeys,J=Y.state,De=J.keyEntities,je=J.fieldNames,ke=Y.props,Pe=ke.onSelect,Xe=ke.multiple,st=oe.selected,Ge=oe[je.key],gt=!st;gt?Xe?le=(0,at.L0)(le,Ge):le=[Ge]:le=(0,at._5)(le,Ge);var bt=le.map(function(mt){var zt=(0,Vt.Z)(De,mt);return zt?zt.node:null}).filter(function(mt){return mt});Y.setUncontrolledState({selectedKeys:le}),Pe==null||Pe(le,{event:"select",selected:gt,node:oe,selectedNodes:bt,nativeEvent:L.nativeEvent})},Y.onNodeCheck=function(L,oe,le){var J=Y.state,De=J.keyEntities,je=J.checkedKeys,ke=J.halfCheckedKeys,Pe=Y.props,Xe=Pe.checkStrictly,st=Pe.onCheck,Ge=oe.key,gt,bt={event:"check",node:oe,checked:le,nativeEvent:L.nativeEvent};if(Xe){var mt=le?(0,at.L0)(je,Ge):(0,at._5)(je,Ge),zt=(0,at._5)(ke,Ge);gt={checked:mt,halfChecked:zt},bt.checkedNodes=mt.map(function(Ne){return(0,Vt.Z)(De,Ne)}).filter(function(Ne){return Ne}).map(function(Ne){return Ne.node}),Y.setUncontrolledState({checkedKeys:mt})}else{var Ct=(0,Bt.S)([].concat((0,U.Z)(je),[Ge]),!0,De),w=Ct.checkedKeys,A=Ct.halfCheckedKeys;if(!le){var vt=new Set(w);vt.delete(Ge);var ue=(0,Bt.S)(Array.from(vt),{checked:!1,halfCheckedKeys:A},De);w=ue.checkedKeys,A=ue.halfCheckedKeys}gt=w,bt.checkedNodes=[],bt.checkedNodesPositions=[],bt.halfCheckedKeys=A,w.forEach(function(Ne){var bn=(0,Vt.Z)(De,Ne);if(bn){var We=bn.node,rt=bn.pos;bt.checkedNodes.push(We),bt.checkedNodesPositions.push({node:We,pos:rt})}}),Y.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:A})}st==null||st(gt,bt)},Y.onNodeLoad=function(L){var oe=L.key,le=new Promise(function(J,De){Y.setState(function(je){var ke=je.loadedKeys,Pe=ke===void 0?[]:ke,Xe=je.loadingKeys,st=Xe===void 0?[]:Xe,Ge=Y.props,gt=Ge.loadData,bt=Ge.onLoad;if(!gt||Pe.indexOf(oe)!==-1||st.indexOf(oe)!==-1)return null;var mt=gt(L);return mt.then(function(){var zt=Y.state.loadedKeys,Ct=(0,at.L0)(zt,oe);bt==null||bt(Ct,{event:"load",node:L}),Y.setUncontrolledState({loadedKeys:Ct}),Y.setState(function(w){return{loadingKeys:(0,at._5)(w.loadingKeys,oe)}}),J()}).catch(function(zt){if(Y.setState(function(w){return{loadingKeys:(0,at._5)(w.loadingKeys,oe)}}),Y.loadingRetryTimes[oe]=(Y.loadingRetryTimes[oe]||0)+1,Y.loadingRetryTimes[oe]>=qt){var Ct=Y.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Y.setUncontrolledState({loadedKeys:(0,at.L0)(Ct,oe)}),J()}De(zt)}),{loadingKeys:(0,at.L0)(st,oe)}})});return le.catch(function(){}),le},Y.onNodeMouseEnter=function(L,oe){var le=Y.props.onMouseEnter;le==null||le({event:L,node:oe})},Y.onNodeMouseLeave=function(L,oe){var le=Y.props.onMouseLeave;le==null||le({event:L,node:oe})},Y.onNodeContextMenu=function(L,oe){var le=Y.props.onRightClick;le&&(L.preventDefault(),le({event:L,node:oe}))},Y.onFocus=function(){var L=Y.props.onFocus;Y.setState({focused:!0});for(var oe=arguments.length,le=new Array(oe),J=0;J<oe;J++)le[J]=arguments[J];L==null||L.apply(void 0,le)},Y.onBlur=function(){var L=Y.props.onBlur;Y.setState({focused:!1}),Y.onActiveChange(null);for(var oe=arguments.length,le=new Array(oe),J=0;J<oe;J++)le[J]=arguments[J];L==null||L.apply(void 0,le)},Y.getTreeNodeRequiredProps=function(){var L=Y.state,oe=L.expandedKeys,le=L.selectedKeys,J=L.loadedKeys,De=L.loadingKeys,je=L.checkedKeys,ke=L.halfCheckedKeys,Pe=L.dragOverNodeKey,Xe=L.dropPosition,st=L.keyEntities;return{expandedKeys:oe||[],selectedKeys:le||[],loadedKeys:J||[],loadingKeys:De||[],checkedKeys:je||[],halfCheckedKeys:ke||[],dragOverNodeKey:Pe,dropPosition:Xe,keyEntities:st}},Y.setExpandedKeys=function(L){var oe=Y.state,le=oe.treeData,J=oe.fieldNames,De=(0,_e.oH)(le,L,J);Y.setUncontrolledState({expandedKeys:L,flattenNodes:De},!0)},Y.onNodeExpand=function(L,oe){var le=Y.state.expandedKeys,J=Y.state,De=J.listChanging,je=J.fieldNames,ke=Y.props,Pe=ke.onExpand,Xe=ke.loadData,st=oe.expanded,Ge=oe[je.key];if(!De){var gt=le.indexOf(Ge),bt=!st;if((0,y.ZP)(st&&gt!==-1||!st&&gt===-1,"Expand state not sync with index check"),bt?le=(0,at.L0)(le,Ge):le=(0,at._5)(le,Ge),Y.setExpandedKeys(le),Pe==null||Pe(le,{node:oe,expanded:bt,nativeEvent:L.nativeEvent}),bt&&Xe){var mt=Y.onNodeLoad(oe);mt&&mt.then(function(){var zt=(0,_e.oH)(Y.state.treeData,le,je);Y.setUncontrolledState({flattenNodes:zt})}).catch(function(){var zt=Y.state.expandedKeys,Ct=(0,at._5)(zt,Ge);Y.setExpandedKeys(Ct)})}}},Y.onListChangeStart=function(){Y.setUncontrolledState({listChanging:!0})},Y.onListChangeEnd=function(){setTimeout(function(){Y.setUncontrolledState({listChanging:!1})})},Y.onActiveChange=function(L){var oe=Y.state.activeKey,le=Y.props.onActiveChange;oe!==L&&(Y.setState({activeKey:L}),L!==null&&Y.scrollTo({key:L}),le==null||le(L))},Y.getActiveItem=function(){var L=Y.state,oe=L.activeKey,le=L.flattenNodes;return oe===null?null:le.find(function(J){var De=J.key;return De===oe})||null},Y.offsetActiveKey=function(L){var oe=Y.state,le=oe.flattenNodes,J=oe.activeKey,De=le.findIndex(function(Pe){var Xe=Pe.key;return Xe===J});De===-1&&L<0&&(De=le.length),De=(De+L+le.length)%le.length;var je=le[De];if(je){var ke=je.key;Y.onActiveChange(ke)}else Y.onActiveChange(null)},Y.onKeyDown=function(L){var oe=Y.state,le=oe.activeKey,J=oe.expandedKeys,De=oe.checkedKeys,je=oe.fieldNames,ke=Y.props,Pe=ke.onKeyDown,Xe=ke.checkable,st=ke.selectable;switch(L.which){case u.Z.UP:{Y.offsetActiveKey(-1),L.preventDefault();break}case u.Z.DOWN:{Y.offsetActiveKey(1),L.preventDefault();break}}var Ge=Y.getActiveItem();if(Ge&&Ge.data){var gt=Y.getTreeNodeRequiredProps(),bt=Ge.data.isLeaf===!1||!!(Ge.data[je.children]||[]).length,mt=(0,_e.F)((0,ye.Z)((0,ye.Z)({},(0,_e.H8)(le,gt)),{},{data:Ge.data,active:!0}));switch(L.which){case u.Z.LEFT:{bt&&J.includes(le)?Y.onNodeExpand({},mt):Ge.parent&&Y.onActiveChange(Ge.parent.key),L.preventDefault();break}case u.Z.RIGHT:{bt&&!J.includes(le)?Y.onNodeExpand({},mt):Ge.children&&Ge.children.length&&Y.onActiveChange(Ge.children[0].key),L.preventDefault();break}case u.Z.ENTER:case u.Z.SPACE:{Xe&&!mt.disabled&&mt.checkable!==!1&&!mt.disableCheckbox?Y.onNodeCheck({},mt,!De.includes(le)):!Xe&&st&&!mt.disabled&&mt.selectable!==!1&&Y.onNodeSelect({},mt);break}}}Pe==null||Pe(L)},Y.setUncontrolledState=function(L){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Y.destroyed){var J=!1,De=!0,je={};Object.keys(L).forEach(function(ke){if(ke in Y.props){De=!1;return}J=!0,je[ke]=L[ke]}),J&&(!oe||De)&&Y.setState((0,ye.Z)((0,ye.Z)({},je),le))}},Y.scrollTo=function(L){Y.listRef.current.scrollTo(L)},Y}return(0,S.Z)(ne,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ae=this.props.activeKey;Ae!==void 0&&Ae!==this.state.activeKey&&(this.setState({activeKey:Ae}),Ae!==null&&this.scrollTo({key:Ae}))}},{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 Ae,$=this.state,R=$.focused,L=$.flattenNodes,oe=$.keyEntities,le=$.draggingNodeKey,J=$.activeKey,De=$.dropLevelOffset,je=$.dropContainerKey,ke=$.dropTargetKey,Pe=$.dropPosition,Xe=$.dragOverNodeKey,st=$.indent,Ge=this.props,gt=Ge.prefixCls,bt=Ge.className,mt=Ge.style,zt=Ge.showLine,Ct=Ge.focusable,w=Ge.tabIndex,A=w===void 0?0:w,vt=Ge.selectable,ue=Ge.showIcon,Ne=Ge.icon,bn=Ge.switcherIcon,We=Ge.draggable,rt=Ge.checkable,Je=Ge.checkStrictly,Ee=Ge.disabled,Te=Ge.motion,ze=Ge.loadData,qe=Ge.filterTreeNode,ge=Ge.height,Jt=Ge.itemHeight,He=Ge.virtual,fn=Ge.titleRender,An=Ge.dropIndicatorRender,Hn=Ge.onContextMenu,vr=Ge.onScroll,hn=Ge.direction,pn=Ge.rootClassName,et=Ge.rootStyle,Rt=(0,x.Z)(this.props,{aria:!0,data:!0}),Ft;return We&&((0,X.Z)(We)==="object"?Ft=We:typeof We=="function"?Ft={nodeDraggable:We}:Ft={}),O.createElement(te.k.Provider,{value:{prefixCls:gt,selectable:vt,showIcon:ue,icon:Ne,switcherIcon:bn,draggable:Ft,draggingNodeKey:le,checkable:rt,checkStrictly:Je,disabled:Ee,keyEntities:oe,dropLevelOffset:De,dropContainerKey:je,dropTargetKey:ke,dropPosition:Pe,dragOverNodeKey:Xe,indent:st,direction:hn,dropIndicatorRender:An,loadData:ze,filterTreeNode:qe,titleRender:fn,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}},O.createElement("div",{role:"tree",className:m()(gt,bt,pn,(Ae={},(0,N.Z)(Ae,"".concat(gt,"-show-line"),zt),(0,N.Z)(Ae,"".concat(gt,"-focused"),R),(0,N.Z)(Ae,"".concat(gt,"-active-focused"),J!==null),Ae)),style:et},O.createElement(pt,(0,z.Z)({ref:this.listRef,prefixCls:gt,style:mt,data:L,disabled:Ee,selectable:vt,checkable:!!rt,motion:Te,dragging:le!==null,height:ge,itemHeight:Jt,virtual:He,focusable:Ct,focused:R,tabIndex:A,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Hn,onScroll:vr},this.getTreeNodeRequiredProps(),Rt))))}}],[{key:"getDerivedStateFromProps",value:function(Ae,$){var R=$.prevProps,L={prevProps:Ae};function oe(Ct){return!R&&Ct in Ae||R&&R[Ct]!==Ae[Ct]}var le,J=$.fieldNames;if(oe("fieldNames")&&(J=(0,_e.w$)(Ae.fieldNames),L.fieldNames=J),oe("treeData")?le=Ae.treeData:oe("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),le=(0,_e.zn)(Ae.children)),le){L.treeData=le;var De=(0,_e.I8)(le,{fieldNames:J});L.keyEntities=(0,ye.Z)((0,N.Z)({},E,fe),De.keyEntities)}var je=L.keyEntities||$.keyEntities;if(oe("expandedKeys")||R&&oe("autoExpandParent"))L.expandedKeys=Ae.autoExpandParent||!R&&Ae.defaultExpandParent?(0,at.r7)(Ae.expandedKeys,je):Ae.expandedKeys;else if(!R&&Ae.defaultExpandAll){var ke=(0,ye.Z)({},je);delete ke[E],L.expandedKeys=Object.keys(ke).map(function(Ct){return ke[Ct].key})}else!R&&Ae.defaultExpandedKeys&&(L.expandedKeys=Ae.autoExpandParent||Ae.defaultExpandParent?(0,at.r7)(Ae.defaultExpandedKeys,je):Ae.defaultExpandedKeys);if(L.expandedKeys||delete L.expandedKeys,le||L.expandedKeys){var Pe=(0,_e.oH)(le||$.treeData,L.expandedKeys||$.expandedKeys,J);L.flattenNodes=Pe}if(Ae.selectable&&(oe("selectedKeys")?L.selectedKeys=(0,at.BT)(Ae.selectedKeys,Ae):!R&&Ae.defaultSelectedKeys&&(L.selectedKeys=(0,at.BT)(Ae.defaultSelectedKeys,Ae))),Ae.checkable){var Xe;if(oe("checkedKeys")?Xe=(0,at.E6)(Ae.checkedKeys)||{}:!R&&Ae.defaultCheckedKeys?Xe=(0,at.E6)(Ae.defaultCheckedKeys)||{}:le&&(Xe=(0,at.E6)(Ae.checkedKeys)||{checkedKeys:$.checkedKeys,halfCheckedKeys:$.halfCheckedKeys}),Xe){var st=Xe,Ge=st.checkedKeys,gt=Ge===void 0?[]:Ge,bt=st.halfCheckedKeys,mt=bt===void 0?[]:bt;if(!Ae.checkStrictly){var zt=(0,Bt.S)(gt,!0,je);gt=zt.checkedKeys,mt=zt.halfCheckedKeys}L.checkedKeys=gt,L.halfCheckedKeys=mt}}return oe("loadedKeys")&&(L.loadedKeys=Ae.loadedKeys),L}}]),ne}(O.Component);$t.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:B,allowDrop:function(){return!0},expandAction:!1},$t.TreeNode=j.Z;var Gt=$t,lt=Gt},35654:function(Wt,Ze,h){"use strict";h.d(Ze,{BT:function(){return O},E6:function(){return M},L0:function(){return C},OM:function(){return y},_5:function(){return a},r7:function(){return W},wA:function(){return m},yx:function(){return I}});var z=h(26407),N=h(39559),X=h(48736),ye=h(59301),U=h(39417),H=h(67841),S=h(71430),me=null;function a(V,b){if(!V)return[];var T=V.slice(),G=T.indexOf(b);return G>=0&&T.splice(G,1),T}function C(V,b){var T=(V||[]).slice();return T.indexOf(b)===-1&&T.push(b),T}function I(V){return V.split("-")}function m(V,b){var T=[],G=(0,H.Z)(b,V);function j(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(_e){var xe=_e.key,de=_e.children;T.push(xe),j(de)})}return j(G.children),T}function u(V){if(V.parent){var b=I(V.pos);return Number(b[b.length-1])===V.parent.children.length-1}return!1}function x(V){var b=I(V.pos);return Number(b[b.length-1])===0}function y(V,b,T,G,j,be,_e,xe,de,ee){var Z,pe=V.clientX,P=V.clientY,ie=V.target.getBoundingClientRect(),Q=ie.top,v=ie.height,E=(ee==="rtl"?-1:1)*(((j==null?void 0:j.x)||0)-pe),K=(E-12)/G,fe=(0,H.Z)(xe,T.props.eventKey);if(P<Q+v/2){var Be=_e.findIndex(function(lt){return lt.key===fe.key}),Ke=Be<=0?0:Be-1,Me=_e[Ke].key;fe=(0,H.Z)(xe,Me)}var Ye=fe.key,ht=fe,pt=fe.key,at=0,Bt=0;if(!de.includes(Ye))for(var Vt=0;Vt<K&&u(fe);Vt+=1)fe=fe.parent,Bt+=1;var qt=b.props.data,$t=fe.node,Gt=!0;return x(fe)&&fe.level===0&&P<Q+v/2&&be({dragNode:qt,dropNode:$t,dropPosition:-1})&&fe.key===T.props.eventKey?at=-1:(ht.children||[]).length&&de.includes(pt)?be({dragNode:qt,dropNode:$t,dropPosition:0})?at=0:Gt=!1:Bt===0?K>-1.5?be({dragNode:qt,dropNode:$t,dropPosition:1})?at=1:Gt=!1:be({dragNode:qt,dropNode:$t,dropPosition:0})?at=0:be({dragNode:qt,dropNode:$t,dropPosition:1})?at=1:Gt=!1:be({dragNode:qt,dropNode:$t,dropPosition:1})?at=1:Gt=!1,{dropPosition:at,dropLevelOffset:Bt,dropTargetKey:fe.key,dropTargetPos:fe.pos,dragOverNodeKey:pt,dropContainerKey:at===0?null:((Z=fe.parent)===null||Z===void 0?void 0:Z.key)||null,dropAllowed:Gt}}function O(V,b){if(V){var T=b.multiple;return T?V.slice():V.length?[V[0]]:V}}var te=function(b){return b};function B(V,b){if(!V)return[];var T=b||{},G=T.processProps,j=G===void 0?te:G,be=Array.isArray(V)?V:[V];return be.map(function(_e){var xe=_e.children,de=_objectWithoutProperties(_e,me),ee=B(xe,b);return React.createElement(TreeNode,_extends({key:de.key},j(de)),ee)})}function M(V){if(!V)return null;var b;if(Array.isArray(V))b={checkedKeys:V,halfCheckedKeys:void 0};else if((0,N.Z)(V)==="object")b={checkedKeys:V.checked||void 0,halfCheckedKeys:V.halfChecked||void 0};else return(0,X.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return b}function W(V,b){var T=new Set;function G(j){if(!T.has(j)){var be=(0,H.Z)(b,j);if(be){T.add(j);var _e=be.parent,xe=be.node;xe.disabled||_e&&G(_e.key)}}}return(V||[]).forEach(function(j){G(j)}),(0,z.Z)(T)}},90782:function(Wt,Ze,h){"use strict";h.d(Ze,{S:function(){return S}});var z=h(48736),N=h(67841);function X(me,a){var C=new Set;return me.forEach(function(I){a.has(I)||C.add(I)}),C}function ye(me){var a=me||{},C=a.disabled,I=a.disableCheckbox,m=a.checkable;return!!(C||I)||m===!1}function U(me,a,C,I){for(var m=new Set(me),u=new Set,x=0;x<=C;x+=1){var y=a.get(x)||new Set;y.forEach(function(M){var W=M.key,V=M.node,b=M.children,T=b===void 0?[]:b;m.has(W)&&!I(V)&&T.filter(function(G){return!I(G.node)}).forEach(function(G){m.add(G.key)})})}for(var O=new Set,te=C;te>=0;te-=1){var B=a.get(te)||new Set;B.forEach(function(M){var W=M.parent,V=M.node;if(!(I(V)||!M.parent||O.has(M.parent.key))){if(I(M.parent.node)){O.add(W.key);return}var b=!0,T=!1;(W.children||[]).filter(function(G){return!I(G.node)}).forEach(function(G){var j=G.key,be=m.has(j);b&&!be&&(b=!1),!T&&(be||u.has(j))&&(T=!0)}),b&&m.add(W.key),T&&u.add(W.key),O.add(W.key)}})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(X(u,m))}}function H(me,a,C,I,m){for(var u=new Set(me),x=new Set(a),y=0;y<=I;y+=1){var O=C.get(y)||new Set;O.forEach(function(W){var V=W.key,b=W.node,T=W.children,G=T===void 0?[]:T;!u.has(V)&&!x.has(V)&&!m(b)&&G.filter(function(j){return!m(j.node)}).forEach(function(j){u.delete(j.key)})})}x=new Set;for(var te=new Set,B=I;B>=0;B-=1){var M=C.get(B)||new Set;M.forEach(function(W){var V=W.parent,b=W.node;if(!(m(b)||!W.parent||te.has(W.parent.key))){if(m(W.parent.node)){te.add(V.key);return}var T=!0,G=!1;(V.children||[]).filter(function(j){return!m(j.node)}).forEach(function(j){var be=j.key,_e=u.has(be);T&&!_e&&(T=!1),!G&&(_e||x.has(be))&&(G=!0)}),T||u.delete(V.key),G&&x.add(V.key),te.add(V.key)}})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(X(x,u))}}function S(me,a,C,I){var m=[],u;I?u=I:u=ye;var x=new Set(me.filter(function(B){var M=!!(0,N.Z)(C,B);return M||m.push(B),M})),y=new Map,O=0;Object.keys(C).forEach(function(B){var M=C[B],W=M.level,V=y.get(W);V||(V=new Set,y.set(W,V)),V.add(M),O=Math.max(O,W)}),(0,z.ZP)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(B){return"'".concat(B,"'")}).join(", ")));var te;return a===!0?te=U(x,y,O,u):te=H(x,a.halfCheckedKeys,y,O,u),te}},67841:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return z}});function z(N,X){return N[X]}},71430:function(Wt,Ze,h){"use strict";h.d(Ze,{F:function(){return W},H8:function(){return M},I8:function(){return B},km:function(){return m},oH:function(){return O},w$:function(){return u},zn:function(){return y}});var z=h(39559),N=h(26407),X=h(33708),ye=h(37061),U=h(11592),H=h(2738),S=h(48736),me=h(67841),a=["children"];function C(V,b){return"".concat(V,"-").concat(b)}function I(V){return V&&V.type&&V.type.isTreeNode}function m(V,b){return V!=null?V:b}function u(V){var b=V||{},T=b.title,G=b._title,j=b.key,be=b.children,_e=T||"title";return{title:_e,_title:G||[_e],key:j||"key",children:be||"children"}}function x(V,b){var T=new Map;function G(j){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(_e){var xe=_e[b.key],de=_e[b.children];warning(xe!=null,"Tree node must have a certain key: [".concat(be).concat(xe,"]"));var ee=String(xe);warning(!T.has(ee)||xe===null||xe===void 0,"Same 'key' exist in the Tree: ".concat(ee)),T.set(ee,!0),G(de,"".concat(be).concat(ee," > "))})}G(V)}function y(V){function b(T){var G=(0,U.Z)(T);return G.map(function(j){if(!I(j))return(0,S.ZP)(!j,"Tree/TreeNode can only accept TreeNode as children."),null;var be=j.key,_e=j.props,xe=_e.children,de=(0,ye.Z)(_e,a),ee=(0,X.Z)({key:be},de),Z=b(xe);return Z.length&&(ee.children=Z),ee}).filter(function(j){return j})}return b(V)}function O(V,b,T){var G=u(T),j=G._title,be=G.key,_e=G.children,xe=new Set(b===!0?[]:b),de=[];function ee(Z){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Z.map(function(P,ie){for(var Q=C(pe?pe.pos:"0",ie),v=m(P[be],Q),E,K=0;K<j.length;K+=1){var fe=j[K];if(P[fe]!==void 0){E=P[fe];break}}var Be=(0,X.Z)((0,X.Z)({},(0,H.Z)(P,[].concat((0,N.Z)(j),[be,_e]))),{},{title:E,key:v,parent:pe,pos:Q,children:null,data:P,isStart:[].concat((0,N.Z)(pe?pe.isStart:[]),[ie===0]),isEnd:[].concat((0,N.Z)(pe?pe.isEnd:[]),[ie===Z.length-1])});return de.push(Be),b===!0||xe.has(v)?Be.children=ee(P[_e]||[],Be):Be.children=[],Be})}return ee(V),de}function te(V,b,T){var G={};(0,z.Z)(T)==="object"?G=T:G={externalGetKey:T},G=G||{};var j=G,be=j.childrenPropName,_e=j.externalGetKey,xe=j.fieldNames,de=u(xe),ee=de.key,Z=de.children,pe=be||Z,P;_e?typeof _e=="string"?P=function(v){return v[_e]}:typeof _e=="function"&&(P=function(v){return _e(v)}):P=function(v,E){return m(v[ee],E)};function ie(Q,v,E,K){var fe=Q?Q[pe]:V,Be=Q?C(E.pos,v):"0",Ke=Q?[].concat((0,N.Z)(K),[Q]):[];if(Q){var Me=P(Q,Be),Ye={node:Q,index:v,pos:Be,key:Me,parentPos:E.node?E.pos:null,level:E.level+1,nodes:Ke};b(Ye)}fe&&fe.forEach(function(ht,pt){ie(ht,pt,{node:Q,pos:Be,level:E?E.level+1:-1},Ke)})}ie(null)}function B(V){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=b.initWrapper,G=b.processEntity,j=b.onProcessFinished,be=b.externalGetKey,_e=b.childrenPropName,xe=b.fieldNames,de=arguments.length>2?arguments[2]:void 0,ee=be||de,Z={},pe={},P={posEntities:Z,keyEntities:pe};return T&&(P=T(P)||P),te(V,function(ie){var Q=ie.node,v=ie.index,E=ie.pos,K=ie.key,fe=ie.parentPos,Be=ie.level,Ke=ie.nodes,Me={node:Q,nodes:Ke,index:v,key:K,pos:E,level:Be},Ye=m(K,E);Z[E]=Me,pe[Ye]=Me,Me.parent=Z[fe],Me.parent&&(Me.parent.children=Me.parent.children||[],Me.parent.children.push(Me)),G&&G(Me,P)},{externalGetKey:ee,childrenPropName:_e,fieldNames:xe}),j&&j(P),P}function M(V,b){var T=b.expandedKeys,G=b.selectedKeys,j=b.loadedKeys,be=b.loadingKeys,_e=b.checkedKeys,xe=b.halfCheckedKeys,de=b.dragOverNodeKey,ee=b.dropPosition,Z=b.keyEntities,pe=(0,me.Z)(Z,V),P={eventKey:V,expanded:T.indexOf(V)!==-1,selected:G.indexOf(V)!==-1,loaded:j.indexOf(V)!==-1,loading:be.indexOf(V)!==-1,checked:_e.indexOf(V)!==-1,halfChecked:xe.indexOf(V)!==-1,pos:String(pe?pe.pos:""),dragOver:de===V&&ee===0,dragOverGapTop:de===V&&ee===-1,dragOverGapBottom:de===V&&ee===1};return P}function W(V){var b=V.data,T=V.expanded,G=V.selected,j=V.checked,be=V.loaded,_e=V.loading,xe=V.halfChecked,de=V.dragOver,ee=V.dragOverGapTop,Z=V.dragOverGapBottom,pe=V.pos,P=V.active,ie=V.eventKey,Q=(0,X.Z)((0,X.Z)({},b),{},{expanded:T,selected:G,checked:j,loaded:be,loading:_e,halfChecked:xe,dragOver:de,dragOverGapTop:ee,dragOverGapBottom:Z,pos:pe,active:P,key:ie});return"props"in Q||Object.defineProperty(Q,"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`."),V}}),Q}},8224:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return N}});var z=h(4676);function N(X,ye,U,H){var S=z.unstable_batchedUpdates?function(a){z.unstable_batchedUpdates(U,a)}:U;return X!=null&&X.addEventListener&&X.addEventListener(ye,S,H),{remove:function(){X!=null&&X.removeEventListener&&X.removeEventListener(ye,S,H)}}}},55468:function(Wt,Ze,h){"use strict";h.d(Ze,{g1:function(){return I},os:function(){return u}});var z=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},X={cssFloat:1,styleFloat:1,float:1};function ye(x){return x.nodeType===1?x.ownerDocument.defaultView.getComputedStyle(x,null):{}}function U(x,y,O){if(y=y.toLowerCase(),O==="auto"){if(y==="height")return x.offsetHeight;if(y==="width")return x.offsetWidth}return y in N||(N[y]=z.test(y)),N[y]?parseFloat(O)||0:O}function H(x,y){var O=arguments.length,te=ye(x);return y=X[y]?"cssFloat"in x.style?"cssFloat":"styleFloat":y,O===1?te:U(x,y,te[y]||x.style[y])}function S(x,y,O){var te=arguments.length;if(y=X[y]?"cssFloat"in x.style?"cssFloat":"styleFloat":y,te===3)return typeof O=="number"&&z.test(y)&&(O="".concat(O,"px")),x.style[y]=O,O;for(var B in y)y.hasOwnProperty(B)&&S(x,B,y[B]);return ye(x)}function me(x){return x===document.body?document.documentElement.clientWidth:x.offsetWidth}function a(x){return x===document.body?window.innerHeight||document.documentElement.clientHeight:x.offsetHeight}function C(){var x=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:x,height:y}}function I(){var x=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:x,height:y}}function m(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(x){var y=x.getBoundingClientRect(),O=document.documentElement;return{left:y.left+(window.pageXOffset||O.scrollLeft)-(O.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||O.scrollTop)-(O.clientTop||document.body.clientTop||0)}}},24514:function(Wt,Ze,h){"use strict";h.d(Ze,{G:function(){return ye}});var z=h(47273),N=function(H){if((0,z.Z)()&&window.document.documentElement){var S=Array.isArray(H)?H:[H],me=window.document.documentElement;return S.some(function(a){return a in me.style})}return!1},X=function(H,S){if(!N(H))return!1;var me=document.createElement("div"),a=me.style[H];return me.style[H]=S,me.style[H]!==a};function ye(U,H){return!Array.isArray(U)&&H!==void 0?X(U,H):N(U)}},49658:function(Wt,Ze){"use strict";Ze.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var h=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(h)||/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(h==null?void 0:h.substr(0,4))}},57149:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return Gt}});var z=h(92413),N=h(39559),X=h(33708),ye=h(400),U=h(33606),H=h(37061),S=h(92310),me=h.n(S),a=h(29301),C=h(70425),I=h(34280),m=h(59301),u=h(4676),x=m.forwardRef(function(lt,se){var ve=lt.height,ne=lt.offsetY,Y=lt.offsetX,Ae=lt.children,$=lt.prefixCls,R=lt.onInnerResize,L=lt.innerProps,oe=lt.rtl,le=lt.extra,J={},De={display:"flex",flexDirection:"column"};return ne!==void 0&&(J={height:ve,position:"relative",overflow:"hidden"},De=(0,X.Z)((0,X.Z)({},De),{},(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({transform:"translateY(".concat(ne,"px)")},oe?"marginRight":"marginLeft",-Y),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:J},m.createElement(a.Z,{onResize:function(ke){var Pe=ke.offsetHeight;Pe&&R&&R()}},m.createElement("div",(0,z.Z)({style:De,className:me()((0,ye.Z)({},"".concat($,"-holder-inner"),$)),ref:se},L),Ae,le)))});x.displayName="Filler";var y=x;function O(lt){var se=lt.children,ve=lt.setRef,ne=m.useCallback(function(Y){ve(Y)},[]);return m.cloneElement(se,{ref:ne})}function te(lt,se,ve,ne,Y,Ae,$,R){var L=R.getKey;return lt.slice(se,ve+1).map(function(oe,le){var J=se+le,De=$(oe,J,{style:{width:ne},offsetX:Y}),je=L(oe);return m.createElement(O,{key:je,setRef:function(Pe){return Ae(oe,Pe)}},De)})}function B(lt,se,ve,ne){var Y=ve-lt,Ae=se-ve,$=Math.min(Y,Ae)*2;if(ne<=$){var R=Math.floor(ne/2);return ne%2?ve+R+1:ve-R}return Y>Ae?ve-(ne-Ae):ve+(ne-Y)}function M(lt,se,ve){var ne=lt.length,Y=se.length,Ae,$;if(ne===0&&Y===0)return null;ne<Y?(Ae=lt,$=se):(Ae=se,$=lt);var R={__EMPTY_ITEM__:!0};function L(ke){return ke!==void 0?ve(ke):R}for(var oe=null,le=Math.abs(ne-Y)!==1,J=0;J<$.length;J+=1){var De=L(Ae[J]),je=L($[J]);if(De!==je){oe=J,le=le||De!==L($[J+1]);break}}return oe===null?null:{index:oe,multiple:le}}function W(lt,se,ve){var ne=m.useState(lt),Y=(0,U.Z)(ne,2),Ae=Y[0],$=Y[1],R=m.useState(null),L=(0,U.Z)(R,2),oe=L[0],le=L[1];return m.useEffect(function(){var J=M(Ae||[],lt||[],se);(J==null?void 0:J.index)!==void 0&&(ve==null||ve(J.index),le(lt[J.index])),$(lt)},[lt]),[oe]}var V=h(16089),b=(typeof navigator=="undefined"?"undefined":(0,N.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),T=b,G=function(lt,se,ve,ne){var Y=(0,m.useRef)(!1),Ae=(0,m.useRef)(null);function $(){clearTimeout(Ae.current),Y.current=!0,Ae.current=setTimeout(function(){Y.current=!1},50)}var R=(0,m.useRef)({top:lt,bottom:se,left:ve,right:ne});return R.current.top=lt,R.current.bottom=se,R.current.left=ve,R.current.right=ne,function(L,oe){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=L?oe<0&&R.current.left||oe>0&&R.current.right:oe<0&&R.current.top||oe>0&&R.current.bottom;return le&&J?(clearTimeout(Ae.current),Y.current=!1):(!J||Y.current)&&$(),!Y.current&&J}};function j(lt,se,ve,ne,Y,Ae,$){var R=(0,m.useRef)(0),L=(0,m.useRef)(null),oe=(0,m.useRef)(null),le=(0,m.useRef)(!1),J=G(se,ve,ne,Y);function De(Ge,gt){if(V.Z.cancel(L.current),!J(!1,gt)){var bt=Ge;if(!bt._virtualHandled)bt._virtualHandled=!0;else return;R.current+=gt,oe.current=gt,T||bt.preventDefault(),L.current=(0,V.Z)(function(){var mt=le.current?10:1;$(R.current*mt,!1),R.current=0})}}function je(Ge,gt){$(gt,!0),T||Ge.preventDefault()}var ke=(0,m.useRef)(null),Pe=(0,m.useRef)(null);function Xe(Ge){if(lt){V.Z.cancel(Pe.current),Pe.current=(0,V.Z)(function(){ke.current=null},2);var gt=Ge.deltaX,bt=Ge.deltaY,mt=Ge.shiftKey,zt=gt,Ct=bt;(ke.current==="sx"||!ke.current&&mt&&bt&&!gt)&&(zt=bt,Ct=0,ke.current="sx");var w=Math.abs(zt),A=Math.abs(Ct);ke.current===null&&(ke.current=Ae&&w>A?"x":"y"),ke.current==="y"?De(Ge,Ct):je(Ge,zt)}}function st(Ge){lt&&(le.current=Ge.detail===oe.current)}return[Xe,st]}function be(lt,se,ve,ne){var Y=m.useMemo(function(){return[new Map,[]]},[lt,ve.id,ne]),Ae=(0,U.Z)(Y,2),$=Ae[0],R=Ae[1],L=function(le){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,De=$.get(le),je=$.get(J);if(De===void 0||je===void 0)for(var ke=lt.length,Pe=R.length;Pe<ke;Pe+=1){var Xe,st=lt[Pe],Ge=se(st);$.set(Ge,Pe);var gt=(Xe=ve.get(Ge))!==null&&Xe!==void 0?Xe:ne;if(R[Pe]=(R[Pe-1]||0)+gt,Ge===le&&(De=Pe),Ge===J&&(je=Pe),De!==void 0&&je!==void 0)break}return{top:R[De-1]||0,bottom:R[je]}};return L}var _e=h(76846),xe=h(6909),de=h(4771),ee=function(){function lt(){(0,xe.Z)(this,lt),(0,ye.Z)(this,"maps",void 0),(0,ye.Z)(this,"id",0),(0,ye.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,de.Z)(lt,[{key:"set",value:function(ve,ne){this.maps[ve]=ne,this.id+=1,this.diffKeys.add(ve)}},{key:"get",value:function(ve){return this.maps[ve]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),lt}(),Z=ee;function pe(lt){var se=parseFloat(lt);return isNaN(se)?0:se}function P(lt,se,ve){var ne=m.useState(0),Y=(0,U.Z)(ne,2),Ae=Y[0],$=Y[1],R=(0,m.useRef)(new Map),L=(0,m.useRef)(new Z),oe=(0,m.useRef)(0);function le(){oe.current+=1}function J(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;le();var ke=function(){var st=!1;R.current.forEach(function(Ge,gt){if(Ge&&Ge.offsetParent){var bt=(0,_e.ZP)(Ge),mt=bt.offsetHeight,zt=getComputedStyle(bt),Ct=zt.marginTop,w=zt.marginBottom,A=pe(Ct),vt=pe(w),ue=mt+A+vt;L.current.get(gt)!==ue&&(L.current.set(gt,ue),st=!0)}}),st&&$(function(Ge){return Ge+1})};if(je)ke();else{oe.current+=1;var Pe=oe.current;Promise.resolve().then(function(){Pe===oe.current&&ke()})}}function De(je,ke){var Pe=lt(je),Xe=R.current.get(Pe);ke?(R.current.set(Pe,ke),J()):R.current.delete(Pe),!Xe!=!ke&&(ke?se==null||se(je):ve==null||ve(je))}return(0,m.useEffect)(function(){return le},[]),[De,J,L.current,Ae]}var ie=14/15;function Q(lt,se,ve){var ne=(0,m.useRef)(!1),Y=(0,m.useRef)(0),Ae=(0,m.useRef)(0),$=(0,m.useRef)(null),R=(0,m.useRef)(null),L,oe=function(je){if(ne.current){var ke=Math.ceil(je.touches[0].pageX),Pe=Math.ceil(je.touches[0].pageY),Xe=Y.current-ke,st=Ae.current-Pe,Ge=Math.abs(Xe)>Math.abs(st);Ge?Y.current=ke:Ae.current=Pe;var gt=ve(Ge,Ge?Xe:st,!1,je);gt&&je.preventDefault(),clearInterval(R.current),gt&&(R.current=setInterval(function(){Ge?Xe*=ie:st*=ie;var bt=Math.floor(Ge?Xe:st);(!ve(Ge,bt,!0)||Math.abs(bt)<=.1)&&clearInterval(R.current)},16))}},le=function(){ne.current=!1,L()},J=function(je){L(),je.touches.length===1&&!ne.current&&(ne.current=!0,Y.current=Math.ceil(je.touches[0].pageX),Ae.current=Math.ceil(je.touches[0].pageY),$.current=je.target,$.current.addEventListener("touchmove",oe,{passive:!1}),$.current.addEventListener("touchend",le,{passive:!0}))};L=function(){$.current&&($.current.removeEventListener("touchmove",oe),$.current.removeEventListener("touchend",le))},(0,I.Z)(function(){return lt&&se.current.addEventListener("touchstart",J,{passive:!0}),function(){var De;(De=se.current)===null||De===void 0||De.removeEventListener("touchstart",J),L(),clearInterval(R.current)}},[lt])}function v(lt){return Math.floor(Math.pow(lt,.5))}function E(lt,se){var ve="touches"in lt?lt.touches[0]:lt;return ve[se?"pageX":"pageY"]-window[se?"scrollX":"scrollY"]}function K(lt,se,ve){m.useEffect(function(){var ne=se.current;if(lt&&ne){var Y=!1,Ae,$,R=function(){V.Z.cancel(Ae)},L=function De(){R(),Ae=(0,V.Z)(function(){ve($),De()})},oe=function(je){if(!je.target.draggable){var ke=je;ke._virtualHandled||(ke._virtualHandled=!0,Y=!0)}},le=function(){Y=!1,R()},J=function(je){if(Y){var ke=E(je,!1),Pe=ne.getBoundingClientRect(),Xe=Pe.top,st=Pe.bottom;if(ke<=Xe){var Ge=Xe-ke;$=-v(Ge),L()}else if(ke>=st){var gt=ke-st;$=v(gt),L()}else R()}};return ne.addEventListener("mousedown",oe),ne.ownerDocument.addEventListener("mouseup",le),ne.ownerDocument.addEventListener("mousemove",J),function(){ne.removeEventListener("mousedown",oe),ne.ownerDocument.removeEventListener("mouseup",le),ne.ownerDocument.removeEventListener("mousemove",J),R()}}},[lt])}var fe=10;function Be(lt,se,ve,ne,Y,Ae,$,R){var L=m.useRef(),oe=m.useState(null),le=(0,U.Z)(oe,2),J=le[0],De=le[1];return(0,I.Z)(function(){if(J&&J.times<fe){if(!lt.current){De(function(ze){return(0,X.Z)({},ze)});return}Ae();var je=J.targetAlign,ke=J.originAlign,Pe=J.index,Xe=J.offset,st=lt.current.clientHeight,Ge=!1,gt=je,bt=null;if(st){for(var mt=je||ke,zt=0,Ct=0,w=0,A=Math.min(se.length-1,Pe),vt=0;vt<=A;vt+=1){var ue=Y(se[vt]);Ct=zt;var Ne=ve.get(ue);w=Ct+(Ne===void 0?ne:Ne),zt=w}for(var bn=mt==="top"?Xe:st-Xe,We=A;We>=0;We-=1){var rt=Y(se[We]),Je=ve.get(rt);if(Je===void 0){Ge=!0;break}if(bn-=Je,bn<=0)break}switch(mt){case"top":bt=Ct-Xe;break;case"bottom":bt=w-st+Xe;break;default:{var Ee=lt.current.scrollTop,Te=Ee+st;Ct<Ee?gt="top":w>Te&&(gt="bottom")}}bt!==null&&$(bt),bt!==J.lastTop&&(Ge=!0)}Ge&&De((0,X.Z)((0,X.Z)({},J),{},{times:J.times+1,targetAlign:gt,lastTop:bt}))}},[J,lt.current]),function(je){if(je==null){R();return}if(V.Z.cancel(L.current),typeof je=="number")$(je);else if(je&&(0,N.Z)(je)==="object"){var ke,Pe=je.align;"index"in je?ke=je.index:ke=se.findIndex(function(Ge){return Y(Ge)===je.key});var Xe=je.offset,st=Xe===void 0?0:Xe;De({times:0,index:ke,offset:st,originAlign:Pe})}}}var Ke=m.forwardRef(function(lt,se){var ve=lt.prefixCls,ne=lt.rtl,Y=lt.scrollOffset,Ae=lt.scrollRange,$=lt.onStartMove,R=lt.onStopMove,L=lt.onScroll,oe=lt.horizontal,le=lt.spinSize,J=lt.containerSize,De=lt.style,je=lt.thumbStyle,ke=lt.showScrollBar,Pe=m.useState(!1),Xe=(0,U.Z)(Pe,2),st=Xe[0],Ge=Xe[1],gt=m.useState(null),bt=(0,U.Z)(gt,2),mt=bt[0],zt=bt[1],Ct=m.useState(null),w=(0,U.Z)(Ct,2),A=w[0],vt=w[1],ue=!ne,Ne=m.useRef(),bn=m.useRef(),We=m.useState(ke),rt=(0,U.Z)(We,2),Je=rt[0],Ee=rt[1],Te=m.useRef(),ze=function(){ke===!0||ke===!1||(clearTimeout(Te.current),Ee(!0),Te.current=setTimeout(function(){Ee(!1)},3e3))},qe=Ae-J||0,ge=J-le||0,Jt=m.useMemo(function(){if(Y===0||qe===0)return 0;var Rt=Y/qe;return Rt*ge},[Y,qe,ge]),He=function(Ft){Ft.stopPropagation(),Ft.preventDefault()},fn=m.useRef({top:Jt,dragging:st,pageY:mt,startTop:A});fn.current={top:Jt,dragging:st,pageY:mt,startTop:A};var An=function(Ft){Ge(!0),zt(E(Ft,oe)),vt(fn.current.top),$(),Ft.stopPropagation(),Ft.preventDefault()};m.useEffect(function(){var Rt=function(xt){xt.preventDefault()},Ft=Ne.current,Ue=bn.current;return Ft.addEventListener("touchstart",Rt,{passive:!1}),Ue.addEventListener("touchstart",An,{passive:!1}),function(){Ft.removeEventListener("touchstart",Rt),Ue.removeEventListener("touchstart",An)}},[]);var Hn=m.useRef();Hn.current=qe;var vr=m.useRef();vr.current=ge,m.useEffect(function(){if(st){var Rt,Ft=function(xt){var St=fn.current,en=St.dragging,jt=St.pageY,sn=St.startTop;V.Z.cancel(Rt);var Xt=Ne.current.getBoundingClientRect(),vn=J/(oe?Xt.width:Xt.height);if(en){var _n=(E(xt,oe)-jt)*vn,Mt=sn;!ue&&oe?Mt-=_n:Mt+=_n;var At=Hn.current,tn=vr.current,an=tn?Mt/tn:0,on=Math.ceil(an*At);on=Math.max(on,0),on=Math.min(on,At),Rt=(0,V.Z)(function(){L(on,oe)})}},Ue=function(){Ge(!1),R()};return window.addEventListener("mousemove",Ft,{passive:!0}),window.addEventListener("touchmove",Ft,{passive:!0}),window.addEventListener("mouseup",Ue,{passive:!0}),window.addEventListener("touchend",Ue,{passive:!0}),function(){window.removeEventListener("mousemove",Ft),window.removeEventListener("touchmove",Ft),window.removeEventListener("mouseup",Ue),window.removeEventListener("touchend",Ue),V.Z.cancel(Rt)}}},[st]),m.useEffect(function(){return ze(),function(){clearTimeout(Te.current)}},[Y]),m.useImperativeHandle(se,function(){return{delayHidden:ze}});var hn="".concat(ve,"-scrollbar"),pn={position:"absolute",visibility:Je?null:"hidden"},et={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return oe?(pn.height=8,pn.left=0,pn.right=0,pn.bottom=0,et.height="100%",et.width=le,ue?et.left=Jt:et.right=Jt):(pn.width=8,pn.top=0,pn.bottom=0,ue?pn.right=0:pn.left=0,et.width="100%",et.height=le,et.top=Jt),m.createElement("div",{ref:Ne,className:me()(hn,(0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(hn,"-horizontal"),oe),"".concat(hn,"-vertical"),!oe),"".concat(hn,"-visible"),Je)),style:(0,X.Z)((0,X.Z)({},pn),De),onMouseDown:He,onMouseMove:ze},m.createElement("div",{ref:bn,className:me()("".concat(hn,"-thumb"),(0,ye.Z)({},"".concat(hn,"-thumb-moving"),st)),style:(0,X.Z)((0,X.Z)({},et),je),onMouseDown:An}))}),Me=Ke,Ye=20;function ht(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve=lt/se*lt;return isNaN(ve)&&(ve=0),ve=Math.max(ve,Ye),Math.floor(ve)}var pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],at=[],Bt={overflowY:"auto",overflowAnchor:"none"};function Vt(lt,se){var ve=lt.prefixCls,ne=ve===void 0?"rc-virtual-list":ve,Y=lt.className,Ae=lt.height,$=lt.itemHeight,R=lt.fullHeight,L=R===void 0?!0:R,oe=lt.style,le=lt.data,J=lt.children,De=lt.itemKey,je=lt.virtual,ke=lt.direction,Pe=lt.scrollWidth,Xe=lt.component,st=Xe===void 0?"div":Xe,Ge=lt.onScroll,gt=lt.onVirtualScroll,bt=lt.onVisibleChange,mt=lt.innerProps,zt=lt.extraRender,Ct=lt.styles,w=lt.showScrollBar,A=w===void 0?"optional":w,vt=(0,H.Z)(lt,pt),ue=m.useCallback(function(On){return typeof De=="function"?De(On):On==null?void 0:On[De]},[De]),Ne=P(ue,null,null),bn=(0,U.Z)(Ne,4),We=bn[0],rt=bn[1],Je=bn[2],Ee=bn[3],Te=!!(je!==!1&&Ae&&$),ze=m.useMemo(function(){return Object.values(Je.maps).reduce(function(On,Fn){return On+Fn},0)},[Je.id,Je.maps]),qe=Te&&le&&(Math.max($*le.length,ze)>Ae||!!Pe),ge=ke==="rtl",Jt=me()(ne,(0,ye.Z)({},"".concat(ne,"-rtl"),ge),Y),He=le||at,fn=(0,m.useRef)(),An=(0,m.useRef)(),Hn=(0,m.useRef)(),vr=(0,m.useState)(0),hn=(0,U.Z)(vr,2),pn=hn[0],et=hn[1],Rt=(0,m.useState)(0),Ft=(0,U.Z)(Rt,2),Ue=Ft[0],Oe=Ft[1],xt=(0,m.useState)(!1),St=(0,U.Z)(xt,2),en=St[0],jt=St[1],sn=function(){jt(!0)},Xt=function(){jt(!1)},vn={getKey:ue};function _n(On){et(function(Fn){var mr;typeof On=="function"?mr=On(Fn):mr=On;var kr=hr(mr);return fn.current.scrollTop=kr,kr})}var Mt=(0,m.useRef)({start:0,end:He.length}),At=(0,m.useRef)(),tn=W(He,ue),an=(0,U.Z)(tn,1),on=an[0];At.current=on;var Tn=m.useMemo(function(){if(!Te)return{scrollHeight:void 0,start:0,end:He.length-1,offset:void 0};if(!qe){var On;return{scrollHeight:((On=An.current)===null||On===void 0?void 0:On.offsetHeight)||0,start:0,end:He.length-1,offset:void 0}}for(var Fn=0,mr,kr,qr,Un=He.length,Ur=0;Ur<Un;Ur+=1){var jr=He[Ur],fi=ue(jr),Li=Je.get(fi),Ei=Fn+(Li===void 0?$:Li);Ei>=pn&&mr===void 0&&(mr=Ur,kr=Fn),Ei>pn+Ae&&qr===void 0&&(qr=Ur),Fn=Ei}return mr===void 0&&(mr=0,kr=0,qr=Math.ceil(Ae/$)),qr===void 0&&(qr=He.length-1),qr=Math.min(qr+1,He.length-1),{scrollHeight:Fn,start:mr,end:qr,offset:kr}},[qe,Te,pn,He,Ee,Ae]),er=Tn.scrollHeight,Pn=Tn.start,Yt=Tn.end,ct=Tn.offset;Mt.current.start=Pn,Mt.current.end=Yt,m.useLayoutEffect(function(){var On=Je.getRecord();if(On.size===1){var Fn=Array.from(On)[0],mr=He[Pn];if(mr){var kr=ue(mr);if(kr===Fn){var qr=Je.get(Fn),Un=qr-$;_n(function(Ur){return Ur+Un})}}}Je.resetRecord()},[er]);var ft=m.useState({width:0,height:Ae}),Dt=(0,U.Z)(ft,2),Ot=Dt[0],Tt=Dt[1],Kt=function(Fn){Tt({width:Fn.offsetWidth,height:Fn.offsetHeight})},Nt=(0,m.useRef)(),ln=(0,m.useRef)(),xn=m.useMemo(function(){return ht(Ot.width,Pe)},[Ot.width,Pe]),Rn=m.useMemo(function(){return ht(Ot.height,er)},[Ot.height,er]),Qn=er-Ae,Jn=(0,m.useRef)(Qn);Jn.current=Qn;function hr(On){var Fn=On;return Number.isNaN(Jn.current)||(Fn=Math.min(Fn,Jn.current)),Fn=Math.max(Fn,0),Fn}var En=pn<=0,yn=pn>=Qn,pr=Ue<=0,Zn=Ue>=Pe,Rr=G(En,yn,pr,Zn),qn=function(){return{x:ge?-Ue:Ue,y:pn}},cr=(0,m.useRef)(qn()),gr=(0,C.useEvent)(function(On){if(gt){var Fn=(0,X.Z)((0,X.Z)({},qn()),On);(cr.current.x!==Fn.x||cr.current.y!==Fn.y)&&(gt(Fn),cr.current=Fn)}});function tr(On,Fn){var mr=On;Fn?((0,u.flushSync)(function(){Oe(mr)}),gr()):_n(mr)}function Or(On){var Fn=On.currentTarget.scrollTop;Fn!==pn&&_n(Fn),Ge==null||Ge(On),gr()}var Vr=function(Fn){var mr=Fn,kr=Pe?Pe-Ot.width:0;return mr=Math.max(mr,0),mr=Math.min(mr,kr),mr},Xn=(0,C.useEvent)(function(On,Fn){Fn?((0,u.flushSync)(function(){Oe(function(mr){var kr=mr+(ge?-On:On);return Vr(kr)})}),gr()):_n(function(mr){var kr=mr+On;return kr})}),Dn=j(Te,En,yn,pr,Zn,!!Pe,Xn),nt=(0,U.Z)(Dn,2),$n=nt[0],ar=nt[1];Q(Te,fn,function(On,Fn,mr,kr){var qr=kr;return Rr(On,Fn,mr)?!1:!qr||!qr._virtualHandled?(qr&&(qr._virtualHandled=!0),$n({preventDefault:function(){},deltaX:On?Fn:0,deltaY:On?0:Fn}),!0):!1}),K(qe,fn,function(On){_n(function(Fn){return Fn+On})}),(0,I.Z)(function(){function On(mr){var kr=En&&mr.detail<0,qr=yn&&mr.detail>0;Te&&!kr&&!qr&&mr.preventDefault()}var Fn=fn.current;return Fn.addEventListener("wheel",$n,{passive:!1}),Fn.addEventListener("DOMMouseScroll",ar,{passive:!0}),Fn.addEventListener("MozMousePixelScroll",On,{passive:!1}),function(){Fn.removeEventListener("wheel",$n),Fn.removeEventListener("DOMMouseScroll",ar),Fn.removeEventListener("MozMousePixelScroll",On)}},[Te,En,yn]),(0,I.Z)(function(){if(Pe){var On=Vr(Ue);Oe(On),gr({x:On})}},[Ot.width,Pe]);var Cr=function(){var Fn,mr;(Fn=Nt.current)===null||Fn===void 0||Fn.delayHidden(),(mr=ln.current)===null||mr===void 0||mr.delayHidden()},Tr=Be(fn,He,Je,$,ue,function(){return rt(!0)},_n,Cr);m.useImperativeHandle(se,function(){return{nativeElement:Hn.current,getScrollInfo:qn,scrollTo:function(Fn){function mr(kr){return kr&&(0,N.Z)(kr)==="object"&&("left"in kr||"top"in kr)}mr(Fn)?(Fn.left!==void 0&&Oe(Vr(Fn.left)),Tr(Fn.top)):Tr(Fn)}}}),(0,I.Z)(function(){if(bt){var On=He.slice(Pn,Yt+1);bt(On,He)}},[Pn,Yt,He]);var Mr=be(He,ue,Je,$),Hr=zt==null?void 0:zt({start:Pn,end:Yt,virtual:qe,offsetX:Ue,offsetY:ct,rtl:ge,getSize:Mr}),xr=te(He,Pn,Yt,Pe,Ue,We,J,vn),$r=null;Ae&&($r=(0,X.Z)((0,ye.Z)({},L?"height":"maxHeight",Ae),Bt),Te&&($r.overflowY="hidden",Pe&&($r.overflowX="hidden"),en&&($r.pointerEvents="none")));var Wr={};return ge&&(Wr.dir="rtl"),m.createElement("div",(0,z.Z)({ref:Hn,style:(0,X.Z)((0,X.Z)({},oe),{},{position:"relative"}),className:Jt},Wr,vt),m.createElement(a.Z,{onResize:Kt},m.createElement(st,{className:"".concat(ne,"-holder"),style:$r,ref:fn,onScroll:Or,onMouseEnter:Cr},m.createElement(y,{prefixCls:ne,height:er,offsetX:Ue,offsetY:ct,scrollWidth:Pe,onInnerResize:rt,ref:An,innerProps:mt,rtl:ge,extra:Hr},xr))),qe&&er>Ae&&m.createElement(Me,{ref:Nt,prefixCls:ne,scrollOffset:pn,scrollRange:er,rtl:ge,onScroll:tr,onStartMove:sn,onStopMove:Xt,spinSize:Rn,containerSize:Ot.height,style:Ct==null?void 0:Ct.verticalScrollBar,thumbStyle:Ct==null?void 0:Ct.verticalScrollBarThumb,showScrollBar:A}),qe&&Pe>Ot.width&&m.createElement(Me,{ref:ln,prefixCls:ne,scrollOffset:Ue,scrollRange:Pe,rtl:ge,onScroll:tr,onStartMove:sn,onStopMove:Xt,spinSize:xn,containerSize:Ot.width,horizontal:!0,style:Ct==null?void 0:Ct.horizontalScrollBar,thumbStyle:Ct==null?void 0:Ct.horizontalScrollBarThumb,showScrollBar:A}))}var qt=m.forwardRef(Vt);qt.displayName="List";var $t=qt,Gt=$t},83145:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.CopyToClipboard=void 0;var z=X(h(59301)),N=X(h(25769));function X(M){return M&&M.__esModule?M:{default:M}}function ye(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(V){return typeof V}:ye=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},ye(M)}function U(M,W){var V=Object.keys(M);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(M);W&&(b=b.filter(function(T){return Object.getOwnPropertyDescriptor(M,T).enumerable})),V.push.apply(V,b)}return V}function H(M){for(var W=1;W<arguments.length;W++){var V=arguments[W]!=null?arguments[W]:{};W%2?U(V,!0).forEach(function(b){te(M,b,V[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(V)):U(V).forEach(function(b){Object.defineProperty(M,b,Object.getOwnPropertyDescriptor(V,b))})}return M}function S(M,W){if(M==null)return{};var V=me(M,W),b,T;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(M);for(T=0;T<G.length;T++)b=G[T],!(W.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(M,b)&&(V[b]=M[b])}return V}function me(M,W){if(M==null)return{};var V={},b=Object.keys(M),T,G;for(G=0;G<b.length;G++)T=b[G],!(W.indexOf(T)>=0)&&(V[T]=M[T]);return V}function a(M,W){if(!(M instanceof W))throw new TypeError("Cannot call a class as a function")}function C(M,W){for(var V=0;V<W.length;V++){var b=W[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,b.key,b)}}function I(M,W,V){return W&&C(M.prototype,W),V&&C(M,V),M}function m(M,W){return W&&(ye(W)==="object"||typeof W=="function")?W:x(M)}function u(M){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},u(M)}function x(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function y(M,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(W&&W.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),W&&O(M,W)}function O(M,W){return O=Object.setPrototypeOf||function(b,T){return b.__proto__=T,b},O(M,W)}function te(M,W,V){return W in M?Object.defineProperty(M,W,{value:V,enumerable:!0,configurable:!0,writable:!0}):M[W]=V,M}var B=function(M){y(W,M);function W(){var V,b;a(this,W);for(var T=arguments.length,G=new Array(T),j=0;j<T;j++)G[j]=arguments[j];return b=m(this,(V=u(W)).call.apply(V,[this].concat(G))),te(x(b),"onClick",function(be){var _e=b.props,xe=_e.text,de=_e.onCopy,ee=_e.children,Z=_e.options,pe=z.default.Children.only(ee),P=(0,N.default)(xe,Z);de&&de(xe,P),pe&&pe.props&&typeof pe.props.onClick=="function"&&pe.props.onClick(be)}),b}return I(W,[{key:"render",value:function(){var b=this.props,T=b.text,G=b.onCopy,j=b.options,be=b.children,_e=S(b,["text","onCopy","options","children"]),xe=z.default.Children.only(be);return z.default.cloneElement(xe,H({},_e,{onClick:this.onClick}))}}]),W}(z.default.PureComponent);Ze.CopyToClipboard=B,te(B,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Wt,Ze,h){"use strict";var z=h(83145),N=z.CopyToClipboard;N.CopyToClipboard=N,Wt.exports=N},76374:function(Wt,Ze,h){"use strict";var z=function(){if(typeof Map!="undefined")return Map;function ee(Z,pe){var P=-1;return Z.some(function(ie,Q){return ie[0]===pe?(P=Q,!0):!1}),P}return function(){function Z(){this.__entries__=[]}return Object.defineProperty(Z.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Z.prototype.get=function(pe){var P=ee(this.__entries__,pe),ie=this.__entries__[P];return ie&&ie[1]},Z.prototype.set=function(pe,P){var ie=ee(this.__entries__,pe);~ie?this.__entries__[ie][1]=P:this.__entries__.push([pe,P])},Z.prototype.delete=function(pe){var P=this.__entries__,ie=ee(P,pe);~ie&&P.splice(ie,1)},Z.prototype.has=function(pe){return!!~ee(this.__entries__,pe)},Z.prototype.clear=function(){this.__entries__.splice(0)},Z.prototype.forEach=function(pe,P){P===void 0&&(P=null);for(var ie=0,Q=this.__entries__;ie<Q.length;ie++){var v=Q[ie];pe.call(P,v[1],v[0])}},Z}()}(),N=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,X=function(){return typeof h.g!="undefined"&&h.g.Math===Math?h.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ye=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(X):function(ee){return setTimeout(function(){return ee(Date.now())},1e3/60)}}(),U=2;function H(ee,Z){var pe=!1,P=!1,ie=0;function Q(){pe&&(pe=!1,ee()),P&&E()}function v(){ye(Q)}function E(){var K=Date.now();if(pe){if(K-ie<U)return;P=!0}else pe=!0,P=!1,setTimeout(v,Z);ie=K}return E}var S=20,me=["top","right","bottom","left","width","height","size","weight"],a=typeof MutationObserver!="undefined",C=function(){function ee(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=H(this.refresh.bind(this),S)}return ee.prototype.addObserver=function(Z){~this.observers_.indexOf(Z)||this.observers_.push(Z),this.connected_||this.connect_()},ee.prototype.removeObserver=function(Z){var pe=this.observers_,P=pe.indexOf(Z);~P&&pe.splice(P,1),!pe.length&&this.connected_&&this.disconnect_()},ee.prototype.refresh=function(){var Z=this.updateObservers_();Z&&this.refresh()},ee.prototype.updateObservers_=function(){var Z=this.observers_.filter(function(pe){return pe.gatherActive(),pe.hasActive()});return Z.forEach(function(pe){return pe.broadcastActive()}),Z.length>0},ee.prototype.connect_=function(){!N||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(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)},ee.prototype.disconnect_=function(){!N||!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)},ee.prototype.onTransitionEnd_=function(Z){var pe=Z.propertyName,P=pe===void 0?"":pe,ie=me.some(function(Q){return!!~P.indexOf(Q)});ie&&this.refresh()},ee.getInstance=function(){return this.instance_||(this.instance_=new ee),this.instance_},ee.instance_=null,ee}(),I=function(ee,Z){for(var pe=0,P=Object.keys(Z);pe<P.length;pe++){var ie=P[pe];Object.defineProperty(ee,ie,{value:Z[ie],enumerable:!1,writable:!1,configurable:!0})}return ee},m=function(ee){var Z=ee&&ee.ownerDocument&&ee.ownerDocument.defaultView;return Z||X},u=T(0,0,0,0);function x(ee){return parseFloat(ee)||0}function y(ee){for(var Z=[],pe=1;pe<arguments.length;pe++)Z[pe-1]=arguments[pe];return Z.reduce(function(P,ie){var Q=ee["border-"+ie+"-width"];return P+x(Q)},0)}function O(ee){for(var Z=["top","right","bottom","left"],pe={},P=0,ie=Z;P<ie.length;P++){var Q=ie[P],v=ee["padding-"+Q];pe[Q]=x(v)}return pe}function te(ee){var Z=ee.getBBox();return T(0,0,Z.width,Z.height)}function B(ee){var Z=ee.clientWidth,pe=ee.clientHeight;if(!Z&&!pe)return u;var P=m(ee).getComputedStyle(ee),ie=O(P),Q=ie.left+ie.right,v=ie.top+ie.bottom,E=x(P.width),K=x(P.height);if(P.boxSizing==="border-box"&&(Math.round(E+Q)!==Z&&(E-=y(P,"left","right")+Q),Math.round(K+v)!==pe&&(K-=y(P,"top","bottom")+v)),!W(ee)){var fe=Math.round(E+Q)-Z,Be=Math.round(K+v)-pe;Math.abs(fe)!==1&&(E-=fe),Math.abs(Be)!==1&&(K-=Be)}return T(ie.left,ie.top,E,K)}var M=function(){return typeof SVGGraphicsElement!="undefined"?function(ee){return ee instanceof m(ee).SVGGraphicsElement}:function(ee){return ee instanceof m(ee).SVGElement&&typeof ee.getBBox=="function"}}();function W(ee){return ee===m(ee).document.documentElement}function V(ee){return N?M(ee)?te(ee):B(ee):u}function b(ee){var Z=ee.x,pe=ee.y,P=ee.width,ie=ee.height,Q=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,v=Object.create(Q.prototype);return I(v,{x:Z,y:pe,width:P,height:ie,top:pe,right:Z+P,bottom:ie+pe,left:Z}),v}function T(ee,Z,pe,P){return{x:ee,y:Z,width:pe,height:P}}var G=function(){function ee(Z){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=Z}return ee.prototype.isActive=function(){var Z=V(this.target);return this.contentRect_=Z,Z.width!==this.broadcastWidth||Z.height!==this.broadcastHeight},ee.prototype.broadcastRect=function(){var Z=this.contentRect_;return this.broadcastWidth=Z.width,this.broadcastHeight=Z.height,Z},ee}(),j=function(){function ee(Z,pe){var P=b(pe);I(this,{target:Z,contentRect:P})}return ee}(),be=function(){function ee(Z,pe,P){if(this.activeObservations_=[],this.observations_=new z,typeof Z!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Z,this.controller_=pe,this.callbackCtx_=P}return ee.prototype.observe=function(Z){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(Z instanceof m(Z).Element))throw new TypeError('parameter 1 is not of type "Element".');var pe=this.observations_;pe.has(Z)||(pe.set(Z,new G(Z)),this.controller_.addObserver(this),this.controller_.refresh())}},ee.prototype.unobserve=function(Z){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(Z instanceof m(Z).Element))throw new TypeError('parameter 1 is not of type "Element".');var pe=this.observations_;pe.has(Z)&&(pe.delete(Z),pe.size||this.controller_.removeObserver(this))}},ee.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ee.prototype.gatherActive=function(){var Z=this;this.clearActive(),this.observations_.forEach(function(pe){pe.isActive()&&Z.activeObservations_.push(pe)})},ee.prototype.broadcastActive=function(){if(this.hasActive()){var Z=this.callbackCtx_,pe=this.activeObservations_.map(function(P){return new j(P.target,P.broadcastRect())});this.callback_.call(Z,pe,Z),this.clearActive()}},ee.prototype.clearActive=function(){this.activeObservations_.splice(0)},ee.prototype.hasActive=function(){return this.activeObservations_.length>0},ee}(),_e=typeof WeakMap!="undefined"?new WeakMap:new z,xe=function(){function ee(Z){if(!(this instanceof ee))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var pe=C.getInstance(),P=new be(Z,pe,this);_e.set(this,P)}return ee}();["observe","unobserve","disconnect"].forEach(function(ee){xe.prototype[ee]=function(){var Z;return(Z=_e.get(this))[ee].apply(Z,arguments)}});var de=function(){return typeof X.ResizeObserver!="undefined"?X.ResizeObserver:xe}();Ze.Z=de},27774:function(Wt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.SizeSensorId=Ze.SensorTabIndex=Ze.SensorClassName=void 0;var h="size-sensor-id";Ze.SizeSensorId=h;var z="size-sensor-object";Ze.SensorClassName=z;var N="-1";Ze.SensorTabIndex=N},79301:function(Wt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var h=function(N){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,ye=null;return function(){for(var U=this,H=arguments.length,S=new Array(H),me=0;me<H;me++)S[me]=arguments[me];clearTimeout(ye),ye=setTimeout(function(){N.apply(U,S)},X)}};Ze.default=h},79789:function(Wt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var h=1,z=function(){return"".concat(h++)};Ze.default=z},47242:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.ver=Ze.clear=Ze.bind=void 0;var z=h(95270),N=function(H,S){var me=(0,z.getSensor)(H);return me.bind(S),function(){me.unbind(S)}};Ze.bind=N;var X=function(H){var S=(0,z.getSensor)(H);(0,z.removeSensor)(S)};Ze.clear=X;var ye="1.0.2";Ze.ver=ye},95270:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.removeSensor=Ze.getSensor=Ze.Sensors=void 0;var z=ye(h(79789)),N=h(57829),X=h(27774);function ye(a){return a&&a.__esModule?a:{default:a}}var U={};Ze.Sensors=U;function H(a){a&&U[a]&&delete U[a]}var S=function(C){var I=C.getAttribute(X.SizeSensorId);if(I&&U[I])return U[I];var m=(0,z.default)();C.setAttribute(X.SizeSensorId,m);var u=(0,N.createSensor)(C,function(){return H(m)});return U[m]=u,u};Ze.getSensor=S;var me=function(C){var I=C.element.getAttribute(X.SizeSensorId);C.destroy(),H(I)};Ze.removeSensor=me},57829:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.createSensor=void 0;var z=h(20953),N=h(55202),X=typeof ResizeObserver!="undefined"?N.createSensor:z.createSensor;Ze.createSensor=X},20953:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.createSensor=void 0;var z=X(h(79301)),N=h(27774);function X(U){return U&&U.__esModule?U:{default:U}}var ye=function(H,S){var me=void 0,a=[],C=function(){getComputedStyle(H).position==="static"&&(H.style.position="relative");var O=document.createElement("object");return O.onload=function(){O.contentDocument.defaultView.addEventListener("resize",I),I()},O.style.display="block",O.style.position="absolute",O.style.top="0",O.style.left="0",O.style.height="100%",O.style.width="100%",O.style.overflow="hidden",O.style.pointerEvents="none",O.style.zIndex="-1",O.style.opacity="0",O.setAttribute("class",N.SensorClassName),O.setAttribute("tabindex",N.SensorTabIndex),O.type="text/html",H.appendChild(O),O.data="about:blank",O},I=(0,z.default)(function(){a.forEach(function(y){y(H)})}),m=function(O){me||(me=C()),a.indexOf(O)===-1&&a.push(O)},u=function(){me&&me.parentNode&&(me.contentDocument&&me.contentDocument.defaultView.removeEventListener("resize",I),me.parentNode.removeChild(me),H.removeAttribute(N.SizeSensorId),me=void 0,a=[],S&&S())},x=function(O){var te=a.indexOf(O);te!==-1&&a.splice(te,1),a.length===0&&me&&u()};return{element:H,bind:m,destroy:u,unbind:x}};Ze.createSensor=ye},55202:function(Wt,Ze,h){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.createSensor=void 0;var z=h(27774),N=X(h(79301));function X(U){return U&&U.__esModule?U:{default:U}}var ye=function(H,S){var me=void 0,a=[],C=(0,N.default)(function(){a.forEach(function(y){y(H)})}),I=function(){var O=new ResizeObserver(C);return O.observe(H),C(),O},m=function(O){me||(me=I()),a.indexOf(O)===-1&&a.push(O)},u=function(){me.disconnect(),a=[],me=void 0,H.removeAttribute(z.SizeSensorId),S&&S()},x=function(O){var te=a.indexOf(O);te!==-1&&a.splice(te,1),a.length===0&&me&&u()};return{element:H,bind:m,destroy:u,unbind:x}};Ze.createSensor=ye},98040:function(Wt){Wt.exports=function(){var Ze=document.getSelection();if(!Ze.rangeCount)return function(){};for(var h=document.activeElement,z=[],N=0;N<Ze.rangeCount;N++)z.push(Ze.getRangeAt(N));switch(h.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":h.blur();break;default:h=null;break}return Ze.removeAllRanges(),function(){Ze.type==="Caret"&&Ze.removeAllRanges(),Ze.rangeCount||z.forEach(function(X){Ze.addRange(X)}),h&&h.focus()}}},1012:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return m}});var z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),N=new Uint8Array(16);function X(){if(!z)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return z(N)}var ye=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function U(u){return typeof u=="string"&&ye.test(u)}for(var H=U,S=[],me=0;me<256;++me)S.push((me+256).toString(16).substr(1));function a(u){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=(S[u[x+0]]+S[u[x+1]]+S[u[x+2]]+S[u[x+3]]+"-"+S[u[x+4]]+S[u[x+5]]+"-"+S[u[x+6]]+S[u[x+7]]+"-"+S[u[x+8]]+S[u[x+9]]+"-"+S[u[x+10]]+S[u[x+11]]+S[u[x+12]]+S[u[x+13]]+S[u[x+14]]+S[u[x+15]]).toLowerCase();if(!H(y))throw TypeError("Stringified UUID is invalid");return y}var C=a;function I(u,x,y){u=u||{};var O=u.random||(u.rng||X)();if(O[6]=O[6]&15|64,O[8]=O[8]&63|128,x){y=y||0;for(var te=0;te<16;++te)x[y+te]=O[te];return x}return C(O)}var m=I},93314:function(Wt){"use strict";Wt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},40846:function(Wt,Ze,h){"use strict";h.d(Ze,{ZP:function(){return Ys}});function z(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var N={exports:{}};(function(o,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(p,_,D){if(D=D||{},p=p.trim(),_=_.trim(),!_){if(!D.alwaysNormalize)return p;var F=c.parseURL(p);if(!F)throw new Error("Error trying to parse base URL.");return F.path=c.normalizePath(F.path),c.buildURLFromParts(F)}var he=c.parseURL(_);if(!he)throw new Error("Error trying to parse relative URL.");if(he.scheme)return D.alwaysNormalize?(he.path=c.normalizePath(he.path),c.buildURLFromParts(he)):_;var Ce=c.parseURL(p);if(!Ce)throw new Error("Error trying to parse base URL.");if(!Ce.netLoc&&Ce.path&&Ce.path[0]!=="/"){var we=r.exec(Ce.path);Ce.netLoc=we[1],Ce.path=we[2]}Ce.netLoc&&!Ce.path&&(Ce.path="/");var Ie={scheme:Ce.scheme,netLoc:he.netLoc,path:null,params:he.params,query:he.query,fragment:he.fragment};if(!he.netLoc&&(Ie.netLoc=Ce.netLoc,he.path[0]!=="/"))if(!he.path)Ie.path=Ce.path,he.params||(Ie.params=Ce.params,he.query||(Ie.query=Ce.query));else{var $e=Ce.path,ot=$e.substring(0,$e.lastIndexOf("/")+1)+he.path;Ie.path=c.normalizePath(ot)}return Ie.path===null&&(Ie.path=D.alwaysNormalize?c.normalizePath(he.path):he.path),c.buildURLFromParts(Ie)},parseURL:function(p){var _=n.exec(p);return _?{scheme:_[1]||"",netLoc:_[2]||"",path:_[3]||"",params:_[4]||"",query:_[5]||"",fragment:_[6]||""}:null},normalizePath:function(p){for(p=p.split("").reverse().join("").replace(i,"");p.length!==(p=p.replace(s,"")).length;);return p.split("").reverse().join("")},buildURLFromParts:function(p){return p.scheme+p.netLoc+p.path+p.params+p.query+p.fragment}};o.exports=c})()})(N);var X=N.exports;function ye(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function U(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ye(Object(t),!0).forEach(function(n){me(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function H(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function S(o){var e=H(o,"string");return typeof e=="symbol"?e:String(e)}function me(o,e,t){return e=S(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function a(){return a=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},a.apply(this,arguments)}const C=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},I=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=m},m=Number.MAX_SAFE_INTEGER||9007199254740991;let u=function(o){return o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.BUFFER_RESET="hlsBufferReset",o.BUFFER_CODECS="hlsBufferCodecs",o.BUFFER_CREATED="hlsBufferCreated",o.BUFFER_APPENDING="hlsBufferAppending",o.BUFFER_APPENDED="hlsBufferAppended",o.BUFFER_EOS="hlsBufferEos",o.BUFFER_FLUSHING="hlsBufferFlushing",o.BUFFER_FLUSHED="hlsBufferFlushed",o.MANIFEST_LOADING="hlsManifestLoading",o.MANIFEST_LOADED="hlsManifestLoaded",o.MANIFEST_PARSED="hlsManifestParsed",o.LEVEL_SWITCHING="hlsLevelSwitching",o.LEVEL_SWITCHED="hlsLevelSwitched",o.LEVEL_LOADING="hlsLevelLoading",o.LEVEL_LOADED="hlsLevelLoaded",o.LEVEL_UPDATED="hlsLevelUpdated",o.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",o.LEVELS_UPDATED="hlsLevelsUpdated",o.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",o.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",o.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",o.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",o.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",o.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",o.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",o.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",o.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",o.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",o.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",o.CUES_PARSED="hlsCuesParsed",o.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",o.INIT_PTS_FOUND="hlsInitPtsFound",o.FRAG_LOADING="hlsFragLoading",o.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",o.FRAG_LOADED="hlsFragLoaded",o.FRAG_DECRYPTED="hlsFragDecrypted",o.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",o.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",o.FRAG_PARSING_METADATA="hlsFragParsingMetadata",o.FRAG_PARSED="hlsFragParsed",o.FRAG_BUFFERED="hlsFragBuffered",o.FRAG_CHANGED="hlsFragChanged",o.FPS_DROP="hlsFpsDrop",o.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",o.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",o.ERROR="hlsError",o.DESTROYING="hlsDestroying",o.KEY_LOADING="hlsKeyLoading",o.KEY_LOADED="hlsKeyLoaded",o.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",o.BACK_BUFFER_REACHED="hlsBackBufferReached",o.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",o}({}),x=function(o){return o.NETWORK_ERROR="networkError",o.MEDIA_ERROR="mediaError",o.KEY_SYSTEM_ERROR="keySystemError",o.MUX_ERROR="muxError",o.OTHER_ERROR="otherError",o}({}),y=function(o){return o.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",o.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",o.KEY_SYSTEM_NO_SESSION="keySystemNoSession",o.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",o.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",o.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",o.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",o.MANIFEST_LOAD_ERROR="manifestLoadError",o.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",o.MANIFEST_PARSING_ERROR="manifestParsingError",o.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",o.LEVEL_EMPTY_ERROR="levelEmptyError",o.LEVEL_LOAD_ERROR="levelLoadError",o.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",o.LEVEL_PARSING_ERROR="levelParsingError",o.LEVEL_SWITCH_ERROR="levelSwitchError",o.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",o.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",o.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",o.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",o.FRAG_LOAD_ERROR="fragLoadError",o.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",o.FRAG_DECRYPT_ERROR="fragDecryptError",o.FRAG_PARSING_ERROR="fragParsingError",o.FRAG_GAP="fragGap",o.REMUX_ALLOC_ERROR="remuxAllocError",o.KEY_LOAD_ERROR="keyLoadError",o.KEY_LOAD_TIMEOUT="keyLoadTimeOut",o.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",o.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",o.BUFFER_APPEND_ERROR="bufferAppendError",o.BUFFER_APPENDING_ERROR="bufferAppendingError",o.BUFFER_STALLED_ERROR="bufferStalledError",o.BUFFER_FULL_ERROR="bufferFullError",o.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",o.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",o.INTERNAL_EXCEPTION="internalException",o.INTERNAL_ABORTED="aborted",o.UNKNOWN="unknown",o}({});const O=function(){},te={trace:O,debug:O,log:O,warn:O,info:O,error:O};let B=te;function M(o){const e=self.console[o];return e?e.bind(self.console,`[${o}] >`):O}function W(o,...e){e.forEach(function(t){B[t]=o[t]?o[t].bind(o):M(t)})}function V(o,e){if(typeof console=="object"&&o===!0||typeof o=="object"){W(o,"debug","log","info","warn","error");try{B.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){B=te}}else B=te}const b=B,T=/^(\d+)x(\d+)$/,G=/(.+?)=(".*?"|.*?)(?:,|$)/g;class j{constructor(e){typeof e=="string"&&(e=j.parseAttrList(e)),a(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}else return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=T.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for(G.lastIndex=0;(t=G.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const s=t[1].trim();n[s]=i}return n}}function be(o){return o!=="ID"&&o!=="CLASS"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function _e(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"}class xe{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){b.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=a(new j({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);C(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(C(e))return e}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 isValid(){return!!this.id&&!this._badValueForSameId&&C(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class de{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var ee={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Z{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[ee.AUDIO]:null,[ee.VIDEO]:null,[ee.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=X.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class pe extends Z{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new de,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!C(this.programDateTime))return null;const e=C(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:c}=this,p=c[e];if(!p){c[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}p.startPTS=Math.min(p.startPTS,t),p.endPTS=Math.max(p.endPTS,n),p.startDTS=Math.min(p.startDTS,r),p.endDTS=Math.max(p.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[ee.AUDIO]=null,e[ee.VIDEO]=null,e[ee.AUDIOVIDEO]=null}}class P extends Z{constructor(e,t,n,r,i){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.stats=new de,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}const ie=10;class Q{constructor(e){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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?C(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||ie}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function v(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function E(o){const e=Be(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function K(o){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(o,0,3),e(o,1,2),e(o,4,5),e(o,6,7)}function fe(o){const e=o.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=v(s)):t=E(s)}}return t}function Be(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}const Ke=typeof self!="undefined"?self:void 0;var Me={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ye={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function ht(o){switch(o){case Ye.FAIRPLAY:return Me.FAIRPLAY;case Ye.PLAYREADY:return Me.PLAYREADY;case Ye.WIDEVINE:return Me.WIDEVINE;case Ye.CLEARKEY:return Me.CLEARKEY}}var pt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function at(o){if(o===pt.WIDEVINE)return Me.WIDEVINE;if(o===pt.PLAYREADY)return Me.PLAYREADY;if(o===pt.CENC||o===pt.CLEARKEY)return Me.CLEARKEY}function Bt(o){switch(o){case Me.FAIRPLAY:return Ye.FAIRPLAY;case Me.PLAYREADY:return Ye.PLAYREADY;case Me.WIDEVINE:return Ye.WIDEVINE;case Me.CLEARKEY:return Ye.CLEARKEY}}function Vt(o){const{drmSystems:e,widevineLicenseUrl:t}=o,n=e?[Me.FAIRPLAY,Me.WIDEVINE,Me.PLAYREADY,Me.CLEARKEY].filter(r=>!!e[r]):[];return!n[Me.WIDEVINE]&&t&&n.push(Me.WIDEVINE),n}const qt=function(o){return Ke!=null&&(o=Ke.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function $t(o,e,t,n){let r;switch(o){case Me.FAIRPLAY:r=["cenc","sinf"];break;case Me.WIDEVINE:case Me.PLAYREADY:r=["cenc"];break;case Me.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return Gt(r,e,t,n)}function Gt(o,e,t,n){return[{initDataTypes:o,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs="${i}"`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs="${i}"`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function lt(o){const e=new Uint16Array(o.buffer,o.byteOffset,o.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const c=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(c){const p=v(c).subarray(0,16);return K(p),p}}return null}function se(o,e,t){return Uint8Array.prototype.slice?o.slice(e,t):new Uint8Array(Array.prototype.slice.call(o,e,t))}const ve=(o,e)=>e+10<=o.length&&o[e]===73&&o[e+1]===68&&o[e+2]===51&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128,ne=(o,e)=>e+10<=o.length&&o[e]===51&&o[e+1]===68&&o[e+2]===73&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128,Y=(o,e)=>{const t=e;let n=0;for(;ve(o,e);){n+=10;const r=Ae(o,e+6);n+=r,ne(o,e+10)&&(n+=10),e+=n}if(n>0)return o.subarray(t,t+n)},Ae=(o,e)=>{let t=0;return t=(o[e]&127)<<21,t|=(o[e+1]&127)<<14,t|=(o[e+2]&127)<<7,t|=o[e+3]&127,t},$=(o,e)=>ve(o,e)&&Ae(o,e+6)+10<=o.length-e,R=o=>{const e=le(o);for(let t=0;t<e.length;t++){const n=e[t];if(L(n))return Pe(n)}},L=o=>o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp",oe=o=>{const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=Ae(o,4),n=10;return{type:e,size:t,data:o.subarray(n,n+t)}},le=o=>{let e=0;const t=[];for(;ve(o,e);){const n=Ae(o,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=oe(o.subarray(e)),s=J(i);s&&t.push(s),e+=i.size+10}ne(o,e)&&(e+=10)}return t},J=o=>o.type==="PRIV"?De(o):o.type[0]==="W"?ke(o):je(o),De=o=>{if(o.size<2)return;const e=Xe(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}},je=o=>{if(o.size<2)return;if(o.type==="TXXX"){let t=1;const n=Xe(o.data.subarray(t),!0);t+=n.length+1;const r=Xe(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Xe(o.data.subarray(1));return{key:o.type,data:e}},ke=o=>{if(o.type==="WXXX"){if(o.size<2)return;let t=1;const n=Xe(o.data.subarray(t),!0);t+=n.length+1;const r=Xe(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Xe(o.data);return{key:o.type,data:e}},Pe=o=>{if(o.data.byteLength===8){const e=new Uint8Array(o.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}},Xe=(o,e=!1)=>{const t=Ge();if(t){const _=t.decode(o);if(e){const D=_.indexOf("\0");return D!==-1?_.substring(0,D):_}return _.replace(/\0/g,"")}const n=o.length;let r,i,s,c="",p=0;for(;p<n;){if(r=o[p++],r===0&&e)return c;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c+=String.fromCharCode(r);break;case 12:case 13:i=o[p++],c+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=o[p++],s=o[p++],c+=String.fromCharCode((r&15)<<12|(i&63)<<6|(s&63)<<0);break}}return c};let st;function Ge(){if(!navigator.userAgent.includes("PlayStation 4"))return!st&&typeof self.TextDecoder!="undefined"&&(st=new self.TextDecoder("utf-8")),st}const gt={hexDump:function(o){let e="";for(let t=0;t<o.length;t++){let n=o[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}},bt=Math.pow(2,32)-1,mt=[].push,zt={video:1,audio:2,id3:3,text:4};function Ct(o){return String.fromCharCode.apply(null,o)}function w(o,e){const t=o[e]<<8|o[e+1];return t<0?65536+t:t}function A(o,e){const t=ue(o,e);return t<0?4294967296+t:t}function vt(o,e){let t=A(o,e);return t*=Math.pow(2,32),t+=A(o,e+4),t}function ue(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function Ne(o,e,t){o[e]=t>>24,o[e+1]=t>>16&255,o[e+2]=t>>8&255,o[e+3]=t&255}function bn(o){const e=o.byteLength;for(let t=0;t<e;){const n=A(o,t);if(n>8&&o[t+4]===109&&o[t+5]===111&&o[t+6]===111&&o[t+7]===102)return!0;t=n>1?t+n:e}return!1}function We(o,e){const t=[];if(!e.length)return t;const n=o.byteLength;for(let r=0;r<n;){const i=A(o,r),s=Ct(o.subarray(r+4,r+8)),c=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(o.subarray(r+8,c));else{const p=We(o.subarray(r+8,c),e.slice(1));p.length&&mt.apply(t,p)}r=c}return t}function rt(o){const e=[],t=o[0];let n=8;const r=A(o,n);n+=4;let i=0,s=0;t===0?(i=A(o,n),s=A(o,n+4),n+=8):(i=vt(o,n),s=vt(o,n+8),n+=16),n+=2;let c=o.length+s;const p=w(o,n);n+=2;for(let _=0;_<p;_++){let D=n;const F=A(o,D);D+=4;const he=F&2147483647;if((F&2147483648)>>>31===1)return b.warn("SIDX has hierarchical references (not supported)"),null;const we=A(o,D);D+=4,e.push({referenceSize:he,subsegmentDuration:we,info:{duration:we/r,start:c,end:c+he-1}}),c+=he,D+=4,n=D}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:p,references:e}}function Je(o){const e=[],t=We(o,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=We(i,["tkhd"])[0];if(s){let c=s[0];const p=A(s,c===0?12:20),_=We(i,["mdia","mdhd"])[0];if(_){c=_[0];const D=A(_,c===0?12:20),F=We(i,["mdia","hdlr"])[0];if(F){const he=Ct(F.subarray(8,12)),Ce={soun:ee.AUDIO,vide:ee.VIDEO}[he];if(Ce){const we=We(i,["mdia","minf","stbl","stsd"])[0],Ie=Ee(we);e[p]={timescale:D,type:Ce},e[Ce]=U({timescale:D,id:p},Ie)}}}}}return We(o,["moov","mvex","trex"]).forEach(r=>{const i=A(r,4),s=e[i];s&&(s.default={duration:A(r,12),flags:A(r,20)})}),e}function Ee(o){const e=o.subarray(8),t=e.subarray(86),n=Ct(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const c=We(e,[n])[0].subarray(n==="enca"?28:78);We(c,["sinf"]).forEach(_=>{const D=We(_,["schm"])[0];if(D){const F=Ct(D.subarray(4,8));if(F==="cbcs"||F==="cenc"){const he=We(_,["frma"])[0];he&&(r=Ct(he))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const s=We(t,["avcC"])[0];r+="."+ze(s[1])+ze(s[2])+ze(s[3]);break}case"mp4a":{const s=We(e,[n])[0],c=We(s.subarray(28),["esds"])[0];if(c&&c.length>12){let p=4;if(c[p++]!==3)break;p=Te(c,p),p+=2;const _=c[p++];if(_&128&&(p+=2),_&64&&(p+=c[p++]),c[p++]!==4)break;p=Te(c,p);const D=c[p++];if(D===64)r+="."+ze(D);else break;if(p+=12,c[p++]!==5)break;p=Te(c,p);const F=c[p++];let he=(F&248)>>3;he===31&&(he+=1+((F&7)<<3)+((c[p]&224)>>5)),r+="."+he}break}case"hvc1":case"hev1":{const s=We(t,["hvcC"])[0],c=s[1],p=["","A","B","C"][c>>6],_=c&31,D=A(s,2),F=(c&32)>>5?"H":"L",he=s[12],Ce=s.subarray(6,12);r+="."+p+_,r+="."+D.toString(16).toUpperCase(),r+="."+F+he;let we="";for(let Ie=Ce.length;Ie--;){const $e=Ce[Ie];($e||we)&&(we="."+$e.toString(16).toUpperCase()+we)}r+=we;break}case"dvh1":case"dvhe":{const s=We(t,["dvcC"])[0],c=s[2]>>1&127,p=s[2]<<5&32|s[3]>>3&31;r+="."+qe(c)+"."+qe(p);break}case"vp09":{const s=We(t,["vpcC"])[0],c=s[4],p=s[5],_=s[6]>>4&15;r+="."+qe(c)+"."+qe(p)+"."+qe(_);break}case"av01":{const s=We(t,["av1C"])[0],c=s[1]>>>5,p=s[1]&31,_=s[2]>>>7?"H":"M",D=(s[2]&64)>>6,F=(s[2]&32)>>5,he=c===2&&D?F?12:10:D?10:8,Ce=(s[2]&16)>>4,we=(s[2]&8)>>3,Ie=(s[2]&4)>>2,$e=s[2]&3;r+="."+c+"."+qe(p)+_+"."+qe(he)+"."+Ce+"."+we+Ie+$e+"."+qe(1)+"."+qe(1)+"."+qe(1)+"."+0;break}}return{codec:r,encrypted:i}}function Te(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function ze(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function qe(o){return(o<10?"0":"")+o}function ge(o,e){if(!o||!e)return o;const t=e.keyId;return t&&e.isCommonEncryption&&We(o,["moov","trak"]).forEach(r=>{const s=We(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let c=We(s,["enca"]);const p=c.length>0;p||(c=We(s,["encv"])),c.forEach(_=>{const D=p?_.subarray(28):_.subarray(78);We(D,["sinf"]).forEach(he=>{const Ce=Jt(he);if(Ce){const we=Ce.subarray(8,24);we.some(Ie=>Ie!==0)||(b.log(`[eme] Patching keyId in 'enc${p?"a":"v"}>sinf>>tenc' box: ${gt.hexDump(we)} -> ${gt.hexDump(t)}`),Ce.set(t,8))}})})}),o}function Jt(o){const e=We(o,["schm"])[0];if(e){const t=Ct(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return We(o,["schi","tenc"])[0]}return null}function He(o,e){return We(e,["moof","traf"]).reduce((t,n)=>{const r=We(n,["tfdt"])[0],i=r[0],s=We(n,["tfhd"]).reduce((c,p)=>{const _=A(p,4),D=o[_];if(D){let F=A(r,4);if(i===1){if(F===bt)return b.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),c;F*=bt+1,F+=A(r,8)}const he=D.timescale||9e4,Ce=F/he;if(C(Ce)&&(c===null||Ce<c))return Ce}return c},null);return s!==null&&C(s)&&(t===null||s<t)?s:t},null)}function fn(o,e){let t=0,n=0,r=0;const i=We(o,["moof","traf"]);for(let s=0;s<i.length;s++){const c=i[s],p=We(c,["tfhd"])[0],_=A(p,4),D=e[_];if(!D)continue;const F=D.default,he=A(p,0)|(F==null?void 0:F.flags);let Ce=F==null?void 0:F.duration;he&8&&(he&2?Ce=A(p,12):Ce=A(p,8));const we=D.timescale||9e4,Ie=We(c,["trun"]);for(let $e=0;$e<Ie.length;$e++){if(t=An(Ie[$e]),!t&&Ce){const ot=A(Ie[$e],4);t=Ce*ot}D.type===ee.VIDEO?n+=t/we:D.type===ee.AUDIO&&(r+=t/we)}}if(n===0&&r===0){let s=1/0,c=0,p=0;const _=We(o,["sidx"]);for(let D=0;D<_.length;D++){const F=rt(_[D]);if(F!=null&&F.references){s=Math.min(s,F.earliestPresentationTime/F.timescale);const he=F.references.reduce((Ce,we)=>Ce+we.info.duration||0,0);c=Math.max(c,he+F.earliestPresentationTime/F.timescale),p=c-s}}if(p&&C(p))return p}return n||r}function An(o){const e=A(o,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=A(o,4);for(let i=0;i<r;i++){if(e&256){const s=A(o,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Hn(o,e,t){We(e,["moof","traf"]).forEach(n=>{We(n,["tfhd"]).forEach(r=>{const i=A(r,4),s=o[i];if(!s)return;const c=s.timescale||9e4;We(n,["tfdt"]).forEach(p=>{const _=p[0],D=t*c;if(D){let F=A(p,4);if(_===0)F-=D,F=Math.max(F,0),Ne(p,4,F);else{F*=Math.pow(2,32),F+=A(p,8),F-=D,F=Math.max(F,0);const he=Math.floor(F/(bt+1)),Ce=Math.floor(F%(bt+1));Ne(p,4,he),Ne(p,8,Ce)}}})})})}function vr(o){const e={valid:null,remainder:null},t=We(o,["moof"]);if(t.length<2)return e.remainder=o,e;const n=t[t.length-1];return e.valid=se(o,0,n.byteOffset-8),e.remainder=se(o,n.byteOffset-8),e}function hn(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function pn(o,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return We(n,["moof"]).map(p=>{const _=p.byteOffset-8;We(p,["traf"]).map(F=>{const he=We(F,["tfdt"]).map(Ce=>{const we=Ce[0];let Ie=A(Ce,4);return we===1&&(Ie*=Math.pow(2,32),Ie+=A(Ce,8)),Ie/r})[0];return he!==void 0&&(o=he),We(F,["tfhd"]).map(Ce=>{const we=A(Ce,4),Ie=A(Ce,0)&16777215,$e=(Ie&1)!==0,ot=(Ie&2)!==0,kt=(Ie&8)!==0;let Pt=0;const gn=(Ie&16)!==0;let Ht=0;const Bn=(Ie&32)!==0;let dn=8;we===i&&($e&&(dn+=8),ot&&(dn+=4),kt&&(Pt=A(Ce,dn),dn+=4),gn&&(Ht=A(Ce,dn),dn+=4),Bn&&(dn+=4),e.type==="video"&&(s=et(e.codec)),We(F,["trun"]).map(Gn=>{const Er=Gn[0],In=A(Gn,0)&16777215,Yn=(In&1)!==0;let di=0;const Dr=(In&4)!==0,oi=(In&256)!==0;let ri=0;const Yr=(In&512)!==0;let $i=0;const Yi=(In&1024)!==0,Pr=(In&2048)!==0;let Ar=0;const Hi=A(Gn,4);let _i=8;Yn&&(di=A(Gn,_i),_i+=4),Dr&&(_i+=4);let Wi=di+_;for(let Da=0;Da<Hi;Da++){if(oi?(ri=A(Gn,_i),_i+=4):ri=Pt,Yr?($i=A(Gn,_i),_i+=4):$i=Ht,Yi&&(_i+=4),Pr&&(Er===0?Ar=A(Gn,_i):Ar=ue(Gn,_i),_i+=4),e.type===ee.VIDEO){let Ba=0;for(;Ba<$i;){const Ua=A(n,Wi);if(Wi+=4,Rt(s,n[Wi])){const is=n.subarray(Wi,Wi+Ua);Ft(is,s?2:1,o+Ar/r,t)}Wi+=Ua,Ba+=Ua+4}}o+=ri/r}}))})})}),t}function et(o){if(!o)return!1;const e=o.indexOf("."),t=e<0?o:o.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function Rt(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Ft(o,e,t,n){const r=Ue(o);let i=0;i+=e;let s=0,c=0,p=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;p=r[i++],s+=p}while(p===255);c=0;do{if(i>=r.length)break;p=r[i++],c+=p}while(p===255);const _=r.length-i;let D=i;if(c<_)i+=c;else if(c>_){b.error(`Malformed SEI payload. ${c} is too small, only ${_} bytes left to parse.`);break}if(s===4){if(r[D++]===181){const he=w(r,D);if(D+=2,he===49){const Ce=A(r,D);if(D+=4,Ce===1195456820){const we=r[D++];if(we===3){const Ie=r[D++],$e=31&Ie,ot=64&Ie,kt=ot?2+$e*3:0,Pt=new Uint8Array(kt);if(ot){Pt[0]=Ie;for(let gn=1;gn<kt;gn++)Pt[gn]=r[D++]}n.push({type:we,payloadType:s,pts:t,bytes:Pt})}}}}}else if(s===5&&c>16){const F=[];for(let we=0;we<16;we++){const Ie=r[D++].toString(16);F.push(Ie.length==1?"0"+Ie:Ie),(we===3||we===5||we===7||we===9)&&F.push("-")}const he=c-16,Ce=new Uint8Array(he);for(let we=0;we<he;we++)Ce[we]=r[D++];n.push({payloadType:s,pts:t,uuid:F.join(""),userData:Xe(Ce),userDataBytes:Ce})}}}function Ue(o){const e=o.byteLength,t=[];let n=1;for(;n<e-2;)o[n]===0&&o[n+1]===0&&o[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return o;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=o[s];return i}function Oe(o){const e=o[0];let t="",n="",r=0,i=0,s=0,c=0,p=0,_=0;if(e===0){for(;Ct(o.subarray(_,_+1))!=="\0";)t+=Ct(o.subarray(_,_+1)),_+=1;for(t+=Ct(o.subarray(_,_+1)),_+=1;Ct(o.subarray(_,_+1))!=="\0";)n+=Ct(o.subarray(_,_+1)),_+=1;n+=Ct(o.subarray(_,_+1)),_+=1,r=A(o,12),i=A(o,16),c=A(o,20),p=A(o,24),_=28}else if(e===1){_+=4,r=A(o,_),_+=4;const F=A(o,_);_+=4;const he=A(o,_);for(_+=4,s=_l(2,32)*F+he,I(s)||(s=Number.MAX_SAFE_INTEGER,b.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=A(o,_),_+=4,p=A(o,_),_+=4;Ct(o.subarray(_,_+1))!=="\0";)t+=Ct(o.subarray(_,_+1)),_+=1;for(t+=Ct(o.subarray(_,_+1)),_+=1;Ct(o.subarray(_,_+1))!=="\0";)n+=Ct(o.subarray(_,_+1)),_+=1;n+=Ct(o.subarray(_,_+1)),_+=1}const D=o.subarray(_,o.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:c,id:p,payload:D}}function xt(o,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(o,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function St(o,e,t){if(o.byteLength!==16)throw new RangeError("Invalid system id");let n,r;if(e){n=1,r=new Uint8Array(e.length*16);for(let c=0;c<e.length;c++){const p=e[c];if(p.byteLength!==16)throw new RangeError("Invalid key");r.set(p,c*16)}}else n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),xt([112,115,115,104],new Uint8Array([n,0,0,0]),o,i,r,s,t||new Uint8Array)}function en(o){const e=[];if(o instanceof ArrayBuffer){const t=o.byteLength;let n=0;for(;n+32<t;){const r=new DataView(o,n),i=jt(r);e.push(i),n+=i.size}}return e}function jt(o){const e=o.getUint32(0),t=o.byteOffset,n=o.byteLength;if(n<e)return{offset:t,size:n};if(o.getUint32(4)!==1886614376)return{offset:t,size:e};const i=o.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=o.buffer,c=gt.hexDump(new Uint8Array(s,t+12,16)),p=o.getUint32(28);let _=null,D=null;if(i===0){if(e-32<p||p<22)return{offset:t,size:e};D=new Uint8Array(s,t+32,p)}else if(i===1){if(!p||n<t+32+p*16+16)return{offset:t,size:e};_=[];for(let F=0;F<p;F++)_.push(new Uint8Array(s,t+32+F*16,16))}return{version:i,systemId:c,kids:_,data:D,offset:t,size:e}}let sn={};class Xt{static clearKeyUriToKeyIdMap(){sn={}}constructor(e,t,n,r=[1],i=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=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ye.FAIRPLAY:case Ye.WIDEVINE:case Ye.PLAYREADY:case Ye.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&b.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=vn(e);return new Xt(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=fe(this.uri);if(t)switch(this.keyFormat){case Ye.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ye.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=St(n,null,t),this.keyId=lt(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=sn[this.uri];if(!n){const r=Object.keys(sn).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),sn[this.uri]=n}this.keyId=n}return this}}function vn(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const _n=/\{\$([a-zA-Z0-9-_]+)\}/g;function Mt(o){return _n.test(o)}function At(o,e,t){if(o.variableList!==null||o.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=tn(o,i))}}function tn(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(_n,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(o.playlistParsingError||(o.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function an(o,e,t){let n=o.variableList;n||(o.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function on(o,e,t){const n=e.IMPORT;if(t&&n in t){let r=o.variableList;r||(o.variableList=r={}),r[n]=t[n]}else o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}function Tn(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function er(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}const Pn={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,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 Yt(o,e){const t=Pn[e];return!!t&&!!t[o.slice(0,4)]}function ct(o,e,t=!0){return!o.split(",").some(n=>!ft(n,e,t))}function ft(o,e,t=!0){var n;const r=Tn(t);return(n=r==null?void 0:r.isTypeSupported(Dt(o,e)))!=null?n:!1}function Dt(o,e){return`${e}/mp4;codecs="${o}"`}function Ot(o){if(o){const e=o.substring(0,4);return Pn.video[e]}return 2}function Tt(o){return o.split(",").reduce((e,t)=>{const n=Pn.video[t];return n?(n*2+e)/(e?3:2):(Pn.audio[t]+e)/(e?2:1)},0)}const Kt={};function Nt(o,e=!0){if(Kt[o])return Kt[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[o];for(let n=0;n<t.length;n++)if(ft(t[n],"audio",e))return Kt[o]=t[n],t[n];return o}const ln=/flac|opus/i;function xn(o,e=!0){return o.replace(ln,t=>Nt(t.toLowerCase(),e))}function Rn(o,e){return o&&o!=="mp4a"?o:e&&e.split(",")[0]}function Qn(o){const e=o.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}const Jn=/#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,hr=/#EXT-X-MEDIA:(.*)/g,En=/^#EXT(?:INF|-X-TARGETDURATION):/m,yn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),pr=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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 Zn{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return X.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return En.test(e)}static parseMasterPlaylist(e,t){const n=Mt(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];Jn.lastIndex=0;let s;for(;(s=Jn.exec(e))!=null;)if(s[1]){var c;const _=new j(s[1]);At(r,_,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const D=tn(r,s[2]),F={attrs:_,bitrate:_.decimalInteger("BANDWIDTH")||_.decimalInteger("AVERAGE-BANDWIDTH"),name:_.NAME,url:Zn.resolve(D,t)},he=_.decimalResolution("RESOLUTION");he&&(F.width=he.width,F.height=he.height),cr(_.CODECS,F),(c=F.unknownCodecs)!=null&&c.length||i.push(F),r.levels.push(F)}else if(s[3]){const _=s[3],D=s[4];switch(_){case"SESSION-DATA":{const F=new j(D);At(r,F,["DATA-ID","LANGUAGE","VALUE","URI"]);const he=F["DATA-ID"];he&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[he]=F);break}case"SESSION-KEY":{const F=Rr(D,t,r);F.encrypted&&F.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(F)):b.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${D}"`);break}case"DEFINE":{{const F=new j(D);At(r,F,["NAME","VALUE","QUERYPARAM"]),an(r,F,t)}break}case"CONTENT-STEERING":{const F=new j(D);At(r,F,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:Zn.resolve(F["SERVER-URI"],t),pathwayId:F["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=qn(D);break}}}const p=i.length>0&&i.length<r.levels.length;return r.levels=p?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,c={AUDIO:s.map(_=>({id:_.attrs.AUDIO,audioCodec:_.audioCodec})),SUBTITLES:s.map(_=>({id:_.attrs.SUBTITLES,textCodec:_.textCodec})),"CLOSED-CAPTIONS":[]};let p=0;for(hr.lastIndex=0;(r=hr.exec(e))!==null;){const _=new j(r[1]),D=_.TYPE;if(D){const F=c[D],he=i[D]||[];i[D]=he,At(n,_,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Ce=_.LANGUAGE,we=_["ASSOC-LANGUAGE"],Ie=_.CHANNELS,$e=_.CHARACTERISTICS,ot=_["INSTREAM-ID"],kt={attrs:_,bitrate:0,id:p++,groupId:_["GROUP-ID"]||"",name:_.NAME||Ce||"",type:D,default:_.bool("DEFAULT"),autoselect:_.bool("AUTOSELECT"),forced:_.bool("FORCED"),lang:Ce,url:_.URI?Zn.resolve(_.URI,t):""};if(we&&(kt.assocLang=we),Ie&&(kt.channels=Ie),$e&&(kt.characteristics=$e),ot&&(kt.instreamId=ot),F!=null&&F.length){const Pt=Zn.findGroup(F,kt.groupId)||F[0];gr(kt,Pt,"audioCodec"),gr(kt,Pt,"textCodec")}he.push(kt)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){const c=new Q(t),p=c.fragments;let _=null,D=0,F=0,he=0,Ce=0,we=null,Ie=new pe(r,t),$e,ot,kt,Pt=-1,gn=!1,Ht=null;for(yn.lastIndex=0,c.m3u8=e,c.hasVariableRefs=Mt(e);($e=yn.exec(e))!==null;){gn&&(gn=!1,Ie=new pe(r,t),Ie.start=he,Ie.sn=D,Ie.cc=Ce,Ie.level=n,_&&(Ie.initSegment=_,Ie.rawProgramDateTime=_.rawProgramDateTime,_.rawProgramDateTime=null,Ht&&(Ie.setByteRange(Ht),Ht=null)));const Er=$e[1];if(Er){Ie.duration=parseFloat(Er);const In=(" "+$e[2]).slice(1);Ie.title=In||null,Ie.tagList.push(In?["INF",Er,In]:["INF",Er])}else if($e[3]){if(C(Ie.duration)){Ie.start=he,kt&&Xn(Ie,kt,c),Ie.sn=D,Ie.level=n,Ie.cc=Ce,p.push(Ie);const In=(" "+$e[3]).slice(1);Ie.relurl=tn(c,In),Or(Ie,we),we=Ie,he+=Ie.duration,D++,F=0,gn=!0}}else if($e[4]){const In=(" "+$e[4]).slice(1);we?Ie.setByteRange(In,we):Ie.setByteRange(In)}else if($e[5])Ie.rawProgramDateTime=(" "+$e[5]).slice(1),Ie.tagList.push(["PROGRAM-DATE-TIME",Ie.rawProgramDateTime]),Pt===-1&&(Pt=p.length);else{if($e=$e[0].match(pr),!$e){b.warn("No matches on slow regex match for level playlist!");continue}for(ot=1;ot<$e.length&&typeof $e[ot]=="undefined";ot++);const In=(" "+$e[ot]).slice(1),Yn=(" "+$e[ot+1]).slice(1),di=$e[ot+2]?(" "+$e[ot+2]).slice(1):"";switch(In){case"PLAYLIST-TYPE":c.type=Yn.toUpperCase();break;case"MEDIA-SEQUENCE":D=c.startSN=parseInt(Yn);break;case"SKIP":{const Dr=new j(Yn);At(c,Dr,["RECENTLY-REMOVED-DATERANGES"]);const oi=Dr.decimalInteger("SKIPPED-SEGMENTS");if(C(oi)){c.skippedSegments=oi;for(let Yr=oi;Yr--;)p.unshift(null);D+=oi}const ri=Dr.enumeratedString("RECENTLY-REMOVED-DATERANGES");ri&&(c.recentlyRemovedDateranges=ri.split(" "));break}case"TARGETDURATION":c.targetduration=Math.max(parseInt(Yn),1);break;case"VERSION":c.version=parseInt(Yn);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(Yn||di)&&Ie.tagList.push(di?[Yn,di]:[Yn]);break;case"DISCONTINUITY":Ce++,Ie.tagList.push(["DIS"]);break;case"GAP":Ie.gap=!0,Ie.tagList.push([In]);break;case"BITRATE":Ie.tagList.push([In,Yn]);break;case"DATERANGE":{const Dr=new j(Yn);At(c,Dr,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),At(c,Dr,Dr.clientAttrs);const oi=new xe(Dr,c.dateRanges[Dr.ID]);oi.isValid||c.skippedSegments?c.dateRanges[oi.id]=oi:b.warn(`Ignoring invalid DATERANGE tag: "${Yn}"`),Ie.tagList.push(["EXT-X-DATERANGE",Yn]);break}case"DEFINE":{{const Dr=new j(Yn);At(c,Dr,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Dr?on(c,Dr,s):an(c,Dr,t)}break}case"DISCONTINUITY-SEQUENCE":Ce=parseInt(Yn);break;case"KEY":{const Dr=Rr(Yn,t,c);if(Dr.isSupported()){if(Dr.method==="NONE"){kt=void 0;break}kt||(kt={}),kt[Dr.keyFormat]&&(kt=a({},kt)),kt[Dr.keyFormat]=Dr}else b.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Yn}"`);break}case"START":c.startTimeOffset=qn(Yn);break;case"MAP":{const Dr=new j(Yn);if(At(c,Dr,["BYTERANGE","URI"]),Ie.duration){const oi=new pe(r,t);Vr(oi,Dr,n,kt),_=oi,Ie.initSegment=_,_.rawProgramDateTime&&!Ie.rawProgramDateTime&&(Ie.rawProgramDateTime=_.rawProgramDateTime)}else{const oi=Ie.byteRangeEndOffset;if(oi){const ri=Ie.byteRangeStartOffset;Ht=`${oi-ri}@${ri}`}else Ht=null;Vr(Ie,Dr,n,kt),_=Ie,gn=!0}break}case"SERVER-CONTROL":{const Dr=new j(Yn);c.canBlockReload=Dr.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=Dr.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&Dr.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=Dr.optionalFloat("PART-HOLD-BACK",0),c.holdBack=Dr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Dr=new j(Yn);c.partTarget=Dr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Dr=c.partList;Dr||(Dr=c.partList=[]);const oi=F>0?Dr[Dr.length-1]:void 0,ri=F++,Yr=new j(Yn);At(c,Yr,["BYTERANGE","URI"]);const $i=new P(Yr,Ie,t,ri,oi);Dr.push($i),Ie.duration+=$i.duration;break}case"PRELOAD-HINT":{const Dr=new j(Yn);At(c,Dr,["URI"]),c.preloadHint=Dr;break}case"RENDITION-REPORT":{const Dr=new j(Yn);At(c,Dr,["URI"]),c.renditionReports=c.renditionReports||[],c.renditionReports.push(Dr);break}default:b.warn(`line parsed but not handled: ${$e}`);break}}}we&&!we.relurl?(p.pop(),he-=we.duration,c.partList&&(c.fragmentHint=we)):c.partList&&(Or(Ie,we),Ie.cc=Ce,c.fragmentHint=Ie,kt&&Xn(Ie,kt,c));const Bn=p.length,dn=p[0],Gn=p[Bn-1];if(he+=c.skippedSegments*c.targetduration,he>0&&Bn&&Gn){c.averagetargetduration=he/Bn;const Er=Gn.sn;c.endSN=Er!=="initSegment"?Er:0,c.live||(Gn.endList=!0),dn&&(c.startCC=dn.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(he+=c.fragmentHint.duration),c.totalduration=he,c.endCC=Ce,Pt>0&&tr(p,Pt),c}}function Rr(o,e,t){var n,r;const i=new j(o);At(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(n=i.METHOD)!=null?n:"",c=i.URI,p=i.hexadecimalInteger("IV"),_=i.KEYFORMATVERSIONS,D=(r=i.KEYFORMAT)!=null?r:"identity";c&&i.IV&&!p&&b.error(`Invalid IV: ${i.IV}`);const F=c?Zn.resolve(c,e):"",he=(_||"1").split("/").map(Number).filter(Number.isFinite);return new Xt(s,F,D,he,p)}function qn(o){const t=new j(o).decimalFloatingPoint("TIME-OFFSET");return C(t)?t:null}function cr(o,e){let t=(o||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Yt(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function gr(o,e,t){const n=e[t];n&&(o[t]=n)}function tr(o,e){let t=o[e];for(let n=e;n--;){const r=o[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Or(o,e){o.rawProgramDateTime?o.programDateTime=Date.parse(o.rawProgramDateTime):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime),C(o.programDateTime)||(o.programDateTime=null,o.rawProgramDateTime=null)}function Vr(o,e,t,n){o.relurl=e.URI,e.BYTERANGE&&o.setByteRange(e.BYTERANGE),o.level=t,o.sn="initSegment",n&&(o.levelkeys=n),o.initSegment=null}function Xn(o,e,t){o.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(o)}var Dn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},nt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function $n(o){const{type:e}=o;switch(e){case Dn.AUDIO_TRACK:return nt.AUDIO;case Dn.SUBTITLE_TRACK:return nt.SUBTITLE;default:return nt.MAIN}}function ar(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Cr{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Dn.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:c}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:Dn.LEVEL,url:s,deliveryDirectives:c})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:Dn.AUDIO_TRACK,url:i,deliveryDirectives:s})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:Dn.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const _=r.context;if(_&&_.url===e.url&&_.level===e.level){b.trace("[playlist-loader]: playlist request ongoing");return}b.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===Dn.MANIFEST?i=n.manifestLoadPolicy.default:i=a({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),C((t=e.deliveryDirectives)==null?void 0:t.part)){let _;if(e.type===Dn.LEVEL&&e.level!==null?_=this.hls.levels[e.level].details:e.type===Dn.AUDIO_TRACK&&e.id!==null?_=this.hls.audioTracks[e.id].details:e.type===Dn.SUBTITLE_TRACK&&e.id!==null&&(_=this.hls.subtitleTracks[e.id].details),_){const D=_.partTarget,F=_.targetduration;if(D&&F){const he=Math.max(D*3,F*.8)*1e3;i=a({},i,{maxTimeToFirstByteMs:Math.min(he,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(he,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},c={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},p={onSuccess:(_,D,F,he)=>{const Ce=this.getInternalLoader(F);this.resetInternalLoader(F.type);const we=_.data;if(we.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(_,F,new Error("no EXTM3U delimiter"),he||null,D);return}D.parsing.start=performance.now(),Zn.isMediaPlaylist(we)?this.handleTrackOrLevelPlaylist(_,D,F,he||null,Ce):this.handleMasterPlaylist(_,D,F,he)},onError:(_,D,F,he)=>{this.handleNetworkError(D,F,!1,_,he)},onTimeout:(_,D,F)=>{this.handleNetworkError(D,F,!0,void 0,_)}};r.load(e,c,p)}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,c=ar(e,n),p=Zn.parseMasterPlaylist(s,c);if(p.playlistParsingError){this.handleManifestParsingError(e,n,p.playlistParsingError,r,t);return}const{contentSteering:_,levels:D,sessionData:F,sessionKeys:he,startTimeOffset:Ce,variableList:we}=p;this.variableList=we;const{AUDIO:Ie=[],SUBTITLES:$e,"CLOSED-CAPTIONS":ot}=Zn.parseMasterPlaylistMedia(s,c,p);Ie.length&&!Ie.some(Pt=>!Pt.url)&&D[0].audioCodec&&!D[0].attrs.AUDIO&&(b.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Ie.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new j({}),bitrate:0,url:""})),i.trigger(u.MANIFEST_LOADED,{levels:D,audioTracks:Ie,subtitles:$e,captions:ot,contentSteering:_,url:c,stats:t,networkDetails:r,sessionData:F,sessionKeys:he,startTimeOffset:Ce,variableList:we})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:c,level:p,type:_}=n,D=ar(e,n),F=0,he=C(p)?p:C(c)?c:0,Ce=$n(n),we=Zn.parseLevelPlaylist(e.data,D,he,Ce,F,this.variableList);if(_===Dn.MANIFEST){const Ie={attrs:new j({}),bitrate:0,details:we,name:"",url:D};s.trigger(u.MANIFEST_LOADED,{levels:[Ie],audioTracks:[],url:D,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=we,this.handlePlaylistLoaded(we,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(u.ERROR,{type:x.NETWORK_ERROR,details:y.MANIFEST_PARSING_ERROR,fatal:t.type===Dn.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===Dn.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===Dn.AUDIO_TRACK||e.type===Dn.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(s);b.warn(`[playlist-loader]: ${s}`);let p=y.UNKNOWN,_=!1;const D=this.getInternalLoader(e);switch(e.type){case Dn.MANIFEST:p=n?y.MANIFEST_LOAD_TIMEOUT:y.MANIFEST_LOAD_ERROR,_=!0;break;case Dn.LEVEL:p=n?y.LEVEL_LOAD_TIMEOUT:y.LEVEL_LOAD_ERROR,_=!1;break;case Dn.AUDIO_TRACK:p=n?y.AUDIO_TRACK_LOAD_TIMEOUT:y.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case Dn.SUBTITLE_TRACK:p=n?y.SUBTITLE_TRACK_LOAD_TIMEOUT:y.SUBTITLE_LOAD_ERROR,_=!1;break}D&&this.resetInternalLoader(e.type);const F={type:x.NETWORK_ERROR,details:p,fatal:_,url:e.url,loader:D,context:e,error:c,networkDetails:t,stats:i};if(r){const he=(t==null?void 0:t.url)||e.url;F.response=U({url:he,data:void 0},r)}this.hls.trigger(u.ERROR,F)}handlePlaylistLoaded(e,t,n,r,i,s){const c=this.hls,{type:p,level:_,id:D,groupId:F,deliveryDirectives:he}=r,Ce=ar(t,r),we=$n(r),Ie=typeof r.level=="number"&&we===nt.MAIN?_:void 0;if(!e.fragments.length){const ot=new Error("No Segments found in Playlist");c.trigger(u.ERROR,{type:x.NETWORK_ERROR,details:y.LEVEL_EMPTY_ERROR,fatal:!1,url:Ce,error:ot,reason:ot.message,response:t,context:r,level:Ie,parent:we,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const $e=e.playlistParsingError;if($e){c.trigger(u.ERROR,{type:x.NETWORK_ERROR,details:y.LEVEL_PARSING_ERROR,fatal:!1,url:Ce,error:$e,reason:$e.message,response:t,context:r,level:Ie,parent:we,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),p){case Dn.MANIFEST:case Dn.LEVEL:c.trigger(u.LEVEL_LOADED,{details:e,level:Ie||0,id:D||0,stats:n,networkDetails:i,deliveryDirectives:he});break;case Dn.AUDIO_TRACK:c.trigger(u.AUDIO_TRACK_LOADED,{details:e,id:D||0,groupId:F||"",stats:n,networkDetails:i,deliveryDirectives:he});break;case Dn.SUBTITLE_TRACK:c.trigger(u.SUBTITLE_TRACK_LOADED,{details:e,id:D||0,groupId:F||"",stats:n,networkDetails:i,deliveryDirectives:he});break}}}function Tr(o,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=o,e.dispatchEvent(t)}function Mr(o,e){const t=o.mode;if(t==="disabled"&&(o.mode="hidden"),o.cues&&!o.cues.getCueById(e.id))try{if(o.addCue(e),!o.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){b.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,o.addCue(r)}catch(r){b.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(o.mode=t)}function Hr(o){const e=o.mode;if(e==="disabled"&&(o.mode="hidden"),o.cues)for(let t=o.cues.length;t--;)o.removeCue(o.cues[t]);e==="disabled"&&(o.mode=e)}function xr(o,e,t,n){const r=o.mode;if(r==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const i=Wr(o.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&o.removeCue(i[s])}r==="disabled"&&(o.mode=r)}function $r(o,e){if(e<o[0].startTime)return 0;const t=o.length-1;if(e>o[t].endTime)return-1;let n=0,r=t;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<o[i].startTime)r=i-1;else if(e>o[i].startTime&&n<t)n=i+1;else return i}return o[n].startTime-e<e-o[r].startTime?n:r}function Wr(o,e,t){const n=[],r=$r(o,e);if(r>-1)for(let i=r,s=o.length;i<s;i++){const c=o[i];if(c.startTime>=e&&c.endTime<=t)n.push(c);else if(c.startTime>t)return n}return n}function On(o){const e=[];for(let t=0;t<o.length;t++){const n=o[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(o[t])}return e}var Fn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const mr=.25;function kr(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function qr(o,e,t,n,r){let i=new o(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new o(e,t,JSON.stringify(r?U({type:r},n):n))}return i}const Un=(()=>{const o=kr();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Ur(o,e){return o.getTime()/1e3-e}function jr(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class fi{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(Hr(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Tr(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=kr();if(s)for(let c=0;c<i.length;c++){const p=i[c].type;if(p===Fn.emsg&&!n||!r)continue;const _=le(i[c].data);if(_){const D=i[c].pts;let F=D+i[c].duration;F>Un&&(F=Un),F-D<=0&&(F=D+mr);for(let Ce=0;Ce<_.length;Ce++){const we=_[Ce];if(!L(we)){this.updateId3CueEnds(D,p);const Ie=qr(s,D,F,we,p);Ie&&this.id3Track.addCue(Ie)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===Un&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:c,enableID3MetadataCues:p}}=s;if(i&&(c||p)){let _;r==="audio"?_=D=>D.type===Fn.audioId3&&p:r==="video"?_=D=>D.type===Fn.emsg&&c:_=D=>D.type===Fn.audioId3&&p||D.type===Fn.emsg&&c,xr(i,t,n,_)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,s=Object.keys(i);if(r){const D=Object.keys(n).filter(F=>!s.includes(F));for(let F=D.length;F--;){const he=D[F];Object.keys(n[he].cues).forEach(Ce=>{r.removeCue(n[he].cues[Ce])}),delete n[he]}}const c=t.fragments[t.fragments.length-1];if(s.length===0||!C(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const p=c.programDateTime/1e3-c.start,_=kr();for(let D=0;D<s.length;D++){const F=s[D],he=i[F],Ce=Ur(he.startDate,p),we=n[F],Ie=(we==null?void 0:we.cues)||{};let $e=(we==null?void 0:we.durationKnown)||!1,ot=Un;const kt=he.endDate;if(kt)ot=Ur(kt,p),$e=!0;else if(he.endOnNext&&!$e){const gn=s.reduce((Ht,Bn)=>{if(Bn!==he.id){const dn=i[Bn];if(dn.class===he.class&&dn.startDate>he.startDate&&(!Ht||he.startDate<Ht.startDate))return dn}return Ht},null);gn&&(ot=Ur(gn.startDate,p),$e=!0)}const Pt=Object.keys(he.attr);for(let gn=0;gn<Pt.length;gn++){const Ht=Pt[gn];if(!be(Ht))continue;const Bn=Ie[Ht];if(Bn)$e&&!we.durationKnown&&(Bn.endTime=ot);else if(_){let dn=he.attr[Ht];_e(Ht)&&(dn=jr(dn));const Gn=qr(_,Ce,ot,{key:Ht,data:dn},Fn.dateRange);Gn&&(Gn.id=F,this.id3Track.addCue(Gn),Ie[Ht]=Gn)}}n[F]={cues:Ie,dateRange:he,durationKnown:$e}}}}class Li{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:c}=this.config,p=this.hls.userConfig;let _=c&&n||t;(p.liveSyncDuration||p.liveSyncDurationCount||_===0)&&(_=i!==void 0?i:s*r);const D=r;return _+Math.min(this.stallCount*1,D)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,c=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),c)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(u.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(u.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var n;t.details===y.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&b.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const s=this.targetLatency;if(s===null)return;const c=n-s,p=Math.min(this.maxLatency,s+t.targetduration);if(c<p&&c>.05&&this.forwardBufferLength>1){const D=Math.min(2,Math.max(1,i)),F=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;e.playbackRate=Math.min(D,Math.max(1,F))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const Ei=["NONE","TYPE-0","TYPE-1",null];function ti(o){return Ei.indexOf(o)>-1}const vi=["SDR","PQ","HLG"];function li(o){return!!o&&vi.indexOf(o)>-1}var Ri={No:"",Yes:"YES",v2:"v2"};function Ii(o){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=o,r=n<e/2;return e&&r?t?Ri.v2:Ri.Yes:Ri.No}class ji{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Di{constructor(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.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(e){return Gi(this._audioGroups,e)}hasSubtitleGroup(e){return Gi(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function Gi(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function zr(o,e){const t=e.startPTS;if(C(t)){let n=0,r;e.sn>o.sn?(n=t-o.start,r=o):(n=o.start-t,r=e),r.duration!==n&&(r.duration=n)}else e.sn>o.sn?o.cc===e.cc&&o.minEndPTS?e.start=o.start+(o.minEndPTS-o.start):e.start=o.start+o.duration:e.start=Math.max(o.start-e.duration,0)}function aa(o,e,t,n,r,i){n-t<=0&&(b.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,p=n;const _=e.startPTS,D=e.endPTS;if(C(_)){const $e=Math.abs(_-t);C(e.deltaPTS)?e.deltaPTS=Math.max($e,e.deltaPTS):e.deltaPTS=$e,c=Math.max(t,_),t=Math.min(t,_),r=Math.min(r,e.startDTS),p=Math.min(n,D),n=Math.max(n,D),i=Math.max(i,e.endDTS)}const F=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=c,e.startDTS=r,e.endPTS=n,e.minEndPTS=p,e.endDTS=i;const he=e.sn;if(!o||he<o.startSN||he>o.endSN)return 0;let Ce;const we=he-o.startSN,Ie=o.fragments;for(Ie[we]=e,Ce=we;Ce>0;Ce--)zr(Ie[Ce],Ie[Ce-1]);for(Ce=we;Ce<Ie.length-1;Ce++)zr(Ie[Ce],Ie[Ce+1]);return o.fragmentHint&&zr(Ie[Ie.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,F}function ga(o,e){let t=null;const n=o.fragments;for(let c=n.length-1;c>=0;c--){const p=n[c].initSegment;if(p){t=p;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let r;ca(o,e,(c,p,_,D)=>{if(e.skippedSegments&&p.cc!==c.cc){const F=c.cc-p.cc;for(let he=_;he<D.length;he++)D[he].cc+=F}C(c.startPTS)&&C(c.endPTS)&&(p.start=p.startPTS=c.startPTS,p.startDTS=c.startDTS,p.maxStartPTS=c.maxStartPTS,p.endPTS=c.endPTS,p.endDTS=c.endDTS,p.minEndPTS=c.minEndPTS,p.duration=c.endPTS-c.startPTS,p.duration&&(r=p),e.PTSKnown=e.alignedSliding=!0),p.elementaryStreams=c.elementaryStreams,p.loader=c.loader,p.stats=c.stats,c.initSegment&&(p.initSegment=c.initSegment,t=c.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(p=>{var _;p&&(!p.initSegment||p.initSegment.relurl===((_=t)==null?void 0:_.relurl))&&(p.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(c=>!c),e.deltaUpdateFailed){b.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let c=e.skippedSegments;c--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=ua(o.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}yi(o.partList,e.partList,(c,p)=>{p.elementaryStreams=c.elementaryStreams,p.stats=c.stats}),r?aa(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):wa(o,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=o.driftStartTime,e.driftStart=o.driftStart;const s=e.advancedDateTime;if(e.advanced&&s){const c=e.edge;e.driftStart||(e.driftStartTime=s,e.driftStart=c),e.driftEndTime=s,e.driftEnd=c}else e.driftEndTime=o.driftEndTime,e.driftEnd=o.driftEnd,e.advancedDateTime=o.advancedDateTime}function ua(o,e,t){const n=a({},o);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new xe(e[r].attr,n[r]);i.isValid?n[r]=i:b.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function yi(o,e,t){if(o&&e){let n=0;for(let r=0,i=o.length;r<=i;r++){const s=o[r],c=e[r+n];s&&c&&s.index===c.index&&s.fragment.sn===c.fragment.sn?t(s,c):n--}}}function ca(o,e,t){const n=e.skippedSegments,r=Math.max(o.startSN,e.startSN)-e.startSN,i=(o.fragmentHint?1:0)+(n?e.endSN:Math.min(o.endSN,e.endSN))-e.startSN,s=e.startSN-o.startSN,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,p=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let _=r;_<=i;_++){const D=p[s+_];let F=c[_];n&&!F&&_<n&&(F=e.fragments[_]=D),D&&F&&t(D,F,_,c)}}function wa(o,e){const t=e.startSN+e.skippedSegments-o.startSN,n=o.fragments;t<0||t>=n.length||kn(e,n[t].start)}function kn(o,e){if(e){const t=o.fragments;for(let n=o.skippedSegments;n<t.length;n++)t[n].start+=e;o.fragmentHint&&(o.fragmentHint.start+=e)}}function Mi(o,e=1/0){let t=1e3*o.targetduration;if(o.updated){const n=o.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function na(o,e,t){if(!(o!=null&&o.details))return null;const n=o.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function sr(o,e,t){var n;return o!=null&&o.details?_r((n=o.details)==null?void 0:n.partList,e,t):null}function _r(o,e,t){if(o)for(let n=o.length;n--;){const r=o[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function or(o){o.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function jn(o){switch(o.details){case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_TIMEOUT:case y.LEVEL_LOAD_TIMEOUT:case y.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Nr(o,e){const t=jn(e);return o.default[`${t?"timeout":"error"}Retry`]}function Xr(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function Ni(o){return U(U({},o),{errorRetry:null,timeoutRetry:null})}function bi(o,e,t,n){if(!o)return!1;const r=n==null?void 0:n.code,i=e<o.maxNumRetry&&(Oi(r)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,n,i):i}function Oi(o){return o===0&&navigator.onLine===!1||!!o&&(o<400||o>499)}const Bi={search:function(o,e){let t=0,n=o.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=o[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function va(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!C(e))return null;const n=o[0].programDateTime;if(e<(n||0))return null;const r=o[o.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<o.length;++i){const s=o[i];if(fa(e,t,s))return s}return null}function Ca(o,e,t=0,n=0,r=.005){let i=null;if(o){i=e[o.sn-e[0].sn+1]||null;const c=o.endDTS-t;c>0&&c<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!o||o.level===i.level)&&da(t,n,i)===0||Za(i,o,Math.min(r,n))))return i;const s=Bi.search(e,da.bind(null,t,n));return s&&(s!==o||!i)?s:i}function Za(o,e,t){if(e&&e.start===0&&e.level<o.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return o.start<=n}return!1}function da(o=0,e=0,t){if(t.start<=o&&t.start+t.duration>o)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=o?1:t.start-n>o&&t.start?-1:0}function fa(o,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>o}function lr(o,e){return Bi.search(o,t=>t.cc<e?1:t.cc>e?-1:0)}var ir={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Qr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class zi{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=b.log.bind(b,"[info]:"),this.warn=b.warn.bind(b,"[warning]:"),this.error=b.error.bind(b,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(u.ERROR,this.onError,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(u.ERROR,this.onError,this),e.off(u.ERROR,this.onErrorOut,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===nt.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,s=t.context;switch(t.details){case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case y.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:ir.DoNothing,flags:Qr.None};return}case y.FRAG_GAP:case y.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=ir.SendAlternateToPenaltyBox;return}case y.LEVEL_EMPTY_ERROR:case y.LEVEL_PARSING_ERROR:{var c,p;const _=t.parent===nt.MAIN?t.level:i.loadLevel;t.details===y.LEVEL_EMPTY_ERROR&&((c=t.context)!=null&&(p=c.levelDetails)!=null&&p.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,_):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,_))}return;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.SUBTITLE_LOAD_ERROR:case y.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const _=i.levels[i.loadLevel];if(_&&(s.type===Dn.AUDIO_TRACK&&_.hasAudioGroup(s.groupId)||s.type===Dn.SUBTITLE_TRACK&&_.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=ir.SendAlternateToPenaltyBox,t.errorAction.flags=Qr.MoveAllAlternatesMatchingHost;return}}return;case y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const _=i.levels[i.loadLevel],D=_==null?void 0:_.attrs["HDCP-LEVEL"];D?t.errorAction={action:ir.SendAlternateToPenaltyBox,flags:Qr.MoveAllAlternatesMatchingHDCP,hdcpLevel:D}:this.keySystemError(t)}return;case y.BUFFER_ADD_CODEC_ERROR:case y.REMUX_ALLOC_ERROR:case y.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case y.INTERNAL_EXCEPTION:case y.BUFFER_APPENDING_ERROR:case y.BUFFER_FULL_ERROR:case y.LEVEL_SWITCH_ERROR:case y.BUFFER_STALLED_ERROR:case y.BUFFER_SEEK_OVER_HOLE:case y.BUFFER_NUDGE_ON_STALL:t.errorAction={action:ir.DoNothing,flags:Qr.None};return}t.type===x.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Nr(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(bi(r,i,jn(e),e.response))return{action:ir.RetryRequest,flags:Qr.None,retryConfig:r,retryCount:i};const c=this.getLevelSwitchAction(e,t);return r&&(c.retryConfig=r,c.retryCount=i),c}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,c=Nr(e.details.startsWith("key")?s:i,e),p=t.levels.reduce((D,F)=>D+F.fragmentError,0);if(r&&(e.details!==y.FRAG_GAP&&r.fragmentError++,bi(c,p,jn(e),e.response)))return{action:ir.RetryRequest,flags:Qr.None,retryConfig:c,retryCount:p};const _=this.getLevelSwitchAction(e,n);return c&&(_.retryConfig=c,_.retryCount=p),_}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const _=e.details;r.loadError++,_===y.BUFFER_APPEND_ERROR&&r.fragmentError++;let D=-1;const{levels:F,loadLevel:he,minAutoLevel:Ce,maxAutoLevel:we}=n;n.autoLevelEnabled||(n.loadLevel=-1);const Ie=(i=e.frag)==null?void 0:i.type,ot=(Ie===nt.AUDIO&&_===y.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(_===y.BUFFER_ADD_CODEC_ERROR||_===y.BUFFER_APPEND_ERROR))&&F.some(({audioCodec:Bn})=>r.audioCodec!==Bn),Pt=e.sourceBufferName==="video"&&(_===y.BUFFER_ADD_CODEC_ERROR||_===y.BUFFER_APPEND_ERROR)&&F.some(({codecSet:Bn,audioCodec:dn})=>r.codecSet!==Bn&&r.audioCodec===dn),{type:gn,groupId:Ht}=(s=e.context)!=null?s:{};for(let Bn=F.length;Bn--;){const dn=(Bn+he)%F.length;if(dn!==he&&dn>=Ce&&dn<=we&&F[dn].loadError===0){var c,p;const Gn=F[dn];if(_===y.FRAG_GAP&&Ie===nt.MAIN&&e.frag){const Er=F[dn].details;if(Er){const In=Ca(e.frag,Er.fragments,e.frag.start);if(In!=null&&In.gap)continue}}else{if(gn===Dn.AUDIO_TRACK&&Gn.hasAudioGroup(Ht)||gn===Dn.SUBTITLE_TRACK&&Gn.hasSubtitleGroup(Ht))continue;if(Ie===nt.AUDIO&&(c=r.audioGroups)!=null&&c.some(Er=>Gn.hasAudioGroup(Er))||Ie===nt.SUBTITLE&&(p=r.subtitleGroups)!=null&&p.some(Er=>Gn.hasSubtitleGroup(Er))||ot&&r.audioCodec===Gn.audioCodec||!ot&&r.audioCodec!==Gn.audioCodec||Pt&&r.codecSet===Gn.codecSet)continue}D=dn;break}}if(D>-1&&n.loadLevel!==D)return e.levelRetry=!0,this.playlistError=0,{action:ir.SendAlternateToPenaltyBox,flags:Qr.None,nextAutoLevel:D}}return{action:ir.SendAlternateToPenaltyBox,flags:Qr.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case ir.DoNothing:break;case ir.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==y.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case ir.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case Qr.None:this.switchLevel(e,s);break;case Qr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Ei[Ei.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class ui{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=b.log.bind(b,`${t}:`),this.warn=b.warn.bind(b,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const c=r[s];let p;try{p=new self.URL(c.URI,t.url).href}catch(_){b.warn(`Could not construct new URL for Rendition Report: ${_}`),p=c.URI||""}if(p===e){i=s;break}else p===e.substring(0,p.length)&&(i=s)}if(i!==-1){const s=r[i],c=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let p=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const D=Math.min(t.age-t.partTarget,t.targetduration);p>=0&&D>t.partTarget&&(p+=1)}const _=n&&Ii(n);return new ji(c,p>=0?p:void 0,_)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),c=i.loading.first?Math.max(0,s-i.loading.first):0;if(r.advancedDateTime=Date.now()-c,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&ga(n,r),!this.canLoad||!r.live)return;let p,_,D;if(r.canBlockReload&&r.endSN&&r.advanced){const $e=this.hls.config.lowLatencyMode,ot=r.lastPartSn,kt=r.endSN,Pt=r.lastPartIndex,gn=Pt!==-1,Ht=ot===kt,Bn=$e?0:Pt;gn?(_=Ht?kt+1:ot,D=Ht?Bn:Pt+1):_=kt+1;const dn=r.age,Gn=dn+r.ageHeader;let Er=Math.min(Gn-r.partTarget,r.targetduration*1.5);if(Er>0){if(n&&Er>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Er} with playlist age: ${r.age}`),Er=0;else{const In=Math.floor(Er/r.targetduration);if(_+=In,D!==void 0){const Yn=Math.round(Er%r.targetduration/r.partTarget);D+=Yn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${dn.toFixed(2)}s goal: ${Er} skip sn ${In} to part ${D}`)}r.tuneInGoal=Er}if(p=this.getDeliveryDirectives(r,t.deliveryDirectives,_,D),$e||!Ht){this.loadPlaylist(p);return}}else(r.canBlockReload||r.canSkipUntil)&&(p=this.getDeliveryDirectives(r,t.deliveryDirectives,_,D));const F=this.hls.mainForwardBufferInfo,he=F?F.end-F.len:0,Ce=(r.edge-he)*1e3,we=Mi(r,Ce);r.updated&&s>this.requestScheduled+we&&(this.requestScheduled=i.loading.start),_!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+we-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+we<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=we);let Ie=this.requestScheduled-s;Ie=Math.max(0,Ie),this.log(`reload live playlist ${e} in ${Math.round(Ie)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(p),Ie)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Ii(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Ri.No),new ji(n,r,i)}checkRetry(e){const t=e.details,n=jn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:c}=r||{},p=!!r&&!!c&&(i===ir.RetryRequest||!r.resolved&&i===ir.SendAlternateToPenaltyBox);if(p){var _;if(this.requestScheduled=-1,s>=c.maxNumRetry)return!1;if(n&&(_=e.context)!=null&&_.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const D=Xr(c,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),D),this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" in ${D}ms`)}e.levelRetry=!0,r.resolved=!0}return p}}class sa{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class ja{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new sa(e),this.fast_=new sa(t),this.defaultTTFB_=r,this.ttfb_=new sa(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new sa(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new sa(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new sa(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=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_}destroy(){}}const Ka={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},ya={};function as(o,e,t,n,r,i){const s=o.audioCodec?o.audioGroups:null,c=i==null?void 0:i.audioCodec,p=i==null?void 0:i.channels,_=p?parseInt(p):c?1/0:2;let D=null;if(s!=null&&s.length)try{s.length===1&&s[0]?D=e.groups[s[0]].channels:D=s.reduce((F,he)=>{if(he){const Ce=e.groups[he];if(!Ce)throw new Error(`Audio track group ${he} not found`);Object.keys(Ce.channels).forEach(we=>{F[we]=(F[we]||0)+Ce.channels[we]})}return F},{2:0})}catch(F){return!0}return o.videoCodec!==void 0&&(o.width>1920&&o.height>1088||o.height>1920&&o.width>1088||o.frameRate>Math.max(n,30)||o.videoRange!=="SDR"&&o.videoRange!==t||o.bitrate>Math.max(r,8e6))||!!D&&C(_)&&Object.keys(D).some(F=>parseInt(F)>_)}function ss(o,e,t){const n=o.videoCodec,r=o.audioCodec;if(!n||!r||!t)return Promise.resolve(Ka);const i={width:o.width,height:o.height,bitrate:Math.ceil(Math.max(o.bitrate*.9,o.averageBitrate)),framerate:o.frameRate||30},s=o.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const c=n.split(",").map(p=>({type:"media-source",video:U(U({},i),{},{contentType:Dt(p,"video")})}));return r&&o.audioGroups&&o.audioGroups.forEach(p=>{var _;p&&((_=e.groups[p])==null||_.tracks.forEach(D=>{if(D.groupId===p){const F=D.channels||"",he=parseFloat(F);C(he)&&he>2&&c.push.apply(c,r.split(",").map(Ce=>({type:"media-source",audio:{contentType:Dt(Ce,"audio"),channels:""+he}})))}}))}),Promise.all(c.map(p=>{const _=os(p);return ya[_]||(ya[_]=t.decodingInfo(p))})).then(p=>({supported:!p.some(_=>!_.supported),configurations:c,decodingInfoResults:p})).catch(p=>({supported:!1,configurations:c,decodingInfoResults:[],error:p}))}function os(o){const{audio:e,video:t}=o,n=t||e;if(n){const r=n.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}function ts(){if(typeof matchMedia=="function"){const o=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(o.media!==e.media)return o.matches===!0}return!1}function ls(o,e){let t=!1,n=[];return o&&(t=o!=="SDR",n=[o]),e&&(n=e.allowedVideoRanges||vi.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ts(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function Aa(o,e,t,n,r){const i=Object.keys(o),s=n==null?void 0:n.channels,c=n==null?void 0:n.audioCodec,p=s&&parseInt(s)===2;let _=!0,D=!1,F=1/0,he=1/0,Ce=1/0,we=0,Ie=[];const{preferHDR:$e,allowedVideoRanges:ot}=ls(e,r);for(let Ht=i.length;Ht--;){const Bn=o[i[Ht]];_=Bn.channels[2]>0,F=Math.min(F,Bn.minHeight),he=Math.min(he,Bn.minFramerate),Ce=Math.min(Ce,Bn.minBitrate);const dn=ot.filter(Gn=>Bn.videoRanges[Gn]>0);dn.length>0&&(D=!0,Ie=dn)}F=C(F)?F:0,he=C(he)?he:0;const kt=Math.max(1080,F),Pt=Math.max(30,he);return Ce=C(Ce)?Ce:t,t=Math.max(Ce,t),D||(e=void 0,Ie=[]),{codecSet:i.reduce((Ht,Bn)=>{const dn=o[Bn];if(Bn===Ht)return Ht;if(dn.minBitrate>t)return Xi(Bn,`min bitrate of ${dn.minBitrate} > current estimate of ${t}`),Ht;if(!dn.hasDefaultAudio)return Xi(Bn,"no renditions with default or auto-select sound found"),Ht;if(c&&Bn.indexOf(c.substring(0,4))%5!==0)return Xi(Bn,`audio codec preference "${c}" not found`),Ht;if(s&&!p){if(!dn.channels[s])return Xi(Bn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(dn.channels)})`),Ht}else if((!c||p)&&_&&dn.channels[2]===0)return Xi(Bn,"no renditions with stereo sound found"),Ht;return dn.minHeight>kt?(Xi(Bn,`min resolution of ${dn.minHeight} > maximum of ${kt}`),Ht):dn.minFramerate>Pt?(Xi(Bn,`min framerate of ${dn.minFramerate} > maximum of ${Pt}`),Ht):Ie.some(Gn=>dn.videoRanges[Gn]>0)?dn.maxScore<we?(Xi(Bn,`max score of ${dn.maxScore} < selected max of ${we}`),Ht):Ht&&(Tt(Bn)>=Tt(Ht)||dn.fragmentError>o[Ht].fragmentError)?Ht:(we=dn.maxScore,Bn):(Xi(Bn,`no variants with VIDEO-RANGE of ${JSON.stringify(Ie)} found`),Ht)},void 0),videoRanges:Ie,preferHDR:$e,minFramerate:he,minBitrate:Ce}}function Xi(o,e){b.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function us(o){return o.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ns(o,e,t,n){return o.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const s=i.audioGroups;let c=r[i.codecSet];c||(r[i.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,i.bitrate);const p=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,p),c.minFramerate=Math.min(c.minFramerate,i.frameRate),c.maxScore=Math.max(c.maxScore,i.score),c.fragmentError+=i.fragmentError,c.videoRanges[i.videoRange]=(c.videoRanges[i.videoRange]||0)+1,s&&s.forEach(_=>{if(!_)return;const D=e.groups[_];D&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?D.hasDefault:D.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(D.channels).forEach(F=>{c.channels[F]=(c.channels[F]||0)+D.channels[F]}))}),r},{})}function ba(o,e,t){if("attrs"in o){const n=e.indexOf(o);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(xa(o,r,t))return n}return-1}function xa(o,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:c}=o,p=o.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===s)&&(c===void 0||e.default===c)&&(p===void 0||e.forced===p)&&(!("characteristics"in o)||ni(o.characteristics||"",e.characteristics))&&(t===void 0||t(o,e))}function ni(o,e=""){const t=o.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function Br(o,e){const{audioCodec:t,channels:n}=o;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function ia(o,e,t,n,r){const i=e[n],c=e.reduce((he,Ce,we)=>{const Ie=Ce.uri;return(he[Ie]||(he[Ie]=[])).push(we),he},{})[i.uri];c.length>1&&(n=Math.max.apply(Math,c));const p=i.videoRange,_=i.frameRate,D=i.codecSet.substring(0,4),F=Ui(e,n,he=>{if(he.videoRange!==p||he.frameRate!==_||he.codecSet.substring(0,4)!==D)return!1;const Ce=he.audioGroups,we=t.filter(Ie=>!Ce||Ce.indexOf(Ie.groupId)!==-1);return ba(o,we,r)>-1});return F>-1?F:Ui(e,n,he=>{const Ce=he.audioGroups,we=t.filter(Ie=>!Ce||Ce.indexOf(Ie.groupId)!==-1);return ba(o,we,r)>-1})}function Ui(o,e,t){for(let n=e;n>-1;n--)if(t(o[n]))return n;for(let n=e+1;n<o.length;n++)if(t(o[n]))return n;return-1}class Pi{constructor(e){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.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:n,hls:r}=this,{autoLevelEnabled:i,media:s}=r;if(!t||!s)return;const c=performance.now(),p=n?n.stats:t.stats,_=n?n.duration:t.duration,D=c-p.loading.start,F=r.minAutoLevel;if(p.aborted||p.loaded&&p.loaded===p.total||t.level<=F){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const he=r.mainForwardBufferInfo;if(he===null)return;const Ce=this.bwEstimator.getEstimateTTFB(),we=Math.abs(s.playbackRate);if(D<=Math.max(Ce,1e3*(_/(we*2))))return;const Ie=he.len/we,$e=p.loading.first?p.loading.first-p.loading.start:-1,ot=p.loaded&&$e>-1,kt=this.getBwEstimate(),Pt=r.levels,gn=Pt[t.level],Ht=p.total||Math.max(p.loaded,Math.round(_*gn.averageBitrate/8));let Bn=ot?D-$e:D;Bn<1&&ot&&(Bn=Math.min(D,p.loaded*8/kt));const dn=ot?p.loaded*1e3/Bn:0,Gn=dn?(Ht-p.loaded)/dn:Ht*8/kt+Ce/1e3;if(Gn<=Ie)return;const Er=dn?dn*8:kt;let In=Number.POSITIVE_INFINITY,Yn;for(Yn=t.level-1;Yn>F;Yn--){const Dr=Pt[Yn].maxBitrate;if(In=this.getTimeToLoadFrag(Ce/1e3,Er,_*Dr,!Pt[Yn].details),In<Ie)break}if(In>=Gn||In>_*10)return;r.nextLoadLevel=r.nextAutoLevel=Yn,ot?this.bwEstimator.sample(D-Math.min(Ce,$e),p.loaded):this.bwEstimator.sampleTTFB(D);const di=Pt[Yn].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>di&&this.resetEstimator(di),this.clearTimer(),b.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
Time to underbuffer: ${Ie.toFixed(3)} s
Estimated load time for current fragment: ${Gn.toFixed(3)} s
Estimated load time for down switch fragment: ${In.toFixed(3)} s
TTFB estimate: ${$e|0} ms
Current BW estimate: ${C(kt)?kt|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${Yn} @ ${di|0} bps`),r.trigger(u.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:n,stats:p})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(b.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new ja(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(u.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){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(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case y.BUFFER_ADD_CODEC_ERROR:case y.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case y.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),c=i?i.stats:n.stats,p=s-c.loading.start,_=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&_>-1){const F=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(p-Math.min(F,_),c.loaded)}else this.bwEstimator.sampleTTFB(p)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.start;C(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===nt.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],c=(s.loaded?s.loaded.bytes:0)+r.loaded,p=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:c,duration:p},s.realBitrate=Math.round(8*c/p)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(u.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==nt.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,c=Math.min(Math.max(s,t),e);return b.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${c}`),c}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this,{maxAutoLevel:r,config:i,minAutoLevel:s}=n,c=t?t.duration:e?e.duration:0,p=this.getBwEstimate(),_=this.getStarvationDelay();let D=i.abrBandWidthFactor,F=i.abrBandWidthUpFactor;if(_){const $e=this.findBestLevel(p,s,r,_,0,D,F);if($e>=0)return $e}let he=c?Math.min(c,i.maxStarvationDelay):i.maxStarvationDelay;if(!_){const $e=this.bitrateTestDelay;$e&&(he=(c?Math.min(c,i.maxLoadingDelay):i.maxLoadingDelay)-$e,b.info(`[abr] bitrate test took ${Math.round(1e3*$e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*he)} ms`),D=F=1)}const Ce=this.findBestLevel(p,s,r,_,he,D,F);if(b.info(`[abr] ${_?"rebuffering expected":"buffer is empty"}, optimal quality level ${Ce}`),Ce>-1)return Ce;const we=n.levels[s],Ie=n.levels[n.loadLevel];return(we==null?void 0:we.bitrate)<(Ie==null?void 0:Ie.bitrate)?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,c){var p;const _=r+i,D=this.lastLoadedFragLevel,F=D===-1?this.hls.firstLevel:D,{fragCurrent:he,partCurrent:Ce}=this,{levels:we,allAudioTracks:Ie,loadLevel:$e,config:ot}=this.hls;if(we.length===1)return 0;const kt=we[F],Pt=!!(kt!=null&&(p=kt.details)!=null&&p.live),gn=$e===-1||D===-1;let Ht,Bn="SDR",dn=(kt==null?void 0:kt.frameRate)||0;const{audioPreference:Gn,videoPreference:Er}=ot,In=this.audioTracksByGroup||(this.audioTracksByGroup=us(Ie));if(gn){if(this.firstSelection!==-1)return this.firstSelection;const ri=this.codecTiers||(this.codecTiers=ns(we,In,t,n)),Yr=Aa(ri,Bn,e,Gn,Er),{codecSet:$i,videoRanges:Yi,minFramerate:Pr,minBitrate:Ar,preferHDR:Hi}=Yr;Ht=$i,Bn=Hi?Yi[Yi.length-1]:Yi[0],dn=Pr,e=Math.max(e,Ar),b.log(`[abr] picked start tier ${JSON.stringify(Yr)}`)}else Ht=kt==null?void 0:kt.codecSet,Bn=kt==null?void 0:kt.videoRange;const Yn=Ce?Ce.duration:he?he.duration:0,di=this.bwEstimator.getEstimateTTFB()/1e3,Dr=[];for(let ri=n;ri>=t;ri--){var oi;const Yr=we[ri],$i=ri>F;if(!Yr)continue;if(ot.useMediaCapabilities&&!Yr.supportedResult&&!Yr.supportedPromise){const Da=navigator.mediaCapabilities;typeof(Da==null?void 0:Da.decodingInfo)=="function"&&as(Yr,In,Bn,dn,e,Gn)?(Yr.supportedPromise=ss(Yr,In,Da),Yr.supportedPromise.then(Ba=>{if(!this.hls)return;Yr.supportedResult=Ba;const Ua=this.hls.levels,is=Ua.indexOf(Yr);Ba.error?b.warn(`[abr] MediaCapabilities decodingInfo error: "${Ba.error}" for level ${is} ${JSON.stringify(Ba)}`):Ba.supported||(b.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${is} ${JSON.stringify(Ba)}`),is>-1&&Ua.length>1&&(b.log(`[abr] Removing unsupported level ${is}`),this.hls.removeLevel(is)))})):Yr.supportedResult=Ka}if(Ht&&Yr.codecSet!==Ht||Bn&&Yr.videoRange!==Bn||$i&&dn>Yr.frameRate||!$i&&dn>0&&dn<Yr.frameRate||Yr.supportedResult&&!((oi=Yr.supportedResult.decodingInfoResults)!=null&&oi[0].smooth)){Dr.push(ri);continue}const Yi=Yr.details,Pr=(Ce?Yi==null?void 0:Yi.partTarget:Yi==null?void 0:Yi.averagetargetduration)||Yn;let Ar;$i?Ar=c*e:Ar=s*e;const Hi=Yn&&r>=Yn*2&&i===0?we[ri].averageBitrate:we[ri].maxBitrate,_i=this.getTimeToLoadFrag(di,Ar,Hi*Pr,Yi===void 0);if(Ar>=Hi&&(ri===D||Yr.loadError===0&&Yr.fragmentError===0)&&(_i<=di||!C(_i)||Pt&&!this.bitrateTestDelay||_i<_)){const Da=this.forcedAutoLevel;return ri!==$e&&(Da===-1||Da!==$e)&&(Dr.length&&b.trace(`[abr] Skipped level(s) ${Dr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${we[Dr[0]].codecs}" ${we[Dr[0]].videoRange}; not compatible with "${kt.codecs}" ${Bn}`),b.info(`[abr] switch candidate:${F}->${ri} adjustedbw(${Math.round(Ar)})-bitrate=${Math.round(Ar-Hi)} ttfb:${di.toFixed(1)} avgDuration:${Pr.toFixed(1)} maxFetchDuration:${_.toFixed(1)} fetchDuration:${_i.toFixed(1)} firstSelection:${gn} codecSet:${Ht} videoRange:${Bn} hls.loadLevel:${$e}`)),gn&&(this.firstSelection=ri),ri}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=Math.min(Math.max(e,n),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class oa{constructor(){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(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var mi={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Oa{constructor(e){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=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(u.BUFFER_APPENDED,this.onBufferAppended,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.BUFFER_APPENDED,this.onBufferAppended,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:n}=this,r=Object.keys(n);for(let i=r.length;i--;){const s=n[r[i]];if((s==null?void 0:s.body.type)===t&&s.buffered){const c=s.body;if(c.start<=e&&e<=c.end)return c}}return null}detectEvictedFragments(e,t,n,r){this.timeRanges&&(this.timeRanges[e]=t);const i=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const c=this.fragments[s];if(!c||i>=c.body.sn)return;if(!c.buffered&&!c.loaded){c.body.type===n&&this.removeFragment(c.body);return}const p=c.range[e];p&&p.time.some(_=>{const D=!this.isTimeBuffered(_.startPTS,_.endPTS,t);return D&&this.removeFragment(c.body),D})})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r}=e;if(!t||n.sn==="initSegment")return;const i=La(n),s=this.fragments[i];if(!s||s.buffered&&n.gap)return;const c=!n.relurl;Object.keys(t).forEach(p=>{const _=n.elementaryStreams[p];if(!_)return;const D=t[p],F=c||_.partial===!0;s.range[p]=this.getBufferedTimes(n,r,F,D)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=n.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),la(s)||this.removeParts(n.sn-1,n.type)):this.removeFragment(s.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=La(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,c=e.end,p=e.minEndPTS||c,_=e.maxStartPTS||s;for(let D=0;D<r.length;D++){const F=r.start(D)-this.bufferPadding,he=r.end(D)+this.bufferPadding;if(_>=F&&p<=he){i.time.push({startPTS:Math.max(s,r.start(D)),endPTS:Math.min(c,r.end(D))});break}else if(s<he&&c>F){const Ce=Math.max(s,r.start(D)),we=Math.min(c,r.end(D));we>Ce&&(i.partial=!0,i.time.push({startPTS:Ce,endPTS:we}))}else if(c<=F)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:c,fragments:p}=this;return Object.keys(p).forEach(_=>{const D=p[_];D&&la(D)&&(r=D.body.start-c,i=D.body.end+c,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=D.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||la(t))}getState(e){const t=La(e),n=this.fragments[t];return n?n.buffered?la(n)?mi.PARTIAL:mi.OK:mi.APPENDING:mi.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onFragLoaded(e,t){const{frag:n,part:r}=t;if(n.sn==="initSegment"||n.bitrateTest)return;const i=r?null:t,s=La(n);this.fragments[s]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i}=t;if(n.sn==="initSegment")return;const s=n.type;if(r){let c=this.activePartLists[s];c||(this.activePartLists[s]=c=[]),c.push(r)}this.timeRanges=i,Object.keys(i).forEach(c=>{const p=i[c];this.detectEvictedFragments(c,p,s,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=La(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const c=this.fragments[s];if(!c)return;const p=c.body;p.type!==n||r&&!p.gap||p.start<t&&p.end>e&&(c.buffered||i)&&this.removeFragment(p)})}removeFragment(e){const t=La(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=n.filter(i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function la(o){var e,t,n;return o.buffered&&(o.body.gap||((e=o.range.video)==null?void 0:e.partial)||((t=o.range.audio)==null?void 0:t.partial)||((n=o.range.audiovideo)==null?void 0:n.partial))}function La(o){return`${o.type}_${o.level}_${o.sn}`}const Fa={length:0,start:()=>0,end:()=>0};class Ci{static isBuffered(e,t){try{if(e){const n=Ci.getBuffered(e);for(let r=0;r<n.length;r++)if(t>=n.start(r)&&t<=n.end(r))return!0}}catch(n){}return!1}static bufferInfo(e,t,n){try{if(e){const r=Ci.getBuffered(e),i=[];let s;for(s=0;s<r.length;s++)i.push({start:r.start(s),end:r.end(s)});return this.bufferedInfo(i,t,n)}}catch(r){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.sort(function(_,D){const F=_.start-D.start;return F||D.end-_.end});let r=[];if(n)for(let _=0;_<e.length;_++){const D=r.length;if(D){const F=r[D-1].end;e[_].start-F<n?e[_].end>F&&(r[D-1].end=e[_].end):r.push(e[_])}else r.push(e[_])}else r=e;let i=0,s,c=t,p=t;for(let _=0;_<r.length;_++){const D=r[_].start,F=r[_].end;if(t+n>=D&&t<F)c=D,p=F,i=p-t;else if(t+n<D){s=D;break}}return{len:i,start:c||0,end:p||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return b.log("failed to get media.buffered",t),Fa}}}class vs{constructor(e,t,n,r=0,i=-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=Ta(),this.buffering={audio:Ta(),video:Ta(),audiovideo:Ta()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Ta(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Ga(o,e){for(let n=0,r=o.length;n<r;n++){var t;if(((t=o[n])==null?void 0:t.cc)===e)return o[n]}return null}function Ts(o,e,t){return!!(e&&(t.endCC>t.startCC||o&&o.cc<t.startCC))}function Xa(o,e){const t=o.fragments,n=e.fragments;if(!n.length||!t.length){b.log("No fragments to align");return}const r=Ga(t,n[0].cc);if(!r||r&&!r.startPTS){b.log("No frag in previous level to align on");return}return r}function cs(o,e){if(o){const t=o.start+e;o.start=o.startPTS=t,o.endPTS=t+o.duration}}function ys(o,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)cs(t[n],o);e.fragmentHint&&cs(e.fragmentHint,o),e.alignedSliding=!0}function ds(o,e,t){e&&(Ds(o,t,e),!t.alignedSliding&&e&&Pa(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&wa(e,t))}function Ds(o,e,t){if(Ts(o,t,e)){const n=Xa(t,e);n&&C(n.start)&&(b.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ys(n.start,e))}}function Pa(o,e){if(!o.hasProgramDateTime||!e.hasProgramDateTime)return;const t=o.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,o.endCC);e.startCC<s&&o.startCC<s&&(r=Ga(n,s),i=Ga(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Ga(t,r.cc)||t[Math.floor(t.length/2)]);const c=r.programDateTime,p=i.programDateTime;if(!c||!p)return;const _=(p-c)/1e3-(i.start-r.start);ys(_,o)}const bs=Math.pow(2,17);class Ti{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,p)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Ce=>Ce[0]==="GAP")){p(gi(e));return}else e.gap=!1;const _=this.loader=e.loader=i?new i(r):new s(r),D=Si(e),F=Ni(r.fragLoadPolicy.default),he={loadPolicy:F,timeout:F.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:bs};e.stats=_.stats,_.load(D,he,{onSuccess:(Ce,we,Ie,$e)=>{this.resetLoader(e,_);let ot=Ce.data;Ie.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ot.slice(0,16)),ot=ot.slice(16)),c({frag:e,part:null,payload:ot,networkDetails:$e})},onError:(Ce,we,Ie,$e)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:U({url:n,data:void 0},Ce),error:new Error(`HTTP Error ${Ce.code} ${Ce.text}`),networkDetails:Ie,stats:$e}))},onAbort:(Ce,we,Ie)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ie,stats:Ce}))},onTimeout:(Ce,we,Ie)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${he.timeout}ms`),networkDetails:Ie,stats:Ce}))},onProgress:(Ce,we,Ie,$e)=>{t&&t({frag:e,part:null,payload:Ie,networkDetails:$e})}})})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,p)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){p(gi(e,t));return}const _=this.loader=e.loader=i?new i(r):new s(r),D=Si(e,t),F=Ni(r.fragLoadPolicy.default),he={loadPolicy:F,timeout:F.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:bs};t.stats=_.stats,_.load(D,he,{onSuccess:(Ce,we,Ie,$e)=>{this.resetLoader(e,_),this.updateStatsFromPart(e,t);const ot={frag:e,part:t,payload:Ce.data,networkDetails:$e};n(ot),c(ot)},onError:(Ce,we,Ie,$e)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:U({url:D.url,data:void 0},Ce),error:new Error(`HTTP Error ${Ce.code} ${Ce.text}`),networkDetails:Ie,stats:$e}))},onAbort:(Ce,we,Ie)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Ie,stats:Ce}))},onTimeout:(Ce,we,Ie)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${he.timeout}ms`),networkDetails:Ie,stats:Ce}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const p=Math.round(e.duration/t.duration),_=Math.min(Math.round(n.loaded/i),p),F=(p-_)*Math.round(n.loaded/_);n.total=n.loaded+F}else n.total=Math.max(n.loaded,n.total);const s=n.loading,c=r.loading;s.start?s.first+=c.first-c.start:(s.start=c.start,s.first=c.first),s.end=c.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Si(o,e=null){const t=e||o,n={frag:o,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(C(r)&&C(i)){var s;let c=r,p=i;if(o.sn==="initSegment"&&((s=o.decryptdata)==null?void 0:s.method)==="AES-128"){const _=i-r;_%16&&(p=i+(16-_%16)),r!==0&&(n.resetIV=!0,c=r-16)}n.rangeStart=c,n.rangeEnd=p}return n}function gi(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),n={type:x.MEDIA_ERROR,details:y.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(n.part=e),(e||o).stats.aborted=!0,new Qi(n)}class Qi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class qi{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class fs{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Qa(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?se(o,0,e-t):o}class hs{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_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],c=n[3],p=this.invSubMix,_=p[0],D=p[1],F=p[2],he=p[3],Ce=new Uint32Array(256);let we=0,Ie=0,$e=0;for($e=0;$e<256;$e++)$e<128?Ce[$e]=$e<<1:Ce[$e]=$e<<1^283;for($e=0;$e<256;$e++){let ot=Ie^Ie<<1^Ie<<2^Ie<<3^Ie<<4;ot=ot>>>8^ot&255^99,e[we]=ot,t[ot]=we;const kt=Ce[we],Pt=Ce[kt],gn=Ce[Pt];let Ht=Ce[ot]*257^ot*16843008;r[we]=Ht<<24|Ht>>>8,i[we]=Ht<<16|Ht>>>16,s[we]=Ht<<8|Ht>>>24,c[we]=Ht,Ht=gn*16843009^Pt*65537^kt*257^we*16843008,_[ot]=Ht<<24|Ht>>>8,D[ot]=Ht<<16|Ht>>>16,F[ot]=Ht<<8|Ht>>>24,he[ot]=Ht,we?(we=kt^Ce[Ce[Ce[gn^kt]]],Ie^=Ce[Ce[Ie]]):we=Ie=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let c,p;const _=this.keySchedule=new Uint32Array(s),D=this.invKeySchedule=new Uint32Array(s),F=this.sBox,he=this.rcon,Ce=this.invSubMix,we=Ce[0],Ie=Ce[1],$e=Ce[2],ot=Ce[3];let kt,Pt;for(c=0;c<s;c++){if(c<i){kt=_[c]=t[c];continue}Pt=kt,c%i===0?(Pt=Pt<<8|Pt>>>24,Pt=F[Pt>>>24]<<24|F[Pt>>>16&255]<<16|F[Pt>>>8&255]<<8|F[Pt&255],Pt^=he[c/i|0]<<24):i>6&&c%i===4&&(Pt=F[Pt>>>24]<<24|F[Pt>>>16&255]<<16|F[Pt>>>8&255]<<8|F[Pt&255]),_[c]=kt=(_[c-i]^Pt)>>>0}for(p=0;p<s;p++)c=s-p,p&3?Pt=_[c]:Pt=_[c-4],p<4||c<=4?D[p]=Pt:D[p]=we[F[Pt>>>24]]^Ie[F[Pt>>>16&255]]^$e[F[Pt>>>8&255]]^ot[F[Pt&255]],D[p]=D[p]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,c=this.invSubMix,p=c[0],_=c[1],D=c[2],F=c[3],he=this.uint8ArrayToUint32Array_(n);let Ce=he[0],we=he[1],Ie=he[2],$e=he[3];const ot=new Int32Array(e),kt=new Int32Array(ot.length);let Pt,gn,Ht,Bn,dn,Gn,Er,In,Yn,di,Dr,oi,ri,Yr;const $i=this.networkToHostOrderSwap;for(;t<ot.length;){for(Yn=$i(ot[t]),di=$i(ot[t+1]),Dr=$i(ot[t+2]),oi=$i(ot[t+3]),dn=Yn^i[0],Gn=oi^i[1],Er=Dr^i[2],In=di^i[3],ri=4,Yr=1;Yr<r;Yr++)Pt=p[dn>>>24]^_[Gn>>16&255]^D[Er>>8&255]^F[In&255]^i[ri],gn=p[Gn>>>24]^_[Er>>16&255]^D[In>>8&255]^F[dn&255]^i[ri+1],Ht=p[Er>>>24]^_[In>>16&255]^D[dn>>8&255]^F[Gn&255]^i[ri+2],Bn=p[In>>>24]^_[dn>>16&255]^D[Gn>>8&255]^F[Er&255]^i[ri+3],dn=Pt,Gn=gn,Er=Ht,In=Bn,ri=ri+4;Pt=s[dn>>>24]<<24^s[Gn>>16&255]<<16^s[Er>>8&255]<<8^s[In&255]^i[ri],gn=s[Gn>>>24]<<24^s[Er>>16&255]<<16^s[In>>8&255]<<8^s[dn&255]^i[ri+1],Ht=s[Er>>>24]<<24^s[In>>16&255]<<16^s[dn>>8&255]<<8^s[Gn&255]^i[ri+2],Bn=s[In>>>24]<<24^s[dn>>16&255]<<16^s[Gn>>8&255]<<8^s[Er&255]^i[ri+3],kt[t]=$i(Pt^Ce),kt[t+1]=$i(Bn^we),kt[t+2]=$i(Ht^Ie),kt[t+3]=$i(gn^$e),Ce=Yn,we=di,Ie=Dr,$e=oi,t=t+4}return kt.buffer}}const Ls=16;class ps{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Qa(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n){return this.useSoftware?new Promise((r,i)=>{this.softwareDecrypt(new Uint8Array(e),t,n);const s=this.flush();s?r(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n)}softwareDecrypt(e,t,n){const{currentIV:r,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=hn(s,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;r&&(n=r);let p=this.softwareDecrypter;p||(p=this.softwareDecrypter=new hs),p.expandKey(t);const _=i;return this.currentResult=p.decrypt(c.buffer,0,n),this.currentIV=se(c,-16).buffer,_||null}webCryptoDecrypt(e,t,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n));this.key=t,this.fastAesKey=new fs(this.subtle,t)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new qi(this.subtle,new Uint8Array(n)).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(b.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n)))}onWebCryptoError(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Ls;return n!==e.length&&(t=se(e,0,n),this.remainderData=se(e,n)),t}logOnce(e){this.logEnabled&&(b.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const ms={toString:function(o){let e="";const t=o.length;for(let n=0;n<t;n++)e+=`[${o.start(n).toFixed(3)}-${o.end(n).toFixed(3)}]`;return e}},Sn={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class As extends oa{constructor(e,t,n,r,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Sn.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=i,this.logPrefix=r,this.log=b.log.bind(b,`${r}:`),this.warn=b.warn.bind(b,`${r}:`),this.hls=e,this.fragmentLoader=new Ti(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new ps(e.config),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Sn.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const n=t.partList;if(n!=null&&n.length){const i=n[n.length-1];return Ci.isBuffered(this.media,i.start+i.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===Sn.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,s=n?n.currentTime:0,c=Ci.bufferInfo(r||n,s,e.maxBufferHole);if(this.log(`media seeking to ${C(s)?s.toFixed(3):s}, state: ${i}`),this.state===Sn.ENDED)this.resetLoadingState();else if(t){const p=e.maxFragLookUpTolerance,_=t.start-p,D=t.start+t.duration+p;if(!c.len||D<c.start||_>c.end){const F=s>D;(s<_||F)&&(F&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!c.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=Sn.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${i.part?" p: "+i.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state;if(this.fragContextChanged(e)){(s===Sn.FRAG_LOADING||!this.fragCurrent&&s===Sn.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=Sn.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(u.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Sn.STOPPED||this.state===Sn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===mi.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),c=Math.max(e.duration,s?s.len:this.config.maxBufferLength),p=this.backtrackFragment;((p?e.sn-p.sn:0)===1||this.reduceMaxBufferLength(c,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===mi.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(u.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{if(!n||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{payload:i}=n,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(p=>{throw r.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:p,reason:p.message,frag:e}),p}).then(p=>{const _=self.performance.now();return r.trigger(u.FRAG_DECRYPTED,{frag:e,payload:p,stats:{tstart:c,tdecrypt:_}}),n.payload=p,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===Sn.STOPPED||this.state===Sn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state=Sn.IDLE,e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var n,r,i,s;const c=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===nt.MAIN?"level":"track"} ${e.level} (frag:[${((n=e.startPTS)!=null?n:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${c?ms.toString(Ci.getBuffered(c)):"(detached)"})`),e.sn!=="initSegment"){var p;if(e.type!==nt.SUBTITLE){const D=e.elementaryStreams;if(!Object.keys(D).some(F=>!!D[F])){this.state=Sn.IDLE;return}}const _=(p=this.levels)==null?void 0:p[e.level];_!=null&&_.fragmentError&&(this.log(`Resetting level fragment error count of ${_.fragmentError} on frag buffered`),_.fragmentError=0)}this.state=Sn.IDLE,c&&(!this.loadedmetadata&&e.type==nt.MAIN&&c.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(p=>!p),c=new vs(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(c)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let c=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=Sn.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(D=>{if(!this.fragContextChanged(D.frag))return this.hls.trigger(u.KEY_LOADED,D),this.state===Sn.KEY_LOADING&&(this.state=Sn.IDLE),D}),this.hls.trigger(u.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(c=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const D=s.partList;if(D&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const F=this.getNextPart(D,e,n);if(F>-1){const he=D[F];this.log(`Loading part sn: ${e.sn} p: ${he.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${F}-${D.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=he.start+he.duration,this.state=Sn.FRAG_LOADING;let Ce;return c?Ce=c.then(we=>!we||this.fragContextChanged(we.frag)?null:this.doFragPartsLoad(e,he,t,r)).catch(we=>this.handleFragLoadError(we)):Ce=this.doFragPartsLoad(e,he,t,r).catch(we=>this.handleFragLoadError(we)),this.hls.trigger(u.FRAG_LOADING,{frag:e,part:he,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Ce}else if(!e.url||this.loadedEndOfParts(D,n))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),C(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Sn.FRAG_LOADING;const p=this.config.progressive;let _;return p&&c?_=c.then(D=>!D||this.fragContextChanged(D==null?void 0:D.frag)?null:this.fragmentLoader.load(e,r)).catch(D=>this.handleFragLoadError(D)):_=Promise.all([this.fragmentLoader.load(e,p?r:void 0),c]).then(([D])=>(!p&&D&&r&&r(D),D)).catch(D=>this.handleFragLoadError(D)),this.hls.trigger(u.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):_}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var c;const p=[],_=(c=n.details)==null?void 0:c.partList,D=F=>{this.fragmentLoader.loadPart(e,F,r).then(he=>{p[F.index]=he;const Ce=he.part;this.hls.trigger(u.FRAG_LOADED,he);const we=sr(n,e.sn,F.index+1)||_r(_,e.sn,F.index+1);if(we)D(we);else return i({frag:e,part:Ce,partsLoaded:p})}).catch(s)};D(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===y.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(u.ERROR,t)}else this.hls.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Sn.PARSING){!this.fragCurrent&&this.state!==Sn.STOPPED&&this.state!==Sn.ERROR&&(this.state=Sn.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s),this.updateLevelTiming(n,r,i,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of level ${r}. The current chunk will not be buffered.`),null;const c=t[r],p=s>-1?sr(c,i,s):null,_=p?p.fragment:na(c,i,n);return _?(n&&n!==_&&(_.stats=n.stats),{frag:_,part:p,level:c}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==Sn.PARSING)return;const{data1:c,data2:p}=e;let _=c;if(c&&p&&(_=hn(c,p)),!((s=_)!=null&&s.length))return;const D={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:_};if(this.hls.trigger(u.BUFFER_APPENDING,D),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Ci.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Ci.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),c=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-c>s&&this.flushMainBuffer(c,e.start)}getFwdBufferInfo(e,t){const n=this.getLoadPosition();return C(n)?this.getFwdBufferInfoAtPos(e,n,t):null}getFwdBufferInfoAtPos(e,t,n){const{config:{maxBufferHole:r}}=this,i=Ci.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&i.nextStart<s.end)return Ci.bufferInfo(e,t,Math.max(i.nextStart,r))}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=nt.MAIN){const n=this.fragmentTracker.getAppendedFrag(e,nt.MAIN);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start;let c;if(t.live){const p=i.initialLiveManifestSize;if(r<p)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${p})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s)&&(c=this.getInitialLiveFragment(t,n),this.startPosition=this.nextLoadPosition=c?this.hls.liveSyncPosition||c.start:e)}else e<=s&&(c=n[0]);if(!c){const p=i.lowLatencyMode?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,p,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===mi.OK||n===mi.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){const s=e.gap,c=this.getNextFragment(this.nextLoadPosition,t);if(c===null)return c;if(e=c,s&&e&&!e.gap&&n.nextStart){const p=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(p!==null&&n.len+p.len>=i)return this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let c=0,p=e.length;c<p;c++){const _=e[c];if(s=s&&!_.independent,r>-1&&n<_.start)break;const D=_.loaded;D?r=-1:(i||_.independent||s)&&_.fragment===t&&(r=c),i=D}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=va(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=lr(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:c}=n;const{fragmentHint:p}=n,{maxFragLookUpTolerance:_}=r,D=n.partList,F=!!(r.lowLatencyMode&&D!=null&&D.length&&p);F&&p&&!this.bitrateTest&&(s=s.concat(p),c=p.sn);let he;if(e<t){const Ce=e>t-_?0:_;he=Ca(i,s,e,Ce)}else he=s[s.length-1];if(he){const Ce=he.sn-n.startSN,we=this.fragmentTracker.getState(he);if((we===mi.OK||we===mi.PARTIAL&&he.gap)&&(i=he),i&&he.sn===i.sn&&(!F||D[0].fragment.sn>he.sn)&&i&&he.level===i.level){const $e=s[Ce+1];he.sn<c&&this.fragmentTracker.getState($e)!==mi.OK?he=$e:he=null}}return he}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=n.currentTime,s=e.fragments[0].start,c=e.edge,p=i>=s-t.maxFragLookUpTolerance&&i<=c;if(r!==null&&n.duration>r&&(i<r||!p)){const _=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!p&&n.readyState<4||i<c-_)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${c}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,s=!t,c=e.alignedSliding&&C(i);if(s||!c&&!i){const{fragPrevious:p}=this;ds(p,n,e);const _=e.fragments[0].start;return this.log(`Live playlist sliding: ${_.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${p?p.sn:"na"} fragments: ${r}`),_}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;if(n<t&&(n=-1),n===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,i=r?this.startTimeOffset:e.startTimeOffset;i!==null&&C(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Start time offset ${i} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${n}`),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Sn.FRAG_LOADING_WAITING_RETRY)&&(this.state=Sn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const D=this.getCurrentContext(t.chunkMeta);D&&(t.frag=D.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===y.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:c,retryCount:p=0,retryConfig:_}=s||{};if(s&&c===ir.RetryRequest&&_){this.resetStartWhenNotLoaded(this.levelLastLoaded);const D=Xr(_,p);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${p+1}/${_.maxNumRetry} in ${D}ms`),s.resolved=!0,this.retryDate=self.performance.now()+D,this.state=Sn.FRAG_LOADING_WAITING_RETRY}else if(_&&s)if(this.resetFragmentErrors(e),p<_.maxNumRetry)!i&&c!==ir.RemoveAlternatePermanently&&(s.resolved=!0);else{b.warn(`${t.details} reached or exceeded max retry (${p})`);return}else(s==null?void 0:s.action)===ir.SendAlternateToPenaltyBox?this.state=Sn.WAITING_LEVEL:this.state=Sn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Sn.PARSING||this.state===Sn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===nt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Sn.STOPPED&&(this.state=Sn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Ci.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===Sn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Sn.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){var i;const s=n.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((p,_)=>{const D=e.elementaryStreams[_];if(D){const F=D.endPTS-D.startPTS;if(F<=0)return this.warn(`Could not parse fragment ${e.sn} ${_} duration reliably (${F})`),p||!1;const he=r?0:aa(s,e,D.startPTS,D.endPTS,D.startDTS,D.endDTS);return this.hls.trigger(u.LEVEL_PTS_UPDATED,{details:s,level:n,drift:he,type:_,frag:e,start:D.startPTS,end:D.endPTS}),!0}return p},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const p=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(n.fragmentError===0&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(p.message),this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:p,frag:e,reason:`Found no media in msn ${e.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Sn.PARSED,this.hls.trigger(u.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class $s{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=go(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function go(o,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<o.length;r++){const i=o[r];t.set(i,n),n+=i.length}return t}function Xs(){return typeof __HLS_WORKER_BUNDLE__=="function"}function zs(){const o=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(o);return{worker:new self.Worker(e),objectURL:e}}function Qs(o){const e=new self.URL(o,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Wa(o="",e=9e4){return{type:o,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Us{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=hn(this.cachedData,e),this.cachedData=null);let n=Y(e,0),r=n?n.length:0,i;const s=this._audioTrack,c=this._id3Track,p=n?R(n):void 0,_=e.length;for((this.basePTS===null||this.frameIndex===0&&C(p))&&(this.basePTS=Js(p,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Fn.audioId3,duration:Number.POSITIVE_INFINITY});r<_;){if(this.canParse(e,r)){const D=this.appendFrame(s,e,r);D?(this.frameIndex++,this.lastPTS=D.sample.pts,r+=D.length,i=r):r=_}else $(e,r)?(n=Y(e,r),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Fn.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===_&&i!==_){const D=se(e,i);this.cachedData?this.cachedData=hn(this.cachedData,D):this.cachedData=D}}return{audioTrack:s,videoTrack:Wa(),id3Track:c,textTrack:Wa()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Wa(),id3Track:this._id3Track,textTrack:Wa()}}destroy(){}}const Js=(o,e,t)=>{if(C(o))return o*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};function No(o,e,t,n){let r,i,s,c;const p=navigator.userAgent.toLowerCase(),_=n,D=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const F=(e[t+2]&60)>>>2;if(F>D.length-1){const he=new Error(`invalid ADTS sampling index:${F}`);o.emit(u.ERROR,u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!0,error:he,reason:he.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,b.log(`manifest codec:${n}, ADTS type:${r}, samplingIndex:${F}`),/firefox/i.test(p)?F>=6?(r=5,c=new Array(4),i=F-3):(r=2,c=new Array(2),i=F):p.indexOf("android")!==-1?(r=2,c=new Array(2),i=F):(r=5,c=new Array(4),n&&(n.indexOf("mp4a.40.29")!==-1||n.indexOf("mp4a.40.5")!==-1)||!n&&F>=6?i=F-3:((n&&n.indexOf("mp4a.40.2")!==-1&&(F>=6&&s===1||/vivaldi/i.test(p))||!n&&s===1)&&(r=2,c=new Array(2)),i=F)),c[0]=r<<3,c[0]|=(F&14)>>1,c[1]|=(F&1)<<7,c[1]|=s<<3,r===5&&(c[1]|=(i&14)>>1,c[2]=(i&1)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:D[F],channelCount:s,codec:"mp4a.40."+r,manifestCodec:_}}function Ps(o,e){return o[e]===255&&(o[e+1]&246)===240}function qs(o,e){return o[e+1]&1?7:9}function ks(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function vo(o,e){return e+5<o.length}function Ja(o,e){return e+1<o.length&&Ps(o,e)}function Ms(o,e){return vo(o,e)&&Ps(o,e)&&ks(o,e)<=o.length-e}function yo(o,e){if(Ja(o,e)){const t=qs(o,e);if(e+t>=o.length)return!1;const n=ks(o,e);if(n<=t)return!1;const r=e+n;return r===o.length||Ja(o,r)}return!1}function bo(o,e,t,n,r){if(!o.samplerate){const i=No(e,t,n,r);if(!i)return;o.config=i.config,o.samplerate=i.samplerate,o.channelCount=i.channelCount,o.codec=i.codec,o.manifestCodec=i.manifestCodec,b.log(`parsed codec:${o.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function Ks(o){return 1024*9e4/o}function Bo(o,e){const t=qs(o,e);if(e+t<=o.length){const n=ks(o,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function Hs(o,e,t,n,r){const i=Ks(o.samplerate),s=n+r*i,c=Bo(e,t);let p;if(c){const{frameLength:F,headerLength:he}=c,Ce=he+F,we=Math.max(0,t+Ce-e.length);we?(p=new Uint8Array(Ce-he),p.set(e.subarray(t+he,e.length),0)):p=e.subarray(t+he,t+Ce);const Ie={unit:p,pts:s};return we||o.samples.push(Ie),{sample:Ie,length:Ce,missing:we}}const _=e.length-t;return p=new Uint8Array(_),p.set(e.subarray(t,e.length),0),{sample:{unit:p,pts:s},length:_,missing:-1}}let Ns=null;const xo=[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],_o=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Eo=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],So=[0,1,1,4];function Rs(o,e,t,n,r){if(t+24>e.length)return;const i=Zs(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,c=n+r*s,p={unit:e.subarray(t,t+i.frameLength),pts:c,dts:c};return o.config=[],o.channelCount=i.channelCount,o.samplerate=i.sampleRate,o.samples.push(p),{sample:p,length:i.frameLength,missing:0}}}function Zs(o,e){const t=o[e+1]>>3&3,n=o[e+1]>>1&3,r=o[e+2]>>4&15,i=o[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=o[e+2]>>1&1,c=o[e+3]>>6,p=t===3?3-n:n===3?3:4,_=xo[p*14+r-1]*1e3,F=_o[(t===3?0:t===2?1:2)*3+i],he=c===3?1:2,Ce=Eo[t][n],we=So[n],Ie=Ce*8*we,$e=Math.floor(Ce*_/F+s)*we;if(Ns===null){const Pt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ns=Pt?parseInt(Pt[1]):0}return!!Ns&&Ns<=87&&n===2&&_>=224e3&&c===0&&(o[e+3]=o[e+3]|128),{sampleRate:F,channelCount:he,frameLength:$e,samplesPerFrame:Ie}}}function Bs(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function js(o,e){return e+1<o.length&&Bs(o,e)}function eo(o,e){return Bs(o,e)&&4<=o.length-e}function to(o,e){if(e+1<o.length&&Bs(o,e)){const n=Zs(o,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===o.length||js(o,i)}return!1}class no extends Us{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Y(e,0);let n=(t==null?void 0:t.length)||0;if(to(e,n))return!1;for(let r=e.length;n<r;n++)if(yo(e,n))return b.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Ms(e,t)}appendFrame(e,t,n){bo(e,this.observer,t,n,e.manifestCodec);const r=Hs(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const ro=/\/emsg[-/]ID3/i;class wo{constructor(e,t){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=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=Wa("video",1),s=this.audioTrack=Wa("audio",1),c=this.txtTrack=Wa("text",1);if(this.id3Track=Wa("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const p=Je(e);if(p.video){const{id:_,timescale:D,codec:F}=p.video;i.id=_,i.timescale=c.timescale=D,i.codec=F}if(p.audio){const{id:_,timescale:D,codec:F}=p.audio;s.id=_,s.timescale=D,s.codec=F}c.id=zt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return bn(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=hn(this.remainderData,e));const c=vr(n);this.remainderData=c.remainder,r.samples=c.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=pn(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=pn(e,t),{videoTrack:t,audioTrack:Wa(),id3Track:r,textTrack:Wa()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=We(e.samples,["emsg"]);r&&r.forEach(i=>{const s=Oe(i);if(ro.test(s.schemeIdUri)){const c=C(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let p=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;p<=.001&&(p=Number.POSITIVE_INFINITY);const _=s.payload;n.samples.push({data:_,len:_.byteLength,dts:c,pts:c,type:Fn.emsg,duration:p})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const ka=(o,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=o[e];const c=Math.min(n,8),p=8-c;i[0]=4278190080>>>24+p<<p,r[0]=(s[0]&i[0])>>p,t=t?t<<c|r[0]:r[0],e+=1,n-=c}return t};class Ws extends Us{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=Gs(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=Y(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&R(t)!==void 0&&ka(e,n)<16}}function Gs(o,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const c=[48e3,44100,32e3][i],p=e[t+4]&63,D=[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][p*3+i]*2;if(t+D>e.length)return-1;const F=e[t+6]>>5;let he=0;F===2?he+=2:(F&1&&F!==1&&(he+=2),F&4&&(he+=2));const Ce=(e[t+6]<<8|e[t+7])>>12-he&1,Ie=[2,1,2,3,3,4,4,5][F]+Ce,$e=e[t+5]>>3,ot=e[t+5]&7,kt=new Uint8Array([i<<6|$e<<1|ot>>2,(ot&3)<<6|F<<3|Ce<<2|p>>4,p<<4&224]),Pt=1536/c*9e4,gn=n+r*Pt,Ht=e.subarray(t,t+D);return o.config=kt,o.channelCount=Ie,o.samplerate=c,o.samples.push({unit:Ht,pts:gn}),D}class re{constructor(){this.VideoSample=null}createVideoSample(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&b.log(e.pts+"/"+e.dts+":"+e.debug)}}class ce{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,n=8,r;for(let i=0;i<e;i++)n!==0&&(r=this.readEG(),n=(t+r+256)%256),t=n===0?t:n}readSPS(){let e=0,t=0,n=0,r=0,i,s,c;const p=this.readUByte.bind(this),_=this.readBits.bind(this),D=this.readUEG.bind(this),F=this.readBoolean.bind(this),he=this.skipBits.bind(this),Ce=this.skipEG.bind(this),we=this.skipUEG.bind(this),Ie=this.skipScalingList.bind(this);p();const $e=p();if(_(5),he(3),p(),we(),$e===100||$e===110||$e===122||$e===244||$e===44||$e===83||$e===86||$e===118||$e===128){const Bn=D();if(Bn===3&&he(1),we(),we(),he(1),F())for(s=Bn!==3?8:12,c=0;c<s;c++)F()&&(c<6?Ie(16):Ie(64))}we();const ot=D();if(ot===0)D();else if(ot===1)for(he(1),Ce(),Ce(),i=D(),c=0;c<i;c++)Ce();we(),he(1);const kt=D(),Pt=D(),gn=_(1);gn===0&&he(1),he(1),F()&&(e=D(),t=D(),n=D(),r=D());let Ht=[1,1];if(F()&&F())switch(p()){case 1:Ht=[1,1];break;case 2:Ht=[12,11];break;case 3:Ht=[10,11];break;case 4:Ht=[16,11];break;case 5:Ht=[40,33];break;case 6:Ht=[24,11];break;case 7:Ht=[20,11];break;case 8:Ht=[32,11];break;case 9:Ht=[80,33];break;case 10:Ht=[18,11];break;case 11:Ht=[15,11];break;case 12:Ht=[64,33];break;case 13:Ht=[160,99];break;case 14:Ht=[4,3];break;case 15:Ht=[3,2];break;case 16:Ht=[2,1];break;case 255:{Ht=[p()<<8|p(),p()<<8|p()];break}}return{width:Math.ceil((kt+1)*16-e*2-t*2),height:(2-gn)*(Pt+1)*16-(gn?2:4)*(n+r),pixelRatio:Ht}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Fe extends re{parseAVCPES(e,t,n,r,i){const s=this.parseAVCNALu(e,n.data);let c=this.VideoSample,p,_=!1;n.data=null,c&&s.length&&!e.audFound&&(this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"")),s.forEach(D=>{var F;switch(D.type){case 1:{let Ie=!1;p=!0;const $e=D.data;if(_&&$e.length>4){const ot=new ce($e).readSliceType();(ot===2||ot===4||ot===7||ot===9)&&(Ie=!0)}if(Ie){var he;(he=c)!=null&&he.frame&&!c.key&&(this.pushAccessUnit(c,e),c=this.VideoSample=null)}c||(c=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),c.frame=!0,c.key=Ie;break}case 5:p=!0,(F=c)!=null&&F.frame&&!c.key&&(this.pushAccessUnit(c,e),c=this.VideoSample=null),c||(c=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),c.key=!0,c.frame=!0;break;case 6:{p=!0,Ft(D.data,1,n.pts,t.samples);break}case 7:{var Ce,we;p=!0,_=!0;const Ie=D.data,ot=new ce(Ie).readSPS();if(!e.sps||e.width!==ot.width||e.height!==ot.height||((Ce=e.pixelRatio)==null?void 0:Ce[0])!==ot.pixelRatio[0]||((we=e.pixelRatio)==null?void 0:we[1])!==ot.pixelRatio[1]){e.width=ot.width,e.height=ot.height,e.pixelRatio=ot.pixelRatio,e.sps=[Ie],e.duration=i;const kt=Ie.subarray(1,4);let Pt="avc1.";for(let gn=0;gn<3;gn++){let Ht=kt[gn].toString(16);Ht.length<2&&(Ht="0"+Ht),Pt+=Ht}e.codec=Pt}break}case 8:p=!0,e.pps=[D.data];break;case 9:p=!0,e.audFound=!0,c&&this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"");break;case 12:p=!0;break;default:p=!1,c&&(c.debug+="unknown NAL "+D.type+" ");break}c&&p&&c.units.push(D)}),r&&c&&(this.pushAccessUnit(c,e),this.VideoSample=null)}parseAVCNALu(e,t){const n=t.byteLength;let r=e.naluState||0;const i=r,s=[];let c=0,p,_,D,F=-1,he=0;for(r===-1&&(F=0,he=t[0]&31,r=0,c=1);c<n;){if(p=t[c++],!r){r=p?0:1;continue}if(r===1){r=p?0:2;continue}if(!p)r=3;else if(p===1){if(_=c-r-1,F>=0){const Ce={data:t.subarray(F,_),type:he};s.push(Ce)}else{const Ce=this.getLastNalUnit(e.samples);Ce&&(i&&c<=4-i&&Ce.state&&(Ce.data=Ce.data.subarray(0,Ce.data.byteLength-i)),_>0&&(Ce.data=hn(Ce.data,t.subarray(0,_)),Ce.state=0))}c<n?(D=t[c]&31,F=c,he=D,r=0):r=-1}else r=0}if(F>=0&&r>=0){const Ce={data:t.subarray(F,n),type:he,state:r};s.push(Ce)}if(s.length===0){const Ce=this.getLastNalUnit(e.samples);Ce&&(Ce.data=hn(Ce.data,t))}return e.naluState=r,s}}class Ve{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new ps(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(c=>{const p=new Uint8Array(c);r.set(p,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Ue(i.data),c=this.getAvcEncryptedData(s);this.decryptBuffer(c.buffer).then(p=>{i.data=this.getAvcDecryptedUnit(s,p),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}const tt=188;class it{constructor(e,t,n){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._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=e,this.config=t,this.typeSupported=n,this.videoParser=new Fe}static probe(e){const t=it.syncOffset(e);return t>0&&b.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let n=Math.min(tt*5,t-tt)+1,r=0;for(;r<n;){let i=!1,s=-1,c=0;for(let p=r;p<t;p+=tt)if(e[p]===71&&(t-p===tt||e[p+tt]===71)){if(c++,s===-1&&(s=p,s!==0&&(n=Math.min(s+tt*99,e.length-tt)+1)),i||(i=_t(e,p)===0),i&&c>1&&(s===0&&c>2||p+tt>n))return s}else{if(c)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:zt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=it.createTrack("video"),this._audioTrack=it.createTrack("audio",r),this._id3Track=it.createTrack("id3"),this._txtTrack=it.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n,this._duration=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,c=this._audioTrack,p=this._id3Track,_=this._txtTrack;let D=s.pid,F=s.pesData,he=c.pid,Ce=p.pid,we=c.pesData,Ie=p.pesData,$e=null,ot=this.pmtParsed,kt=this._pmtId,Pt=e.length;if(this.remainderData&&(e=hn(this.remainderData,e),Pt=e.length,this.remainderData=null),Pt<tt&&!r)return this.remainderData=e,{audioTrack:c,videoTrack:s,id3Track:p,textTrack:_};const gn=Math.max(0,it.syncOffset(e));Pt-=(Pt-gn)%tt,Pt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Pt,e.buffer.byteLength-Pt));let Ht=0;for(let dn=gn;dn<Pt;dn+=tt)if(e[dn]===71){const Gn=!!(e[dn+1]&64),Er=_t(e,dn),In=(e[dn+3]&48)>>4;let Yn;if(In>1){if(Yn=dn+5+e[dn+4],Yn===dn+tt)continue}else Yn=dn+4;switch(Er){case D:Gn&&(F&&(i=Lt(F))&&this.videoParser.parseAVCPES(s,_,i,!1,this._duration),F={data:[],size:0}),F&&(F.data.push(e.subarray(Yn,dn+tt)),F.size+=dn+tt-Yn);break;case he:if(Gn){if(we&&(i=Lt(we)))switch(c.segmentCodec){case"aac":this.parseAACPES(c,i);break;case"mp3":this.parseMPEGPES(c,i);break;case"ac3":this.parseAC3PES(c,i);break}we={data:[],size:0}}we&&(we.data.push(e.subarray(Yn,dn+tt)),we.size+=dn+tt-Yn);break;case Ce:Gn&&(Ie&&(i=Lt(Ie))&&this.parseID3PES(p,i),Ie={data:[],size:0}),Ie&&(Ie.data.push(e.subarray(Yn,dn+tt)),Ie.size+=dn+tt-Yn);break;case 0:Gn&&(Yn+=e[Yn]+1),kt=this._pmtId=Et(e,Yn);break;case kt:{Gn&&(Yn+=e[Yn]+1);const di=yt(e,Yn,this.typeSupported,n,this.observer);D=di.videoPid,D>0&&(s.pid=D,s.segmentCodec=di.segmentVideoCodec),he=di.audioPid,he>0&&(c.pid=he,c.segmentCodec=di.segmentAudioCodec),Ce=di.id3Pid,Ce>0&&(p.pid=Ce),$e!==null&&!ot&&(b.warn(`MPEG-TS PMT found at ${dn} after unknown PID '${$e}'. Backtracking to sync byte @${gn} to parse all TS packets.`),$e=null,dn=gn-188),ot=this.pmtParsed=!0;break}case 17:case 8191:break;default:$e=Er;break}}else Ht++;Ht>0&&It(this.observer,new Error(`Found ${Ht} TS packet/s that do not start with 0x47`)),s.pesData=F,c.pesData=we,p.pesData=Ie;const Bn={audioTrack:c,videoTrack:s,id3Track:p,textTrack:_};return r&&this.extractRemainingSamples(Bn),Bn}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,c=t.pesData,p=r.pesData;let _;if(s&&(_=Lt(s))?(this.videoParser.parseAVCPES(n,i,_,!0,this._duration),n.pesData=null):n.pesData=s,c&&(_=Lt(c))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,_);break;case"mp3":this.parseMPEGPES(t,_);break;case"ac3":this.parseAC3PES(t,_);break}t.pesData=null}else c!=null&&c.size&&b.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;p&&(_=Lt(p))?(this.parseID3PES(r,_),r.pesData=null):r.pesData=p}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Ve(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const F=r.missing,he=r.sample.unit.byteLength;if(F===-1)i=hn(r.sample.unit,i);else{const Ce=he-F;r.sample.unit.set(i.subarray(0,F),Ce),e.samples.push(r.sample),n=r.missing}}let s,c;for(s=n,c=i.length;s<c-1&&!Ja(i,s);s++);if(s!==n){let F;const he=s<c-1;if(he?F=`AAC PES did not start with ADTS header,offset:${s}`:F="No ADTS header found in AAC PES",It(this.observer,new Error(F),he),!he)return}bo(e,this.observer,i,s,this.audioCodec);let p;if(t.pts!==void 0)p=t.pts;else if(r){const F=Ks(e.samplerate);p=r.sample.pts+F}else{b.warn("[tsdemuxer]: AAC PES unknown PTS");return}let _=0,D;for(;s<c;)if(D=Hs(e,i,s,p,_),s+=D.length,D.missing){this.aacOverFlow=D;break}else for(_++;s<c-1&&!Ja(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const c=t.pts;if(c===void 0){b.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(js(n,s)){const p=Rs(e,n,s,c,i);if(p)s+=p.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){b.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,c=0,p;for(;c<i&&(p=Gs(e,n,c,r,s++))>0;)c+=p}}parseID3PES(e,t){if(t.pts===void 0){b.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=a({},t,{type:this._videoTrack?Fn.emsg:Fn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function _t(o,e){return((o[e+1]&31)<<8)+o[e+2]}function Et(o,e){return(o[e+10]&31)<<8|o[e+11]}function yt(o,e,t,n,r){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(o[e+1]&15)<<8|o[e+2],c=e+3+s-4,p=(o[e+10]&15)<<8|o[e+11];for(e+=12+p;e<c;){const _=_t(o,e),D=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!n){Se("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=_);break;case 21:i.id3Pid===-1&&(i.id3Pid=_);break;case 219:if(!n){Se("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=_,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?b.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="mp3");break;case 193:if(!n){Se("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="ac3"):b.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&D>0){let F=e+5,he=D;for(;he>2;){switch(o[F]){case 106:t.ac3!==!0?b.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=_,i.segmentAudioCodec="ac3");break}const we=o[F+1]+2;F+=we,he-=we}}break;case 194:case 135:return It(r,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return It(r,new Error("Unsupported HEVC in M2TS found")),i}e+=D+5}return i}function It(o,e,t){b.warn(`parsing error: ${e.message}`),o.emit(u.ERROR,u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Se(o){b.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function Lt(o){let e=0,t,n,r,i,s;const c=o.data;if(!o||o.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=hn(c[0],c[1]),c.splice(1,1);if(t=c[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(n=(t[4]<<8)+t[5],n&&n>o.size-6)return null;const _=t[7];_&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,_&64?(s=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-s>60*9e4&&(b.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),r=t[8];let D=r+9;if(o.size<=D)return null;o.size-=D;const F=new Uint8Array(o.size);for(let he=0,Ce=c.length;he<Ce;he++){t=c[he];let we=t.byteLength;if(D)if(D>we){D-=we;continue}else t=t.subarray(D),we-=D,D=0;F.set(t,e),e+=we}return n&&(n-=r+3),{data:F,pts:i,dts:s,len:n}}return null}class un extends Us{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Y(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&R(t)!==void 0&&ka(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(to(e,n))return b.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return eo(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Rs(e,t,n,this.basePTS,this.frameIndex)}}class rn{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const nn=Math.pow(2,32)-1;class ut{static init(){ut.types={avc1:[],avcC:[],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:[]};let e;for(e in ut.types)ut.types.hasOwnProperty(e)&&(ut.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=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]);ut.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);ut.STTS=ut.STSC=ut.STCO=i,ut.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ut.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ut.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ut.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);ut.FTYP=ut.box(ut.types.ftyp,s,p,s,c),ut.DINF=ut.box(ut.types.dinf,ut.box(ut.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return ut.box(ut.types.hdlr,ut.HDLR_TYPES[e])}static mdat(e){return ut.box(ut.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(nn+1)),r=Math.floor(t%(nn+1));return ut.box(ut.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return ut.box(ut.types.mdia,ut.mdhd(e.timescale,e.duration),ut.hdlr(e.type),ut.minf(e))}static mfhd(e){return ut.box(ut.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?ut.box(ut.types.minf,ut.box(ut.types.smhd,ut.SMHD),ut.DINF,ut.stbl(e)):ut.box(ut.types.minf,ut.box(ut.types.vmhd,ut.VMHD),ut.DINF,ut.stbl(e))}static moof(e,t,n){return ut.box(ut.types.moof,ut.mfhd(e),ut.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=ut.trak(e[t]);return ut.box.apply(null,[ut.types.moov,ut.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(ut.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=ut.trex(e[t]);return ut.box.apply(null,[ut.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(nn+1)),r=Math.floor(t%(nn+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return ut.box(ut.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return ut.box(ut.types.sdtp,n)}static stbl(e){return ut.box(ut.types.stbl,ut.stsd(e),ut.box(ut.types.stts,ut.STTS),ut.box(ut.types.stsc,ut.STSC),ut.box(ut.types.stsz,ut.STSZ),ut.box(ut.types.stco,ut.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const c=ut.box(ut.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),p=e.width,_=e.height,D=e.pixelRatio[0],F=e.pixelRatio[1];return ut.box(ut.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,p>>8&255,p&255,_>>8&255,_&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,ut.box(ut.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ut.box(ut.types.pasp,new Uint8Array([D>>24,D>>16&255,D>>8&255,D&255,F>>24,F>>16&255,F>>8&255,F&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return ut.box(ut.types.mp4a,ut.audioStsd(e),ut.box(ut.types.esds,ut.esds(e)))}static mp3(e){return ut.box(ut.types[".mp3"],ut.audioStsd(e))}static ac3(e){return ut.box(ut.types["ac-3"],ut.audioStsd(e),ut.box(ut.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?ut.box(ut.types.stsd,ut.STSD,ut.mp3(e)):e.segmentCodec==="ac3"?ut.box(ut.types.stsd,ut.STSD,ut.ac3(e)):ut.box(ut.types.stsd,ut.STSD,ut.mp4a(e)):ut.box(ut.types.stsd,ut.STSD,ut.avc1(e))}static tkhd(e){const t=e.id,n=e.duration*e.timescale,r=e.width,i=e.height,s=Math.floor(n/(nn+1)),c=Math.floor(n%(nn+1));return ut.box(ut.types.tkhd,new Uint8Array([1,0,0,7,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,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=ut.sdtp(e),r=e.id,i=Math.floor(t/(nn+1)),s=Math.floor(t%(nn+1));return ut.box(ut.types.traf,ut.box(ut.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),ut.box(ut.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),ut.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,ut.box(ut.types.trak,ut.tkhd(e),ut.mdia(e))}static trex(e){const t=e.id;return ut.box(ut.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let c,p,_,D,F,he;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),c=0;c<r;c++)p=n[c],_=p.duration,D=p.size,F=p.flags,he=p.cts,s.set([_>>>24&255,_>>>16&255,_>>>8&255,_&255,D>>>24&255,D>>>16&255,D>>>8&255,D&255,F.isLeading<<2|F.dependsOn,F.isDependedOn<<6|F.hasRedundancy<<4|F.paddingValue<<1|F.isNonSync,F.degradPrio&61440,F.degradPrio&15,he>>>24&255,he>>>16&255,he>>>8&255,he&255],12+16*c);return ut.box(ut.types.trun,s)}static initSegment(e){ut.types||ut.init();const t=ut.moov(e);return hn(ut.FTYP,t)}}ut.types=void 0,ut.HDLR_TYPES=void 0,ut.STTS=void 0,ut.STSC=void 0,ut.STCO=void 0,ut.STSZ=void 0,ut.VMHD=void 0,ut.SMHD=void 0,ut.STSD=void 0,ut.FTYP=void 0,ut.DINF=void 0;const Ln=9e4;function zn(o,e,t=1,n=!1){const r=o*e*t;return n?Math.round(r):r}function Nn(o,e,t=1,n=!1){return zn(o,e,1/t,n)}function Kn(o,e=!1){return zn(o,1e3,1/Ln,e)}function yr(o,e=1){return zn(o,Ln,1/e)}const br=10*1e3,dr=1024,Lr=1152,Fr=1536;let Wn=null,fr=null;class Vn{constructor(e,t,n,r=""){if(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=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,Wn===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Wn=s?parseInt(s[1]):0}if(fr===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);fr=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){b.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){b.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){b.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let c=s.pts,p=c-i;return p<-4294967296&&(t=!0,c=Mn(c,n),p=c-i),p>0?i:c},n);return t&&b.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,c,p){let _,D,F,he,Ce,we,Ie=i,$e=i;const ot=e.pid>-1,kt=t.pid>-1,Pt=t.samples.length,gn=e.samples.length>0,Ht=c&&Pt>0||Pt>1;if((!ot||gn)&&(!kt||Ht)||this.ISGenerated||c){if(this.ISGenerated){var dn,Gn,Er,In;const oi=this.videoTrackConfig;oi&&(t.width!==oi.width||t.height!==oi.height||((dn=t.pixelRatio)==null?void 0:dn[0])!==((Gn=oi.pixelRatio)==null?void 0:Gn[0])||((Er=t.pixelRatio)==null?void 0:Er[1])!==((In=oi.pixelRatio)==null?void 0:In[1]))&&this.resetInitSegment()}else F=this.generateIS(e,t,i,s);const Yn=this.isVideoContiguous;let di=-1,Dr;if(Ht&&(di=ur(t.samples),!Yn&&this.config.forceKeyFrameOnDiscontinuity))if(we=!0,di>0){b.warn(`[mp4-remuxer]: Dropped ${di} out of ${Pt} video samples due to a missing keyframe`);const oi=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(di),t.dropped+=di,$e+=(t.samples[0].pts-oi)/t.inputTimeScale,Dr=$e}else di===-1&&(b.warn(`[mp4-remuxer]: No keyframe found out of ${Pt} video samples`),we=!1);if(this.ISGenerated){if(gn&&Ht){const oi=this.getVideoStartPts(t.samples),Yr=(Mn(e.samples[0].pts,oi)-oi)/t.inputTimeScale;Ie+=Math.max(0,Yr),$e+=Math.max(0,-Yr)}if(gn){if(e.samplerate||(b.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(e,t,i,s)),D=this.remuxAudio(e,Ie,this.isAudioContiguous,s,kt||Ht||p===nt.AUDIO?$e:void 0),Ht){const oi=D?D.endPTS-D.startPTS:0;t.inputTimeScale||(b.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(e,t,i,s)),_=this.remuxVideo(t,$e,Yn,oi)}}else Ht&&(_=this.remuxVideo(t,$e,Yn,0));_&&(_.firstKeyFrame=di,_.independent=di!==-1,_.firstKeyFramePTS=Dr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(Ce=Ir(n,i,this._initPTS,this._initDTS)),r.samples.length&&(he=Gr(r,i,this._initPTS))),{audio:D,video:_,initSegment:F,independent:we,text:he,id3:Ce}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,c=this.typeSupported,p={},_=this._initPTS;let D=!_||r,F="audio/mp4",he,Ce,we;if(D&&(he=Ce=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(F="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}p.audio={id:"audio",container:F,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):ut.initSegment([e]),metadata:{channelCount:e.channelCount}},D&&(we=e.inputTimeScale,!_||we!==_.timescale?he=Ce=i[0].pts-Math.round(we*n):D=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,p.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:ut.initSegment([t]),metadata:{width:t.width,height:t.height}},D)if(we=t.inputTimeScale,!_||we!==_.timescale){const Ie=this.getVideoStartPts(s),$e=Math.round(we*n);Ce=Math.min(Ce,Mn(s[0].dts,Ie)-$e),he=Math.min(he,Ie-$e)}else D=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(p).length)return this.ISGenerated=!0,D?(this._initPTS={baseTime:he,timescale:we},this._initDTS={baseTime:Ce,timescale:we}):he=we=void 0,{tracks:p,initPTS:he,timescale:we}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,c=[],p=s.length,_=this._initPTS;let D=this.nextAvcDts,F=8,he=this.videoSampleDuration,Ce,we,Ie=Number.POSITIVE_INFINITY,$e=Number.NEGATIVE_INFINITY,ot=!1;if(!n||D===null){const Pr=t*i,Ar=s[0].pts-Mn(s[0].dts,s[0].pts);Wn&&D!==null&&Math.abs(Pr-Ar-D)<15e3?n=!0:D=Pr-Ar}const kt=_.baseTime*i/_.timescale;for(let Pr=0;Pr<p;Pr++){const Ar=s[Pr];Ar.pts=Mn(Ar.pts-kt,D),Ar.dts=Mn(Ar.dts-kt,D),Ar.dts<s[Pr>0?Pr-1:Pr].dts&&(ot=!0)}ot&&s.sort(function(Pr,Ar){const Hi=Pr.dts-Ar.dts,_i=Pr.pts-Ar.pts;return Hi||_i}),Ce=s[0].dts,we=s[s.length-1].dts;const Pt=we-Ce,gn=Pt?Math.round(Pt/(p-1)):he||e.inputTimeScale/30;if(n){const Pr=Ce-D,Ar=Pr>gn,Hi=Pr<-1;if((Ar||Hi)&&(Ar?b.warn(`AVC: ${Kn(Pr,!0)} ms (${Pr}dts) hole between fragments detected at ${t.toFixed(3)}`):b.warn(`AVC: ${Kn(-Pr,!0)} ms (${Pr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Hi||D>=s[0].pts||Wn)){Ce=D;const _i=s[0].pts-Pr;if(Ar)s[0].dts=Ce,s[0].pts=_i;else for(let Wi=0;Wi<s.length&&!(s[Wi].dts>_i);Wi++)s[Wi].dts-=Pr,s[Wi].pts-=Pr;b.log(`Video: Initial PTS/DTS adjusted: ${Kn(_i,!0)}/${Kn(Ce,!0)}, delta: ${Kn(Pr,!0)} ms`)}}Ce=Math.max(0,Ce);let Ht=0,Bn=0,dn=Ce;for(let Pr=0;Pr<p;Pr++){const Ar=s[Pr],Hi=Ar.units,_i=Hi.length;let Wi=0;for(let Da=0;Da<_i;Da++)Wi+=Hi[Da].data.length;Bn+=Wi,Ht+=_i,Ar.length=Wi,Ar.dts<dn?(Ar.dts=dn,dn+=gn/4|0||1):dn=Ar.dts,Ie=Math.min(Ar.pts,Ie),$e=Math.max(Ar.pts,$e)}we=s[p-1].dts;const Gn=Bn+4*Ht+8;let Er;try{Er=new Uint8Array(Gn)}catch(Pr){this.observer.emit(u.ERROR,u.ERROR,{type:x.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:Pr,bytes:Gn,reason:`fail allocating video mdat ${Gn}`});return}const In=new DataView(Er.buffer);In.setUint32(0,Gn),Er.set(ut.types.mdat,4);let Yn=!1,di=Number.POSITIVE_INFINITY,Dr=Number.POSITIVE_INFINITY,oi=Number.NEGATIVE_INFINITY,ri=Number.NEGATIVE_INFINITY;for(let Pr=0;Pr<p;Pr++){const Ar=s[Pr],Hi=Ar.units;let _i=0;for(let Ba=0,Ua=Hi.length;Ba<Ua;Ba++){const is=Hi[Ba],Mo=is.data,sl=is.data.byteLength;In.setUint32(F,sl),F+=4,Er.set(Mo,F),F+=sl,_i+=4+sl}let Wi;if(Pr<p-1)he=s[Pr+1].dts-Ar.dts,Wi=s[Pr+1].pts-Ar.pts;else{const Ba=this.config,Ua=Pr>0?Ar.dts-s[Pr-1].dts:gn;if(Wi=Pr>0?Ar.pts-s[Pr-1].pts:gn,Ba.stretchShortVideoTrack&&this.nextAudioPts!==null){const is=Math.floor(Ba.maxBufferHole*i),Mo=(r?Ie+r*i:this.nextAudioPts)-Ar.pts;Mo>is?(he=Mo-Ua,he<0?he=Ua:Yn=!0,b.log(`[mp4-remuxer]: It is approximately ${Mo/90} ms to the next segment; using duration ${he/90} ms for the last video frame.`)):he=Ua}else he=Ua}const Da=Math.round(Ar.pts-Ar.dts);di=Math.min(di,he),oi=Math.max(oi,he),Dr=Math.min(Dr,Wi),ri=Math.max(ri,Wi),c.push(new q(Ar.key,he,_i,Da))}if(c.length){if(Wn){if(Wn<70){const Pr=c[0].flags;Pr.dependsOn=2,Pr.isNonSync=0}}else if(fr&&ri-Dr<oi-di&&gn/oi<.025&&c[0].cts===0){b.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Pr=Ce;for(let Ar=0,Hi=c.length;Ar<Hi;Ar++){const _i=Pr+c[Ar].duration,Wi=Pr+c[Ar].cts;if(Ar<Hi-1){const Da=_i+c[Ar+1].cts;c[Ar].duration=Da-Wi}else c[Ar].duration=Ar?c[Ar-1].duration:gn;c[Ar].cts=0,Pr=_i}}}he=Yn||!he?gn:he,this.nextAvcDts=D=we+he,this.videoSampleDuration=he,this.isVideoContiguous=!0;const Yi={data1:ut.moof(e.sequenceNumber++,Ce,a({},e,{samples:c})),data2:Er,startPTS:Ie/i,endPTS:($e+he)/i,startDTS:Ce/i,endDTS:D/i,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Yi}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return Lr;case"ac3":return Fr;default:return dr}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,c=e.samplerate?e.samplerate:s,p=s/c,_=this.getSamplesPerFrame(e),D=_*p,F=this._initPTS,he=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Ce=[],we=i!==void 0;let Ie=e.samples,$e=he?0:8,ot=this.nextAudioPts||-1;const kt=t*s,Pt=F.baseTime*s/F.timescale;if(this.isAudioContiguous=n=n||Ie.length&&ot>0&&(r&&Math.abs(kt-ot)<9e3||Math.abs(Mn(Ie[0].pts-Pt,kt)-ot)<20*D),Ie.forEach(function(Yr){Yr.pts=Mn(Yr.pts-Pt,kt)}),!n||ot<0){if(Ie=Ie.filter(Yr=>Yr.pts>=0),!Ie.length)return;i===0?ot=0:r&&!we?ot=Math.max(0,kt):ot=Ie[0].pts}if(e.segmentCodec==="aac"){const Yr=this.config.maxAudioFramesDrift;for(let $i=0,Yi=ot;$i<Ie.length;$i++){const Pr=Ie[$i],Ar=Pr.pts,Hi=Ar-Yi,_i=Math.abs(1e3*Hi/s);if(Hi<=-Yr*D&&we)$i===0&&(b.warn(`Audio frame @ ${(Ar/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Hi/s)} ms.`),this.nextAudioPts=ot=Yi=Ar);else if(Hi>=Yr*D&&_i<br&&we){let Wi=Math.round(Hi/D);Yi=Ar-Wi*D,Yi<0&&(Wi--,Yi+=D),$i===0&&(this.nextAudioPts=ot=Yi),b.warn(`[mp4-remuxer]: Injecting ${Wi} audio frame @ ${(Yi/s).toFixed(3)}s due to ${Math.round(1e3*Hi/s)} ms gap.`);for(let Da=0;Da<Wi;Da++){const Ba=Math.max(Yi,0);let Ua=rn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Ua||(b.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ua=Pr.unit.subarray()),Ie.splice($i,0,{unit:Ua,pts:Ba}),Yi+=D,$i++}}Pr.pts=Yi,Yi+=D}}let gn=null,Ht=null,Bn,dn=0,Gn=Ie.length;for(;Gn--;)dn+=Ie[Gn].unit.byteLength;for(let Yr=0,$i=Ie.length;Yr<$i;Yr++){const Yi=Ie[Yr],Pr=Yi.unit;let Ar=Yi.pts;if(Ht!==null){const _i=Ce[Yr-1];_i.duration=Math.round((Ar-Ht)/p)}else if(n&&e.segmentCodec==="aac"&&(Ar=ot),gn=Ar,dn>0){dn+=$e;try{Bn=new Uint8Array(dn)}catch(_i){this.observer.emit(u.ERROR,u.ERROR,{type:x.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:_i,bytes:dn,reason:`fail allocating audio mdat ${dn}`});return}he||(new DataView(Bn.buffer).setUint32(0,dn),Bn.set(ut.types.mdat,4))}else return;Bn.set(Pr,$e);const Hi=Pr.byteLength;$e+=Hi,Ce.push(new q(!0,_,Hi,0)),Ht=Ar}const Er=Ce.length;if(!Er)return;const In=Ce[Ce.length-1];this.nextAudioPts=ot=Ht+p*In.duration;const Yn=he?new Uint8Array(0):ut.moof(e.sequenceNumber++,gn/p,a({},e,{samples:Ce}));e.samples=[];const di=gn/s,Dr=ot/s,ri={data1:Yn,data2:Bn,startPTS:di,endPTS:Dr,startDTS:di,endDTS:Dr,type:"audio",hasAudio:!0,hasVideo:!1,nb:Er};return this.isAudioContiguous=!0,ri}remuxEmptyAudio(e,t,n,r){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,c=i/s,p=this.nextAudioPts,_=this._initDTS,D=_.baseTime*9e4/_.timescale,F=(p!==null?p:r.startDTS*i)+D,he=r.endDTS*i+D,Ce=c*dr,we=Math.ceil((he-F)/Ce),Ie=rn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(b.warn("[mp4-remuxer]: remux empty Audio"),!Ie){b.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const $e=[];for(let ot=0;ot<we;ot++){const kt=F+ot*Ce;$e.push({unit:Ie,pts:kt,dts:kt})}return e.samples=$e,this.remuxAudio(e,t,n,!1)}}function Mn(o,e){let t;if(e===null)return o;for(e<o?t=-8589934592:t=8589934592;Math.abs(o-e)>4294967296;)o+=t;return o}function ur(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Ir(o,e,t,n){const r=o.samples.length;if(!r)return;const i=o.inputTimeScale;for(let c=0;c<r;c++){const p=o.samples[c];p.pts=Mn(p.pts-t.baseTime*i/t.timescale,e*i)/i,p.dts=Mn(p.dts-n.baseTime*i/n.timescale,e*i)/i}const s=o.samples;return o.samples=[],{samples:s}}function Gr(o,e,t){const n=o.samples.length;if(!n)return;const r=o.inputTimeScale;for(let s=0;s<n;s++){const c=o.samples[s];c.pts=Mn(c.pts-t.baseTime*r/t.timescale,e*r)/r}o.samples.sort((s,c)=>s.pts-c.pts);const i=o.samples;return o.samples=[],{samples:i}}class q{constructor(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class l{constructor(){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}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(ge(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=Je(e);r.audio&&(t=f(r.audio,ee.AUDIO)),r.video&&(n=f(r.video,ee.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,initSegment:e,id:"main"}:b.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var c,p;let{initPTS:_,lastEndTime:D}=this;const F={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};C(D)||(D=this.lastEndTime=i||0);const he=t.samples;if(!(he!=null&&he.length))return F;const Ce={initPTS:void 0,timescale:1};let we=this.initData;if((c=we)!=null&&c.length||(this.generateInitSegment(he),we=this.initData),!((p=we)!=null&&p.length))return b.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),F;this.emitInitSegment&&(Ce.tracks=this.initTracks,this.emitInitSegment=!1);const Ie=fn(he,we),$e=He(we,he),ot=$e===null?i:$e;(d(_,ot,i,Ie)||Ce.timescale!==_.timescale&&s)&&(Ce.initPTS=ot-i,_&&_.timescale===1&&b.warn(`Adjusting initPTS by ${Ce.initPTS-_.baseTime}`),this.initPTS=_={baseTime:Ce.initPTS,timescale:1});const kt=e?ot-_.baseTime/_.timescale:D,Pt=kt+Ie;Hn(we,he,_.baseTime/_.timescale),Ie>0?this.lastEndTime=Pt:(b.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const gn=!!we.audio,Ht=!!we.video;let Bn="";gn&&(Bn+="audio"),Ht&&(Bn+="video");const dn={data1:he,startPTS:kt,startDTS:kt,endPTS:Pt,endDTS:Pt,type:Bn,hasAudio:gn,hasVideo:Ht,nb:1,dropped:0};return F.audio=dn.type==="audio"?dn:void 0,F.video=dn.type!=="audio"?dn:void 0,F.initSegment=Ce,F.id3=Ir(n,i,_,_),r.samples.length&&(F.text=Gr(r,i,_)),F}}function d(o,e,t,n){if(o===null)return!0;const r=Math.max(n,1),i=e-o.baseTime/o.timescale;return Math.abs(i-t)>r}function f(o,e){const t=o==null?void 0:o.codec;if(t&&t.length>4)return t;if(e===ee.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return xn(t,!1);const n="mp4a.40.5";return b.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${n}"`),n}return b.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let g;try{g=self.performance.now.bind(self.performance)}catch(o){b.debug("Unable to use Performance API on this environment"),g=Ke==null?void 0:Ke.Date.now}const k=[{demux:wo,remux:l},{demux:it,remux:Vn},{demux:no,remux:Vn},{demux:un,remux:Vn}];k.splice(2,0,{demux:Ws,remux:Vn});class ae{constructor(e,t,n,r,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.vendor=r,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=g();let s=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:p}=this;r&&(this.currentTransmuxState=r);const{contiguous:_,discontinuity:D,trackSwitch:F,accurateTimeOffset:he,timeOffset:Ce,initSegmentChange:we}=r||c,{audioCodec:Ie,videoCodec:$e,defaultInitPts:ot,duration:kt,initSegmentData:Pt}=p,gn=Re(s,t);if(gn&&gn.method==="AES-128"){const Gn=this.getDecrypter();if(Gn.isSync()){let Er=Gn.softwareDecrypt(s,gn.key.buffer,gn.iv.buffer);if(n.part>-1&&(Er=Gn.flush()),!Er)return i.executeEnd=g(),Le(n);s=new Uint8Array(Er)}else return this.decryptionPromise=Gn.webCryptoDecrypt(s,gn.key.buffer,gn.iv.buffer).then(Er=>{const In=this.push(Er,null,n);return this.decryptionPromise=null,In}),this.decryptionPromise}const Ht=this.needsProbing(D,F);if(Ht){const Gn=this.configureTransmuxer(s);if(Gn)return b.warn(`[transmuxer] ${Gn.message}`),this.observer.emit(u.ERROR,u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:Gn,reason:Gn.message}),i.executeEnd=g(),Le(n)}(D||F||we||Ht)&&this.resetInitSegment(Pt,Ie,$e,kt,t),(D||we||Ht)&&this.resetInitialTimestamp(ot),_||this.resetContiguity();const Bn=this.transmux(s,gn,Ce,he,n),dn=this.currentTransmuxState;return dn.contiguous=!0,dn.discontinuity=!1,dn.trackSwitch=!1,i.executeEnd=g(),Bn}flush(e){const t=e.transmuxing;t.executeStart=g();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:c}=r;if(n){const F=n.flush();F&&s.push(this.push(F,null,e))}const{demuxer:p,remuxer:_}=this;if(!p||!_)return t.executeEnd=g(),[Le(e)];const D=p.flush(c);return Qe(D)?D.then(F=>(this.flushRemux(s,F,e),s)):(this.flushRemux(s,D,e),s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:c}=t,{accurateTimeOffset:p,timeOffset:_}=this.currentTransmuxState;b.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const D=this.remuxer.remux(r,i,s,c,_,p,!0,this.id);e.push({remuxResult:D,chunkMeta:n}),n.transmuxing.executeEnd=g()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:c}=this;!s||!c||(s.resetInitSegment(e,t,n,r),c.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:c,textTrack:p}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,c,p,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r,vendor:i}=this;let s;for(let he=0,Ce=k.length;he<Ce;he++){var c;if((c=k[he].demux)!=null&&c.probe(e)){s=k[he];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const p=this.demuxer,_=this.remuxer,D=s.remux,F=s.demux;(!_||!(_ instanceof D))&&(this.remuxer=new D(n,t,r,i)),(!p||!(p instanceof F))&&(this.demuxer=new F(n,t,r),this.probe=F.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new ps(this.config)),e}}function Re(o,e){let t=null;return o.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Le=o=>({remuxResult:{},chunkMeta:o});function Qe(o){return"then"in o&&o.then instanceof Function}class dt{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class wt{constructor(e,t,n,r,i,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=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}var Ut={exports:{}};(function(o){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(p,_,D){this.fn=p,this.context=_,this.once=D||!1}function i(p,_,D,F,he){if(typeof D!="function")throw new TypeError("The listener must be a function");var Ce=new r(D,F||p,he),we=t?t+_:_;return p._events[we]?p._events[we].fn?p._events[we]=[p._events[we],Ce]:p._events[we].push(Ce):(p._events[we]=Ce,p._eventsCount++),p}function s(p,_){--p._eventsCount===0?p._events=new n:delete p._events[_]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var _=[],D,F;if(this._eventsCount===0)return _;for(F in D=this._events)e.call(D,F)&&_.push(t?F.slice(1):F);return Object.getOwnPropertySymbols?_.concat(Object.getOwnPropertySymbols(D)):_},c.prototype.listeners=function(_){var D=t?t+_:_,F=this._events[D];if(!F)return[];if(F.fn)return[F.fn];for(var he=0,Ce=F.length,we=new Array(Ce);he<Ce;he++)we[he]=F[he].fn;return we},c.prototype.listenerCount=function(_){var D=t?t+_:_,F=this._events[D];return F?F.fn?1:F.length:0},c.prototype.emit=function(_,D,F,he,Ce,we){var Ie=t?t+_:_;if(!this._events[Ie])return!1;var $e=this._events[Ie],ot=arguments.length,kt,Pt;if($e.fn){switch($e.once&&this.removeListener(_,$e.fn,void 0,!0),ot){case 1:return $e.fn.call($e.context),!0;case 2:return $e.fn.call($e.context,D),!0;case 3:return $e.fn.call($e.context,D,F),!0;case 4:return $e.fn.call($e.context,D,F,he),!0;case 5:return $e.fn.call($e.context,D,F,he,Ce),!0;case 6:return $e.fn.call($e.context,D,F,he,Ce,we),!0}for(Pt=1,kt=new Array(ot-1);Pt<ot;Pt++)kt[Pt-1]=arguments[Pt];$e.fn.apply($e.context,kt)}else{var gn=$e.length,Ht;for(Pt=0;Pt<gn;Pt++)switch($e[Pt].once&&this.removeListener(_,$e[Pt].fn,void 0,!0),ot){case 1:$e[Pt].fn.call($e[Pt].context);break;case 2:$e[Pt].fn.call($e[Pt].context,D);break;case 3:$e[Pt].fn.call($e[Pt].context,D,F);break;case 4:$e[Pt].fn.call($e[Pt].context,D,F,he);break;default:if(!kt)for(Ht=1,kt=new Array(ot-1);Ht<ot;Ht++)kt[Ht-1]=arguments[Ht];$e[Pt].fn.apply($e[Pt].context,kt)}}return!0},c.prototype.on=function(_,D,F){return i(this,_,D,F,!1)},c.prototype.once=function(_,D,F){return i(this,_,D,F,!0)},c.prototype.removeListener=function(_,D,F,he){var Ce=t?t+_:_;if(!this._events[Ce])return this;if(!D)return s(this,Ce),this;var we=this._events[Ce];if(we.fn)we.fn===D&&(!he||we.once)&&(!F||we.context===F)&&s(this,Ce);else{for(var Ie=0,$e=[],ot=we.length;Ie<ot;Ie++)(we[Ie].fn!==D||he&&!we[Ie].once||F&&we[Ie].context!==F)&&$e.push(we[Ie]);$e.length?this._events[Ce]=$e.length===1?$e[0]:$e:s(this,Ce)}return this},c.prototype.removeAllListeners=function(_){var D;return _?(D=t?t+_:_,this._events[D]&&s(this,D)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,o.exports=c})(Ut);var mn=Ut.exports,Zt=z(mn);class Qt{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(_,D)=>{D=D||{},D.frag=this.frag,D.id=this.id,_===u.ERROR&&(this.error=D.error),this.hls.trigger(_,D)};this.observer=new Zt,this.observer.on(u.FRAG_DECRYPTED,s),this.observer.on(u.ERROR,s);const c=Tn(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},p={mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:c.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||Xs())){try{i.workerPath?(b.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=Qs(i.workerPath)):(b.log(`injecting Web Worker for "${t}"`),this.workerContext=zs()),this.onwmsg=F=>this.onWorkerMessage(F);const{worker:D}=this.workerContext;D.addEventListener("message",this.onwmsg),D.onerror=F=>{const he=new Error(`${F.message} (${F.filename}:${F.lineno})`);i.enableWorker=!1,b.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:he})},D.postMessage({cmd:"init",typeSupported:p,vendor:"",id:t,config:JSON.stringify(i)})}catch(D){b.warn(`Error setting up "${t}" Web Worker, fallback to inline`,D),this.resetWorker(),this.error=null,this.transmuxer=new ae(this.observer,p,i,"",t)}return}this.transmuxer=new ae(this.observer,p,i,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,c,p,_,D){var F,he;_.transmuxing.start=self.performance.now();const{transmuxer:Ce}=this,we=s?s.start:i.start,Ie=i.decryptdata,$e=this.frag,ot=!($e&&i.cc===$e.cc),kt=!($e&&_.level===$e.level),Pt=$e?_.sn-$e.sn:-1,gn=this.part?_.part-this.part.index:-1,Ht=Pt===0&&_.id>1&&_.id===($e==null?void 0:$e.stats.chunkCount),Bn=!kt&&(Pt===1||Pt===0&&(gn===1||Ht&&gn<=0)),dn=self.performance.now();(kt||Pt||i.stats.parsing.start===0)&&(i.stats.parsing.start=dn),s&&(gn||!Bn)&&(s.stats.parsing.start=dn);const Gn=!($e&&((F=i.initSegment)==null?void 0:F.url)===((he=$e.initSegment)==null?void 0:he.url)),Er=new wt(ot,Bn,p,kt,we,Gn);if(!Bn||ot||Gn){b.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${_.sn} p: ${_.part} level: ${_.level} id: ${_.id}
discontinuity: ${ot}
trackSwitch: ${kt}
contiguous: ${Bn}
accurateTimeOffset: ${p}
timeOffset: ${we}
initSegmentChange: ${Gn}`);const In=new dt(n,r,t,c,D);this.configureTransmuxer(In)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:Ie,chunkMeta:_,state:Er},e instanceof ArrayBuffer?[e]:[]);else if(Ce){const In=Ce.push(e,Ie,_,Er);Qe(In)?(Ce.async=!0,In.then(Yn=>{this.handleTransmuxComplete(Yn)}).catch(Yn=>{this.transmuxerError(Yn,_,"transmuxer-interface push error")})):(Ce.async=!1,this.handleTransmuxComplete(In))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let n=t.flush(e);Qe(n)||t.async?(Qe(n)||(n=Promise.resolve(n)),n.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(n,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){b.warn(`worker message received with no ${t?"event name":"data"}`);return}const n=this.hls;if(this.hls)switch(t.event){case"init":{var r;const i=(r=this.workerContext)==null?void 0:r.objectURL;i&&self.URL.revokeObjectURL(i);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":b[t.data.logType]&&b[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const cn=100;class wn extends As{constructor(e,t,n){super(e,t,n,"[audio-stream-controller]",nt.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.ERROR,this.onError,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n==="main"){const s=t.cc;this.initPTS[t.cc]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}`),this.videoTrackCC=s,this.state===Sn.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=Sn.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(cn),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=Sn.IDLE):(this.loadedmetadata=!1,this.state=Sn.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case Sn.IDLE:this.doTickIdle();break;case Sn.WAITING_TRACK:{var e;const{levels:n,trackId:r}=this,i=n==null||(e=n[r])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=Sn.WAITING_INIT_PTS}break}case Sn.FRAG_LOADING_WAITING_RETRY:{var t;const n=performance.now(),r=this.retryDate;if(!r||n>=r||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[s])||null),this.state=Sn.IDLE}break}case Sn.WAITING_INIT_PTS:{const n=this.waitingData;if(n){const{frag:r,part:i,cache:s,complete:c}=n;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Sn.FRAG_LOADING;const p=s.flush(),_={frag:r,part:i,payload:p,networkDetails:null};this._handleFragmentLoadProgress(_),c&&super._handleFragmentLoadComplete(_)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const p=this.getLoadPosition(),_=Ci.bufferInfo(this.mediaBuffer,p,this.config.maxBufferHole);da(_.end,this.config.maxFragLookUpTolerance,r)<0&&(this.log(`Waiting fragment cc (${r.cc}) @ ${r.start} cancelled because another fragment at ${_.end} is needed`),this.clearWaitingFragment())}}else this.state=Sn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Sn.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:n,trackId:r}=this,i=e.config;if(!this.buffering||!n&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[r]))return;const s=t[r],c=s.details;if(!c||c.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(c)){this.state=Sn.WAITING_TRACK;return}const p=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&p&&(this.bufferFlushed=!1,this.afterBufferFlushed(p,ee.AUDIO,nt.AUDIO));const _=this.getFwdBufferInfo(p,nt.AUDIO);if(_===null)return;if(!this.switchingTrack&&this._streamEnded(_,c)){e.trigger(u.BUFFER_EOS,{type:"audio"}),this.state=Sn.ENDED;return}const D=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,nt.MAIN),F=_.len,he=this.getMaxBufferLength(D==null?void 0:D.len),Ce=c.fragments,we=Ce[0].start,Ie=this.getLoadPosition(),$e=this.flushing?Ie:_.end;if(this.switchingTrack&&n){const gn=Ie;c.PTSKnown&&gn<we&&(_.end>we||_.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=we+.05)}if(F>=he&&!this.switchingTrack&&$e<Ce[Ce.length-1].start)return;let ot=this.getNextFragment($e,c),kt=!1;if(ot&&this.isLoopLoading(ot,$e)&&(kt=!!ot.gap,ot=this.getNextFragmentLoopLoading(ot,c,_,nt.MAIN,he)),!ot){this.bufferFlushed=!0;return}const Pt=D&&ot.start>D.end+c.targetduration;if(Pt||!(D!=null&&D.len)&&_.len){const gn=this.getAppendedFrag(ot.start,nt.MAIN);if(gn===null||(kt||(kt=!!gn.gap||!!Pt&&D.len===0),Pt&&!kt||kt&&_.nextStart&&_.nextStart<gn.end))return}this.loadFragment(ot,s,$e)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Di(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?this.setInterval(cn):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=Sn.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=Sn.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(u.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var n;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:r}=this,{details:i,id:s}=t;if(!r){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const c=r[s];let p=0;if(i.live||(n=c.details)!=null&&n.live){this.checkLiveUpdate(i);const D=this.mainDetails;if(i.deltaUpdateFailed||!D)return;if(!c.details&&i.hasProgramDateTime&&D.hasProgramDateTime)Pa(i,D),p=i.fragments[0].start;else{var _;p=this.alignPlaylists(i,c.details,(_=this.levelLastLoaded)==null?void 0:_.details)}}c.details=i,this.levelLastLoaded=c,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,p),this.state===Sn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Sn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{config:s,trackId:c,levels:p}=this;if(!p){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const _=p[c];if(!_){this.warn("Audio track is undefined on fragment load progress");return}const D=_.details;if(!D){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const F=s.defaultAudioCodec||_.audioCodec||"mp4a.40.2";let he=this.transmuxer;he||(he=this.transmuxer=new Qt(this.hls,nt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Ce=this.initPTS[n.cc],we=(t=n.initSegment)==null?void 0:t.data;if(Ce!==void 0){const $e=r?r.index:-1,ot=$e!==-1,kt=new vs(n.level,n.sn,n.stats.chunkCount,i.byteLength,$e,ot);he.push(i,we,F,"",n,r,D.totalduration,!1,kt,Ce)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${D.startSN} ,${D.endSN}],track ${c}`);const{cache:Ie}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new $s,complete:!1};Ie.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=Sn.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==nt.AUDIO){if(!this.loadedmetadata&&n.type===nt.MAIN){const i=this.videoBuffer||this.media;i&&Ci.getBuffered(i).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(n.sn!=="initSegment"){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(u.AUDIO_TRACK_SWITCHED,U({},i)))}this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=Sn.ERROR;return}switch(t.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(nt.AUDIO,t);break;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Sn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===Dn.AUDIO_TRACK&&(this.state=Sn.IDLE);break;case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===y.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==ee.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==ee.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Sn.ENDED&&(this.state=Sn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,nt.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,c=this.getCurrentContext(s);if(!c){this.resetWhenMissingContext(s);return}const{frag:p,part:_,level:D}=c,{details:F}=D,{audio:he,text:Ce,id3:we,initSegment:Ie}=i;if(this.fragContextChanged(p)||!F){this.fragmentTracker.removeFragment(p);return}if(this.state=Sn.PARSING,this.switchingTrack&&he&&this.completeAudioSwitch(this.switchingTrack),Ie!=null&&Ie.tracks){const $e=p.initSegment||p;this._bufferInitSegment(D,Ie.tracks,$e,s),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:$e,id:n,tracks:Ie.tracks})}if(he){const{startPTS:$e,endPTS:ot,startDTS:kt,endDTS:Pt}=he;_&&(_.elementaryStreams[ee.AUDIO]={startPTS:$e,endPTS:ot,startDTS:kt,endDTS:Pt}),p.setElementaryStreamInfo(ee.AUDIO,$e,ot,kt,Pt),this.bufferFragmentData(he,p,_,s)}if(we!=null&&(t=we.samples)!=null&&t.length){const $e=a({id:n,frag:p,details:F},we);r.trigger(u.FRAG_PARSING_METADATA,$e)}if(Ce){const $e=a({id:n,frag:p,details:F},Ce);r.trigger(u.FRAG_PARSING_USERDATA,$e)}}_bufferInitSegment(e,t,n,r){if(this.state!==Sn.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="audio";const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(u.BUFFER_CODECS,t);const c=i.initSegment;if(c!=null&&c.byteLength){const p={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:c};this.hls.trigger(u.BUFFER_APPENDING,p)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||r===mi.NOT_LOADED||r===mi.PARTIAL){var i;if(e.sn==="initSegment")this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Sn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&Pa(t.details,s)}else this.startFragRequested=!0,super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:c}=this.bufferedTrack;xa({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:c},e,Br)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(u.AUDIO_TRACK_SWITCHED,U({},e))}}function rr(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!Cn(o[t].attrs,e[t].attrs))return!1;return!0}function Cn(o,e,t){const n=o["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>o[r]!==e[r])}function nr(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class Sr extends ui{constructor(e){super(e,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.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(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const c=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(c=>(r==null?void 0:r.indexOf(c))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const c=this.tracks.filter(he=>!n||n.indexOf(he.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(he=>he.default)&&(this.selectDefaultTrack=!1),c.forEach((he,Ce)=>{he.id=Ce});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const p=this.hls.config.audioPreference;if(!i&&p){const he=ba(p,c,Br);if(he>-1)i=c[he];else{const Ce=ba(p,this.tracks);i=this.tracks[Ce]}}let _=this.findTrackId(i);_===-1&&i&&(_=this.findTrackId(null));const D={audioTracks:c};this.log(`Updating audio tracks, ${c.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(u.AUDIO_TRACKS_UPDATED,D);const F=this.trackId;if(_!==-1&&F===-1)this.setAudioTrack(_);else if(c.length&&F===-1){var s;const he=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${c.length}`);this.warn(he.message),this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:he})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===Dn.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&xa(e,r,Br))return r;const i=ba(e,this.tracksInGroup,Br);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const c=ia(e,t.levels,n,s,Br);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const s=ba(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(u.AUDIO_TRACK_SWITCHING,U({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||xa(e,r,Br)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:p}=e;for(let _=0;_<t.length;_++){const D=t[_];if(xa({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:p},D,Br))return _}for(let _=0;_<t.length;_++){const D=t[_];if(Cn(e.attrs,D.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return _}for(let _=0;_<t.length;_++){const D=t[_];if(Cn(e.attrs,D.attrs,["LANGUAGE"]))return _}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${n} "${t.name}" lang:${t.lang} group:${r}`),this.clearTimer(),this.hls.trigger(u.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}}const wr=500;class ii extends As{constructor(e,t,n){super(e,t,n,"[subtitle-stream-controller]",nt.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.ERROR,this.onError,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.ERROR,this.onError,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=Sn.IDLE,this.setInterval(wr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragPrevious=n,this.state=Sn.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const c=n.start;for(let _=0;_<i.length;_++)if(c>=i[_].start&&c<=i[_].end){s=i[_];break}const p=n.start+n.duration;s?s.end=p:(s={start:c,end:p},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null)}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let c=0;c<s.length;){if(s[c].end<=i){s.shift();continue}else if(s[c].start<i)s[c].start=i;else break;c++}}),this.fragmentTracker.removeFragmentsInRange(n,i,nt.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===nt.MAIN){var n;(n=this.media)!=null&&n.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===nt.SUBTITLE&&(t.details===y.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Sn.STOPPED&&(this.state=Sn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&rr(this.levels,t)){this.levels=t.map(n=>new Di(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Di(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,nt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(wr)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:c}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${c}`);return}const p=i[c];if(c>=i.length||!p)return;this.log(`Subtitle track ${c} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let _=0;if(s.live||(n=p.details)!=null&&n.live){const F=this.mainDetails;if(s.deltaUpdateFailed||!F)return;const he=F.fragments[0];if(!p.details)s.hasProgramDateTime&&F.hasProgramDateTime?(Pa(s,F),_=s.fragments[0].start):he&&(_=he.start,kn(s,_));else{var D;_=this.alignPlaylists(s,p.details,(D=this.levelLastLoaded)==null?void 0:D.details),_===0&&he&&(_=he.start,kn(s,_))}}p.details=s,this.levelLastLoaded=p,c===r&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,_),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Sn.IDLE&&(Ca(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),p.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&r.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer).catch(c=>{throw i.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const p=performance.now();i.trigger(u.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:s,tdecrypt:p}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=Sn.IDLE})}}doTick(){if(!this.media){this.state=Sn.IDLE;return}if(this.state===Sn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details)return;const{config:r}=this,i=this.getLoadPosition(),s=Ci.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:c,len:p}=s,_=this.getFwdBufferInfo(this.media,nt.MAIN),D=n.details,F=this.getMaxBufferLength(_==null?void 0:_.len)+D.levelTargetDuration;if(p>F)return;const he=D.fragments,Ce=he.length,we=D.edge;let Ie=null;const $e=this.fragPrevious;if(c<we){const ot=r.maxFragLookUpTolerance,kt=c>we-ot?0:ot;Ie=Ca($e,he,Math.max(he[0].start,c),kt),!Ie&&$e&&$e.start<he[0].start&&(Ie=he[0])}else Ie=he[Ce-1];if(!Ie)return;if(Ie=this.mapToInitFragWhenRequired(Ie),Ie.sn!=="initSegment"){const ot=Ie.sn-D.startSN,kt=he[ot-1];kt&&kt.cc===Ie.cc&&this.fragmentTracker.getState(kt)===mi.NOT_LOADED&&(Ie=kt)}this.fragmentTracker.getState(Ie)===mi.NOT_LOADED&&this.loadFragment(Ie,n,c)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,n){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,n))}get mediaBufferTimeRanges(){return new ai(this.tracksBuffered[this.currentTrackId]||[])}}class ai{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}class Zi extends ui{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=On(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.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(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),On(this.media.textTracks).forEach(t=>{Hr(t)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const c=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(D=>!n||n.indexOf(D.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(D=>D.default)&&(this.selectDefaultTrack=!1),s.forEach((D,F)=>{D.id=F});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const c=this.hls.config.subtitlePreference;if(!i&&c){this.selectDefaultTrack=!1;const D=ba(c,s);if(D>-1)i=s[D];else{const F=ba(c,this.tracks);i=this.tracks[F]}}let p=this.findTrackId(i);p===-1&&i&&(p=this.findTrackId(null));const _={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(u.SUBTITLE_TRACKS_UPDATED,_),p!==-1&&this.trackId===-1&&this.setSubtitleTrack(p)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||xa(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Cn(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Cn(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(nr(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===Dn.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&xa(e,n))return n;const r=ba(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=ba(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${n}`),this.hls.trigger(u.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=On(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>nr(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!C(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:c="",name:p,type:_,url:D}=r;this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:s,groupId:c,name:p,type:_,url:D});const F=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(F)}}class ci{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,n){const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const n=new Promise(i=>{t=i}),r={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(r,e),n}executeNext(e){const t=this.queues[e];if(t.length){const n=t[0];try{n.execute()}catch(r){b.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${r}`),n.onError(r);const i=this.buffers[e];i!=null&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const si=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class xi{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=n=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:n,mediaSource:r}=this;this.log("Media source opened"),n&&(n.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(u.MEDIA_ATTACHED,{media:n,mediaSource:r})),r&&r.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&b.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=er(Tn(e.config.preferManagedMediaSource)),this.log=b.log.bind(b,t),this.warn=b.warn.bind(b,t),this.error=b.error.bind(b,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_APPENDING,this.onBufferAppending,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.BUFFER_EOS,this.onBufferEos,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.FRAG_PARSED,this.onFragParsed,this),e.on(u.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_APPENDING,this.onBufferAppending,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.BUFFER_EOS,this.onBufferEos,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.FRAG_PARSED,this.onFragParsed,this),e.off(u.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new ci(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const n=this.media=t.media,r=Tn(this.appendSource);if(n&&r){var i;const s=this.mediaSource=new r;this.log(`created media source: ${(i=s.constructor)==null?void 0:i.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));const c=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const p=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||p&&s instanceof p,Ji(n),_a(n,c),n.load()}catch(p){n.src=c}else n.src=c;n.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:n}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(r){this.warn(`onMediaDetaching: ${r.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(e.removeAttribute("src"),this.appendSource&&Ji(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(u.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var n;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(r){this.warn(`onBufferReset ${e}`,r)}}onBufferCodecs(e,t){const n=this.getSourceBufferTypes().length,r=Object.keys(t);if(r.forEach(s=>{if(n){const p=this.tracks[s];if(p&&typeof p.buffer.changeType=="function"){var c;const{id:_,codec:D,levelCodec:F,container:he,metadata:Ce}=t[s],we=Rn(p.codec,p.levelCodec),Ie=we==null?void 0:we.replace(si,"$1");let $e=Rn(D,F);const ot=(c=$e)==null?void 0:c.replace(si,"$1");if($e&&Ie!==ot){s.slice(0,5)==="audio"&&($e=xn($e,this.appendSource));const kt=`${he};codecs=${$e}`;this.appendChangeType(s,kt),this.log(`switching codec ${we} to ${$e}`),this.tracks[s]={buffer:p.buffer,codec:D,container:he,levelCodec:F,metadata:Ce,id:_}}}}else this.pendingTracks[s]=t[s]}),n)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${r.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:n}=this,r={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),n.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};n.append(r,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:n,operationQueue:r,tracks:i}=this,{data:s,type:c,frag:p,part:_,chunkMeta:D}=t,F=D.buffering[c],he=self.performance.now();F.start=he;const Ce=p.stats.buffering,we=_?_.stats.buffering:null;Ce.start===0&&(Ce.start=he),we&&we.start===0&&(we.start=he);const Ie=i.audio;let $e=!1;c==="audio"&&(Ie==null?void 0:Ie.container)==="audio/mpeg"&&($e=!this.lastMpegAudioChunk||D.id===1||this.lastMpegAudioChunk.sn!==D.sn,this.lastMpegAudioChunk=D);const ot=p.start,kt={execute:()=>{if(F.executeStart=self.performance.now(),$e){const Pt=this.sourceBuffer[c];if(Pt){const gn=ot-Pt.timestampOffset;Math.abs(gn)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${ot} (delta: ${gn}) sn: ${p.sn})`),Pt.timestampOffset=ot)}}this.appendExecutor(s,c)},onStart:()=>{},onComplete:()=>{const Pt=self.performance.now();F.executeEnd=F.end=Pt,Ce.first===0&&(Ce.first=Pt),we&&we.first===0&&(we.first=Pt);const{sourceBuffer:gn}=this,Ht={};for(const Bn in gn)Ht[Bn]=Ci.getBuffered(gn[Bn]);this.appendErrors[c]=0,c==="audio"||c==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(u.BUFFER_APPENDED,{type:c,frag:p,part:_,chunkMeta:D,parent:p.type,timeRanges:Ht})},onError:Pt=>{const gn={type:x.MEDIA_ERROR,parent:p.type,details:y.BUFFER_APPEND_ERROR,sourceBufferName:c,frag:p,part:_,chunkMeta:D,error:Pt,err:Pt,fatal:!1};if(Pt.code===DOMException.QUOTA_EXCEEDED_ERR)gn.details=y.BUFFER_FULL_ERROR;else{const Ht=++this.appendErrors[c];gn.details=y.BUFFER_APPEND_ERROR,this.warn(`Failed ${Ht}/${n.config.appendErrorMaxRetry} times to append segment in "${c}" sourceBuffer`),Ht>=n.config.appendErrorMaxRetry&&(gn.fatal=!0)}n.trigger(u.ERROR,gn)}};r.append(kt,c,!!this.pendingTracks[c])}onBufferFlushing(e,t){const{operationQueue:n}=this,r=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(u.BUFFER_FLUSHED,{type:i})},onError:s=>{this.warn(`Failed to remove from ${i} SourceBuffer`,s)}});t.type?n.append(r(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{n.append(r(i),i)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[ee.AUDIOVIDEO]?i.push("audiovideo"):(s[ee.AUDIO]&&i.push("audio"),s[ee.VIDEO]&&i.push("video"));const c=()=>{const p=self.performance.now();n.stats.buffering.end=p,r&&(r.stats.buffering.end=p);const _=r?r.stats:n.stats;this.hls.trigger(u.FRAG_BUFFERED,{frag:n,part:r,stats:_,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(c,i)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((r,i)=>{const s=this.sourceBuffer[i];return s&&(!t.type||t.type===i)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${i} sourceBuffer now EOS`))),r&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const s=this.sourceBuffer[i];s&&(s.ending=!1)});const{mediaSource:r}=this;if(!r||r.readyState!=="open"){r&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${r.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),r.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,s=n.currentTime,c=t.levelTargetDuration,p=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(C(p)&&p>0){const _=Math.max(p,c),D=Math.floor(s/c)*c-_;this.flushBackBuffer(s,c,D)}if(C(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const _=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),D=Math.max(_,c),F=Math.floor(s/c)*c+D;this.flushFrontBuffer(s,c,F)}}flushBackBuffer(e,t,n){const{details:r,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(c=>{const p=i[c];if(p){const _=Ci.getBuffered(p);if(_.length>0&&n>_.start(0)){if(this.hls.trigger(u.BACK_BUFFER_REACHED,{bufferEnd:n}),r!=null&&r.live)this.hls.trigger(u.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(p.ended&&_.end(_.length-1)-e<t*2){this.log(`Cannot flush ${c} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:c})}}})}flushFrontBuffer(e,t,n){const{sourceBuffer:r}=this;this.getSourceBufferTypes().forEach(s=>{const c=r[s];if(c){const p=Ci.getBuffered(c),_=p.length;if(_<2)return;const D=p.start(_-1),F=p.end(_-1);if(n>D||e>=D&&e<=F)return;if(c.ended&&e-F<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:D,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:n,mediaSource:r}=this,i=e.fragments[0].start+e.totalduration,s=n.duration,c=C(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>c&&i>s||!C(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),r.duration=i)}updateSeekableRange(e){const t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,n[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:n}=this,r=Object.keys(n).length;if(r&&(!e||r===2||"audiovideo"in n)){this.createSourceBuffers(n),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(u.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var r;const s=e[i];if(!s)throw Error(`source buffer exists for track ${i}, however track does not`);let c=((r=s.levelCodec)==null?void 0:r.indexOf(","))===-1?s.levelCodec:s.codec;c&&i.slice(0,5)==="audio"&&(c=xn(c,this.appendSource));const p=`${s.container};codecs=${c}`;this.log(`creating sourceBuffer(${p})`);try{const _=t[i]=n.addSourceBuffer(p),D=i;this.addBufferListener(D,"updatestart",this._onSBUpdateStart),this.addBufferListener(D,"updateend",this._onSBUpdateEnd),this.addBufferListener(D,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(D,"bufferedchange",(F,he)=>{const Ce=he.removedRanges;Ce!=null&&Ce.length&&this.hls.trigger(u.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:_,codec:c,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(_){this.error(`error while trying to add sourceBuffer: ${_.message}`),this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,sourceBufferName:i,mimeType:p})}}}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}_onSBUpdateStart(e){const{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:n}=this;n.current(e).onComplete(),n.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i,operationQueue:s,sourceBuffer:c}=this,p=c[e];if(!r||!i||!p){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const _=C(r.duration)?r.duration:1/0,D=C(i.duration)?i.duration:1/0,F=Math.max(0,t),he=Math.min(n,_,D);he>F&&(!p.ending||p.ended)?(p.ended=!1,this.log(`Removing [${F},${he}] from the ${e} SourceBuffer`),p.remove(F,he)):s.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.sourceBuffer[t];if(!n){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}n.ended=!1,n.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:n}=this,r=t.map(i=>n.appendBlocker(i));Promise.all(r).then(()=>{e(),t.forEach(i=>{const s=this.sourceBuffer[i];s!=null&&s.updating||n.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,n){const r=this.sourceBuffer[e];if(!r)return;const i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(n=>{t.removeEventListener(n.event,n.listener)})}}function Ji(o){const e=o.querySelectorAll("source");[].slice.call(e).forEach(t=>{o.removeChild(t)})}function _a(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}const Kr={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},ei=o=>String.fromCharCode(Kr[o]||o),Jr=15,Ai=100,ea={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Zr={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ra={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ta={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ea=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class $a{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;b.log(`${this.time} [${e}] ${n}`)}}}const Sa=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class xs{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class qa{constructor(){this.uchar=" ",this.penState=new xs}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class Ma{constructor(e){this.chars=[],this.pos=0,this.currPenState=new xs,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Ai;t++)this.chars.push(new qa);this.logger=e}equals(e){for(let t=0;t<Ai;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Ai;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Ai;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ai&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ai)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=ei(e);if(this.pos>=Ai){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<Ai;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<Ai;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class ha{constructor(e){this.rows=[],this.currRow=Jr-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Jr;t++)this.rows.push(new Ma(e));this.logger=e}reset(){for(let e=0;e<Jr;e++)this.rows[e].clear();this.currRow=Jr-1}equals(e){let t=!0;for(let n=0;n<Jr;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Jr;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Jr;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let c=0;c<Jr;c++)this.rows[c].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const c=s.rows[i].cueStartTime,p=this.logger.time;if(c!==null&&p!==null&&c<p)for(let _=0;_<this.nrRollUpRows;_++)this.rows[t-this.nrRollUpRows+_+1].copy(s.rows[i+_])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<Jr;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
`)),n}getTextAndFormat(){return this.rows}}class pa{constructor(e,t,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=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new ha(n),this.nonDisplayedMemory=new ha(n),this.lastOutputScreen=new ha(n),this.currRollUpRow=this.displayedMemory.rows[Jr-1],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[Jr-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(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"),this.mode!=="MODE_TEXT"&&(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(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}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"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class Vi{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Is(),this.logger=void 0;const r=this.logger=new $a;this.channels=[null,new pa(e,t,r),new pa(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,c=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+Sa([t[n],t[n+1]])+"] -> ("+Sa([r,i])+")");const p=this.cmdHistory;if(r>=16&&r<=31){if(rs(r,i,p)){wi(null,null,p),this.logger.log(3,()=>"Repeated command ("+Sa([r,i])+") is dropped");continue}wi(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else wi(null,null,p);if(!s&&(c=this.parseChars(r,i),c)){const D=this.currentChannel;D&&D>0?this.channels[D].insertChars(c):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Sa([r,i])+" orig: "+Sa([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Sa([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?ea[e]:ra[e]:n=s===1?Zr[e]:ta[e];const c=this.channels[s];return c?(c.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+ei(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+Sa(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=Ea[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const c=e<=23?1:2;return this.channels[c].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}wi(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function wi(o,e,t){t.a=o,t.b=e}function rs(o,e,t){return t.a===o&&t.b===e}function Is(){return{a:null,b:null}}class es{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var Va=function(){if(Ke!=null&&Ke.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,p){if(typeof p!="string"||!Array.isArray(c))return!1;const _=p.toLowerCase();return~c.indexOf(_)?_:!1}function n(c){return t(o,c)}function r(c){return t(e,c)}function i(c,...p){let _=1;for(;_<arguments.length;_++){const D=arguments[_];for(const F in D)c[F]=D[F]}return c}function s(c,p,_){const D=this,F={enumerable:!0};D.hasBeenReset=!1;let he="",Ce=!1,we=c,Ie=p,$e=_,ot=null,kt="",Pt=!0,gn="auto",Ht="start",Bn=50,dn="middle",Gn=50,Er="middle";Object.defineProperty(D,"id",i({},F,{get:function(){return he},set:function(In){he=""+In}})),Object.defineProperty(D,"pauseOnExit",i({},F,{get:function(){return Ce},set:function(In){Ce=!!In}})),Object.defineProperty(D,"startTime",i({},F,{get:function(){return we},set:function(In){if(typeof In!="number")throw new TypeError("Start time must be set to a number.");we=In,this.hasBeenReset=!0}})),Object.defineProperty(D,"endTime",i({},F,{get:function(){return Ie},set:function(In){if(typeof In!="number")throw new TypeError("End time must be set to a number.");Ie=In,this.hasBeenReset=!0}})),Object.defineProperty(D,"text",i({},F,{get:function(){return $e},set:function(In){$e=""+In,this.hasBeenReset=!0}})),Object.defineProperty(D,"region",i({},F,{get:function(){return ot},set:function(In){ot=In,this.hasBeenReset=!0}})),Object.defineProperty(D,"vertical",i({},F,{get:function(){return kt},set:function(In){const Yn=n(In);if(Yn===!1)throw new SyntaxError("An invalid or illegal string was specified.");kt=Yn,this.hasBeenReset=!0}})),Object.defineProperty(D,"snapToLines",i({},F,{get:function(){return Pt},set:function(In){Pt=!!In,this.hasBeenReset=!0}})),Object.defineProperty(D,"line",i({},F,{get:function(){return gn},set:function(In){if(typeof In!="number"&&In!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");gn=In,this.hasBeenReset=!0}})),Object.defineProperty(D,"lineAlign",i({},F,{get:function(){return Ht},set:function(In){const Yn=r(In);if(!Yn)throw new SyntaxError("An invalid or illegal string was specified.");Ht=Yn,this.hasBeenReset=!0}})),Object.defineProperty(D,"position",i({},F,{get:function(){return Bn},set:function(In){if(In<0||In>100)throw new Error("Position must be between 0 and 100.");Bn=In,this.hasBeenReset=!0}})),Object.defineProperty(D,"positionAlign",i({},F,{get:function(){return dn},set:function(In){const Yn=r(In);if(!Yn)throw new SyntaxError("An invalid or illegal string was specified.");dn=Yn,this.hasBeenReset=!0}})),Object.defineProperty(D,"size",i({},F,{get:function(){return Gn},set:function(In){if(In<0||In>100)throw new Error("Size must be between 0 and 100.");Gn=In,this.hasBeenReset=!0}})),Object.defineProperty(D,"align",i({},F,{get:function(){return Er},set:function(In){const Yn=r(In);if(!Yn)throw new SyntaxError("An invalid or illegal string was specified.");Er=Yn,this.hasBeenReset=!0}})),D.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class io{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function ao(o){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=o.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class hi{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function ki(o,e,t,n){const r=n?o.split(n):[o];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const c=s[0],p=s[1];e(c,p)}}const ma=new Va(0,0,""),Fi=ma.align==="middle"?"middle":"center";function Ra(o,e,t){const n=o;function r(){const c=ao(o);if(c===null)throw new Error("Malformed timestamp: "+n);return o=o.replace(/^[^\sa-zA-Z-]+/,""),c}function i(c,p){const _=new hi;ki(c,function(he,Ce){let we;switch(he){case"region":for(let Ie=t.length-1;Ie>=0;Ie--)if(t[Ie].id===Ce){_.set(he,t[Ie].region);break}break;case"vertical":_.alt(he,Ce,["rl","lr"]);break;case"line":we=Ce.split(","),_.integer(he,we[0]),_.percent(he,we[0])&&_.set("snapToLines",!1),_.alt(he,we[0],["auto"]),we.length===2&&_.alt("lineAlign",we[1],["start",Fi,"end"]);break;case"position":we=Ce.split(","),_.percent(he,we[0]),we.length===2&&_.alt("positionAlign",we[1],["start",Fi,"end","line-left","line-right","auto"]);break;case"size":_.percent(he,Ce);break;case"align":_.alt(he,Ce,["start",Fi,"end","left","right"]);break}},/:/,/\s/),p.region=_.get("region",null),p.vertical=_.get("vertical","");let D=_.get("line","auto");D==="auto"&&ma.line===-1&&(D=-1),p.line=D,p.lineAlign=_.get("lineAlign","start"),p.snapToLines=_.get("snapToLines",!0),p.size=_.get("size",100),p.align=_.get("align",Fi);let F=_.get("position","auto");F==="auto"&&ma.position===50&&(F=p.align==="start"||p.align==="left"?0:p.align==="end"||p.align==="right"?100:50),p.position=F}function s(){o=o.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),o.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);o=o.slice(3),s(),e.endTime=r(),s(),i(o,e)}function Na(o){return o.replace(/<br(?: \/)?>/gi,`
`)}class za{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new io,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=Na(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
`;)++s;const c=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
`&&++s,t.buffer=i.slice(s),c}function r(i){ki(i,function(s,c){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const c=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(c!=null&&c[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Va(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Ra(i,t.cue,t.regionList)}catch(c){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const c=i.indexOf("-->")!==-1;if(!i||c&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const gs=/\r\n|\n\r|\n|\r/g,so=function(e,t,n=0){return e.slice(n,n+t.length)===t},Jo=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!C(t)||!C(n)||!C(r)||!C(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t},oo=function(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()};function Co(o,e,t){return oo(o.toString())+oo(e.toString())+oo(t)}const Fo=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function lo(o,e,t,n,r,i,s){const c=new za,p=Xe(new Uint8Array(o)).trim().replace(gs,`
`).split(`
`),_=[],D=e?yr(e.baseTime,e.timescale):0;let F="00:00.000",he=0,Ce=0,we,Ie=!0;c.oncue=function($e){const ot=t[n];let kt=t.ccOffset;const Pt=(he-D)/9e4;if(ot!=null&&ot.new&&(Ce!==void 0?kt=t.ccOffset=ot.start:Fo(t,n,Pt)),Pt){if(!e){we=new Error("Missing initPTS for VTT MPEGTS");return}kt=Pt-t.presentationOffset}const gn=$e.endTime-$e.startTime,Ht=Mn(($e.startTime+kt-Ce)*9e4,r*9e4)/9e4;$e.startTime=Math.max(Ht,0),$e.endTime=Math.max(Ht+gn,0);const Bn=$e.text.trim();$e.text=decodeURIComponent(encodeURIComponent(Bn)),$e.id||($e.id=Co($e.startTime,$e.endTime,Bn)),$e.endTime>0&&_.push($e)},c.onparsingerror=function($e){we=$e},c.onflush=function(){if(we){s(we);return}i(_)},p.forEach($e=>{if(Ie)if(so($e,"X-TIMESTAMP-MAP=")){Ie=!1,$e.slice(16).split(",").forEach(ot=>{so(ot,"LOCAL:")?F=ot.slice(6):so(ot,"MPEGTS:")&&(he=parseInt(ot.slice(7)))});try{Ce=Jo(F)/1e3}catch(ot){we=ot}return}else $e===""&&(Ie=!1);c.parse($e+`
`)}),c.flush()}const _s="stpp.ttml.im1t",To=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,$o=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,zo={left:"start",center:"center",right:"end",start:"start",end:"end"};function Uo(o,e,t,n){const r=We(new Uint8Array(o),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(c=>Xe(c)),s=Nn(e.baseTime,1,e.timescale);try{i.forEach(c=>t(Ko(c,s)))}catch(c){n(c)}}function Ko(o,e){const r=new DOMParser().parseFromString(o,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((F,he)=>(F[he]=r.getAttribute(`ttp:${he}`)||i[he],F),{}),c=r.getAttribute("xml:space")!=="preserve",p=Do(Fs(r,"styling","style")),_=Do(Fs(r,"layout","region")),D=Fs(r,"body","[begin]");return[].map.call(D,F=>{const he=Ho(F,c);if(!he||!F.hasAttribute("begin"))return null;const Ce=Ao(F.getAttribute("begin"),s),we=Ao(F.getAttribute("dur"),s);let Ie=Ao(F.getAttribute("end"),s);if(Ce===null)throw jo(F);if(Ie===null){if(we===null)throw jo(F);Ie=Ce+we}const $e=new Va(Ce-e,Ie-e,he);$e.id=Co($e.startTime,$e.endTime,$e.text);const ot=_[F.getAttribute("region")],kt=p[F.getAttribute("style")],Pt=Zo(ot,kt,p),{textAlign:gn}=Pt;if(gn){const Ht=zo[gn];Ht&&($e.lineAlign=Ht),$e.align=gn}return a($e,Pt),$e}).filter(F=>F!==null)}function Fs(o,e,t){const n=o.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Do(o){return o.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Ho(o,e){return[].slice.call(o.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
`:(i=n.childNodes)!=null&&i.length?Ho(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function Zo(o,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=o!=null&&o.hasAttribute("style")?o.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((c,p)=>{const _=uo(e,n,p)||uo(o,n,p)||uo(r,n,p);return _&&(c[p]=_),c},{})}function uo(o,e,t){return o&&o.hasAttributeNS(e,t)?o.getAttributeNS(e,t):null}function jo(o){return new Error(`Could not parse ttml timestamp ${o}`)}function Ao(o,e){if(!o)return null;let t=ao(o);return t===null&&(To.test(o)?t=qo(o,e):$o.test(o)&&(t=Wo(o,e))),t}function qo(o,e){const t=To.exec(o),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function Wo(o,e){const t=$o.exec(o),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class co{constructor(e){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=Ro(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.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}},e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new es(this,"textTrack1"),t=new es(this,"textTrack2"),n=new es(this,"textTrack3"),r=new es(this,"textTrack4");this.cea608Parser1=new Vi(1,e,t),this.cea608Parser2=new Vi(3,n,r)}}addCues(e,t,n,r,i){let s=!1;for(let c=i.length;c--;){const p=i[c],_=Go(p[0],p[1],t,n);if(_>=0&&(p[0]=Math.min(p[0],t),p[1]=Math.max(p[1],n),s=!0,_/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const c=this.captionsTracks[e];this.Cues.newCue(c,t,n,r)}else{const c=this.Cues.newCue(null,t,n,r);this.hls.trigger(u.CUES_PARSED,{type:"captions",cues:c,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n==="main"&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(c=>{this.onFragLoaded(u.FRAG_LOADED,c)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(ho(i,{name:e,lang:t,attrs:{}}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],c=this.getExistingTrack(i,s);if(c)n[e]=c,Hr(n[e]),Tr(n[e],r);else{const p=this.createTextTrack("captions",i,s);p&&(p[e]=!0,n[e]=p)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(u.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{Hr(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Ro(),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:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)Hr(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===_s);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(rr(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,c=s?On(s.textTracks):null;if(this.tracks.forEach((p,_)=>{let D;if(c){let F=null;for(let he=0;he<c.length;he++)if(c[he]&&ho(c[he],p)){F=c[he],c[he]=null;break}F&&(D=F)}if(D)Hr(D);else{const F=fo(p);D=this.createTextTrack(F,p.name,p.lang),D&&(D.mode="disabled")}D&&this.textTracks.push(D)}),c!=null&&c.length){const p=c.filter(_=>_!==null).map(_=>_.label);p.length&&b.warn(`Media element contains unused subtitle tracks: ${p.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(c=>({label:c.name,kind:c.type.toLowerCase(),default:c.default,subtitleTrack:c}));this.hls.trigger(u.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===nt.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:c}=this,{cc:p,sn:_}=t.frag,D=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(_!==c+1||_===c&&D!==this.lastPartIndex+1||p!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=p,this.lastSn=_,this.lastPartIndex=D}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===nt.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const c=this.tracks[n.level],p=this.vttCCs;p[n.cc]||(p[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),c&&c.textCodec===_s?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Uo(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{b.log(`Failed to parse IMSC1: ${r}`),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,c=i.length-1;if(!i[n.cc]&&c===-1){s.push(e);return}const p=this.hls,_=(t=n.initSegment)!=null&&t.data?hn(n.initSegment.data,new Uint8Array(r)):r;lo(_,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,D=>{this._appendCues(D,n.level),p.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},D=>{const F=D.message==="Missing initPTS for VTT MPEGTS";F?s.push(e):this._fallbackToIMSC1(n,r),b.log(`Failed to parse VTT cue: ${D}`),!(F&&c>n.cc)&&p.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:D})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Uo(t,this.initPTS[e.cc],()=>{n.textCodec=_s,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>Mr(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(u.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===nt.SUBTITLE&&this.onFragLoaded(u.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:n,cea608Parser2:r}=this;if(!this.enabled||!n||!r)return;const{frag:i,samples:s}=t;if(!(i.type===nt.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let c=0;c<s.length;c++){const p=s[c].bytes;if(p){const _=this.extractCea608Data(p);n.addData(s[c].pts,_[0]),r.addData(s[c].pts,_[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:c}=this;Object.keys(c).forEach(p=>xr(c[p],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(p=>xr(c[p],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],c=127&e[r++],p=127&e[r++];if(c===0&&p===0)continue;if((4&s)!==0){const D=3&s;(D===0||D===1)&&(t[D].push(c),t[D].push(p))}}return t}}function fo(o){return o.characteristics&&/transcribes-spoken-dialog/gi.test(o.characteristics)&&/describes-music-and-sound/gi.test(o.characteristics)?"captions":"subtitles"}function ho(o,e){return!!o&&o.kind===fo(e)&&nr(e,o)}function Go(o,e,t,n){return Math.min(e,n)-Math.max(o,t)}function Ro(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class po{constructor(e){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=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&C(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&b.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,po.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 e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return e}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(c,p)=>p?c.width!==p.width||c.height!==p.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let c=0;c<e.length;c+=1){const p=e[c];if((p.width>=s||p.height>=s)&&r(p,e[c+1])){i=c;break}}return i}}class Vo{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,c=t-this.lastDecodedFrames,p=1e3*s/i,_=this.hls;if(_.trigger(u.FPS_DROP,{currentDropped:s,currentDecoded:c,totalDroppedFrames:n}),p>0&&s>_.config.fpsDroppedMonitoringThreshold*c){let D=_.currentLevel;b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+D),D>0&&(_.autoLevelCapping===-1||_.autoLevelCapping>=D)&&(D=D-1,_.trigger(u.FPS_DROP_LEVEL_CAPPING,{level:D,droppedLevel:_.currentLevel}),_.autoLevelCapping=D,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}const mo="[eme]";class Os{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Os.CDMCleanupPromise?[Os.CDMCleanupPromise]:[],this.debug=b.debug.bind(b,mo),this.log=b.log.bind(b,mo),this.warn=b.warn.bind(b,mo),this.error=b.error.bind(b,mo),this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Vt(this.config));const c=s.map(Bt).filter(p=>!!p);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(s=>{const c=ht(s);let p,_;if(n==="sinf"){if(c!==Me.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const we=Ct(new Uint8Array(r));try{const Ie=v(JSON.parse(we).sinf),$e=Jt(Ie);if(!$e)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");p=$e.subarray(8,24),_=Me.FAIRPLAY}catch(Ie){this.warn(`${i} Failed to parse sinf: ${Ie}`);return}}else{if(c!==Me.WIDEVINE&&c!==Me.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const we=en(r),Ie=we.filter(ot=>!!ot.systemId&&at(ot.systemId)===c);Ie.length>1&&this.warn(`${i} Using first of ${Ie.length} pssh found for selected key-system ${c}`);const $e=Ie[0];if(!$e){we.length===0||we.some(ot=>!ot.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${we.map(ot=>at(ot.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(_=at($e.systemId),$e.version===0&&$e.data)if(_===Me.WIDEVINE){const ot=$e.data.length-22;p=$e.data.subarray(ot,ot+16)}else _===Me.PLAYREADY&&(p=lt($e.data))}if(!_||!p){this.log(`Unable to handle ${i} with key-system ${c}`);return}const D=gt.hexDump(p),{keyIdToKeySessionPromise:F,mediaKeySessions:he}=this;let Ce=F[D];for(let we=0;we<he.length;we++){const Ie=he[we],$e=Ie.decryptdata;if(!$e.keyId)continue;const ot=gt.hexDump($e.keyId);if(D===ot||$e.uri.replace(/-/g,"").indexOf(D)!==-1){if(Ce=F[ot],$e.pssh)break;delete F[ot],$e.pssh=new Uint8Array(r),$e.keyId=p,Ce=F[D]=Ce.then(()=>this.generateRequestWithPreferredKeySession(Ie,n,r,"encrypted-event-key-match")),Ce.catch(kt=>this.handleError(kt));break}}if(!Ce){if(_!==c){this.log(`Ignoring "${i}" with ${_} init data for selected key-system ${c}`);return}Ce=F[D]=this.getKeySystemSelectionPromise([_]).then(({keySystem:we,mediaKeys:Ie})=>{var $e;this.throwIfDestroyed();const ot=new Xt("ISO-23001-7",D,($e=Bt(we))!=null?$e:"");return ot.pssh=new Uint8Array(r),ot.keyId=p,this.attemptSetMediaKeys(we,Ie).then(()=>{this.throwIfDestroyed();const kt=this.createMediaKeySessionContext({decryptdata:ot,keySystem:we,mediaKeys:Ie});return this.generateRequestWithPreferredKeySession(kt,n,r,"encrypted-event-no-match")})}),Ce.catch(we=>this.handleError(we))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===Me.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,c,p)=>!!s&&p.indexOf(s)===c,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,c)=>{const p=_=>{const D=_.shift();this.getMediaKeysPromise(D,r,i).then(F=>s({keySystem:D,mediaKeys:F})).catch(F=>{_.length?p(_):F instanceof Ha?c(F):c(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_ACCESS,error:F,fatal:!0},F.message))})};p(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return qt===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=$t(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(r)}`),s=this.requestMediaKeySystemAccess(e,r);const c=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(p=>{this.log(`Failed to obtain access to key-system "${e}": ${p}`)}),s.then(p=>{this.log(`Access for key-system "${p.keySystem}" obtained`);const _=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),c.mediaKeys=p.createMediaKeys().then(D=>(this.log(`Media-keys created for "${e}"`),_.then(F=>F?this.setMediaKeysServerCertificate(D,e,F):D))),c.mediaKeys.catch(D=>{this.error(`Failed to create media-keys for "${e}"}: ${D}`)}),c.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${gt.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return gt.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${gt.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
} (data length: ${t&&t.byteLength})`),r.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,n)=>{const r=Vt(this.config),i=e.map(ht).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const c=Bt(s);c?t(c):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(t).then(({keySystem:s,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(s,c).then(()=>{this.throwIfDestroyed();const p=this.createMediaKeySessionContext({keySystem:s,mediaKeys:c,decryptdata:t});return this.generateRequestWithPreferredKeySession(p,"cenc",t.pssh,"playlist-key")}))),i.catch(s=>this.handleError(s))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ha?this.hls.trigger(u.ERROR,e.data):this.hls.trigger(u.ERROR,{type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=ht(e.keyFormat),i=r?[r]:Vt(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Vt(this.config)),e.length===0)throw new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,s;const c=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(c)try{const we=c.call(this.hls,t,n,e);if(!we)throw new Error("Invalid response from configured generateRequest filter");t=we.initDataType,n=e.decryptdata.pssh=we.initData?new Uint8Array(we.initData):null}catch(we){var p;if(this.warn(we.message),(p=this.hls)!=null&&p.config.debug)throw we}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const _=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${_} (init data type: ${t} length: ${n?n.byteLength:null})`);const D=new Zt,F=e._onmessage=we=>{const Ie=e.mediaKeysSession;if(!Ie){D.emit("error",new Error("invalid state"));return}const{messageType:$e,message:ot}=we;this.log(`"${$e}" message event for session "${Ie.sessionId}" message size: ${ot.byteLength}`),$e==="license-request"||$e==="license-renewal"?this.renewLicense(e,ot).catch(kt=>{this.handleError(kt),D.emit("error",kt)}):$e==="license-release"?e.keySystem===Me.FAIRPLAY&&(this.updateKeySession(e,Be("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${$e}"`)},he=e._onkeystatuseschange=we=>{if(!e.mediaKeysSession){D.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const $e=e.keyStatus;D.emit("keyStatus",$e),$e==="expired"&&(this.warn(`${e.keySystem} expired for key ${_}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",F),e.mediaKeysSession.addEventListener("keystatuseschange",he);const Ce=new Promise((we,Ie)=>{D.on("error",Ie),D.on("keyStatus",$e=>{$e.startsWith("usable")?we():$e==="output-restricted"?Ie(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):$e==="internal-error"?Ie(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${$e}"`)):$e==="expired"?Ie(new Error("key expired while generating request")):this.warn(`unhandled key status change "${$e}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var we;this.log(`Request generated for key-session "${(we=e.mediaKeysSession)==null?void 0:we.sessionId}" keyId: ${_}`)}).catch(we=>{throw new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_SESSION,error:we,fatal:!1},`Error generating key-session request: ${we}`)}).then(()=>Ce).catch(we=>{throw D.removeAllListeners(),this.removeSession(e),we}).then(()=>(D.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${gt.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${gt.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,c)=>{const p={responseType:"arraybuffer",url:i},_=t.certLoadPolicy.default,D={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},F={onSuccess:(he,Ce,we,Ie)=>{s(he.data)},onError:(he,Ce,we,Ie)=>{c(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:we,response:U({url:p.url,data:void 0},he)},`"${e}" certificate request failed (${i}). Status: ${he.code} (${he.text})`))},onTimeout:(he,Ce,we)=>{c(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:we,response:{url:p.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(he,Ce,we)=>{c(new Error("aborted"))}};r.load(p,D,F)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let D;for(let F=0,he=i.length;F<he;F++){var s,c;D=i[F];const Ce=(s=D.querySelector("name"))==null?void 0:s.textContent,we=(c=D.querySelector("value"))==null?void 0:c.textContent;Ce&&we&&e.setRequestHeader(Ce,we)}}const p=r.querySelector("Challenge"),_=p==null?void 0:p.textContent;if(!_)throw new Error("Cannot find <Challenge> in key message");return Be(atob(_))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(c.readyState===4)if(c.status===200){this._requestLicenseFailureCount=0;let p=c.response;this.log(`License received ${p instanceof ArrayBuffer?p.byteLength:p}`);const _=this.config.licenseResponseCallback;if(_)try{p=_.call(this.hls,c,s,e)}catch(D){this.error(D)}r(p)}else{const p=n.errorRetry,_=p?p.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>_||c.status>=400&&c.status<500)i(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:c,response:{url:s,data:void 0,code:c.status,text:c.statusText}},`License Request XHR failed (${s}). Status: ${c.status} (${c.statusText})`));else{const D=_-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${D} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=c,this.setupLicenseXHR(c,s,e,t).then(({xhr:p,licenseChallenge:_})=>{e.keySystem==Me.PLAYREADY&&(_=this.unpackPlayReadyKeyMessage(p,_)),p.send(_)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Xt.clearKeyUriToKeyIdMap();const n=t.length;Os.CDMCleanupPromise=Promise.all(t.map(r=>this.removeSession(r)).concat(e==null?void 0:e.setMediaKeys(null).catch(r=>{this.log(`Could not clear media keys: ${r}`)}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(r=>{this.log(`Could not close sessions and clear media keys: ${r}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);return r>-1&&this.mediaKeySessions.splice(r,1),t.remove().catch(i=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}Os.CDMCleanupPromise=void 0;class Ha extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var Ia;(function(o){o.MANIFEST="m",o.AUDIO="a",o.VIDEO="v",o.MUXED="av",o.INIT="i",o.CAPTION="c",o.TIMED_TEXT="tt",o.KEY="k",o.OTHER="o"})(Ia||(Ia={}));var Vs;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(Vs||(Vs={}));var Es;(function(o){o.OBJECT="CMCD-Object",o.REQUEST="CMCD-Request",o.SESSION="CMCD-Session",o.STATUS="CMCD-Status"})(Es||(Es={}));const el={[Es.OBJECT]:["br","d","ot","tb"],[Es.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Es.SESSION]:["cid","pr","sf","sid","st","v"],[Es.STATUS]:["bs","rtp"]};class pi{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(n=>n instanceof pi?n:new pi(n))),this.value=e,this.params=t}}class Ki{constructor(e){this.description=void 0,this.description=e}}const Ya="Dict";function Ss(o){return Array.isArray(o)?JSON.stringify(o):o instanceof Map?"Map{}":o instanceof Set?"Set{}":typeof o=="object"?JSON.stringify(o):String(o)}function ws(o,e,t,n){return new Error(`failed to ${o} "${Ss(e)}" as ${t}`,{cause:n})}const Io="Bare Item",Oo="Boolean",Lo="Byte Sequence",Po="Decimal",ko="Integer";function wl(o){return o<-999999999999999||999999999999999<o}const Cl=/[\x00-\x1f\x7f]+/,Tl="Token",Dl="Key";function Cs(o,e,t){return ws("serialize",o,e,t)}function Al(o){if(typeof o!="boolean")throw Cs(o,Oo);return o?"?1":"?0"}function Rl(o){return btoa(String.fromCharCode(...o))}function Il(o){if(ArrayBuffer.isView(o)===!1)throw Cs(o,Lo);return`:${Rl(o)}:`}function ol(o){if(wl(o))throw Cs(o,ko);return o.toString()}function Ol(o){return`@${ol(o.getTime()/1e3)}`}function ll(o,e){if(o<0)return-ll(-o,e);const t=Math.pow(10,e);if(Math.abs(o*t%1-.5)<Number.EPSILON){const r=Math.floor(o*t);return(r%2===0?r:r+1)/t}else return Math.round(o*t)/t}function Ll(o){const e=ll(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Cs(o,Po);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Pl="String";function kl(o){if(Cl.test(o))throw Cs(o,Pl);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(o){return o.description||o.toString().slice(7,-1)}function ul(o){const e=Ml(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Cs(e,Tl);return e}function tl(o){switch(typeof o){case"number":if(!C(o))throw Cs(o,Io);return Number.isInteger(o)?ol(o):Ll(o);case"string":return kl(o);case"symbol":return ul(o);case"boolean":return Al(o);case"object":if(o instanceof Date)return Ol(o);if(o instanceof Uint8Array)return Il(o);if(o instanceof Ki)return ul(o);default:throw Cs(o,Io)}}function nl(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw Cs(o,Dl);return o}function rl(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${nl(e)}`:`;${nl(e)}=${tl(t)}`).join("")}function cl(o){return o instanceof pi?`${tl(o.value)}${rl(o.params)}`:tl(o)}function Nl(o){return`(${o.value.map(cl).join(" ")})${rl(o.params)}`}function Bl(o,e={whitespace:!0}){if(typeof o!="object")throw Cs(o,Ya);const t=o instanceof Map?o.entries():Object.entries(o),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof pi||(i=new pi(i));let s=nl(r);return i.value===!0?s+=rl(i.params):(s+="=",Array.isArray(i.value)?s+=Nl(i):s+=cl(i)),s}).join(`,${n}`)}function Fl(o,e){return Bl(o,e)}const $l=o=>o==="ot"||o==="sf"||o==="st",zl=o=>typeof o=="number"?C(o):o!=null&&o!==""&&o!==!1;function Ul(o,e){const t=new URL(o),n=new URL(e);if(t.origin!==n.origin)return o;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function Kl(){try{return crypto.randomUUID()}catch(o){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}const Yo=o=>Math.round(o),Hl=(o,e)=>(e!=null&&e.baseUrl&&(o=Ul(o,e.baseUrl)),encodeURIComponent(o)),Xo=o=>Yo(o/100)*100,Zl={br:Yo,d:Yo,bl:Xo,dl:Xo,mtp:Xo,nor:Hl,rtp:Xo,tb:Yo};function jl(o,e){const t={};if(o==null||typeof o!="object")return t;const n=Object.keys(o).sort(),r=a({},Zl,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let c=o[s];const p=r[s];p&&(c=p(c,e)),!(s==="v"&&c===1)&&(s=="pr"&&c===1||zl(c)&&($l(s)&&typeof c=="string"&&(c=new Ki(c)),t[s]=c))}),t}function dl(o,e={}){return o?Fl(jl(o,e),a({whitespace:!1},e)):""}function Wl(o,e={}){if(!o)return{};const t=Object.entries(o),n=Object.entries(el).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),r=t.reduce((i,s)=>{var c,p;const[_,D]=s,F=((c=n.find(he=>he[1].includes(_)))==null?void 0:c[0])||Es.REQUEST;return(p=i[F])!=null||(i[F]={}),i[F][_]=D,i},{});return Object.entries(r).reduce((i,[s,c])=>(i[s]=dl(c,e),i),{})}function Gl(o,e,t){return a(o,Wl(e,t))}const Vl="CMCD";function Yl(o,e={}){if(!o)return"";const t=dl(o,e);return`${Vl}=${encodeURIComponent(t)}`}const fl=/CMCD=[^&#]+/;function Xl(o,e,t){const n=Yl(e,t);if(!n)return o;if(fl.test(o))return o.replace(fl,n);const r=o.includes("?")?"&":"?";return`${o}${r}${n}`}class Ql{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:Ia.MANIFEST,su:!this.initialized})}catch(i){b.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const i=r.frag,s=this.hls.levels[i.level],c=this.getObjectType(i),p={d:i.duration*1e3,ot:c};(c===Ia.VIDEO||c===Ia.AUDIO||c==Ia.MUXED)&&(p.br=s.bitrate/1e3,p.tb=this.getTopBandwidth(c)/1e3,p.bl=this.getBufferLength(c)),this.apply(r,p)}catch(i){b.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||Kl(),this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHED,this.onMediaDetached,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHED,this.onMediaDetached,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.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(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:Vs.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){a(t,this.createData());const n=t.ot===Ia.INIT||t.ot===Ia.VIDEO||t.ot===Ia.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((i,s)=>(r.includes(s)&&(i[s]=t[s]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Gl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Ia.TIMED_TEXT;if(e.sn==="initSegment")return Ia.INIT;if(t==="audio")return Ia.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ia.VIDEO:Ia.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Ia.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,n=e===Ia.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Ci.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,c){t(i),this.loader.load(i,s,c)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,c){t(i),this.loader.load(i,s,c)}}}}const Jl=3e5;class ql{constructor(e){this.hls=void 0,this.log=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=e,this.log=b.log.bind(b,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}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(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===ir.SendAlternateToPenaltyBox&&n.flags===Qr.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:c,pathwayId:p,type:_}=t.context;c&&r?s=this.getPathwayForGroupId(c,_,s):p&&(s=p)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=r.reduce((c,p)=>(c.indexOf(p.pathwayId)===-1&&c.push(p.pathwayId),c),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||b.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Jl&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const c=this.hls.nextLoadLevel,p=this.hls.levels[c];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,or(t),this.hls.trigger(u.LEVELS_UPDATED,{levels:t});const _=this.hls.levels[c];p&&_&&this.levels&&(_.attrs["STABLE-VARIANT-ID"]!==p.attrs["STABLE-VARIANT-ID"]&&_.bitrate!==p.bitrate&&this.log(`Unstable Pathways change from bitrate ${p.bitrate} to ${_.bitrate}`),this.hls.nextLoadLevel=c);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===Dn.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===Dn.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":c,"URI-REPLACEMENT":p}=i;if(t.some(D=>D.pathwayId===s))return;const _=this.getLevelsForPathway(c).map(D=>{const F=new j(D.attrs);F["PATHWAY-ID"]=s;const he=F.AUDIO&&`${F.AUDIO}_clone_${s}`,Ce=F.SUBTITLES&&`${F.SUBTITLES}_clone_${s}`;he&&(n[F.AUDIO]=he,F.AUDIO=he),Ce&&(r[F.SUBTITLES]=Ce,F.SUBTITLES=Ce);const we=pl(D.uri,F["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",p),Ie=new Di({attrs:F,audioCodec:D.audioCodec,bitrate:D.bitrate,height:D.height,name:D.name,url:we,videoCodec:D.videoCodec,width:D.width});if(D.audioGroups)for(let $e=1;$e<D.audioGroups.length;$e++)Ie.addGroupId("audio",`${D.audioGroups[$e]}_clone_${s}`);if(D.subtitleGroups)for(let $e=1;$e<D.subtitleGroups.length;$e++)Ie.addGroupId("text",`${D.subtitleGroups[$e]}_clone_${s}`);return Ie});t.push(..._),hl(this.audioTracks,n,p,s),hl(this.subtitleTracks,r,p,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(D){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const D=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+D)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,c=s.errorRetry||s.timeoutRetry||{},p={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},_={onSuccess:(D,F,he,Ce)=>{this.log(`Loaded steering manifest: "${r}"`);const we=D.data;if(we.VERSION!==1){this.log(`Steering VERSION ${we.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=we.TTL;const{"RELOAD-URI":Ie,"PATHWAY-CLONES":$e,"PATHWAY-PRIORITY":ot}=we;if(Ie)try{this.uri=new self.URL(Ie,r).href}catch(Pt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Ie}`);return}this.scheduleRefresh(this.uri||he.url),$e&&this.clonePathways($e);const kt={steeringManifest:we,url:r.toString()};this.hls.trigger(u.STEERING_MANIFEST_LOADED,kt),ot&&this.updatePathwayPriority(ot)},onError:(D,F,he,Ce)=>{if(this.log(`Error loading steering manifest: ${D.code} ${D.text} (${F.url})`),this.stopLoad(),D.code===410){this.enabled=!1,this.log(`Steering manifest ${F.url} no longer available`);return}let we=this.timeToLoad*1e3;if(D.code===429){const Ie=this.loader;if(typeof(Ie==null?void 0:Ie.getResponseHeader)=="function"){const $e=Ie.getResponseHeader("Retry-After");$e&&(we=parseFloat($e)*1e3)}this.log(`Steering manifest ${F.url} rate limited`);return}this.scheduleRefresh(this.uri||F.url,we)},onTimeout:(D,F,he)=>{this.log(`Timeout loading steering manifest (${F.url})`),this.scheduleRefresh(this.uri||F.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,p,_)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function hl(o,e,t,n){o&&Object.keys(e).forEach(r=>{const i=o.filter(s=>s.groupId===r).map(s=>{const c=a({},s);return c.details=void 0,c.attrs=new j(c.attrs),c.url=c.attrs.URI=pl(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),c.groupId=c.attrs["GROUP-ID"]=e[r],c.attrs["PATHWAY-ID"]=n,c});o.push(...i)})}function pl(o,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let c;e&&(c=s==null?void 0:s[e],c&&(o=c));const p=new self.URL(o);return r&&!c&&(p.host=r),i&&Object.keys(i).sort().forEach(_=>{_&&p.searchParams.set(_,i[_])}),p.href}const eu=/^age:\s*[\d.]+\s*$/im;class ml{constructor(e){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=e&&e.xhrSetup||null,this.stats=new de,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{this.callbacks.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const c in r)e.setRequestHeader(c,r[c]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&C(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const s=t.status,c=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const F=c!=null?c:t.response;if(F!=null){n.loading.end=Math.max(self.performance.now(),n.loading.first);const he=t.responseType==="arraybuffer"?F.byteLength:F.length;if(n.loaded=n.total=he,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first),!this.callbacks)return;const Ce=this.callbacks.onProgress;if(Ce&&Ce(n,e,F,t),!this.callbacks)return;const we={url:t.responseURL,data:F,code:s};this.callbacks.onSuccess(we,n,e,t);return}}const p=i.loadPolicy.errorRetry,_=n.retry,D={url:e.url,data:void 0,code:s};bi(p,_,!1,D)?this.retry(p):(b.error(`${s} while loading ${e.url}`),this.callbacks.onError({code:s,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(bi(e,t,!0))this.retry(e);else{var n;b.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=Xr(e,n.retry),n.retry++,b.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.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(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&eu.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function tu(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(o){}return!1}const nu=/(\d+)-(\d+)\/(\d+)/;class gl{constructor(e){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=e.fetchSetup||su,this.controller=new self.AbortController,this.stats=new de}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 e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,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 i=ru(e,this.controller.signal),s=n.onProgress,c=e.responseType==="arraybuffer",p=c?"byteLength":"length",{maxTimeToFirstByteMs:_,maxLoadTimeMs:D}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=_&&C(_)?_:D,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},t.timeout),self.fetch(this.request).then(F=>{this.response=this.loader=F;const he=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=D,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},D-(he-r.loading.start)),!F.ok){const{status:Ce,statusText:we}=F;throw new ou(we||"fetch, bad network response",Ce,F)}return r.loading.first=he,r.total=au(F.headers)||r.total,s&&C(t.highWaterMark)?this.loadProgressively(F,r,e,t.highWaterMark,s):c?F.arrayBuffer():e.responseType==="json"?F.json():F.text()}).then(F=>{const he=this.response;if(!he)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const Ce=F[p];Ce&&(r.loaded=r.total=Ce);const we={url:he.url,data:F,code:he.status};s&&!C(t.highWaterMark)&&s(r,e,F,he),n.onSuccess(we,r,e,he)}).catch(F=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const he=F&&F.code||0,Ce=F?F.message:null;n.onError({code:he,text:Ce},e,F?F.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new $s,c=e.body.getReader(),p=()=>c.read().then(_=>{if(_.done)return s.dataLength&&i(t,n,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const D=_.value,F=D.length;return t.loaded+=F,F<r||s.dataLength?(s.push(D),s.dataLength>=r&&i(t,n,s.flush(),e)):i(t,n,D,e),p()}).catch(()=>Promise.reject());return p()}}function ru(o,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(a({},o.headers))};return o.rangeEnd&&t.headers.set("Range","bytes="+o.rangeStart+"-"+String(o.rangeEnd-1)),t}function iu(o){const e=nu.exec(o);if(e)return parseInt(e[2])-parseInt(e[1])+1}function au(o){const e=o.get("Content-Range");if(e){const n=iu(e);if(C(n))return n}const t=o.get("Content-Length");if(t)return parseInt(t)}function su(o,e){return new self.Request(o.url,e)}class ou extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const lu=/\s/,uu={newCue(o,e,t,n){const r=[];let i,s,c,p,_;const D=self.VTTCue||self.TextTrackCue;for(let he=0;he<n.rows.length;he++)if(i=n.rows[he],c=!0,p=0,_="",!i.isEmpty()){var F;for(let Ie=0;Ie<i.chars.length;Ie++)lu.test(i.chars[Ie].uchar)&&c?p++:(_+=i.chars[Ie].uchar,c=!1);i.cueStartTime=e,e===t&&(t+=1e-4),p>=16?p--:p++;const Ce=Na(_.trim()),we=Co(e,t,Ce);o!=null&&(F=o.cues)!=null&&F.getCueById(we)||(s=new D(e,t,Ce),s.id=we,s.line=he+1,s.align="left",s.position=10+Math.min(80,Math.floor(p*8/32)*10),r.push(s))}return o&&r.length&&(r.sort((he,Ce)=>he.line==="auto"||Ce.line==="auto"?0:he.line>8&&Ce.line>8?Ce.line-he.line:he.line-Ce.line),r.forEach(he=>Mr(o,he))),r}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},vl=U(U({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,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,loader:ml,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Pi,bufferController:xi,capLevelController:po,errorController:zi,fpsController:Vo,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:qt,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},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}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},du()),{},{subtitleStreamController:ii,subtitleTrackController:Zi,timelineController:co,audioStreamController:wn,audioTrackController:Sr,emeController:Os,cmcdController:Ql,contentSteeringController:ql});function du(){return{cueHandler:uu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function fu(o,e){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(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const t=il(o),n=["manifest","level","frag"],r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(i=>{const s=`${i==="level"?"playlist":i}LoadPolicy`,c=e[s]===void 0,p=[];r.forEach(_=>{const D=`${i}Loading${_}`,F=e[D];if(F!==void 0&&c){p.push(D);const he=t[s].default;switch(e[s]={default:he},_){case"TimeOut":he.maxLoadTimeMs=F,he.maxTimeToFirstByteMs=F;break;case"MaxRetry":he.errorRetry.maxNumRetry=F,he.timeoutRetry.maxNumRetry=F;break;case"RetryDelay":he.errorRetry.retryDelayMs=F,he.timeoutRetry.retryDelayMs=F;break;case"MaxRetryTimeout":he.errorRetry.maxRetryDelayMs=F,he.timeoutRetry.maxRetryDelayMs=F;break}}}),p.length&&b.warn(`hls.js config: "${p.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),U(U({},t),e)}function il(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(il):Object.keys(o).reduce((e,t)=>(e[t]=il(o[t]),e),{}):o}function hu(o){const e=o.loader;e!==gl&&e!==ml?(b.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):tu()&&(o.loader=gl,o.progressive=!0,o.enableSoftwareAES=!0,b.log("[config]: Progressive streaming enabled, using FetchLoader"))}let al;class pu extends ui{constructor(e,t){super(e,"[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=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.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(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let c=!1,p=!1,_=!1;t.levels.forEach(D=>{var F,he;const Ce=D.attrs;let{audioCodec:we,videoCodec:Ie}=D;((F=we)==null?void 0:F.indexOf("mp4a.40.34"))!==-1&&(al||(al=/chrome|firefox/i.test(navigator.userAgent)),al&&(D.audioCodec=we=void 0)),we&&(D.audioCodec=we=xn(we,n)),((he=Ie)==null?void 0:he.indexOf("avc1"))===0&&(Ie=D.videoCodec=Qn(Ie));const{width:$e,height:ot,unknownCodecs:kt}=D;if(c||(c=!!($e&&ot)),p||(p=!!Ie),_||(_=!!we),kt!=null&&kt.length||we&&!ct(we,"audio",n)||Ie&&!ct(Ie,"video",n))return;const{CODECS:Pt,"FRAME-RATE":gn,"HDCP-LEVEL":Ht,"PATHWAY-ID":Bn,RESOLUTION:dn,"VIDEO-RANGE":Gn}=Ce,In=`${`${Bn||"."}-`}${D.bitrate}-${dn}-${gn}-${Pt}-${Gn}-${Ht}`;if(i[In])if(i[In].uri!==D.url&&!D.attrs["PATHWAY-ID"]){const Yn=s[In]+=1;D.attrs["PATHWAY-ID"]=new Array(Yn+1).join(".");const di=new Di(D);i[In]=di,r.push(di)}else i[In].addGroupId("audio",Ce.AUDIO),i[In].addGroupId("text",Ce.SUBTITLES);else{const Yn=new Di(D);i[In]=Yn,s[In]=1,r.push(Yn)}}),this.filterAndSortMediaOptions(r,t,c,p,_)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],c=[],p=e;if((n||r)&&i&&(p=p.filter(({videoCodec:we,videoRange:Ie,width:$e,height:ot})=>(!!we||!!($e&&ot))&&li(Ie))),p.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const we=new Error("no level with compatible codecs found in manifest");this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:we,reason:we.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:we}=this.hls.config;s=t.audioTracks.filter(Ie=>!Ie.audioCodec||ct(Ie.audioCodec,"audio",we)),yl(s)}t.subtitles&&(c=t.subtitles,yl(c));const _=p.slice(0);p.sort((we,Ie)=>{if(we.attrs["HDCP-LEVEL"]!==Ie.attrs["HDCP-LEVEL"])return(we.attrs["HDCP-LEVEL"]||"")>(Ie.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&we.height!==Ie.height)return we.height-Ie.height;if(we.frameRate!==Ie.frameRate)return we.frameRate-Ie.frameRate;if(we.videoRange!==Ie.videoRange)return vi.indexOf(we.videoRange)-vi.indexOf(Ie.videoRange);if(we.videoCodec!==Ie.videoCodec){const $e=Ot(we.videoCodec),ot=Ot(Ie.videoCodec);if($e!==ot)return ot-$e}if(we.uri===Ie.uri&&we.codecSet!==Ie.codecSet){const $e=Tt(we.codecSet),ot=Tt(Ie.codecSet);if($e!==ot)return ot-$e}return we.averageBitrate!==Ie.averageBitrate?we.averageBitrate-Ie.averageBitrate:0});let D=_[0];if(this.steering&&(p=this.steering.filterParsedLevels(p),p.length!==_.length)){for(let we=0;we<_.length;we++)if(_[we].pathwayId===p[0].pathwayId){D=_[we];break}}this._levels=p;for(let we=0;we<p.length;we++)if(p[we]===D){var F;this._firstLevel=we;const Ie=D.bitrate,$e=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${p.length} level(s) found, first bitrate: ${Ie}`),((F=this.hls.userConfig)==null?void 0:F.abrEwmaDefaultEstimate)===void 0){const ot=Math.min(Ie,this.hls.config.abrEwmaDefaultEstimateMax);ot>$e&&$e===vl.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=ot)}break}const he=i&&!r,Ce={levels:p,audioTracks:s,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!he&&s.some(we=>!!we.url)};this.hls.trigger(u.MANIFEST_PARSED,Ce),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const D=new Error("invalid level idx"),F=e<0;if(this.hls.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.LEVEL_SWITCH_ERROR,level:e,fatal:F,error:D,reason:D.message}),F)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],c=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&s.details&&r&&i===c)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${c?" with Pathway "+c:""} from level ${n}${i?" with Pathway "+i:""}`);const p={level:e,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(u.LEVEL_SWITCHING,p);const _=s.details;if(!_||_.live){const D=this.switchParams(s.uri,r==null?void 0:r.details,_);this.loadPlaylist(D)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,t){t.fatal||!t.context||t.context.type===Dn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===nt.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=this._levels[r];if(!s){var c;this.warn(`Invalid level index ${r}`),(c=t.deliveryDirectives)!=null&&c.skip&&(i.deltaUpdateFailed=!0);return}r===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(r,t,s.details)):(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){let r=n.uri;if(e)try{r=e.addDirectives(r)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const i=n.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${i?" Pathway "+i:""} ${r}`),this.clearTimer(),this.hls.trigger(u.LEVEL_LOADING,{url:r,level:t,pathwayId:n.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;const n=this._levels.filter((r,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(r),r===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,r.details&&r.details.fragments.forEach(s=>s.level=-1)),!1));or(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(u.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(u.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function yl(o){const e={};o.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}class mu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=y.KEY_LOAD_ERROR,n,r,i){return new Qi({type:x.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const s=t[i];if(r<=s.cc&&(n==="initSegment"||s.sn==="initSegment"||n<s.sn)){this.emeController.selectKeySystemFormat(s).then(c=>{s.setKeyFormat(c)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const _=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,_))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let c=this.keyUriToKeyInfo[s];if((n=c)!=null&&n.decryptdata.key)return i.key=c.decryptdata.key,Promise.resolve({frag:e,keyInfo:c});if((r=c)!=null&&r.keyLoadPromise){var p;switch((p=c.mediaKeySessionContext)==null?void 0:p.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return c.keyLoadPromise.then(_=>(i.key=_.keyInfo.decryptdata.key,{frag:e,keyInfo:c}))}}switch(c=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(c,e):this.loadKeyEME(c,e);case"AES-128":return this.loadKeyHTTP(c,e);default:return Promise.reject(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,c)=>{const p={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},_=n.keyLoadPolicy.default,D={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},F={onSuccess:(he,Ce,we,Ie)=>{const{frag:$e,keyInfo:ot,url:kt}=we;if(!$e.decryptdata||ot!==this.keyUriToKeyInfo[kt])return c(this.createKeyLoadError($e,y.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Ie));ot.decryptdata.key=$e.decryptdata.key=new Uint8Array(he.data),$e.keyLoader=null,ot.loader=null,s({frag:$e,keyInfo:ot})},onError:(he,Ce,we,Ie)=>{this.resetLoader(Ce),c(this.createKeyLoadError(t,y.KEY_LOAD_ERROR,new Error(`HTTP Error ${he.code} loading key ${he.text}`),we,U({url:p.url,data:void 0},he)))},onTimeout:(he,Ce,we)=>{this.resetLoader(Ce),c(this.createKeyLoadError(t,y.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),we))},onAbort:(he,Ce,we)=>{this.resetLoader(Ce),c(this.createKeyLoadError(t,y.INTERNAL_ABORTED,new Error("key loading aborted"),we))}};i.load(p,D,F)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function bl(){return self.SourceBuffer||self.WebKitSourceBuffer}function xl(){if(!Tn())return!1;const e=bl();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!xl())return!1;const o=Tn();return typeof(o==null?void 0:o.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>o.isTypeSupported(Dt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(Dt(e,"audio"))))}function vu(){var o;const e=bl();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const yu=250,Qo=2,bu=.1,xu=.05;class _u{constructor(e,t,n,r){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=n,this.hls=r}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:n,media:r,stalled:i}=this;if(r===null)return;const{currentTime:s,seeking:c}=r,p=this.seeking&&!c,_=!this.seeking&&c;if(this.seeking=c,s!==e){if(this.moved=!0,c||(this.nudgeRetry=0),i!==null){if(this.stallReported){const $e=self.performance.now()-i;b.warn(`playback not stuck anymore @${s}, after ${Math.round($e)}ms`),this.stallReported=!1}this.stalled=null}return}if(_||p){this.stalled=null;return}if(r.paused&&!c||r.ended||r.playbackRate===0||!Ci.getBuffered(r).length){this.nudgeRetry=0;return}const D=Ci.bufferInfo(r,s,0),F=D.nextStart||0;if(c){const $e=D.len>Qo,ot=!F||t&&t.start<=s||F-s>Qo&&!this.fragmentTracker.getPartialFragment(s);if($e||ot)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var he;if(!(D.len>0)&&!F)return;const ot=Math.max(F,D.start||0)-s,kt=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,gn=(kt==null||(he=kt.details)==null?void 0:he.live)?kt.details.targetduration*2:Qo,Ht=this.fragmentTracker.getPartialFragment(s);if(ot>0&&(ot<=gn||Ht)){r.paused||this._trySkipBufferHole(Ht);return}}const Ce=self.performance.now();if(i===null){this.stalled=Ce;return}const we=Ce-i;if(!c&&we>=yu&&(this._reportStall(D),!this.media))return;const Ie=Ci.bufferInfo(r,s,n.maxBufferHole);this._tryFixBufferStall(Ie,we)}_tryFixBufferStall(e,t){const{config:n,fragmentTracker:r,media:i}=this;if(i===null)return;const s=i.currentTime,c=r.getPartialFragment(s);c&&(this._trySkipBufferHole(c)||!this.media)||(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-s<n.maxBufferHole)&&t>n.highBufferWatchdogPeriod*1e3&&(b.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:n,stallReported:r}=this;if(!r&&n){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${JSON.stringify(e)})`);b.warn(i.message),t.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:n,media:r}=this;if(r===null)return 0;const i=r.currentTime,s=Ci.bufferInfo(r,i,0),c=i<s.start?s.start:s.nextStart;if(c){const p=s.len<=t.maxBufferHole,_=s.len>0&&s.len<1&&r.readyState<3,D=c-i;if(D>0&&(p||_)){if(D>t.maxBufferHole){const{fragmentTracker:he}=this;let Ce=!1;if(i===0){const we=he.getAppendedFrag(0,nt.MAIN);we&&c<we.end&&(Ce=!0)}if(!Ce){const we=e||he.getAppendedFrag(i,nt.MAIN);if(we){let Ie=!1,$e=we.end;for(;$e<c;){const ot=he.getPartialFragment($e);if(ot)$e+=ot.duration;else{Ie=!0;break}}if(Ie)return 0}}}const F=Math.max(c+xu,i+bu);if(b.warn(`skipping hole, adjusting currentTime from ${i} to ${F}`),this.moved=!0,this.stalled=null,r.currentTime=F,e&&!e.gap){const he=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${F}`);n.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:he,reason:he.message,frag:e})}return F}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:n,nudgeRetry:r}=this;if(n===null)return;const i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){const s=i+(r+1)*e.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${i} to ${s}`);b.warn(c.message),n.currentTime=s,t.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);b.error(s.message),t.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class Su extends As{constructor(e,t,n){super(e,t,n,"[stream-controller]",nt.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(u.ERROR,this.onError,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(u.ERROR,this.onError,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:n}=this;if(this.stopLoad(),this.setInterval(Eu),this.level=-1,!this.startFragRequested){let r=n.startLevel;r===-1&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.firstAutoLevel),n.nextLoadLevel=r,this.level=n.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=Sn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=Sn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Sn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=Sn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Sn.IDLE;break}break}case Sn.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=Sn.IDLE}}break}this.state===Sn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],c=this.getMainFwdBufferInfo();if(c===null)return;const p=this.getLevelDetails();if(p&&this._streamEnded(c,p)){const Ie={};this.altAudio&&(Ie.type="video"),this.hls.trigger(u.BUFFER_EOS,Ie),this.state=Sn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const _=s.details;if(!_||this.state===Sn.WAITING_LEVEL||_.live&&this.levelLastLoaded!==s){this.level=i,this.state=Sn.WAITING_LEVEL;return}const D=c.len,F=this.getMaxBufferLength(s.maxBitrate);if(D>=F)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const he=this.backtrackFragment?this.backtrackFragment.start:c.end;let Ce=this.getNextFragment(he,_);if(this.couldBacktrack&&!this.fragPrevious&&Ce&&Ce.sn!=="initSegment"&&this.fragmentTracker.getState(Ce)!==mi.OK){var we;const $e=((we=this.backtrackFragment)!=null?we:Ce).sn-_.startSN,ot=_.fragments[$e-1];ot&&Ce.cc===ot.cc&&(Ce=ot,this.fragmentTracker.removeFragment(ot))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(Ce&&this.isLoopLoading(Ce,he)){if(!Ce.gap){const $e=this.audioOnly&&!this.altAudio?ee.AUDIO:ee.VIDEO,ot=($e===ee.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;ot&&this.afterBufferFlushed(ot,$e,nt.MAIN)}Ce=this.getNextFragmentLoopLoading(Ce,_,c,nt.MAIN,F)}Ce&&(Ce.initSegment&&!Ce.initSegment.data&&!this.bitrateTest&&(Ce=Ce.initSegment),this.loadFragment(Ce,s,he))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);this.fragCurrent=e,r===mi.NOT_LOADED||r===mi.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):(this.startFragRequested=!0,super.loadFragment(e,t,n)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,nt.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const c=this.getMainFwdBufferInfo();if(!c||c.len<i.targetduration*2)return}if(!t.paused&&e){const c=this.hls.nextLoadLevel,p=e[c],_=this.fragLastKbps;_&&this.fragCurrent?n=this.fragCurrent.duration*p.maxBitrate/(1e3*_)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const c=this.followingBufferedFrag(s);if(c){this.abortCurrentFrag();const p=c.maxStartPTS?c.maxStartPTS:c.start,_=c.duration,D=Math.max(s.end,p+Math.min(Math.max(_-this.config.maxFragLookUpTolerance,_*(this.couldBacktrack?.5:.125)),_*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(D,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Sn.KEY_LOADING:case Sn.FRAG_LOADING:case Sn.FRAG_LOADING_WAITING_RETRY:case Sn.PARSING:case Sn.PARSED:this.state=Sn.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new _u(this.config,n,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;C(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const n=this.getMainFwdBufferInfo();if(n===null||n.len===0){this.warn(`Main forward buffer length on "seeked" event ${n?n.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(u.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!vu(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==Sn.IDLE)return;const r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=Sn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r}=this,i=t.level,s=t.details,c=s.totalduration;if(!r){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${c}`);const p=r[i],_=this.fragCurrent;_&&(this.state===Sn.FRAG_LOADING||this.state===Sn.FRAG_LOADING_WAITING_RETRY)&&_.level!==t.level&&_.loader&&this.abortCurrentFrag();let D=0;if(s.live||(n=p.details)!=null&&n.live){var F;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;D=this.alignPlaylists(s,p.details,(F=this.levelLastLoaded)==null?void 0:F.details)}if(p.details=s,this.levelLastLoaded=p,this.hls.trigger(u.LEVEL_UPDATED,{details:s,level:i}),this.state===Sn.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=Sn.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,D),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const c=s[n.level],p=c.details;if(!p){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const _=c.videoCodec,D=p.PTSKnown||!p.live,F=(t=n.initSegment)==null?void 0:t.data,he=this._getAudioCodec(c),Ce=this.transmuxer=this.transmuxer||new Qt(this.hls,nt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),we=r?r.index:-1,Ie=we!==-1,$e=new vs(n.level,n.sn,n.stats.chunkCount,i.byteLength,we,Ie),ot=this.initPTS[n.cc];Ce.push(i,F,he,_,n,r,p.totalduration,D,$e,ot)}onAudioTrackSwitching(e,t){const n=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const i=this.hls;n&&(i.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(u.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=t.id,r=!!this.hls.audioTracks[n].url;if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const c in n){const p=n[c];if(p.id==="main"){if(i=c,r=p,c==="video"){const _=n[c];_&&(this.videoBuffer=_.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n&&n.type!==nt.MAIN)return;if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Sn.PARSED&&(this.state=Sn.IDLE);return}const i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),n.sn!=="initSegment"&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=Sn.ERROR;return}switch(t.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(nt.MAIN,t);break;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Sn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===Dn.LEVEL&&(this.state=Sn.IDLE);break;case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===y.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Ci.getBuffered(e).length){const n=this.state!==Sn.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=Sn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==ee.AUDIO||this.audioOnly&&!this.altAudio){const n=(t===ee.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,t,nt.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=Ci.getBuffered(e),s=(r.length?r.start(0):0)-n;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),n+=s,this.startPosition=n),this.log(`seek to target start position ${n} from current time ${t}`),e.currentTime=n}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this;if(!n||this.fragContextChanged(e))return;t.fragmentError=0,this.state=Sn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),r.trigger(u.FRAG_LOADED,n),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n="main",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,c=this.getCurrentContext(s);if(!c){this.resetWhenMissingContext(s);return}const{frag:p,part:_,level:D}=c,{video:F,text:he,id3:Ce,initSegment:we}=i,{details:Ie}=D,$e=this.altAudio?void 0:i.audio;if(this.fragContextChanged(p)){this.fragmentTracker.removeFragment(p);return}if(this.state=Sn.PARSING,we){if(we!=null&&we.tracks){const Pt=p.initSegment||p;this._bufferInitSegment(D,we.tracks,Pt,s),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:Pt,id:n,tracks:we.tracks})}const ot=we.initPTS,kt=we.timescale;C(ot)&&(this.initPTS[p.cc]={baseTime:ot,timescale:kt},r.trigger(u.INIT_PTS_FOUND,{frag:p,id:n,initPTS:ot,timescale:kt}))}if(F&&Ie&&p.sn!=="initSegment"){const ot=Ie.fragments[p.sn-1-Ie.startSN],kt=p.sn===Ie.startSN,Pt=!ot||p.cc>ot.cc;if(i.independent!==!1){const{startPTS:gn,endPTS:Ht,startDTS:Bn,endDTS:dn}=F;if(_)_.elementaryStreams[F.type]={startPTS:gn,endPTS:Ht,startDTS:Bn,endDTS:dn};else if(F.firstKeyFrame&&F.independent&&s.id===1&&!Pt&&(this.couldBacktrack=!0),F.dropped&&F.independent){const Gn=this.getMainFwdBufferInfo(),Er=(Gn?Gn.end:this.getLoadPosition())+this.config.maxBufferHole,In=F.firstKeyFramePTS?F.firstKeyFramePTS:gn;if(!kt&&Er<In-this.config.maxBufferHole&&!Pt){this.backtrack(p);return}else Pt&&(p.gap=!0);p.setElementaryStreamInfo(F.type,p.start,Ht,p.start,dn,!0)}else kt&&gn>Qo&&(p.gap=!0);p.setElementaryStreamInfo(F.type,gn,Ht,Bn,dn),this.backtrackFragment&&(this.backtrackFragment=p),this.bufferFragmentData(F,p,_,s,kt||Pt)}else if(kt||Pt)p.gap=!0;else{this.backtrack(p);return}}if($e){const{startPTS:ot,endPTS:kt,startDTS:Pt,endDTS:gn}=$e;_&&(_.elementaryStreams[ee.AUDIO]={startPTS:ot,endPTS:kt,startDTS:Pt,endDTS:gn}),p.setElementaryStreamInfo(ee.AUDIO,ot,kt,Pt,gn),this.bufferFragmentData($e,p,_,s)}if(Ie&&Ce!=null&&(t=Ce.samples)!=null&&t.length){const ot={id:n,frag:p,details:Ie,samples:Ce.samples};r.trigger(u.FRAG_PARSING_METADATA,ot)}if(Ie&&he){const ot={id:n,frag:p,details:Ie,samples:he.samples};r.trigger(u.FRAG_PARSING_USERDATA,ot)}}_bufferInitSegment(e,t,n,r){if(this.state!==Sn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:c}=t;if(i){let p=e.audioCodec;const _=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){p&&(p.indexOf("mp4a.40.5")!==-1?p="mp4a.40.2":p="mp4a.40.5");const D=i.metadata;D&&"channelCount"in D&&(D.channelCount||1)!==1&&_.indexOf("firefox")===-1&&(p="mp4a.40.5")}p&&p.indexOf("mp4a.40.5")!==-1&&_.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(p="mp4a.40.2",this.log(`Android: force audio codec to ${p}`)),e.audioCodec&&e.audioCodec!==p&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${p}"`),i.levelCodec=p,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${p||""}/${e.audioCodec||""}/${i.codec}]`)}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${s.codec}]`)),c&&this.log(`Init audiovideo buffer, container:${c.container}, codecs[level/parsed]=[${e.codecs}/${c.codec}]`),this.hls.trigger(u.BUFFER_CODECS,t),Object.keys(t).forEach(p=>{const D=t[p].initSegment;D!=null&&D.byteLength&&this.hls.trigger(u.BUFFER_APPENDING,{type:p,data:D,frag:n,part:null,chunkMeta:r,parent:n.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,nt.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Sn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Ci.isBuffered(e,n)?t=this.getAppendedFrag(n):Ci.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(u.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(u.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,n=this.currentFrag;if(n&&C(t)&&C(n.programDateTime)){const r=n.programDateTime+(t-n.start)*1e3;return new Date(r)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Ys{static get version(){return"1.5.20"}static isMSESupported(){return xl()}static isSupported(){return gu()}static getMediaSource(){return Tn()}static get Events(){return u}static get ErrorTypes(){return x}static get ErrorDetails(){return y}static get DefaultConfig(){return Ys.defaultConfig?Ys.defaultConfig:vl}static set DefaultConfig(e){Ys.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Zt,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.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,V(e.debug||!1,"Hls instance");const t=this.config=fu(Ys.DefaultConfig,e);this.userConfig=e,t.progressive&&hu(t);const{abrController:n,bufferController:r,capLevelController:i,errorController:s,fpsController:c}=t,p=new s(this),_=this.abrController=new n(this),D=this.bufferController=new r(this),F=this.capLevelController=new i(this),he=new c(this),Ce=new Cr(this),we=new fi(this),Ie=t.contentSteeringController,$e=Ie?new Ie(this):null,ot=this.levelController=new pu(this,$e),kt=new Oa(this),Pt=new mu(this.config),gn=this.streamController=new Su(this,kt,Pt);F.setStreamController(gn),he.setStreamController(gn);const Ht=[Ce,ot,gn];$e&&Ht.splice(1,0,$e),this.networkControllers=Ht;const Bn=[_,D,F,he,we,kt];this.audioTrackController=this.createController(t.audioTrackController,Ht);const dn=t.audioStreamController;dn&&Ht.push(new dn(this,kt,Pt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,Ht);const Gn=t.subtitleStreamController;Gn&&Ht.push(new Gn(this,kt,Pt)),this.createController(t.timelineController,Bn),Pt.emeController=this.emeController=this.createController(t.emeController,Bn),this.cmcdController=this.createController(t.cmcdController,Bn),this.latencyController=this.createController(Li,Bn),this.coreComponents=Bn,Ht.push(p);const Er=p.onErrorOut;typeof Er=="function"&&this.on(u.ERROR,Er,p)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(b.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===u.ERROR;this.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){b.log("destroy"),this.trigger(u.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 e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){b.log("attachMedia"),this._media=e,this.trigger(u.MEDIA_ATTACHING,{media:e})}detachMedia(){b.log("detachMedia"),this.trigger(u.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,n=this.url,r=this.url=X.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,b.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(u.MANIFEST_LOADING,{url:e})}startLoad(e=-1){b.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){b.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){b.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){b.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){b.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){b.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){b.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){b.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){b.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){b.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){b.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(b.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){ti(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Ys.defaultConfig=void 0},16722:function(Wt,Ze,h){"use strict";h.d(Ze,{Z:function(){return me}});const z=a=>typeof a=="object"&&a!=null&&a.nodeType===1,N=(a,C)=>(!C||a!=="hidden")&&a!=="visible"&&a!=="clip",X=(a,C)=>{if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){const I=getComputedStyle(a,null);return N(I.overflowY,C)||N(I.overflowX,C)||(m=>{const u=(x=>{if(!x.ownerDocument||!x.ownerDocument.defaultView)return null;try{return x.ownerDocument.defaultView.frameElement}catch(y){return null}})(m);return!!u&&(u.clientHeight<m.scrollHeight||u.clientWidth<m.scrollWidth)})(a)}return!1},ye=(a,C,I,m,u,x,y,O)=>x<a&&y>C||x>a&&y<C?0:x<=a&&O<=I||y>=C&&O>=I?x-a-m:y>C&&O<I||x<a&&O>I?y-C+u:0,U=a=>{const C=a.parentElement;return C==null?a.getRootNode().host||null:C},H=(a,C)=>{var I,m,u,x;if(typeof document=="undefined")return[];const{scrollMode:y,block:O,inline:te,boundary:B,skipOverflowHiddenElements:M}=C,W=typeof B=="function"?B:Ke=>Ke!==B;if(!z(a))throw new TypeError("Invalid target");const V=document.scrollingElement||document.documentElement,b=[];let T=a;for(;z(T)&&W(T);){if(T=U(T),T===V){b.push(T);break}T!=null&&T===document.body&&X(T)&&!X(document.documentElement)||T!=null&&X(T,M)&&b.push(T)}const G=(m=(I=window.visualViewport)==null?void 0:I.width)!=null?m:innerWidth,j=(x=(u=window.visualViewport)==null?void 0:u.height)!=null?x:innerHeight,{scrollX:be,scrollY:_e}=window,{height:xe,width:de,top:ee,right:Z,bottom:pe,left:P}=a.getBoundingClientRect(),{top:ie,right:Q,bottom:v,left:E}=(Ke=>{const Me=window.getComputedStyle(Ke);return{top:parseFloat(Me.scrollMarginTop)||0,right:parseFloat(Me.scrollMarginRight)||0,bottom:parseFloat(Me.scrollMarginBottom)||0,left:parseFloat(Me.scrollMarginLeft)||0}})(a);let K=O==="start"||O==="nearest"?ee-ie:O==="end"?pe+v:ee+xe/2-ie+v,fe=te==="center"?P+de/2-E+Q:te==="end"?Z+Q:P-E;const Be=[];for(let Ke=0;Ke<b.length;Ke++){const Me=b[Ke],{height:Ye,width:ht,top:pt,right:at,bottom:Bt,left:Vt}=Me.getBoundingClientRect();if(y==="if-needed"&&ee>=0&&P>=0&&pe<=j&&Z<=G&&(Me===V&&!X(Me)||ee>=pt&&pe<=Bt&&P>=Vt&&Z<=at))return Be;const qt=getComputedStyle(Me),$t=parseInt(qt.borderLeftWidth,10),Gt=parseInt(qt.borderTopWidth,10),lt=parseInt(qt.borderRightWidth,10),se=parseInt(qt.borderBottomWidth,10);let ve=0,ne=0;const Y="offsetWidth"in Me?Me.offsetWidth-Me.clientWidth-$t-lt:0,Ae="offsetHeight"in Me?Me.offsetHeight-Me.clientHeight-Gt-se:0,$="offsetWidth"in Me?Me.offsetWidth===0?0:ht/Me.offsetWidth:0,R="offsetHeight"in Me?Me.offsetHeight===0?0:Ye/Me.offsetHeight:0;if(V===Me)ve=O==="start"?K:O==="end"?K-j:O==="nearest"?ye(_e,_e+j,j,Gt,se,_e+K,_e+K+xe,xe):K-j/2,ne=te==="start"?fe:te==="center"?fe-G/2:te==="end"?fe-G:ye(be,be+G,G,$t,lt,be+fe,be+fe+de,de),ve=Math.max(0,ve+_e),ne=Math.max(0,ne+be);else{ve=O==="start"?K-pt-Gt:O==="end"?K-Bt+se+Ae:O==="nearest"?ye(pt,Bt,Ye,Gt,se+Ae,K,K+xe,xe):K-(pt+Ye/2)+Ae/2,ne=te==="start"?fe-Vt-$t:te==="center"?fe-(Vt+ht/2)+Y/2:te==="end"?fe-at+lt+Y:ye(Vt,at,ht,$t,lt+Y,fe,fe+de,de);const{scrollLeft:L,scrollTop:oe}=Me;ve=R===0?0:Math.max(0,Math.min(oe+ve/R,Me.scrollHeight-Ye/R+Ae)),ne=$===0?0:Math.max(0,Math.min(L+ne/$,Me.scrollWidth-ht/$+Y)),K+=oe-ve,fe+=L-ne}Be.push({el:Me,top:ve,left:ne})}return Be},S=a=>a===!1?{block:"end",inline:"nearest"}:(C=>C===Object(C)&&Object.keys(C).length!==0)(a)?a:{block:"start",inline:"nearest"};function me(a,C){if(!a.isConnected||!(u=>{let x=u;for(;x&&x.parentNode;){if(x.parentNode===document)return!0;x=x.parentNode instanceof ShadowRoot?x.parentNode.host:x.parentNode}return!1})(a))return;const I=(u=>{const x=window.getComputedStyle(u);return{top:parseFloat(x.scrollMarginTop)||0,right:parseFloat(x.scrollMarginRight)||0,bottom:parseFloat(x.scrollMarginBottom)||0,left:parseFloat(x.scrollMarginLeft)||0}})(a);if((u=>typeof u=="object"&&typeof u.behavior=="function")(C))return C.behavior(H(a,C));const m=typeof C=="boolean"||C==null?void 0:C.behavior;for(const{el:u,top:x,left:y}of H(a,S(C))){const O=x-I.top+I.bottom,te=y-I.left+I.right;u.scroll({top:O,left:te,behavior:m})}}}}]);
}());