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

3395 lines
2.1 MiB

This file contains invisible Unicode characters!

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

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 ku=Math.pow;var Bd=(xn,er,x)=>new Promise((ge,ue)=>{var Q=G=>{try{ne(x.next(G))}catch(B){ue(B)}},Te=G=>{try{ne(x.throw(G))}catch(B){ue(B)}},ne=G=>G.done?ge(G.value):Promise.resolve(G.value).then(Q,Te);ne((x=x.apply(xn,er)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},59477:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},40001:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},49198:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},84105:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},18785:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},73331:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},15277:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},52671:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},8657:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},56082:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},33853:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},15075:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},62772:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},43531:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},38819:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},47472:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},87395:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(92413),ue=x(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Te=Q,ne=x(7657),G=function(h,Z){return ue.createElement(ne.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},11570:function(xn,er){"use strict";er.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},64686:function(xn,er,x){"use strict";var ge=x(59301),ue=Object.defineProperty,Q=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,G=(E,h,Z)=>h in E?ue(E,h,{enumerable:!0,configurable:!0,writable:!0,value:Z}):E[h]=Z,B=(E,h)=>{for(var Z in h||(h={}))Te.call(h,Z)&&G(E,Z,h[Z]);if(Q)for(var Z of Q(h))ne.call(h,Z)&&G(E,Z,h[Z]);return E};const f=E=>React.createElement("svg",B({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},E),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));er.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},75872:function(xn,er,x){"use strict";x.d(er,{Z:function(){return N}});var ge=x(3113),ue=x(59301),Q=Object.defineProperty,Te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,E=(R,I,Y)=>I in R?Q(R,I,{enumerable:!0,configurable:!0,writable:!0,value:Y}):R[I]=Y,h=(R,I)=>{for(var Y in I||(I={}))B.call(I,Y)&&E(R,Y,I[Y]);if(G)for(var Y of G(I))f.call(I,Y)&&E(R,Y,I[Y]);return R},Z=(R,I)=>Te(R,ne(I)),S=(R,I)=>{var Y={};for(var K in R)B.call(R,K)&&I.indexOf(K)<0&&(Y[K]=R[K]);if(R!=null&&G)for(var K of G(R))I.indexOf(K)<0&&f.call(R,K)&&(Y[K]=R[K]);return Y},_=(R,I,Y)=>new Promise((K,se)=>{var te=j=>{try{W(Y.next(j))}catch(le){se(le)}},X=j=>{try{W(Y.throw(j))}catch(le){se(le)}},W=j=>j.done?K(j.value):Promise.resolve(j.value).then(te,X);W((Y=Y.apply(R,I)).next())});const N=R=>{var I=R,{children:Y}=I,K=S(I,["children"]);const[se,te]=(0,ue.useState)(!1);return ue.createElement(ge.ZP,Z(h({},K),{loading:se,onClick:X=>_(void 0,null,function*(){try{te(!0),yield K.onClick(X),te(!1)}catch(W){console.error(W),te(!1)}})}),Y)}},72714:function(xn,er,x){"use strict";var ge=x(59301),ue=x(11570),Q=x(48136),Te=x(46531),ne=x(43418),G=x(59301);const B=(0,ge.forwardRef)(({callback:f,width:E,onChange:h,disabled:Z,readOnly:S,type:_="",value:N="",style:R={}},I)=>{const Y=(0,ge.useRef)(),K=(0,ge.useRef)(),[se,te]=(0,ge.useState)(0),[X,W]=(0,ge.useState)(0),[j,le]=(0,ge.useState)(!1),he=()=>{var q=document.createElement("div");q.innerHTML=Y.current.getValue();var ce=q.innerText;return f&&f(ce),ce};(0,ge.useImperativeHandle)(I,()=>({getData:he}));const Ne=q=>{q.preventDefault();const ce=q.clientX-se,k=q.clientY-X;document.body.onmousemove=ot=>{let Le=ot.clientX-ce,xe=ot.clientY-k;const Re=document.getElementsByClassName("markdown-popup-form")[0],ve=window.innerWidth-Re.offsetWidth,ke=window.innerHeight-Re.offsetHeight;Le=Math.max(0,Math.min(Le,ve)),xe=Math.max(0,Math.min(xe,ke)),Ce(ot.clientX,ot.clientY,ce,k)&&(te(Le),W(xe))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ce=(q,ce,k,ot)=>{const Le=document.body.clientHeight,xe=document.body.clientWidth;return q<20&&k>q||q>xe-20&&k<q||ce<20&&ot>ce||ce>Le-20&&ot<ce?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ge.useEffect)(()=>{j&&setTimeout(()=>{const q=document.getElementsByClassName("markdown-popup-form")[0],ce=window.innerWidth/2-q.offsetWidth/2,k=window.innerHeight/2-q.offsetHeight/2;te(ce),W(k)},0)},[j]);const je=()=>{Z||S||le(!0)};return G.createElement("div",{style:R},G.createElement("div",{style:{width:E||"100%",position:"relative"},className:`${ue.Z.mathFillWrap} ${Z||S?"cursorDefault":""}`,onClick:()=>je()},G.createElement("math-field",{disabled:Z,locale:"zh_cn",class:`${ue.Z.mathField} ${_}`,readOnly:S,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Y,style:{width:"100%",fontSize:N?18:14},value:N||""})),G.createElement(ne.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:se,top:X},title:G.createElement("div",{style:{cursor:"move"},onMouseDown:Ne},"\u8F93\u5165\u516C\u5F0F"),open:j,onOk:()=>{const q=K.current.getData();Y.current.setValue(q),h(q),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},G.createElement(Te.Z,{value:N,ref:K,onChange:h,showSaveButton:!1})))});er.Z=B},46531:function(xn,er,x){"use strict";var ge=x(59301),ue=x(95237),Q=x(43604),Te=x(99313),ne=x(3113),G=x(99325),B=x(11570),f=x(48136),E=x(59301);const h=(0,ge.forwardRef)(({callback:Z,showSaveButton:S,value:_=""},N)=>{const R=(0,ge.useRef)(),I=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Y=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],K=X=>{R.current.setValue(R.current.getValue()+" "+X.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:E.createElement(ue.Z,{className:B.Z.lists,gutter:[10,10]},I.map((X,W)=>E.createElement(Q.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(G.Z,{value:`$$${X.value}$$`}),X.name),E.createElement("div",{className:B.Z.children},X.children.map((j,le)=>E.createElement("div",{key:le},E.createElement("h1",null,j.name),E.createElement(ue.Z,{gutter:[10,10]},j.data.map((he,Ne)=>E.createElement(Q.Z,{key:Ne,onClick:()=>K(he),className:B.Z.diamond},E.createElement(G.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:E.createElement(ue.Z,{className:B.Z.lists,gutter:[10,10]},Y.map((X,W)=>E.createElement(Q.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(G.Z,{value:"`$$"+X.value+"$$`"}),X.name),E.createElement("div",{className:B.Z.children},X.children.map((j,le)=>E.createElement("div",{key:le},j.name&&E.createElement("h1",null,j.name),E.createElement(ue.Z,{gutter:[10,10]},j.data.map((he,Ne)=>E.createElement(Q.Z,{key:Ne,onClick:()=>K(he),className:B.Z.diamond},E.createElement(G.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],te=()=>{var X=document.createElement("div");X.innerHTML=R.current.getValue();var W=X.innerText;return Z&&Z(W),W};return(0,ge.useImperativeHandle)(N,()=>({getData:te})),E.createElement("div",{className:B.Z.mathWrap},E.createElement(Te.default,{defaultActiveKey:"1",items:se}),E.createElement("math-field",{locale:"zh_cn",className:B.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:R,style:{width:800,marginTop:30,fontSize:18}},_||""),S&&E.createElement("div",{className:B.Z.button},E.createElement(ne.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});er.Z=h},20527:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(59301),ue={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Q=x(43418),Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",G=(E,h,Z)=>new Promise((S,_)=>{var N=Y=>{try{I(Z.next(Y))}catch(K){_(K)}},R=Y=>{try{I(Z.throw(Y))}catch(K){_(K)}},I=Y=>Y.done?S(Y.value):Promise.resolve(Y.value).then(N,R);I((Z=Z.apply(E,h)).next())}),f=({type:E,resdata:h,onok:Z,oktext:S,okloading:_})=>{const[N,R]=(0,ge.useState)(!1),{can_copy_list:I,can_copy_num:Y,challenge_type:K,course_data_list:se,no_copy_list:te,no_copy_num:X,no_use_list:W,no_use_num:j,repeat_shixun_num:le,student_count:he,total_num:Ne,use_num:Ce}=h;let je=Y>0||E==="exercise";(0,ge.useEffect)(()=>{(h==null?void 0:h.student_count)>0&&R(!0)},[h]),console.log("---11",_),(0,ge.useEffect)(()=>{_||R(!1)},[_]);const q=()=>{if(E==="exercise"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:ue.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(E==="exercise"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:ue.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:ue.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ge.createElement("span",{className:ue.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ge.createElement("span",{className:ue.orangeColor},Ce)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="exercisepush")return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ge.createElement("span",{className:ue.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(E==="shixunpush"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:ue.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixunpush"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ge.createElement("span",{className:ue.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ce=()=>{if(E==="exercise"||E==="subject"||E==="exercisepush"||E==="shixunpush")return ge.createElement("div",{style:{marginTop:20}},X>0&&ge.createElement("div",null,ge.createElement("span",{className:ue.flex},ge.createElement("img",{src:ne,style:{width:14}}),ge.createElement("span",{className:ue.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ge.createElement("div",{className:ue.statusbody},E==="exercise"&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:ue.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(E==="subject"||E==="exercisepush")&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&ge.createElement("span",{className:ue.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E==="shixunpush"&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&ge.createElement("span",{className:ue.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ge.createElement("div",null,te==null?void 0:te.map((k,ot)=>ge.createElement("a",{href:`/shixuns/${k.identifier}/challenges`,target:"_blank"},"\u300A",k==null?void 0:k.name,"\u300B",ot+1!==X&&"\u3001"))))),Y>0&&ge.createElement("div",{style:{marginTop:20}},ge.createElement("span",{className:ue.flex},ge.createElement("img",{src:Te,style:{width:14}}),ge.createElement("span",{className:ue.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ge.createElement("div",{className:ue.statusbody},E==="exercise"&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(E==="subject"||E==="exercisepush")&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E==="shixunpush"&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ge.createElement("div",null,I==null?void 0:I.map((k,ot)=>ge.createElement("a",{href:`/shixuns/${k.identifier}/challenges`,target:"_blank"},"\u300A",k==null?void 0:k.name,"\u300B",ot+1!==Y&&"\u3001"))))));if(E==="shixun")return ge.createElement("div",{style:{marginTop:20}},Y>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ge.createElement(Q.default,{open:N,onCancel:()=>{R(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!je&&"none"}},zIndex:1003,confirmLoading:_,okText:je?S:"\u6211\u77E5\u9053\u4E86",onOk:()=>G(void 0,null,function*(){je?yield Z([...I,...W]):R(!1)})},ge.createElement("div",{style:{maxHeight:600,overflow:"auto"}},q(),ce()))}},34393:function(xn,er,x){"use strict";x.d(er,{B:function(){return E},F:function(){return f}});var ge=x(65022),ue=x.n(ge),Q=x(86129),Te=x.n(Q),ne=(h,Z,S)=>new Promise((_,N)=>{var R=K=>{try{Y(S.next(K))}catch(se){N(se)}},I=K=>{try{Y(S.throw(K))}catch(se){N(se)}},Y=K=>K.done?_(K.value):Promise.resolve(K.value).then(R,I);Y((S=S.apply(h,Z)).next())});const G=()=>{document.body.scrollIntoView()},B=()=>{document.querySelectorAll("canvas").forEach(h=>{(!h.clientWidth||!h.clientHeight)&&h.remove()})},f=(h,Z)=>ne(void 0,null,function*(){G(),B();const S={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let _=ue()();for(let R=0;R<h.length;R++)yield _.set(S).from(h[R]).toContainer().toCanvas().toPdf().get("pdf").then(I=>ne(void 0,null,function*(){R<h.length-1&&(yield I.addPage())}));const N=new(Te());N.file(`${Z}.pdf`,_.output("blob"),{base64:!1}),N.generateAsync({type:"blob"}).then(function(R){const I=document.createElement("a");I.href=window.URL.createObjectURL(R),I.download=`${Z}.zip`,document.body.appendChild(I);const Y=new MouseEvent("click");I.dispatchEvent(Y),document.body.removeChild(I)})}),E=(h,Z)=>ne(void 0,null,function*(){G(),B();const S={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let _=ue()();for(let N=0;N<h.length;N++)yield _.set(S).from(h[N]).toContainer().toCanvas().toPdf().get("pdf").then(R=>ne(void 0,null,function*(){N<h.length-1&&(yield R.addPage())}));_.save(`${Z}.pdf`)})},13575:function(xn,er,x){"use strict";x.r(er),x.d(er,{default:function(){return nt}});var ge=x(59301),ue=x(24459),Q=x(92832),Te=x(8591),ne=x(1710),G=x(6848),B=x(95237),f=x(43604),E=x(5112),h=x(28103),Z=x(71418),S=x(66104),_=x(3113),N=x(38854),R=x(43418),I={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},Y=x(90052),K=x(34393),se=x(83609),te=x(149),X=x(63529),W=x(88230),j=x(30897),le=x(99325),he=x(24334),Ne=x(40755),Ce=x(72714),je=x(75872),q=x(7660),ce=x(59301),k=Object.defineProperty,ot=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Re=(ut,Nt,zt)=>Nt in ut?k(ut,Nt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ut[Nt]=zt,ve=(ut,Nt)=>{for(var zt in Nt||(Nt={}))Le.call(Nt,zt)&&Re(ut,zt,Nt[zt]);if(ot)for(var zt of ot(Nt))xe.call(Nt,zt)&&Re(ut,zt,Nt[zt]);return ut},ke=(ut,Nt,zt)=>new Promise((Ht,cr)=>{var or=$=>{try{dr(zt.next($))}catch(Xe){cr(Xe)}},yr=$=>{try{dr(zt.throw($))}catch(Xe){cr(Xe)}},dr=$=>$.done?Ht($.value):Promise.resolve($.value).then(or,yr);dr((zt=zt.apply(ut,Nt)).next())});const{TextArea:fe}=Q.default,ye={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},at=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],rt=({newExercisePaper:ut,isExportBlank:Nt=!1,paperlibrary:zt,user:Ht,globalSetting:cr,loading:or,dispatch:yr})=>{var dr,$,Xe,L,p,u,w,ee,Be,T,ae,Ge,Ee;const me=(0,ue.useLocation)(),qe=(0,ue.useParams)(),[_t]=(0,ue.useSearchParams)(),[pe,st]=(0,ge.useState)(),At=(0,ge.useRef)(),[Pe,Ie]=(0,ge.useState)(),[vt,Ut]=(0,ge.useState)(),[Rt,hr]=(0,ge.useState)([]),[br,Mr]=(0,ge.useState)(!1),[Ur,Qr]=(0,ge.useState)(""),[rr,Ar]=(0,ge.useState)(!1),[jr,cn]=(0,ge.useState)(!1),Tn=_t.get("isIntelligentAssistant");(0,ge.useEffect)(()=>(yr({type:"globalSetting/footerToggle",payload:!1}),()=>{yr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ge.useEffect)(()=>{At.current=qe==null?void 0:qe.id,st(_t.get("defaultActiveKey")||"0"),Pr(),Qn(),en()},[qe==null?void 0:qe.id]),(0,ge.useEffect)(()=>{var be;if((be=ut.exerciseExportHeadData)!=null&&be.title){const Ue=ut.exerciseExportHeadData;Ie(ve({},Ue||{}));const{table:Me}=Ue||{};let lt,Zt;(Me!=null&&Me.total_singles_scores||Me!=null&&Me.total_doubles_scores||Me!=null&&Me.total_nulls_scores||Me!=null&&Me.total_judges_scores||Me!=null&&Me.total_pros_scores||Me!=null&&Me.total_shixuns_scores||Me!=null&&Me.total_mains_scores||Me!=null&&Me.total_combination_scores||Me!=null&&Me.total_bpros_scores)&&(lt=Number(Me==null?void 0:Me.total_singles_scores)+Number(Me==null?void 0:Me.total_doubles_scores)+Number(Me==null?void 0:Me.total_nulls_scores)+Number(Me==null?void 0:Me.total_judges_scores)+Number(Me==null?void 0:Me.total_pros_scores)+Number(Me==null?void 0:Me.total_shixuns_scores)+Number(Me==null?void 0:Me.total_mains_scores)+Number(Me==null?void 0:Me.total_combination_scores)+Number(Me==null?void 0:Me.total_bpros_scores)),(Me!=null&&Me.singles_scores||Me!=null&&Me.doubles_scores||Me!=null&&Me.nulls_scores||Me!=null&&Me.judges_scores||Me!=null&&Me.pros_scores||Me!=null&&Me.bpros_scores||Me!=null&&Me.shixuns_scores||Me!=null&&Me.mains_scores||Me!=null&&Me.combination_scores)&&(Zt=Number(Me==null?void 0:Me.singles_scores)+Number(Me==null?void 0:Me.doubles_scores)+Number(Me==null?void 0:Me.nulls_scores)+Number(Me==null?void 0:Me.judges_scores)+Number(Me==null?void 0:Me.pros_scores)+Number(Me==null?void 0:Me.bpros_scores)+Number(Me==null?void 0:Me.shixuns_scores)+Number(Me==null?void 0:Me.mains_scores)+Number(Me==null?void 0:Me.combination_scores));const Qt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Me==null?void 0:Me.total_singles_scores,doubles_score:Me==null?void 0:Me.total_doubles_scores,nulls_score:Me==null?void 0:Me.total_nulls_scores,judges_score:Me==null?void 0:Me.total_judges_scores,pros_score:Me==null?void 0:Me.total_pros_scores,bpros_score:Me==null?void 0:Me.total_bpros_scores,shixuns_score:Me==null?void 0:Me.total_shixuns_scores,mains_score:Me==null?void 0:Me.total_mains_scores,combinations_score:Me==null?void 0:Me.total_combination_scores,total_score:lt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Me==null?void 0:Me.singles_scores,doubles_score:Me==null?void 0:Me.doubles_scores,nulls_score:Me==null?void 0:Me.nulls_scores,judges_score:Me==null?void 0:Me.judges_scores,pros_score:Me==null?void 0:Me.pros_scores,bpros_score:Me==null?void 0:Me.bpros_scores,shixuns_score:Me==null?void 0:Me.shixuns_scores,mains_score:Me==null?void 0:Me.mains_scores,combinations_score:Me==null?void 0:Me.combination_scores,total_score:Zt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Sr=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Me==null?void 0:Me.total_singles_scores,doubles_score:Me==null?void 0:Me.total_doubles_scores,nulls_score:Me==null?void 0:Me.total_nulls_scores,judges_score:Me==null?void 0:Me.total_judges_scores,pros_score:Me==null?void 0:Me.total_pros_scores,bpros_score:Me==null?void 0:Me.total_bpros_scores,shixuns_score:Me==null?void 0:Me.total_shixuns_scores,mains_score:Me==null?void 0:Me.total_mains_scores,combinations_score:Me==null?void 0:Me.combination_scores,total_score:lt},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Ut([...Nt?Sr:Qt])}},[ut.exerciseExportHeadData]);const en=()=>ke(void 0,null,function*(){var be;const Ue=yield(0,se.cV)({id:qe.id});Ue.status==0&&hr(Ue.data),yield Qn(),_t.get("exportPDF")&&((be=zt.paperData)!=null&&be.questionList)&&(Te.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,K.F)(ci.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),Qn=()=>ke(void 0,null,function*(){const be=yield(0,se.Dq)(qe.id);Ie(be||{});const{table:Ue}=be||{};let Me,lt;(Ue!=null&&Ue.total_singles_scores||Ue!=null&&Ue.total_doubles_scores||Ue!=null&&Ue.total_nulls_scores||Ue!=null&&Ue.total_judges_scores||Ue!=null&&Ue.total_pros_scores||Ue!=null&&Ue.total_shixuns_scores||Ue!=null&&Ue.total_mains_scores||Ue!=null&&Ue.total_combination_scores||Ue!=null&&Ue.total_bpros_scores)&&(Me=Number(Ue==null?void 0:Ue.total_singles_scores)+Number(Ue==null?void 0:Ue.total_doubles_scores)+Number(Ue==null?void 0:Ue.total_nulls_scores)+Number(Ue==null?void 0:Ue.total_judges_scores)+Number(Ue==null?void 0:Ue.total_pros_scores)+Number(Ue==null?void 0:Ue.total_shixuns_scores)+Number(Ue==null?void 0:Ue.total_mains_scores)+Number(Ue==null?void 0:Ue.total_combination_scores)+Number(Ue==null?void 0:Ue.total_bpros_scores)),(Ue!=null&&Ue.singles_scores||Ue!=null&&Ue.doubles_scores||Ue!=null&&Ue.nulls_scores||Ue!=null&&Ue.judges_scores||Ue!=null&&Ue.pros_scores||Ue!=null&&Ue.bpros_scores||Ue!=null&&Ue.shixuns_scores||Ue!=null&&Ue.mains_scores||Ue!=null&&Ue.combinations_score)&&(lt=Number(Ue==null?void 0:Ue.singles_scores)+Number(Ue==null?void 0:Ue.doubles_scores)+Number(Ue==null?void 0:Ue.nulls_scores)+Number(Ue==null?void 0:Ue.judges_scores)+Number(Ue==null?void 0:Ue.pros_scores)+Number(Ue==null?void 0:Ue.bpros_scores)+Number(Ue==null?void 0:Ue.shixuns_scores)+Number(Ue==null?void 0:Ue.mains_scores)+Number(Ue==null?void 0:Ue.combinations_score));const Zt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ue==null?void 0:Ue.total_singles_scores,doubles_score:Ue==null?void 0:Ue.total_doubles_scores,nulls_score:Ue==null?void 0:Ue.total_nulls_scores,judges_score:Ue==null?void 0:Ue.total_judges_scores,pros_score:Ue==null?void 0:Ue.total_pros_scores,bpros_score:Ue==null?void 0:Ue.total_bpros_scores,shixuns_score:Ue==null?void 0:Ue.total_shixuns_scores,combinations_score:Ue==null?void 0:Ue.total_combination_scores,mains_score:Ue==null?void 0:Ue.total_mains_scores,total_score:Me},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Ue==null?void 0:Ue.singles_scores,doubles_score:Ue==null?void 0:Ue.doubles_scores,nulls_score:Ue==null?void 0:Ue.nulls_scores,judges_score:Ue==null?void 0:Ue.judges_scores,pros_score:Ue==null?void 0:Ue.pros_scores,bpros_score:Ue==null?void 0:Ue.bpros_scores,shixuns_score:Ue==null?void 0:Ue.shixuns_scores,mains_score:Ue==null?void 0:Ue.mains_scores,combinations_score:Ue==null?void 0:Ue.combination_scores,total_score:lt},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Ut(Nt?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Zt),be}),li=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:be=>ce.createElement("a",null,be)},{width:"9%",title:((dr=Rt.find(be=>be.value==te.fw[0].nameType))==null?void 0:dr.name)||te.fw[0].name,align:"center",dataIndex:"singles_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:(($=Rt.find(be=>be.value==te.fw[1].nameType))==null?void 0:$.name)||te.fw[1].name,align:"center",dataIndex:"doubles_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((Xe=Rt.find(be=>be.value==te.fw[3].nameType))==null?void 0:Xe.name)||te.fw[3].name,align:"center",dataIndex:"nulls_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((L=Rt.find(be=>be.value==te.fw[2].nameType))==null?void 0:L.name)||te.fw[2].name,align:"center",dataIndex:"judges_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((p=Rt.find(be=>be.value==te.fw[6].nameType))==null?void 0:p.name)||te.fw[6].name,align:"center",dataIndex:"pros_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((u=Rt.find(be=>be.value==te.fw[5].nameType))==null?void 0:u.name)||te.fw[5].name,align:"center",dataIndex:"shixuns_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((w=Rt.find(be=>be.value==te.fw[4].nameType))==null?void 0:w.name)||te.fw[4].name,align:"center",dataIndex:"mains_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((ee=Rt.find(be=>be.value==te.fw[7].nameType))==null?void 0:ee.name)||te.fw[7].name,align:"center",dataIndex:"combinations_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"10%",title:((Be=Rt.find(be=>be.value==te.fw[8].nameType))==null?void 0:Be.name)||te.fw[8].name,align:"center",dataIndex:"bpros_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:be=>ce.createElement("a",null,be==="0.0"?0:be?parseFloat(be).toFixed(1):"")}],Pr=be=>{yr({type:"paperlibrary/getPaperData",payload:ve({id:At.current},be)})},ti=(be,Ue)=>ke(void 0,null,function*(){if(!be.destination||!be.source)return;const Me=Ue.questions[be.source.index].id,lt=be.destination.index+1;(yield yr({type:"paperlibrary/adjustPosition",payload:{id:At.current,itemId:Me,position:lt}})).status!==-1&&Pr()}),yi=()=>{yr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:At.current}}})},ci=(0,ge.useRef)(),[Ci,hi]=(0,ge.useState)(!0),Ri=()=>ke(void 0,null,function*(){hi(!1),Qr(""),Mr(!0)}),ba=()=>ke(void 0,null,function*(){hi(!0),Qr(""),Mr(!0)}),Xi=()=>ke(void 0,null,function*(){var be;Ar(!0);const Ue=yield(0,j.Mb)({categoryId:At.current});Ar(!1),Ue!=null&&Ue.exercise_id&&(0,W.xg)(`/classrooms/coursesId/exercise/${Ue.exercise_id}/${(be=Ht.userInfo)==null?void 0:be.login}/initate_answer`)}),_i=(be,Ue,Me)=>{var lt,Zt,Qt,Sr,fr,Tr,Wr,An,$r,Rr,qr,mn,sn,Sn,Hn,pi,In,an,jt,Wt,nr;return ce.createElement(ce.Fragment,null,!Me&&ce.createElement("div",{style:{display:"flex"},className:I.programTitle},ce.createElement("span",{style:{flexShrink:0},className:"font18"},Ue+1,"."),ce.createElement(le.Z,{style:{maxWidth:1100},value:be.name||(be==null?void 0:be.shixun_name)}),ce.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(be==null?void 0:be.question_type)===7?`\u5171${be==null?void 0:be.sub_count}\u5C0F\u9898`:""," ",be.score,"\u5206\uFF09")),(be==null?void 0:be.question_type)===8&&ce.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:he.Base64.decode(((lt=be==null?void 0:be.program_attr)==null?void 0:lt.code)||"")}),(be==null?void 0:be.question_type)===5&&ce.createElement("div",null,(Zt=be==null?void 0:be.examination_bank_shixun_challenges)==null?void 0:Zt.map((qt,Xt)=>ce.createElement("div",null,ce.createElement("div",{key:Xt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},ce.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Xt+1,"\u5173 ",ce.createElement("span",{className:"ml10"},qt.challenge_name))))),(be==null?void 0:be.question_type)===6&&ce.createElement("div",null,ce.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(Sr=(Qt=be==null?void 0:be.program_attr)==null?void 0:Qt.languages)==null?void 0:Sr.join("/")),((Tr=(fr=zt==null?void 0:zt.paperData)==null?void 0:fr.exam)==null?void 0:Tr.show_hack_sets)&&ce.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},ce.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},ce.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),ce.createElement(ne.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(qt,Xt,Nr)=>Nr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(qt,Xt,Nr)=>ce.createElement(G.Z,{title:ce.createElement("pre",null,qt)},ce.createElement("div",{className:I.divname},qt))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(qt,Xt,Nr)=>ce.createElement(G.Z,{title:ce.createElement("pre",null,qt)}," ",ce.createElement("div",{className:I.divname},qt))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Wr=be==null?void 0:be.program_attr)==null?void 0:Wr.hack_sets})),(($r=(An=zt==null?void 0:zt.paperData)==null?void 0:An.exam)==null?void 0:$r.show_hack_description)&&ce.createElement("div",null,ce.createElement(le.Z,{className:I.content,value:((Rr=be==null?void 0:be.program_attr)==null?void 0:Rr.description)||"- -"}))),be.question_type===Ne.c.Single&&ce.createElement(ce.Fragment,null,(qr=be.choices)==null?void 0:qr.map(function(qt,Xt){return ce.createElement(B.Z,{key:Xt},ce.createElement(f.Z,{flex:"1"},ce.createElement("div",{style:{display:"flex"}},ce.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},at[Xt]),ce.createElement(le.Z,{value:qt.choice_text||""}))))})),be.question_type===Ne.c.Multiple&&ce.createElement(ce.Fragment,null,(mn=be.choices)==null?void 0:mn.map(function(qt,Xt){return ce.createElement(B.Z,{key:Xt},ce.createElement(f.Z,{flex:"1"},ce.createElement("div",{style:{display:"flex"}},ce.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},at[Xt]),ce.createElement(le.Z,{value:qt.choice_text||""}))))})),be.question_type===Ne.c.Judge&&ce.createElement("div",{className:I.flexRow},(sn=be.choices)==null?void 0:sn.map(function(qt,Xt){return ce.createElement(B.Z,{key:Xt},ce.createElement(f.Z,{flex:"25px"},ce.createElement("div",{style:{width:25,overflow:"hidden"}},ce.createElement(E.ZP,{disabled:!0,style:{width:25,marginLeft:Xt===1&&10}}))),ce.createElement(f.Z,{flex:"1",style:{marginLeft:Xt===1&&10}},qt.choice_text))})),be.question_type===Ne.c.Combine&&ce.createElement(ce.Fragment,null,(Sn=be.sub_questions)==null?void 0:Sn.map(function(qt,Xt){return ce.createElement("div",{style:{marginLeft:10}},ce.createElement("div",{style:{display:"flex"},className:I.programTitle},ce.createElement("span",{style:{flexShrink:0},className:"font18"},Ue+1,".",Xt+1),ce.createElement(le.Z,{value:qt.name||(qt==null?void 0:qt.shixun_name)}),ce.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",qt.score,"\u5206\uFF09")),_i(qt,Xt,!0))})),Ci&&ce.createElement("div",{style:{marginTop:10}},(be==null?void 0:be.question_type)<3&&(be==null?void 0:be.standard_answer_show)&&ce.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",be==null?void 0:be.standard_answer_show),!!((Hn=be==null?void 0:be.standard_answer)!=null&&Hn.length)&&Ci&&(be==null?void 0:be.question_type)===3&&ce.createElement("div",null,(pi=be==null?void 0:be.standard_answer)==null?void 0:pi.map((qt,Xt)=>ce.createElement("div",null,ce.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Xt+1,"\uFF09:"),ce.createElement("div",null,qt.answer_text.map(function(Nr,Lr){return ce.createElement(f.Z,{span:24,key:Lr},(qt==null?void 0:qt.model)===1?ce.createElement(fe,{autoSize:!0,disabled:!0,value:Nr}):ce.createElement(Ce.Z,{value:Nr,disabled:!0}))}))))),!!((In=be==null?void 0:be.standard_answer)!=null&&In.length)&&Ci&&(be==null?void 0:be.question_type)===8&&ce.createElement("div",null,(an=be==null?void 0:be.standard_answer)==null?void 0:an.map((qt,Xt)=>ce.createElement("div",null,ce.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Xt+1,"\uFF09:"),ce.createElement("div",null,ce.createElement(fe,{autoSize:!0,disabled:!0,value:(qt==null?void 0:qt.answer_text)||""}))))),!!((jt=be==null?void 0:be.answer_texts)!=null&&jt.length)&&(be==null?void 0:be.question_type)===4&&ce.createElement("div",null,ce.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),ce.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ce.createElement(le.Z,{value:(Wt=be==null?void 0:be.answer_texts)==null?void 0:Wt[0]}))),(be==null?void 0:be.question_type)===6&&ce.createElement("div",null,ce.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(be!=null&&be.answer_text)&&"\u6682\u65E0"),(be==null?void 0:be.answer_text)&&ce.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ce.createElement(le.Z,{value:be==null?void 0:be.answer_text}))),(be==null?void 0:be.question_type)<=4&&((be==null?void 0:be.standard_answer_show)||((nr=be==null?void 0:be.standard_answer)==null?void 0:nr.length)>0)&&ce.createElement(B.Z,{style:{marginTop:14}},ce.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),ce.createElement(le.Z,{className:I.renderHtml,value:(be==null?void 0:be.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Me&&ce.createElement(h.Z,null))},oi=(0,ge.useCallback)(()=>{var be,Ue;return ce.createElement("div",null,ce.createElement("div",{className:I.titleForExport},(Ue=(be=zt.paperData)==null?void 0:be.exam)==null?void 0:Ue.name),ce.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Pe==null?void 0:Pe.large_counts,"\u5927\u9898\u3011\u3010",Pe==null?void 0:Pe.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Pe==null?void 0:Pe.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Pe==null?void 0:Pe.time)>-1?`${Pe==null?void 0:Pe.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Pe!=null&&Pe.exercise_description)&&ce.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},ce.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Pe==null?void 0:Pe.exercise_description),ce.createElement(ne.default,{style:{margin:"20px auto"},className:I.table,columns:li,dataSource:[...vt||[]],bordered:!0,pagination:!1}))},[zt.paperData]),Qi=()=>ke(void 0,null,function*(){const be=yield(0,q.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:qe==null?void 0:qe.id}});(be==null?void 0:be.status)===0&&ue.history.replace("/paperlibrary")});return ce.createElement("section",{className:I.bg},ce.createElement(Z.Z,{spinning:or["paperlibrary/getPaperData"]},ce.createElement(B.Z,{className:"pt20",justify:"space-between"},ce.createElement(S.Z,{separator:">"},ce.createElement(S.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),ce.createElement(S.Z.Item,{href:`/paperlibrary?defaultActiveKey=${pe}`},pe==="1"?"\u516C\u5F00":pe==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),ce.createElement(S.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),ce.createElement("div",{className:I.btnWrapper},!Tn&&ce.createElement(_.ZP,{onClick:yi,className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),ce.createElement(_.ZP,{onClick:()=>ue.history.push(`/paperlibrary/add/${At.current}?type=2${Tn?"&isIntelligentAssistant=true":""}`),className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),ce.createElement(_.ZP,{loading:rr,onClick:Xi,className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!Tn&&ce.createElement(N.Z,{menu:{items:[{key:"1",label:ce.createElement("div",{onClick:ba},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:ce.createElement("div",{onClick:Ri},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},ce.createElement(_.ZP,{type:"primary",icon:ce.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),Tn&&ce.createElement(je.Z,{onClick:Qi,type:"primary",icon:ce.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),ce.createElement("div",{className:`${I.wrap} pt20 pb20`,ref:ci,id:"paperDomRef"},!((ae=(T=zt.paperData)==null?void 0:T.questionList)!=null&&ae.length)&&oi(),(Ee=(Ge=zt.paperData)==null?void 0:Ge.questionList)==null?void 0:Ee.map((be,Ue)=>{var Me;return ce.createElement(ce.Fragment,null,(Me=be.questions)==null?void 0:Me.map((lt,Zt)=>{const Qt=Math.floor(Zt/10);return Zt%10===0?ce.createElement("div",{className:"abc",key:`group-${Qt}`},Ue===0&&Zt===0&&oi(),Zt===0&&ce.createElement("div",null,ce.createElement("span",{className:"font16 c-light-primary"},be.number,"\u3001",be.name),ce.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",be.questions_count,"\u9898\uFF0C",(be==null?void 0:be.question_type)===7?`\u5305\u542B${be==null?void 0:be.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",be.questions_score,"\u5206\uFF09")),be.questions.slice(Zt,Zt+10).map((Sr,fr)=>ce.createElement("div",{key:Sr.id},_i(Sr,Zt+fr)))):null}))}))),ce.createElement(Y.Z,null),ce.createElement(R.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:br,onCancel:()=>{if(jr){Te.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}Mr(!1)},okButtonProps:{loading:jr},onOk:()=>ke(void 0,null,function*(){var be,Ue;if(cn(!0),Ur==""){cn(!1),Te.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Ur=="pdf"?yield(0,K.F)(ci.current.children,(Ue=(be=zt.paperData)==null?void 0:be.exam)==null?void 0:Ue.name):Ur=="word"&&(0,X.ON)({id:At.current,middle_export:1,export_type:Ci?1:0});cn(!1),Mr(!1)})},ce.createElement("div",{className:I.export_type_modal},ce.createElement("div",{className:I.export_type_modal_con},ce.createElement("div",{className:I.type_item},ce.createElement("div",{className:`${I.img_warp} ${Ur=="pdf"?I.img_warp_active:""}`,onClick:()=>Qr("pdf")},ce.createElement("img",{src:x(45614),width:70,height:70})),"pdf\u683C\u5F0F"),ce.createElement("div",{className:I.type_item},ce.createElement("div",{className:`${I.img_warp} ${Ur=="word"?I.img_warp_active:""}`,onClick:()=>Qr("word")},ce.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var nt=(0,ue.connect)(({paperlibrary:ut,user:Nt,loading:zt,globalSetting:Ht,newExercisePaper:cr})=>({paperlibrary:ut,user:Nt,globalSetting:Ht,loading:zt.effects,newExercisePaper:cr}))(rt)},90052:function(xn,er,x){"use strict";x.d(er,{Z:function(){return fe}});var ge=x(59301),ue=x(24459),Q=x(92832),Te=x(8591),ne=x(43418),G=x(5871),B=x(61621),f=x(1710),E=x(3113),h=x(64686),Z=Object.defineProperty,S=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,R=(ye,at,rt)=>at in ye?Z(ye,at,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ye[at]=rt,I=(ye,at)=>{for(var rt in at||(at={}))_.call(at,rt)&&R(ye,rt,at[rt]);if(S)for(var rt of S(at))N.call(at,rt)&&R(ye,rt,at[rt]);return ye};const Y=ye=>React.createElement("svg",I({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ye),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var K="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",se={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},te=x(88230),X={sendToClass:"sendToClass___le_BX"},W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8OZ4+ozEtk4fSY15kA88K4Q4MNlXOnWJVi5bJE5M9vq5cl0V9HNkpIhoSwa41gf0mEkAPf1AZwPgh6AHBTiZTIqHy30lVpmePY01K1qxYVGD+Ga518+186ugnwMjRkRLJXADgAb7uKf6w0/Lms0MABAEOJdKiQfKeSUi4hZ2Hrggu9c0QzbW+I8IIV4tp425dm4V9LN8xIiIgX6TBLrcRz0zFP7VnRr7lgjnksnSQU9ErWwUBxKdvaNStKd8qvHxvBDimVneLVN6vCrop9R903sxEfH4XCuBzTBqjVZtpMTFIaAtFenzkJAg4FKt7z8khBiZ6MkM4K8XwOIz/RBZKbGy2Yfy8VIS2CeEoInamKu/V0E/zsgRUR2ADgDJ+GlPngPWN48EfefqetasEaPTAQAiWiaBm+P3H8pIHL4IXNPpa92eNXx2zpOUwyqbfaSxsfHseM9DRE0S2AOgTQKCJxC31N7gs7+/B8ATQojL0/FOs6HNKugLjAIRtbG6HARoFQLdAGrtaRZkPzsDbGhHti5JJ4loWKWTp5qacB6ojIQ03prbjFozNk4SGJIS/aNsxLIFGwKe0U9AOq38J9rqxPFi4CKiRBbY4QEbePWQEjjbL7Gk2bcG8agPPCaEODkbADodz1AFvdOr995L/jvfiV0AVkipgR71Twj2Mal65DKwvAlgFzn/lpR+OvAxBB/P1EOTv8YumcTIEdFGCeyEDrZGt9YfnusBruoEPCPnlQyfgYCsHAn2tbamXil0S6MubZbAdttuVgIvXZTY2hndhl2fjwohjkzisefEJVXQm2EiopYjfdhVI7Cku6EQ2I04BTAwGoKsmY1IAzhntCnh+T2DWbzQXoczk4mQElEyAF4noFcZO9fMlAP2nZLYsSz33lIBkiB9z9/XkhKHioB+tQRe607mi6Oh7qbfxbyi7+NxIQq3MSdQPcFDVkHPEpJYuOE2KdH10kVgbStswCfSmd1+PGq03VVNIfjdw/7tSYxmoE6219c8Vi5QiKhdAm/S4HRuwB+HshJDGaAjFd5b/zNsGymhMsp/almzeCl+T55IGeCtPsC8neh45KTEDd1al48O38fzAJ6Zr8ZsFfTav01vBrCIQcagOtELrG/34fn5GkoWQL82/ELpaM/IOZOlbggh6h+k04eODzx9x65FfaWCf5TobQmJlrHz2TcTHi9fBLoboOkH+jvFOk2I/gygSOSDnid1ALCnZm2uFwh4sUdiU6cFfXgfj/yTiQR+NJlVqtR3nMnzFjzoiahbSu3JYKquPs4MSbCe3NnMevPYwd9lFHC4F7iqPSbhrbTlr6XGoj56R3XQqK+52X9mWf3EQR8t5SXuAJAImwrhbo1VtiW6GsKViH+x+jwbpAEgs5ngqXWLUy+7T0dE6zPATj/mheL3bGbujp/rBRLw+2t9fFsIEcwkOKfr3gsa9MZDch2Aq6W04f0Q8KzmrG8PwWUBx4PAoD/RD6xpdeSwC3gDRIN9rYpwA6laDI8m/KfWjuNZ0e1naLfngY1YYdcLe/+hLHR7TTXhM+npwBNRArwCKYlglPx9WzvFYft0RJSS0JPIWTnC6168yL55XjVCL5CeXOHkCRprfCavcbMFj48QebcC3mLAaxnC1ZSVa+D5dTLIEOD1JShxYHk7zn35y6C77pqaUV9p8C900LdJib0A6q0r0nYwqwxHLwJr2g23xRisL/QA6zsA3y4BDuDdyaE1Dgn0Z4EaD0jV+JQNZCbh+c8ua8LLKBD8YUpAEOA1QsjFWoqbh+F2+O+Tl0NwL28wurwBu8xq1QbZLDIqnX3ymtV1UTJJmmizD+yIgGP0JG7z8qgMDVir0I8Z5bKhxr+vEOiP9lJr0kdnguQOBXGDBJJE8EiBifwCnkdKKShF/PgKwj+qCN9OeDizbpEoWcWrNNDd9hY06I+co65USt7BQZm4Scojdob5LQroNgYrG4z7e4AdS8b0aatrs4S00t1+0EAdArqMZ4SvJ4ERqvF/vL5JcBAo5yCi1VIyk1L6dgJZY5Wfo2ckXGk6jD7PwB1VRtLzBJAY8cl/dMdKcZobZuMVwJ3ScnYcw4O9Nv2ZUNJHKpLVowiyuS4X9ERU3zOE10qpNsHzNktSgp9J8b/QXRquFOaDAkHDXv8mZEDyBUh6cMuSmhdn2kBe0KDvG6UNFwflDRdGgKs6QonsWXWGVY0scLIfaGuA1n17hkJ1p9lo/wUB74B/VALHL4feIE1yD9FBWemfOzaAJ97yHaQRhGbD0n6Ib/0GNrYnJdMOclyhWpVRwPkhoCnFz+iTLyXVJqH4HnolkMCwQl+y0f/hje1C09GIaJOhMVilPZqYzMXvzQJr7YQ2oM1mtR0j2xpC0PPEOd6X3Vbr+XeAsFIKJBjMDPbolRjojCQKX9ECXp8yZtTzA10KAvnT3mW19++dQXthwYKeAzUDAW5MCrmOAcNuSNaX17cBDYZ0ELoIgQujYSCK1Z3u5jF3ph7TAhLeZnGMZoHDF8IJZdUdI7npiy9AfuaAv0UQOPprD+F7ObZzfDHQf3sCtKoZfXfvlkfWt2BEe28ApLPU87o1iQdYkrJkBrBbAity3Z5hBJcN7GZe4HjK8WrhGMUEyK4G/77zQC0Nql9RCtslIcHnWukdSXgKbZzuRkDw70bc299DST82ISQpKch7IDjtf3PXruI2Q8EXr9CXCxr0owFu84TUASAGKKsPLMQZEG0poLUu1N2Z58KenKFRoN3owMXUGVf6sypyshdY3jYGegbcwYtIfewxcZXw0Lyug8YiYYwNoy5I0l4fZBmB7JZh9UUBAUt1BqkStKoFPX94PR3yAQpBS+duXZvU1GIiWiGBGxFGlo2ED5+OJ8kLF4HN7Y6f33icuB2SkDUZ/4eZRPZNwvO3KwHmIEWADyK1BQgION4LrNJTN1RpigHeqkGkqEd56t5dS2onnfAyFfwvZNB7aYm3CEjth4l0aAWwyjAigRMchPKA7jpg/zlgZRuwpi2U7qNZ9unDi4xNxyrQE8IYsYmkr9qTkjQjzcyI+4+LtodPe1tuWCFFqsZxi7J6wH5343tPs4EqWYJrI1VPzHQApNljo38T6jevpyfb6pBhICuis2/6fOLh5S1I/ug92NaYAqs3jqCXYSCLQMf7obYylc5MAmssawM6QF0yKdZ6QFtgyERanXFVGqO/H+sDljQQksawdyfEmLoT3seuEvqzoN4aP/HxrZ1iXHLcVMBd7NpZDXrjUuSgEbvbvHQaorZWd3362DGcnwq7kdtOS7yVIFssKhw7L5SMRh8dzYS6PfNsmuvgfWq/33VmALUjAWoX1au8PrQTgcG5vhl9b9tAZyK6ggTuPyG6LijauKQpNixlgJ5Bng3YXpBn3rHFP5yWoKzyj9/9HXhtKWy+tlstTQpPT0r7PFbHTnpKrWzC0M5u9N+0nHSBqAxHtljdUaIt6WONMsavBWohMA9ngd4RoLM+tF7tfcKVRrs+9XFhOFw5jSYVnUhER+El/nnXsiubojjrQG+Bns1ivRDwhdCAZ3hYJyFdHJHZ+gRdTCWQzhCl65PJ51hgleMVYD/zfwjwBlJSy7s8wJtRdNWV/WeR+Nuf+atf6cOSq5dI0VoPtOTQ0vJB3JIU5966nHSwyErTE8Oi9eUR2mpT/6KrJgH6pmQw+IFrEz8LCOroqP/If/8hbl69SO5ptaE2Vo8cD4tWPUiDkhbX0dCmxRh4/3ZxXAhk4aE2JcQWCDToBcHMGAteVze33i3PI3TUhyuU68Gx158ZDB0EWi30cg1gPTc8/GR3t//FKxkImz2gJxKXgOZmqQlRnMLGcsdhOY7Bkmu9sK+cDU7ua80uzNJ5yo48+1RTU18pngE2ZEdHcTM8ucoFfPTZ9b+zOiMh/vgHYs2+897Sd10nBdMAvAl6j5uohzh3Sye9bAHPAL+URd3BAXFVmihX1k8C9Gvb5Mk3r/GPZgjy7570v/ZSH96xcbHcw9wcK3EZkFptMYC3XJ0QqIJ2d6n0u7fh5OJ6b6kSYANY2xH2iFySkfQOdff+NFCbMP0QuSqNk0oBDHjuok5uMRLzuSsCgz2g9EdvXF5/xajMswL0nJjc34+VZwO5c12Ln5OwEQ8a8UAcvhzyT+qM7HdAS8qj434i8Yqh97orbp6KN5CmLQKSI7LRYVWaaLk2jT98UjT+0YPe1jdulMnVRhcupjO6YElBnHtteyjpI/1fAafTqu3EiFgfkBhL+CsD9IECNdeIy2/bSC8IggoUgr/7gf+vxwTesbFT3lwq6Nlg5m785S0Cb1jnAN1dHRxAh+oOgVWbVweAda2h1HHVKD7n1CC0ns+Adw1bewc3LUsIcXj3Mv+vJurPSv0+W0C/UUpcc6Iftc11QKvjMgxfdAzW7EFhQ5MjifkhpfBMj13W0j/dXIcnx+O1XximZSlf7i0m3d07f+eIaPnzR7D9XTsIjRFLZ/xhYCDUKtGzu51eTnrh6m8nFd+zLy0ahoBUQikOETUqeIP1KW9IR1jZmDX/97NLxXhXWI8PsgrC87KLG2mo3tOnioRHJzZ1Jxr/7EG1ZzigtkUlSnoGPR/bOoC7dwP1voh08bg6QybyxCAeJWjgt3BfOPo7A/7MAFCTDFUa159fCPB8rVRIJ8n/6K7V4kylgD1eOzMOeiJaLCVuZ4KVTmi4LLGm2dcswnxNO/Sn83ku98W+oAavw3AcDvzTL2bx9B1Fwt8DA9SpauTreZ7YJd8li0WTQQLfOCJa/n4/tt+5hVCXlzxYvIsvDNDIsqT38u5l1B9RgI1+z1cxrSApVHutl2wdzarhzgbqCUinwWrpOaKAIXalGoKZDkaZwBn3Q0eTaFzVjMUrmtD16EnP/+C34G3ukmgJVb9QCo+j3ljQ+wL4y9uBRakQElZ6R6PAgGeXqXnVVy4Bq02EwervfJ+e4fCEzsYxwLu9E0l4szqEN2MPq3zwNatq7533oHd57PZlOTzOQaLuBqmjo/awLsULTOtlL4pTBcCC3Z0m7DZkj8ugxKWr2/39HfXiVLxDLxG1iLS8xSM0a523QKDJeB9x/xHR8qkD2P62TYTaMkDP+acnLoiLH9hCBxNJKOvFsaF/fqakJ9oF0JYFVEsSPb6gQQYQC3j2jnDSSquhMTPQ2V0pPJVY1+53rG/DqoSHGnZr/sFDwJNs77QTakV5oOf+/R+3Ae31womshj3GEj7H904hHWNbp0NBiOvwcW9ODPk5HqXwtyfSh/3P7d07/czOGZX0o0QbEkyGkmOJ1yz5OH1tjWb/hb1hAc/r+Eu9Y0GVHBBbCe/Qeo/0h6vC+lZ/hCR+1tWCo66Hhz1F/cPYKT15lQV8NHGMRLXS/tuHRcunny8f9CwgT18W9NSravB9W+iljnovA1Z1nPZrINoHA7Q2snEML12flKcDQLGPntW5y5kwUMZSnp+zpsav2dOtNtXVgJ2FHq9+f/kocPASsGERobFW+9rLkvTcx391G7CoLoSEy50pxK852QcsbTHBNBVGrT2PV4p8CZ9TVsFRhdzxU6QOEiU/u2eV6J1uaT9joNcJylns9DxsyHUXhtTeAyZi6BAAdXDm3CgQZSzFPCyupOfPXBuG/c9MHRCEtJT+CysX4QUX+JfStBUK27NSRtR5SxmIAlYAHjg6OdDbAeRE7seO67oy2ZSvonqTDAhfIBEE8Nnw478DBebnhh5DY1DadvjL1lqvzveUz79dGg394NxPazsosnMmA/q/3AssqhcmiBST7kb48CTOmAAZT1I+BrPAYBporwOEgygX7JaIZoUYvwfHMZJ6orOfTpwPyPvcLSumP01xxkD/s15qXeHjlqZ67YPP0981C9AFuPHaMCtQ03odwOuOLKCasPTh05gsxkdAGCH4T6xvH0vmuHSJWiiF1wdK1rnS17ZpDU8G/WdeLF/S50ozo19bIBtkW3Bbw5EDQZaOwGDRfna7kpm/dbDI8cFzl+jz+Lswqlq2pP/oXjY+Q+ZYIeluVZK+ESDhAfVsNyjg2ACwpD60O6LJ6b54zLvDz8nGLgestOtX2xBqSPn02detqH12Pkv6zpd6OblBCnY/shPA6vDcuTxwzFBkwGr93WQsMSHMHm7gKK6W2LQ+DvPzJLFGZCAxnB0dfGj7qtZoGT3ZT3cSydbIG2RUJNfT8v2jouVzUwS9i4hIpw1C6a6BbydBmOQdfsefHf96ZJSac/UEscZqRUCfO8GsZLbPy5Oxl/3zXgjyE30h2cwUkdWvmKfOmHfg8bo4HPKJeJK41yiiASXV525ZN/18nBmT9FyfMSPlbaxzM7itR0QXJDWgZ3WGjVHmvDCtl/3yTZr6FB5x6a4ngdGVuV1Wb5g3Y9UVLQH1lf45RXjkmiVCF8f7+mFasbZR7lEKHrMqUzrpw3hMTHvfPyFa/mmeg/4vbgkNZg1cRzqHzMmxfufEGJbOPD58cFSa1Zo42Jkn1JcJg1eaNsFFfJpC3V9z8e046uwTOksi8dlbVk//biozCfp1GSlfY8HLHclemxEmVrFLsi0EP4N9SIaf2X/fUDcG9rh0t6DnzrS5rNyOPs9Kb809l1Ced3TX0gTXd1H79lGyYz1+bmBY1vFz2Kwo1lUHRsIV6JnzouWbR6em3sx2Sf9f97D3xuXFmwkQC/ExIY5dk+wxWsJSnukF5uX4t0vDoQ+fjVqeF9yf2kgvEJW1fnwBdVB489yQTafTm+D7O6P+tP5n88XlEYCToNkIHR0JO29jRz7gGcwW/JHhabKJOGuJVSetLjnWMntFNA1E+fuvX4UX2Mw93U9XjwRyp1LQCZ2ayhtWGNBLxcOvipYvH14AoGeh4gj2iD/vSHtWvZ5ml2VHKKTYdhoNOMrGjMsxm4tBzhx7vXKY6935YwGvTxB4/NwT/ueuRD7tjEn6NNEmJeXOogxH00kMQJb2/I8DUpGxZEBs3SCR39sYfDaKWVMzRvSKmI5WhwaGvKz/yI1rxbmT/dQ+NCpvIMIiblqv3DZn1ID+i/Mc9PfsYZflGHdmTKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALeD163Stzn3nO6Ps8Y6EeJ1lNG3hipKHH/jeuO5CDNUKj2cGjb6vyuIauls71GAof7wwRqe7B0t4c1lFmkCc9/Nb0cP70VkC/1YpvMyK1ZEVXM03x2PhaCpP/IHqCNbaaYOuO6TQcyoerCzMqIcFfE9z4R4O0KQAIZTwafuGVdqmBltkqDf8ZAPzw8vEz5NVyJIDrikdV4wIiN2pQfurpyIqhGulsmI4/ZEc5YMhsWRJPDQb1dISSHwFWw77a1tS/v2/dUQnRvfRNEQnPsxwxf4EeTVG86kgFaE5SXA6hxZfQI672xEjNyVzqZVK57UnsrjcuSaQE5nHfjxjwxKHBqOFEyDYGb+083Gwqw6ad4jIDVmnODobHLjodC0j1e3zvi3sQmUkRD1qoNnbttdfI/VxrcxdqbMdAPDg52IZnieiz6sIB3A1V53hlDLWBpxBxtlxHpAn4kE1YJaOBz7ADa+ziJyvYa4SO9/5T/zd+7SYw81TO6HunEje51/PnHr4qWr5Sp3nTXBtjbMoqOZG74bTKDG8PMuE0w0F4Z8PGVY7V4/nKyJO6NC3o7IeP3vMyFq2AmRsz3bh9oIumeE7Cyol7R529bn/zpZPplMtfMGOgHiBaLjHy9ccwUDDZFUHFC9hy04kwmdm26BC6bHM3XHO0F2OneYNxvUcUiuyLYCWDC+uwqP3DJf+mPrsdTzwPJwdPBrZ4Sne51D58QLV8v03vza9396ErGZd9khmly13zxaA2+erQuEg6F+PSWcGZBz6uomxYYCSUCDl4Arl485t2JP5WbDlhMf3evCTls1EeU+PM71l25mjgzBnreAHgoHbxWktCFjSLNIx5ZdTKOrLF6kqmrHsDZQVYFiXz07J83mf5sbOlVxJXuMYajVmOkVoeG13f4T7xlgzj5kxO01IO8ngiN2lYA8MgkQP/r3f1YNIOg//qJGnzxlTrthdL9VCCJxAX9n9005qd3JTeDk9UadkEmdbHBXLU/mtYx37sL8DglIZwUahQQ971+bfLHk5vWk7tqJkHv9WVxnZByU45+HokWE1RyCGcWwKyPc5WBDrOzXpSVxAQt9vdLoE2HeHP564UYjvZaLuy0uJmOPnsm8fh/uRXy8ZPYFsgxo/Ynp0TLN8qU9FfXpfHmjlHm1lzx4+SQwKcP1eH5S6WrNy7oXZCy4do3Cixm49XxybtgtxMhslXMGxdSZ8bUJjUqyHvG8/x/2TtNu7kU6vgZGI6xx7iYTm8R8K9RnJ1pVQ5HEo/nneFAFhu2bKwy1dh6WVjv5N+4ZIfDrY8KIkWeG+uLN/9zdLGuFqq3d+j+D97UcumhhyhB6+RbVYAmXmEePS1avnm8fD99ylM6ZD+2lOV+1Cl7lltuy3+YF48oB9agNUaq5bUTq2dKs5VDmzjcjURL9N6Mh9HAC+kMJfDp+fo/vSmU5ny4hibTuTlxpsZIeXcViKtC1nDNM2hNo3nuTIISRJeGgssf+/mrF+sk9ek+ZhT0fX20KCPkzcrTObHRYQEc9727xip/5gpdWabdmoHiDue8TE5g4MMGliIVyKpOzkYKmnc/BHQauoJSdOZXr0n+gK+/9xAtzozKmxs8NDx1QbR8dxKgLziATgIFE8NmC/eGQa91enOwWmMrHnCQMAfs9hyDYjfQlAd4N2Ekzs0xE11BHPbgfe6N6/PLHVZ6Eswo6PllLozQ7VLK7oIMx5jvPQ5enhynDGA51M3JFVywiUEf6fhGArp2A18XSXxTodjWs1Ee0qj3f/ie9aLnnfeS/4tXYVNtjdz20HGx6NGe8iX9XAL9n9zkuCwNUI/2hdXdLDVjIu9MfJWwtW/cfohctHbCaK8lm170pbdsSP6w0iCPtzfjoO8ZpQ0DA3J3woenWZYOILUBGvOX61XAMXZZwnBiCZPSWC9n2gEfOS5HY6za7y0tgdtnI4+jt8zp4YvI80llsocbdyb33cX7RhGJb7yc3fX4GX/3907gmnIzp+Ya6NuiemjApZGQV1PvfKffx0rn8XzvBv32lBzpb6jSnGfL9k5EFRc0eDaR+I/vn2b9fsZBz2Qv6pbvqE/At+5IphJzppAbIIo4Nq5qYhDF/A9mVOr6KlZNcc7T88RmVFn3p9FzOZ1P1640XHC9CpA/SCk8dvfWsPrWRz5C3qs34I0HLqi3z2fQv3cbsJn5TUzDCMIEFVZ3tMfGkcoa9w7gxzdWw0Gy0n04HZZNZBuB1Sfm5CccFA7W+b9z14qJ98Gdymow46Dn+jMnh7BNZeR2ZjWyjs0Sn1PkuGDqIKfHcaIxVw7m2pIxukL/SFhAlBOo1zcBDWbDAivVNXHM9lAM8DxunIPKUV5uWE8sPsf3iSSe+c3rBe+9pI+lH6erli1SvzefQf9bO0KKMOvvA2mu1gAsMw4BI+BDQV8E8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgwvBNBzRx3ppVVCyRsDQtLlw7PU5cgqqx/skWG6sBbIhqJqA1JcvpqJaL28AZnx3WvQu6qRLXxqQMwTgVMJmc+jQW9rOho7goTfe3kY373HJCov+9+0cWmz+v35DPrf3x32Ma+yA1mgLRmm802kzrhgZy8YMy45UaTeD1MCua2mZCjV2dNmVaS8FULQqeF04mN3bRVROuVUJHqxa2dc0vODnSVqGLiAXVJI3r81AqALXFfS5JTSMCKdL7tsuPc6WusAXn820sllTzJdYcjQFazw4kHntkhABr7/7T/ZFUYKFwLo//jGUJXpGQz1bC7UxGoOAzgqKuukMkZiWoSAZmCzIBo2FZaba8cESrQ4mA95gA8Lgdx351WJH1RqA+pZDXp+uINnaU0AeUMgkIgM1Zj+HufnRLq6Y9hyXi13vKYgOPQFnXJnzjO1k/QkcWvRW8NZ+7w9rsVCR//kpuQjCwn0LXXAsV5gGdebN9lQVmWxRDgXTNxX/D1LT86btRGXeJBqPP89nyuEOE0I7vu5DTU6v2E6JLxtc1ZIevswB85l75BSdLl1HyMJ7/BmctyRjhrDIGfAs6Gkc2NNw1HWlLEH+G+O2nIFMQa9ngTWUDMbl4VLtn8pUPjRPXvF4EKQ9H/Ikt4LM6JaHH+9HZ+4dHZZlnxOzu9uFYfi0j1iapprsz7oS3deNb20hFkF+ud6BpdkgxTnzeoYpl0S42xKq/YUiq7yb0xFYAOVPTnWPWm0oChfVnttDLnK+v/5Rz0BzApB5GezKrP/o3trD04W9FzfiYGU19Gmyq9+Rycia5PAGQQ66dvEGXTk1vJn+BlNpJWU0hsjsLS1NGP+uy/tQaryIrK/f0PYDqs2vIOhe0zkoYn73l1hlTchTMPupInaJxqWQfqzv7C1cf90SftZBXr25Dx1GtcpJTfrTnOIYhH/3TAj+Xf7nd08OPrObKyg/e/O/lDWO8OGlZ5V8biAVU4H024AAB1FSURBVIecWIGAfyxxHk98ugeryzVkV9ZmcWfHcLjsl3jEXN/hVQW/HGuw0M+nhwU+f6gOL5ZBLf7t3eGK16XrFscSvc3teELFD5eyECV8O6W73fOjYsjmopxrdUK6IAHVo1Twj7+4ue54id1W1mmzCvT85I+82rfIFw2vCXgvJlelccBuA08RXcFKZ2eS2KAT4zppUgbt5sfs5qzjyWBAbyW72x5/1iqPQIZG/Qe/eByLygX9B7v70TqDLMuvHK/Bl4+UzrL84LUAB6dYyheS7PH5Fwf7RNLdrmoWoXnqUq4r9KmLQ/5n/t007Es160DPHfLYq7QhyMjdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ//NUjqC8b9Mv60epPq002roT7MoP+ldL59D+/Htipd+DKB30x/d0arDmrTUzKa8eA02ghMlpOknhIwpNeyv8/v7Be8IYbFT1mJej5DR88nr1dSaGHwC12OpHvPfLYOK5PZgna0iGs6zczN8foRpbVYFUk/bfDdgzLj/jD3z2KFxa3qN8tx0/P6s3r20bQ6FNUFaCio1fAQLTS9sywwFeO1eHx86VTi397pykBYh7SBaoFdR6dwNW+Ys9jr7ETpiDY3eUjtpsJCTokKPGJSvvtZy3ov7ufGgZ9eXt97RgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1e0f9Z7ua1W+XA3q+N+fIdiXl2A7jZpBzVAM3iunuzscGqmO82s+6CacamgWndemmFfD8ZR89I+XlyP7O7jGWpRtZjUt+ff+Yd6YQoO1zFlo5bBuREHABbycd0SAR/cu7t9Xsq6SwmLWg55e8d//oVUMycV3fCBIccOJk5MhXbxJErApiJbY1Vvl7u2Exf8d1dPgcdmXaw1WDtAcnlmBuy2InPNDxQR/9Ur2uXNAXHKxZSi22oC8G+Dzfe2wCx4R2jo4UN1gjv72ZPIVSDvTEBr717q2JbywY0POLfvOF9NZA+NuDAB7v7K0TvjmcbXzuHPaOpLajCvF32k9vWJQs4a2k5w52I7P6s2nHTh5WqXhbTes5OTXiN/cHal6zLBn0TTFGZVHf+3iAj3lm3MlgvTt8ClMU9HahKsbjNwjn5BrPE68MjQ5/5td3NJ2vFPBntaTXyyKR+OrL2V0UeFdZfz1LHKYQaEls6MG2Q2yU1k4EK9j5bzZ+2V3JtSotuHkQGPRuQEx7eYzPnieOLmM3JFr61fzm07PLUu+WaEFnP0SJHlbvCP/P877EvizmneG+5UKuvHIzAJnC4G5aZyS8lTiZNKmPv29b6pUFA3p+0W8fotrBEezIQK6BMh4do7646owGtolY2cBVVOTJeGdYenMklivmWrCbBUELdcvX1+2Ybud2ewZEyxDmN+h/a6ehdMfSBV3fe96E4CBa7MtCYGcBxd9zZltDLfT2QGFd+jEo5xq8So+HEOy6T/71r2yuXN36WS/pbZd8/rtnGxJdXddlSK5SwtSb5A1/LbXA5oEaBI/ne9crBFOWObfWCi/Hfam3nNeVR8dWgPPDomVkAYCeuTeROuJMfKvmlSrd+VLmzjNdnIu3Mk2ZJbrdyCEeUOO/WZ2x+qT7exCov37vtSm9Q2MljjkDen7Zz/yMWqGCG7OeaOdCq9aVGXczWsBHjM2Y753bYvWIO5a5+7odW6zVqEuR+mOuvTAiWtLe/Jf0DPo833sB12iO792hVLC3i/eXZTHO1GIWLmyDJZ1S3i6g49J9DPZm8inFDoaFC3ruhk88Rs11SWzOKKzJkvR11NRJFLHqibVBNXjZWDIiwtX5uWiUPdyJY1Uil6h2aUS0BPMc9HfvdHR6xyUZl+7M+7GUY7Z52EXKSSesrvCkYYBrgVLAJRMBPpZswlfkSf+QvZlNiOT/etc2sbB0+viS9olvH6oN2pduI6q9OqILu+mBdhIYQ9e6NbmdOF+HM67skeP+dOvZc4ZVRrSoBQD6yHvj+M1DAluYeM9esPpEmCiSJqCWK8nZ2vNOVpWjqYypS1aV5P9NDMIlFkXBrJyVRZwSmcw//NquhortMTun1BsX/FyXZl8dNpOSW7IBfCvBIx3fqeoV9+ho/7wNaFnvj5su6BiwVlXqHxEtKjk59Savkx2XnvZX2wiwkX6at2624OF3DoKx7Xg0m9KplcPb2esmuCaOsSh10sck9pz68LUhpZjLfpwdCiPTnBTOu4/rJHoK7U4GuivFC4I1Jrajc3LcmeG3OeqOC3h+T0EPHLn0yNfv2bs3spenqtfPWdCHL07iv/0UK4VMb83IBO/DOrb9jlFrzFe5O5EY41efbyKwLtksohhbyaSAvhHRImrLA32Np7CtPotmn3f4jg1VXE+ObzVvni0Ci4MOHZmNuLxO5QdtDYYAPTLo4cAlH+dHEyUXe3rHxnCbzJziVHxfVlfG8b3n8WZciR777BqrLuBzkkysAS0wrFTw5V+/rl4n8lTqmOOgD7vhL56mxYOD2C4zUnN1LHdGMyVtpzvJIVpqme/1OeYkd5Xgn9k/r9vjiG7Gb0nWqrI2T97bNoydTVFaeqXGrKR2OGj3mVdSePB0bcmg//c7YhstTEQUK7Ddp324HOmt5ZP1608g3Z3JroiOjST7Pnn31s7Bkl66xJPmBej5Xd95L9Ws7MA2mZVrAgWd92ON2ci4ddyaGufORIhWiQLn8LkM+lSZoP+3y/rRMoMsy++cTOILh+p15NPSLOwWnRpbjgrFUPzwDqDFRPMm8r3b6w2ec3SU8bwzhYzVeBv6HAEpZPCF9+6of7RELJd82rwBvX3jD9xPi1ICO1UgF2cJXuS+tIMcSxSxkjyiMjgMy9Btycq+juS2pOrKk/S3tQ1jxwxJevawfO5QCt85WbqkZ9Azl16DroA6Y4RwTgkQPjnOq7Hn6WaK+N5tJli0MsRmgwAOHHn55U/dc9fWildGmHeg50780APUkkhjaRq4JitlwiaFx33vOd4aM1JjdoGfQ00YzKKlvkzQs06/oymNZbUxlqWrA8R1+7hhFweg1XdNGxFWnHbYUH/iQhIHen2cHipdp/+QAX0hwMeNVX378QDvqDMlS3fzTgTqlZI+/cGdqcMli+8yTpyXoLfv/56vUrsS2KY8uSRQSLjlRax6kxPYMiqPlu6QJlElTC9n0DeWCXr7HFGtHhfsDj04qivjUImtXZKzY7hTgVhfY4xWm1drpSd7d1in13ZtGVWLP8jqjanp78w1i+9Iwkd++9gEtJPF2NN6VsQBb7PhokadSc7nevCyStBX37898ZAQ01MVYV6D3mLsXV+j1UGAdYpkV+CoPBrj1hizSeHacA2B7kNqgzcjfeb0TBr0eUJollKLOV2Qa9XE5mbp6kypxmqR1YonE5H6xgevS32rDMFd9qkLAvTcK++8l+rSEm0K8iYF1LC+HyWeaz2fIT7m8rSeHC65ls34GFRoaWksT6cvOhpzAPSF1JlC2+u4VYm5/zwj2+O+92Krgz2Pu8TzvO++b5v/Dd7Qumwkl3HBggF91CcfIe9Nq7Eymwg2gBLtGZJ6qwGW5kZNHQO/MXpraiRGRv2WxnkO+g9wcKrWBLtiPsdCxqrur6j6mdKJOl1OHfu8mpcxF6ftb9LUevWtU1+rfeCee6YX8HzPhQd6g36uPX8ui7UygyUKWKFY8jvFoGyurR2YYAFIegY9l+Zz8V5Qups+ZHLZYJrVQKXVeaYM20ht3DsT0ZPNtWMSXlwCgu994Nq6h8oQ1lM6dcGC3pH8ic2dSDWmsC1DWOMpCMn/HANL8/QDtHQ0l6/eFFynjdjUBp9xiPNnvX2OQ0nQP7Ev3TFarW/dNVrZWNXUBHseX8Y0BDZ0jas2yrW1W/hYe8Z5lvduB5odQ1b3kfO7FQCca9AzADSmmC4cRptzuGWuR6qI/s6kS07lralJ3vdrm3AW02S0FpodVdCbXtn8EapJrcDKIINu8rGECLWhNyE8RgO0tE0C9L3DwMnL+V0f15mtRHXrRlqQRSF6S1Vwi6i6SeIuwA1gXYlrk7lD3/lYyW37LK9dBtgdGR28m5PH1B6uW89JOKwKbWhTWGSKQ9k2Xf09z10ZJobwa76YUeo7H77uyuwS7o5AFfQxPN76ECUuH8NyZNE6KrEuQbKOkT8U+JOS9M+dAU5cFuhuitcLKL5Cx0ETqQKOYu1OmoiLY1cn139uVo440KPanXZymBlmVwQ74fTPMWlvVRUWCNs6FW5fM6YnFwO8A/4hgB6HyjxYybzXcvSdKuiL9haJ5f8TqcYa1GcFtrPqs6RZ3VBONQQOEn3voMC6DsLVXSUOi+vZcepX8tW2fqXr67Z1LF0prlUgq1ZYFcewLvW+sY7KpFUsW3bEUYf0/Zw2rNqlv7KTioCuBuANG1TuBgvufrJjr817xp5P1iT+cfkmnN8rRMVYkyX2bHRaFfQl9thkCrhydbWHDgm84WoCbylU0jHHQH/DUoWrO82bFfLOKMXlKZ8iofa9ek39/num2R1ZSh9XQR/1Eglexr8MeIsfhsCtQNNTEAMp1NZ0oP7/PoFNBy+rXy5V0rPSev9BgeYa4Ka1lJPtP+7AzCHQMzfttSsVVrZEar/+QB5vsAAJIV71FB4PBi/v+8DNV2aP2Croi/TAvtNUn0qjWdahjgIkUauX+MXCR5cPLCeFpZwUxJfzxgTsznzmLPy/fUYlSwI9AS/1AE+eEPilayncwqbUYw6BnvX5a7ui3ZA0e1iA+kiI0wmo+2v92qOVLslXajeOd968l/S8M+Db78Y6X2GVJNR6CXhE6ABhuSewSBE4/3/Cfnj2PPDJpxVKAT1vKX//CwLbugmbTUHUkgdrjoCea9a8ca3SuwRq6Q46J4S/PxuMHmp5peH5u+7SXt9ZeUw42LPyqWMPxQWhDgM150/Ca66FrwjbILBDEVKCAS3QpgitZkO7Sb1zqaDnVLtvPS/Q0QjsWUNI2O1QSu3IOQB6DmHvWaHUsmZkhEfDmSz+xRM1F070ocduTFfq687EeZMCwEw8qHtPIvKePYcOobBC+kglPLSSwg0QWKSljoAnlI6wVuz9DpwHPjGBpGef/A8PC13fZc960hW8yj5mOeh5X9nbVgPLmqi/rT7xnWQNXri+E+eme5+osvtxnAsqBopKPlShtlhNeeeHsBwCm5FAIwHdAsyc1OrJtB/7zwN/s0/hzi2Fwcy7nvzkkNBJ1Xs3EtqdgE1ZDzeLQc+R1/dsE9jU4emgnRDoV8BRkjibSKI3Abx09WJxuqz3nYGTZy3onyOq6T8Jv6kOq32FN5BCF0dJ4WmQl6s0TLlreUfyjz8B7FgtdfjdHuy35iKkX3tG6MoBe9YR2hpyw/Jl3XwWgp4tVK5M9t7tAiubC2ygxb5/gUAAI8LHCBFOEeHr/Wn0vWY5smIGffKF+n5WgZ6Bjou4hiSSno9bBLCC6MoDvFBHcXDmgeMKB/sJazvCMzgwdLoXePyYQHcLsHMFhdv6TOWYZaDnTdduXg7cvEKghSvflnEIgUBJ8K7r+8nHpdZ2HFshxEgZTUzLqbMC9Af76aogjet8oBkC2xXvHD7LjkxW6dLdT/cAFyTvpE145BWBVy4Ca9qBmydjtBacXWMsR3dHQT71SkdkVzQBNywT2NHtTdk4EgLMQDomgHMDCo/MpB0wI6A/dIhqR5vR6nvYJQRu9jw0EulqcDPyPOPNLwZeWqqwHIgpssRl7E6lCSd0QSSBpE+5JeymMmENU5KbiNLuLPPS/mb5NIY0ps8zFdksrcDuAsgsTh3vN1lNzMbUNARDkokyx5zvmEz2xjXA5g6BZCLU3yt1EEHx5nUgjArgvnQChw+exNCV9OdfUZAdGaQuCrCNFNYpT6sxV1w3L2vwuD6O2afV4EZfblmPzCe3XJQIoI6yX4hhaH+OiFlxMpdBu5NRFKpS7oPHGtZ5sEVerNj3+n0K/LgoBXTUA7Xl7ANaVqfmniwE0orwjO/hlcDHc5uaxcUpNFfSpdMOeiLyj13GikDh9R6wjASWOIzdkh5ypk5iCe9m/Fvpq7ES5YOOleWzv4czI3xqpxBZDjc9zrnMoRo7YMy5PtYRxTYwm2x/8VK7tNkrnTIx2RsVuI4LtZLAWQGcHkzjS1/9O4xMVxbVtIH+0EVqTiSxNEjj3b6PDg4MmVKIFeyq6WsqoDAbyJXkLpAdgT6243eB3TlyMoYKbDWp54czA/LS8uJVxHJmVvgUrsCOPhdoc7ze8gWwvNlDYtoQUdpYaSqDQOB5eNQHHvebcXqpEMOlXV3aWRV/xVeJ6rK92CU8bIHCNXNFqrvdJZ11P0fNsFRbB/FxtcYF8HjX5tRuNO0VvdZBdh7Ai+zMnaO5jKP+cNOss3MiSHPN1A3W0mBX4lkCXFT6WXg4sLYZ+ypVEqRioH/uOappXIOtvsTtirAchFRFLaAS+2nKp2lLb0x6umpIHuDMljLFpG00dwqk3OW160youK6dd19Xiheg8xZ8/viEdTqKffAdjV7utp9T7sjKNSCAQVJ4mQL8aFU7DgshplQgdMqgZ9966wB2gnADgA1ESMxFsAvezMpKXKumOEDJqcxrzssBbt4mA0b1cMHm6Pk56hH/EZPGVrWKVwQ2p0aIMs6Y8G/XznAwZ1W0+D35HkkPWNrgIaFrQszeQ+fUEpTv4cVsGt+/cAyHd+2aHPinBPqjg7SkRuJWz8MeyWCfowfXatG72xXwpEQqSgFPR2R82kng6DN5vzniN0dyx9q1rsQ8aV1AUhdUkWKzIq5+xVelznreVKGSTsnpB4EncAEKz8tmfG0ywa5Jgf4sUYMYwmsBvB4Ezv6cW73mjIvwlJ6tLkgLufLcoXQ3F84xPJ1GXCzHPTCu7m7b1e04W1fGVSNXSru2Qs6cKWBz5N3buWFbDdBWPzeHTkt+hR7eavhiM57ZKkTJhV7LBv25y7TOq8HbFWHj9M/p6b1DguMkZszz0rYLAChP+roqhNNA3IDNUUEclObp9TZglDPD8nfqyPPwxNSj8ewF64JNJoCuet5OZ26C3naRx94eD494KTy8SIgTpSCmZNCzv/1iFjuFxBsBLKskbbeUB630OVygaLzhLqDN6EeIMiOcejXxZ4sHiyIVI9ZosdUlOs1Rt+xK4E68uK5uNZsc9SkWT9DP6gEchKrP23Kk0r18Zdpj4BPhWKDwra4GPDeRl6ck0BNR6vIofgmEXSQwVUrVlemJce6i6y2KiXWyOHgKNRlJVefkCMzFpHoBozcCcIF24quQpRXkqEbmD130ydWF3NXIfGZvTWvd3JbweWMhOI0C2VGFLyypw9PjMTsnBH0/UQel8W4ibCklrW7GET3uA4QG64QvbdrIU3msKDW/x1eDSK0pJNFjYI7aLuJDz6lL41Af8oDusjKddy9Ujo8N39oEwIkgfs5+l7N71Mp6Og5sCTyANH7cXITSMO74E1HdQAa/BcK6sm48K08usNnZZJ+zgO6jDcaCsySfF+MarfEaj8VUFP19gVUgUnfMb8WMZv6eB5sBXzvH9fiJho3CnVMPZmrx+cVCDMTPLwr6gQFajCTe7XnYPNf1d+2SnKinpvC7q5vHmV9xEBZyi+YsIPFCSQ6Yc7SWAn59dwLlVQwGkEoATWVy4qfQLTN9KfkChzJD+H+traLXfZiCoO/pocb6NnzIF9jI29HP9NNP7f4haqYT9PHniwRy3AMU4+bEA1KR1B5HqltgxwNj7rXxVYH/Zlf8AgJ8JB88YF8qia8JwdWRw6MgoAcH6XY/hbumBrbZcvXMzFrXmMzThopQB3JckUV0/ajQq+nevJLY9vtYoI2T1evmWBCqEggihQAC/1yfFD8tCvpRoo0I8GEINFTipjPXRjGn48w9Uamenhx1pwiIo3MKxBNy4gQAahJAne/lb+A8c11xZe9MGKYEPlknxJE8SU9EazIKv0rA8iv7VBW+20Qh1QrfbjLNFXMrRmpKIUqxMxsKeY6KBaUaaz1dqW0BH+QBLyU9fJJdmVFXcC0ZKfF2CLxhLrsm9X52Rbwos3XQi61JxVaGOPltPLWIVRpODlnwB6cp+vimD3w76o6REVpVU4M/IMzl4NPsU2lKBlsRHd59o5y57K4ERWIAnIup0/6qoNfDQMCr6RH8gyvpP6wUrp27Uj7MdJpvR54a47xkwZXAXMCxJ07wFlfUbzX7e9/z8GkNeiJaBuB3wCU45uih1PwEfd5wxGZ2TozAOTkpvMpVaJijmCjy2BkL+jcB+LmZqBw21f5ksC+0o9CK5kaDmWoxb2kGFRhswexJ3lsYwN4KtDcvm8iZVhPOsQlPqFgfFeMGiaqUH7ePGfStAN4HYFPFRqPa0LT1QDzaG94od6J585VMVqFeZdCvAHA3c5Eq1Ga1mWoPzOoeYNBvAPB7V5ieMqs7pfpw87sHGPTrAfwuMHcTu+f3EFXfrtI9wKBnysFvAGivdOPV9qo9MBt7gEHfCOBXAVw3Gx+w+kzVHqh0DzDomWr+i7qcR/Wo9sAC6AEbnLodwC9U9foFMOLVVwypSETEez7/KQD22VePag/M5x7ocQln7wdwfdV1OZ/Hu/puAP7eBT1L+Y8AmOxmkNUerfbAbO+B5wB83gU9f7bEsyuZRz3bO6r6fPOjB9IAviCEeDInvYCIeGucXwZw1fx4z+pbVHtA9wBz854F8KmcdEHbOUTEQSrm1ndWO6zaA/OkB84D+Gshwvo3BRPJiIgzqN4DzPWKCPNkyKqvMZUeeBXAPwkhjtlGioGeNy++E8CtXBhrKnesXlvtgRnsgX4A/yCEeNl9hqIpwya5hEHPGVVV4M/gyFVvPakeuADgH4WpdVMS6LX2T1z9GG8GcEs1cDWpjq9eNDM9wCrNl4QQhwrdfsLiEETE9ei5TDfTFKrG7cwMYvWupfUAe2lYpfkbIcSpYpdMCHrHq8PBqw8BWD0XE8hL67PqWXO4B9gPz8GnfxVCnBvvPUoGvVF3mKPD5DTW9WvncAdVH31+9QAD/isAnhBCjEz0amWB3gCfqycwT4d3A2cvT9ltTPRQ1d+rPVBiD7A6wxswMOB/NNFeU7bNSQOWiLYDuAPA2iolucQhqp5WyR5gwO8D8GAhD03F1Jt4Q0TUAehSgP+mCvxKjme1rQl64CyAn/C/UtSZeFuTlvSOgcttcMrh2wDsMizNKbdbHfZqD8R6gIv7DAHYD+BeVmtKVWcqDnq3QSLiDdluNNJ/ztbFrMJt1vXARQCPAnhGCME++CkdFZfIvCOhYWnuNOCvGrtTGqIFezFL9mEATwI4AOCFyUr2aZX0MamfMFWQ345wZ5Ouqt6/YAFczovz3tC83f3PjHQfFkJEG7WX01Cxcysu6QvdiIgY8Ozt4Wpq26opiZUYunnXRtbo60eNgTo6XW94RUDvGL2s53Oiyg6Tj8sUB14RruhzTFdnVtstqwesj53BzTv/cTT1nBBisKxWJnHyjIDN1NrhiC5zeq4GsMZMBp4A1WN+9wAHk1iac2LHY+azEkJcsRrnMwL6mO7Pz8Cg5+rJrAbt4V0g5/e4L8i3Yw8Mp+ydBMD89vOVMkzL7c0ZB30B47fJgJ6rrrEBzBOA97StJquXO7ozcz6rLSy1me3I/z8D4IcAmBPDRikbqjN6zCrQFzGClwJg9ycDf6X5x27Q6jG7eoB1c07JY0nOevmPr4R+PpkumPWgd4xglvQ8AbpN1JftAa7aUM3qmszIV+aaAQAvsQ/dSPLTQgimCMzqY86APt6LRMTSnhmfrP6wK5TpzlzJgScHTwT+N2ffbxahhtUVDhIxfZfVFZbk7G3hLedZVQlmg8pSTn/NO1AQEVdoYzoEJ7uwN4gnBq8IbCjPu/ctZ7BLPNcGhw4bkDPQn+eAkRCCPS9z/pj3IDB5vpzmyAkwfPBKsNFQJJglyivFvO+HAkhlCc7Sm7OM2HXI6XXWCL0shODE6nl5/H+Nzk1bCdOMdwAAAABJRU5ErkJggg==",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu29C5hdR3Um+tfe5/T7qW6p1Xq/ZcmSbOthG2NhZAM2ARJuAh5ICCSBZJg4yeQxyZDc3CG+38yQTGAmCZnhJiEXDJkAxgbCxWDHYJuXjW3ZSJYty9b7rW6p1er3eeyqdb9Vu2p3nd3ndJ/TD/Xp1tn+/On0OXvX3rvqr1Xr8a9VApVjTvcAEfln+rF6WRO6hBADc/plrtLDi6t0n8ptZqAHiMjrGc7u6Br2Nmxu978rhOiagdvMuyYroJ+jQ0pEVQC292ewNpWVYlG9/2MhxPE5+jpX9bEroL+q3T09NyOiBga8BFbsPw/c0An4wCCAbwoh1PTcZf62UgH9HBtblvABsEsAqyGBvd0SOzt9fgvpA1+pgH7iAa2AfuI+KpszThPVLgNuALBGAl7PkERNEqivikD/sBAiUzYPXKYPUgF9mQ5M/LHYaAXwBskS3hwvnpfYushHUmMe5AMvCSEOTPaVzl6mFUsXiFOTvX6uXFcB/RwZKSK6PgPc6AN6zCSA7n5gUT3gh6AHBTiTTIqnSn0lVpleOofVy1uwfkG9+Fap18+18yugnwMjRkRLJHALgHr7uGf7w09Lm8wMABAE6KqpEY+X8kpExC3sOHBJdq5ugmyo8p8WQpwupY25dm4F9GU+YkTEQL9NAh3uo54fCv/qrBn9lghdyWTxoCeiFjaKA4lFvSkp2mp8qvLxihBiX5l3y5QerwL6KXXfzF5MRDw+N0pgM4xao1UbKdEzBLTWRPo8JCQIuFzt+08KIUYmejID+JsFsPB8P0RWSqxo8qF8vJYE9gohaKI25urvFdCPM3JEVAugHUAyftrzXcC6ppGgr6u2e/VqkZoJABDRUgncHr//UEbiSA9wwyJf6/as4bNznqQcVtns0w0NDRfGex4iapTAbgCtEhA8gbiltnqf/f3dAJ4TQlyZiXcqhzYroM8zCkTUyupyEKBFCHQCqLanWZD99Dywvg3Z2iSdIaJhlU6ebWzERWB6JKTx1txp1JrRcZLAkJToT7ERyxZsCHhGPwHptPKfa60VJwuBi4gSWWC7B6zn1UNK4EK/xOIm3xrEKR/4iRDiTDkAdCaeoQJ6p1cffJD8974XOwEsl1IDPeqfEOyjUvXYFWBZI8Aucv4tKf104GMIPvbVQZO/Ri+ZxMgR0QYJ7IAOtka31h9e7gY2LgI8I+eVDJ+BgKwcCfa2tNQczXdLoy5tlsA2225WAq/1SGxZFN2GXZ/PCCGOTeKx58QlFdCbYSKi5mN92FklsLizPh/YjTgFMJAKQdbERqQBnDPalPD87sEsDrbV4vxkIqRElAyANwnoVcbONTPlgL1nJbYvzb23VIAkSN/z9zbXiMMFQL9KAm90J3NPKtTd9LuYV/R9PCtE/jbmBKoneMgK6FlCEgs33CklOl7rAda0wAZ8Ip3Z7cfjRttd2RiC3z3s355EKgN1pq2u6ielAoWI2iRwjwancwP+OJSVGMoA7TXhvfX/hm0jJVRG+S8sbRKvxe/JEykDvMMHmLcTHU+fkbilU+vy0eH7eAXAvvlqzFZAr/3b9HYACxhkDKpTvcC6Nh+eP1ZDyQLo14ZfKB3tGTlnstQNIUT9g3Tu8MmBF9+6c0FfseBPEb0rIdE8ej77ZsLj9R6gsx6afqC/U6zThOjPAIrEWNDzpA4A9tSsyfUCAa92S2xaZEEf3scj/0wigR9MZpUq9h1n87xrHvRE1Cml9mQwVVcf54ckWE9e1MR68+jB32UUcKQX2NgWk/BW2vLXUmNRH70pHTTqa2ry9y2tmzjoo6W8xFsBJMKmQrhbY5VtiY76cCXiX6w+zwZpAMhsJnhh7cKa192nI6J1GWCHH/NC8Xs2MXfHz/UCCfj91T6+LYQIZhOcM3Xvaxr0xkNyE4DrpLTh/RDwrOasawvBZQHHg8CgP9UPrG5x5LALeANEg32tinADNdUYTiX8F9aM41nR7Wdol+eBjVhh1wt7/6EsdHuNVeEz6enAE1ECvAIpiSBF/t4ti8QR+3REVCOhJ5GzcoTXvdrDvnleNUIvkJ5c4eQJGqp8Jq9xs3mPjxN5bwa8hYDXPITrKCtXw/NrZZAhwOtLUOLAsjZ0ffWroHvvnZpRP93gv9ZB3yol9gCos65I28GsMhzvAVa3GW6LMVgPdgPr2gHfLgEO4N3JoTUOCfRngSoPqKnyKRvITMLzX1raiNeRJ/jDlIAgwBuEkAu1FDcPw+3w32euhOBeVm90eQN2mdWqDbJZZFQ6+/wNq2qjZJI00WYf2B4Bx+hJ3OaVlAwNWKvQjxrlsr7Kfygf6I/3UkvSx6IEye0K4hYJJIngkQIT+QU8j5RSUIr48RWEf1wRvp3wcH7tAlG0ijfdQHfbu6ZBf6yLOmpq5Fs5KBM3SXnEzjO/RQGdxmBlg3F/N7B98ag+bXVtlpBWutsPGqhDQIfxjPD1JDBCVf4P1zUKDgLlHES0SkpmUkrfTiBrrPJzdI+EK0270ecZuCllJD1PAIkRn/xntq8Q57hhNl4BvFNazo5jeLDXpj8TSvpIRbJ6FEE21eaCnojquofwRinVJnjeZklK8DMp/j90l4YrhfmgQNCw178JGZA8CElPXL+46tXZNpCvadD3pWh9z6C85dIIsLE9lMieVWdY1cgCZ/qB1npo3bd7KFR3moz2nxfwDvhTEjh5JfQGaZJ7iA7KSr/rxACe+5nvII0gNBuW9EM88pvY0JaUTDvIcYVqVUYBF4eAxhp+Rp98Kak6CcX30CuBBIYV+pIN/vdvbROajkZEmwyNwSrt0cRkLn5vFlhjJ7QBbTar7RjZWh+CnifOyb7s1mrPfysIK6RAgsHMYI9eiYHOSKLwFS3g9SmjRj0/0OUgkD/uXVr96J5ZtBeuWdBzoGYgwK1JIdcyYNgNyfryulag3pAOQhchcCkVBqJY3elsGnVn6jHNI+FtFkcqCxy5FE4oq+4YyU1fPgj5uQP+9YLA0V97CN/LsZ3ji4H+2xOglU3ou2+XPLauGSPaewMgnaXuN61OPM6SlCUzgF0SWJ7r9gwjuGxgN/ECx1OOVwvHKCZAdtT7D10EqmlQ/ZJS2CYJCT7XSu9IwlNo43Q2AIJ/N+Le/h5K+tEJIUlJQd7jwTn/Wzt3FrYZ8r74NH15TYM+FeBOT0gdAGKAsvrAQpwB0VoDtNSGujvzXNiTM5QC2owOXEidcaU/qyJneoFlraOgZ8Ad6kHNn/9EbBQemta202gkjLFh1AVJ2uuDLCOQ3TKsviggYKnOIFWCVjaj+w9vpsM+QCFoqevNa5KaWkxEyyVwK8LIspHw4dPxJDnYA2xuc/z8xuPE7ZCErMr4388ksvcIz9+mBJiDFAE+iNQWICDgZC+wUk/dUKUpBHirBpGibuWpB3curp50wstU8H8tg95LS/yMgNR+mEiHVgCrDCMSOMVBKA/orAX2dwErWoHVraF0T2XZpw8vMjYdq0BPCGPEJpK+aktK0ow0MyMePSlanzrnXX/Lcilqqhy3KKsH7Hc3vvc0G6iSJbg2UvXETAdAmj02+jehfutmer61FhkGsiK6cM8XEk8ta0byBx/E1oYasHrjCHoZBrIIdLIfagtT6cwksMayNqAD1CaTYo0HtAaGTKTVGVelMfr7iT5gcT0haQx7d0KMqjvhfewqoT8L6q3yE3+1ZZEYlxw3FXAXurasQW9cihw0Ynebl05DVFfrrk+fOIGLU2E3cttpiXcQZLNFhWPnhZLR6KOpTKjbM8+mqRbe3+/3O84PoHokQPWCOjWmD+1EYHCua0Lfu9bT+YiuIIFHT4mOS4o2LG6MDUsJoGeQZwO2F+T591zvH0lLUFb5J+/7DrzWGmy+sVMtSQpPT0r7PFbHTnpKrWjE0I5O9N+2jHSBqAxHtljdUaI16WO1MsavBWo+MA9ngd4RYFFdaL3a+4QrjXZ96uPScLhyGk0qOpGIjsNL/PPOpVc3RbHsQG+Bns1inRDwhdCAZ3hYJyH1jMhsXYJ6ahJIZ4jSdcnkyyywSvEKsJ/5jwO8jZTU8m4M4M0ouurK/gtI/M+f+quO9mHxdYulaKkDmnNoaWNB3JwUXe9YRjpYZKXpqWHR8voIbbGpf9FVkwB9YzIY/PCNiZ8GBHU85T/9376P21ctkLtbbKiN1SPHw6JVD9KgpIW1NLRpIQZ+dZs4KQSy8FBdI8T1EKjXC4KZMRa8rm5uvVueR2ivC1co14Njrz8/GDoItFro5RrAem54+NGuTv/LVzMQVj6gJxKXgaYmqQlRnMLGcsdhOY7Ckmu9sK+cDU7ua80uzNJFyo689EJjY18xngE2ZFMp3A5PrnQBH312/e+szkiI//g9sXrvRW/J+26SgmkA3gS9x03UQXTdsYhet4BngF/OovbQgNiYJsqV9ZMA/ZpWeebtq/3jGYL8zPP+11/rw3s2LJS7mZtjJS4DUqstBvCWqxMCVdCuDpV+/1acWVjnLVECbABrO8IekUsykt6h7t6fBqoTph8iV6VxUimAAc9dtIhbjMR87orAYA8o/Ylbl9VdNSpzWYCeE5P7+7HiQiB3rG32cxI24kEjHogjV0L+Sa2R/Q5oSXl00k8kjhp6r7vijlHxBtJ0vYDkiGx0WJUmWq5N40+dEQ1/9IS35e4NMrnK6MKFdEYXLDUQXW9sCyV9pP8r4FxatZ4aEesCEqMJfyWAPlCgpipx5V0b6KAgqEAh+Mz3/H85IfCeDYvk7cWCng1m7sZfvF7gbWsdoLurgwPoUN0hsGpzegBY2xJKHVeN4nPODkLr+Qx417C1d3DTsoQQR3Yt9f9yov6crt/LBfQbpMQNp/pR3VQLtDguw/BFR2HNHhQ2NDmSODakFJ7pscta+ueaavH8eLz2S8O0tMaXewpJd/fO3zkmmv/L09j2vu2EhoilM/4wMBCqleje1UavJ71w9beTiu/Zlxb1Q0BNQikOETUoeIN1Nd6QjrCyMWv+7WeXivGusB4fZBWE52UXNtBQnadPFQmPTm3qTDT86RNq93BArQuKlPQMej62tgP37QLqfBHp4nF1hkzkiUGcImjgN3NfOPo7A/78AFCVDFUa15+fD/B8rVRIJ8n/xM5V4vx0AXu8dmYd9ES0UErcxQQrndBwRWJ1k69ZhGM17dCfzue53Bf7ghq8DsNxOPDPvZrFi28tEP4eGKBFqkq+heeJXfJdslg0GSTwzWOi+e/2Y9s7ryfUjkkeLNzFlwZoZGnSe33XUuqPKMBGv+ermFaQFKqt2ku2pLJqeFE9dQek02C19BxRwBC7Ug3BTAejTOCM+6G9UTSsbMLC5Y3oeOaM53/kEXibOySaQ9UvlMLjqDcW9L4A/uIuYEFNCAkrvaNRYMCzy9S86tHLwCoTYbD6O9+nezg8YVHDKODd3okkvFkdwpuxh1U+8YaV1Q/Oe9C7PHb7shwe5yBRZ73U0VF7WJfiJab1shfFqQJgwe5OE3YbssdlUOLydW3+/vY6cTbeoZeJmkVa3uERmrTOmyfQZLyPePSYaP77A9j2rk2E6hJAz/mnpy6Jng9fT4cSSSjrxbGhf36mpCfaBNCaBVRzEt2+oEEGEAt49o5w0kqLoTEz0NldKTyVWNvmt69rxcqEhyp2a/6HJ4Hn2d5pI1SL0kDP/fvJO4G2OuFEVsMeYwmf43unkI6xdZFDQYjr8HFvTgz5OR6l8Lfn0kf8B/bsmXlm56xK+hTR+gSToeRo4jVLPk5fW63Zf2FvWMDzOv5a72hQJQfEVsI7tN5j/eGqsK7FHyGJn3Y047jr4WFPUf8wdkhPbrSAjyaOkahW2n/7iGj+7Culg54F5Lkrgl44rQZ/5Xp6rb3Oy4BVHaf9Koi2wQAtDWwcw0vXJeW5AFDso2d17komDJSxlOfnrKryq3Z3qk21VWBnocer3188Axy6DKxfQGio1r72kiQ99/Ff3gksqA0h4XJn8vFrzvQBS5pNME2FUWvP45VirITPKavgqELu+ClSh4iSn9+9UvTOtLSfNdDrBOUsdnge1ue6C0Nq7wETMXQIgDo405UCooylmIfFlfT8mWvDsP+ZqQOCkJbSP7hiAQ66wL+cpi1Q2JaVMqLOW8pAFLAC8PjxyYHeDiAncv/kpK4rk63xVVRvkgHhCySCAD4bfvx3oMD83NBjaAxK2w5/2VLt1fqe8vm3y6nQD879tKadIjtnMqD/iz3Agjphgkgx6W6ED0/ijAmQ8STlYzALDKaBtlpAOIhywW6JaFaI8XtwHCOpJzr76cTFgLwH7lg+82mKswb6n/ZSy3IfdzTWaR/8GP1dswBdgBuvDbMCNa3XAbzuyDyqCUsfPo3JYnwEhBGC/9y6ttFkjsuXqZlq8JZAyVpX+to2reHJoP/cq6VL+lxpZvRrC2SDbAtuazhyIMjSERgs2s9uVzLztw4WOT547hJ9Hn8XRlVLlvSf2MPGZ8gcyyfdrUrSNwIkPKCO7QYFnBgAFteFdkc0Od0Xj3l3+DnZ2OWAlXb9ahtCDSmfPv+m5dUvzWdJv+i1Xk5ukILdj+wEsDo8dy4PHDMUGbBafzcZS0wIs4cbOIqrJTatj8P8PEmsERlIDGdTg09uW9kSLaNn+umdRLIl8gYZFcn1tHz3uGh+YIqgdxER6bRBKN018O0kCJO8w+/4s+Nfj4xSc66eINZYnRbQ504wK5nt8/Jk7GX/vBeC/FRfSDYzRWT1K45RZ8w78Hj1DId8Ip4k7jWKaEBJ9cAda2eejzNrkp7rM2akvJN1bga39YjogqQG9KzOsDHKnBem9bJfvlFTn8IjLt31JDC6MrfL6g3zZqy6oiWgvtLvUoSnb1gsdHG8bxyh5Wsa5G6l4DGrskYnfRiPiWnvu6dE8z/Nc9D/1ztCg1kD15HOIXNytN85MYalM48PHxyVZrUmDnbmCfVlwuCVpk1wEZ/GUPfXXHw7jjr7hC6QSHz+jlUzv5vKbIJ+bUbKN1jwckey12aEiVXskmwNwc9gH5LhZ/bf19eOgj0u3S3ouTNtLiu3o8+z0ltzzyWU5x3fuSTB9V3U3r2UbF+Hnx0YlrX8HDYrinXVgZFwBdp3UTR/6/jU1Jtyl/T/92723ri8eDMBYiE+JsSxa5I9RotZyjO9wLwc/3Z5OPThs1HL84L7UxvpeaKy1o8voA4Jb54bsul0ehN8f0fUn9b/bL64MgJwEjQboamRsPM2tI8FPIPZgj8yPE02EWctseqk1SXHWmaviKaBKH//zStxkM3cc/103UggdygFndCpqbxhhQG9VDx1WjR/9cg1AHoWKo5gj/jzjrRn1etFdlm2h0KKbadUwFE2ZlyO2lwMcubY65XDXO/OHwt4fYLAs13P+Q9cjXzaWZP0aaJNSsodBRmOppMYgCzt+X8OSEXGkgGxdYNEfm9j8NkoZlXVKNErYjpaHRoY8rL+07euEV1n+qltKCVvIcICblqv3DZn1ID+y/Mc9PfvZpflKHdmVKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALe9960Ujzk3nOmPs8a6FNE6ygjb41UlLj/xnVHcpBmKFR7OLRtdX7XkNXS2V4jgSP9YQK1PVi628MayizShOefTi/Dj98MyNd6sVVm5JasiCrmaT47H9eCpP/4bqCVbaaYOuO6TQcyoerCzMqIcFfA9z4R4O0KQAIZTwZ/c8famryV2aYb/LMG+uHh4aXKr+JKBNERj6zGA0Zs1Nb4oasrJ4JqpLtlMvKYHeOMJbNhQTQ5HNTbFUJyCFwFe+9cU/363r0vJETnlnsgEppjP2r4Aj+YpHrTngzQkqAxOYAaV0aPsN4bKzEjd6WTSeW6J7W30rgsmRaQw3k3bsxTgwJnhxNF0xC4uf/rdkMBNv0UjxGwWtM1GBq77HjIJ93j9b0j7k1sIkU0ZK3aUNedq5L/abrBXai9WQP94OBgB5I1XI9FHxbwbqBqjHfGUAtYGjFH22VEuoAfyYRVAur5HDuA9j5OorK9RvhI7z/rf+v3bxMjL3Sn1iGduNW9jj//8LRofrhE9aazOsCe5hTak7nht8kMbgwz4zbBQDs64OPhE9V45UqyKO6NC3o7IeP3vMKFq2AmRsz3bh9oIumeE7Cyol7RF+5cl/zxZPplMtfMGugHiBaKjHyLcczkDTZFUHFC9hy04kwmdm26BC6bHM3XHO8F2Oleb9xvUcUiuyLYCWDC+uwqP3DZf+2PbsYLrwDJwXPBmz0lFrnXPXVKNH+jRO/NL3f2oyMZl32TGabJXfPl41X42vHaSDjk49NbwpkFPa+iblpgJJQIOHQJuG7hqHcn/lRuOmAh/d29JuSwUR9R4r+8de3Vq4kza6DnDYCH0sEbJQld2CjSPOKRVSfjyBqrZ5i66gGcHWRVkMhHz/55k+nPxpZeRVzpHmM4ajVGanVoeF27/9zPrBdnfnSKlniQNxOhQdsKAJ6eBOh/rbMfC2YR9N84VYUvH63VXijdT3mSSFzQ/+lto356V3IzOFmtYRdkUhcbzFX7o2kd8727AI9TEsJJoVKAeOgta5I/nNy0ntxVswl6ry+Lm4SUm3L080i0mKCSQzizAGZ9nKsMtJud9aKsJCZosb9fAq06xJvLX8/HcLTXcmGnhU10/KXziWf/7M2Qz57B1kCOGrU/Oiuav1mipL+uNo23t6eYW3PVjzNDAp89XItXLhev3rigd0HKhmtfCljIxqvjk3fBbidCZKuYN86nzoyqTSolyNvnef6X9szQbi75On4WhmP0MXrS6esF/BsUZ2dalcORxON5ZziQxYYtG6tMNbZeFtY7+Tcu2eFw66OCSJHnxvrizb8cXaythurtHXr0I7c1X37ySUrQWvkOFaCRV5hnzonmb50s3U9f4ykdsh9dynI/6pQ9yy235T/Mi0eUA2vQGiPV8tqJ1TOl2cqhTRzuRqIlem/GQyrwQjpDEXx6vv5PbgulOR+uocl0bk6cqTJS3l0F4qqQNVzHGLSm0THuTIISRJeHgit//nPXLdRJ6jN9zCro+/poQUbI25Wnc2KjwwI47nt3jVX+zBW6sky7NQPFHc55mZzAwIcNLEUqkFWdnI0UNO9+CFhk6ApK0fkP3JD8Hl//4GFamEnJ2+s91L9wSTQ/NgnQ5x1AJ4GCiWHlwr1h0Gud3hys1tiKBxwkzAG7Pceg2A00jQG8mzAS5+aYia4gjnjwHrh73dhyh9M9CWYV9Pwyl0boLillZ16GY8z3HgcvT46zBrAc6ubkCi7YxKCPdHwjAV27ga+LJL6pUGzr2SgPadT53//gOtH93gfJ/4WN2FRdJbc+eVIseKa7dEk/l0D/sdscl6UB6vG+sLqbpWZM5J2JrxK29o3bD5GL1k4Y7bVk04u+8jPrk9+fbpDH25t10HenaP3AgNyV8OFplqUDSG2AxvzlehVwjF2WMJxYwqQ01suZdsBHjsvRGKv2e0tL4PbZyOPoLXN6+CLyfFKZ7JGGHcm99/K+UUTim69ndz573t/1r6dwQ6mZU3MN9K1RPTTg8kjIq6lzvtPvY6XzeL53g357So70N1RpzrNleyeiigsavJBI/J+/OsP6/ayDnsle1CnfU5eAb92RTCXmTCE3QBRxbFzVxCCK+R/MqNT1Vaya4pyn54nNqLLuT6Pncjqfrl1puOB6FSB/kGrwk/u2hNW3Pv5x8k7fgrsPXFLvns+g/9BWYDPzm5iGEYQJKqzuaI+NI5U17h3Aj2+shoNkpftwOiybyDYCq0/MyU84KBys9X/33uUT74M7ldVg1kHP9WfODGGryshtzGpkHZslPqfIccHUQU6P40RjrhzMtSVjdIX+kbCAKCdQr2sE6s2GBVaqa+KY7aEY4HncOAeVo7zcsJ5YfI7vE0ns+62bBe+9pI8lf0Ubly5Qvz+fQf/b20OKMOvvA2mu1gAsNQ4BI+BDQV8A8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgxfC6DnjjrWSyuFkrcGhKTLh2epy5FVVj/YI8N0YS2QDUXVBqS4fDUT0Xp5AzLju9egd1UjW/jUgJgnAqcSMp9Hg97WdDR2BAm/98owHrvfJCov/VvasKRJ/cF8Bv0f7Ar7mFfZgSzQmgzT+SZSZ1ywsxeMGZecKFLnhymB3FZjMpTq7GmzKtKYFULQ2eF04s/v3SKidMqpSPRC1866pOcHu0BUP3AJO6WQvH9rBEAXuK6kySmlYUQ6X3bFcO91tNYBvP5spJPLnmS6wpChK1jhxYPObZGADHz/2x/bGUYKrwXQ/8dbQ1WmezDUs7lQE6s5DOCoqKyTyhiJaRECmoHNgmjYVFhuqh4VKNHiYD6MAXxYCOShd25MfG+6NqAua9Dzwx26QKsDyFsCgURkqMb09zg/J9LVHcOW82q54zUFwaEv6JQ7c56pnaQniVuL3hrO2uftcS0WOv6x25JPX0ugb64FTvQCS7nevMmGsiqLJcK5YOK+4u9ZenLerI24xINU4/nv+VwhxDlC8NDPrq/S+Q0zIeFtm2Uh6e3DHOjKvlVK0eHWfYwkvMObyXFHOmoMg5wBz4aSzo01DUdZU8Ye4L85assVxBj0ehJYQ81sXBYu2f7lQOEH9+8Rg9eCpP9DlvRemBHV7Pjr7fjEpbPLsuRzcn53qzgUlu4RU9Ncm/VBX3nnxpmlJZQV6F/uHlycDWo4b1bHMO2SGGdTWrUnX3SVf2MqAhuo7Mmx7kmjBUX5stprY8hV1v/PP+oJYFYIIj+bVZn9n9hTfWiyoOf6TgykMR1tqvzqd3QisjYJnEGgk75NnEFHbi1/hp/RRFpJKb0xAktbSzPmv/vSHqQqLSL7B7eE7bBqwzsYusdEHpq4790VVmMmhGnYnTRR+0TDMkh//ue3NOyfKWlfVqBnT84L53CTUnKz7jSHKBbx3w0zkn+339nNg6PvzMYK2v/u7A9lvTNsWGw6QYsAACAASURBVOlZFY8LWHXIiRUI+CcSF/HcZ7uxqlRDdkV1Fu9sHw6X/SKPmOs7vCrvl6MN5vv53LDAFw7X4tUSqMW/sytc8Tp03eJYore5HU+o+OFSFqKEb6d0t3t+VAzZXJRzrU5IFySgupUK/vEXNteeLLLbSjqtrEDPT/706b4Fvqh/Q8B7MbkqjQN2G3iK6ApWOjuTxAadGNdJkzJoNz9mN2ctTwYDeivZ3fb4s1Z5BDKU8p/48kksKBX0H+nsR8sssiwfPlmFrx4rnmX5kRsBDk6xlM8n2ePzLw72iaS7XdUsQseoS7mu0Bd6hvzP/dsZ2Jeq7EDPHfKT07Q+yMhdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ/9bVjqCsZ9Ev70eLPqE02roT7KoP+aPF8+p9bB+zQO3CNBX0h/d0arDmrTUzKa8eA02g+MlpOknhIwpNejf+/fn6d4A03pvUoS9DzGz5xMnuXkkIPgVvsdCLfe+SxcVyfzBK0pUNY129ibo7RjSyrwapI+m+H7RiWH/GHHzuOgwub1e+V4qdn9eYtrSNo8CmqCjCto5fHQLTS9vywwMMnavHsxeKpxb+zw5QAMQ/pAtWCegydwNW+Ys9jr7ETJi/Y3eUjtpsJCTosKPE30+23L1vQP7af6gd9eVdd9SgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1X4/7L3U0qd8pBfR8b86R7UjK0R3GzSDnqAZuFNPdnY8NVMd4tZ91E041NAtO69JNK+CVKz66R0rLkf3dXaMsSzeyGpf8+v4x70w+QNvnzLdy2DYiIeAC3k46okEi+tL7t1btnU5hUbag55d8cH9q45BM3NQ3ggQHnDgZOfLVmwQRq4JYiW2NVf7ebljM33EdHT6HXZn2cNUg7cGJJZjbstgJD3Ry0Ee/VG8qFfR5B6tMqcUW9IUAP8b3HpvAMaGdoyPFDdbIb28mT76UAz2xgUfevyXxzWsG9Pyi3zqY3hIIf1sQwOOdvXXCN4ezjc+dw96R1HZUIf5O++kNi5IlvJX03MFuZFZ/Nu3YycMqFW+raT0nZ0f8pv5AzWuWJYO+McaoLOh7Hw/wMc+MOxmsd4dPYYqC3i5UxXj8BuGcXON54uhQavhzv7a98eJ0Ab+sJb1eFonE117P7qTA22j99SxxmEKgJbGhB9sOsVFaOxGsYOe/2fhldyXXqrTg5kFg0LsBMe3lMT57nji6jN2QaO5X85tPzy5LvVuiBZ39ECV6WL0j/HeM9yX2ZSHvDPctF3LllZsByBQGd9M6I+GtxMmkSf3Vr2ytOXrNgJ5f9NuHqXpwBNszkKuhjEfHqC+uOqOBbSJWNnAVFXky3hmW3hyJ5Yq5FuxmQdBC3fL1dTum27nd7gHRPIT5Dfrf3mEo3bF0Qdf3PmZCcBAt9mU+sLOA4u85s62+Gnp7oLAu/SiUcw1epcdDCHbdJz/1S5unr2592Ut62yVfeOxCfaKj46YMyZVKgP+rEQIfALydQUBfGsrQ993I6ni+d71CMGWZc2ut8HLcl3rLeV15dHQFuDgsmkeuAdAz9yZSR5yJb9W8YqU7X8rceaaLc/FWpimzRLcbOcQDavw3qzNWn3R/DwL1qQ/dWKN3aJyOY86Anl/2cz+lFqjgVj/p3ez7+E1S6AhdjGJf74j6VGTUOpFVvi5SXxyPA6tHfD5z97VL1BZrNepSpP4Y1efSiGhOe/Nf0jPox/je87hGc3zvDqWCvV28vyyLcaYWs3BhGyzplPJ2AR2X7qOwN5NPKXYwXLugf/BB8sU2/BlIfUwSEtrLoGmvYn/XgPokd5NVT6zU1+BlY8mICFfn56JR9nD981Ylcolql0dEczDPQX/fDkendwREXLoz78dSjtnmYRcpJ52wusKThgGuBUoel0wE+FiyCV8xRvqH7M1sQiT/x/u2imtLp2dgPnJsZKVS1V/MStrNy6AkgmKWBhcPVWL/6V71yXy+d9bN7QqgJ4VBuQ1GccaVPXLcn249e86wyohmdQ2APvLeOH7zkMAWJt6zF6wuESaKpAmo5kpytva8k1XlaCqj6pJVJflfE4NwiUVRMCtnZRFnRSbzD7+8s37a9pidE+rNY6fofUGgPqMkWvSyahiGen+l8PNIQDgnlRjIKlxMBXR6KIXXe9J0Nu571+qOkygeeX/cdEHHgLW2Qf+IaFbJyak3YzrZcelpf7WdmEb6ad662YKHnzcIRrfj0WxKp1YOb2dv+8Ruba+TPiax59RHbwwpxVz248JQGJnmpHDefVwn0VNodzLQXSmeF6wxsR2dk+PODL/NUXdcwPN7Cnr82OWnv3H/nj2RvTxVvb6sQf+ji9SYGVF/G0j6YKjKiBDkGugEhVDS689G6vPv4UqgwXE5FYhnu4foyZ5BOp8jya2v3kRgXbJZRDG2kkkBfSOiWVSXBvoqT2FrXRZNPu/wHRuquJ4c32reoCECi4MOHZmNuLxO5QdtDYYAPTbo4cBlHxdTiaKLPb1nQ7hNZk5xKr4vqyvj+N7H8GZciR777BqrLuBzkkysAS0wrFTw1V+7qU4n8kzXUbag/9EZulWS+t9SYY2WZKYOo3LUGq3iKBFKOvd3ngy2bmM4CWgkEPvO9tOD3YN0Rkst04OaTWn0Ij0pnApr7J/nQ0d0M35zslqVtHnyntZh7GiM0tKna8yKaoeDdp87WoMnzlUXDfp/tz220cJERLE82326qmLO55g6U1C6O5NdEZ0YSfZ9+r4tiwaLeukiTypL0P/kAv17qdQnlQqNVQY3WSkfgdtIfCv5zb82CcMaubF/1ZW0eOzgJfXVkQBZLdEtMU2je7T2pZ0AlsDGoK8pEfS/vrQfzbPIsvzOmSS+eLhORz4tzUL3p5WkjgrFX310O9BsonkT+d41NmOqSF7Ax9SZfMYqX+faAPocASlk8MUPba97pkgsF31a2YF+30XakJHqkCSIUFqPqi72Mw8ad1II8Dy/GxUnHGD393CipCXOvNyN/35hkHRo243GugzL0G3Jyr6O5DbX1JYm6e9sHcb2WZL0rN49cLgG3zlTvKRn0DOXXoMujzpj1ZHJqjNx6R6nOLioFcCBY6+//vf337tl2isjlB3oD/TQ8rRUR6WiJEt3x1gN9ffo/1w93hZCjXT+nMkwygq0K0Gg0H+oB395rIdOxCkJoXT3cybDYBbNdSWCnnX67Y1pLK2OsSxdkRjX7eOGXRyAVkrH9WanHTbUn7uUxIFeH+eGitfpf8OAPh/g48aqvn0eZqSdGK53pmjpbt6JQL1S0mc/sqPmSNHiu4QTyw70/Ow/vRD8nPK8z0tFLaEkN0asIhCveznS25Hk1gtiVKC4azOaMIZNGSgM7uvCfz5xmc7mqjMhnS1MVAnTyxn0DSWC3o5DVKsntv5benBUV8ahEtsVx6oj1psTpVA6teYjlc6AkL07rNNru7aEqsUfYfXG1PR35prFd646E6Hb8b4Y0W3saT0r4oC32XBRo84k53M9eFkl6Gu/ui3xpBAzUxWhLEHPHfJiL62kLP2TVHR7CNaYmmK8N6M6fP7fRw1axy5wvD9ZiZ4nTuBPrwzRoC0NImUIdB9SG7wZ6TOnZ9KgHyOEypRazOmCXKsmNjdzKpoVK92dORHiO4/+n+OZMhoVkfrmR26qeaQEwV3yqWULen6TB4n8Nd3qTwj4T2zUjqouedScmIE75tw8BrA9ZyCD/d845IXBLbdIFOfXMvAzPgYVmpsbStPpC47GHAB9PnUm3/Y6blVi7j/PyPaC+nsB9Yy7xPO8x35lq/9N3tC6ZCSXcEFZg96+xwsX6FYF9b8VsGbUJx9K9jA4xT77UAXK69rM8enn8/oQjvT6f/fUCfwoR80xE6CqSmIk5Tc3zHPQf5iDU9Um2JWD2txNGlx8hTQQDvgpnajT4dSxH1PzMubitKtB6FtQj5z9evXj998/s4Dne84J0PODHrpIjYNK/a1U9MGxQSn6sQz83+QdeDkyHhCalJILSPirSal1ksQtiuh6vRt43NvDfv5w4PoeOuj94eUMRqJCrmZ0efyDa0DSM+i5NJ+L97zS3fQLk8sG06wGKm37MmXYRmptnR5XV4rNI/0TQVwGgn/98I21T5YgrKd06pwBvX3L5y/S+0iqz0hCi6UjkBCPvmmp9/bxeuLhE9QpMrgnUPRrKrITQqlvjcZTfeLh/++Q+LrkyeEYWJqnH6C5val09SbvOu0afMYhrlcq5pw7lAT9ExvdjtHqGrTcjKUk6H/teXwZ0xD43Yw+HeXaOn56266VuB/aBjQ5hqxBZaiTOwKAqRvdA0BDDdOFw2hzDresCP2dSZecyltVlXzolzfhAmbIaM2HiVkD/aPH5b+/Z7X/15OZsi+eG1kZ+NVfVIp2h4Er79HbJwC9e5+vvkq3KaK/kMRG8qgBnFXiygP7xXv7UmglQnXoTQiPVIDm1kmAvncYOHNl7FvGdWYrUfVEdjZE1pPBgshSFdwiqm6SuAvwUIzqa6P8VDOhQirAaLv2Wd64FLA7MprLRx/c2YiB69ZzEg6rQutbFRaY4lC2zcj/XkCdEeHi+mpGqe989Kars0u4OwKzBvrHjst9Qnj3v22V+PpkgM8041VvUn9EJN4rhfjkbYvFP5fUDpF48BB+XSr1PyShzrozA6Jf/9sX/e8ii5aUxNoEyVpG/lDgT0rSv3weOHVFoLMxXi+g8NPGQWNBacEaZTK5IHdWjxwPSwGgR1FZOzmMOLcrgivdo0liH9lJ5t66SOGu1aN6ciHAOyveEEDPQmWemM6811LGftZA//hJ+RmlcC8lvFvuWS5mJAhRTEd8+SBtIVKPKMIKvacqiUc/uI1VJRLL/jtqGqpQlxXYliGsXtykbimlGgIHif71kMDadsJ1HcU8Te7GxG79Sr7a1q90fd22jqUtyRH55a2XxKo4hnWp39FRmeyqErl2nRUgmhi23IhVc+zqQUBHPfC29WE0Ix/gHbDznrEXk1WJf1y2CRf3CDFtrMkiezY6bdZA/8TJ4IOS8ADBe1X54vZ7lrNBMzvHlw7REij1pFLYoAhZj7yOX9omet2nmUwBV66u9uRhgbddR+AthYo6XHemU7S1XEF/yxKF6xaZN8unzijF5SlfIKH2nr6hbv/9M+yOLKaPZw30jx2hRckqdU4SuP7XC0kl3rJntcij/RbzGlM/50sHaDk8xS7LFT68D3RsxlcaX4AYqEF1VTvq/p/nsOnQFfWLxUp6VpcePSTQVAXctoZysv3Hfdo5BHrmpr1xhcKK5vCNIjXM4w0WICHEaU/h2WDwyt4P33519ogtBgmzBnp+uKfOqCeUoj16aRXiFV+Kd9y1Rky6Ui2XCykmdL33HNXVpNEka1FLAZKo1q6EhX0Z3NY1qP5zbUK8srJZ6K0deWMCRfD2XYD/P/epZFGgJ+C1buD5UwL/5kYKt7Ap9phDoGd9/saOaDckTbcRoD4S4lwC6tFqv/r4dJfkK7YbxztvVkH/gzPyo4roMzYBRBF6yPM+cvcK8Y1SX+4f9tHHFNGfKaKHU8K77/duClcN3hnw3fdhra+wUhKqvQQ8IrSDsMwTWKAInP8f9UPPMG3sy2DzmpZcA/uli8CnX1QoBvS8pfyjBwW2dhI2m4KoRb/PHAE916y5e43SuwTyQaAuIfz92SB1uPlo/Sv33qu9vmV5zCro91+g+v5AnVaE1iiySoLF69elEn/89jXitWJ6jSX8516i70hFd2sSF+HCyhbv850NuMStQaBVEVrMhnYTvvOFYdq5uE7k1E8sFvScavfIKwLtDcDu1YSE3Q6lmBcJ0TPqEy9TnZ532Ny9XKmlTcgIj4YzWXzJE1WXTvWh225MV+zrzsZ5EwJgph/q6XP0XyWpP7b0ApswovMbSPyLVOJzqhZPvGuJGLbPQkTeS11oFwrLpY+ahIeWAxfVp0Yy2BgxKYVQbTVi38YFeCFK2pnCyxy4CPzNBJKeffLfPyJ0fZfd60hX8Cr5KHPQ876yd64CljZSf2td4jvJKhy8eRG6ZnqfqJL7cZwLZh30e89Re5rU6yzt82U7mUmQlkRPC4i9PuFKbZU3XO2hNeFhuRBIegJ09ArdOZShpTaYY9uq9kX3xgX0RGO11z+Vjtt/EfjrvQrvvD4/mHnXkx8dFjqpes8GQpsTsCnpvmUMeo68fnCrwKZ2TwfthEC/Ao6TxIVEEr0J4LXrFopzJb3vLJw866Dnd372vPwtSfg0S3up81tHOfQ5tOIYX75ASmAUtre/cw748ibvx6uaMOkqWbwj+V89B2xfJXX43R48ybgI6df3CV05YPdaQmt9bli+pHEtQ9CzysWVyT60TWBFU54NtNhBLxAIYET4GCHCWSJ8oz+NvjcsQ1bMok8+X9+XBeiJyH+um56UknZHtIBQv9G5sVH2VJxXH6uCMJZ3bxLHTXWEphpxdMtC8cMqLyp/UzQemSbw+EmFQ/2ENe3hZRwYOtcLPHtCoLMZ2LGcwm19pnKUGeh507XblwG3Lxdo5sq3JRxCIFASvOv6fvJxuaUNJ5YLMVJCEzNyalmA/lA/bcymcM+wUp+QCrV51RzOmnJLgMQSwkcpxSZyWeB3z8PgdW3eEwvrcKGUHs1klS7d/WI3cEnyTtqEp48KHO0BVrcBt0/GaM33AGUE+uWNwC1LBbZ3elOm4woB9qadEEDXgMLTs2kHzAroDx+m6lQTWnwPO4XA7Z6HBiIkJaFjMFDvsPmxY2jAmi/v5saOTQp3wW8nT5gsYs4NPSK0tFE8t6ldTLhtI7eXlkpzxjWnhcnfCjibJpzSBZEEkj7llrArZTbFzzVMSf5aUwTMB83zt79ZPo0tfcLnmYpsllZgdwGkwFQVNtY8szE1DcFwBizD1P2OyWR3rwY2twskE6H+Pl0HDwNvXgdCSgAPpRM4cugMhq6mP/+qgv7YIHVQgK2ksFZ5uIF0qYHcIyB0DgXqbqmoKvTfO8kirvSOwJ+bJphTDMqoRvGVw3JYdi3xHmyp0RIo/8HJEWafVj7BZSvy38wn11FIB4RRQwUYhvb3iKfiEsXsj8619rwcokqMr6z5NoVfoeDruVx5e9KCGqC9DqguZR/QKcwIIZBWhH2+h6OBj5c3NYmeKTRX1KUzDnrW109cwfJA4S0esJQEFjuM3bwPGQCtA1li7nuj5czH9fWcdMACtXDGO4d3r7tlqfflxioMFeoplvAuY9FKXw0w1w/qgDQCn8Mpj74bkzg9euccqrGDYMMPy/uI3CfuZCxqxMc5iQuvLmnyiqdMTPWGzvVcqJUELgjg3GAaX/naZzAyU1lUMwb6wz3UlEhiSZDG+30f7RwYMqUQi+oqRagalHRbShKTwJwKCGPr2ISGrjVa8//OK4Y06YSeJ1LrWsSTSxtwutDDBBRmA7mS3IrTnHotBnUR78RpMOdaM2PGXGtL9JnrotUkj9SPAB4T6+6f8QlW7KTwBbCsyUNixhBR1LCHVAaBwPPwjA886zfh3BIxGqMprpXxz5r2VzxNVJvtxU7h4Xoo3DCRVJ/oJVKKOgcD3JyV1KHVUZvplKf+TY4O75b5c9Sc2qQ4e12reKohWVjCS2fdzwGzpevGAJkDZOeP8a7NqQ5g2rOS264oOYCN3ztO8411ZM68GEf94ctYZ+dEkKaqqRusE41nSb8LcFHpl+DhwJom7C2GV1VM+9MG+pdfpqqG1djiS9ylCMtAqJlOCygj0TGQpU2pLK0KiKpC/jjXwMlTHsTNgzWuTwhPLqoVe9cuwPjGq7b0HMZgXHJbgPK/ZksZ9/yca2PiP1Jh8uzXZFcRa4i6gzdGkjsTy6YXxgd7zMqTZ9LYa9gH397g5W77WQx6rtI5AhgkhdcpwA9WtuGIEGJKBUKnDPqXiapaBrADhFsArCdCYjrBnqdfvaEMOkYULc5ILMgoNEqJmiyhTkpK5PP4+J64srZJPNFSi0uFxonLwFovhes1sSDOKWUXU0X0OY40zZH8LtgcPd9ZLMKPMWlsVat4Cb0c6W8mp6vS5MvPsmpW/J58btIDltR7SDChpowPnVNLUL6HV7NpfPfSCRzZuXNy4J8S6I8P0uIqiTd7HnbzziCz2WfH+9XbR7JYrlUgx7BtrBKvrm0Wz3je6H5g8efkWi16d7s8npRIYsb0aFeijznH9bW7EySfihJr17oSx6w241ybz8ZwAR6fCO4tF9XxpgrT6ZSceRR4Apeg8IpswtcnE+yaFOgvENWLIbwRwFtA4OzPWe81Bv1wgOW65J8mViLVWe/9YFEtTow3DMJTerbmqB55AJ6jbuSR6jnSNOaujHtgXN3dtuv643NUnBhi9aR2JlLOo+axOcbc27lhaxXQWjfrQzepWaIlv0I3bzXc04R9W4QoutBryaDvukJrvSq8WxE2TOppZ+iik/10z1CWVjCgqn1xdnmjeKomUdhY5cdI8PQwYz5GLcgDoDHS13mXgkaorSIwRp8Zuw+rXWlyiOixCZRT3cDty0LqlfPQdmJqtSYBdNTxdjpzE/T21T329nh42qvBUwuEOFUMvIoGPfvbe7LYISTuBsBsxqKvLeZBpnpO1xBtuZLGTU3V2N9ZL16aqD0uUDTecBcS9hEgnXo18XvFg0VxGyGO/7jx6uroFrN2JRijVsUeNN+qEk1oe64HcBCqbsyWIxP1Wnn+zsAnwolA4ZGOerw8kZenKOASUc2VFP4NCDtJYKqUqlnvOV1vUUysk+V4TfJZiLEKAGPA7DQQd2u6KkoEZFd3KeBB4nP1fHM9OE6P6qJPeVYVd7Kwt6aldm5L+DEgEpyqiGxK4YuLa/HieMzOCUHfT9ROabyfCNfPpTKA+WdWaLBO+NKOzjymnTx++DjG4uH9fN6TqJkCPvScujROWQ57r3zXu5M0Xzk+Vo2qEwAngvg5+13OuhyavgfgwJbA40jjh00FKA3jjj8R1Q5k8NsgrJ2+p5qtlvJsdjbZR8mj+2i1osBqED/dNVrdwk0uoPOtMoXqSrqTqpDRzN/zYDPgq+e4Hj/RsFG4c+qhTDW+sFCIgfj5BUE/MEALkcT7PQ+by01/n+il479rl2SpF5Vwvuv5iTO/4iDM5xbN0VbiPB7TeD63ZI5kN/pL9Cx5VKuaBNBYIie+hG4ot1PJFzicGcL/29KSW8MoL+i7u6mhrhW/4Qts4Eq/5fY2pT1POPozCfr480R4i3uAYpHYeEDK1bsLVgvOw+i0K0wh9YbbZVf8NQT4SOP0gL01SXxdiNFiYnkBPThId/k1uLc0cJXr2bMza11jcow2lId27Ep7fX4BXT8q9Gq6e0xJbPt9LNDGyeq1cywINR2IIoUAAv9clxQ/tu2NAX2KaAMCfBQC9dNx09lro5DTcfaeKJ9XJZ86kqPuFABxdE6eeELcM1SVAGp9b+wGzrPXFVf3zoRhSuDTtUIc4xvngJ6IVmcUPkDAsqv7VNN8t3zZEdN8i6k2V8itGKk4eaK6+p55qBL2mjF6v0F/Q7WnK7Vdwwd5wGtJD59mV2bUFVxLRkq8GwJvm8uuSb2fXQEvSrkOeqE1qdDKECe/2fPyqUWs0nByyDV/MDvFx7d84NtRd4yM0MqqKvwHwlwOPpWfSlM02Aro8GM8NLZBdyVwTuKPdhJwLqZO+6uA3i6Sp9Mj+AdX0n9UKdw4d6V8mOk03474NHZjAXlXAnMBx544wVtcVb9V+fe+5+GzGvREtBTA7wJw9oYr/xdwn1Cp+Qn6MaMQm9k5MQLn5KTwpq9Cw9yCwkRPm7GgvwfAz+r9gufYwWC/1o58K5q7AjDVYt7SDKZhsAWzJwG8F8CeaWhvXjaRM60mnGMTnjBtfZRXnePs+4qUH7ePGfQtAH4FwKZpG41KQzPWA/Fob3ij3InmzVcy2TT1KoN+OYD7mIs0TW1Wmqn0QFn3AIN+PYDfv8r0lLLulMrDze8eYNCvA/B7OnuuclR64BroAQY9Uw5+E0DbNfC+lVes9AAY9A0APgDgpkp/VHrgWugBBj1TzX9Bl/OoHJUeuAZ6wAan7gLw8xW9/hoY8corhlQkIuI9n/8EAPvsK0elB+ZzD3S7hLNfBXBzxXU5n8e78m4A/s4FPUv5jwOY7GaQlR6t9EC598DLAL7ggp4/W+LZ1cyjLveOqjzf/OiBNIAvCiGej6cL8tY4vwhg4/x4z8pbVHpA9wBz87jU49/npAvaziEiDlIxt35RpcMqPTBPeuAigE8JEda/yZtIRkScQfVBYK5XRJgnQ1Z5jan0AO8r9k9CiKhkeyHQJwG8E8CbATibwk/l3pVrKz1w1XugH8A/CCFed+9cMGXYJJcw6DmjqgL8qz5elRtOsQd4q6V/FKbWTVGg19o/70sPvB3AHZXA1RSHoHL51ewBVmm+IoQ4nO+mExaHICKuR89lupmmUDFur+bQVe5Vag+wl4ZVmr8WQpwtdPGEoHe8Ohy8+g0Aq+ZiAnmpvVc5f871APvhOfj0L0KIrvGevmjQG3WHOTpMTmNdv3rOdUvlgedrDzDgHwbwnBBiZKKXLAn0BvhcPYF5OrwbOHt5Sm5jooeq/F7pgSJ7gNUZ3oCBAf+Difaasm1OGrBEtA3AWwGsqVCSixyiymnT2QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",he=({createState:ye,refreshLoading:at,onRefresh:rt=()=>{},onCreate:nt=()=>{}})=>ge.createElement("div",{className:X.sendToClass},ye?ge.createElement(ge.Fragment,null,ge.createElement("img",{src:W,alt:"\u7A7A"}),ge.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),ge.createElement(E.ZP,{onClick:nt,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):ge.createElement(ge.Fragment,null,ge.createElement("img",{src:j,alt:"\u7A7A"}),ge.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),ge.createElement(E.ZP,{loading:at,onClick:rt,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Ne=x(49898),Ce=x(75872),je=x(89392),q=x(20527),ce=x(59301),k=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,xe=(ye,at)=>{var rt={};for(var nt in ye)ot.call(ye,nt)&&at.indexOf(nt)<0&&(rt[nt]=ye[nt]);if(ye!=null&&k)for(var nt of k(ye))at.indexOf(nt)<0&&Le.call(ye,nt)&&(rt[nt]=ye[nt]);return rt},Re=(ye,at,rt)=>new Promise((nt,ut)=>{var Nt=cr=>{try{Ht(rt.next(cr))}catch(or){ut(or)}},zt=cr=>{try{Ht(rt.throw(cr))}catch(or){ut(or)}},Ht=cr=>cr.done?nt(cr.value):Promise.resolve(cr.value).then(Nt,zt);Ht((rt=rt.apply(ye,at)).next())});const ve=Q.default.Search,ke=ye=>{var at=ye,{paperlibrary:rt,globalSetting:nt,loading:ut,dispatch:Nt}=at,zt=xe(at,["paperlibrary","globalSetting","loading","dispatch"]),Ht,cr,or;const[yr,dr]=(0,ge.useState)(""),[$,Xe]=(0,ge.useState)([]),[L,p]=(0,ge.useState)([]),[u,w]=(0,ge.useState)(!1),[ee,Be]=(0,ge.useState)(!0),[T,ae]=(0,ge.useState)(!0),[Ge,Ee]=(0,ge.useState)(!0),[me,qe]=(0,ge.useState)(!1),[_t,pe]=(0,ge.useState)(!1),st=(or=(cr=(Ht=rt.actionTabs)==null?void 0:Ht.params)==null?void 0:cr.data)==null?void 0:or.is_random,[At,Pe]=(0,ge.useState)(!1),[Ie,vt]=(0,ge.useState)({});(0,ge.useEffect)(()=>{Rt()},[]);const Ut=()=>{p([]),dr(""),Rt(!0),Nt({type:"paperlibrary/setActionTabs",payload:{}})},Rt=rr=>Re(void 0,null,function*(){ae(!0);const Ar=yield Nt({type:"paperlibrary/getCourseList",payload:{search:rr?"":yr}});Ar&&(Xe((Ar==null?void 0:Ar.courses)||[]),Be(!0),qe(!1)),ae(!1),Ee(!1)}),hr=rr=>{const Ar=parseInt(rr);return(0,je.isNaN)(Ar)?"":Ar},br=()=>Re(void 0,null,function*(){var rr,Ar,jr,cn,Tn,en,Qn;if(!L.length){Te.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),w(!0);return}const li=yield Nt({type:"paperlibrary/postExistCourse",payload:{course_id:st?L==null?void 0:L[0]:L,examination_bank_ids:((Ar=(rr=rt.actionTabs)==null?void 0:rr.params)==null?void 0:Ar.examination_bank_ids)||((cn=(jr=rt.actionTabs)==null?void 0:jr.params)==null?void 0:cn.id)}}),Pr=()=>Re(void 0,null,function*(){var ti,yi,ci,Ci,hi,Ri;pe(!0);let ba=yield(0,Ne.Tr)({id:(yi=(ti=rt.actionTabs)==null?void 0:ti.params)==null?void 0:yi.id,course_id:st?L==null?void 0:L[0]:L,type:(Ci=(ci=rt.actionTabs)==null?void 0:ci.params)!=null&&Ci.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Ri=(hi=rt.actionTabs)==null?void 0:hi.params)==null?void 0:Ri.examination_bank_ids});pe(!1),(ba==null?void 0:ba.student_count)===0?yield Mr([]):vt(ba),yield new Promise(Xi=>setTimeout(()=>Xi(),1e3))});if(li.status==0&&((Tn=li.data)==null?void 0:Tn.count)>0){ne.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:ce.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(Qn=(en=li.data)==null?void 0:en.list)==null?void 0:Qn.map((ti,yi)=>{var ci;return ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{color:"#FA6400"}},"\u300A",ti==null?void 0:ti.name,"\u300B"),yi!==((ci=li.data)==null?void 0:ci.count)-1&&ce.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>Re(void 0,null,function*(){yield Pr()})}),yield new Promise(ti=>setTimeout(()=>ti(),1e3));return}yield Pr()}),Mr=rr=>Re(void 0,null,function*(){var Ar,jr,cn,Tn,en,Qn;if(!st){Pe(!0);const yi=yield Nt({type:(jr=(Ar=rt.actionTabs)==null?void 0:Ar.params)!=null&&jr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:st?L==null?void 0:L[0]:L,id:(Tn=(cn=rt.actionTabs)==null?void 0:cn.params)==null?void 0:Tn.id,examination_bank_ids:(Qn=(en=rt.actionTabs)==null?void 0:en.params)==null?void 0:Qn.examination_bank_ids,shixuns_info:rr.map(ci=>({shixun_id:ci.id,is_copy:ci.is_copy,is_use:ci.is_use,course_id:ci.course_id}))}});Pe(!1),yi&&yi.status===0&&(Nt({type:"paperlibrary/setActionTabs",payload:{}}),p([]),ne.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${yi.data[0].first_category_url}`},content:ce.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),Te.ZP.success("\u53D1\u9001\u6210\u529F"));return}Pe(!0),setTimeout(()=>{Pe(!1)},500);const li=$.find(yi=>yi.course_id===(L==null?void 0:L[0]));let Pr=1,ti=ne.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:ce.createElement("div",{className:se.modalColumn},ce.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},ce.createElement("img",{style:{marginRight:5},src:h.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),ce.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",li==null?void 0:li.course_name),ce.createElement("div",{style:{paddingLeft:9},className:se.modalRow},ce.createElement("sup",{className:se.sup},"*"),ce.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),ce.createElement(G.Z,{parser:hr,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Pr,onChange:yi=>{Pr=yi;const ci=document.getElementById("model_error");Pr<1||Pr>50?ci.style.display="block":ci.style.display="none"}})),ce.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Ut,onOk:()=>Re(void 0,null,function*(){var yi,ci;if(Pr<1||Pr>50){const hi=document.getElementById("model_error");return hi.style.display="block",Promise.reject()}ti.update({cancelButtonProps:{disabled:!0}});const Ci=yield Nt({type:"paperlibrary/sendToClass",payload:{course_id:L==null?void 0:L[0],id:(ci=(yi=rt.actionTabs)==null?void 0:yi.params)==null?void 0:ci.id,num:Pr,shixuns_info:rr.map(hi=>({shixun_id:hi.id,is_copy:hi.is_copy,is_use:hi.is_use}))}});ti.update({cancelButtonProps:{disabled:!1}}),Ci&&Ci.status===0&&(ne.default.destroyAll(),ne.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:ce.createElement("div",{className:se.modalColumn},ce.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},ce.createElement("img",{style:{marginRight:5},src:K}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{Ut()},onOk:()=>{Ut(),setTimeout(()=>{var hi,Ri;const ba=(Ri=(hi=Ci==null?void 0:Ci.first_category_url)==null?void 0:hi.split("/"))==null?void 0:Ri[2];(0,te.xg)(`/classrooms/${ba}/exercise`)},1e3)}}))})})}),Ur=()=>Re(void 0,null,function*(){qe(!0),yield Rt()}),Qr=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return ce.createElement("div",null,ce.createElement(ne.default,{centered:!0,keyboard:!1,closable:!1,open:rt.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ut["paperlibrary/sendToClass"]||_t||!!ut["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:br,destroyOnClose:!0,onCancel:Ut},ce.createElement("div",{className:se.wrap},ce.createElement("div",{className:"mb10"},ce.createElement(ve,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:yr,className:se.search,onChange:rr=>{dr(rr.target.value),rr.target.value||Rt(!0)},onSearch:rr=>{dr(rr),Rt(),p([])}})),ce.createElement(B.Z,{loading:Ge},$.length?ce.createElement("div",{className:se.radioWrap},ce.createElement(f.default,{bordered:!1,scroll:($==null?void 0:$.length)<=7?{}:{y:350},loading:T,rowKey:"course_id",pagination:!1,dataSource:$,columns:Qr,onRow:rr=>({onClick:Ar=>{if(st)p([rr==null?void 0:rr.course_id]);else{if(!st&&!L.includes(rr.course_id)&&L.length>0)return;L!=null&&L.includes(rr==null?void 0:rr.course_id)?p(L==null?void 0:L.filter(jr=>jr!==(rr==null?void 0:rr.course_id))):p([...L,rr==null?void 0:rr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:L,onChange:rr=>{p(rr),w(!1)}}})):!yr&&!T&&ce.createElement(he,{createState:ee,refreshLoading:me,onRefresh:Ur,onCreate:()=>{Be(!1),(0,te.xg)("/classrooms/new")}})),u&&ce.createElement("div",{className:se.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),ce.createElement("div",{className:se.bottom,style:{display:"flex",alignItems:"center"}},ce.createElement("div",{style:{flex:1}},ce.createElement("div",{className:se.title},ce.createElement("img",{src:h.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),ce.createElement("div",null,ce.createElement(E.ZP,{onClick:Ut,className:se.no,style:{marginRight:20}},"\u53D6\u6D88"),ce.createElement(Ce.Z,{onClick:br,className:se.yes},"\u786E\u8BA4"))))),ce.createElement(q.Z,{resdata:Ie,type:"exercise",okloading:At,oktext:(Ie==null?void 0:Ie.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:rr=>{Mr(rr)}}))};var fe=(0,ue.connect)(({paperlibrary:ye,loading:at,globalSetting:rt})=>({paperlibrary:ye,globalSetting:rt,loading:at.effects}))(ke)},40755:function(xn,er,x){"use strict";x.d(er,{c:function(){return ue}});var ge=(Q=>(Q.FirstPage="firstPage",Q.PrevPage="prevPage",Q.NextPage="nextPage",Q))(ge||{}),ue=(Q=>(Q[Q.Single=0]="Single",Q[Q.Multiple=1]="Multiple",Q[Q.Judge=2]="Judge",Q[Q.Fill=3]="Fill",Q[Q.Subjective=4]="Subjective",Q[Q.Shixun=5]="Shixun",Q[Q.Program=6]="Program",Q[Q.Combine=7]="Combine",Q))(ue||{})},63529:function(xn,er,x){"use strict";x.d(er,{AD:function(){return ot},D9:function(){return fe},Hp:function(){return j},IM:function(){return at},Iy:function(){return le},KM:function(){return dr},MJ:function(){return he},Ne:function(){return ye},ON:function(){return zt},Uj:function(){return or},VY:function(){return ut},YO:function(){return cr},YX:function(){return Ht},Zn:function(){return R},_g:function(){return te},_k:function(){return ve},c6:function(){return ce},cr:function(){return I},eV:function(){return k},fi:function(){return Y},gh:function(){return je},hS:function(){return rt},iA:function(){return K},j6:function(){return X},je:function(){return Re},jj:function(){return W},kS:function(){return Nt},o6:function(){return q},pO:function(){return yr},rQ:function(){return Le},sA:function(){return Ce},xm:function(){return ke},xo:function(){return nt},y8:function(){return xe},yd:function(){return se}});var ge=x(94811),ue=x(24459),Q=x(88230),Te=x(8591),ne=x(38446),G=Object.defineProperty,B=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,h=($,Xe,L)=>Xe in $?G($,Xe,{enumerable:!0,configurable:!0,writable:!0,value:L}):$[Xe]=L,Z=($,Xe)=>{for(var L in Xe||(Xe={}))f.call(Xe,L)&&h($,L,Xe[L]);if(B)for(var L of B(Xe))E.call(Xe,L)&&h($,L,Xe[L]);return $},S=($,Xe,L)=>new Promise((p,u)=>{var w=T=>{try{Be(L.next(T))}catch(ae){u(ae)}},ee=T=>{try{Be(L.throw(T))}catch(ae){u(ae)}},Be=T=>T.done?p(T.value):Promise.resolve(T.value).then(w,ee);Be((L=L.apply($,Xe)).next())});const _=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},N=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},R=$=>S(void 0,null,function*(){_(),(yield(0,ge.YR)(Z({},$))).status===0&&(yield(0,Q.QH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/courses/${$.coursesId}/export_couser_info.json`,query:$}))),N()}),I=$=>S(void 0,null,function*(){const Xe=yield(0,ge.yS)(Z({},$));if(Xe.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_member_act_score`);else{if(Xe.status===-2)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_member_act_score`))}}),Y=$=>S(void 0,null,function*(){const Xe=yield(0,ge.W0)(Z({},$));if(Xe.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_score`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_score`))}}),K=$=>S(void 0,null,function*(){const Xe=yield(0,ge.Nl)(Z({},$));if(Xe.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_exercise_and_other`))}}),se=$=>S(void 0,null,function*(){const Xe=yield(0,ge.IU)(Z({},$));if(Xe.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/export_star_user`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/export_star_user`))}}),te=$=>S(void 0,null,function*(){const Xe=yield(0,ge.td)(Z({},$));if(Xe.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Xe.status===-2)return Xe;if(Xe.status===-3)(0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_exercise_and_other`);else if(Xe.status===-4)return Xe}}),X=$=>S(void 0,null,function*(){const Xe=yield(0,ge.QX)(Z({},$));if(Xe.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_homework`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/course_total_homework`))}}),W=($,Xe)=>S(void 0,null,function*(){const L=yield(0,ge.o_)(Z({},$));L.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`)):L.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`))}),j=($,Xe)=>S(void 0,null,function*(){const L=yield(0,ge.ZL)(Z({},$));L.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`)):L.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`))}),le=($,Xe)=>S(void 0,null,function*(){const L=yield(0,ge.aP)(Z({},$));L.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`)):L.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`))}),he=($,Xe)=>S(void 0,null,function*(){const L=yield(0,ge.vV)(Z({},$));L.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`)):L.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/${Xe}`))}),Ne=$=>S(void 0,null,function*(){_(),(yield exportCourseWorkListAppendix(Z({},$))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${$.categoryId}/works_list.zip`,query:$}))),N()}),Ce=$=>S(void 0,null,function*(){_(),yield(0,Q.QH)("",ne.Z.API_SERVER+`/api/polls/${$.categoryId}/commit_result.xlsx`),N()}),je=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/courses/${$.coursesId}/attendances/export_xlsx_data.xlsx`,query:$}))}),q=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/courses/${$.coursesId}/video_study_statics.xlsx`,query:$}))}),ce=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/courses/${$.coursesId}/export_video_study.xlsx`,query:$}))}),k=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/courses/${$.coursesId}/export_course_students_info.xlsx`,query:$}))}),ot=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/school_manages/students.xlsx",query:$}))}),Le=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/item_banks/export.xlsx",query:$}))}),xe=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:$}))}),Re=$=>S(void 0,null,function*(){const Xe=yield(0,ge.Uy)(Z({},$));Xe.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${$.coursesId}/exportlist/exercise_score,export_exercise_users`)):Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${$.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ve=$=>S(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/export_records/${$.id}.xlsx`,query:$}))}),ke=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:$}))}),fe=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/courses/${$==null?void 0:$.coursesId}/${$.menuKey}_statistic.xlsx?${$.checkedList.map(Xe=>`course_group_id[]=${Xe}`).join("&")}`,query:$}))}),ye=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/ec_years/${$==null?void 0:$.ec_year_id}/ec_training_objectives.xlsx`,query:$}))}),at=$=>S(void 0,null,function*(){yield(0,Q.FH)($==null?void 0:$.name,(0,Q.NY)({url:ne.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:$}))}),rt=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/ec_years/${$==null?void 0:$.ec_year_id}/ec_courses.xlsx`,query:$}))}),nt=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/ec_years/${$==null?void 0:$.ec_year_id}/ec_graduation_requirements.xlsx`,query:$}))}),ut=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:$}))}),Nt=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:$}))}),zt=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/examination_banks/${$.id}.json`,query:$}))}),Ht=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/exercises/${$.categoryId}.json`,query:$}))}),cr=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/polls/${$==null?void 0:$.id}/commit_result.json`,query:$}))}),or=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+"/api/paths/get_task_pass.json",query:$}))}),yr=($,Xe)=>S(void 0,null,function*(){yield(0,Q.FH)(Xe||"",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/exercises/${$==null?void 0:$.exercise_id}/consult_exercise.json`,query:$}))}),dr=$=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ne.Z.API_SERVER+`/api/competitions/${$==null?void 0:$.identifier}/competition_commit_records/member_works.xlsx`,query:$}))})},50371:function(xn,er){"use strict";function x(){const ge=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue<arguments.length;ue++){const Q=ue<0||arguments.length<=ue?void 0:arguments[ue];Q&&Object.keys(Q).forEach(Te=>{const ne=Q[Te];ne!==void 0&&(ge[Te]=ne)})}return ge}er.Z=x},13845:function(xn,er,x){"use strict";x.d(er,{F:function(){return ge},Z:function(){return ue}});function ge(Q){return Q!=null&&Q===Q.window}function ue(Q,Te){var ne,G;if(typeof window=="undefined")return 0;const B=Te?"scrollTop":"scrollLeft";let f=0;return ge(Q)?f=Q[Te?"pageYOffset":"pageXOffset"]:Q instanceof Document?f=Q.documentElement[B]:(Q instanceof HTMLElement||Q)&&(f=Q[B]),Q&&!ge(Q)&&typeof f!="number"&&(f=(G=((ne=Q.ownerDocument)!==null&&ne!==void 0?ne:Q).documentElement)===null||G===void 0?void 0:G[B]),f}},56762:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ue}});var ge=x(59301);function ue(){const[,Q]=ge.useReducer(Te=>Te+1,0);return Q}},68031:function(xn,er,x){"use strict";x.d(er,{Z:function(){return Te}});var ge=x(16089);function ue(ne,G,B,f){const E=B-G;return ne/=f/2,ne<1?E/2*ne*ne*ne+G:E/2*((ne-=2)*ne*ne+2)+G}var Q=x(13845);function Te(ne){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:B=()=>window,callback:f,duration:E=450}=G,h=B(),Z=(0,Q.Z)(h,!0),S=Date.now(),_=()=>{const R=Date.now()-S,I=ue(R>E?E:R,Z,ne,E);(0,Q.F)(h)?h.scrollTo(window.pageXOffset,I):h instanceof Document||h.constructor.name==="HTMLDocument"?h.documentElement.scrollTop=I:h.scrollTop=I,R<E?(0,ge.Z)(_):typeof f=="function"&&f()};(0,ge.Z)(_)}},19080:function(xn,er,x){"use strict";x.d(er,{F:function(){return ne},Z:function(){return Te}});var ge=x(92310),ue=x.n(ge);const Q=null;function Te(G,B,f){return ue()({[`${G}-status-success`]:B==="success",[`${G}-status-warning`]:B==="warning",[`${G}-status-error`]:B==="error",[`${G}-status-validating`]:B==="validating",[`${G}-has-feedback`]:f})}const ne=(G,B)=>B||G},66104:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ot}});var ge=x(92310),ue=x.n(ge),Q=x(11592),Te=x(26112),ne=x(59301),G=x(92343),B=x(36355),f=x(84105),E=x(91857);const h=Le=>{let{children:xe}=Le;const{getPrefixCls:Re}=ne.useContext(B.E_),ve=Re("breadcrumb");return ne.createElement("li",{className:`${ve}-separator`,"aria-hidden":"true"},xe===""?xe:xe||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var Z=h,S=function(Le,xe){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&xe.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,ve=Object.getOwnPropertySymbols(Le);ke<ve.length;ke++)xe.indexOf(ve[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[ke])&&(Re[ve[ke]]=Le[ve[ke]]);return Re};function _(Le,xe){if(Le.title===void 0||Le.title===null)return null;const Re=Object.keys(xe).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Re})`,"g"),(ve,ke)=>xe[ke]||ve)}function N(Le,xe,Re,ve){if(Re==null)return null;const{className:ke,onClick:fe}=xe,ye=S(xe,["className","onClick"]),at=Object.assign(Object.assign({},(0,Te.Z)(ye,{data:!0,aria:!0})),{onClick:fe});return ve!==void 0?ne.createElement("a",Object.assign({},at,{className:ue()(`${Le}-link`,ke),href:ve}),Re):ne.createElement("span",Object.assign({},at,{className:ue()(`${Le}-link`,ke)}),Re)}function R(Le,xe){return(ve,ke,fe,ye,at)=>{if(xe)return xe(ve,ke,fe,ye);const rt=_(ve,ke);return N(Le,ve,rt,at)}}var I=function(Le,xe){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&xe.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,ve=Object.getOwnPropertySymbols(Le);ke<ve.length;ke++)xe.indexOf(ve[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[ke])&&(Re[ve[ke]]=Le[ve[ke]]);return Re};const Y=Le=>{const{prefixCls:xe,separator:Re="/",children:ve,menu:ke,overlay:fe,dropdownProps:ye,href:at}=Le,nt=(ut=>{if(ke||fe){const Nt=Object.assign({},ye);if(ke){const zt=ke||{},{items:Ht}=zt,cr=I(zt,["items"]);Nt.menu=Object.assign(Object.assign({},cr),{items:Ht==null?void 0:Ht.map((or,yr)=>{var{key:dr,title:$,label:Xe,path:L}=or,p=I(or,["key","title","label","path"]);let u=Xe!=null?Xe:$;return L&&(u=ne.createElement("a",{href:`${at}${L}`},u)),Object.assign(Object.assign({},p),{key:dr!=null?dr:yr,label:u})})})}else fe&&(Nt.overlay=fe);return ne.createElement(E.Z,Object.assign({placement:"bottom"},Nt),ne.createElement("span",{className:`${xe}-overlay-link`},ut,ne.createElement(f.Z,null)))}return ut})(ve);return nt!=null?ne.createElement(ne.Fragment,null,ne.createElement("li",null,nt),Re&&ne.createElement(Z,null,Re)):null},K=Le=>{const{prefixCls:xe,children:Re,href:ve}=Le,ke=I(Le,["prefixCls","children","href"]),{getPrefixCls:fe}=ne.useContext(B.E_),ye=fe("breadcrumb",xe);return ne.createElement(Y,Object.assign({},ke,{prefixCls:ye}),N(ye,ke,Re,ve))};K.__ANT_BREADCRUMB_ITEM=!0;var se=K,te=x(17313),X=x(83116),W=x(37613);const j=Le=>{const{componentCls:xe,iconCls:Re}=Le;return{[xe]:Object.assign(Object.assign({},(0,te.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Re]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,te.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${xe}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${xe}-link`]:{[`
> ${Re} + span,
> ${Re} + a
`]:{marginInlineStart:Le.marginXXS}},[`${xe}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Re}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,X.Z)("Breadcrumb",Le=>{const xe=(0,W.TS)(Le,{});return[j(xe)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),he=function(Le,xe){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&xe.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,ve=Object.getOwnPropertySymbols(Le);ke<ve.length;ke++)xe.indexOf(ve[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[ke])&&(Re[ve[ke]]=Le[ve[ke]]);return Re};function Ne(Le){const{breadcrumbName:xe,children:Re}=Le,ve=he(Le,["breadcrumbName","children"]),ke=Object.assign({title:xe},ve);return Re&&(ke.menu={items:Re.map(fe=>{var{breadcrumbName:ye}=fe,at=he(fe,["breadcrumbName"]);return Object.assign(Object.assign({},at),{title:ye})})}),ke}function Ce(Le,xe){return(0,ne.useMemo)(()=>Le||(xe?xe.map(Ne):null),[Le,xe])}var je=function(Le,xe){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&xe.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,ve=Object.getOwnPropertySymbols(Le);ke<ve.length;ke++)xe.indexOf(ve[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[ke])&&(Re[ve[ke]]=Le[ve[ke]]);return Re};const q=(Le,xe)=>{if(xe===void 0)return xe;let Re=(xe||"").replace(/^\//,"");return Object.keys(Le).forEach(ve=>{Re=Re.replace(`:${ve}`,Le[ve])}),Re},ce=Le=>{const{prefixCls:xe,separator:Re="/",style:ve,className:ke,rootClassName:fe,routes:ye,items:at,children:rt,itemRender:nt,params:ut={}}=Le,Nt=je(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:zt,direction:Ht,breadcrumb:cr}=ne.useContext(B.E_);let or;const yr=zt("breadcrumb",xe),[dr,$]=le(yr),Xe=Ce(at,ye),L=R(yr,nt);if(Xe&&Xe.length>0){const w=[],ee=at||ye;or=Xe.map((Be,T)=>{const{path:ae,key:Ge,type:Ee,menu:me,overlay:qe,onClick:_t,className:pe,separator:st,dropdownProps:At}=Be,Pe=q(ut,ae);Pe!==void 0&&w.push(Pe);const Ie=Ge!=null?Ge:T;if(Ee==="separator")return ne.createElement(Z,{key:Ie},st);const vt={},Ut=T===Xe.length-1;me?vt.menu=me:qe&&(vt.overlay=qe);let{href:Rt}=Be;return w.length&&Pe!==void 0&&(Rt=`#/${w.join("/")}`),ne.createElement(Y,Object.assign({key:Ie},vt,(0,Te.Z)(Be,{data:!0,aria:!0}),{className:pe,dropdownProps:At,href:Rt,separator:Ut?"":Re,onClick:_t,prefixCls:yr}),L(Be,ut,ee,w,Rt))})}else if(rt){const w=(0,Q.Z)(rt).length;or=(0,Q.Z)(rt).map((ee,Be)=>{if(!ee)return ee;const T=Be===w-1;return(0,G.Tm)(ee,{separator:T?"":Re,key:Be})})}const p=ue()(yr,cr==null?void 0:cr.className,{[`${yr}-rtl`]:Ht==="rtl"},ke,fe,$),u=Object.assign(Object.assign({},cr==null?void 0:cr.style),ve);return dr(ne.createElement("nav",Object.assign({className:p,style:u},Nt),ne.createElement("ol",null,or)))};ce.Item=se,ce.Separator=Z;var k=ce,ot=k},24905:function(xn,er,x){"use strict";x.d(er,{default:function(){return le}});var ge=x(92310),ue=x.n(ge),Q=x(5630),Te=x(59301),ne=x(36355),G=x(1684),B=x(32441),E=Te.createContext(null),h=x(98447),Z=x(14088),S=x(4572),_=function(he,Ne){var Ce={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Ne.indexOf(je)<0&&(Ce[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,je=Object.getOwnPropertySymbols(he);q<je.length;q++)Ne.indexOf(je[q])<0&&Object.prototype.propertyIsEnumerable.call(he,je[q])&&(Ce[je[q]]=he[je[q]]);return Ce};const N=(he,Ne)=>{var Ce;const{prefixCls:je,className:q,rootClassName:ce,children:k,indeterminate:ot=!1,style:Le,onMouseEnter:xe,onMouseLeave:Re,skipGroup:ve=!1,disabled:ke}=he,fe=_(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ye,direction:at,checkbox:rt}=Te.useContext(ne.E_),nt=Te.useContext(E),{isFormItemInput:ut}=Te.useContext(B.aM),Nt=Te.useContext(G.Z),zt=(Ce=(nt==null?void 0:nt.disabled)||ke)!==null&&Ce!==void 0?Ce:Nt,Ht=Te.useRef(fe.value);Te.useEffect(()=>{nt==null||nt.registerValue(fe.value)},[]),Te.useEffect(()=>{if(!ve)return fe.value!==Ht.current&&(nt==null||nt.cancelValue(Ht.current),nt==null||nt.registerValue(fe.value),Ht.current=fe.value),()=>nt==null?void 0:nt.cancelValue(fe.value)},[fe.value]);const cr=ye("checkbox",je),[or,yr]=(0,h.ZP)(cr),dr=Object.assign({},fe);nt&&!ve&&(dr.onChange=function(){fe.onChange&&fe.onChange.apply(fe,arguments),nt.toggleOption&&nt.toggleOption({label:k,value:fe.value})},dr.name=nt.name,dr.checked=nt.value.includes(fe.value));const $=ue()(`${cr}-wrapper`,{[`${cr}-rtl`]:at==="rtl",[`${cr}-wrapper-checked`]:dr.checked,[`${cr}-wrapper-disabled`]:zt,[`${cr}-wrapper-in-form-item`]:ut},rt==null?void 0:rt.className,q,ce,yr),Xe=ue()({[`${cr}-indeterminate`]:ot},S.A,yr),L=ot?"mixed":void 0;return or(Te.createElement(Z.Z,{component:"Checkbox",disabled:zt},Te.createElement("label",{className:$,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Le),onMouseEnter:xe,onMouseLeave:Re},Te.createElement(Q.Z,Object.assign({"aria-checked":L},dr,{prefixCls:cr,className:Xe,disabled:zt,ref:Ne})),k!==void 0&&Te.createElement("span",null,k))))};var I=Te.forwardRef(N),Y=x(26407),K=x(2738),se=function(he,Ne){var Ce={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Ne.indexOf(je)<0&&(Ce[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,je=Object.getOwnPropertySymbols(he);q<je.length;q++)Ne.indexOf(je[q])<0&&Object.prototype.propertyIsEnumerable.call(he,je[q])&&(Ce[je[q]]=he[je[q]]);return Ce};const te=(he,Ne)=>{const{defaultValue:Ce,children:je,options:q=[],prefixCls:ce,className:k,rootClassName:ot,style:Le,onChange:xe}=he,Re=se(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ve,direction:ke}=Te.useContext(ne.E_),[fe,ye]=Te.useState(Re.value||Ce||[]),[at,rt]=Te.useState([]);Te.useEffect(()=>{"value"in Re&&ye(Re.value||[])},[Re.value]);const nt=Te.useMemo(()=>q.map(p=>typeof p=="string"||typeof p=="number"?{label:p,value:p}:p),[q]),ut=p=>{rt(u=>u.filter(w=>w!==p))},Nt=p=>{rt(u=>[].concat((0,Y.Z)(u),[p]))},zt=p=>{const u=fe.indexOf(p.value),w=(0,Y.Z)(fe);u===-1?w.push(p.value):w.splice(u,1),"value"in Re||ye(w),xe==null||xe(w.filter(ee=>at.includes(ee)).sort((ee,Be)=>{const T=nt.findIndex(Ge=>Ge.value===ee),ae=nt.findIndex(Ge=>Ge.value===Be);return T-ae}))},Ht=ve("checkbox",ce),cr=`${Ht}-group`,[or,yr]=(0,h.ZP)(Ht),dr=(0,K.Z)(Re,["value","disabled"]),$=q.length?nt.map(p=>Te.createElement(I,{prefixCls:Ht,key:p.value.toString(),disabled:"disabled"in p?p.disabled:Re.disabled,value:p.value,checked:fe.includes(p.value),onChange:p.onChange,className:`${cr}-item`,style:p.style,title:p.title},p.label)):je,Xe={toggleOption:zt,value:fe,disabled:Re.disabled,name:Re.name,registerValue:Nt,cancelValue:ut},L=ue()(cr,{[`${cr}-rtl`]:ke==="rtl"},k,ot,yr);return or(Te.createElement("div",Object.assign({className:L,style:Le},dr,{ref:Ne}),Te.createElement(E.Provider,{value:Xe},$)))},X=Te.forwardRef(te);var W=Te.memo(X);const j=I;j.Group=W,j.__ANT_CHECKBOX=!0;var le=j},98447:function(xn,er,x){"use strict";x.d(er,{C2:function(){return ne}});var ge=x(17313),ue=x(37613),Q=x(83116);const Te=G=>{const{checkboxCls:B}=G,f=`${B}-wrapper`;return[{[`${B}-group`]:Object.assign(Object.assign({},(0,ge.Wf)(G)),{display:"inline-flex",flexWrap:"wrap",columnGap:G.marginXS,[`> ${G.antCls}-row`]:{flex:1}}),[f]:Object.assign(Object.assign({},(0,ge.Wf)(G)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${f}`]:{marginInlineStart:0},[`&${f}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[B]:Object.assign(Object.assign({},(0,ge.Wf)(G)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:G.borderRadiusSM,alignSelf:"center",[`${B}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${B}-inner`]:Object.assign({},(0,ge.oN)(G))},[`${B}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:G.checkboxSize,height:G.checkboxSize,direction:"ltr",backgroundColor:G.colorBgContainer,border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,borderRadius:G.borderRadiusSM,borderCollapse:"separate",transition:`all ${G.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:G.checkboxSize/14*5,height:G.checkboxSize/14*8,border:`${G.lineWidthBold}px solid ${G.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${G.motionDurationFast} ${G.motionEaseInBack}, opacity ${G.motionDurationFast}`}},"& + span":{paddingInlineStart:G.paddingXS,paddingInlineEnd:G.paddingXS}})},{[`
${f}:not(${f}-disabled),
${B}:not(${B}-disabled)
`]:{[`&:hover ${B}-inner`]:{borderColor:G.colorPrimary}},[`${f}:not(${f}-disabled)`]:{[`&:hover ${B}-checked:not(${B}-disabled) ${B}-inner`]:{backgroundColor:G.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${B}-checked:not(${B}-disabled):after`]:{borderColor:G.colorPrimaryHover}}},{[`${B}-checked`]:{[`${B}-inner`]:{backgroundColor:G.colorPrimary,borderColor:G.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${G.motionDurationMid} ${G.motionEaseOutBack} ${G.motionDurationFast}`}}},[`
${f}-checked:not(${f}-disabled),
${B}-checked:not(${B}-disabled)
`]:{[`&:hover ${B}-inner`]:{backgroundColor:G.colorPrimaryHover,borderColor:"transparent"}}},{[B]:{"&-indeterminate":{[`${B}-inner`]:{backgroundColor:G.colorBgContainer,borderColor:G.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:G.fontSizeLG/2,height:G.fontSizeLG/2,backgroundColor:G.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${f}-disabled`]:{cursor:"not-allowed"},[`${B}-disabled`]:{[`&, ${B}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${B}-inner`]:{background:G.colorBgContainerDisabled,borderColor:G.colorBorder,"&:after":{borderColor:G.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:G.colorTextDisabled},[`&${B}-indeterminate ${B}-inner::after`]:{background:G.colorTextDisabled}}}]};function ne(G,B){const f=(0,ue.TS)(B,{checkboxCls:`.${G}`,checkboxSize:B.controlInteractiveSize});return[Te(f)]}er.ZP=(0,Q.Z)("Checkbox",(G,B)=>{let{prefixCls:f}=B;return[ne(f,G)]})},93891:function(xn,er,x){"use strict";var ge=x(59301),ue=x(36355),Q=x(64165);const Te=ne=>{const{componentName:G}=ne,{getPrefixCls:B}=(0,ge.useContext)(ue.E_),f=B("empty");switch(G){case"Table":case"List":return ge.createElement(Q.Z,{image:Q.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(Q.Z,{image:Q.Z.PRESENTED_IMAGE_SIMPLE,className:`${f}-small`});default:return ge.createElement(Q.Z,null)}};er.Z=Te},28103:function(xn,er,x){"use strict";x.d(er,{Z:function(){return S}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ne=x(17313),G=x(83116),B=x(37613);const f=_=>{const{componentCls:N,sizePaddingEdgeHorizontal:R,colorSplit:I,lineWidth:Y,textPaddingInline:K,orientationMargin:se,verticalMarginInline:te}=_;return{[N]:Object.assign(Object.assign({},(0,ne.Wf)(_)),{borderBlockStart:`${Y}px solid ${I}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:te,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Y}px solid ${I}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${_.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${N}-with-text`]:{display:"flex",alignItems:"center",margin:`${_.dividerHorizontalWithTextGutterMargin}px 0`,color:_.colorTextHeading,fontWeight:500,fontSize:_.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${I}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${N}-with-text-left`]:{"&::before":{width:`${se*100}%`},"&::after":{width:`${100-se*100}%`}},[`&-horizontal${N}-with-text-right`]:{"&::before":{width:`${100-se*100}%`},"&::after":{width:`${se*100}%`}},[`${N}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:K},"&-dashed":{background:"none",borderColor:I,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${N}-with-text${N}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${N}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${N}-with-text`]:{color:_.colorText,fontWeight:"normal",fontSize:_.fontSize},[`&-horizontal${N}-with-text-left${N}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${N}-inner-text`]:{paddingInlineStart:R}},[`&-horizontal${N}-with-text-right${N}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${N}-inner-text`]:{paddingInlineEnd:R}}})}};var E=(0,G.Z)("Divider",_=>{const N=(0,B.TS)(_,{dividerHorizontalWithTextGutterMargin:_.margin,dividerHorizontalGutterMargin:_.marginLG,sizePaddingEdgeHorizontal:0});return[f(N)]},_=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:_.marginXS})),h=function(_,N){var R={};for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&N.indexOf(I)<0&&(R[I]=_[I]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,I=Object.getOwnPropertySymbols(_);Y<I.length;Y++)N.indexOf(I[Y])<0&&Object.prototype.propertyIsEnumerable.call(_,I[Y])&&(R[I[Y]]=_[I[Y]]);return R},S=_=>{const{getPrefixCls:N,direction:R,divider:I}=Q.useContext(Te.E_),{prefixCls:Y,type:K="horizontal",orientation:se="center",orientationMargin:te,className:X,rootClassName:W,children:j,dashed:le,plain:he,style:Ne}=_,Ce=h(_,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=N("divider",Y),[q,ce]=E(je),k=se.length>0?`-${se}`:se,ot=!!j,Le=se==="left"&&te!=null,xe=se==="right"&&te!=null,Re=ue()(je,I==null?void 0:I.className,ce,`${je}-${K}`,{[`${je}-with-text`]:ot,[`${je}-with-text${k}`]:ot,[`${je}-dashed`]:!!le,[`${je}-plain`]:!!he,[`${je}-rtl`]:R==="rtl",[`${je}-no-default-orientation-margin-left`]:Le,[`${je}-no-default-orientation-margin-right`]:xe},X,W),ve=Q.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),ke=Object.assign(Object.assign({},Le&&{marginLeft:ve}),xe&&{marginRight:ve});return q(Q.createElement("div",Object.assign({className:Re,style:Object.assign(Object.assign({},I==null?void 0:I.style),Ne)},Ce,{role:"separator"}),j&&K!=="vertical"&&Q.createElement("span",{className:`${je}-inner-text`,style:ke},j)))}},91857:function(xn,er,x){"use strict";var ge=x(59301),ue=x(38819),Q=x(92310),Te=x.n(Q),ne=x(31561),G=x(70425),B=x(18929),f=x(2738),E=x(79676),h=x(53487),Z=x(92343),S=x(36355),_=x(20834),N=x(40875),R=x(88088),I=x(47211);const Y=null,K=W=>{const{menu:j,arrow:le,prefixCls:he,children:Ne,trigger:Ce,disabled:je,dropdownRender:q,getPopupContainer:ce,overlayClassName:k,rootClassName:ot,open:Le,onOpenChange:xe,visible:Re,onVisibleChange:ve,mouseEnterDelay:ke=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:ye=!0,placement:at="",overlay:rt,transitionName:nt}=W,{getPopupContainer:ut,getPrefixCls:Nt,direction:zt}=ge.useContext(S.E_),Ht=ge.useMemo(()=>{const me=Nt();return nt!==void 0?nt:at.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[Nt,at,nt]),cr=ge.useMemo(()=>at?at.includes("Center")?at.slice(0,at.indexOf("Center")):at:zt==="rtl"?"bottomRight":"bottomLeft",[at,zt]),or=Nt("dropdown",he),[yr,dr]=(0,I.Z)(or),[,$]=(0,R.Z)(),Xe=ge.Children.only(Ne),L=(0,Z.Tm)(Xe,{className:Te()(`${or}-trigger`,{[`${or}-rtl`]:zt==="rtl"},Xe.props.className),disabled:je}),p=je?[]:Ce;let u;p&&p.includes("contextMenu")&&(u=!0);const[w,ee]=(0,B.Z)(!1,{value:Le!=null?Le:Re}),Be=(0,G.useEvent)(me=>{xe==null||xe(me),ve==null||ve(me),ee(me)}),T=Te()(k,ot,dr,{[`${or}-rtl`]:zt==="rtl"}),ae=(0,E.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:ye,offset:$.marginXXS,arrowWidth:le?$.sizePopupArrow:0,borderRadius:$.borderRadius}),Ge=ge.useCallback(()=>{ee(!1)},[]),Ee=()=>{let me;return j!=null&&j.items?me=ge.createElement(_.default,Object.assign({},j)):typeof rt=="function"?me=rt():me=rt,q&&(me=q(me)),me=ge.Children.only(typeof me=="string"?ge.createElement("span",null,me):me),ge.createElement(N.J,{prefixCls:`${or}-menu`,expandIcon:ge.createElement("span",{className:`${or}-menu-submenu-arrow`},ge.createElement(ue.Z,{className:`${or}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ge,validator:qe=>{let{mode:_t}=qe}},me)};return yr(ge.createElement(ne.Z,Object.assign({alignPoint:u},(0,f.Z)(W,["rootClassName"]),{mouseEnterDelay:ke,mouseLeaveDelay:fe,visible:w,builtinPlacements:ae,arrow:!!le,overlayClassName:T,prefixCls:or,getPopupContainer:ce||ut,transitionName:Ht,trigger:p,overlay:Ee,placement:cr,onVisibleChange:Be}),L))};function se(W){return Object.assign(Object.assign({},W),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const te=(0,h.Z)(K,"dropdown",W=>W,se),X=W=>ge.createElement(te,Object.assign({},W),ge.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=X,er.Z=K},38854:function(xn,er,x){"use strict";x.d(er,{Z:function(){return R}});var ge=x(91857),ue=x(92310),Q=x.n(ue),Te=x(59301),ne=x(18785),G=x(3113),B=x(36355),f=x(81327),E=x(33234),h=x(47211),Z=function(I,Y){var K={};for(var se in I)Object.prototype.hasOwnProperty.call(I,se)&&Y.indexOf(se)<0&&(K[se]=I[se]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,se=Object.getOwnPropertySymbols(I);te<se.length;te++)Y.indexOf(se[te])<0&&Object.prototype.propertyIsEnumerable.call(I,se[te])&&(K[se[te]]=I[se[te]]);return K};const S=I=>{const{getPopupContainer:Y,getPrefixCls:K,direction:se}=Te.useContext(B.E_),{prefixCls:te,type:X="default",danger:W,disabled:j,loading:le,onClick:he,htmlType:Ne,children:Ce,className:je,menu:q,arrow:ce,autoFocus:k,overlay:ot,trigger:Le,align:xe,open:Re,onOpenChange:ve,placement:ke,getPopupContainer:fe,href:ye,icon:at=Te.createElement(ne.Z,null),title:rt,buttonsRender:nt=Ee=>Ee,mouseEnterDelay:ut,mouseLeaveDelay:Nt,overlayClassName:zt,overlayStyle:Ht,destroyPopupOnHide:cr,dropdownRender:or}=I,yr=Z(I,["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"]),dr=K("dropdown",te),$=`${dr}-button`,[Xe,L]=(0,h.Z)(dr),p={menu:q,arrow:ce,autoFocus:k,align:xe,disabled:j,trigger:j?[]:Le,onOpenChange:ve,getPopupContainer:fe||Y,mouseEnterDelay:ut,mouseLeaveDelay:Nt,overlayClassName:zt,overlayStyle:Ht,destroyPopupOnHide:cr,dropdownRender:or},{compactSize:u,compactItemClassnames:w}=(0,E.ri)(dr,se),ee=Q()($,w,je,L);"overlay"in I&&(p.overlay=ot),"open"in I&&(p.open=Re),"placement"in I?p.placement=ke:p.placement=se==="rtl"?"bottomLeft":"bottomRight";const Be=Te.createElement(G.ZP,{type:X,danger:W,disabled:j,loading:le,onClick:he,htmlType:Ne,href:ye,title:rt},Ce),T=Te.createElement(G.ZP,{type:X,danger:W,icon:at}),[ae,Ge]=nt([Be,T]);return Xe(Te.createElement(f.Z.Compact,Object.assign({className:ee,size:u,block:!0},yr),ae,Te.createElement(ge.Z,Object.assign({},p),Ge)))};S.__ANT_BUTTON=!0;var _=S;const N=ge.Z;N.Button=_;var R=N},47211:function(xn,er,x){"use strict";x.d(er,{Z:function(){return Z}});var ge=x(17313),ue=x(13826),Q=x(92899),Te=x(29878),ne=x(19447),G=x(83116),B=x(37613),E=S=>{const{componentCls:_,menuCls:N,colorError:R,colorTextLightSolid:I}=S,Y=`${N}-item`;return{[`${_}, ${_}-menu-submenu`]:{[`${N} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:R,"&:hover":{color:I,backgroundColor:R}}}}}};const h=S=>{const{componentCls:_,menuCls:N,zIndexPopup:R,dropdownArrowDistance:I,sizePopupArrow:Y,antCls:K,iconCls:se,motionDurationMid:te,dropdownPaddingVertical:X,fontSize:W,dropdownEdgeChildPadding:j,colorTextDisabled:le,fontSizeIcon:he,controlPaddingHorizontal:Ne,colorBgElevated:Ce}=S;return[{[_]:Object.assign(Object.assign({},(0,ge.Wf)(S)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,display:"block","&::before":{position:"absolute",insetBlock:-I+Y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${se}-down, & > ${K}-btn-icon > ${se}-down`]:{fontSize:he}},[`${_}-wrap`]:{position:"relative",[`${K}-btn > ${se}-down`]:{fontSize:he},[`${se}-down::before`]:{transition:`transform ${te}`}},[`${_}-wrap-open`]:{[`${se}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottomLeft,
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottomLeft,
&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottom,
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottom,
&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottomRight,
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottomRight`]:{animationName:ue.fJ},[`&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-topLeft,
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-topLeft,
&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-top,
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-top,
&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-topRight,
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-topRight`]:{animationName:ue.Qt},[`&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottomLeft,
&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottom,
&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottomRight`]:{animationName:ue.Uw},[`&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-topLeft,
&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-top,
&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-topRight`]:{animationName:ue.ly}})},(0,ne.ZP)(S,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_} ${N}`]:{position:"relative",margin:0},[`${N}-submenu-popup`]:{position:"absolute",zIndex:R,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_}, ${_}-menu-submenu`]:{[N]:Object.assign(Object.assign({padding:j,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary},(0,ge.Qy)(S)),{[`${N}-item-group-title`]:{padding:`${X}px ${Ne}px`,color:S.colorTextDescription,transition:`all ${te}`},[`${N}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${N}-item-icon`]:{minWidth:W,marginInlineEnd:S.marginXS,fontSize:S.fontSizeSM},[`${N}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${N}-item, ${N}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${X}px ${Ne}px`,color:S.colorText,fontWeight:"normal",fontSize:W,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:S.borderRadiusSM,"&:hover, &-active":{backgroundColor:S.controlItemBgHover}},(0,ge.Qy)(S)),{"&-selected":{color:S.colorPrimary,backgroundColor:S.controlItemBgActive,"&:hover, &-active":{backgroundColor:S.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${S.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:S.colorSplit},[`${_}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,[`${_}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:S.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${N}-item-group-list`]:{margin:`0 ${S.marginXS}px`,padding:0,listStyle:"none"},[`${N}-submenu-title`]:{paddingInlineEnd:Ne+S.fontSizeSM},[`${N}-submenu-vertical`]:{position:"relative"},[`${N}-submenu${N}-submenu-disabled ${_}-menu-submenu-title`]:{[`&, ${_}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Ce,cursor:"not-allowed"}},[`${N}-submenu-selected ${_}-menu-submenu-title`]:{color:S.colorPrimary}})}},[(0,ue.oN)(S,"slide-up"),(0,ue.oN)(S,"slide-down"),(0,Q.Fm)(S,"move-up"),(0,Q.Fm)(S,"move-down"),(0,Te._y)(S,"zoom-big")]]};var Z=(0,G.Z)("Dropdown",(S,_)=>{let{rootPrefixCls:N}=_;const{marginXXS:R,sizePopupArrow:I,controlHeight:Y,fontSize:K,lineHeight:se,paddingXXS:te,componentCls:X,borderRadiusLG:W}=S,j=(Y-K*se)/2,{dropdownArrowOffset:le}=(0,ne.fS)({contentRadius:W}),he=(0,B.TS)(S,{menuCls:`${X}-menu`,rootPrefixCls:N,dropdownArrowDistance:I/2+R,dropdownArrowOffset:le,dropdownPaddingVertical:j,dropdownEdgeChildPadding:te});return[h(he),E(he)]},S=>({zIndexPopup:S.zIndexPopupBase+50}))},64165:function(xn,er,x){"use strict";x.d(er,{Z:function(){return te}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ne=x(9763),G=x(64993),B=x(88088),E=()=>{const[,X]=(0,B.Z)(),j=new G.C(X.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Q.createElement("svg",{style:j,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("g",{fill:"none",fillRule:"evenodd"},Q.createElement("g",{transform:"translate(24 31.67)"},Q.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Q.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"}),Q.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)"}),Q.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"}),Q.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"})),Q.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"}),Q.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Q.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Q.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Z=()=>{const[,X]=(0,B.Z)(),{colorFill:W,colorFillTertiary:j,colorFillQuaternary:le,colorBgContainer:he}=X,{borderColor:Ne,shadowColor:Ce,contentColor:je}=(0,Q.useMemo)(()=>({borderColor:new G.C(W).onBackground(he).toHexShortString(),shadowColor:new G.C(j).onBackground(he).toHexShortString(),contentColor:new G.C(le).onBackground(he).toHexShortString()}),[W,j,le,he]);return Q.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Q.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),Q.createElement("g",{fillRule:"nonzero",stroke:Ne},Q.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"}),Q.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:je}))))},S=x(83116),_=x(37613);const N=X=>{const{componentCls:W,margin:j,marginXS:le,marginXL:he,fontSize:Ne,lineHeight:Ce}=X;return{[W]:{marginInline:le,fontSize:Ne,lineHeight:Ce,textAlign:"center",[`${W}-image`]:{height:X.emptyImgHeight,marginBottom:le,opacity:X.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${W}-description`]:{color:X.colorText},[`${W}-footer`]:{marginTop:j},"&-normal":{marginBlock:he,color:X.colorTextDisabled,[`${W}-description`]:{color:X.colorTextDisabled},[`${W}-image`]:{height:X.emptyImgHeightMD}},"&-small":{marginBlock:le,color:X.colorTextDisabled,[`${W}-image`]:{height:X.emptyImgHeightSM}}}}};var R=(0,S.Z)("Empty",X=>{const{componentCls:W,controlHeightLG:j}=X,le=(0,_.TS)(X,{emptyImgCls:`${W}-img`,emptyImgHeight:j*2.5,emptyImgHeightMD:j,emptyImgHeightSM:j*.875});return[N(le)]}),I=function(X,W){var j={};for(var le in X)Object.prototype.hasOwnProperty.call(X,le)&&W.indexOf(le)<0&&(j[le]=X[le]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,le=Object.getOwnPropertySymbols(X);he<le.length;he++)W.indexOf(le[he])<0&&Object.prototype.propertyIsEnumerable.call(X,le[he])&&(j[le[he]]=X[le[he]]);return j};const Y=Q.createElement(E,null),K=Q.createElement(Z,null),se=X=>{var{className:W,rootClassName:j,prefixCls:le,image:he=Y,description:Ne,children:Ce,imageStyle:je,style:q}=X,ce=I(X,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:k,direction:ot,empty:Le}=Q.useContext(Te.E_),xe=k("empty",le),[Re,ve]=R(xe),[ke]=(0,ne.Z)("Empty"),fe=typeof Ne!="undefined"?Ne:ke==null?void 0:ke.description,ye=typeof fe=="string"?fe:"empty";let at=null;return typeof he=="string"?at=Q.createElement("img",{alt:ye,src:he}):at=he,Re(Q.createElement("div",Object.assign({className:ue()(ve,xe,Le==null?void 0:Le.className,{[`${xe}-normal`]:he===K,[`${xe}-rtl`]:ot==="rtl"},W,j),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),q)},ce),Q.createElement("div",{className:`${xe}-image`,style:je},at),fe&&Q.createElement("div",{className:`${xe}-description`},fe),Ce&&Q.createElement("div",{className:`${xe}-footer`},Ce)))};se.PRESENTED_IMAGE_DEFAULT=Y,se.PRESENTED_IMAGE_SIMPLE=K;var te=se},8628:function(xn,er,x){"use strict";var ge=x(59301),ue=x(34280),Q=x(56762),Te=x(69507);function ne(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const B=(0,ge.useRef)({}),f=(0,Q.Z)(),E=(0,Te.ZP)();return(0,ue.Z)(()=>{const h=E.subscribe(Z=>{B.current=Z,G&&f()});return()=>E.unsubscribe(h)},[]),B.current}er.Z=ne},5871:function(xn,er,x){"use strict";x.d(er,{Z:function(){return At}});var ge=x(84105),ue=x(87395),Q=x(92310),Te=x.n(Q),ne=x(92413),G=x(400),B=x(39559),f=x(33606),E=x(37061),h=x(6909),Z=x(4771);function S(){return typeof BigInt=="function"}function _(Pe){return!Pe&&Pe!==0&&!Number.isNaN(Pe)||!String(Pe).trim()}function N(Pe){var Ie=Pe.trim(),vt=Ie.startsWith("-");vt&&(Ie=Ie.slice(1)),Ie=Ie.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ie.startsWith(".")&&(Ie="0".concat(Ie));var Ut=Ie||"0",Rt=Ut.split("."),hr=Rt[0]||"0",br=Rt[1]||"0";hr==="0"&&br==="0"&&(vt=!1);var Mr=vt?"-":"";return{negative:vt,negativeStr:Mr,trimStr:Ut,integerStr:hr,decimalStr:br,fullStr:"".concat(Mr).concat(Ut)}}function R(Pe){var Ie=String(Pe);return!Number.isNaN(Number(Ie))&&Ie.includes("e")}function I(Pe){var Ie=String(Pe);if(R(Pe)){var vt=Number(Ie.slice(Ie.indexOf("e-")+2)),Ut=Ie.match(/\.(\d+)/);return Ut!=null&&Ut[1]&&(vt+=Ut[1].length),vt}return Ie.includes(".")&&K(Ie)?Ie.length-Ie.indexOf(".")-1:0}function Y(Pe){var Ie=String(Pe);if(R(Pe)){if(Pe>Number.MAX_SAFE_INTEGER)return String(S()?BigInt(Pe).toString():Number.MAX_SAFE_INTEGER);if(Pe<Number.MIN_SAFE_INTEGER)return String(S()?BigInt(Pe).toString():Number.MIN_SAFE_INTEGER);Ie=Pe.toFixed(I(Ie))}return N(Ie).fullStr}function K(Pe){return typeof Pe=="number"?!Number.isNaN(Pe):Pe?/^\s*-?\d+(\.\d+)?\s*$/.test(Pe)||/^\s*-?\d+\.\s*$/.test(Pe)||/^\s*-?\.\d+\s*$/.test(Pe):!1}var se=function(){function Pe(Ie){if((0,h.Z)(this,Pe),(0,G.Z)(this,"origin",""),(0,G.Z)(this,"negative",void 0),(0,G.Z)(this,"integer",void 0),(0,G.Z)(this,"decimal",void 0),(0,G.Z)(this,"decimalLen",void 0),(0,G.Z)(this,"empty",void 0),(0,G.Z)(this,"nan",void 0),_(Ie)){this.empty=!0;return}if(this.origin=String(Ie),Ie==="-"||Number.isNaN(Ie)){this.nan=!0;return}var vt=Ie;if(R(vt)&&(vt=Number(vt)),vt=typeof vt=="string"?vt:Y(vt),K(vt)){var Ut=N(vt);this.negative=Ut.negative;var Rt=Ut.trimStr.split(".");this.integer=BigInt(Rt[0]);var hr=Rt[1]||"0";this.decimal=BigInt(hr),this.decimalLen=hr.length}else this.nan=!0}return(0,Z.Z)(Pe,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(vt){var Ut="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(vt,"0"));return BigInt(Ut)}},{key:"negate",value:function(){var vt=new Pe(this.toString());return vt.negative=!vt.negative,vt}},{key:"cal",value:function(vt,Ut,Rt){var hr=Math.max(this.getDecimalStr().length,vt.getDecimalStr().length),br=this.alignDecimal(hr),Mr=vt.alignDecimal(hr),Ur=Ut(br,Mr).toString(),Qr=Rt(hr),rr=N(Ur),Ar=rr.negativeStr,jr=rr.trimStr,cn="".concat(Ar).concat(jr.padStart(Qr+1,"0"));return new Pe("".concat(cn.slice(0,-Qr),".").concat(cn.slice(-Qr)))}},{key:"add",value:function(vt){if(this.isInvalidate())return new Pe(vt);var Ut=new Pe(vt);return Ut.isInvalidate()?this:this.cal(Ut,function(Rt,hr){return Rt+hr},function(Rt){return Rt})}},{key:"multi",value:function(vt){var Ut=new Pe(vt);return this.isInvalidate()||Ut.isInvalidate()?new Pe(NaN):this.cal(Ut,function(Rt,hr){return Rt*hr},function(Rt){return Rt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(vt){return this.toString()===(vt==null?void 0:vt.toString())}},{key:"lessEquals",value:function(vt){return this.add(vt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return vt?this.isInvalidate()?"":N("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Pe}(),te=function(){function Pe(Ie){if((0,h.Z)(this,Pe),(0,G.Z)(this,"origin",""),(0,G.Z)(this,"number",void 0),(0,G.Z)(this,"empty",void 0),_(Ie)){this.empty=!0;return}this.origin=String(Ie),this.number=Number(Ie)}return(0,Z.Z)(Pe,[{key:"negate",value:function(){return new Pe(-this.toNumber())}},{key:"add",value:function(vt){if(this.isInvalidate())return new Pe(vt);var Ut=Number(vt);if(Number.isNaN(Ut))return this;var Rt=this.number+Ut;if(Rt>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(Rt<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var hr=Math.max(I(this.number),I(Ut));return new Pe(Rt.toFixed(hr))}},{key:"multi",value:function(vt){var Ut=Number(vt);if(this.isInvalidate()||Number.isNaN(Ut))return new Pe(NaN);var Rt=this.number*Ut;if(Rt>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(Rt<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var hr=Math.max(I(this.number),I(Ut));return new Pe(Rt.toFixed(hr))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(vt){return this.toNumber()===(vt==null?void 0:vt.toNumber())}},{key:"lessEquals",value:function(vt){return this.add(vt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return vt?this.isInvalidate()?"":Y(this.number):this.origin}}]),Pe}();function X(Pe){return S()?new se(Pe):new te(Pe)}function W(Pe,Ie,vt){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Pe==="")return"";var Rt=N(Pe),hr=Rt.negativeStr,br=Rt.integerStr,Mr=Rt.decimalStr,Ur="".concat(Ie).concat(Mr),Qr="".concat(hr).concat(br);if(vt>=0){var rr=Number(Mr[vt]);if(rr>=5&&!Ut){var Ar=X(Pe).add("".concat(hr,"0.").concat("0".repeat(vt)).concat(10-rr));return W(Ar.toString(),Ie,vt,Ut)}return vt===0?Qr:"".concat(Qr).concat(Ie).concat(Mr.padEnd(vt,"0").slice(0,vt))}return Ur===".0"?Qr:"".concat(Qr).concat(Ur)}var j=X,le=x(93681),he=x(34280),Ne=x(8654),Ce=x(59301),je=x(48736);function q(Pe,Ie){var vt=(0,Ce.useRef)(null);function Ut(){try{var hr=Pe.selectionStart,br=Pe.selectionEnd,Mr=Pe.value,Ur=Mr.substring(0,hr),Qr=Mr.substring(br);vt.current={start:hr,end:br,value:Mr,beforeTxt:Ur,afterTxt:Qr}}catch(rr){}}function Rt(){if(Pe&&vt.current&&Ie)try{var hr=Pe.value,br=vt.current,Mr=br.beforeTxt,Ur=br.afterTxt,Qr=br.start,rr=hr.length;if(hr.endsWith(Ur))rr=hr.length-vt.current.afterTxt.length;else if(hr.startsWith(Mr))rr=Mr.length;else{var Ar=Mr[Qr-1],jr=hr.indexOf(Ar,Qr-1);jr!==-1&&(rr=jr+1)}Pe.setSelectionRange(rr,rr)}catch(cn){(0,je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(cn.message))}}return[Ut,Rt]}var ce=x(49658),k=function(){var Ie=(0,Ce.useState)(!1),vt=(0,f.Z)(Ie,2),Ut=vt[0],Rt=vt[1];return(0,he.Z)(function(){Rt((0,ce.Z)())},[]),Ut},ot=k,Le=x(16089),xe=200,Re=600;function ve(Pe){var Ie=Pe.prefixCls,vt=Pe.upNode,Ut=Pe.downNode,Rt=Pe.upDisabled,hr=Pe.downDisabled,br=Pe.onStep,Mr=Ce.useRef(),Ur=Ce.useRef([]),Qr=Ce.useRef();Qr.current=br;var rr=function(){clearTimeout(Mr.current)},Ar=function(ti,yi){ti.preventDefault(),rr(),Qr.current(yi);function ci(){Qr.current(yi),Mr.current=setTimeout(ci,xe)}Mr.current=setTimeout(ci,Re)};Ce.useEffect(function(){return function(){rr(),Ur.current.forEach(function(Pr){return Le.Z.cancel(Pr)})}},[]);var jr=ot();if(jr)return null;var cn="".concat(Ie,"-handler"),Tn=Te()(cn,"".concat(cn,"-up"),(0,G.Z)({},"".concat(cn,"-up-disabled"),Rt)),en=Te()(cn,"".concat(cn,"-down"),(0,G.Z)({},"".concat(cn,"-down-disabled"),hr)),Qn=function(){return Ur.current.push((0,Le.Z)(rr))},li={unselectable:"on",role:"button",onMouseUp:Qn,onMouseLeave:Qn};return Ce.createElement("div",{className:"".concat(cn,"-wrap")},Ce.createElement("span",(0,ne.Z)({},li,{onMouseDown:function(ti){Ar(ti,!0)},"aria-label":"Increase Value","aria-disabled":Rt,className:Tn}),vt||Ce.createElement("span",{unselectable:"on",className:"".concat(Ie,"-handler-up-inner")})),Ce.createElement("span",(0,ne.Z)({},li,{onMouseDown:function(ti){Ar(ti,!1)},"aria-label":"Decrease Value","aria-disabled":hr,className:en}),Ut||Ce.createElement("span",{unselectable:"on",className:"".concat(Ie,"-handler-down-inner")})))}function ke(Pe){var Ie=typeof Pe=="number"?Y(Pe):N(Pe).fullStr,vt=Ie.includes(".");return vt?N(Ie.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Pe+"0"}var fe=x(5643),ye=function(){var Pe=(0,Ce.useRef)(0),Ie=function(){Le.Z.cancel(Pe.current)};return(0,Ce.useEffect)(function(){return Ie},[]),function(vt){Ie(),Pe.current=(0,Le.Z)(function(){vt()})}},at=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],rt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],nt=function(Ie,vt){return Ie||vt.isEmpty()?vt.toString():vt.toNumber()},ut=function(Ie){var vt=j(Ie);return vt.isInvalidate()?null:vt},Nt=Ce.forwardRef(function(Pe,Ie){var vt,Ut=Pe.prefixCls,Rt=Ut===void 0?"rc-input-number":Ut,hr=Pe.className,br=Pe.style,Mr=Pe.min,Ur=Pe.max,Qr=Pe.step,rr=Qr===void 0?1:Qr,Ar=Pe.defaultValue,jr=Pe.value,cn=Pe.disabled,Tn=Pe.readOnly,en=Pe.upHandler,Qn=Pe.downHandler,li=Pe.keyboard,Pr=Pe.controls,ti=Pr===void 0?!0:Pr,yi=Pe.classNames,ci=Pe.stringMode,Ci=Pe.parser,hi=Pe.formatter,Ri=Pe.precision,ba=Pe.decimalSeparator,Xi=Pe.onChange,_i=Pe.onInput,oi=Pe.onPressEnter,Qi=Pe.onStep,be=(0,E.Z)(Pe,at),Ue="".concat(Rt,"-input"),Me=Ce.useRef(null),lt=Ce.useState(!1),Zt=(0,f.Z)(lt,2),Qt=Zt[0],Sr=Zt[1],fr=Ce.useRef(!1),Tr=Ce.useRef(!1),Wr=Ce.useRef(!1),An=Ce.useState(function(){return j(jr!=null?jr:Ar)}),$r=(0,f.Z)(An,2),Rr=$r[0],qr=$r[1];function mn(dn){jr===void 0&&qr(dn)}var sn=Ce.useCallback(function(dn,rn){if(!rn)return Ri>=0?Ri:Math.max(I(dn),I(rr))},[Ri,rr]),Sn=Ce.useCallback(function(dn){var rn=String(dn);if(Ci)return Ci(rn);var Ln=rn;return ba&&(Ln=Ln.replace(ba,".")),Ln.replace(/[^\w.-]+/g,"")},[Ci,ba]),Hn=Ce.useRef(""),pi=Ce.useCallback(function(dn,rn){if(hi)return hi(dn,{userTyping:rn,input:String(Hn.current)});var Ln=typeof dn=="number"?Y(dn):dn;if(!rn){var wn=sn(Ln,rn);if(K(Ln)&&(ba||wn>=0)){var Kn=ba||".";Ln=W(Ln,Kn,wn)}}return Ln},[hi,sn,ba]),In=Ce.useState(function(){var dn=Ar!=null?Ar:jr;return Rr.isInvalidate()&&["string","number"].includes((0,B.Z)(dn))?Number.isNaN(dn)?"":dn:pi(Rr.toString(),!1)}),an=(0,f.Z)(In,2),jt=an[0],Wt=an[1];Hn.current=jt;function nr(dn,rn){Wt(pi(dn.isInvalidate()?dn.toString(!1):dn.toString(!rn),rn))}var qt=Ce.useMemo(function(){return ut(Ur)},[Ur,Ri]),Xt=Ce.useMemo(function(){return ut(Mr)},[Mr,Ri]),Nr=Ce.useMemo(function(){return!qt||!Rr||Rr.isInvalidate()?!1:qt.lessEquals(Rr)},[qt,Rr]),Lr=Ce.useMemo(function(){return!Xt||!Rr||Rr.isInvalidate()?!1:Rr.lessEquals(Xt)},[Xt,Rr]),Jr=q(Me.current,Qt),_n=(0,f.Z)(Jr,2),Dn=_n[0],Ai=_n[1],Yn=function(rn){return qt&&!rn.lessEquals(qt)?qt:Xt&&!Xt.lessEquals(rn)?Xt:null},ki=function(rn){return!Yn(rn)},qn=function(rn,Ln){var wn=rn,Kn=ki(wn)||wn.isEmpty();if(!wn.isEmpty()&&!Ln&&(wn=Yn(wn)||wn,Kn=!0),!Tn&&!cn&&Kn){var ui=wn.toString(),Fi=sn(ui,Ln);return Fi>=0&&(wn=j(W(ui,".",Fi)),ki(wn)||(wn=j(W(ui,".",Fi,!0)))),wn.equals(Rr)||(mn(wn),Xi==null||Xi(wn.isEmpty()?null:nt(ci,wn)),jr===void 0&&nr(wn,Ln)),wn}return Rr},Nn=ye(),ln=function dn(rn){if(Dn(),Hn.current=rn,Wt(rn),!Tr.current){var Ln=Sn(rn),wn=j(Ln);wn.isNaN()||qn(wn,!0)}_i==null||_i(rn),Nn(function(){var Kn=rn;Ci||(Kn=rn.replace(/。/g,".")),Kn!==rn&&dn(Kn)})},wi=function(){Tr.current=!0},Mn=function(){Tr.current=!1,ln(Me.current.value)},ni=function(rn){ln(rn.target.value)},Si=function(rn){var Ln;if(!(rn&&Nr||!rn&&Lr)){fr.current=!1;var wn=j(Wr.current?ke(rr):rr);rn||(wn=wn.negate());var Kn=(Rr||j(0)).add(wn.toString()),ui=qn(Kn,!1);Qi==null||Qi(nt(ci,ui),{offset:Wr.current?ke(rr):rr,type:rn?"up":"down"}),(Ln=Me.current)===null||Ln===void 0||Ln.focus()}},Mi=function(rn){var Ln=j(Sn(jt)),wn=Ln;Ln.isNaN()?wn=qn(Rr,rn):wn=qn(Ln,rn),jr!==void 0?nr(Rr,!1):wn.isNaN()||nr(wn,!1)},Wn=function(){fr.current=!0},Pi=function(rn){var Ln=rn.key,wn=rn.shiftKey;fr.current=!0,Wr.current=wn,Ln==="Enter"&&(Tr.current||(fr.current=!1),Mi(!1),oi==null||oi(rn)),li!==!1&&!Tr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ln)&&(Si(Ln==="Up"||Ln==="ArrowUp"),rn.preventDefault())},Ji=function(){fr.current=!1,Wr.current=!1},si=function(){Mi(!1),Sr(!1),fr.current=!1};return(0,he.o)(function(){Rr.isInvalidate()||nr(Rr,!1)},[Ri]),(0,he.o)(function(){var dn=j(jr);qr(dn);var rn=j(Sn(jt));(!dn.equals(rn)||!fr.current||hi)&&nr(dn,fr.current)},[jr]),(0,he.o)(function(){hi&&Ai()},[jt]),Ce.createElement("div",{className:Te()(Rt,yi==null?void 0:yi.input,hr,(vt={},(0,G.Z)(vt,"".concat(Rt,"-focused"),Qt),(0,G.Z)(vt,"".concat(Rt,"-disabled"),cn),(0,G.Z)(vt,"".concat(Rt,"-readonly"),Tn),(0,G.Z)(vt,"".concat(Rt,"-not-a-number"),Rr.isNaN()),(0,G.Z)(vt,"".concat(Rt,"-out-of-range"),!Rr.isInvalidate()&&!ki(Rr)),vt)),style:br,onFocus:function(){Sr(!0)},onBlur:si,onKeyDown:Pi,onKeyUp:Ji,onCompositionStart:wi,onCompositionEnd:Mn,onBeforeInput:Wn},ti&&Ce.createElement(ve,{prefixCls:Rt,upNode:en,downNode:Qn,upDisabled:Nr,downDisabled:Lr,onStep:Si}),Ce.createElement("div",{className:"".concat(Ue,"-wrap")},Ce.createElement("input",(0,ne.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Mr,"aria-valuemax":Ur,"aria-valuenow":Rr.isInvalidate()?null:Rr.toString(),step:rr},be,{ref:(0,Ne.sQ)(Me,Ie),className:Ue,value:jt,onChange:ni,disabled:cn,readOnly:Tn}))))}),zt=Ce.forwardRef(function(Pe,Ie){var vt=Pe.disabled,Ut=Pe.style,Rt=Pe.prefixCls,hr=Pe.value,br=Pe.prefix,Mr=Pe.suffix,Ur=Pe.addonBefore,Qr=Pe.addonAfter,rr=Pe.classes,Ar=Pe.className,jr=Pe.classNames,cn=(0,E.Z)(Pe,rt),Tn=Ce.useRef(null),en=function(li){Tn.current&&(0,fe.nH)(Tn.current,li)};return Ce.createElement(le.BaseInput,{inputElement:Ce.createElement(Nt,(0,ne.Z)({prefixCls:Rt,disabled:vt,classNames:jr,ref:(0,Ne.sQ)(Tn,Ie)},cn)),className:Ar,triggerFocus:en,prefixCls:Rt,value:hr,disabled:vt,style:Ut,prefix:br,suffix:Mr,addonAfter:Qr,addonBefore:Ur,classes:rr,classNames:jr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});zt.displayName="InputNumber";var Ht=zt,cr=Ht,or=x(19080),yr=x(36355),dr=x(92736),$=x(1684),Xe=x(19716),L=x(32441),p=x(33234),u=x(9937),w=x(17313),ee=x(74207),Be=x(83116),T=x(37613);const ae=(Pe,Ie)=>{let{componentCls:vt,borderRadiusSM:Ut,borderRadiusLG:Rt}=Pe;const hr=Ie==="lg"?Rt:Ut;return{[`&-${Ie}`]:{[`${vt}-handler-wrap`]:{borderStartEndRadius:hr,borderEndEndRadius:hr},[`${vt}-handler-up`]:{borderStartEndRadius:hr},[`${vt}-handler-down`]:{borderEndEndRadius:hr}}}},Ge=Pe=>{const{componentCls:Ie,lineWidth:vt,lineType:Ut,colorBorder:Rt,borderRadius:hr,fontSizeLG:br,controlHeightLG:Mr,controlHeightSM:Ur,colorError:Qr,paddingInlineSM:rr,colorTextDescription:Ar,motionDurationMid:jr,handleHoverColor:cn,paddingInline:Tn,paddingBlock:en,handleBg:Qn,handleActiveBg:li,colorTextDisabled:Pr,borderRadiusSM:ti,borderRadiusLG:yi,controlWidth:ci,handleVisible:Ci,handleBorderColor:hi}=Pe;return[{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Pe)),(0,u.ik)(Pe)),(0,u.bi)(Pe,Ie)),{display:"inline-block",width:ci,margin:0,padding:0,border:`${vt}px ${Ut} ${Rt}`,borderRadius:hr,"&-rtl":{direction:"rtl",[`${Ie}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:br,borderRadius:yi,[`input${Ie}-input`]:{height:Mr-2*vt}},"&-sm":{padding:0,borderRadius:ti,[`input${Ie}-input`]:{height:Ur-2*vt,padding:`0 ${rr}px`}},"&:hover":Object.assign({},(0,u.pU)(Pe)),"&-focused":Object.assign({},(0,u.M1)(Pe)),"&-out-of-range":{[`${Ie}-input-wrap`]:{input:{color:Qr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Pe)),(0,u.s7)(Pe)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ie}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ie}-group-addon`]:{borderRadius:yi,fontSize:Pe.fontSizeLG}},"&-sm":{[`${Ie}-group-addon`]:{borderRadius:ti}},[`${Ie}-wrapper-disabled > ${Ie}-group-addon`]:Object.assign({},(0,u.Xy)(Pe))}}),[`&-disabled ${Ie}-input`]:{cursor:"not-allowed"},[Ie]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Pe)),{width:"100%",padding:`${en}px ${Tn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:hr,outline:0,transition:`all ${jr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,u.nz)(Pe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ie]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ie}-handler-wrap, &-focused ${Ie}-handler-wrap`]:{opacity:1},[`${Ie}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Pe.handleWidth,height:"100%",background:Qn,borderStartStartRadius:0,borderStartEndRadius:hr,borderEndEndRadius:hr,borderEndStartRadius:0,opacity:Ci===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${jr} linear ${jr}`,[`${Ie}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Ie}-handler-up-inner,
${Ie}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Pe.handleFontSize}}},[`${Ie}-handler`]:{height:"50%",overflow:"hidden",color:Ar,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${vt}px ${Ut} ${hi}`,transition:`all ${jr} linear`,"&:active":{background:li},"&:hover":{height:"60%",[`
${Ie}-handler-up-inner,
${Ie}-handler-down-inner
`]:{color:cn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,w.Ro)()),{color:Ar,transition:`all ${jr} linear`,userSelect:"none"})},[`${Ie}-handler-up`]:{borderStartEndRadius:hr},[`${Ie}-handler-down`]:{borderBlockStart:`${vt}px ${Ut} ${hi}`,borderEndEndRadius:hr}},ae(Pe,"lg")),ae(Pe,"sm")),{"&-disabled, &-readonly":{[`${Ie}-handler-wrap`]:{display:"none"},[`${Ie}-input`]:{color:"inherit"}},[`
${Ie}-handler-up-disabled,
${Ie}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Ie}-handler-up-disabled:hover &-handler-up-inner,
${Ie}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Pr}})},{[`${Ie}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ie}-handler-down`]:{borderBlockStartWidth:0}}}]},Ee=Pe=>{const{componentCls:Ie,paddingBlock:vt,paddingInline:Ut,inputAffixPadding:Rt,controlWidth:hr,borderRadiusLG:br,borderRadiusSM:Mr}=Pe;return{[`${Ie}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,u.ik)(Pe)),(0,u.bi)(Pe,`${Ie}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:hr,padding:0,paddingInlineStart:Ut,"&-lg":{borderRadius:br},"&-sm":{borderRadius:Mr},[`&:not(${Ie}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,u.pU)(Pe)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ie}-disabled`]:{background:"transparent"},[`> div${Ie}`]:{width:"100%",border:"none",outline:"none",[`&${Ie}-focused`]:{boxShadow:"none !important"}},[`input${Ie}-input`]:{padding:`${vt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ie}-handler-wrap`]:{zIndex:2},[Ie]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Rt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ut,marginInlineStart:Rt}}})}};var me=(0,Be.Z)("InputNumber",Pe=>{const Ie=(0,T.TS)(Pe,(0,u.e5)(Pe));return[Ge(Ie),Ee(Ie),(0,ee.c)(Ie)]},Pe=>Object.assign(Object.assign({},(0,u.TM)(Pe)),{controlWidth:90,handleWidth:Pe.controlHeightSM-Pe.lineWidth*2,handleFontSize:Pe.fontSize/2,handleVisible:"auto",handleActiveBg:Pe.colorFillAlter,handleBg:Pe.colorBgContainer,handleHoverColor:Pe.colorPrimary,handleBorderColor:Pe.colorBorder})),qe=function(Pe,Ie){var vt={};for(var Ut in Pe)Object.prototype.hasOwnProperty.call(Pe,Ut)&&Ie.indexOf(Ut)<0&&(vt[Ut]=Pe[Ut]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Ut=Object.getOwnPropertySymbols(Pe);Rt<Ut.length;Rt++)Ie.indexOf(Ut[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ut[Rt])&&(vt[Ut[Rt]]=Pe[Ut[Rt]]);return vt};const _t=Ce.forwardRef((Pe,Ie)=>{const{getPrefixCls:vt,direction:Ut}=Ce.useContext(yr.E_),Rt=Ce.useRef(null);Ce.useImperativeHandle(Ie,()=>Rt.current);const{className:hr,rootClassName:br,size:Mr,disabled:Ur,prefixCls:Qr,addonBefore:rr,addonAfter:Ar,prefix:jr,bordered:cn=!0,readOnly:Tn,status:en,controls:Qn}=Pe,li=qe(Pe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Pr=vt("input-number",Qr),[ti,yi]=me(Pr),{compactSize:ci,compactItemClassnames:Ci}=(0,p.ri)(Pr,Ut);let hi=Ce.createElement(ue.Z,{className:`${Pr}-handler-up-inner`}),Ri=Ce.createElement(ge.Z,{className:`${Pr}-handler-down-inner`});const ba=typeof Qn=="boolean"?Qn:void 0;typeof Qn=="object"&&(hi=typeof Qn.upIcon=="undefined"?hi:Ce.createElement("span",{className:`${Pr}-handler-up-inner`},Qn.upIcon),Ri=typeof Qn.downIcon=="undefined"?Ri:Ce.createElement("span",{className:`${Pr}-handler-down-inner`},Qn.downIcon));const{hasFeedback:Xi,status:_i,isFormItemInput:oi,feedbackIcon:Qi}=Ce.useContext(L.aM),be=(0,or.F)(_i,en),Ue=(0,Xe.Z)(fr=>{var Tr;return(Tr=Mr!=null?Mr:ci)!==null&&Tr!==void 0?Tr:fr}),Me=Ce.useContext($.Z),lt=Ur!=null?Ur:Me,Zt=Te()({[`${Pr}-lg`]:Ue==="large",[`${Pr}-sm`]:Ue==="small",[`${Pr}-rtl`]:Ut==="rtl",[`${Pr}-borderless`]:!cn,[`${Pr}-in-form-item`]:oi},(0,or.Z)(Pr,be),Ci,yi),Qt=`${Pr}-group`,Sr=Ce.createElement(cr,Object.assign({ref:Rt,disabled:lt,className:Te()(hr,br),upHandler:hi,downHandler:Ri,prefixCls:Pr,readOnly:Tn,controls:ba,prefix:jr,suffix:Xi&&Qi,addonAfter:Ar&&Ce.createElement(p.BR,null,Ce.createElement(L.Ux,{override:!0,status:!0},Ar)),addonBefore:rr&&Ce.createElement(p.BR,null,Ce.createElement(L.Ux,{override:!0,status:!0},rr)),classNames:{input:Zt},classes:{affixWrapper:Te()((0,or.Z)(`${Pr}-affix-wrapper`,be,Xi),{[`${Pr}-affix-wrapper-sm`]:Ue==="small",[`${Pr}-affix-wrapper-lg`]:Ue==="large",[`${Pr}-affix-wrapper-rtl`]:Ut==="rtl",[`${Pr}-affix-wrapper-borderless`]:!cn},yi),wrapper:Te()({[`${Qt}-rtl`]:Ut==="rtl",[`${Pr}-wrapper-disabled`]:lt},yi),group:Te()({[`${Pr}-group-wrapper-sm`]:Ue==="small",[`${Pr}-group-wrapper-lg`]:Ue==="large",[`${Pr}-group-wrapper-rtl`]:Ut==="rtl"},(0,or.Z)(`${Pr}-group-wrapper`,be,Xi),yi)}},li));return ti(Sr)}),pe=_t,st=Pe=>Ce.createElement(dr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ce.createElement(_t,Object.assign({},Pe)));pe._InternalPanelDoNotUseOrYouWillBeFired=st;var At=pe},9432:function(xn,er,x){"use strict";x.d(er,{Z:function(){return se},n:function(){return Y}});var ge=x(19248),ue=x(92310),Q=x.n(ue),Te=x(93681),ne=x(8654),G=x(59301),B=x(19080),f=x(36355),E=x(1684),h=x(19716),Z=x(32441),S=x(33234),_=x(59412),N=x(9937);function R(te){return!!(te.prefix||te.suffix||te.allowClear)}var I=function(te,X){var W={};for(var j in te)Object.prototype.hasOwnProperty.call(te,j)&&X.indexOf(j)<0&&(W[j]=te[j]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,j=Object.getOwnPropertySymbols(te);le<j.length;le++)X.indexOf(j[le])<0&&Object.prototype.propertyIsEnumerable.call(te,j[le])&&(W[j[le]]=te[j[le]]);return W};function Y(te,X){if(!te)return;te.focus(X);const{cursor:W}=X||{};if(W){const j=te.value.length;switch(W){case"start":te.setSelectionRange(0,0);break;case"end":te.setSelectionRange(j,j);break;default:te.setSelectionRange(0,j);break}}}var se=(0,G.forwardRef)((te,X)=>{var W;const{prefixCls:j,bordered:le=!0,status:he,size:Ne,disabled:Ce,onBlur:je,onFocus:q,suffix:ce,allowClear:k,addonAfter:ot,addonBefore:Le,className:xe,style:Re,styles:ve,rootClassName:ke,onChange:fe,classNames:ye}=te,at=I(te,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:rt,direction:nt,input:ut}=G.useContext(f.E_),Nt=rt("input",j),zt=(0,G.useRef)(null),[Ht,cr]=(0,N.ZP)(Nt),{compactSize:or,compactItemClassnames:yr}=(0,S.ri)(Nt,nt),dr=(0,h.Z)(_t=>{var pe;return(pe=Ne!=null?Ne:or)!==null&&pe!==void 0?pe:_t}),$=G.useContext(E.Z),Xe=Ce!=null?Ce:$,{status:L,hasFeedback:p,feedbackIcon:u}=(0,G.useContext)(Z.aM),w=(0,B.F)(L,he),ee=R(te)||!!p,Be=(0,G.useRef)(ee);(0,G.useEffect)(()=>{var _t;ee&&Be.current,Be.current=ee},[ee]);const T=(0,_.Z)(zt,!0),ae=_t=>{T(),je==null||je(_t)},Ge=_t=>{T(),q==null||q(_t)},Ee=_t=>{T(),fe==null||fe(_t)},me=(p||ce)&&G.createElement(G.Fragment,null,ce,p&&u);let qe;return typeof k=="object"&&(k!=null&&k.clearIcon)?qe=k:k&&(qe={clearIcon:G.createElement(ge.Z,null)}),Ht(G.createElement(Te.default,Object.assign({ref:(0,ne.sQ)(X,zt),prefixCls:Nt,autoComplete:ut==null?void 0:ut.autoComplete},at,{disabled:Xe,onBlur:ae,onFocus:Ge,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Re),styles:Object.assign(Object.assign({},ut==null?void 0:ut.styles),ve),suffix:me,allowClear:qe,className:Q()(xe,ke,yr,ut==null?void 0:ut.className),onChange:Ee,addonAfter:ot&&G.createElement(S.BR,null,G.createElement(Z.Ux,{override:!0,status:!0},ot)),addonBefore:Le&&G.createElement(S.BR,null,G.createElement(Z.Ux,{override:!0,status:!0},Le)),classNames:Object.assign(Object.assign(Object.assign({},ye),ut==null?void 0:ut.classNames),{input:Q()({[`${Nt}-sm`]:dr==="small",[`${Nt}-lg`]:dr==="large",[`${Nt}-rtl`]:nt==="rtl",[`${Nt}-borderless`]:!le},!ee&&(0,B.Z)(Nt,w),ye==null?void 0:ye.input,(W=ut==null?void 0:ut.classNames)===null||W===void 0?void 0:W.input,cr)}),classes:{affixWrapper:Q()({[`${Nt}-affix-wrapper-sm`]:dr==="small",[`${Nt}-affix-wrapper-lg`]:dr==="large",[`${Nt}-affix-wrapper-rtl`]:nt==="rtl",[`${Nt}-affix-wrapper-borderless`]:!le},(0,B.Z)(`${Nt}-affix-wrapper`,w,p),cr),wrapper:Q()({[`${Nt}-group-rtl`]:nt==="rtl"},cr),group:Q()({[`${Nt}-group-wrapper-sm`]:dr==="small",[`${Nt}-group-wrapper-lg`]:dr==="large",[`${Nt}-group-wrapper-rtl`]:nt==="rtl",[`${Nt}-group-wrapper-disabled`]:Xe},(0,B.Z)(`${Nt}-group-wrapper`,w,p),cr)}})))})},1643:function(xn,er,x){"use strict";var ge=x(19248),ue=x(92310),Q=x.n(ue),Te=x(9296),ne=x(59301),G=x(19080),B=x(36355),f=x(1684),E=x(19716),h=x(32441),Z=x(9432),S=x(9937),_=function(R,I){var Y={};for(var K in R)Object.prototype.hasOwnProperty.call(R,K)&&I.indexOf(K)<0&&(Y[K]=R[K]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,K=Object.getOwnPropertySymbols(R);se<K.length;se++)I.indexOf(K[se])<0&&Object.prototype.propertyIsEnumerable.call(R,K[se])&&(Y[K[se]]=R[K[se]]);return Y};const N=(0,ne.forwardRef)((R,I)=>{const{prefixCls:Y,bordered:K=!0,size:se,disabled:te,status:X,allowClear:W,showCount:j,classNames:le,rootClassName:he,className:Ne}=R,Ce=_(R,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:je,direction:q}=ne.useContext(B.E_),ce=(0,E.Z)(se),k=ne.useContext(f.Z),ot=te!=null?te:k,{status:Le,hasFeedback:xe,feedbackIcon:Re}=ne.useContext(h.aM),ve=(0,G.F)(Le,X),ke=ne.useRef(null);ne.useImperativeHandle(I,()=>{var nt;return{resizableTextArea:(nt=ke.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:ut=>{var Nt,zt;(0,Z.n)((zt=(Nt=ke.current)===null||Nt===void 0?void 0:Nt.resizableTextArea)===null||zt===void 0?void 0:zt.textArea,ut)},blur:()=>{var ut;return(ut=ke.current)===null||ut===void 0?void 0:ut.blur()}}});const fe=je("input",Y);let ye;typeof W=="object"&&(W!=null&&W.clearIcon)?ye=W:W&&(ye={clearIcon:ne.createElement(ge.Z,null)});const[at,rt]=(0,S.ZP)(fe);return at(ne.createElement(Te.default,Object.assign({},Ce,{disabled:ot,allowClear:ye,className:Q()(Ne,he),classes:{affixWrapper:Q()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:q==="rtl",[`${fe}-affix-wrapper-borderless`]:!K,[`${fe}-affix-wrapper-sm`]:ce==="small",[`${fe}-affix-wrapper-lg`]:ce==="large",[`${fe}-textarea-show-count`]:j},(0,G.Z)(`${fe}-affix-wrapper`,ve),rt)},classNames:Object.assign(Object.assign({},le),{textarea:Q()({[`${fe}-borderless`]:!K,[`${fe}-sm`]:ce==="small",[`${fe}-lg`]:ce==="large"},(0,G.Z)(fe,ve),rt,le==null?void 0:le.textarea)}),prefixCls:fe,suffix:xe&&ne.createElement("span",{className:`${fe}-textarea-suffix`},Re),showCount:j,ref:ke})))});er.Z=N},59412:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ue}});var ge=x(59301);function ue(Q,Te){const ne=(0,ge.useRef)([]),G=()=>{ne.current.push(setTimeout(()=>{var B,f,E,h;!((B=Q.current)===null||B===void 0)&&B.input&&((f=Q.current)===null||f===void 0?void 0:f.input.getAttribute("type"))==="password"&&(!((E=Q.current)===null||E===void 0)&&E.input.hasAttribute("value"))&&((h=Q.current)===null||h===void 0||h.input.removeAttribute("value"))}))};return(0,ge.useEffect)(()=>(Te&&G(),()=>ne.current.forEach(B=>{B&&clearTimeout(B)})),[]),G}},92832:function(xn,er,x){"use strict";x.d(er,{default:function(){return ce}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ne=x(32441),G=x(9937),f=k=>{const{getPrefixCls:ot,direction:Le}=(0,Q.useContext)(Te.E_),{prefixCls:xe,className:Re}=k,ve=ot("input-group",xe),ke=ot("input"),[fe,ye]=(0,G.ZP)(ke),at=ue()(ve,{[`${ve}-lg`]:k.size==="large",[`${ve}-sm`]:k.size==="small",[`${ve}-compact`]:k.compact,[`${ve}-rtl`]:Le==="rtl"},ye,Re),rt=(0,Q.useContext)(ne.aM),nt=(0,Q.useMemo)(()=>Object.assign(Object.assign({},rt),{isFormItemInput:!1}),[rt]);return fe(Q.createElement("span",{className:at,style:k.style,onMouseEnter:k.onMouseEnter,onMouseLeave:k.onMouseLeave,onFocus:k.onFocus,onBlur:k.onBlur},Q.createElement(ne.aM.Provider,{value:nt},k.children)))},E=x(9432),h=x(73331),Z=x(15277),S=x(2738),_=x(8654),N=x(59412),R=function(k,ot){var Le={};for(var xe in k)Object.prototype.hasOwnProperty.call(k,xe)&&ot.indexOf(xe)<0&&(Le[xe]=k[xe]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,xe=Object.getOwnPropertySymbols(k);Re<xe.length;Re++)ot.indexOf(xe[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,xe[Re])&&(Le[xe[Re]]=k[xe[Re]]);return Le};const I=k=>k?Q.createElement(Z.Z,null):Q.createElement(h.Z,null),Y={click:"onClick",hover:"onMouseOver"};var se=Q.forwardRef((k,ot)=>{const{visibilityToggle:Le=!0}=k,xe=typeof Le=="object"&&Le.visible!==void 0,[Re,ve]=(0,Q.useState)(()=>xe?Le.visible:!1),ke=(0,Q.useRef)(null);Q.useEffect(()=>{xe&&ve(Le.visible)},[xe,Le]);const fe=(0,N.Z)(ke),ye=()=>{const{disabled:Xe}=k;Xe||(Re&&fe(),ve(L=>{var p;const u=!L;return typeof Le=="object"&&((p=Le.onVisibleChange)===null||p===void 0||p.call(Le,u)),u}))},at=Xe=>{const{action:L="click",iconRender:p=I}=k,u=Y[L]||"",w=p(Re),ee={[u]:ye,className:`${Xe}-icon`,key:"passwordIcon",onMouseDown:Be=>{Be.preventDefault()},onMouseUp:Be=>{Be.preventDefault()}};return Q.cloneElement(Q.isValidElement(w)?w:Q.createElement("span",null,w),ee)},{className:rt,prefixCls:nt,inputPrefixCls:ut,size:Nt}=k,zt=R(k,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ht}=Q.useContext(Te.E_),cr=Ht("input",ut),or=Ht("input-password",nt),yr=Le&&at(or),dr=ue()(or,rt,{[`${or}-${Nt}`]:!!Nt}),$=Object.assign(Object.assign({},(0,S.Z)(zt,["suffix","iconRender","visibilityToggle"])),{type:Re?"text":"password",className:dr,prefixCls:cr,suffix:yr});return Nt&&($.size=Nt),Q.createElement(E.Z,Object.assign({ref:(0,_.sQ)(ot,ke)},$))}),te=x(47472),X=x(92343),W=x(3113),j=x(19716),le=x(33234),he=function(k,ot){var Le={};for(var xe in k)Object.prototype.hasOwnProperty.call(k,xe)&&ot.indexOf(xe)<0&&(Le[xe]=k[xe]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,xe=Object.getOwnPropertySymbols(k);Re<xe.length;Re++)ot.indexOf(xe[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,xe[Re])&&(Le[xe[Re]]=k[xe[Re]]);return Le},Ce=Q.forwardRef((k,ot)=>{const{prefixCls:Le,inputPrefixCls:xe,className:Re,size:ve,suffix:ke,enterButton:fe=!1,addonAfter:ye,loading:at,disabled:rt,onSearch:nt,onChange:ut,onCompositionStart:Nt,onCompositionEnd:zt}=k,Ht=he(k,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:cr,direction:or}=Q.useContext(Te.E_),yr=Q.useRef(!1),dr=cr("input-search",Le),$=cr("input",xe),{compactSize:Xe}=(0,le.ri)(dr,or),L=(0,j.Z)(st=>{var At;return(At=ve!=null?ve:Xe)!==null&&At!==void 0?At:st}),p=Q.useRef(null),u=st=>{st&&st.target&&st.type==="click"&&nt&&nt(st.target.value,st,{source:"clear"}),ut&&ut(st)},w=st=>{var At;document.activeElement===((At=p.current)===null||At===void 0?void 0:At.input)&&st.preventDefault()},ee=st=>{var At,Pe;nt&&nt((Pe=(At=p.current)===null||At===void 0?void 0:At.input)===null||Pe===void 0?void 0:Pe.value,st,{source:"input"})},Be=st=>{yr.current||at||ee(st)},T=typeof fe=="boolean"?Q.createElement(te.Z,null):null,ae=`${dr}-button`;let Ge;const Ee=fe||{},me=Ee.type&&Ee.type.__ANT_BUTTON===!0;me||Ee.type==="button"?Ge=(0,X.Tm)(Ee,Object.assign({onMouseDown:w,onClick:st=>{var At,Pe;(Pe=(At=Ee==null?void 0:Ee.props)===null||At===void 0?void 0:At.onClick)===null||Pe===void 0||Pe.call(At,st),ee(st)},key:"enterButton"},me?{className:ae,size:L}:{})):Ge=Q.createElement(W.ZP,{className:ae,type:fe?"primary":void 0,size:L,disabled:rt,key:"enterButton",onMouseDown:w,onClick:ee,loading:at,icon:T},fe),ye&&(Ge=[Ge,(0,X.Tm)(ye,{key:"addonAfter"})]);const qe=ue()(dr,{[`${dr}-rtl`]:or==="rtl",[`${dr}-${L}`]:!!L,[`${dr}-with-button`]:!!fe},Re),_t=st=>{yr.current=!0,Nt==null||Nt(st)},pe=st=>{yr.current=!1,zt==null||zt(st)};return Q.createElement(E.Z,Object.assign({ref:(0,_.sQ)(p,ot),onPressEnter:Be},Ht,{size:L,onCompositionStart:_t,onCompositionEnd:pe,prefixCls:$,addonAfter:Ge,suffix:ke,onChange:u,className:qe,disabled:rt}))}),je=x(1643);const q=E.Z;q.Group=f,q.Search=Ce,q.TextArea=je.Z,q.Password=se;var ce=q},9937:function(xn,er,x){"use strict";x.d(er,{M1:function(){return B},TM:function(){return X},Xy:function(){return f},bi:function(){return Z},e5:function(){return te},ik:function(){return S},nz:function(){return ne},pU:function(){return G},s7:function(){return _},x0:function(){return h}});var ge=x(17313),ue=x(74207),Q=x(37613),Te=x(83116);const ne=W=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:W,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),G=W=>({borderColor:W.hoverBorderColor}),B=W=>({borderColor:W.activeBorderColor,boxShadow:W.activeShadow,outline:0}),f=W=>({color:W.colorTextDisabled,backgroundColor:W.colorBgContainerDisabled,borderColor:W.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},G((0,Q.TS)(W,{hoverBorderColor:W.colorBorder})))}),E=W=>{const{paddingBlockLG:j,fontSizeLG:le,lineHeightLG:he,borderRadiusLG:Ne,paddingInlineLG:Ce}=W;return{padding:`${j}px ${Ce}px`,fontSize:le,lineHeight:he,borderRadius:Ne}},h=W=>({padding:`${W.paddingBlockSM}px ${W.paddingInlineSM}px`,borderRadius:W.borderRadiusSM}),Z=(W,j)=>{const{componentCls:le,colorError:he,colorWarning:Ne,errorActiveShadow:Ce,warningActiveShadow:je,colorErrorBorderHover:q,colorWarningBorderHover:ce}=W;return{[`&-status-error:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:he,"&:hover":{borderColor:q},"&:focus, &-focused":Object.assign({},B((0,Q.TS)(W,{activeBorderColor:he,activeShadow:Ce}))),[`${le}-prefix, ${le}-suffix`]:{color:he}},[`&-status-warning:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:Ne,"&:hover":{borderColor:ce},"&:focus, &-focused":Object.assign({},B((0,Q.TS)(W,{activeBorderColor:Ne,activeShadow:je}))),[`${le}-prefix, ${le}-suffix`]:{color:Ne}}}},S=W=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${W.paddingBlock}px ${W.paddingInline}px`,color:W.colorText,fontSize:W.fontSize,lineHeight:W.lineHeight,backgroundColor:W.colorBgContainer,backgroundImage:"none",borderWidth:W.lineWidth,borderStyle:W.lineType,borderColor:W.colorBorder,borderRadius:W.borderRadius,transition:`all ${W.motionDurationMid}`},ne(W.colorTextPlaceholder)),{"&:hover":Object.assign({},G(W)),"&:focus, &-focused":Object.assign({},B(W)),"&-disabled, &[disabled]":Object.assign({},f(W)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:W.controlHeight,lineHeight:W.lineHeight,verticalAlign:"bottom",transition:`all ${W.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},E(W)),"&-sm":Object.assign({},h(W)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_=W=>{const{componentCls:j,antCls:le}=W;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:W.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${j}, &-lg > ${j}-group-addon`]:Object.assign({},E(W)),[`&-sm ${j}, &-sm > ${j}-group-addon`]:Object.assign({},h(W)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:W.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:W.controlHeightSM},[`> ${j}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${j}-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 ${W.paddingInline}px`,color:W.colorText,fontWeight:"normal",fontSize:W.fontSize,textAlign:"center",backgroundColor:W.colorFillAlter,border:`${W.lineWidth}px ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadius,transition:`all ${W.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${W.paddingBlock+1}px -${W.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${W.lineWidth}px ${W.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:W.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${W.paddingInline}px`,backgroundColor:"transparent",[`${le}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${j}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${j}-search-with-button &`]:{zIndex:0}}},[`> ${j}:first-child, ${j}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}-affix-wrapper`]:{[`&:not(:first-child) ${j}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${j}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}:last-child, ${j}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${j}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${j}-search &`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius}},[`&:not(:first-child), ${j}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${j}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ge.dF)()),{[`${j}-group-addon, ${j}-group-wrap, > ${j}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:W.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${j}-affix-wrapper,
& > ${j}-number-affix-wrapper,
& > ${le}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-W.lineWidth,borderInlineEndWidth:W.lineWidth},[`${j}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
& > ${le}-select-auto-complete ${j},
& > ${le}-cascader-picker ${j},
& > ${j}-group-wrapper ${j}`]:{borderInlineEndWidth:W.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${le}-select-focused`]:{zIndex:1},[`& > ${le}-select > ${le}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${le}-select:first-child > ${le}-select-selector,
& > ${le}-select-auto-complete:first-child ${j},
& > ${le}-cascader-picker:first-child ${j}`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius},[`& > *:last-child,
& > ${le}-select:last-child > ${le}-select-selector,
& > ${le}-cascader-picker:last-child ${j},
& > ${le}-cascader-picker-focused:last-child ${j}`]:{borderInlineEndWidth:W.lineWidth,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius},[`& > ${le}-select-auto-complete ${j}`]:{verticalAlign:"top"},[`${j}-group-wrapper + ${j}-group-wrapper`]:{marginInlineStart:-W.lineWidth,[`${j}-affix-wrapper`]:{borderRadius:0}},[`${j}-group-wrapper:not(:last-child)`]:{[`&${j}-search > ${j}-group`]:{[`& > ${j}-group-addon > ${j}-search-button`]:{borderRadius:0},[`& > ${j}`]:{borderStartStartRadius:W.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:W.borderRadius}}}})}},N=W=>{const{componentCls:j,controlHeightSM:le,lineWidth:he}=W,Ce=(le-he*2-16)/2;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(W)),S(W)),Z(W,j)),{'&[type="color"]':{height:W.controlHeight,[`&${j}-lg`]:{height:W.controlHeightLG},[`&${j}-sm`]:{height:le,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},R=W=>{const{componentCls:j}=W;return{[`${j}-clear-icon`]:{margin:0,color:W.colorTextQuaternary,fontSize:W.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${W.motionDurationSlow}`,"&:hover":{color:W.colorTextTertiary},"&:active":{color:W.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${W.inputAffixPadding}px`}}}},I=W=>{const{componentCls:j,inputAffixPadding:le,colorTextDescription:he,motionDurationSlow:Ne,colorIcon:Ce,colorIconHover:je,iconCls:q}=W;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(W)),{display:"inline-flex",[`&:not(${j}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},G(W)),{zIndex:1,[`${j}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${j}[disabled]`]:{background:"transparent"}},[`> input${j}`]:{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"'},[`${j}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:W.paddingXS}},"&-show-count-suffix":{color:he},"&-show-count-has-suffix":{marginInlineEnd:W.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),R(W)),{[`${q}${j}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:je}}}),Z(W,`${j}-affix-wrapper`))}},Y=W=>{const{componentCls:j,colorError:le,colorWarning:he,borderRadiusLG:Ne,borderRadiusSM:Ce}=W;return{[`${j}-group`]:Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(W)),_(W)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${j}-group-addon`]:{borderRadius:Ne,fontSize:W.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${j}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${j}-group-addon`]:{color:he,borderColor:he}},"&-disabled":{[`${j}-group-addon`]:Object.assign({},f(W))},[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},K=W=>{const{componentCls:j,antCls:le}=W,he=`${j}-search`;return{[he]:{[`${j}`]:{"&:hover, &:focus":{borderColor:W.colorPrimaryHover,[`+ ${j}-group-addon ${he}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:W.colorPrimaryHover}}},[`${j}-affix-wrapper`]:{borderRadius:0},[`${j}-lg`]:{lineHeight:W.lineHeightLG-2e-4},[`> ${j}-group`]:{[`> ${j}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${he}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${he}-button:not(${le}-btn-primary)`]:{color:W.colorTextDescription,"&:hover":{color:W.colorPrimaryHover},"&:active":{color:W.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${he}-button`]:{height:W.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${he}-button`]:{height:W.controlHeightLG},[`&-small ${he}-button`]:{height:W.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${j}-compact-item`]:{[`&:not(${j}-compact-last-item)`]:{[`${j}-group-addon`]:{[`${j}-search-button`]:{marginInlineEnd:-W.lineWidth,borderRadius:0}}},[`&:not(${j}-compact-first-item)`]:{[`${j},${j}-affix-wrapper`]:{borderRadius:0}},[`> ${j}-group-addon ${j}-search-button,
> ${j},
${j}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${j}-affix-wrapper-focused`]:{zIndex:2}}}}},se=W=>{const{componentCls:j,paddingLG:le}=W,he=`${j}-textarea`;return{[he]:{position:"relative","&-show-count":{[`> ${j}`]:{height:"100%"},[`${j}-data-count`]:{position:"absolute",bottom:-W.fontSize*W.lineHeight,insetInlineEnd:0,color:W.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${j}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${he}-has-feedback`]:{[`${j}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${j}-affix-wrapper`]:{padding:0,[`> textarea${j}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${j}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${j}-clear-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,insetBlockStart:W.paddingXS},[`${he}-suffix`]:{position:"absolute",top:0,insetInlineEnd:W.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function te(W){return(0,Q.TS)(W,{inputAffixPadding:W.paddingXXS})}const X=W=>{const{controlHeight:j,fontSize:le,lineHeight:he,lineWidth:Ne,controlHeightSM:Ce,controlHeightLG:je,fontSizeLG:q,lineHeightLG:ce,paddingSM:k,controlPaddingHorizontalSM:ot,controlPaddingHorizontal:Le,colorFillAlter:xe,colorPrimaryHover:Re,controlOutlineWidth:ve,controlOutline:ke,colorErrorOutline:fe,colorWarningOutline:ye}=W;return{paddingBlock:Math.max(Math.round((j-le*he)/2*10)/10-Ne,3),paddingBlockSM:Math.max(Math.round((Ce-le*he)/2*10)/10-Ne,0),paddingBlockLG:Math.ceil((je-q*ce)/2*10)/10-Ne,paddingInline:k-Ne,paddingInlineSM:ot-Ne,paddingInlineLG:Le-Ne,addonBg:xe,activeBorderColor:Re,hoverBorderColor:Re,activeShadow:`0 0 0 ${ve}px ${ke}`,errorActiveShadow:`0 0 0 ${ve}px ${fe}`,warningActiveShadow:`0 0 0 ${ve}px ${ye}`}};er.ZP=(0,Te.Z)("Input",W=>{const j=(0,Q.TS)(W,te(W));return[N(j),se(j),I(j),Y(j),K(j),(0,ue.c)(j)]},X)},45818:function(xn,er,x){"use strict";x.d(er,{D:function(){return te},Z:function(){return j}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(he,Ne){return ue.createElement(ne.Z,(0,ge.Z)({},he,{ref:Ne,icon:Te}))},B=ue.forwardRef(G),f=B,E=x(33853),h=x(38819),Z=x(92310),S=x.n(Z),_=x(2738),R=le=>!isNaN(parseFloat(le))&&isFinite(le),I=x(36355),Y=x(84966),K=function(le,he){var Ne={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&he.indexOf(Ce)<0&&(Ne[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(le);je<Ce.length;je++)he.indexOf(Ce[je])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[je])&&(Ne[Ce[je]]=le[Ce[je]]);return Ne};const se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},te=ue.createContext({}),X=(()=>{let le=0;return function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${he}${le}`}})();var j=ue.forwardRef((le,he)=>{const{prefixCls:Ne,className:Ce,trigger:je,children:q,defaultCollapsed:ce=!1,theme:k="dark",style:ot={},collapsible:Le=!1,reverseArrow:xe=!1,width:Re=200,collapsedWidth:ve=80,zeroWidthTriggerStyle:ke,breakpoint:fe,onCollapse:ye,onBreakpoint:at}=le,rt=K(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nt}=(0,ue.useContext)(Y.Gs),[ut,Nt]=(0,ue.useState)("collapsed"in le?le.collapsed:ce),[zt,Ht]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in le&&Nt(le.collapsed)},[le.collapsed]);const cr=(L,p)=>{"collapsed"in le||Nt(L),ye==null||ye(L,p)},or=(0,ue.useRef)();or.current=L=>{Ht(L.matches),at==null||at(L.matches),ut!==L.matches&&cr(L.matches,"responsive")},(0,ue.useEffect)(()=>{function L(u){return or.current(u)}let p;if(typeof window!="undefined"){const{matchMedia:u}=window;if(u&&fe&&fe in se){p=u(`(max-width: ${se[fe]})`);try{p.addEventListener("change",L)}catch(w){p.addListener(L)}L(p)}}return()=>{try{p==null||p.removeEventListener("change",L)}catch(u){p==null||p.removeListener(L)}}},[fe]),(0,ue.useEffect)(()=>{const L=X("ant-sider-");return nt.addSider(L),()=>nt.removeSider(L)},[]);const yr=()=>{cr(!ut,"clickTrigger")},{getPrefixCls:dr}=(0,ue.useContext)(I.E_),$=()=>{const L=dr("layout-sider",Ne),p=(0,_.Z)(rt,["collapsed"]),u=ut?ve:Re,w=R(u)?`${u}px`:String(u),ee=parseFloat(String(ve||0))===0?ue.createElement("span",{onClick:yr,className:S()(`${L}-zero-width-trigger`,`${L}-zero-width-trigger-${xe?"right":"left"}`),style:ke},je||ue.createElement(f,null)):null,ae={expanded:xe?ue.createElement(h.Z,null):ue.createElement(E.Z,null),collapsed:xe?ue.createElement(E.Z,null):ue.createElement(h.Z,null)}[ut?"collapsed":"expanded"],Ge=je!==null?ee||ue.createElement("div",{className:`${L}-trigger`,onClick:yr,style:{width:w}},je||ae):null,Ee=Object.assign(Object.assign({},ot),{flex:`0 0 ${w}`,maxWidth:w,minWidth:w,width:w}),me=S()(L,`${L}-${k}`,{[`${L}-collapsed`]:!!ut,[`${L}-has-trigger`]:Le&&je!==null&&!ee,[`${L}-below`]:!!zt,[`${L}-zero-width`]:parseFloat(w)===0},Ce);return ue.createElement("aside",Object.assign({className:me},p,{style:Ee,ref:he}),ue.createElement("div",{className:`${L}-children`},q),Le||zt&&ee?Ge:null)},Xe=ue.useMemo(()=>({siderCollapsed:ut}),[ut]);return ue.createElement(te.Provider,{value:Xe},$())})},84966:function(xn,er,x){"use strict";x.d(er,{VY:function(){return te},$_:function(){return se},h4:function(){return K},Gs:function(){return _},ZP:function(){return X}});var ge=x(26407),ue=x(92310),Q=x.n(ue),Te=x(2738),ne=x(59301),G=x(36355),B=x(83116),E=W=>{const{componentCls:j,bodyBg:le,lightSiderBg:he,lightTriggerBg:Ne,lightTriggerColor:Ce}=W;return{[`${j}-sider-light`]:{background:he,[`${j}-sider-trigger`]:{color:Ce,background:Ne},[`${j}-sider-zero-width-trigger`]:{color:Ce,background:Ne,border:`1px solid ${le}`,borderInlineStart:0}}}};const h=W=>{const{antCls:j,componentCls:le,colorText:he,triggerColor:Ne,footerBg:Ce,triggerBg:je,headerHeight:q,headerPadding:ce,headerColor:k,footerPadding:ot,triggerHeight:Le,zeroTriggerHeight:xe,zeroTriggerWidth:Re,motionDurationMid:ve,motionDurationSlow:ke,fontSize:fe,borderRadius:ye,bodyBg:at,headerBg:rt,siderBg:nt}=W;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:at,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Ne,lineHeight:`${Le}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:q,insetInlineEnd:-Re,zIndex:1,width:Re,height:xe,color:Ne,fontSize:W.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:ye,borderEndEndRadius:ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Re,borderStartStartRadius:ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ye}}}}},E(W)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:q,padding:ce,color:k,lineHeight:`${q}px`,background:rt,[`${j}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:ot,color:he,fontSize:fe,background:Ce},[`${le}-content`]:{flex:"auto",minHeight:0}}};var Z=(0,B.Z)("Layout",W=>[h(W)],W=>{const{colorBgLayout:j,controlHeight:le,controlHeightLG:he,colorText:Ne,controlHeightSM:Ce,marginXXS:je,colorTextLightSolid:q,colorBgContainer:ce}=W,k=he*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${k}px`,headerColor:Ne,footerPadding:`${Ce}px ${k}px`,footerBg:j,siderBg:"#001529",triggerHeight:he+je*2,triggerBg:"#002140",triggerColor:q,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:ce,lightTriggerBg:ce,lightTriggerColor:Ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),S=function(W,j){var le={};for(var he in W)Object.prototype.hasOwnProperty.call(W,he)&&j.indexOf(he)<0&&(le[he]=W[he]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,he=Object.getOwnPropertySymbols(W);Ne<he.length;Ne++)j.indexOf(he[Ne])<0&&Object.prototype.propertyIsEnumerable.call(W,he[Ne])&&(le[he[Ne]]=W[he[Ne]]);return le};const _=ne.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function N(W){let{suffixCls:j,tagName:le,displayName:he}=W;return Ne=>ne.forwardRef((je,q)=>ne.createElement(Ne,Object.assign({ref:q,suffixCls:j,tagName:le},je)))}const R=ne.forwardRef((W,j)=>{const{prefixCls:le,suffixCls:he,className:Ne,tagName:Ce}=W,je=S(W,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:q}=ne.useContext(G.E_),ce=q("layout",le),[k,ot]=Z(ce),Le=he?`${ce}-${he}`:ce;return k(ne.createElement(Ce,Object.assign({className:Q()(le||Le,Ne,ot),ref:j},je)))}),I=ne.forwardRef((W,j)=>{const{direction:le}=ne.useContext(G.E_),[he,Ne]=ne.useState([]),{prefixCls:Ce,className:je,rootClassName:q,children:ce,hasSider:k,tagName:ot,style:Le}=W,xe=S(W,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Re=(0,Te.Z)(xe,["suffixCls"]),{getPrefixCls:ve,layout:ke}=ne.useContext(G.E_),fe=ve("layout",Ce),[ye,at]=Z(fe),rt=Q()(fe,{[`${fe}-has-sider`]:typeof k=="boolean"?k:he.length>0,[`${fe}-rtl`]:le==="rtl"},ke==null?void 0:ke.className,je,q,at),nt=ne.useMemo(()=>({siderHook:{addSider:ut=>{Ne(Nt=>[].concat((0,ge.Z)(Nt),[ut]))},removeSider:ut=>{Ne(Nt=>Nt.filter(zt=>zt!==ut))}}}),[]);return ye(ne.createElement(_.Provider,{value:nt},ne.createElement(ot,Object.assign({ref:j,className:rt,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Le)},Re),ce)))}),Y=N({tagName:"div",displayName:"Layout"})(I),K=N({suffixCls:"header",tagName:"header",displayName:"Header"})(R),se=N({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(R),te=N({suffixCls:"content",tagName:"main",displayName:"Content"})(R);var X=Y},40875:function(xn,er,x){"use strict";x.d(er,{J:function(){return G}});var ge=x(59301),ue=x(33234),Q=x(70425),Te=function(B,f){var E={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&f.indexOf(h)<0&&(E[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,h=Object.getOwnPropertySymbols(B);Z<h.length;Z++)f.indexOf(h[Z])<0&&Object.prototype.propertyIsEnumerable.call(B,h[Z])&&(E[h[Z]]=B[h[Z]]);return E};const ne=ge.createContext(null),G=ge.forwardRef((B,f)=>{const{children:E}=B,h=Te(B,["children"]),Z=ge.useContext(ne),S=ge.useMemo(()=>Object.assign(Object.assign({},Z),h),[Z,h.prefixCls,h.mode,h.selectable]);return ge.createElement(ne.Provider,{value:S},ge.createElement(ue.BR,null,(0,Q.supportNodeRef)(E)?ge.cloneElement(E,{ref:f}):E))});er.Z=ne},20834:function(xn,er,x){"use strict";x.d(er,{default:function(){return Xe}});var ge=x(15285),ue=x(59301),Q=x(45818),Te=x(92310),ne=x.n(Te),G=x(36355),B=function(L,p){var u={};for(var w in L)Object.prototype.hasOwnProperty.call(L,w)&&p.indexOf(w)<0&&(u[w]=L[w]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,w=Object.getOwnPropertySymbols(L);ee<w.length;ee++)p.indexOf(w[ee])<0&&Object.prototype.propertyIsEnumerable.call(L,w[ee])&&(u[w[ee]]=L[w[ee]]);return u},E=L=>{const{prefixCls:p,className:u,dashed:w}=L,ee=B(L,["prefixCls","className","dashed"]),{getPrefixCls:Be}=ue.useContext(G.E_),T=Be("menu",p),ae=ne()({[`${T}-item-divider-dashed`]:!!w},u);return ue.createElement(ge.iz,Object.assign({className:ae},ee))},h=x(11592),Z=x(2738),S=x(6848),_=x(92343),R=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=L=>{var p;const{className:u,children:w,icon:ee,title:Be,danger:T}=L,{prefixCls:ae,firstLevel:Ge,direction:Ee,disableMenuItemTitleTooltip:me,inlineCollapsed:qe}=ue.useContext(R),_t=vt=>{const Ut=ue.createElement("span",{className:`${ae}-title-content`},w);return(!ee||(0,_.l$)(w)&&w.type==="span")&&w&&vt&&Ge&&typeof w=="string"?ue.createElement("div",{className:`${ae}-inline-collapsed-noicon`},w.charAt(0)):Ut},{siderCollapsed:pe}=ue.useContext(Q.D);let st=Be;typeof Be=="undefined"?st=Ge?w:"":Be===!1&&(st="");const At={title:st};!pe&&!qe&&(At.title=null,At.open=!1);const Pe=(0,h.Z)(w).length;let Ie=ue.createElement(ge.ck,Object.assign({},(0,Z.Z)(L,["title","icon","danger"]),{className:ne()({[`${ae}-item-danger`]:T,[`${ae}-item-only-child`]:(ee?Pe+1:Pe)===1},u),title:typeof Be=="string"?Be:void 0}),(0,_.Tm)(ee,{className:ne()((0,_.l$)(ee)?(p=ee.props)===null||p===void 0?void 0:p.className:"",`${ae}-item-icon`)}),_t(qe));return me||(Ie=ue.createElement(S.Z,Object.assign({},At,{placement:Ee==="rtl"?"left":"right",overlayClassName:`${ae}-inline-collapsed-tooltip`}),Ie)),Ie},se=L=>{var p;const{popupClassName:u,icon:w,title:ee,theme:Be}=L,T=ue.useContext(R),{prefixCls:ae,inlineCollapsed:Ge,theme:Ee}=T,me=(0,ge.Xl)();let qe;if(!w)qe=Ge&&!me.length&&ee&&typeof ee=="string"?ue.createElement("div",{className:`${ae}-inline-collapsed-noicon`},ee.charAt(0)):ue.createElement("span",{className:`${ae}-title-content`},ee);else{const pe=(0,_.l$)(ee)&&ee.type==="span";qe=ue.createElement(ue.Fragment,null,(0,_.Tm)(w,{className:ne()((0,_.l$)(w)?(p=w.props)===null||p===void 0?void 0:p.className:"",`${ae}-item-icon`)}),pe?ee:ue.createElement("span",{className:`${ae}-title-content`},ee))}const _t=ue.useMemo(()=>Object.assign(Object.assign({},T),{firstLevel:!1}),[T]);return ue.createElement(R.Provider,{value:_t},ue.createElement(ge.Wd,Object.assign({},(0,Z.Z)(L,["icon"]),{title:qe,popupClassName:ne()(ae,u,`${ae}-${Be||Ee}`)})))},te=x(18785),X=x(70425),W=x(62892),j=x(40875),le=function(L,p){var u={};for(var w in L)Object.prototype.hasOwnProperty.call(L,w)&&p.indexOf(w)<0&&(u[w]=L[w]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,w=Object.getOwnPropertySymbols(L);ee<w.length;ee++)p.indexOf(w[ee])<0&&Object.prototype.propertyIsEnumerable.call(L,w[ee])&&(u[w[ee]]=L[w[ee]]);return u};function he(L){return(L||[]).map((p,u)=>{if(p&&typeof p=="object"){const w=p,{label:ee,children:Be,key:T,type:ae}=w,Ge=le(w,["label","children","key","type"]),Ee=T!=null?T:`tmp-${u}`;return Be||ae==="group"?ae==="group"?ue.createElement(ge.BW,Object.assign({key:Ee},Ge,{title:ee}),he(Be)):ue.createElement(se,Object.assign({key:Ee},Ge,{title:ee}),he(Be)):ae==="divider"?ue.createElement(E,Object.assign({key:Ee},Ge)):ue.createElement(Y,Object.assign({key:Ee},Ge),ee)}return null}).filter(p=>p)}function Ne(L){return ue.useMemo(()=>L&&he(L),[L])}var Ce=x(64993),je=x(17313),q=x(8378),ce=x(13826),k=x(29878),ot=x(83116),Le=x(37613),Re=L=>{const{componentCls:p,motionDurationSlow:u,horizontalLineHeight:w,colorSplit:ee,lineWidth:Be,lineType:T,itemPaddingInline:ae}=L;return{[`${p}-horizontal`]:{lineHeight:w,border:0,borderBottom:`${Be}px ${T} ${ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${p}-item, ${p}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ae},[`> ${p}-item:hover,
> ${p}-item-active,
> ${p}-submenu ${p}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${p}-item, ${p}-submenu-title`]:{transition:[`border-color ${u}`,`background ${u}`].join(",")},[`${p}-submenu-arrow`]:{display:"none"}}}},ke=L=>{let{componentCls:p,menuArrowOffset:u}=L;return{[`${p}-rtl`]:{direction:"rtl"},[`${p}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${p}-rtl${p}-vertical,
${p}-submenu-rtl ${p}-vertical`]:{[`${p}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${u})`},"&::after":{transform:`rotate(45deg) translateY(${u})`}}}}};const fe=L=>Object.assign({},(0,je.oN)(L));var at=(L,p)=>{const{componentCls:u,itemColor:w,itemSelectedColor:ee,groupTitleColor:Be,itemBg:T,subMenuItemBg:ae,itemSelectedBg:Ge,activeBarHeight:Ee,activeBarWidth:me,activeBarBorderWidth:qe,motionDurationSlow:_t,motionEaseInOut:pe,motionEaseOut:st,itemPaddingInline:At,motionDurationMid:Pe,itemHoverColor:Ie,lineType:vt,colorSplit:Ut,itemDisabledColor:Rt,dangerItemColor:hr,dangerItemHoverColor:br,dangerItemSelectedColor:Mr,dangerItemActiveBg:Ur,dangerItemSelectedBg:Qr,itemHoverBg:rr,itemActiveBg:Ar,menuSubMenuBg:jr,horizontalItemSelectedColor:cn,horizontalItemSelectedBg:Tn,horizontalItemBorderRadius:en,horizontalItemHoverBg:Qn,popupBg:li}=L;return{[`${u}-${p}, ${u}-${p} > ${u}`]:{color:w,background:T,[`&${u}-root:focus-visible`]:Object.assign({},fe(L)),[`${u}-item-group-title`]:{color:Be},[`${u}-submenu-selected`]:{[`> ${u}-submenu-title`]:{color:ee}},[`${u}-item-disabled, ${u}-submenu-disabled`]:{color:`${Rt} !important`},[`${u}-item:not(${u}-item-selected):not(${u}-submenu-selected)`]:{[`&:hover, > ${u}-submenu-title:hover`]:{color:Ie}},[`&:not(${u}-horizontal)`]:{[`${u}-item:not(${u}-item-selected)`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:Ar}},[`${u}-submenu-title`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:Ar}}},[`${u}-item-danger`]:{color:hr,[`&${u}-item:hover`]:{[`&:not(${u}-item-selected):not(${u}-submenu-selected)`]:{color:br}},[`&${u}-item:active`]:{background:Ur}},[`${u}-item a`]:{"&, &:hover":{color:"inherit"}},[`${u}-item-selected`]:{color:ee,[`&${u}-item-danger`]:{color:Mr},"a, a:hover":{color:"inherit"}},[`& ${u}-item-selected`]:{backgroundColor:Ge,[`&${u}-item-danger`]:{backgroundColor:Qr}},[`${u}-item, ${u}-submenu-title`]:{[`&:not(${u}-item-disabled):focus-visible`]:Object.assign({},fe(L))},[`&${u}-submenu > ${u}`]:{backgroundColor:jr},[`&${u}-popup > ${u}`]:{backgroundColor:li},[`&${u}-horizontal`]:Object.assign(Object.assign({},p==="dark"?{borderBottom:0}:{}),{[`> ${u}-item, > ${u}-submenu`]:{top:qe,marginTop:-qe,marginBottom:0,borderRadius:en,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${Ee}px solid transparent`,transition:`border-color ${_t} ${pe}`,content:'""'},"&:hover, &-active, &-open":{background:Qn,"&::after":{borderBottomWidth:Ee,borderBottomColor:cn}},"&-selected":{color:cn,backgroundColor:Tn,"&:hover":{backgroundColor:Tn},"&::after":{borderBottomWidth:Ee,borderBottomColor:cn}}}}),[`&${u}-root`]:{[`&${u}-inline, &${u}-vertical`]:{borderInlineEnd:`${qe}px ${vt} ${Ut}`}},[`&${u}-inline`]:{[`${u}-sub${u}-inline`]:{background:ae},[`${u}-item, ${u}-submenu-title`]:qe&&me?{width:`calc(100% + ${qe}px)`}:{},[`${u}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${me}px solid ${ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pe} ${st}`,`opacity ${Pe} ${st}`].join(","),content:'""'},[`&${u}-item-danger`]:{"&::after":{borderInlineEndColor:Mr}}},[`${u}-selected, ${u}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pe} ${pe}`,`opacity ${Pe} ${pe}`].join(",")}}}}}};const rt=L=>{const{componentCls:p,itemHeight:u,itemMarginInline:w,padding:ee,menuArrowSize:Be,marginXS:T,itemMarginBlock:ae}=L,Ge=ee+Be+T;return{[`${p}-item`]:{position:"relative",overflow:"hidden"},[`${p}-item, ${p}-submenu-title`]:{height:u,lineHeight:`${u}px`,paddingInline:ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:w,marginBlock:ae,width:`calc(100% - ${w*2}px)`},[`> ${p}-item,
> ${p}-submenu > ${p}-submenu-title`]:{height:u,lineHeight:`${u}px`},[`${p}-item-group-list ${p}-submenu-title,
${p}-submenu-title`]:{paddingInlineEnd:Ge}}};var ut=L=>{const{componentCls:p,iconCls:u,itemHeight:w,colorTextLightSolid:ee,dropdownWidth:Be,controlHeightLG:T,motionDurationMid:ae,motionEaseOut:Ge,paddingXL:Ee,itemMarginInline:me,fontSizeLG:qe,motionDurationSlow:_t,paddingXS:pe,boxShadowSecondary:st,collapsedWidth:At,collapsedIconSize:Pe}=L,Ie={height:w,lineHeight:`${w}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[p]:{"&-inline, &-vertical":Object.assign({[`&${p}-root`]:{boxShadow:"none"}},rt(L))},[`${p}-submenu-popup`]:{[`${p}-vertical`]:Object.assign(Object.assign({},rt(L)),{boxShadow:st})}},{[`${p}-submenu-popup ${p}-vertical${p}-sub`]:{minWidth:Be,maxHeight:`calc(100vh - ${T*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${p}-inline`]:{width:"100%",[`&${p}-root`]:{[`${p}-item, ${p}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_t}`,`background ${_t}`,`padding ${ae} ${Ge}`].join(","),[`> ${p}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${p}-sub${p}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${p}-submenu > ${p}-submenu-title`]:Ie,[`& ${p}-item-group-title`]:{paddingInlineStart:Ee}},[`${p}-item`]:Ie}},{[`${p}-inline-collapsed`]:{width:At,[`&${p}-root`]:{[`${p}-item, ${p}-submenu ${p}-submenu-title`]:{[`> ${p}-inline-collapsed-noicon`]:{fontSize:qe,textAlign:"center"}}},[`> ${p}-item,
> ${p}-item-group > ${p}-item-group-list > ${p}-item,
> ${p}-item-group > ${p}-item-group-list > ${p}-submenu > ${p}-submenu-title,
> ${p}-submenu > ${p}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${qe/2}px - ${me}px)`,textOverflow:"clip",[`
${p}-submenu-arrow,
${p}-submenu-expand-icon
`]:{opacity:0},[`${p}-item-icon, ${u}`]:{margin:0,fontSize:Pe,lineHeight:`${w}px`,"+ span":{display:"inline-block",opacity:0}}},[`${p}-item-icon, ${u}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${p}-item-icon, ${u}`]:{display:"none"},"a, a:hover":{color:ee}},[`${p}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:pe})}}]};const Nt=L=>{const{componentCls:p,motionDurationSlow:u,motionDurationMid:w,motionEaseInOut:ee,motionEaseOut:Be,iconCls:T,iconSize:ae,iconMarginInlineEnd:Ge}=L;return{[`${p}-item, ${p}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${u}`,`background ${u}`,`padding ${u} ${ee}`].join(","),[`${p}-item-icon, ${T}`]:{minWidth:ae,fontSize:ae,transition:[`font-size ${w} ${Be}`,`margin ${u} ${ee}`,`color ${u}`].join(","),"+ span":{marginInlineStart:Ge,opacity:1,transition:[`opacity ${u} ${ee}`,`margin ${u}`,`color ${u}`].join(",")}},[`${p}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${p}-item-only-child`]:{[`> ${T}, > ${p}-item-icon`]:{marginInlineEnd:0}}},[`${p}-item-disabled, ${p}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${p}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zt=L=>{const{componentCls:p,motionDurationSlow:u,motionEaseInOut:w,borderRadius:ee,menuArrowSize:Be,menuArrowOffset:T}=L;return{[`${p}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:L.margin,width:Be,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${u} ${w}, opacity ${u}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Be*.6,height:Be*.15,backgroundColor:"currentcolor",borderRadius:ee,transition:[`background ${u} ${w}`,`transform ${u} ${w}`,`top ${u} ${w}`,`color ${u} ${w}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${T})`},"&::after":{transform:`rotate(-45deg) translateY(${T})`}}}}},Ht=L=>{const{antCls:p,componentCls:u,fontSize:w,motionDurationSlow:ee,motionDurationMid:Be,motionEaseInOut:T,paddingXS:ae,padding:Ge,colorSplit:Ee,lineWidth:me,zIndexPopup:qe,borderRadiusLG:_t,subMenuItemBorderRadius:pe,menuArrowSize:st,menuArrowOffset:At,lineType:Pe,menuPanelMaskInset:Ie,groupTitleLineHeight:vt,groupTitleFontSize:Ut}=L;return[{"":{[`${u}`]:Object.assign(Object.assign({},(0,je.dF)()),{"&-hidden":{display:"none"}})},[`${u}-submenu-hidden`]:{display:"none"}},{[u]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(L)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:w,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${u}-item`]:{flex:"none"}},[`${u}-item, ${u}-submenu, ${u}-submenu-title`]:{borderRadius:L.itemBorderRadius},[`${u}-item-group-title`]:{padding:`${ae}px ${Ge}px`,fontSize:Ut,lineHeight:vt,transition:`all ${ee}`},[`&-horizontal ${u}-submenu`]:{transition:[`border-color ${ee} ${T}`,`background ${ee} ${T}`].join(",")},[`${u}-submenu, ${u}-submenu-inline`]:{transition:[`border-color ${ee} ${T}`,`background ${ee} ${T}`,`padding ${Be} ${T}`].join(",")},[`${u}-submenu ${u}-sub`]:{cursor:"initial",transition:[`background ${ee} ${T}`,`padding ${ee} ${T}`].join(",")},[`${u}-title-content`]:{transition:`color ${ee}`},[`${u}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${u}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ee,borderStyle:Pe,borderWidth:0,borderTopWidth:me,marginBlock:me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Nt(L)),{[`${u}-item-group`]:{[`${u}-item-group-list`]:{margin:0,padding:0,[`${u}-item, ${u}-submenu-title`]:{paddingInline:`${w*2}px ${Ge}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:qe,borderRadius:_t,boxShadow:"none",transformOrigin:"0 0",[`&${u}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ie}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ie},"\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:L.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:L.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:L.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:L.paddingXS},[`> ${u}`]:Object.assign(Object.assign(Object.assign({borderRadius:_t},Nt(L)),zt(L)),{[`${u}-item, ${u}-submenu > ${u}-submenu-title`]:{borderRadius:pe},[`${u}-submenu-title::after`]:{transition:`transform ${ee} ${T}`}})}}),zt(L)),{[`&-inline-collapsed ${u}-submenu-arrow,
&-inline ${u}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${At})`},"&::after":{transform:`rotate(45deg) translateX(-${At})`}},[`${u}-submenu-open${u}-submenu-inline > ${u}-submenu-title > ${u}-submenu-arrow`]:{transform:`translateY(-${st*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${At})`},"&::before":{transform:`rotate(45deg) translateX(${At})`}}})},{[`${p}-layout-header`]:{[u]:{lineHeight:"inherit"}}}]};var cr=(L,p)=>(0,ot.Z)("Menu",w=>{if(p===!1)return[];const{colorBgElevated:ee,colorPrimary:Be,colorTextLightSolid:T,controlHeightLG:ae,fontSize:Ge,darkItemColor:Ee,darkDangerItemColor:me,darkItemBg:qe,darkSubMenuItemBg:_t,darkItemSelectedColor:pe,darkItemSelectedBg:st,darkDangerItemSelectedBg:At,darkItemHoverBg:Pe,darkGroupTitleColor:Ie,darkItemHoverColor:vt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:Rt,darkDangerItemSelectedColor:hr,darkDangerItemActiveBg:br}=w,Mr=Ge/7*5,Ur=(0,Le.TS)(w,{menuArrowSize:Mr,menuHorizontalHeight:ae*1.15,menuArrowOffset:`${Mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ee}),Qr=(0,Le.TS)(Ur,{itemColor:Ee,itemHoverColor:vt,groupTitleColor:Ie,itemSelectedColor:pe,itemBg:qe,popupBg:qe,subMenuItemBg:_t,itemActiveBg:"transparent",itemSelectedBg:st,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Pe,itemDisabledColor:Ut,dangerItemColor:me,dangerItemHoverColor:Rt,dangerItemSelectedColor:hr,dangerItemActiveBg:br,dangerItemSelectedBg:At,menuSubMenuBg:_t,horizontalItemSelectedColor:T,horizontalItemSelectedBg:Be});return[Ht(Ur),Re(Ur),ut(Ur),at(Ur,"light"),at(Qr,"dark"),ke(Ur),(0,q.Z)(Ur),(0,ce.oN)(Ur,"slide-up"),(0,ce.oN)(Ur,"slide-down"),(0,k._y)(Ur,"zoom-big")]},w=>{const{colorPrimary:ee,colorError:Be,colorTextDisabled:T,colorErrorBg:ae,colorText:Ge,colorTextDescription:Ee,colorBgContainer:me,colorFillAlter:qe,colorFillContent:_t,lineWidth:pe,lineWidthBold:st,controlItemBgActive:At,colorBgTextHover:Pe,controlHeightLG:Ie,lineHeight:vt,colorBgElevated:Ut,marginXXS:Rt,padding:hr,fontSize:br,controlHeightSM:Mr,fontSizeLG:Ur,colorTextLightSolid:Qr,colorErrorHover:rr}=w,Ar=new Ce.C(Qr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:w.zIndexPopupBase+50,radiusItem:w.borderRadiusLG,itemBorderRadius:w.borderRadiusLG,radiusSubMenuItem:w.borderRadiusSM,subMenuItemBorderRadius:w.borderRadiusSM,colorItemText:Ge,itemColor:Ge,colorItemTextHover:Ge,itemHoverColor:Ge,colorItemTextHoverHorizontal:ee,horizontalItemHoverColor:ee,colorGroupTitle:Ee,groupTitleColor:Ee,colorItemTextSelected:ee,itemSelectedColor:ee,colorItemTextSelectedHorizontal:ee,horizontalItemSelectedColor:ee,colorItemBg:me,itemBg:me,colorItemBgHover:Pe,itemHoverBg:Pe,colorItemBgActive:_t,itemActiveBg:At,colorSubItemBg:qe,subMenuItemBg:qe,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:st,activeBarHeight:st,colorActiveBarBorderSize:pe,activeBarBorderWidth:pe,colorItemTextDisabled:T,itemDisabledColor:T,colorDangerItemText:Be,dangerItemColor:Be,colorDangerItemTextHover:Be,dangerItemHoverColor:Be,colorDangerItemTextSelected:Be,dangerItemSelectedColor:Be,colorDangerItemBgActive:ae,dangerItemActiveBg:ae,colorDangerItemBgSelected:ae,dangerItemSelectedBg:ae,itemMarginInline:w.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ie,groupTitleLineHeight:vt,collapsedWidth:Ie*2,popupBg:Ut,itemMarginBlock:Rt,itemPaddingInline:hr,horizontalLineHeight:`${Ie*1.15}px`,iconSize:br,iconMarginInlineEnd:Mr-br,collapsedIconSize:Ur,groupTitleFontSize:br,darkItemDisabledColor:new Ce.C(Qr).setAlpha(.25).toRgbString(),darkItemColor:Ar,darkDangerItemColor:Be,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Qr,darkItemSelectedBg:ee,darkDangerItemSelectedBg:Be,darkItemHoverBg:"transparent",darkGroupTitleColor:Ar,darkItemHoverColor:Qr,darkDangerItemHoverColor:rr,darkDangerItemSelectedColor:Qr,darkDangerItemActiveBg:Be}},{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"]]})(L),or=function(L,p){var u={};for(var w in L)Object.prototype.hasOwnProperty.call(L,w)&&p.indexOf(w)<0&&(u[w]=L[w]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,w=Object.getOwnPropertySymbols(L);ee<w.length;ee++)p.indexOf(w[ee])<0&&Object.prototype.propertyIsEnumerable.call(L,w[ee])&&(u[w[ee]]=L[w[ee]]);return u},dr=(0,ue.forwardRef)((L,p)=>{var u,w;const ee=ue.useContext(j.Z),Be=ee||{},{getPrefixCls:T,getPopupContainer:ae,direction:Ge,menu:Ee}=ue.useContext(G.E_),me=T(),{prefixCls:qe,className:_t,style:pe,theme:st="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:Pe,inlineCollapsed:Ie,siderCollapsed:vt,items:Ut,children:Rt,rootClassName:hr,mode:br,selectable:Mr,onClick:Ur,overflowedIndicatorPopupClassName:Qr}=L,rr=or(L,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ar=(0,Z.Z)(rr,["collapsedWidth"]),jr=Ne(Ut)||Rt;(u=Be.validator)===null||u===void 0||u.call(Be,{mode:br});const cn=(0,X.useEvent)(function(){var Ri;Ur==null||Ur.apply(void 0,arguments),(Ri=Be.onClick)===null||Ri===void 0||Ri.call(Be)}),Tn=Be.mode||br,en=Mr!=null?Mr:Be.selectable,Qn=ue.useMemo(()=>vt!==void 0?vt:Ie,[Ie,vt]),li={horizontal:{motionName:`${me}-slide-up`},inline:(0,W.Z)(me),other:{motionName:`${me}-zoom-big`}},Pr=T("menu",qe||Be.prefixCls),[ti,yi]=cr(Pr,!ee),ci=ne()(`${Pr}-${st}`,Ee==null?void 0:Ee.className,_t);let Ci;if(typeof At=="function")Ci=At;else if(At===null||At===!1)Ci=null;else if(Be.expandIcon===null||Be.expandIcon===!1)Ci=null;else{const Ri=At!=null?At:Be.expandIcon;Ci=(0,_.Tm)(Ri,{className:ne()(`${Pr}-submenu-expand-icon`,(0,_.l$)(Ri)?(w=Ri.props)===null||w===void 0?void 0:w.className:"")})}const hi=ue.useMemo(()=>({prefixCls:Pr,inlineCollapsed:Qn||!1,direction:Ge,firstLevel:!0,theme:st,mode:Tn,disableMenuItemTitleTooltip:Pe}),[Pr,Qn,Ge,Pe,st]);return ti(ue.createElement(j.Z.Provider,{value:null},ue.createElement(R.Provider,{value:hi},ue.createElement(ge.ZP,Object.assign({getPopupContainer:ae,overflowedIndicator:ue.createElement(te.Z,null),overflowedIndicatorPopupClassName:ne()(Pr,`${Pr}-${st}`,Qr),mode:Tn,selectable:en,onClick:cn},Ar,{inlineCollapsed:Qn,style:Object.assign(Object.assign({},Ee==null?void 0:Ee.style),pe),className:ci,prefixCls:Pr,direction:Ge,defaultMotions:li,expandIcon:Ci,ref:p,rootClassName:ne()(hr,yi)}),jr))))});const $=(0,ue.forwardRef)((L,p)=>{const u=(0,ue.useRef)(null),w=ue.useContext(Q.D);return(0,ue.useImperativeHandle)(p,()=>({menu:u.current,focus:ee=>{var Be;(Be=u.current)===null||Be===void 0||Be.focus(ee)}})),ue.createElement(dr,Object.assign({ref:u},L,w))});$.Item=Y,$.SubMenu=se,$.Divider=E,$.ItemGroup=ge.BW;var Xe=$},58421:function(xn,er,x){"use strict";x.d(er,{Z:function(){return Be}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(ae,Ge){return ue.createElement(ne.Z,(0,ge.Z)({},ae,{ref:Ge,icon:Te}))},B=ue.forwardRef(G),f=B,E=x(49198),h=x(33853),Z=x(38819),S=x(92310),_=x.n(S),N=x(400),R=x(33708),I=x(6909),Y=x(4771),K=x(9427),se=x(25440),te=x(26112),X={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},W=X,j=x(91735),le=function(T){(0,K.Z)(Ge,T);var ae=(0,se.Z)(Ge);function Ge(){var Ee;(0,I.Z)(this,Ge);for(var me=arguments.length,qe=new Array(me),_t=0;_t<me;_t++)qe[_t]=arguments[_t];return Ee=ae.call.apply(ae,[this].concat(qe)),Ee.state={goInputText:""},Ee.getValidValue=function(){var pe=Ee.state.goInputText;return!pe||Number.isNaN(pe)?void 0:Number(pe)},Ee.buildOptionText=function(pe){return"".concat(pe," ").concat(Ee.props.locale.items_per_page)},Ee.changeSize=function(pe){Ee.props.changeSize(Number(pe))},Ee.handleChange=function(pe){Ee.setState({goInputText:pe.target.value})},Ee.handleBlur=function(pe){var st=Ee.props,At=st.goButton,Pe=st.quickGo,Ie=st.rootPrefixCls,vt=Ee.state.goInputText;At||vt===""||(Ee.setState({goInputText:""}),!(pe.relatedTarget&&(pe.relatedTarget.className.indexOf("".concat(Ie,"-item-link"))>=0||pe.relatedTarget.className.indexOf("".concat(Ie,"-item"))>=0))&&Pe(Ee.getValidValue()))},Ee.go=function(pe){var st=Ee.state.goInputText;st!==""&&(pe.keyCode===W.ENTER||pe.type==="click")&&(Ee.setState({goInputText:""}),Ee.props.quickGo(Ee.getValidValue()))},Ee}return(0,Y.Z)(Ge,[{key:"getPageSizeOptions",value:function(){var me=this.props,qe=me.pageSize,_t=me.pageSizeOptions;return _t.some(function(pe){return pe.toString()===qe.toString()})?_t:_t.concat([qe.toString()]).sort(function(pe,st){var At=Number.isNaN(Number(pe))?0:Number(pe),Pe=Number.isNaN(Number(st))?0:Number(st);return At-Pe})}},{key:"render",value:function(){var me=this,qe=this.props,_t=qe.pageSize,pe=qe.locale,st=qe.rootPrefixCls,At=qe.changeSize,Pe=qe.quickGo,Ie=qe.goButton,vt=qe.selectComponentClass,Ut=qe.buildOptionText,Rt=qe.selectPrefixCls,hr=qe.disabled,br=this.state.goInputText,Mr="".concat(st,"-options"),Ur=vt,Qr=null,rr=null,Ar=null;if(!At&&!Pe)return null;var jr=this.getPageSizeOptions();if(At&&Ur){var cn=jr.map(function(Tn,en){return ue.createElement(Ur.Option,{key:en,value:Tn.toString()},(Ut||me.buildOptionText)(Tn))});Qr=ue.createElement(Ur,{disabled:hr,prefixCls:Rt,showSearch:!1,className:"".concat(Mr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(_t||jr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(en){return en.parentNode},"aria-label":pe.page_size,defaultOpen:!1},cn)}return Pe&&(Ie&&(Ar=typeof Ie=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:hr,className:"".concat(Mr,"-quick-jumper-button")},pe.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},Ie)),rr=ue.createElement("div",{className:"".concat(Mr,"-quick-jumper")},pe.jump_to,ue.createElement("input",{disabled:hr,type:"text",value:br,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":pe.page}),pe.page,Ar)),ue.createElement("li",{className:"".concat(Mr)},Qr,rr)}}]),Ge}(ue.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=le,Ne=function(ae){var Ge,Ee=ae.rootPrefixCls,me=ae.page,qe=ae.active,_t=ae.className,pe=ae.showTitle,st=ae.onClick,At=ae.onKeyPress,Pe=ae.itemRender,Ie="".concat(Ee,"-item"),vt=_()(Ie,"".concat(Ie,"-").concat(me),(Ge={},(0,N.Z)(Ge,"".concat(Ie,"-active"),qe),(0,N.Z)(Ge,"".concat(Ie,"-disabled"),!me),(0,N.Z)(Ge,ae.className,_t),Ge)),Ut=function(){st(me)},Rt=function(Mr){At(Mr,st,me)},hr=Pe(me,"page",ue.createElement("a",{rel:"nofollow"},me));return hr?ue.createElement("li",{title:pe?me.toString():null,className:vt,onClick:Ut,onKeyPress:Rt,tabIndex:0},hr):null},Ce=Ne;function je(){}function q(T){var ae=Number(T);return typeof ae=="number"&&!Number.isNaN(ae)&&isFinite(ae)&&Math.floor(ae)===ae}var ce=function(ae,Ge,Ee){return Ee};function k(T,ae,Ge){var Ee=typeof T=="undefined"?ae.pageSize:T;return Math.floor((Ge.total-1)/Ee)+1}var ot=function(T){(0,K.Z)(Ge,T);var ae=(0,se.Z)(Ge);function Ge(Ee){var me;(0,I.Z)(this,Ge),me=ae.call(this,Ee),me.paginationNode=ue.createRef(),me.getJumpPrevPage=function(){return Math.max(1,me.state.current-(me.props.showLessItems?3:5))},me.getJumpNextPage=function(){return Math.min(k(void 0,me.state,me.props),me.state.current+(me.props.showLessItems?3:5))},me.getItemIcon=function(At,Pe){var Ie=me.props.prefixCls,vt=At||ue.createElement("button",{type:"button","aria-label":Pe,className:"".concat(Ie,"-item-link")});return typeof At=="function"&&(vt=ue.createElement(At,(0,R.Z)({},me.props))),vt},me.isValid=function(At){var Pe=me.props.total;return q(At)&&At!==me.state.current&&q(Pe)&&Pe>0},me.shouldDisplayQuickJumper=function(){var At=me.props,Pe=At.showQuickJumper,Ie=At.total,vt=me.state.pageSize;return Ie<=vt?!1:Pe},me.handleKeyDown=function(At){(At.keyCode===W.ARROW_UP||At.keyCode===W.ARROW_DOWN)&&At.preventDefault()},me.handleKeyUp=function(At){var Pe=me.getValidValue(At),Ie=me.state.currentInputValue;Pe!==Ie&&me.setState({currentInputValue:Pe}),At.keyCode===W.ENTER?me.handleChange(Pe):At.keyCode===W.ARROW_UP?me.handleChange(Pe-1):At.keyCode===W.ARROW_DOWN&&me.handleChange(Pe+1)},me.handleBlur=function(At){var Pe=me.getValidValue(At);me.handleChange(Pe)},me.changePageSize=function(At){var Pe=me.state.current,Ie=k(At,me.state,me.props);Pe=Pe>Ie?Ie:Pe,Ie===0&&(Pe=me.state.current),typeof At=="number"&&("pageSize"in me.props||me.setState({pageSize:At}),"current"in me.props||me.setState({current:Pe,currentInputValue:Pe})),me.props.onShowSizeChange(Pe,At),"onChange"in me.props&&me.props.onChange&&me.props.onChange(Pe,At)},me.handleChange=function(At){var Pe=me.props,Ie=Pe.disabled,vt=Pe.onChange,Ut=me.state,Rt=Ut.pageSize,hr=Ut.current,br=Ut.currentInputValue;if(me.isValid(At)&&!Ie){var Mr=k(void 0,me.state,me.props),Ur=At;return At>Mr?Ur=Mr:At<1&&(Ur=1),"current"in me.props||me.setState({current:Ur}),Ur!==br&&me.setState({currentInputValue:Ur}),vt(Ur,Rt),Ur}return hr},me.prev=function(){me.hasPrev()&&me.handleChange(me.state.current-1)},me.next=function(){me.hasNext()&&me.handleChange(me.state.current+1)},me.jumpPrev=function(){me.handleChange(me.getJumpPrevPage())},me.jumpNext=function(){me.handleChange(me.getJumpNextPage())},me.hasPrev=function(){return me.state.current>1},me.hasNext=function(){return me.state.current<k(void 0,me.state,me.props)},me.runIfEnter=function(At,Pe){if(At.key==="Enter"||At.charCode===13){for(var Ie=arguments.length,vt=new Array(Ie>2?Ie-2:0),Ut=2;Ut<Ie;Ut++)vt[Ut-2]=arguments[Ut];Pe.apply(void 0,vt)}},me.runIfEnterPrev=function(At){me.runIfEnter(At,me.prev)},me.runIfEnterNext=function(At){me.runIfEnter(At,me.next)},me.runIfEnterJumpPrev=function(At){me.runIfEnter(At,me.jumpPrev)},me.runIfEnterJumpNext=function(At){me.runIfEnter(At,me.jumpNext)},me.handleGoTO=function(At){(At.keyCode===W.ENTER||At.type==="click")&&me.handleChange(me.state.currentInputValue)},me.renderPrev=function(At){var Pe=me.props,Ie=Pe.prevIcon,vt=Pe.itemRender,Ut=vt(At,"prev",me.getItemIcon(Ie,"prev page")),Rt=!me.hasPrev();return(0,ue.isValidElement)(Ut)?(0,ue.cloneElement)(Ut,{disabled:Rt}):Ut},me.renderNext=function(At){var Pe=me.props,Ie=Pe.nextIcon,vt=Pe.itemRender,Ut=vt(At,"next",me.getItemIcon(Ie,"next page")),Rt=!me.hasNext();return(0,ue.isValidElement)(Ut)?(0,ue.cloneElement)(Ut,{disabled:Rt}):Ut};var qe=Ee.onChange!==je,_t="current"in Ee;_t&&!qe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var pe=Ee.defaultCurrent;"current"in Ee&&(pe=Ee.current);var st=Ee.defaultPageSize;return"pageSize"in Ee&&(st=Ee.pageSize),pe=Math.min(pe,k(st,void 0,Ee)),me.state={current:pe,currentInputValue:pe,pageSize:st},me}return(0,Y.Z)(Ge,[{key:"componentDidUpdate",value:function(me,qe){var _t=this.props.prefixCls;if(qe.current!==this.state.current&&this.paginationNode.current){var pe=this.paginationNode.current.querySelector(".".concat(_t,"-item-").concat(qe.current));if(pe&&document.activeElement===pe){var st;pe==null||(st=pe.blur)===null||st===void 0||st.call(pe)}}}},{key:"getValidValue",value:function(me){var qe=me.target.value,_t=k(void 0,this.state,this.props),pe=this.state.currentInputValue,st;return qe===""?st=qe:Number.isNaN(Number(qe))?st=pe:qe>=_t?st=_t:st=Number(qe),st}},{key:"getShowSizeChanger",value:function(){var me=this.props,qe=me.showSizeChanger,_t=me.total,pe=me.totalBoundaryShowSizeChanger;return typeof qe!="undefined"?qe:_t>pe}},{key:"render",value:function(){var me=this.props,qe=me.prefixCls,_t=me.className,pe=me.style,st=me.disabled,At=me.hideOnSinglePage,Pe=me.total,Ie=me.locale,vt=me.showQuickJumper,Ut=me.showLessItems,Rt=me.showTitle,hr=me.showTotal,br=me.simple,Mr=me.itemRender,Ur=me.showPrevNextJumpers,Qr=me.jumpPrevIcon,rr=me.jumpNextIcon,Ar=me.selectComponentClass,jr=me.selectPrefixCls,cn=me.pageSizeOptions,Tn=this.state,en=Tn.current,Qn=Tn.pageSize,li=Tn.currentInputValue;if(At===!0&&Pe<=Qn)return null;var Pr=k(void 0,this.state,this.props),ti=[],yi=null,ci=null,Ci=null,hi=null,Ri=null,ba=vt&&vt.goButton,Xi=Ut?1:2,_i=en-1>0?en-1:0,oi=en+1<Pr?en+1:Pr,Qi=(0,te.Z)(this.props,{aria:!0,data:!0}),be=hr&&ue.createElement("li",{className:"".concat(qe,"-total-text")},hr(Pe,[Pe===0?0:(en-1)*Qn+1,en*Qn>Pe?Pe:en*Qn]));if(br){ba&&(typeof ba=="boolean"?Ri=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ie.jump_to_confirm):Ri=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ba),Ri=ue.createElement("li",{title:Rt?"".concat(Ie.jump_to).concat(en,"/").concat(Pr):null,className:"".concat(qe,"-simple-pager")},Ri));var Ue=this.renderPrev(_i);return ue.createElement("ul",(0,ge.Z)({className:_()(qe,"".concat(qe,"-simple"),(0,N.Z)({},"".concat(qe,"-disabled"),st),_t),style:pe,ref:this.paginationNode},Qi),be,Ue?ue.createElement("li",{title:Rt?Ie.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_()("".concat(qe,"-prev"),(0,N.Z)({},"".concat(qe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ue):null,ue.createElement("li",{title:Rt?"".concat(en,"/").concat(Pr):null,className:"".concat(qe,"-simple-pager")},ue.createElement("input",{type:"text",value:li,disabled:st,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(qe,"-slash")},"/"),Pr),ue.createElement("li",{title:Rt?Ie.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_()("".concat(qe,"-next"),(0,N.Z)({},"".concat(qe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(oi)),Ri)}if(Pr<=3+Xi*2){var Me={locale:Ie,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Rt,itemRender:Mr};Pr||ti.push(ue.createElement(Ce,(0,ge.Z)({},Me,{key:"noPager",page:1,className:"".concat(qe,"-item-disabled")})));for(var lt=1;lt<=Pr;lt+=1){var Zt=en===lt;ti.push(ue.createElement(Ce,(0,ge.Z)({},Me,{key:lt,page:lt,active:Zt})))}}else{var Qt=Ut?Ie.prev_3:Ie.prev_5,Sr=Ut?Ie.next_3:Ie.next_5,fr=Mr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Qr,"prev page")),Tr=Mr(this.getJumpNextPage(),"jump-next",this.getItemIcon(rr,"next page"));Ur&&(yi=fr?ue.createElement("li",{title:Rt?Qt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_()("".concat(qe,"-jump-prev"),(0,N.Z)({},"".concat(qe,"-jump-prev-custom-icon"),!!Qr))},fr):null,ci=Tr?ue.createElement("li",{title:Rt?Sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_()("".concat(qe,"-jump-next"),(0,N.Z)({},"".concat(qe,"-jump-next-custom-icon"),!!rr))},Tr):null),hi=ue.createElement(Ce,{locale:Ie,last:!0,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pr,page:Pr,active:!1,showTitle:Rt,itemRender:Mr}),Ci=ue.createElement(Ce,{locale:Ie,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Rt,itemRender:Mr});var Wr=Math.max(1,en-Xi),An=Math.min(en+Xi,Pr);en-1<=Xi&&(An=1+Xi*2),Pr-en<=Xi&&(Wr=Pr-Xi*2);for(var $r=Wr;$r<=An;$r+=1){var Rr=en===$r;ti.push(ue.createElement(Ce,{locale:Ie,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$r,page:$r,active:Rr,showTitle:Rt,itemRender:Mr}))}en-1>=Xi*2&&en!==3&&(ti[0]=(0,ue.cloneElement)(ti[0],{className:"".concat(qe,"-item-after-jump-prev")}),ti.unshift(yi)),Pr-en>=Xi*2&&en!==Pr-2&&(ti[ti.length-1]=(0,ue.cloneElement)(ti[ti.length-1],{className:"".concat(qe,"-item-before-jump-next")}),ti.push(ci)),Wr!==1&&ti.unshift(Ci),An!==Pr&&ti.push(hi)}var qr=!this.hasPrev()||!Pr,mn=!this.hasNext()||!Pr,sn=this.renderPrev(_i),Sn=this.renderNext(oi);return ue.createElement("ul",(0,ge.Z)({className:_()(qe,_t,(0,N.Z)({},"".concat(qe,"-disabled"),st)),style:pe,ref:this.paginationNode},Qi),be,sn?ue.createElement("li",{title:Rt?Ie.prev_page:null,onClick:this.prev,tabIndex:qr?null:0,onKeyPress:this.runIfEnterPrev,className:_()("".concat(qe,"-prev"),(0,N.Z)({},"".concat(qe,"-disabled"),qr)),"aria-disabled":qr},sn):null,ti,Sn?ue.createElement("li",{title:Rt?Ie.next_page:null,onClick:this.next,tabIndex:mn?null:0,onKeyPress:this.runIfEnterNext,className:_()("".concat(qe,"-next"),(0,N.Z)({},"".concat(qe,"-disabled"),mn)),"aria-disabled":mn},Sn):null,ue.createElement(he,{disabled:st,locale:Ie,rootPrefixCls:qe,selectComponentClass:Ar,selectPrefixCls:jr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:en,pageSize:Qn,pageSizeOptions:cn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ba}))}}],[{key:"getDerivedStateFromProps",value:function(me,qe){var _t={};if("current"in me&&(_t.current=me.current,me.current!==qe.current&&(_t.currentInputValue=_t.current)),"pageSize"in me&&me.pageSize!==qe.pageSize){var pe=qe.current,st=k(me.pageSize,qe,me);pe=pe>st?st:pe,"current"in me||(_t.current=pe,_t.currentInputValue=pe),_t.pageSize=me.pageSize}return _t}}]),Ge}(ue.Component);ot.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:j.Z,style:{},itemRender:ce,totalBoundaryShowSizeChanger:50};var Le=ot,xe=x(22075),Re=x(36355),ve=x(19716),ke=x(8628),fe=x(9763),ye=x(57809);const at=T=>ue.createElement(ye.default,Object.assign({},T,{showSearch:!0,size:"small"})),rt=T=>ue.createElement(ye.default,Object.assign({},T,{showSearch:!0,size:"middle"}));at.Option=ye.default.Option,rt.Option=ye.default.Option;var nt=x(9937),ut=x(17313),Nt=x(83116),zt=x(37613);const Ht=T=>{const{componentCls:ae}=T;return{[`${ae}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ae}-item-link`]:{color:T.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ae}-item-link`]:{color:T.colorTextDisabled,cursor:"not-allowed"}}},[`&${ae}-disabled`]:{cursor:"not-allowed",[`${ae}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:T.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:T.colorBorder,backgroundColor:T.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:T.itemActiveBgDisabled},a:{color:T.itemActiveColorDisabled}}},[`${ae}-item-link`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ae}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ae}-simple-pager`]:{color:T.colorTextDisabled},[`${ae}-jump-prev, ${ae}-jump-next`]:{[`${ae}-item-link-icon`]:{opacity:0},[`${ae}-item-ellipsis`]:{opacity:1}}},[`&${ae}-simple`]:{[`${ae}-prev, ${ae}-next`]:{[`&${ae}-disabled ${ae}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},cr=T=>{const{componentCls:ae}=T;return{[`&${ae}-mini ${ae}-total-text, &${ae}-mini ${ae}-simple-pager`]:{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`},[`&${ae}-mini ${ae}-item`]:{minWidth:T.itemSizeSM,height:T.itemSizeSM,margin:0,lineHeight:`${T.itemSizeSM-2}px`},[`&${ae}-mini:not(${ae}-disabled) ${ae}-item:not(${ae}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:T.colorBgTextHover},"&:active":{backgroundColor:T.colorBgTextActive}},[`&${ae}-mini ${ae}-prev, &${ae}-mini ${ae}-next`]:{minWidth:T.itemSizeSM,height:T.itemSizeSM,margin:0,lineHeight:`${T.itemSizeSM}px`},[`&${ae}-mini:not(${ae}-disabled)`]:{[`${ae}-prev, ${ae}-next`]:{[`&:hover ${ae}-item-link`]:{backgroundColor:T.colorBgTextHover},[`&:active ${ae}-item-link`]:{backgroundColor:T.colorBgTextActive},[`&${ae}-disabled:hover ${ae}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ae}-mini ${ae}-prev ${ae}-item-link,
&${ae}-mini ${ae}-next ${ae}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`}},[`&${ae}-mini ${ae}-jump-prev, &${ae}-mini ${ae}-jump-next`]:{height:T.itemSizeSM,marginInlineEnd:0,lineHeight:`${T.itemSizeSM}px`},[`&${ae}-mini ${ae}-options`]:{marginInlineStart:T.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:T.miniOptionsSizeChangerTop},"&-quick-jumper":{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nt.x0)(T)),{width:T.paginationMiniQuickJumperInputWidth,height:T.controlHeightSM})}}}},or=T=>{const{componentCls:ae}=T;return{[`
&${ae}-simple ${ae}-prev,
&${ae}-simple ${ae}-next
`]:{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`,verticalAlign:"top",[`${ae}-item-link`]:{height:T.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:T.colorBgTextHover},"&:active":{backgroundColor:T.colorBgTextActive},"&::after":{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`}}},[`&${ae}-simple ${ae}-simple-pager`]:{display:"inline-block",height:T.itemSizeSM,marginInlineEnd:T.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:T.marginXS,padding:`0 ${T.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:T.itemInputBg,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,borderRadius:T.borderRadius,outline:"none",transition:`border-color ${T.motionDurationMid}`,color:"inherit","&:hover":{borderColor:T.colorPrimary},"&:focus":{borderColor:T.colorPrimaryHover,boxShadow:`${T.inputOutlineOffset}px 0 ${T.controlOutlineWidth}px ${T.controlOutline}`},"&[disabled]":{color:T.colorTextDisabled,backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,cursor:"not-allowed"}}}}},yr=T=>{const{componentCls:ae}=T;return{[`${ae}-jump-prev, ${ae}-jump-next`]:{outline:0,[`${ae}-item-container`]:{position:"relative",[`${ae}-item-link-icon`]:{color:T.colorPrimary,fontSize:T.fontSizeSM,opacity:0,transition:`all ${T.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ae}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:T.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:T.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:T.paginationEllipsisTextIndent,opacity:1,transition:`all ${T.motionDurationMid}`}},"&:hover":{[`${ae}-item-link-icon`]:{opacity:1},[`${ae}-item-ellipsis`]:{opacity:0}}},[`
${ae}-prev,
${ae}-jump-prev,
${ae}-jump-next
`]:{marginInlineEnd:T.marginXS},[`
${ae}-prev,
${ae}-next,
${ae}-jump-prev,
${ae}-jump-next
`]:{display:"inline-block",minWidth:T.itemSize,height:T.itemSize,color:T.colorText,fontFamily:T.fontFamily,lineHeight:`${T.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}`},[`${ae}-prev, ${ae}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:T.colorText,cursor:"pointer",userSelect:"none"},[`${ae}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:T.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${T.lineWidth}px ${T.lineType} transparent`,borderRadius:T.borderRadius,outline:"none",transition:`all ${T.motionDurationMid}`},[`&:hover ${ae}-item-link`]:{backgroundColor:T.colorBgTextHover},[`&:active ${ae}-item-link`]:{backgroundColor:T.colorBgTextActive},[`&${ae}-disabled:hover`]:{[`${ae}-item-link`]:{backgroundColor:"transparent"}}},[`${ae}-slash`]:{marginInlineEnd:T.paginationSlashMarginInlineEnd,marginInlineStart:T.paginationSlashMarginInlineStart},[`${ae}-options`]:{display:"inline-block",marginInlineStart:T.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:T.controlHeight,marginInlineStart:T.marginXS,lineHeight:`${T.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nt.ik)(T)),{width:T.controlHeightLG*1.25,height:T.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:T.marginXS,marginInlineEnd:T.marginXS})}}}},dr=T=>{const{componentCls:ae}=T;return{[`${ae}-item`]:{display:"inline-block",minWidth:T.itemSize,height:T.itemSize,marginInlineEnd:T.marginXS,fontFamily:T.fontFamily,lineHeight:`${T.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${T.lineWidth}px ${T.lineType} transparent`,borderRadius:T.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${T.paginationItemPaddingInline}px`,color:T.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ae}-item-active)`]:{"&:hover":{transition:`all ${T.motionDurationMid}`,backgroundColor:T.colorBgTextHover},"&:active":{backgroundColor:T.colorBgTextActive}},"&-active":{fontWeight:T.fontWeightStrong,backgroundColor:T.itemActiveBg,borderColor:T.colorPrimary,a:{color:T.colorPrimary},"&:hover":{borderColor:T.colorPrimaryHover},"&:hover a":{color:T.colorPrimaryHover}}}}},$=T=>{const{componentCls:ae}=T;return{[ae]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(T)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ae}-total-text`]:{display:"inline-block",height:T.itemSize,marginInlineEnd:T.marginXS,lineHeight:`${T.itemSize-2}px`,verticalAlign:"middle"}}),dr(T)),yr(T)),or(T)),cr(T)),Ht(T)),{[`@media only screen and (max-width: ${T.screenLG}px)`]:{[`${ae}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${T.screenSM}px)`]:{[`${ae}-options`]:{display:"none"}}}),[`&${T.componentCls}-rtl`]:{direction:"rtl"}}},Xe=T=>{const{componentCls:ae}=T;return{[`${ae}${ae}-disabled:not(${ae}-mini)`]:{"&, &:hover":{[`${ae}-item-link`]:{borderColor:T.colorBorder}},"&:focus-visible":{[`${ae}-item-link`]:{borderColor:T.colorBorder}},[`${ae}-item, ${ae}-item-link`]:{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,[`&:hover:not(${ae}-item-active)`]:{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,a:{color:T.colorTextDisabled}},[`&${ae}-item-active`]:{backgroundColor:T.itemActiveBgDisabled}},[`${ae}-prev, ${ae}-next`]:{"&:hover button":{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,color:T.colorTextDisabled},[`${ae}-item-link`]:{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder}}},[`${ae}:not(${ae}-mini)`]:{[`${ae}-prev, ${ae}-next`]:{"&:hover button":{borderColor:T.colorPrimaryHover,backgroundColor:T.itemBg},[`${ae}-item-link`]:{backgroundColor:T.itemLinkBg,borderColor:T.colorBorder},[`&:hover ${ae}-item-link`]:{borderColor:T.colorPrimary,backgroundColor:T.itemBg,color:T.colorPrimary},[`&${ae}-disabled`]:{[`${ae}-item-link`]:{borderColor:T.colorBorder,color:T.colorTextDisabled}}},[`${ae}-item`]:{backgroundColor:T.itemBg,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,[`&:hover:not(${ae}-item-active)`]:{borderColor:T.colorPrimary,backgroundColor:T.itemBg,a:{color:T.colorPrimary}},"&-active":{borderColor:T.colorPrimary}}}}},L=T=>{const{componentCls:ae}=T;return{[`${ae}:not(${ae}-disabled)`]:{[`${ae}-item`]:Object.assign({},(0,ut.Qy)(T)),[`${ae}-jump-prev, ${ae}-jump-next`]:{"&:focus-visible":Object.assign({[`${ae}-item-link-icon`]:{opacity:1},[`${ae}-item-ellipsis`]:{opacity:0}},(0,ut.oN)(T))},[`${ae}-prev, ${ae}-next`]:{[`&:focus-visible ${ae}-item-link`]:Object.assign({},(0,ut.oN)(T))}}}};var p=(0,Nt.Z)("Pagination",T=>{const ae=(0,zt.TS)(T,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:T.marginXXS/2,paginationMiniQuickJumperInputWidth:T.controlHeightLG*1.1,paginationItemPaddingInline:T.marginXXS*1.5,paginationEllipsisLetterSpacing:T.marginXXS/2,paginationSlashMarginInlineStart:T.marginXXS,paginationSlashMarginInlineEnd:T.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nt.e5)(T),(0,nt.TM)(T));return[$(ae),L(ae),T.wireframe&&Xe(ae)]},T=>({itemBg:T.colorBgContainer,itemSize:T.controlHeight,itemSizeSM:T.controlHeightSM,itemActiveBg:T.colorBgContainer,itemLinkBg:T.colorBgContainer,itemActiveColorDisabled:T.colorTextDisabled,itemActiveBgDisabled:T.controlItemBgActiveDisabled,itemInputBg:T.colorBgContainer,miniOptionsSizeChangerTop:0})),u=function(T,ae){var Ge={};for(var Ee in T)Object.prototype.hasOwnProperty.call(T,Ee)&&ae.indexOf(Ee)<0&&(Ge[Ee]=T[Ee]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ee=Object.getOwnPropertySymbols(T);me<Ee.length;me++)ae.indexOf(Ee[me])<0&&Object.prototype.propertyIsEnumerable.call(T,Ee[me])&&(Ge[Ee[me]]=T[Ee[me]]);return Ge},ee=T=>{const{prefixCls:ae,selectPrefixCls:Ge,className:Ee,rootClassName:me,style:qe,size:_t,locale:pe,selectComponentClass:st,responsive:At,showSizeChanger:Pe}=T,Ie=u(T,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:vt}=(0,ke.Z)(At),{getPrefixCls:Ut,direction:Rt,pagination:hr={}}=ue.useContext(Re.E_),br=Ut("pagination",ae),[Mr,Ur]=p(br),Qr=Pe!=null?Pe:hr.showSizeChanger,rr=ue.useMemo(()=>{const Pr=ue.createElement("span",{className:`${br}-item-ellipsis`},"\u2022\u2022\u2022"),ti=ue.createElement("button",{className:`${br}-item-link`,type:"button",tabIndex:-1},Rt==="rtl"?ue.createElement(Z.Z,null):ue.createElement(h.Z,null)),yi=ue.createElement("button",{className:`${br}-item-link`,type:"button",tabIndex:-1},Rt==="rtl"?ue.createElement(h.Z,null):ue.createElement(Z.Z,null)),ci=ue.createElement("a",{className:`${br}-item-link`},ue.createElement("div",{className:`${br}-item-container`},Rt==="rtl"?ue.createElement(E.Z,{className:`${br}-item-link-icon`}):ue.createElement(f,{className:`${br}-item-link-icon`}),Pr)),Ci=ue.createElement("a",{className:`${br}-item-link`},ue.createElement("div",{className:`${br}-item-container`},Rt==="rtl"?ue.createElement(f,{className:`${br}-item-link-icon`}):ue.createElement(E.Z,{className:`${br}-item-link-icon`}),Pr));return{prevIcon:ti,nextIcon:yi,jumpPrevIcon:ci,jumpNextIcon:Ci}},[Rt,br]),[Ar]=(0,fe.Z)("Pagination",xe.Z),jr=Object.assign(Object.assign({},Ar),pe),cn=(0,ve.Z)(_t),Tn=cn==="small"||!!(vt&&!cn&&At),en=Ut("select",Ge),Qn=_()({[`${br}-mini`]:Tn,[`${br}-rtl`]:Rt==="rtl"},hr==null?void 0:hr.className,Ee,me,Ur),li=Object.assign(Object.assign({},hr==null?void 0:hr.style),qe);return Mr(ue.createElement(Le,Object.assign({},rr,Ie,{style:li,prefixCls:br,selectPrefixCls:en,className:Qn,selectComponentClass:st||(Tn?at:rt),locale:jr,showSizeChanger:Qr})))},Be=ee},5112:function(xn,er,x){"use strict";x.d(er,{ZP:function(){return ke}});var ge=x(92310),ue=x.n(ge),Q=x(18929),Te=x(26112),ne=x(59301),G=x(36355),B=x(19716);const f=ne.createContext(null),E=f.Provider;var h=f;const Z=ne.createContext(null),S=Z.Provider;var _=x(5630),N=x(8654),R=x(1684),I=x(32441),Y=x(17313),K=x(83116),se=x(37613);const te=fe=>{const{componentCls:ye,antCls:at}=fe,rt=`${ye}-group`;return{[rt]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-block",fontSize:0,[`&${rt}-rtl`]:{direction:"rtl"},[`${at}-badge ${at}-badge-count`]:{zIndex:1},[`> ${at}-badge:not(:first-child) > ${at}-button-wrapper`]:{borderInlineStart:"none"}})}},X=fe=>{const{componentCls:ye,wrapperMarginInlineEnd:at,colorPrimary:rt,radioSize:nt,motionDurationSlow:ut,motionDurationMid:Nt,motionEaseInOutCirc:zt,colorBgContainer:Ht,colorBorder:cr,lineWidth:or,dotSize:yr,colorBgContainerDisabled:dr,colorTextDisabled:$,paddingXS:Xe,dotColorDisabled:L,lineType:p,radioDotDisabledSize:u,wireframe:w,colorWhite:ee}=fe,Be=`${ye}-inner`;return{[`${ye}-wrapper`]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:at,cursor:"pointer",[`&${ye}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:fe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${ye}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${or}px ${p} ${rt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[ye]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${ye}-wrapper:hover &,
&:hover ${Be}`]:{borderColor:rt},[`${ye}-input:focus-visible + ${Be}`]:Object.assign({},(0,Y.oN)(fe)),[`${ye}:hover::after, ${ye}-wrapper:hover &::after`]:{visibility:"visible"},[`${ye}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:w?rt:ee,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${ut} ${zt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:Ht,borderColor:cr,borderStyle:"solid",borderWidth:or,borderRadius:"50%",transition:`all ${Nt}`},[`${ye}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${ye}-checked`]:{[Be]:{borderColor:rt,backgroundColor:w?Ht:rt,"&::after":{transform:`scale(${yr/nt})`,opacity:1,transition:`all ${ut} ${zt}`}}},[`${ye}-disabled`]:{cursor:"not-allowed",[Be]:{backgroundColor:dr,borderColor:cr,cursor:"not-allowed","&::after":{backgroundColor:L}},[`${ye}-input`]:{cursor:"not-allowed"},[`${ye}-disabled + span`]:{color:$,cursor:"not-allowed"},[`&${ye}-checked`]:{[Be]:{"&::after":{transform:`scale(${u/nt})`}}}},[`span${ye} + *`]:{paddingInlineStart:Xe,paddingInlineEnd:Xe}})}},W=fe=>{const{buttonColor:ye,controlHeight:at,componentCls:rt,lineWidth:nt,lineType:ut,colorBorder:Nt,motionDurationSlow:zt,motionDurationMid:Ht,buttonPaddingInline:cr,fontSize:or,buttonBg:yr,fontSizeLG:dr,controlHeightLG:$,controlHeightSM:Xe,paddingXS:L,borderRadius:p,borderRadiusSM:u,borderRadiusLG:w,buttonCheckedBg:ee,buttonSolidCheckedColor:Be,colorTextDisabled:T,colorBgContainerDisabled:ae,buttonCheckedBgDisabled:Ge,buttonCheckedColorDisabled:Ee,colorPrimary:me,colorPrimaryHover:qe,colorPrimaryActive:_t,buttonSolidCheckedBg:pe,buttonSolidCheckedHoverBg:st,buttonSolidCheckedActiveBg:At}=fe;return{[`${rt}-button-wrapper`]:{position:"relative",display:"inline-block",height:at,margin:0,paddingInline:cr,paddingBlock:0,color:ye,fontSize:or,lineHeight:`${at-nt*2}px`,background:yr,border:`${nt}px ${ut} ${Nt}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${Ht}`,`background ${Ht}`,`box-shadow ${Ht}`].join(","),a:{color:ye},[`> ${rt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:Nt,transition:`background-color ${zt}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${ut} ${Nt}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${rt}-group-large &`]:{height:$,fontSize:dr,lineHeight:`${$-nt*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${rt}-group-small &`]:{height:Xe,paddingInline:L-nt,paddingBlock:0,lineHeight:`${Xe-nt*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},"&:hover":{position:"relative",color:me},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(fe)),[`${rt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${rt}-button-wrapper-disabled)`]:{zIndex:1,color:me,background:ee,borderColor:me,"&::before":{backgroundColor:me},"&:first-child":{borderColor:me},"&:hover":{color:qe,borderColor:qe,"&::before":{backgroundColor:qe}},"&:active":{color:_t,borderColor:_t,"&::before":{backgroundColor:_t}}},[`${rt}-group-solid &-checked:not(${rt}-button-wrapper-disabled)`]:{color:Be,background:pe,borderColor:pe,"&:hover":{color:Be,background:st,borderColor:st},"&:active":{color:Be,background:At,borderColor:At}},"&-disabled":{color:T,backgroundColor:ae,borderColor:Nt,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:ae,borderColor:Nt}},[`&-disabled${rt}-button-wrapper-checked`]:{color:Ee,backgroundColor:Ge,borderColor:Nt,boxShadow:"none"}}}},j=fe=>fe-4*2;var le=(0,K.Z)("Radio",fe=>{const{controlOutline:ye,controlOutlineWidth:at,radioSize:rt}=fe,nt=`0 0 0 ${at}px ${ye}`,ut=nt,Nt=j(rt),zt=(0,se.TS)(fe,{radioDotDisabledSize:Nt,radioFocusShadow:nt,radioButtonFocusShadow:ut});return[te(zt),X(zt),W(zt)]},fe=>{const{wireframe:ye,padding:at,marginXS:rt,lineWidth:nt,fontSizeLG:ut,colorText:Nt,colorBgContainer:zt,colorTextDisabled:Ht,controlItemBgActiveDisabled:cr,colorTextLightSolid:or,colorPrimary:yr,colorPrimaryHover:dr,colorPrimaryActive:$}=fe,Xe=4,L=ut,p=ye?j(L):L-(Xe+nt)*2;return{radioSize:L,dotSize:p,dotColorDisabled:Ht,buttonSolidCheckedColor:or,buttonSolidCheckedBg:yr,buttonSolidCheckedHoverBg:dr,buttonSolidCheckedActiveBg:$,buttonBg:zt,buttonCheckedBg:zt,buttonColor:Nt,buttonCheckedBgDisabled:cr,buttonCheckedColorDisabled:Ht,buttonPaddingInline:at-nt,wrapperMarginInlineEnd:rt}}),he=x(14088),Ne=x(4572),Ce=function(fe,ye){var at={};for(var rt in fe)Object.prototype.hasOwnProperty.call(fe,rt)&&ye.indexOf(rt)<0&&(at[rt]=fe[rt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(fe);nt<rt.length;nt++)ye.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,rt[nt])&&(at[rt[nt]]=fe[rt[nt]]);return at};const je=(fe,ye)=>{var at,rt;const nt=ne.useContext(h),ut=ne.useContext(Z),{getPrefixCls:Nt,direction:zt,radio:Ht}=ne.useContext(G.E_),cr=ne.useRef(null),or=(0,N.sQ)(ye,cr),{isFormItemInput:yr}=ne.useContext(I.aM),dr=_t=>{var pe,st;(pe=fe.onChange)===null||pe===void 0||pe.call(fe,_t),(st=nt==null?void 0:nt.onChange)===null||st===void 0||st.call(nt,_t)},{prefixCls:$,className:Xe,rootClassName:L,children:p,style:u}=fe,w=Ce(fe,["prefixCls","className","rootClassName","children","style"]),ee=Nt("radio",$),Be=((nt==null?void 0:nt.optionType)||ut)==="button",T=Be?`${ee}-button`:ee,[ae,Ge]=le(ee),Ee=Object.assign({},w),me=ne.useContext(R.Z);nt&&(Ee.name=nt.name,Ee.onChange=dr,Ee.checked=fe.value===nt.value,Ee.disabled=(at=Ee.disabled)!==null&&at!==void 0?at:nt.disabled),Ee.disabled=(rt=Ee.disabled)!==null&&rt!==void 0?rt:me;const qe=ue()(`${T}-wrapper`,{[`${T}-wrapper-checked`]:Ee.checked,[`${T}-wrapper-disabled`]:Ee.disabled,[`${T}-wrapper-rtl`]:zt==="rtl",[`${T}-wrapper-in-form-item`]:yr},Ht==null?void 0:Ht.className,Xe,L,Ge);return ae(ne.createElement(he.Z,{component:"Radio",disabled:Ee.disabled},ne.createElement("label",{className:qe,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),u),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave},ne.createElement(_.Z,Object.assign({},Ee,{className:ue()(Ee.className,!Be&&Ne.A),type:"radio",prefixCls:T,ref:or})),p!==void 0?ne.createElement("span",null,p):null)))};var ce=ne.forwardRef(je);const k=ne.forwardRef((fe,ye)=>{const{getPrefixCls:at,direction:rt}=ne.useContext(G.E_),[nt,ut]=(0,Q.Z)(fe.defaultValue,{value:fe.value}),Nt=pe=>{const st=nt,At=pe.target.value;"value"in fe||ut(At);const{onChange:Pe}=fe;Pe&&At!==st&&Pe(pe)},{prefixCls:zt,className:Ht,rootClassName:cr,options:or,buttonStyle:yr="outline",disabled:dr,children:$,size:Xe,style:L,id:p,onMouseEnter:u,onMouseLeave:w,onFocus:ee,onBlur:Be}=fe,T=at("radio",zt),ae=`${T}-group`,[Ge,Ee]=le(T);let me=$;or&&or.length>0&&(me=or.map(pe=>typeof pe=="string"||typeof pe=="number"?ne.createElement(ce,{key:pe.toString(),prefixCls:T,disabled:dr,value:pe,checked:nt===pe},pe):ne.createElement(ce,{key:`radio-group-value-options-${pe.value}`,prefixCls:T,disabled:pe.disabled||dr,value:pe.value,checked:nt===pe.value,title:pe.title,style:pe.style},pe.label)));const qe=(0,B.Z)(Xe),_t=ue()(ae,`${ae}-${yr}`,{[`${ae}-${qe}`]:qe,[`${ae}-rtl`]:rt==="rtl"},Ht,cr,Ee);return Ge(ne.createElement("div",Object.assign({},(0,Te.Z)(fe,{aria:!0,data:!0}),{className:_t,style:L,onMouseEnter:u,onMouseLeave:w,onFocus:ee,onBlur:Be,id:p,ref:ye}),ne.createElement(E,{value:{onChange:Nt,value:nt,disabled:fe.disabled,name:fe.name,optionType:fe.optionType}},me)))});var ot=ne.memo(k),Le=function(fe,ye){var at={};for(var rt in fe)Object.prototype.hasOwnProperty.call(fe,rt)&&ye.indexOf(rt)<0&&(at[rt]=fe[rt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(fe);nt<rt.length;nt++)ye.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,rt[nt])&&(at[rt[nt]]=fe[rt[nt]]);return at};const xe=(fe,ye)=>{const{getPrefixCls:at}=ne.useContext(G.E_),{prefixCls:rt}=fe,nt=Le(fe,["prefixCls"]),ut=at("radio",rt);return ne.createElement(S,{value:"button"},ne.createElement(ce,Object.assign({prefixCls:ut},nt,{type:"radio",ref:ye})))};var Re=ne.forwardRef(xe);const ve=ce;ve.Button=Re,ve.Group=ot,ve.__ANT_RADIO=!0;var ke=ve},57809:function(xn,er,x){"use strict";var ge=x(92310),ue=x.n(ge),Q=x(77861),Te=x(2738),ne=x(59301),G=x(53487),B=x(62892),f=x(19080),E=x(36355),h=x(1684),Z=x(93891),S=x(19716),_=x(32441),N=x(33234),R=x(14154),I=x(58582),Y=x(84443),K=x(66339),se=function(le,he){var Ne={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&he.indexOf(Ce)<0&&(Ne[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(le);je<Ce.length;je++)he.indexOf(Ce[je])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[je])&&(Ne[Ce[je]]=le[Ce[je]]);return Ne};const te="SECRET_COMBOBOX_MODE_DO_NOT_USE",X=(le,he)=>{var Ne,{prefixCls:Ce,bordered:je=!0,className:q,rootClassName:ce,getPopupContainer:k,popupClassName:ot,dropdownClassName:Le,listHeight:xe=256,placement:Re,listItemHeight:ve=24,size:ke,disabled:fe,notFoundContent:ye,status:at,builtinPlacements:rt,dropdownMatchSelectWidth:nt,popupMatchSelectWidth:ut,direction:Nt,style:zt,allowClear:Ht}=le,cr=se(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:or,getPrefixCls:yr,renderEmpty:dr,direction:$,virtual:Xe,popupMatchSelectWidth:L,popupOverflow:p,select:u}=ne.useContext(E.E_),w=yr("select",Ce),ee=yr(),Be=Nt!=null?Nt:$,{compactSize:T,compactItemClassnames:ae}=(0,N.ri)(w,Be),[Ge,Ee]=(0,R.Z)(w),me=ne.useMemo(()=>{const{mode:li}=cr;if(li!=="combobox")return li===te?"combobox":li},[cr.mode]),qe=me==="multiple"||me==="tags",_t=(0,Y.Z)(cr.suffixIcon,cr.showArrow),pe=(Ne=ut!=null?ut:nt)!==null&&Ne!==void 0?Ne:L,{status:st,hasFeedback:At,isFormItemInput:Pe,feedbackIcon:Ie}=ne.useContext(_.aM),vt=(0,f.F)(st,at);let Ut;ye!==void 0?Ut=ye:me==="combobox"?Ut=null:Ut=(dr==null?void 0:dr("Select"))||ne.createElement(Z.Z,{componentName:"Select"});const{suffixIcon:Rt,itemIcon:hr,removeIcon:br,clearIcon:Mr}=(0,K.Z)(Object.assign(Object.assign({},cr),{multiple:qe,hasFeedback:At,feedbackIcon:Ie,showSuffixIcon:_t,prefixCls:w,showArrow:cr.showArrow,componentName:"Select"})),Ur=Ht===!0?{clearIcon:Mr}:Ht,Qr=(0,Te.Z)(cr,["suffixIcon","itemIcon"]),rr=ue()(ot||Le,{[`${w}-dropdown-${Be}`]:Be==="rtl"},ce,Ee),Ar=(0,S.Z)(li=>{var Pr;return(Pr=ke!=null?ke:T)!==null&&Pr!==void 0?Pr:li}),jr=ne.useContext(h.Z),cn=fe!=null?fe:jr,Tn=ue()({[`${w}-lg`]:Ar==="large",[`${w}-sm`]:Ar==="small",[`${w}-rtl`]:Be==="rtl",[`${w}-borderless`]:!je,[`${w}-in-form-item`]:Pe},(0,f.Z)(w,vt,At),ae,u==null?void 0:u.className,q,ce,Ee),en=ne.useMemo(()=>Re!==void 0?Re:Be==="rtl"?"bottomRight":"bottomLeft",[Re,Be]),Qn=(0,I.Z)(rt,p);return Ge(ne.createElement(Q.ZP,Object.assign({ref:he,virtual:Xe,showSearch:u==null?void 0:u.showSearch},Qr,{style:Object.assign(Object.assign({},u==null?void 0:u.style),zt),dropdownMatchSelectWidth:pe,builtinPlacements:Qn,transitionName:(0,B.m)(ee,"slide-up",cr.transitionName),listHeight:xe,listItemHeight:ve,mode:me,prefixCls:w,placement:en,direction:Be,suffixIcon:Rt,menuItemSelectedIcon:hr,removeIcon:br,allowClear:Ur,notFoundContent:Ut,className:Tn,getPopupContainer:k||or,dropdownClassName:rr,disabled:cn})))},W=ne.forwardRef(X),j=(0,G.Z)(W);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=te,W.Option=Q.Wx,W.OptGroup=Q.Xo,W._InternalPanelDoNotUseOrYouWillBeFired=j,er.default=W},14154:function(xn,er,x){"use strict";x.d(er,{Z:function(){return W}});var ge=x(17313),ue=x(74207),Q=x(37613),Te=x(83116),ne=x(13826),G=x(92899);const B=j=>{const{optionHeight:le,optionFontSize:he,optionLineHeight:Ne,optionPadding:Ce}=j;return{position:"relative",display:"block",minHeight:le,padding:Ce,color:j.colorText,fontWeight:"normal",fontSize:he,lineHeight:Ne,boxSizing:"border-box"}};var E=j=>{const{antCls:le,componentCls:he}=j,Ne=`${he}-item`,Ce=`&${le}-slide-up-enter${le}-slide-up-enter-active`,je=`&${le}-slide-up-appear${le}-slide-up-appear-active`,q=`&${le}-slide-up-leave${le}-slide-up-leave-active`,ce=`${he}-dropdown-placement-`;return[{[`${he}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(j)),{position:"absolute",top:-9999,zIndex:j.zIndexPopup,boxSizing:"border-box",padding:j.paddingXXS,overflow:"hidden",fontSize:j.fontSize,fontVariant:"initial",backgroundColor:j.colorBgElevated,borderRadius:j.borderRadiusLG,outline:"none",boxShadow:j.boxShadowSecondary,[`
${Ce}${ce}bottomLeft,
${je}${ce}bottomLeft
`]:{animationName:ne.fJ},[`
${Ce}${ce}topLeft,
${je}${ce}topLeft,
${Ce}${ce}topRight,
${je}${ce}topRight
`]:{animationName:ne.Qt},[`${q}${ce}bottomLeft`]:{animationName:ne.Uw},[`
${q}${ce}topLeft,
${q}${ce}topRight
`]:{animationName:ne.ly},"&-hidden":{display:"none"},[`${Ne}`]:Object.assign(Object.assign({},B(j)),{cursor:"pointer",transition:`background ${j.motionDurationSlow} ease`,borderRadius:j.borderRadiusSM,"&-group":{color:j.colorTextDescription,fontSize:j.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ge.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ne}-option-disabled)`]:{backgroundColor:j.optionActiveBg},[`&-selected:not(${Ne}-option-disabled)`]:{color:j.optionSelectedColor,fontWeight:j.optionSelectedFontWeight,backgroundColor:j.optionSelectedBg,[`${Ne}-option-state`]:{color:j.colorPrimary}},"&-disabled":{[`&${Ne}-option-selected`]:{backgroundColor:j.colorBgContainerDisabled},color:j.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:j.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ne.oN)(j,"slide-up"),(0,ne.oN)(j,"slide-down"),(0,G.Fm)(j,"move-up"),(0,G.Fm)(j,"move-down")]};const h=2,Z=j=>{let{controlHeightSM:le,controlHeight:he,lineWidth:Ne}=j;const Ce=(he-le)/2-Ne,je=Math.ceil(Ce/2);return[Ce,je]};function S(j,le){const{componentCls:he,iconCls:Ne}=j,Ce=`${he}-selection-overflow`,je=j.multipleSelectItemHeight,[q]=Z(j),ce=le?`${he}-${le}`:"";return{[`${he}-multiple${ce}`]:{fontSize:j.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${he}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${q-h}px ${h*2}px`,borderRadius:j.borderRadius,[`${he}-show-search&`]:{cursor:"text"},[`${he}-disabled&`]:{background:j.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${h}px 0`,lineHeight:`${je}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${he}-show-arrow ${he}-selector,
&${he}-allow-clear ${he}-selector
`]:{paddingInlineEnd:j.fontSizeIcon+j.controlPaddingHorizontal},[`${he}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:h,marginBottom:h,lineHeight:`${je-j.lineWidth*2}px`,background:j.multipleItemBg,border:`${j.lineWidth}px ${j.lineType} ${j.multipleItemBorderColor}`,borderRadius:j.borderRadiusSM,cursor:"default",transition:`font-size ${j.motionDurationSlow}, line-height ${j.motionDurationSlow}, height ${j.motionDurationSlow}`,userSelect:"none",marginInlineEnd:h*2,paddingInlineStart:j.paddingXS,paddingInlineEnd:j.paddingXS/2,[`${he}-disabled&`]:{color:j.multipleItemColorDisabled,borderColor:j.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:j.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ge.Ro)()),{display:"inline-flex",alignItems:"center",color:j.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ne}`]:{verticalAlign:"-0.2em"},"&:hover":{color:j.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${he}-selection-search`]:{marginInlineStart:0}},[`${he}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:j.inputPaddingHorizontalBase-q,"\n &-input,\n &-mirror\n ":{height:je,fontFamily:j.fontFamily,lineHeight:`${je}px`,transition:`all ${j.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${he}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:j.inputPaddingHorizontalBase,insetInlineEnd:j.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${j.motionDurationSlow}`}}}}var N=j=>{const{componentCls:le}=j,he=(0,Q.TS)(j,{controlHeight:j.controlHeightSM,multipleSelectItemHeight:j.controlHeightXS,borderRadius:j.borderRadiusSM,borderRadiusSM:j.borderRadiusXS}),Ne=(0,Q.TS)(j,{fontSize:j.fontSizeLG,controlHeight:j.controlHeightLG,multipleSelectItemHeight:j.multipleItemHeightLG,borderRadius:j.borderRadiusLG,borderRadiusSM:j.borderRadius}),[,Ce]=Z(j);return[S(j),S(he,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:j.controlPaddingHorizontalSM-j.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Ce}}},S(Ne,"lg")]};function R(j,le){const{componentCls:he,inputPaddingHorizontalBase:Ne,borderRadius:Ce}=j,je=j.controlHeight-j.lineWidth*2,q=Math.ceil(j.fontSize*1.25),ce=le?`${he}-${le}`:"";return{[`${he}-single${ce}`]:{fontSize:j.fontSize,[`${he}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(j)),{display:"flex",borderRadius:Ce,[`${he}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ne,insetInlineEnd:Ne,bottom:0,"&-input":{width:"100%"}},[`
${he}-selection-item,
${he}-selection-placeholder
`]:{padding:0,lineHeight:`${je}px`,transition:`all ${j.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${je}px`}},[`${he}-selection-item`]:{position:"relative",userSelect:"none"},[`${he}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${he}-selection-item:after`,`${he}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${he}-show-arrow ${he}-selection-item,
&${he}-show-arrow ${he}-selection-placeholder
`]:{paddingInlineEnd:q},[`&${he}-open ${he}-selection-item`]:{color:j.colorTextPlaceholder},[`&:not(${he}-customize-input)`]:{[`${he}-selector`]:{width:"100%",height:j.controlHeight,padding:`0 ${Ne}px`,[`${he}-selection-search-input`]:{height:je},"&:after":{lineHeight:`${je}px`}}},[`&${he}-customize-input`]:{[`${he}-selector`]:{"&:after":{display:"none"},[`${he}-selection-search`]:{position:"static",width:"100%"},[`${he}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ne}px`,"&:after":{display:"none"}}}}}}}function I(j){const{componentCls:le}=j,he=j.controlPaddingHorizontalSM-j.lineWidth;return[R(j),R((0,Q.TS)(j,{controlHeight:j.controlHeightSM,borderRadius:j.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:he,insetInlineEnd:he},[`${le}-selector`]:{padding:`0 ${he}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:he+j.fontSize*1.5},[`
&${le}-show-arrow ${le}-selection-item,
&${le}-show-arrow ${le}-selection-placeholder
`]:{paddingInlineEnd:j.fontSize*1.5}}}},R((0,Q.TS)(j,{controlHeight:j.singleItemHeightLG,fontSize:j.fontSizeLG,borderRadius:j.borderRadiusLG}),"lg")]}const Y=j=>{const{componentCls:le,selectorBg:he}=j;return{position:"relative",backgroundColor:he,border:`${j.lineWidth}px ${j.lineType} ${j.colorBorder}`,transition:`all ${j.motionDurationMid} ${j.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:j.colorTextDisabled,background:j.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:j.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},K=function(j,le){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ne,borderHoverColor:Ce,outlineColor:je,antCls:q}=le,ce=he?{[`${Ne}-selector`]:{borderColor:Ce}}:{};return{[j]:{[`&:not(${Ne}-disabled):not(${Ne}-customize-input):not(${q}-pagination-size-changer)`]:Object.assign(Object.assign({},ce),{[`${Ne}-focused& ${Ne}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${je}`,outline:0},[`&:hover ${Ne}-selector`]:{borderColor:Ce}})}}},se=j=>{const{componentCls:le}=j;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},te=j=>{const{componentCls:le,inputPaddingHorizontalBase:he,iconCls:Ne}=j;return{[le]:Object.assign(Object.assign({},(0,ge.Wf)(j)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},Y(j)),se(j)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ge.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:j.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ne]:{verticalAlign:"top",transition:`transform ${j.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${le}-suffix)`]:{pointerEvents:"auto"}},[`${le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:j.fontSizeIcon,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:j.clearBg,cursor:"pointer",opacity:0,transition:`color ${j.motionDurationMid} ease, opacity ${j.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:j.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:he+j.fontSize+j.paddingXS}}}},X=j=>{const{componentCls:le}=j;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},te(j),I(j),N(j),E(j),{[`${le}-rtl`]:{direction:"rtl"}},K(le,(0,Q.TS)(j,{borderHoverColor:j.colorPrimaryHover,outlineColor:j.controlOutline})),K(`${le}-status-error`,(0,Q.TS)(j,{borderHoverColor:j.colorErrorHover,outlineColor:j.colorErrorOutline}),!0),K(`${le}-status-warning`,(0,Q.TS)(j,{borderHoverColor:j.colorWarningHover,outlineColor:j.colorWarningOutline}),!0),(0,ue.c)(j,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var W=(0,Te.Z)("Select",(j,le)=>{let{rootPrefixCls:he}=le;const Ne=(0,Q.TS)(j,{rootPrefixCls:he,inputPaddingHorizontalBase:j.paddingSM-1,multipleSelectItemHeight:j.multipleItemHeight});return[X(Ne)]},j=>{const{fontSize:le,lineHeight:he,controlHeight:Ne,controlPaddingHorizontal:Ce,zIndexPopupBase:je,colorText:q,fontWeightStrong:ce,controlItemBgActive:k,controlItemBgHover:ot,colorBgContainer:Le,colorFillSecondary:xe,controlHeightLG:Re,controlHeightSM:ve,colorBgContainerDisabled:ke,colorTextDisabled:fe}=j;return{zIndexPopup:je+50,optionSelectedColor:q,optionSelectedFontWeight:ce,optionSelectedBg:k,optionActiveBg:ot,optionPadding:`${(Ne-le*he)/2}px ${Ce}px`,optionFontSize:le,optionLineHeight:he,optionHeight:Ne,selectorBg:Le,clearBg:Le,singleItemHeightLG:Re,multipleItemBg:xe,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightLG:Ne,multipleSelectorBgDisabled:ke,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ue}});const ge=Q=>{const ne={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Q==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ne),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ne),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ne),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ne),{points:["br","tr"],offset:[0,-4]})}};function ue(Q,Te){return Q||ge(Te)}},84443:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ge}});function ge(ue,Q){return Q!==void 0?Q:ue!==null}},66339:function(xn,er,x){"use strict";x.d(er,{Z:function(){return f}});var ge=x(40001),ue=x(19248),Q=x(99267),Te=x(84105),ne=x(58617),G=x(47472),B=x(59301);function f(E){let{suffixIcon:h,clearIcon:Z,menuItemSelectedIcon:S,removeIcon:_,loading:N,multiple:R,hasFeedback:I,prefixCls:Y,showSuffixIcon:K,feedbackIcon:se,showArrow:te,componentName:X}=E;const W=Z!=null?Z:B.createElement(ue.Z,null),j=Ce=>h===null&&!I&&!te?null:B.createElement(B.Fragment,null,K!==!1&&Ce,I&&se);let le=null;if(h!==void 0)le=j(h);else if(N)le=j(B.createElement(ne.Z,{spin:!0}));else{const Ce=`${Y}-suffix`;le=je=>{let{open:q,showSearch:ce}=je;return j(q&&ce?B.createElement(G.Z,{className:Ce}):B.createElement(Te.Z,{className:Ce}))}}let he=null;S!==void 0?he=S:R?he=B.createElement(ge.Z,null):he=null;let Ne=null;return _!==void 0?Ne=_:Ne=B.createElement(Q.Z,null),{clearIcon:W,suffixIcon:le,itemIcon:he,removeIcon:Ne}}},61621:function(xn,er,x){"use strict";x.d(er,{Z:function(){return p}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ne=x(2738),B=u=>{const{prefixCls:w,className:ee,style:Be,size:T,shape:ae}=u,Ge=ue()({[`${w}-lg`]:T==="large",[`${w}-sm`]:T==="small"}),Ee=ue()({[`${w}-circle`]:ae==="circle",[`${w}-square`]:ae==="square",[`${w}-round`]:ae==="round"}),me=Q.useMemo(()=>typeof T=="number"?{width:T,height:T,lineHeight:`${T}px`}:{},[T]);return Q.createElement("span",{className:ue()(w,Ge,Ee,ee),style:Object.assign(Object.assign({},me),Be)})},f=x(93083),E=x(83116),h=x(37613);const Z=new f.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),S=u=>({height:u,lineHeight:`${u}px`}),_=u=>Object.assign({width:u},S(u)),N=u=>({background:u.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Z,animationDuration:u.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),R=u=>Object.assign({width:u*5,minWidth:u*5},S(u)),I=u=>{const{skeletonAvatarCls:w,gradientFromColor:ee,controlHeight:Be,controlHeightLG:T,controlHeightSM:ae}=u;return{[`${w}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ee},_(Be)),[`${w}${w}-circle`]:{borderRadius:"50%"},[`${w}${w}-lg`]:Object.assign({},_(T)),[`${w}${w}-sm`]:Object.assign({},_(ae))}},Y=u=>{const{controlHeight:w,borderRadiusSM:ee,skeletonInputCls:Be,controlHeightLG:T,controlHeightSM:ae,gradientFromColor:Ge}=u;return{[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:ee},R(w)),[`${Be}-lg`]:Object.assign({},R(T)),[`${Be}-sm`]:Object.assign({},R(ae))}},K=u=>Object.assign({width:u},S(u)),se=u=>{const{skeletonImageCls:w,imageSizeBase:ee,gradientFromColor:Be,borderRadiusSM:T}=u;return{[`${w}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Be,borderRadius:T},K(ee*2)),{[`${w}-path`]:{fill:"#bfbfbf"},[`${w}-svg`]:Object.assign(Object.assign({},K(ee)),{maxWidth:ee*4,maxHeight:ee*4}),[`${w}-svg${w}-svg-circle`]:{borderRadius:"50%"}}),[`${w}${w}-circle`]:{borderRadius:"50%"}}},te=(u,w,ee)=>{const{skeletonButtonCls:Be}=u;return{[`${ee}${Be}-circle`]:{width:w,minWidth:w,borderRadius:"50%"},[`${ee}${Be}-round`]:{borderRadius:w}}},X=u=>Object.assign({width:u*2,minWidth:u*2},S(u)),W=u=>{const{borderRadiusSM:w,skeletonButtonCls:ee,controlHeight:Be,controlHeightLG:T,controlHeightSM:ae,gradientFromColor:Ge}=u;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:w,width:Be*2,minWidth:Be*2},X(Be))},te(u,Be,ee)),{[`${ee}-lg`]:Object.assign({},X(T))}),te(u,T,`${ee}-lg`)),{[`${ee}-sm`]:Object.assign({},X(ae))}),te(u,ae,`${ee}-sm`))},j=u=>{const{componentCls:w,skeletonAvatarCls:ee,skeletonTitleCls:Be,skeletonParagraphCls:T,skeletonButtonCls:ae,skeletonInputCls:Ge,skeletonImageCls:Ee,controlHeight:me,controlHeightLG:qe,controlHeightSM:_t,gradientFromColor:pe,padding:st,marginSM:At,borderRadius:Pe,titleHeight:Ie,blockRadius:vt,paragraphLiHeight:Ut,controlHeightXS:Rt,paragraphMarginTop:hr}=u;return{[`${w}`]:{display:"table",width:"100%",[`${w}-header`]:{display:"table-cell",paddingInlineEnd:st,verticalAlign:"top",[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:pe},_(me)),[`${ee}-circle`]:{borderRadius:"50%"},[`${ee}-lg`]:Object.assign({},_(qe)),[`${ee}-sm`]:Object.assign({},_(_t))},[`${w}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Be}`]:{width:"100%",height:Ie,background:pe,borderRadius:vt,[`+ ${T}`]:{marginBlockStart:_t}},[`${T}`]:{padding:0,"> li":{width:"100%",height:Ut,listStyle:"none",background:pe,borderRadius:vt,"+ li":{marginBlockStart:Rt}}},[`${T}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${w}-content`]:{[`${Be}, ${T} > li`]:{borderRadius:Pe}}},[`${w}-with-avatar ${w}-content`]:{[`${Be}`]:{marginBlockStart:At,[`+ ${T}`]:{marginBlockStart:hr}}},[`${w}${w}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W(u)),I(u)),Y(u)),se(u)),[`${w}${w}-block`]:{width:"100%",[`${ae}`]:{width:"100%"},[`${Ge}`]:{width:"100%"}},[`${w}${w}-active`]:{[`
${Be},
${T} > li,
${ee},
${ae},
${Ge},
${Ee}
`]:Object.assign({},N(u))}}};var le=(0,E.Z)("Skeleton",u=>{const{componentCls:w}=u,ee=(0,h.TS)(u,{skeletonAvatarCls:`${w}-avatar`,skeletonTitleCls:`${w}-title`,skeletonParagraphCls:`${w}-paragraph`,skeletonButtonCls:`${w}-button`,skeletonInputCls:`${w}-input`,skeletonImageCls:`${w}-image`,imageSizeBase:u.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${u.gradientFromColor} 25%, ${u.gradientToColor} 37%, ${u.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[j(ee)]},u=>{const{colorFillContent:w,colorFill:ee}=u,Be=w,T=ee;return{color:Be,colorGradientEnd:T,gradientFromColor:Be,gradientToColor:T,titleHeight:u.controlHeight/2,blockRadius:u.borderRadiusSM,paragraphMarginTop:u.marginLG+u.marginXXS,paragraphLiHeight:u.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ne=u=>{const{prefixCls:w,className:ee,rootClassName:Be,active:T,shape:ae="circle",size:Ge="default"}=u,{getPrefixCls:Ee}=Q.useContext(Te.E_),me=Ee("skeleton",w),[qe,_t]=le(me),pe=(0,ne.Z)(u,["prefixCls","className"]),st=ue()(me,`${me}-element`,{[`${me}-active`]:T},ee,Be,_t);return qe(Q.createElement("div",{className:st},Q.createElement(B,Object.assign({prefixCls:`${me}-avatar`,shape:ae,size:Ge},pe))))},je=u=>{const{prefixCls:w,className:ee,rootClassName:Be,active:T,block:ae=!1,size:Ge="default"}=u,{getPrefixCls:Ee}=Q.useContext(Te.E_),me=Ee("skeleton",w),[qe,_t]=le(me),pe=(0,ne.Z)(u,["prefixCls"]),st=ue()(me,`${me}-element`,{[`${me}-active`]:T,[`${me}-block`]:ae},ee,Be,_t);return qe(Q.createElement("div",{className:st},Q.createElement(B,Object.assign({prefixCls:`${me}-button`,size:Ge},pe))))};const q="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var k=u=>{const{prefixCls:w,className:ee,rootClassName:Be,style:T,active:ae}=u,{getPrefixCls:Ge}=Q.useContext(Te.E_),Ee=Ge("skeleton",w),[me,qe]=le(Ee),_t=ue()(Ee,`${Ee}-element`,{[`${Ee}-active`]:ae},ee,Be,qe);return me(Q.createElement("div",{className:_t},Q.createElement("div",{className:ue()(`${Ee}-image`,ee),style:T},Q.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ee}-image-svg`},Q.createElement("path",{d:q,className:`${Ee}-image-path`})))))},Le=u=>{const{prefixCls:w,className:ee,rootClassName:Be,active:T,block:ae,size:Ge="default"}=u,{getPrefixCls:Ee}=Q.useContext(Te.E_),me=Ee("skeleton",w),[qe,_t]=le(me),pe=(0,ne.Z)(u,["prefixCls"]),st=ue()(me,`${me}-element`,{[`${me}-active`]:T,[`${me}-block`]:ae},ee,Be,_t);return qe(Q.createElement("div",{className:st},Q.createElement(B,Object.assign({prefixCls:`${me}-input`,size:Ge},pe))))},xe=x(92413),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=Re,ke=x(7657),fe=function(w,ee){return Q.createElement(ke.Z,(0,xe.Z)({},w,{ref:ee,icon:ve}))},ye=Q.forwardRef(fe),at=ye,nt=u=>{const{prefixCls:w,className:ee,rootClassName:Be,style:T,active:ae,children:Ge}=u,{getPrefixCls:Ee}=Q.useContext(Te.E_),me=Ee("skeleton",w),[qe,_t]=le(me),pe=ue()(me,`${me}-element`,{[`${me}-active`]:ae},_t,ee,Be),st=Ge!=null?Ge:Q.createElement(at,null);return qe(Q.createElement("div",{className:pe},Q.createElement("div",{className:ue()(`${me}-image`,ee),style:T},st)))},ut=x(26407),zt=u=>{const w=Ee=>{const{width:me,rows:qe=2}=u;if(Array.isArray(me))return me[Ee];if(qe-1===Ee)return me},{prefixCls:ee,className:Be,style:T,rows:ae}=u,Ge=(0,ut.Z)(Array(ae)).map((Ee,me)=>Q.createElement("li",{key:me,style:{width:w(me)}}));return Q.createElement("ul",{className:ue()(ee,Be),style:T},Ge)},cr=u=>{let{prefixCls:w,className:ee,width:Be,style:T}=u;return Q.createElement("h3",{className:ue()(w,ee),style:Object.assign({width:Be},T)})};function or(u){return u&&typeof u=="object"?u:{}}function yr(u,w){return u&&!w?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function dr(u,w){return!u&&w?{width:"38%"}:u&&w?{width:"50%"}:{}}function $(u,w){const ee={};return(!u||!w)&&(ee.width="61%"),!u&&w?ee.rows=3:ee.rows=2,ee}const Xe=u=>{const{prefixCls:w,loading:ee,className:Be,rootClassName:T,style:ae,children:Ge,avatar:Ee=!1,title:me=!0,paragraph:qe=!0,active:_t,round:pe}=u,{getPrefixCls:st,direction:At,skeleton:Pe}=Q.useContext(Te.E_),Ie=st("skeleton",w),[vt,Ut]=le(Ie);if(ee||!("loading"in u)){const Rt=!!Ee,hr=!!me,br=!!qe;let Mr;if(Rt){const rr=Object.assign(Object.assign({prefixCls:`${Ie}-avatar`},yr(hr,br)),or(Ee));Mr=Q.createElement("div",{className:`${Ie}-header`},Q.createElement(B,Object.assign({},rr)))}let Ur;if(hr||br){let rr;if(hr){const jr=Object.assign(Object.assign({prefixCls:`${Ie}-title`},dr(Rt,br)),or(me));rr=Q.createElement(cr,Object.assign({},jr))}let Ar;if(br){const jr=Object.assign(Object.assign({prefixCls:`${Ie}-paragraph`},$(Rt,hr)),or(qe));Ar=Q.createElement(zt,Object.assign({},jr))}Ur=Q.createElement("div",{className:`${Ie}-content`},rr,Ar)}const Qr=ue()(Ie,{[`${Ie}-with-avatar`]:Rt,[`${Ie}-active`]:_t,[`${Ie}-rtl`]:At==="rtl",[`${Ie}-round`]:pe},Pe==null?void 0:Pe.className,Be,T,Ut);return vt(Q.createElement("div",{className:Qr,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),ae)},Mr,Ur))}return typeof Ge!="undefined"?Ge:null};Xe.Button=je,Xe.Avatar=Ne,Xe.Input=Le,Xe.Image=k,Xe.Node=nt;var L=Xe,p=L},81327:function(xn,er,x){"use strict";x.d(er,{Z:function(){return Y}});var ge=x(59301),ue=x(92310),Q=x.n(ue),Te=x(11592),ne=x(36355),G=x(33234);const B=ge.createContext({latestIndex:0}),f=B.Provider;var h=K=>{let{className:se,index:te,children:X,split:W,style:j}=K;const{latestIndex:le}=ge.useContext(B);return X==null?null:ge.createElement(ge.Fragment,null,ge.createElement("div",{className:se,style:j},X),te<le&&W&&ge.createElement("span",{className:`${se}-split`},W))},Z=x(2856);function S(K){return["small","middle","large"].includes(K)}function _(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var N=function(K,se){var te={};for(var X in K)Object.prototype.hasOwnProperty.call(K,X)&&se.indexOf(X)<0&&(te[X]=K[X]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,X=Object.getOwnPropertySymbols(K);W<X.length;W++)se.indexOf(X[W])<0&&Object.prototype.propertyIsEnumerable.call(K,X[W])&&(te[X[W]]=K[X[W]]);return te};const I=ge.forwardRef((K,se)=>{var te,X;const{getPrefixCls:W,space:j,direction:le}=ge.useContext(ne.E_),{size:he=(j==null?void 0:j.size)||"small",align:Ne,className:Ce,rootClassName:je,children:q,direction:ce="horizontal",prefixCls:k,split:ot,style:Le,wrap:xe=!1,classNames:Re,styles:ve}=K,ke=N(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,ye]=Array.isArray(he)?he:[he,he],at=S(ye),rt=S(fe),nt=_(ye),ut=_(fe),Nt=(0,Te.Z)(q,{keepEmpty:!0}),zt=Ne===void 0&&ce==="horizontal"?"center":Ne,Ht=W("space",k),[cr,or]=(0,Z.Z)(Ht),yr=Q()(Ht,j==null?void 0:j.className,or,`${Ht}-${ce}`,{[`${Ht}-rtl`]:le==="rtl",[`${Ht}-align-${zt}`]:zt,[`${Ht}-gap-row-${ye}`]:at,[`${Ht}-gap-col-${fe}`]:rt},Ce,je),dr=Q()(`${Ht}-item`,(te=Re==null?void 0:Re.item)!==null&&te!==void 0?te:(X=j==null?void 0:j.classNames)===null||X===void 0?void 0:X.item);let $=0;const Xe=Nt.map((u,w)=>{var ee,Be;u!=null&&($=w);const T=u&&u.key||`${dr}-${w}`;return ge.createElement(h,{className:dr,key:T,index:w,split:ot,style:(ee=ve==null?void 0:ve.item)!==null&&ee!==void 0?ee:(Be=j==null?void 0:j.styles)===null||Be===void 0?void 0:Be.item},u)}),L=ge.useMemo(()=>({latestIndex:$}),[$]);if(Nt.length===0)return null;const p={};return xe&&(p.flexWrap="wrap"),!rt&&ut&&(p.columnGap=fe),!at&&nt&&(p.rowGap=ye),cr(ge.createElement("div",Object.assign({ref:se,className:yr,style:Object.assign(Object.assign(Object.assign({},p),j==null?void 0:j.style),Le)},ke),ge.createElement(f,{value:L},Xe)))});I.Compact=G.ZP;var Y=I},8378:function(xn,er){"use strict";const x=ge=>({[ge.componentCls]:{[`${ge.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ge.motionDurationMid} ${ge.motionEaseInOut},
opacity ${ge.motionDurationMid} ${ge.motionEaseInOut} !important`}},[`${ge.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ge.motionDurationMid} ${ge.motionEaseInOut},
opacity ${ge.motionDurationMid} ${ge.motionEaseInOut} !important`}}});er.Z=x},92899:function(xn,er,x){"use strict";x.d(er,{Fm:function(){return S}});var ge=x(93083),ue=x(95406);const Q=new ge.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new ge.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ne=new ge.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),G=new ge.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),B=new ge.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new ge.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),E=new ge.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),h=new ge.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Z={"move-up":{inKeyframes:E,outKeyframes:h},"move-down":{inKeyframes:Q,outKeyframes:Te},"move-left":{inKeyframes:ne,outKeyframes:G},"move-right":{inKeyframes:B,outKeyframes:f}},S=(_,N)=>{const{antCls:R}=_,I=`${R}-${N}`,{inKeyframes:Y,outKeyframes:K}=Z[N];return[(0,ue.R)(I,Y,K,_.motionDurationMid),{[`
${I}-enter,
${I}-appear
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},13826:function(xn,er,x){"use strict";x.d(er,{Qt:function(){return ne},Uw:function(){return Te},fJ:function(){return Q},ly:function(){return G},oN:function(){return S}});var ge=x(93083),ue=x(95406);const Q=new ge.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Te=new ge.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ne=new ge.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),G=new ge.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),B=new ge.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),f=new ge.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),E=new ge.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new ge.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Z={"slide-up":{inKeyframes:Q,outKeyframes:Te},"slide-down":{inKeyframes:ne,outKeyframes:G},"slide-left":{inKeyframes:B,outKeyframes:f},"slide-right":{inKeyframes:E,outKeyframes:h}},S=(_,N)=>{const{antCls:R}=_,I=`${R}-${N}`,{inKeyframes:Y,outKeyframes:K}=Z[N];return[(0,ue.R)(I,Y,K,_.motionDurationMid),{[`
${I}-enter,
${I}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInQuint}}]}},15969:function(xn,er,x){"use strict";x.d(er,{N:function(){return ge}});const ge=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},1710:function(xn,er,x){"use strict";x.d(er,{default:function(){return Bt}});var ge={},ue="rc-table-internal-hook",Q=x(33606),Te=x(6089),ne=x(34280),G=x(13697),B=x(59301),f=x(4676);function E(U){var H=B.createContext(void 0),Se=function(Ye){var He=Ye.value,dt=Ye.children,pt=B.useRef(He);pt.current=He;var Et=B.useState(function(){return{getValue:function(){return pt.current},listeners:new Set}}),de=(0,Q.Z)(Et,1),Ze=de[0];return(0,ne.Z)(function(){(0,f.unstable_batchedUpdates)(function(){Ze.listeners.forEach(function(Je){Je(He)})})},[He]),B.createElement(H.Provider,{value:Ze},dt)};return{Context:H,Provider:Se,defaultValue:U}}function h(U,H){var Se=(0,Te.Z)(typeof H=="function"?H:function(Je){if(H===void 0)return Je;if(!Array.isArray(H))return Je[H];var mt={};return H.forEach(function(yt){mt[yt]=Je[yt]}),mt}),De=B.useContext(U==null?void 0:U.Context),Ye=De||{},He=Ye.listeners,dt=Ye.getValue,pt=B.useRef();pt.current=Se(De?dt():U==null?void 0:U.defaultValue);var Et=B.useState({}),de=(0,Q.Z)(Et,2),Ze=de[1];return(0,ne.Z)(function(){if(!De)return;function Je(mt){var yt=Se(mt);(0,G.Z)(pt.current,yt,!0)||Ze({})}return He.add(Je),function(){He.delete(Je)}},[De]),pt.current}var Z=x(92413),S=x(8654);function _(){var U=B.createContext(null);function H(){return B.useContext(U)}function Se(Ye,He){var dt=(0,S.Yr)(Ye),pt=function(de,Ze){var Je=dt?{ref:Ze}:{},mt=B.useRef(0),yt=B.useRef(de),It=H();return It!==null?B.createElement(Ye,(0,Z.Z)({},de,Je)):((!He||He(yt.current,de))&&(mt.current+=1),yt.current=de,B.createElement(U.Provider,{value:mt.current},B.createElement(Ye,(0,Z.Z)({},de,Je))))};return dt?B.forwardRef(pt):pt}function De(Ye,He){var dt=(0,S.Yr)(Ye),pt=function(de,Ze){var Je=dt?{ref:Ze}:{};return H(),B.createElement(Ye,(0,Z.Z)({},de,Je))};return dt?B.memo(B.forwardRef(pt),He):B.memo(pt,He)}return{makeImmutable:Se,responseImmutable:De,useImmutableMark:H}}var N=_(),R=N.makeImmutable,I=N.responseImmutable,Y=N.useImmutableMark,K=_(),se=K.makeImmutable,te=K.responseImmutable,X=K.useImmutableMark,W=E(),j=W;function le(U,H){var Se=B.useRef(0);Se.current+=1;var De=B.useRef(U),Ye=[];Object.keys(U||{}).map(function(dt){var pt;(U==null?void 0:U[dt])!==((pt=De.current)===null||pt===void 0?void 0:pt[dt])&&Ye.push(dt)}),De.current=U;var He=B.useRef([]);return Ye.length&&(He.current=Ye),B.useDebugValue(Se.current),B.useDebugValue(He.current.join(", ")),H&&console.log("".concat(H,":"),Se.current,He.current),Se.current}var he=null,Ne=B.memo(function(){var U=le();return B.createElement("h1",null,"Render Times: ",U)});Ne.displayName="RenderBlock";var Ce=x(39559),je=x(33708),q=x(400),ce=x(92310),k=x.n(ce),ot=x(80547),Le=x(97938),xe=x(48736),Re=B.createContext({renderWithProps:!1}),ve=Re,ke="RC_TABLE_KEY";function fe(U){return U==null?[]:Array.isArray(U)?U:[U]}function ye(U){var H=[],Se={};return U.forEach(function(De){for(var Ye=De||{},He=Ye.key,dt=Ye.dataIndex,pt=He||fe(dt).join("-")||ke;Se[pt];)pt="".concat(pt,"_next");Se[pt]=!0,H.push(pt)}),H}function at(U){return U!=null}function rt(U){return U&&(0,Ce.Z)(U)==="object"&&!Array.isArray(U)&&!B.isValidElement(U)}function nt(U,H,Se,De,Ye,He){var dt=B.useContext(ve),pt=X(),Et=(0,ot.Z)(function(){if(at(De))return[De];var de=H==null||H===""?[]:Array.isArray(H)?H:[H],Ze=(0,Le.Z)(U,de),Je=Ze,mt=void 0;if(Ye){var yt=Ye(Ze,U,Se);rt(yt)?(Je=yt.children,mt=yt.props,dt.renderWithProps=!0):Je=yt}return[Je,mt]},[pt,U,De,H,Ye,Se],function(de,Ze){if(He){var Je=(0,Q.Z)(de,2),mt=Je[1],yt=(0,Q.Z)(Ze,2),It=yt[1];return He(It,mt)}return dt.renderWithProps?!0:!(0,G.Z)(de,Ze,!0)});return Et}function ut(U,H,Se,De){var Ye=U+H-1;return U<=De&&Ye>=Se}function Nt(U,H){return h(j,function(Se){var De=ut(U,H||1,Se.hoverStartRow,Se.hoverEndRow);return[De,Se.onHover]})}var zt=function(H){var Se=H.ellipsis,De=H.rowType,Ye=H.children,He,dt=Se===!0?{showTitle:!0}:Se;return dt&&(dt.showTitle||De==="header")&&(typeof Ye=="string"||typeof Ye=="number"?He=Ye.toString():B.isValidElement(Ye)&&typeof Ye.props.children=="string"&&(He=Ye.props.children)),He};function Ht(U){var H,Se,De,Ye,He,dt,pt,Et,de=U.component,Ze=U.children,Je=U.ellipsis,mt=U.scope,yt=U.prefixCls,It=U.className,Kt=U.align,Tt=U.record,pr=U.render,sr=U.dataIndex,Fr=U.renderIndex,Hr=U.shouldCellUpdate,hn=U.index,tr=U.rowType,St=U.colSpan,On=U.rowSpan,zr=U.fixLeft,wr=U.fixRight,Ir=U.firstFixLeft,xr=U.lastFixLeft,kr=U.firstFixRight,fn=U.lastFixRight,zn=U.appendNode,Rn=U.additionalProps,Bn=Rn===void 0?{}:Rn,ii=U.isSticky,Ei="".concat(yt,"-cell"),gi=h(j,["supportSticky","allColumnsFixedLeft"]),xi=gi.supportSticky,kn=gi.allColumnsFixedLeft,ha=nt(Tt,sr,Fr,Ze,pr,Hr),ei=(0,Q.Z)(ha,2),uo=ei[0],Ti=ei[1],na={},Ta=typeof zr=="number"&&xi,ma=typeof wr=="number"&&xi;Ta&&(na.position="sticky",na.left=zr),ma&&(na.position="sticky",na.right=wr);var Vn=(H=(Se=(De=Ti==null?void 0:Ti.colSpan)!==null&&De!==void 0?De:Bn.colSpan)!==null&&Se!==void 0?Se:St)!==null&&H!==void 0?H:1,Gn=(Ye=(He=(dt=Ti==null?void 0:Ti.rowSpan)!==null&&dt!==void 0?dt:Bn.rowSpan)!==null&&He!==void 0?He:On)!==null&&Ye!==void 0?Ye:1,bi=Nt(hn,Gn),vi=(0,Q.Z)(bi,2),Zi=vi[0],gn=vi[1],Xn=function(Cn){var fo;Tt&&gn(hn,hn+Gn-1),Bn==null||(fo=Bn.onMouseEnter)===null||fo===void 0||fo.call(Bn,Cn)},aa=function(Cn){var fo;Tt&&gn(-1,-1),Bn==null||(fo=Bn.onMouseLeave)===null||fo===void 0||fo.call(Bn,Cn)};if(Vn===0||Gn===0)return null;var ji=(pt=Bn.title)!==null&&pt!==void 0?pt:zt({rowType:tr,ellipsis:Je,children:uo}),ko=k()(Ei,It,(Et={},(0,q.Z)(Et,"".concat(Ei,"-fix-left"),Ta&&xi),(0,q.Z)(Et,"".concat(Ei,"-fix-left-first"),Ir&&xi),(0,q.Z)(Et,"".concat(Ei,"-fix-left-last"),xr&&xi),(0,q.Z)(Et,"".concat(Ei,"-fix-left-all"),xr&&kn&&xi),(0,q.Z)(Et,"".concat(Ei,"-fix-right"),ma&&xi),(0,q.Z)(Et,"".concat(Ei,"-fix-right-first"),kr&&xi),(0,q.Z)(Et,"".concat(Ei,"-fix-right-last"),fn&&xi),(0,q.Z)(Et,"".concat(Ei,"-ellipsis"),Je),(0,q.Z)(Et,"".concat(Ei,"-with-append"),zn),(0,q.Z)(Et,"".concat(Ei,"-fix-sticky"),(Ta||ma)&&ii&&xi),(0,q.Z)(Et,"".concat(Ei,"-row-hover"),!Ti&&Zi),Et),Bn.className,Ti==null?void 0:Ti.className),Do={};Kt&&(Do.textAlign=Kt);var Ki=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},na),Bn.style),Do),Ti==null?void 0:Ti.style),ro=uo;return(0,Ce.Z)(ro)==="object"&&!Array.isArray(ro)&&!B.isValidElement(ro)&&(ro=null),Je&&(xr||kr)&&(ro=B.createElement("span",{className:"".concat(Ei,"-content")},ro)),B.createElement(de,(0,Z.Z)({},Ti,Bn,{className:ko,style:Ki,title:ji,scope:mt,onMouseEnter:Xn,onMouseLeave:aa,colSpan:Vn!==1?Vn:null,rowSpan:Gn!==1?Gn:null}),zn,ro)}var cr=B.memo(Ht);function or(U,H,Se,De,Ye,He){var dt=Se[U]||{},pt=Se[H]||{},Et,de;dt.fixed==="left"?Et=De.left[Ye==="rtl"?H:U]:pt.fixed==="right"&&(de=De.right[Ye==="rtl"?U:H]);var Ze=!1,Je=!1,mt=!1,yt=!1,It=Se[H+1],Kt=Se[U-1],Tt=!(He!=null&&He.children);if(Ye==="rtl"){if(Et!==void 0){var pr=Kt&&Kt.fixed==="left";yt=!pr&&Tt}else if(de!==void 0){var sr=It&&It.fixed==="right";mt=!sr&&Tt}}else if(Et!==void 0){var Fr=It&&It.fixed==="left";Ze=!Fr&&Tt}else if(de!==void 0){var Hr=Kt&&Kt.fixed==="right";Je=!Hr&&Tt}return{fixLeft:Et,fixRight:de,lastFixLeft:Ze,firstFixRight:Je,lastFixRight:mt,firstFixLeft:yt,isSticky:De.isSticky}}var yr=B.createContext({}),dr=yr;function $(U){var H=U.className,Se=U.index,De=U.children,Ye=U.colSpan,He=Ye===void 0?1:Ye,dt=U.rowSpan,pt=U.align,Et=h(j,["prefixCls","direction"]),de=Et.prefixCls,Ze=Et.direction,Je=B.useContext(dr),mt=Je.scrollColumnIndex,yt=Je.stickyOffsets,It=Je.flattenColumns,Kt=Je.columns,Tt=Se+He-1,pr=Tt+1===mt?He+1:He,sr=or(Se,Se+pr-1,It,yt,Ze,Kt==null?void 0:Kt[Se]);return B.createElement(cr,(0,Z.Z)({className:H,index:Se,component:"td",prefixCls:de,record:null,dataIndex:null,align:pt,colSpan:pr,rowSpan:dt,render:function(){return De}},sr))}var Xe=x(37061),L=["children"];function p(U){var H=U.children,Se=(0,Xe.Z)(U,L);return B.createElement("tr",Se,H)}function u(U){var H=U.children;return H}u.Row=p,u.Cell=$;var w=u;function ee(U){var H=U.children,Se=U.stickyOffsets,De=U.flattenColumns,Ye=U.columns,He=h(j,"prefixCls"),dt=De.length-1,pt=De[dt],Et=B.useMemo(function(){return{stickyOffsets:Se,flattenColumns:De,scrollColumnIndex:pt!=null&&pt.scrollbar?dt:null,columns:Ye}},[pt,De,dt,Se,Ye]);return B.createElement(dr.Provider,{value:Et},B.createElement("tfoot",{className:"".concat(He,"-summary")},H))}var Be=te(ee),T=w,ae=x(70425),Ge=x(29301),Ee=x(29194),me=x(24514),qe=x(75152),_t=x(26112);function pe(U,H,Se,De,Ye,He,dt){U.push({record:H,indent:Se,index:dt});var pt=He(H),Et=Ye==null?void 0:Ye.has(pt);if(H&&Array.isArray(H[De])&&Et)for(var de=0;de<H[De].length;de+=1)pe(U,H[De][de],Se+1,De,Ye,He,de)}function st(U,H,Se,De){var Ye=B.useMemo(function(){if(Se!=null&&Se.size){for(var He=[],dt=0;dt<(U==null?void 0:U.length);dt+=1){var pt=U[dt];pe(He,pt,0,H,Se,De,dt)}return He}return U==null?void 0:U.map(function(Et,de){return{record:Et,indent:0,index:de}})},[U,H,Se,De]);return Ye}function At(U){var H=U.prefixCls,Se=U.children,De=U.component,Ye=U.cellComponent,He=U.className,dt=U.expanded,pt=U.colSpan,Et=U.isEmpty,de=h(j,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ze=de.scrollbarSize,Je=de.fixHeader,mt=de.fixColumn,yt=de.componentWidth,It=de.horizonScroll,Kt=Se;return(Et?It&&yt:mt)&&(Kt=B.createElement("div",{style:{width:yt-(Je?Ze:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(H,"-expanded-row-fixed")},Kt)),B.createElement(De,{className:He,style:{display:dt?null:"none"}},B.createElement(cr,{component:Ye,prefixCls:H,colSpan:pt},Kt))}var Pe=At;function Ie(U,H,Se,De){var Ye=h(j,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),He=Ye.flattenColumns,dt=Ye.expandableType,pt=Ye.expandedKeys,Et=Ye.childrenColumnName,de=Ye.onTriggerExpand,Ze=Ye.rowExpandable,Je=Ye.onRow,mt=Ye.expandRowByClick,yt=Ye.rowClassName,It=dt==="nest",Kt=dt==="row"&&(!Ze||Ze(U)),Tt=Kt||It,pr=pt&&pt.has(H),sr=Et&&U&&U[Et],Fr=(0,ae.useEvent)(de),Hr=Je==null?void 0:Je(U,Se),hn=Hr==null?void 0:Hr.onClick,tr=function(wr){mt&&Tt&&de(U,wr);for(var Ir=arguments.length,xr=new Array(Ir>1?Ir-1:0),kr=1;kr<Ir;kr++)xr[kr-1]=arguments[kr];hn==null||hn.apply(void 0,[wr].concat(xr))},St;typeof yt=="string"?St=yt:typeof yt=="function"&&(St=yt(U,Se,De));var On=ye(He);return(0,je.Z)((0,je.Z)({},Ye),{},{columnsKey:On,nestExpandable:It,expanded:pr,hasNestChildren:sr,record:U,onTriggerExpand:Fr,rowSupportExpand:Kt,expandable:Tt,rowProps:(0,je.Z)((0,je.Z)({},Hr),{},{className:k()(St,Hr==null?void 0:Hr.className),onClick:tr})})}function vt(U,H,Se,De,Ye){var He=U.record,dt=U.prefixCls,pt=U.columnsKey,Et=U.fixedInfoList,de=U.expandIconColumnIndex,Ze=U.nestExpandable,Je=U.indentSize,mt=U.expandIcon,yt=U.expanded,It=U.hasNestChildren,Kt=U.onTriggerExpand,Tt=pt[Se],pr=Et[Se],sr;Se===(de||0)&&Ze&&(sr=B.createElement(B.Fragment,null,B.createElement("span",{style:{paddingLeft:"".concat(Je*De,"px")},className:"".concat(dt,"-row-indent indent-level-").concat(De)}),mt({prefixCls:dt,expanded:yt,expandable:It,record:He,onExpand:Kt})));var Fr;return H.onCell&&(Fr=H.onCell(He,Ye)),{key:Tt,fixedInfo:pr,appendCellNode:sr,additionalCellProps:Fr||{}}}function Ut(U){var H=U.className,Se=U.style,De=U.record,Ye=U.index,He=U.renderIndex,dt=U.rowKey,pt=U.indent,Et=pt===void 0?0:pt,de=U.rowComponent,Ze=U.cellComponent,Je=U.scopeCellComponent,mt=Ie(De,dt,Ye,Et),yt=mt.prefixCls,It=mt.flattenColumns,Kt=mt.expandedRowClassName,Tt=mt.expandedRowRender,pr=mt.rowProps,sr=mt.expanded,Fr=mt.rowSupportExpand,Hr=B.useState(!1),hn=(0,Q.Z)(Hr,2),tr=hn[0],St=hn[1];B.useEffect(function(){sr&&St(!0)},[sr]);var On=B.createElement(de,(0,Z.Z)({},pr,{"data-row-key":dt,className:k()(H,"".concat(yt,"-row"),"".concat(yt,"-row-level-").concat(Et),pr==null?void 0:pr.className),style:(0,je.Z)((0,je.Z)({},Se),pr==null?void 0:pr.style)}),It.map(function(xr,kr){var fn=xr.render,zn=xr.dataIndex,Rn=xr.className,Bn=vt(mt,xr,kr,Et,Ye),ii=Bn.key,Ei=Bn.fixedInfo,gi=Bn.appendCellNode,xi=Bn.additionalCellProps;return B.createElement(cr,(0,Z.Z)({className:Rn,ellipsis:xr.ellipsis,align:xr.align,scope:xr.rowScope,component:xr.rowScope?Je:Ze,prefixCls:yt,key:ii,record:De,index:Ye,renderIndex:He,dataIndex:zn,render:fn,shouldCellUpdate:xr.shouldCellUpdate},Ei,{appendNode:gi,additionalProps:xi}))})),zr;if(Fr&&(tr||sr)){var wr=Tt(De,Ye,Et+1,sr),Ir=Kt&&Kt(De,Ye,Et);zr=B.createElement(Pe,{expanded:sr,className:k()("".concat(yt,"-expanded-row"),"".concat(yt,"-expanded-row-level-").concat(Et+1),Ir),prefixCls:yt,component:de,cellComponent:Ze,colSpan:It.length,isEmpty:!1},wr)}return B.createElement(B.Fragment,null,On,zr)}Ut.displayName="BodyRow";var Rt=te(Ut);function hr(U){var H=U.columnKey,Se=U.onColumnResize,De=B.useRef();return B.useEffect(function(){De.current&&Se(H,De.current.offsetWidth)},[]),B.createElement(Ge.Z,{data:H},B.createElement("td",{ref:De,style:{padding:0,border:0,height:0}},B.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function br(U){var H=U.prefixCls,Se=U.columnsKey,De=U.onColumnResize;return B.createElement("tr",{"aria-hidden":"true",className:"".concat(H,"-measure-row"),style:{height:0,fontSize:0}},B.createElement(Ge.Z.Collection,{onBatchResize:function(He){He.forEach(function(dt){var pt=dt.data,Et=dt.size;De(pt,Et.offsetWidth)})}},Se.map(function(Ye){return B.createElement(hr,{key:Ye,columnKey:Ye,onColumnResize:De})})))}function Mr(U){var H=U.data,Se=U.measureColumnWidth,De=h(j,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ye=De.prefixCls,He=De.getComponent,dt=De.onColumnResize,pt=De.flattenColumns,Et=De.getRowKey,de=De.expandedKeys,Ze=De.childrenColumnName,Je=De.emptyNode,mt=st(H,Ze,de,Et),yt=B.useRef({renderWithProps:!1}),It=He(["body","wrapper"],"tbody"),Kt=He(["body","row"],"tr"),Tt=He(["body","cell"],"td"),pr=He(["body","cell"],"th"),sr;H.length?sr=mt.map(function(Hr,hn){var tr=Hr.record,St=Hr.indent,On=Hr.index,zr=Et(tr,hn);return B.createElement(Rt,{key:zr,rowKey:zr,record:tr,index:hn,renderIndex:On,rowComponent:Kt,cellComponent:Tt,scopeCellComponent:pr,getRowKey:Et,indent:St})}):sr=B.createElement(Pe,{expanded:!0,className:"".concat(Ye,"-placeholder"),prefixCls:Ye,component:Kt,cellComponent:Tt,colSpan:pt.length,isEmpty:!0},Je);var Fr=ye(pt);return B.createElement(ve.Provider,{value:yt.current},B.createElement(It,{className:"".concat(Ye,"-tbody")},Se&&B.createElement(br,{prefixCls:Ye,columnsKey:Fr,onColumnResize:dt}),sr))}Mr.displayName="Body";var Ur=te(Mr),Qr=["expandable"],rr="RC_TABLE_INTERNAL_COL_DEFINE";function Ar(U){var H=U.expandable,Se=(0,Xe.Z)(U,Qr),De;return"expandable"in U?De=(0,je.Z)((0,je.Z)({},Se),H):De=Se,De.showExpandColumn===!1&&(De.expandIconColumnIndex=-1),De}var jr=["columnType"];function cn(U){for(var H=U.colWidths,Se=U.columns,De=U.columCount,Ye=[],He=De||Se.length,dt=!1,pt=He-1;pt>=0;pt-=1){var Et=H[pt],de=Se&&Se[pt],Ze=de&&de[rr];if(Et||Ze||dt){var Je=Ze||{},mt=Je.columnType,yt=(0,Xe.Z)(Je,jr);Ye.unshift(B.createElement("col",(0,Z.Z)({key:pt,style:{width:Et}},yt))),dt=!0}}return B.createElement("colgroup",null,Ye)}var Tn=cn,en=x(26407),Qn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function li(U,H){return(0,B.useMemo)(function(){for(var Se=[],De=0;De<H;De+=1){var Ye=U[De];if(Ye!==void 0)Se[De]=Ye;else return null}return Se},[U.join("_"),H])}var Pr=B.forwardRef(function(U,H){var Se=U.className,De=U.noData,Ye=U.columns,He=U.flattenColumns,dt=U.colWidths,pt=U.columCount,Et=U.stickyOffsets,de=U.direction,Ze=U.fixHeader,Je=U.stickyTopOffset,mt=U.stickyBottomOffset,yt=U.stickyClassName,It=U.onScroll,Kt=U.maxContentScroll,Tt=U.children,pr=(0,Xe.Z)(U,Qn),sr=h(j,["prefixCls","scrollbarSize","isSticky"]),Fr=sr.prefixCls,Hr=sr.scrollbarSize,hn=sr.isSticky,tr=hn&&!Ze?0:Hr,St=B.useRef(null),On=B.useCallback(function(Rn){(0,S.mH)(H,Rn),(0,S.mH)(St,Rn)},[]);B.useEffect(function(){var Rn;function Bn(ii){var Ei=ii,gi=Ei.currentTarget,xi=Ei.deltaX;xi&&(It({currentTarget:gi,scrollLeft:gi.scrollLeft+xi}),ii.preventDefault())}return(Rn=St.current)===null||Rn===void 0||Rn.addEventListener("wheel",Bn),function(){var ii;(ii=St.current)===null||ii===void 0||ii.removeEventListener("wheel",Bn)}},[]);var zr=B.useMemo(function(){return He.every(function(Rn){return Rn.width})},[He]),wr=He[He.length-1],Ir={fixed:wr?wr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Fr,"-cell-scrollbar")}}},xr=(0,B.useMemo)(function(){return tr?[].concat((0,en.Z)(Ye),[Ir]):Ye},[tr,Ye]),kr=(0,B.useMemo)(function(){return tr?[].concat((0,en.Z)(He),[Ir]):He},[tr,He]),fn=(0,B.useMemo)(function(){var Rn=Et.right,Bn=Et.left;return(0,je.Z)((0,je.Z)({},Et),{},{left:de==="rtl"?[].concat((0,en.Z)(Bn.map(function(ii){return ii+tr})),[0]):Bn,right:de==="rtl"?Rn:[].concat((0,en.Z)(Rn.map(function(ii){return ii+tr})),[0]),isSticky:hn})},[tr,Et,hn]),zn=li(dt,pt);return B.createElement("div",{style:(0,je.Z)({overflow:"hidden"},hn?{top:Je,bottom:mt}:{}),ref:On,className:k()(Se,(0,q.Z)({},yt,!!yt))},B.createElement("table",{style:{tableLayout:"fixed",visibility:De||zn?null:"hidden"}},(!De||!Kt||zr)&&B.createElement(Tn,{colWidths:zn?[].concat((0,en.Z)(zn),[tr]):[],columCount:pt+1,columns:kr}),Tt((0,je.Z)((0,je.Z)({},pr),{},{stickyOffsets:fn,columns:xr,flattenColumns:kr}))))});Pr.displayName="FixedHolder";var ti=B.memo(Pr);function yi(U){var H=U.cells,Se=U.stickyOffsets,De=U.flattenColumns,Ye=U.rowComponent,He=U.cellComponent,dt=U.tdCellComponent,pt=U.onHeaderRow,Et=U.index,de=h(j,["prefixCls","direction"]),Ze=de.prefixCls,Je=de.direction,mt;pt&&(mt=pt(H.map(function(It){return It.column}),Et));var yt=ye(H.map(function(It){return It.column}));return B.createElement(Ye,mt,H.map(function(It,Kt){var Tt=It.column,pr=or(It.colStart,It.colEnd,De,Se,Je,Tt),sr;return Tt&&Tt.onHeaderCell&&(sr=It.column.onHeaderCell(Tt)),B.createElement(cr,(0,Z.Z)({},It,{scope:Tt.title?It.colSpan>1?"colgroup":"col":null,ellipsis:Tt.ellipsis,align:Tt.align,component:Tt.title?He:dt,prefixCls:Ze,key:yt[Kt]},pr,{additionalProps:sr,rowType:"header"}))}))}yi.displayName="HeaderRow";var ci=yi;function Ci(U){var H=[];function Se(dt,pt){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;H[Et]=H[Et]||[];var de=pt,Ze=dt.filter(Boolean).map(function(Je){var mt={key:Je.key,className:Je.className||"",children:Je.title,column:Je,colStart:de},yt=1,It=Je.children;return It&&It.length>0&&(yt=Se(It,de,Et+1).reduce(function(Kt,Tt){return Kt+Tt},0),mt.hasSubColumns=!0),"colSpan"in Je&&(yt=Je.colSpan),"rowSpan"in Je&&(mt.rowSpan=Je.rowSpan),mt.colSpan=yt,mt.colEnd=mt.colStart+yt-1,H[Et].push(mt),de+=yt,yt});return Ze}Se(U,0);for(var De=H.length,Ye=function(pt){H[pt].forEach(function(Et){!("rowSpan"in Et)&&!Et.hasSubColumns&&(Et.rowSpan=De-pt)})},He=0;He<De;He+=1)Ye(He);return H}function hi(U){var H=U.stickyOffsets,Se=U.columns,De=U.flattenColumns,Ye=U.onHeaderRow,He=h(j,["prefixCls","getComponent"]),dt=He.prefixCls,pt=He.getComponent,Et=B.useMemo(function(){return Ci(Se)},[Se]),de=pt(["header","wrapper"],"thead"),Ze=pt(["header","row"],"tr"),Je=pt(["header","cell"],"th"),mt=pt(["header","cell"],"td");return B.createElement(de,{className:"".concat(dt,"-thead")},Et.map(function(yt,It){var Kt=B.createElement(ci,{key:It,flattenColumns:De,cells:yt,stickyOffsets:H,rowComponent:Ze,cellComponent:Je,tdCellComponent:mt,onHeaderRow:Ye,index:It});return Kt}))}var Ri=te(hi),ba=x(11592);function Xi(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof H=="number"?H:H.endsWith("%")?U*parseFloat(H)/100:null}function _i(U,H){return B.useMemo(function(){if(H&&H>0){var Se=0,De=0;U.forEach(function(de){var Ze=Xi(H,de.width);Ze?Se+=Ze:De+=1});var Ye=H-Se,He=De,dt=Ye/De,pt=0,Et=U.map(function(de){var Ze=(0,je.Z)({},de),Je=Xi(H,Ze.width);if(Je)Ze.width=Je;else{var mt=Math.floor(dt);Ze.width=He===1?Ye:mt,Ye-=mt,He-=1}return pt+=Ze.width,Ze});return[Et,pt]}return[U,H]},[U,H])}var oi=["children"],Qi=["fixed"];function be(U){return(0,ba.Z)(U).filter(function(H){return B.isValidElement(H)}).map(function(H){var Se=H.key,De=H.props,Ye=De.children,He=(0,Xe.Z)(De,oi),dt=(0,je.Z)({key:Se},He);return Ye&&(dt.children=be(Ye)),dt})}function Ue(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return U.filter(function(Se){return Se&&(0,Ce.Z)(Se)==="object"}).reduce(function(Se,De,Ye){var He=De.fixed,dt=He===!0?"left":He,pt="".concat(H,"-").concat(Ye),Et=De.children;return Et&&Et.length>0?[].concat((0,en.Z)(Se),(0,en.Z)(Ue(Et,pt).map(function(de){return(0,je.Z)({fixed:dt},de)}))):[].concat((0,en.Z)(Se),[(0,je.Z)((0,je.Z)({key:pt},De),{},{fixed:dt})])},[])}function Me(U){for(var H=!0,Se=0;Se<U.length;Se+=1){var De=U[Se];if(H&&De.fixed!=="left")H=!1;else if(!H&&De.fixed==="left"){warning(!1,"Index ".concat(Se-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ye=!0,He=U.length-1;He>=0;He-=1){var dt=U[He];if(Ye&&dt.fixed!=="right")Ye=!1;else if(!Ye&&dt.fixed==="right"){warning(!1,"Index ".concat(He+1," of `columns` missing `fixed='right'` prop."));break}}}function lt(U){return U.map(function(H){var Se=H.fixed,De=(0,Xe.Z)(H,Qi),Ye=Se;return Se==="left"?Ye="right":Se==="right"&&(Ye="left"),(0,je.Z)({fixed:Ye},De)})}function Zt(U,H){var Se=U.prefixCls,De=U.columns,Ye=U.children,He=U.expandable,dt=U.expandedKeys,pt=U.columnTitle,Et=U.getRowKey,de=U.onTriggerExpand,Ze=U.expandIcon,Je=U.rowExpandable,mt=U.expandIconColumnIndex,yt=U.direction,It=U.expandRowByClick,Kt=U.columnWidth,Tt=U.fixed,pr=U.scrollWidth,sr=B.useMemo(function(){return De||be(Ye)},[De,Ye]),Fr=B.useMemo(function(){if(He){var wr,Ir=sr.slice();if(!Ir.includes(ge)){var xr=mt||0;xr>=0&&Ir.splice(xr,0,ge)}var kr=Ir.indexOf(ge);Ir=Ir.filter(function(Bn,ii){return Bn!==ge||ii===kr});var fn=sr[kr],zn;(Tt==="left"||Tt)&&!mt?zn="left":(Tt==="right"||Tt)&&mt===sr.length?zn="right":zn=fn?fn.fixed:null;var Rn=(wr={},(0,q.Z)(wr,rr,{className:"".concat(Se,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,q.Z)(wr,"title",pt),(0,q.Z)(wr,"fixed",zn),(0,q.Z)(wr,"className","".concat(Se,"-row-expand-icon-cell")),(0,q.Z)(wr,"width",Kt),(0,q.Z)(wr,"render",function(ii,Ei,gi){var xi=Et(Ei,gi),kn=dt.has(xi),ha=Je?Je(Ei):!0,ei=Ze({prefixCls:Se,expanded:kn,expandable:ha,record:Ei,onExpand:de});return It?B.createElement("span",{onClick:function(Ti){return Ti.stopPropagation()}},ei):ei}),wr);return Ir.map(function(Bn){return Bn===ge?Rn:Bn})}return sr.filter(function(Bn){return Bn!==ge})},[He,sr,Et,dt,Ze,yt]),Hr=B.useMemo(function(){var wr=Fr;return H&&(wr=H(wr)),wr.length||(wr=[{render:function(){return null}}]),wr},[H,Fr,yt]),hn=B.useMemo(function(){return yt==="rtl"?lt(Ue(Hr)):Ue(Hr)},[Hr,yt,pr]),tr=_i(hn,pr),St=(0,Q.Z)(tr,2),On=St[0],zr=St[1];return[Hr,On,zr]}var Qt=Zt;function Sr(U){var H,Se=U.prefixCls,De=U.record,Ye=U.onExpand,He=U.expanded,dt=U.expandable,pt="".concat(Se,"-row-expand-icon");if(!dt)return B.createElement("span",{className:k()(pt,"".concat(Se,"-row-spaced"))});var Et=function(Ze){Ye(De,Ze),Ze.stopPropagation()};return B.createElement("span",{className:k()(pt,(H={},(0,q.Z)(H,"".concat(Se,"-row-expanded"),He),(0,q.Z)(H,"".concat(Se,"-row-collapsed"),!He),H)),onClick:Et})}function fr(U,H,Se){var De=[];function Ye(He){(He||[]).forEach(function(dt,pt){De.push(H(dt,pt)),Ye(dt[Se])})}return Ye(U),De}function Tr(U,H,Se){var De=Ar(U),Ye=De.expandIcon,He=De.expandedRowKeys,dt=De.defaultExpandedRowKeys,pt=De.defaultExpandAllRows,Et=De.expandedRowRender,de=De.onExpand,Ze=De.onExpandedRowsChange,Je=De.childrenColumnName,mt=Ye||Sr,yt=Je||"children",It=B.useMemo(function(){return Et?"row":U.expandable&&U.internalHooks===ue&&U.expandable.__PARENT_RENDER_ICON__||H.some(function(hn){return hn&&(0,Ce.Z)(hn)==="object"&&hn[yt]})?"nest":!1},[!!Et,H]),Kt=B.useState(function(){return dt||(pt?fr(H,Se,yt):[])}),Tt=(0,Q.Z)(Kt,2),pr=Tt[0],sr=Tt[1],Fr=B.useMemo(function(){return new Set(He||pr||[])},[He,pr]),Hr=B.useCallback(function(hn){var tr=Se(hn,H.indexOf(hn)),St,On=Fr.has(tr);On?(Fr.delete(tr),St=(0,en.Z)(Fr)):St=[].concat((0,en.Z)(Fr),[tr]),sr(St),de&&de(!On,hn),Ze&&Ze(St)},[Se,Fr,H,de,Ze]);return[De,It,Fr,mt,yt,Hr]}function Wr(U,H,Se,De){var Ye=U.map(function(He,dt){return or(dt,dt,U,H,Se,De==null?void 0:De[dt])});return(0,ot.Z)(function(){return Ye},[Ye],function(He,dt){return!(0,G.Z)(He,dt)})}function An(U){var H=(0,B.useRef)(U),Se=(0,B.useState)({}),De=(0,Q.Z)(Se,2),Ye=De[1],He=(0,B.useRef)(null),dt=(0,B.useRef)([]);function pt(Et){dt.current.push(Et);var de=Promise.resolve();He.current=de,de.then(function(){if(He.current===de){var Ze=dt.current,Je=H.current;dt.current=[],Ze.forEach(function(mt){H.current=mt(H.current)}),He.current=null,Je!==H.current&&Ye({})}})}return(0,B.useEffect)(function(){return function(){He.current=null}},[]),[H.current,pt]}function $r(U){var H=(0,B.useRef)(U||null),Se=(0,B.useRef)();function De(){window.clearTimeout(Se.current)}function Ye(dt){H.current=dt,De(),Se.current=window.setTimeout(function(){H.current=null,Se.current=void 0},100)}function He(){return H.current}return(0,B.useEffect)(function(){return De},[]),[Ye,He]}function Rr(){var U=B.useState(-1),H=(0,Q.Z)(U,2),Se=H[0],De=H[1],Ye=B.useState(-1),He=(0,Q.Z)(Ye,2),dt=He[0],pt=He[1],Et=B.useCallback(function(de,Ze){De(de),pt(Ze)},[]);return[Se,dt,Et]}var qr=x(47273),mn=(0,qr.Z)()?window:null;function sn(U,H){var Se=(0,Ce.Z)(U)==="object"?U:{},De=Se.offsetHeader,Ye=De===void 0?0:De,He=Se.offsetSummary,dt=He===void 0?0:He,pt=Se.offsetScroll,Et=pt===void 0?0:pt,de=Se.getContainer,Ze=de===void 0?function(){return mn}:de,Je=Ze()||mn;return B.useMemo(function(){var mt=!!U;return{isSticky:mt,stickyClassName:mt?"".concat(H,"-sticky-holder"):"",offsetHeader:Ye,offsetSummary:dt,offsetScroll:Et,container:Je}},[Et,Ye,dt,H,Je])}function Sn(U,H,Se){var De=(0,B.useMemo)(function(){for(var Ye=[],He=[],dt=0,pt=0,Et=0;Et<H;Et+=1)if(Se==="rtl"){He[Et]=pt,pt+=U[Et]||0;var de=H-Et-1;Ye[de]=dt,dt+=U[de]||0}else{Ye[Et]=dt,dt+=U[Et]||0;var Ze=H-Et-1;He[Ze]=pt,pt+=U[Ze]||0}return{left:Ye,right:He}},[U,H,Se]);return De}var Hn=Sn;function pi(U){var H=U.className,Se=U.children;return B.createElement("div",{className:H},Se)}var In=pi,an=x(8224),jt=x(55468),Wt=function(H,Se){var De,Ye,He=H.scrollBodyRef,dt=H.onScroll,pt=H.offsetScroll,Et=H.container,de=h(j,"prefixCls"),Ze=((De=He.current)===null||De===void 0?void 0:De.scrollWidth)||0,Je=((Ye=He.current)===null||Ye===void 0?void 0:Ye.clientWidth)||0,mt=Ze&&Je*(Je/Ze),yt=B.useRef(),It=An({scrollLeft:0,isHiddenScrollBar:!1}),Kt=(0,Q.Z)(It,2),Tt=Kt[0],pr=Kt[1],sr=B.useRef({delta:0,x:0}),Fr=B.useState(!1),Hr=(0,Q.Z)(Fr,2),hn=Hr[0],tr=Hr[1],St=function(){tr(!1)},On=function(kr){kr.persist(),sr.current.delta=kr.pageX-Tt.scrollLeft,sr.current.x=0,tr(!0),kr.preventDefault()},zr=function(kr){var fn,zn=kr||((fn=window)===null||fn===void 0?void 0:fn.event),Rn=zn.buttons;if(!hn||Rn===0){hn&&tr(!1);return}var Bn=sr.current.x+kr.pageX-sr.current.x-sr.current.delta;Bn<=0&&(Bn=0),Bn+mt>=Je&&(Bn=Je-mt),dt({scrollLeft:Bn/Je*(Ze+2)}),sr.current.x=kr.pageX},wr=function(){if(He.current){var kr=(0,jt.os)(He.current).top,fn=kr+He.current.offsetHeight,zn=Et===window?document.documentElement.scrollTop+window.innerHeight:(0,jt.os)(Et).top+Et.clientHeight;fn-(0,qe.Z)()<=zn||kr>=zn-pt?pr(function(Rn){return(0,je.Z)((0,je.Z)({},Rn),{},{isHiddenScrollBar:!0})}):pr(function(Rn){return(0,je.Z)((0,je.Z)({},Rn),{},{isHiddenScrollBar:!1})})}},Ir=function(kr){pr(function(fn){return(0,je.Z)((0,je.Z)({},fn),{},{scrollLeft:kr/Ze*Je||0})})};return B.useImperativeHandle(Se,function(){return{setScrollLeft:Ir}}),B.useEffect(function(){var xr=(0,an.Z)(document.body,"mouseup",St,!1),kr=(0,an.Z)(document.body,"mousemove",zr,!1);return wr(),function(){xr.remove(),kr.remove()}},[mt,hn]),B.useEffect(function(){var xr=(0,an.Z)(Et,"scroll",wr,!1),kr=(0,an.Z)(window,"resize",wr,!1);return function(){xr.remove(),kr.remove()}},[Et]),B.useEffect(function(){Tt.isHiddenScrollBar||pr(function(xr){var kr=He.current;return kr?(0,je.Z)((0,je.Z)({},xr),{},{scrollLeft:kr.scrollLeft/kr.scrollWidth*kr.clientWidth}):xr})},[Tt.isHiddenScrollBar]),Ze<=Je||!mt||Tt.isHiddenScrollBar?null:B.createElement("div",{style:{height:(0,qe.Z)(),width:Je,bottom:pt},className:"".concat(de,"-sticky-scroll")},B.createElement("div",{onMouseDown:On,ref:yt,className:k()("".concat(de,"-sticky-scroll-bar"),(0,q.Z)({},"".concat(de,"-sticky-scroll-bar-active"),hn)),style:{width:"".concat(mt,"px"),transform:"translate3d(".concat(Tt.scrollLeft,"px, 0, 0)")}}))},nr=B.forwardRef(Wt);function qt(U){return null}var Xt=qt;function Nr(U){return null}var Lr=Nr,Jr="rc-table",_n=[],Dn={};function Ai(){return"No Data"}function Yn(U){var H,Se=(0,je.Z)({rowKey:"key",prefixCls:Jr,emptyText:Ai},U),De=Se.prefixCls,Ye=Se.className,He=Se.rowClassName,dt=Se.style,pt=Se.data,Et=Se.rowKey,de=Se.scroll,Ze=Se.tableLayout,Je=Se.direction,mt=Se.title,yt=Se.footer,It=Se.summary,Kt=Se.caption,Tt=Se.id,pr=Se.showHeader,sr=Se.components,Fr=Se.emptyText,Hr=Se.onRow,hn=Se.onHeaderRow,tr=Se.internalHooks,St=Se.transformColumns,On=Se.internalRefs,zr=Se.tailor,wr=Se.sticky,Ir=pt||_n,xr=!!Ir.length,kr=tr===ue,fn=B.useCallback(function(Ea,va){return(0,Le.Z)(sr,Ea)||va},[sr]),zn=B.useMemo(function(){return typeof Et=="function"?Et:function(Ea){var va=Ea&&Ea[Et];return va}},[Et]),Rn=fn(["body"]),Bn=Rr(),ii=(0,Q.Z)(Bn,3),Ei=ii[0],gi=ii[1],xi=ii[2],kn=Tr(Se,Ir,zn),ha=(0,Q.Z)(kn,6),ei=ha[0],uo=ha[1],Ti=ha[2],na=ha[3],Ta=ha[4],ma=ha[5],Vn=de==null?void 0:de.x,Gn=B.useState(0),bi=(0,Q.Z)(Gn,2),vi=bi[0],Zi=bi[1],gn=Qt((0,je.Z)((0,je.Z)((0,je.Z)({},Se),ei),{},{expandable:!!ei.expandedRowRender,columnTitle:ei.columnTitle,expandedKeys:Ti,getRowKey:zn,onTriggerExpand:ma,expandIcon:na,expandIconColumnIndex:ei.expandIconColumnIndex,direction:Je,scrollWidth:kr&&zr&&typeof Vn=="number"?Vn:null}),kr?St:null),Xn=(0,Q.Z)(gn,3),aa=Xn[0],ji=Xn[1],ko=Xn[2],Do=ko!=null?ko:Vn,Ki=B.useMemo(function(){return{columns:aa,flattenColumns:ji}},[aa,ji]),ro=B.useRef(),as=B.useRef(),Cn=B.useRef(),fo=B.useRef(),Ho=B.useRef(),Yi=B.useState(!1),on=(0,Q.Z)(Yi,2),ga=on[0],ho=on[1],Wa=B.useState(!1),Li=(0,Q.Z)(Wa,2),Po=Li[0],No=Li[1],os=An(new Map),fs=(0,Q.Z)(os,2),ss=fs[0],hs=fs[1],Bl=ye(ji),qo=Bl.map(function(Ea){return ss.get(Ea)}),Ds=B.useMemo(function(){return qo},[qo.join("_")]),ps=Hn(Ds,ji.length,Je),jo=de&&at(de.y),wo=de&&at(Do)||!!ei.fixed,Hs=wo&&ji.some(function(Ea){var va=Ea.fixed;return va}),oc=B.useRef(),Sl=sn(wr,De),Ol=Sl.isSticky,nA=Sl.offsetHeader,HA=Sl.offsetSummary,pa=Sl.offsetScroll,oo=Sl.stickyClassName,Ka=Sl.container,xo=B.useMemo(function(){return It==null?void 0:It(Ir)},[It,Ir]),ms=(jo||Ol)&&B.isValidElement(xo)&&xo.type===w&&xo.props.fixed,Ps,gs,Gl;jo&&(gs={overflowY:"scroll",maxHeight:de.y}),wo&&(Ps={overflowX:"auto"},jo||(gs={overflowY:"hidden"}),Gl={width:Do===!0?"auto":Do,minWidth:"100%"});var El=B.useCallback(function(Ea,va){(0,Ee.Z)(ro.current)&&hs(function(Js){if(Js.get(Ea)!==va){var _l=new Map(Js);return _l.set(Ea,va),_l}return Js})},[]),zc=$r(null),Ns=(0,Q.Z)(zc,2),wa=Ns[0],So=Ns[1];function Tl(Ea,va){va&&(typeof va=="function"?va(Ea):va.scrollLeft!==Ea&&(va.scrollLeft=Ea,va.scrollLeft!==Ea&&setTimeout(function(){va.scrollLeft=Ea},0)))}var Xl=(0,Te.Z)(function(Ea){var va=Ea.currentTarget,Js=Ea.scrollLeft,_l=Je==="rtl",Rl=typeof Js=="number"?Js:va.scrollLeft,VA=va||Dn;if(!So()||So()===VA){var cs;wa(VA),Tl(Rl,as.current),Tl(Rl,Cn.current),Tl(Rl,Ho.current),Tl(Rl,(cs=oc.current)===null||cs===void 0?void 0:cs.setScrollLeft)}var dl=va||as.current;if(dl){var ql=dl.scrollWidth,ec=dl.clientWidth;if(ql===ec){ho(!1),No(!1);return}_l?(ho(-Rl<ql-ec),No(-Rl>0)):(ho(Rl>0),No(Rl<ql-ec))}}),js=function(){wo&&Cn.current?Xl({currentTarget:Cn.current}):(ho(!1),No(!1))},xA=function(va){var Js=va.width;Js!==vi&&(js(),Zi(ro.current?ro.current.offsetWidth:Js))},Jl=B.useRef(!1);B.useEffect(function(){Jl.current&&js()},[wo,pt,aa.length]),B.useEffect(function(){Jl.current=!0},[]);var iA=B.useState(0),jA=(0,Q.Z)(iA,2),$c=jA[0],CA=jA[1],Ul=B.useState(!0),sc=(0,Q.Z)(Ul,2),un=sc[0],Zc=sc[1];B.useEffect(function(){(!zr||!kr)&&(Cn.current instanceof Element?CA((0,qe.o)(Cn.current).width):CA((0,qe.o)(fo.current).width)),Zc((0,me.G)("position","sticky"))},[]),B.useEffect(function(){kr&&On&&(On.body.current=Cn.current)});var Os=B.useCallback(function(Ea){return B.createElement(B.Fragment,null,B.createElement(Ri,Ea),ms==="top"&&B.createElement(Be,Ea,xo))},[ms,xo]),BA=B.useCallback(function(Ea){return B.createElement(Be,Ea,xo)},[xo]),Vc=fn(["table"],"table"),sa=B.useMemo(function(){return Ze||(Hs?Do==="max-content"?"auto":"fixed":jo||Ol||ji.some(function(Ea){var va=Ea.ellipsis;return va})?"fixed":"auto")},[jo,Hs,ji,Ze,Ol]),zA,$A={colWidths:Ds,columCount:ji.length,stickyOffsets:ps,onHeaderRow:hn,fixHeader:jo,scroll:de},Eo=B.useMemo(function(){return xr?null:typeof Fr=="function"?Fr():Fr},[xr,Fr]),ZA=B.createElement(Ur,{data:Ir,measureColumnWidth:jo||wo||Ol}),aA=B.createElement(Tn,{colWidths:ji.map(function(Ea){var va=Ea.width;return va}),columns:ji}),lc=Kt!=null?B.createElement("caption",{className:"".concat(De,"-caption")},Kt):void 0,Wc=(0,_t.Z)(Se,{data:!0}),Yl=(0,_t.Z)(Se,{aria:!0});if(jo||Ol){var cc;typeof Rn=="function"?(cc=Rn(Ir,{scrollbarSize:$c,ref:Cn,onScroll:Xl}),$A.colWidths=ji.map(function(Ea,va){var Js=Ea.width,_l=va===ji.length-1?Js-$c:Js;return typeof _l=="number"&&!Number.isNaN(_l)?_l:0})):cc=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ps),gs),onScroll:Xl,ref:Cn,className:k()("".concat(De,"-body"))},B.createElement(Vc,(0,Z.Z)({style:(0,je.Z)((0,je.Z)({},Gl),{},{tableLayout:sa})},Yl),lc,aA,ZA,!ms&&xo&&B.createElement(Be,{stickyOffsets:ps,flattenColumns:ji,columns:aa},xo)));var Co=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Ir.length,maxContentScroll:wo&&Do==="max-content"},$A),Ki),{},{direction:Je,stickyClassName:oo,onScroll:Xl});zA=B.createElement(B.Fragment,null,pr!==!1&&B.createElement(ti,(0,Z.Z)({},Co,{stickyTopOffset:nA,className:"".concat(De,"-header"),ref:as}),Os),cc,ms&&ms!=="top"&&B.createElement(ti,(0,Z.Z)({},Co,{stickyBottomOffset:HA,className:"".concat(De,"-summary"),ref:Ho}),BA),Ol&&B.createElement(nr,{ref:oc,offsetScroll:pa,scrollBodyRef:Cn,onScroll:Xl,container:Ka}))}else zA=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ps),gs),className:k()("".concat(De,"-content")),onScroll:Xl,ref:Cn},B.createElement(Vc,(0,Z.Z)({style:(0,je.Z)((0,je.Z)({},Gl),{},{tableLayout:sa})},Yl),lc,aA,pr!==!1&&B.createElement(Ri,(0,Z.Z)({},$A,Ki)),ZA,xo&&B.createElement(Be,{stickyOffsets:ps,flattenColumns:ji,columns:aa},xo)));var Xs=B.createElement("div",(0,Z.Z)({className:k()(De,Ye,(H={},(0,q.Z)(H,"".concat(De,"-rtl"),Je==="rtl"),(0,q.Z)(H,"".concat(De,"-ping-left"),ga),(0,q.Z)(H,"".concat(De,"-ping-right"),Po),(0,q.Z)(H,"".concat(De,"-layout-fixed"),Ze==="fixed"),(0,q.Z)(H,"".concat(De,"-fixed-header"),jo),(0,q.Z)(H,"".concat(De,"-fixed-column"),Hs),(0,q.Z)(H,"".concat(De,"-scroll-horizontal"),wo),(0,q.Z)(H,"".concat(De,"-has-fix-left"),ji[0]&&ji[0].fixed),(0,q.Z)(H,"".concat(De,"-has-fix-right"),ji[ji.length-1]&&ji[ji.length-1].fixed==="right"),H)),style:dt,id:Tt,ref:ro},Wc),mt&&B.createElement(In,{className:"".concat(De,"-title")},mt(Ir)),B.createElement("div",{ref:fo,className:"".concat(De,"-container")},zA),yt&&B.createElement(In,{className:"".concat(De,"-footer")},yt(Ir)));wo&&(Xs=B.createElement(Ge.Z,{onResize:xA},Xs));var ls=Wr(ji,ps,Je,aa),ul=B.useMemo(function(){return{scrollX:Do,prefixCls:De,getComponent:fn,scrollbarSize:$c,direction:Je,fixedInfoList:ls,isSticky:Ol,supportSticky:un,componentWidth:vi,fixHeader:jo,fixColumn:Hs,horizonScroll:wo,tableLayout:sa,rowClassName:He,expandedRowClassName:ei.expandedRowClassName,expandIcon:na,expandableType:uo,expandRowByClick:ei.expandRowByClick,expandedRowRender:ei.expandedRowRender,onTriggerExpand:ma,expandIconColumnIndex:ei.expandIconColumnIndex,indentSize:ei.indentSize,allColumnsFixedLeft:ji.every(function(Ea){return Ea.fixed==="left"}),emptyNode:Eo,columns:aa,flattenColumns:ji,onColumnResize:El,hoverStartRow:Ei,hoverEndRow:gi,onHover:xi,rowExpandable:ei.rowExpandable,onRow:Hr,getRowKey:zn,expandedKeys:Ti,childrenColumnName:Ta}},[Do,De,fn,$c,Je,ls,Ol,un,vi,jo,Hs,wo,sa,He,ei.expandedRowClassName,na,uo,ei.expandRowByClick,ei.expandedRowRender,ma,ei.expandIconColumnIndex,ei.indentSize,Eo,aa,ji,El,Ei,gi,xi,ei.rowExpandable,Hr,zn,Ti,Ta]);return B.createElement(j.Provider,{value:ul},Xs)}function ki(U){return se(Yn,U)}var qn=ki();qn.EXPAND_COLUMN=ge,qn.INTERNAL_HOOKS=ue,qn.Column=Xt,qn.ColumnGroup=Lr,qn.Summary=T;var Nn=qn,ln=x(4409),wi=E(null),Mn=E(null);function ni(U,H,Se){var De=H||1;return Se[U+De]-(Se[U]||0)}function Si(U){var H=U.rowInfo,Se=U.column,De=U.colIndex,Ye=U.indent,He=U.index,dt=U.renderIndex,pt=U.record,Et=U.style,de=U.className,Ze=U.inverse,Je=U.getHeight,mt=Se.render,yt=Se.dataIndex,It=Se.className,Kt=Se.width,Tt=h(Mn,["columnsOffset"]),pr=Tt.columnsOffset,sr=vt(H,Se,De,Ye,He),Fr=sr.key,Hr=sr.fixedInfo,hn=sr.appendCellNode,tr=sr.additionalCellProps,St=tr.style,On=tr.colSpan,zr=On===void 0?1:On,wr=tr.rowSpan,Ir=wr===void 0?1:wr,xr=De-1,kr=ni(xr,zr,pr),fn=zr>1?Kt-kr:0,zn=(0,je.Z)((0,je.Z)((0,je.Z)({},St),Et),{},{flex:"0 0 ".concat(kr,"px"),width:"".concat(kr,"px"),marginRight:fn,pointerEvents:"auto"}),Rn=B.useMemo(function(){return Ze?Ir<=1:zr===0||Ir===0||Ir>1},[Ir,zr,Ze]);Rn?zn.visibility="hidden":Ze&&(zn.height=Je==null?void 0:Je(Ir));var Bn=Rn?function(){return null}:mt,ii={};return(Ir===0||zr===0)&&(ii.rowSpan=1,ii.colSpan=1),B.createElement(cr,(0,Z.Z)({className:k()(It,de),ellipsis:Se.ellipsis,align:Se.align,scope:Se.rowScope,component:"div",prefixCls:H.prefixCls,key:Fr,record:pt,index:He,renderIndex:dt,dataIndex:yt,render:Bn,shouldCellUpdate:Se.shouldCellUpdate},Hr,{appendNode:hn,additionalProps:(0,je.Z)((0,je.Z)({},tr),{},{style:zn},ii)}))}var Mi=Si,Wn=["data","index","className","rowKey","style","extra","getHeight"],Pi=B.forwardRef(function(U,H){var Se=U.data,De=U.index,Ye=U.className,He=U.rowKey,dt=U.style,pt=U.extra,Et=U.getHeight,de=(0,Xe.Z)(U,Wn),Ze=Se.record,Je=Se.indent,mt=Se.index,yt=h(j,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),It=yt.scrollX,Kt=yt.flattenColumns,Tt=yt.prefixCls,pr=yt.fixColumn,sr=yt.componentWidth,Fr=Ie(Ze,He,De,Je),Hr=Fr.rowSupportExpand,hn=Fr.expanded,tr=Fr.rowProps,St=Fr.expandedRowRender,On=Fr.expandedRowClassName,zr;if(Hr&&hn){var wr=St(Ze,De,Je+1,hn),Ir=On==null?void 0:On(Ze,De,Je),xr={};pr&&(xr={style:(0,q.Z)({},"--virtual-width","".concat(sr,"px"))});var kr="".concat(Tt,"-expanded-row-cell");zr=B.createElement("div",{className:k()("".concat(Tt,"-expanded-row"),"".concat(Tt,"-expanded-row-level-").concat(Je+1),Ir)},B.createElement(cr,{component:"div",prefixCls:Tt,className:k()(kr,(0,q.Z)({},"".concat(kr,"-fixed"),pr)),additionalProps:xr},wr))}var fn=(0,je.Z)((0,je.Z)({},dt),{},{width:It});pt&&(fn.position="absolute",fn.pointerEvents="none");var zn=B.createElement("div",(0,Z.Z)({},tr,de,{ref:Hr?null:H,className:k()(Ye,"".concat(Tt,"-row"),tr==null?void 0:tr.className,(0,q.Z)({},"".concat(Tt,"-row-extra"),pt)),style:(0,je.Z)((0,je.Z)({},fn),tr==null?void 0:tr.style)}),Kt.map(function(Rn,Bn){return B.createElement(Mi,{key:Bn,rowInfo:Fr,column:Rn,colIndex:Bn,indent:Je,index:De,renderIndex:mt,record:Ze,inverse:pt,getHeight:Et})}));return Hr?B.createElement("div",{ref:H},zn,zr):zn}),Ji=te(Pi),si=Ji,dn=B.forwardRef(function(U,H){var Se=U.data,De=U.onScroll,Ye=h(j,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),He=Ye.flattenColumns,dt=Ye.onColumnResize,pt=Ye.getRowKey,Et=Ye.expandedKeys,de=Ye.prefixCls,Ze=Ye.childrenColumnName,Je=Ye.emptyNode,mt=Ye.scrollX,yt=h(wi),It=yt.scrollY,Kt=yt.listItemHeight,Tt=B.useRef(),pr=st(Se,Ze,Et,pt),sr=B.useMemo(function(){var zr=0;return He.map(function(wr){var Ir=wr.width,xr=wr.key;return zr+=Ir,[xr,Ir,zr]})},[He]),Fr=B.useMemo(function(){return sr.map(function(zr){return zr[2]})},[sr]);B.useEffect(function(){sr.forEach(function(zr){var wr=(0,Q.Z)(zr,2),Ir=wr[0],xr=wr[1];dt(Ir,xr)})},[sr]),B.useImperativeHandle(H,function(){var zr={};return Object.defineProperty(zr,"scrollLeft",{get:function(){var Ir;return((Ir=Tt.current)===null||Ir===void 0?void 0:Ir.getScrollInfo().x)||0},set:function(Ir){var xr;(xr=Tt.current)===null||xr===void 0||xr.scrollTo({left:Ir})}}),zr});var Hr=function(wr,Ir){var xr,kr=(xr=pr[Ir])===null||xr===void 0?void 0:xr.record,fn=wr.onCell;if(fn){var zn,Rn=fn(kr,Ir);return(zn=Rn==null?void 0:Rn.rowSpan)!==null&&zn!==void 0?zn:1}return 1},hn=function(wr){var Ir=wr.start,xr=wr.end,kr=wr.getSize,fn=wr.offsetY;if(xr<0)return null;for(var zn=He.filter(function(Vn){return Hr(Vn,Ir)===0}),Rn=Ir,Bn=function(Gn){if(zn=zn.filter(function(bi){return Hr(bi,Gn)===0}),!zn.length)return Rn=Gn,"break"},ii=Ir;ii>=0;ii-=1){var Ei=Bn(ii);if(Ei==="break")break}for(var gi=He.filter(function(Vn){return Hr(Vn,xr)!==1}),xi=xr,kn=function(Gn){if(gi=gi.filter(function(bi){return Hr(bi,Gn)!==1}),!gi.length)return xi=Math.max(Gn-1,xr),"break"},ha=xr;ha<pr.length;ha+=1){var ei=kn(ha);if(ei==="break")break}for(var uo=[],Ti=function(Gn){var bi=pr[Gn];if(!bi)return"continue";He.some(function(vi){return Hr(vi,Gn)>1})&&uo.push(Gn)},na=Rn;na<=xi;na+=1)var Ta=Ti(na);var ma=uo.map(function(Vn){var Gn=pr[Vn],bi=pt(Gn.record,Vn),vi=function(Xn){var aa=Vn+Xn-1,ji=pt(pr[aa].record,aa),ko=kr(bi,ji);return ko.bottom-ko.top},Zi=kr(bi);return B.createElement(si,{key:Vn,data:Gn,rowKey:bi,index:Vn,style:{top:-fn+Zi.top},extra:!0,getHeight:vi})});return ma},tr=B.useMemo(function(){return{columnsOffset:Fr}},[Fr]),St="".concat(de,"-tbody"),On;return pr.length?On=B.createElement(ln.Z,{fullHeight:!1,ref:Tt,className:k()(St,"".concat(St,"-virtual")),height:It,itemHeight:Kt||24,data:pr,itemKey:function(wr){return pt(wr.record)},scrollWidth:mt,onVirtualScroll:function(wr){var Ir=wr.x;De({scrollLeft:Ir})},extraRender:hn},function(zr,wr,Ir){var xr=pt(zr.record,wr);return B.createElement(si,(0,Z.Z)({data:zr,rowKey:xr,index:wr},Ir))}):On=B.createElement("div",{className:k()("".concat(de,"-placeholder"))},B.createElement(cr,{component:"div",prefixCls:de},Je)),B.createElement(Mn.Provider,{value:tr},On)}),rn=te(dn),Ln=rn,wn=function(H,Se){var De=Se.ref,Ye=Se.onScroll;return B.createElement(Ln,{ref:De,data:H,onScroll:Ye})},Kn=100;function ui(U){var H=U.columns,Se=U.scroll,De=U.prefixCls,Ye=De===void 0?Jr:De,He=U.className,dt=U.listItemHeight,pt=Se||{},Et=pt.x,de=pt.y;typeof Et!="number"&&(Et=((H||[]).length+1)*Kn),typeof de!="number"&&(de=500);var Ze=B.useMemo(function(){return{scrollY:de,listItemHeight:dt}},[de,dt]);return B.createElement(wi.Provider,{value:Ze},B.createElement(Nn,(0,Z.Z)({},U,{className:k()(He,"".concat(Ye,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Se),{},{x:Et}),components:{body:wn},columns:H,internalHooks:ue,tailor:!0})))}function Fi(U){return se(ui,U)}var la=Fi(),ta=null;function ja(U){return null}var io=ja;function jn(U){return null}var Zn=jn,ri=x(2738),ra=x(68031),La=x(36355),ca=x(93891),Hi=x(19716),za=x(8628),ka=x(31724),co=x(58421),Ya=x(71418),Ca=x(88088);function mi(U){return function(Se){let{prefixCls:De,onExpand:Ye,record:He,expanded:dt,expandable:pt}=Se;const Et=`${De}-row-expand-icon`;return B.createElement("button",{type:"button",onClick:de=>{Ye(He,de),de.stopPropagation()},className:k()(Et,{[`${Et}-spaced`]:!pt,[`${Et}-expanded`]:pt&&dt,[`${Et}-collapsed`]:pt&&!dt}),"aria-label":dt?U.collapse:U.expand,"aria-expanded":dt})}}var Aa=mi;function Oo(U,H){return"key"in U&&U.key!==void 0&&U.key!==null?U.key:U.dataIndex?Array.isArray(U.dataIndex)?U.dataIndex.join("."):U.dataIndex:H}function mo(U,H){return H?`${H}-${U}`:`${U}`}function qa(U,H){return typeof U=="function"?U(H):U}function Ni(U,H){const Se=qa(U,H);return Object.prototype.toString.call(Se)==="[object Object]"?"":Se}var To={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"},go=To,el=x(7657),Wo=function(H,Se){return B.createElement(el.Z,(0,Z.Z)({},H,{ref:Se,icon:go}))},Rs=B.forwardRef(Wo),Go=Rs,xl=x(56762);function $a(U){const H=B.useRef(U),Se=(0,xl.Z)();return[()=>H.current,De=>{H.current=De,Se()}]}var Qa=x(3113),Sa=x(24905),Qs=x(38854),Bi=x(64165),Vi=x(20834),Oi=x(40875),Wi=x(5112),ua=x(17574),_a=x(47472),Xo=x(92832);function Io(U){let{value:H,onChange:Se,filterSearch:De,tablePrefixCls:Ye,locale:He}=U;return De?B.createElement("div",{className:`${Ye}-filter-dropdown-search`},B.createElement(Xo.default,{prefix:B.createElement(_a.Z,null),placeholder:He.filterSearchPlaceholder,onChange:Se,value:H,htmlSize:1,className:`${Ye}-filter-dropdown-search-input`})):null}var _o=Io,Za=x(10228);const Ba=U=>{const{keyCode:H}=U;H===Za.Z.ENTER&&U.stopPropagation()};var Da=B.forwardRef((U,H)=>B.createElement("div",{className:U.className,onClick:Se=>Se.stopPropagation(),onKeyDown:Ba,ref:H},U.children));function eo(U){let H=[];return(U||[]).forEach(Se=>{let{value:De,children:Ye}=Se;H.push(De),Ye&&(H=[].concat((0,en.Z)(H),(0,en.Z)(eo(Ye))))}),H}function Ao(U){return U.some(H=>{let{children:Se}=H;return Se})}function Oa(U,H){return typeof H=="string"||typeof H=="number"?H==null?void 0:H.toString().toLowerCase().includes(U.trim().toLowerCase()):!1}function Fa(U){let{filters:H,prefixCls:Se,filteredKeys:De,filterMultiple:Ye,searchValue:He,filterSearch:dt}=U;return H.map((pt,Et)=>{const de=String(pt.value);if(pt.children)return{key:de||Et,label:pt.text,popupClassName:`${Se}-dropdown-submenu`,children:Fa({filters:pt.children,prefixCls:Se,filteredKeys:De,filterMultiple:Ye,searchValue:He,filterSearch:dt})};const Ze=Ye?Sa.default:Wi.ZP,Je={key:pt.value!==void 0?de:Et,label:B.createElement(B.Fragment,null,B.createElement(Ze,{checked:De.includes(de)}),B.createElement("span",null,pt.text))};return He.trim()?typeof dt=="function"?dt(He,pt)?Je:null:Oa(He,pt.text)?Je:null:Je})}function Mo(U){var H,Se;const{tablePrefixCls:De,prefixCls:Ye,column:He,dropdownPrefixCls:dt,columnKey:pt,filterMultiple:Et,filterMode:de="menu",filterSearch:Ze=!1,filterState:Je,triggerFilter:mt,locale:yt,children:It,getPopupContainer:Kt}=U,{filterDropdownOpen:Tt,onFilterDropdownOpenChange:pr,filterResetToDefaultFilteredValue:sr,defaultFilteredValue:Fr,filterDropdownVisible:Hr,onFilterDropdownVisibleChange:hn}=He,[tr,St]=B.useState(!1),On=!!(Je&&(!((H=Je.filteredKeys)===null||H===void 0)&&H.length||Je.forceFiltered)),zr=gn=>{St(gn),pr==null||pr(gn),hn==null||hn(gn)},wr=(Se=Tt!=null?Tt:Hr)!==null&&Se!==void 0?Se:tr,Ir=Je==null?void 0:Je.filteredKeys,[xr,kr]=$a(Ir||[]),fn=gn=>{let{selectedKeys:Xn}=gn;kr(Xn)},zn=(gn,Xn)=>{let{node:aa,checked:ji}=Xn;fn(Et?{selectedKeys:gn}:{selectedKeys:ji&&aa.key?[aa.key]:[]})};B.useEffect(()=>{tr&&fn({selectedKeys:Ir||[]})},[Ir]);const[Rn,Bn]=B.useState([]),ii=gn=>{Bn(gn)},[Ei,gi]=B.useState(""),xi=gn=>{const{value:Xn}=gn.target;gi(Xn)};B.useEffect(()=>{tr||gi("")},[tr]);const kn=gn=>{const Xn=gn&&gn.length?gn:null;if(Xn===null&&(!Je||!Je.filteredKeys)||(0,G.Z)(Xn,Je==null?void 0:Je.filteredKeys,!0))return null;mt({column:He,key:pt,filteredKeys:Xn})},ha=()=>{zr(!1),kn(xr())},ei=function(){let{confirm:gn,closeDropdown:Xn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};gn&&kn([]),Xn&&zr(!1),gi(""),kr(sr?(Fr||[]).map(aa=>String(aa)):[])},uo=function(){let{closeDropdown:gn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};gn&&zr(!1),kn(xr())},Ti=gn=>{gn&&Ir!==void 0&&kr(Ir||[]),zr(gn),!gn&&!He.filterDropdown&&ha()},na=k()({[`${dt}-menu-without-submenu`]:!Ao(He.filters||[])}),Ta=gn=>{if(gn.target.checked){const Xn=eo(He==null?void 0:He.filters).map(aa=>String(aa));kr(Xn)}else kr([])},ma=gn=>{let{filters:Xn}=gn;return(Xn||[]).map((aa,ji)=>{const ko=String(aa.value),Do={title:aa.text,key:aa.value!==void 0?ko:ji};return aa.children&&(Do.children=ma({filters:aa.children})),Do})},Vn=gn=>{var Xn;return Object.assign(Object.assign({},gn),{text:gn.title,value:gn.key,children:((Xn=gn.children)===null||Xn===void 0?void 0:Xn.map(aa=>Vn(aa)))||[]})};let Gn;if(typeof He.filterDropdown=="function")Gn=He.filterDropdown({prefixCls:`${dt}-custom`,setSelectedKeys:gn=>fn({selectedKeys:gn}),selectedKeys:xr(),confirm:uo,clearFilters:ei,filters:He.filters,visible:wr,close:()=>{zr(!1)}});else if(He.filterDropdown)Gn=He.filterDropdown;else{const gn=xr()||[],Xn=()=>(He.filters||[]).length===0?B.createElement(Bi.Z,{image:Bi.Z.PRESENTED_IMAGE_SIMPLE,description:yt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):de==="tree"?B.createElement(B.Fragment,null,B.createElement(_o,{filterSearch:Ze,value:Ei,onChange:xi,tablePrefixCls:De,locale:yt}),B.createElement("div",{className:`${De}-filter-dropdown-tree`},Et?B.createElement(Sa.default,{checked:gn.length===eo(He.filters).length,indeterminate:gn.length>0&&gn.length<eo(He.filters).length,className:`${De}-filter-dropdown-checkall`,onChange:Ta},yt.filterCheckall):null,B.createElement(ua.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Et,checkStrictly:!Et,className:`${dt}-menu`,onCheck:zn,checkedKeys:gn,selectedKeys:gn,showIcon:!1,treeData:ma({filters:He.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ei.trim()?ji=>typeof Ze=="function"?Ze(Ei,Vn(ji)):Oa(Ei,ji.title):void 0}))):B.createElement(B.Fragment,null,B.createElement(_o,{filterSearch:Ze,value:Ei,onChange:xi,tablePrefixCls:De,locale:yt}),B.createElement(Vi.default,{selectable:!0,multiple:Et,prefixCls:`${dt}-menu`,className:na,onSelect:fn,onDeselect:fn,selectedKeys:gn,getPopupContainer:Kt,openKeys:Rn,onOpenChange:ii,items:Fa({filters:He.filters||[],filterSearch:Ze,prefixCls:Ye,filteredKeys:xr(),filterMultiple:Et,searchValue:Ei})})),aa=()=>sr?(0,G.Z)((Fr||[]).map(ji=>String(ji)),gn,!0):gn.length===0;Gn=B.createElement(B.Fragment,null,Xn(),B.createElement("div",{className:`${Ye}-dropdown-btns`},B.createElement(Qa.ZP,{type:"link",size:"small",disabled:aa(),onClick:()=>ei()},yt.filterReset),B.createElement(Qa.ZP,{type:"primary",size:"small",onClick:ha},yt.filterConfirm)))}He.filterDropdown&&(Gn=B.createElement(Oi.J,{selectable:void 0},Gn));const bi=()=>B.createElement(Da,{className:`${Ye}-dropdown`},Gn);let vi;typeof He.filterIcon=="function"?vi=He.filterIcon(On):He.filterIcon?vi=He.filterIcon:vi=B.createElement(Go,null);const{direction:Zi}=B.useContext(La.E_);return B.createElement("div",{className:`${Ye}-column`},B.createElement("span",{className:`${De}-column-title`},It),B.createElement(Qs.Z,{dropdownRender:bi,trigger:["click"],open:wr,onOpenChange:Ti,getPopupContainer:Kt,placement:Zi==="rtl"?"bottomLeft":"bottomRight"},B.createElement("span",{role:"button",tabIndex:-1,className:k()(`${Ye}-trigger`,{active:On}),onClick:gn=>{gn.stopPropagation()}},vi)))}var kl=Mo;function ds(U,H,Se){let De=[];return(U||[]).forEach((Ye,He)=>{var dt;const pt=mo(He,Se);if(Ye.filters||"filterDropdown"in Ye||"onFilter"in Ye)if("filteredValue"in Ye){let Et=Ye.filteredValue;"filterDropdown"in Ye||(Et=(dt=Et==null?void 0:Et.map(String))!==null&&dt!==void 0?dt:Et),De.push({column:Ye,key:Oo(Ye,pt),filteredKeys:Et,forceFiltered:Ye.filtered})}else De.push({column:Ye,key:Oo(Ye,pt),filteredKeys:H&&Ye.defaultFilteredValue?Ye.defaultFilteredValue:void 0,forceFiltered:Ye.filtered});"children"in Ye&&(De=[].concat((0,en.Z)(De),(0,en.Z)(ds(Ye.children,H,pt))))}),De}function ll(U,H,Se,De,Ye,He,dt,pt){return Se.map((Et,de)=>{const Ze=mo(de,pt),{filterMultiple:Je=!0,filterMode:mt,filterSearch:yt}=Et;let It=Et;if(It.filters||It.filterDropdown){const Kt=Oo(It,Ze),Tt=De.find(pr=>{let{key:sr}=pr;return Kt===sr});It=Object.assign(Object.assign({},It),{title:pr=>B.createElement(kl,{tablePrefixCls:U,prefixCls:`${U}-filter`,dropdownPrefixCls:H,column:It,columnKey:Kt,filterState:Tt,filterMultiple:Je,filterMode:mt,filterSearch:yt,triggerFilter:He,locale:Ye,getPopupContainer:dt},qa(Et.title,pr))})}return"children"in It&&(It=Object.assign(Object.assign({},It),{children:ll(U,H,It.children,De,Ye,He,dt,Ze)})),It})}function Uo(U){const H={};return U.forEach(Se=>{let{key:De,filteredKeys:Ye,column:He}=Se;const{filters:dt,filterDropdown:pt}=He;if(pt)H[De]=Ye||null;else if(Array.isArray(Ye)){const Et=eo(dt);H[De]=Et.filter(de=>Ye.includes(String(de)))}else H[De]=null}),H}function Ms(U,H){return H.reduce((Se,De)=>{const{column:{onFilter:Ye,filters:He},filteredKeys:dt}=De;return Ye&&dt&&dt.length?Se.filter(pt=>dt.some(Et=>{const de=eo(He),Ze=de.findIndex(mt=>String(mt)===String(Et)),Je=Ze!==-1?de[Ze]:Et;return Ye(Je,pt)})):Se},U)}const Lo=U=>U.flatMap(H=>"children"in H?[H].concat((0,en.Z)(Lo(H.children||[]))):[H]);function Un(U){let{prefixCls:H,dropdownPrefixCls:Se,mergedColumns:De,onFilterChange:Ye,getPopupContainer:He,locale:dt}=U;const pt=B.useMemo(()=>Lo(De||[]),[De]),[Et,de]=B.useState(()=>ds(pt,!0)),Ze=B.useMemo(()=>{const It=ds(pt,!1);if(It.length===0)return It;let Kt=!0,Tt=!0;if(It.forEach(pr=>{let{filteredKeys:sr}=pr;sr!==void 0?Kt=!1:Tt=!1}),Kt){const pr=(pt||[]).map((sr,Fr)=>Oo(sr,mo(Fr)));return Et.filter(sr=>{let{key:Fr}=sr;return pr.includes(Fr)}).map(sr=>{const Fr=pt[pr.findIndex(Hr=>Hr===sr.key)];return Object.assign(Object.assign({},sr),{column:Object.assign(Object.assign({},sr.column),Fr),forceFiltered:Fr.filtered})})}return It},[pt,Et]),Je=B.useMemo(()=>Uo(Ze),[Ze]),mt=It=>{const Kt=Ze.filter(Tt=>{let{key:pr}=Tt;return pr!==It.key});Kt.push(It),de(Kt),Ye(Uo(Kt),Kt)};return[It=>ll(H,Se,It,Ze,dt,mt,He),Ze,Je]}var Dl=Un;function Ro(U,H,Se){const De=B.useRef({});function Ye(He){if(!De.current||De.current.data!==U||De.current.childrenColumnName!==H||De.current.getRowKey!==Se){let pt=function(Et){Et.forEach((de,Ze)=>{const Je=Se(de,Ze);dt.set(Je,de),de&&typeof de=="object"&&H in de&&pt(de[H]||[])})};const dt=new Map;pt(U),De.current={data:U,childrenColumnName:H,kvMap:dt,getRowKey:Se}}return De.current.kvMap.get(He)}return[Ye]}var Vl=x(50371),Ks=function(U,H){var Se={};for(var De in U)Object.prototype.hasOwnProperty.call(U,De)&&H.indexOf(De)<0&&(Se[De]=U[De]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,De=Object.getOwnPropertySymbols(U);Ye<De.length;Ye++)H.indexOf(De[Ye])<0&&Object.prototype.propertyIsEnumerable.call(U,De[Ye])&&(Se[De[Ye]]=U[De[Ye]]);return Se};const bs=10;function Ia(U,H){const Se={current:U.current,pageSize:U.pageSize};return Object.keys(H&&typeof H=="object"?H:{}).forEach(Ye=>{const He=U[Ye];typeof He!="function"&&(Se[Ye]=He)}),Se}function Qo(U,H,Se){const De=Se&&typeof Se=="object"?Se:{},{total:Ye=0}=De,He=Ks(De,["total"]),[dt,pt]=(0,B.useState)(()=>({current:"defaultCurrent"in He?He.defaultCurrent:1,pageSize:"defaultPageSize"in He?He.defaultPageSize:bs})),Et=(0,Vl.Z)(dt,He,{total:Ye>0?Ye:U}),de=Math.ceil((Ye||U)/Et.pageSize);Et.current>de&&(Et.current=de||1);const Ze=(mt,yt)=>{pt({current:mt!=null?mt:1,pageSize:yt||Et.pageSize})},Je=(mt,yt)=>{var It;Se&&((It=Se.onChange)===null||It===void 0||It.call(Se,mt,yt)),Ze(mt,yt),H(mt,yt||(Et==null?void 0:Et.pageSize))};return Se===!1?[{},()=>{}]:[Object.assign(Object.assign({},Et),{onChange:Je}),Ze]}var Wl=Qo,ac=x(84105),cl=x(35654),fa=x(90782),ia=x(71430),vo=x(18929);const Va={},ao="SELECT_ALL",Ko="SELECT_INVERT",to="SELECT_NONE",Jo=[],Ls=(U,H)=>{let Se=[];return(H||[]).forEach(De=>{Se.push(De),De&&typeof De=="object"&&U in De&&(Se=[].concat((0,en.Z)(Se),(0,en.Z)(Ls(U,De[U]))))}),Se};var Vs=(U,H)=>{const{preserveSelectedRowKeys:Se,selectedRowKeys:De,defaultSelectedRowKeys:Ye,getCheckboxProps:He,onChange:dt,onSelect:pt,onSelectAll:Et,onSelectInvert:de,onSelectNone:Ze,onSelectMultiple:Je,columnWidth:mt,type:yt,selections:It,fixed:Kt,renderCell:Tt,hideSelectAll:pr,checkStrictly:sr=!0}=H||{},{prefixCls:Fr,data:Hr,pageData:hn,getRecordByKey:tr,getRowKey:St,expandType:On,childrenColumnName:zr,locale:wr,getPopupContainer:Ir}=U,[xr,kr]=(0,vo.Z)(De||Ye||Jo,{value:De}),fn=B.useRef(new Map),zn=(0,B.useCallback)(Vn=>{if(Se){const Gn=new Map;Vn.forEach(bi=>{let vi=tr(bi);!vi&&fn.current.has(bi)&&(vi=fn.current.get(bi)),Gn.set(bi,vi)}),fn.current=Gn}},[tr,Se]);B.useEffect(()=>{zn(xr)},[xr]);const{keyEntities:Rn}=(0,B.useMemo)(()=>{if(sr)return{keyEntities:null};let Vn=Hr;if(Se){const Gn=new Set(Hr.map((vi,Zi)=>St(vi,Zi))),bi=Array.from(fn.current).reduce((vi,Zi)=>{let[gn,Xn]=Zi;return Gn.has(gn)?vi:vi.concat(Xn)},[]);Vn=[].concat((0,en.Z)(Vn),(0,en.Z)(bi))}return(0,ia.I8)(Vn,{externalGetKey:St,childrenPropName:zr})},[Hr,St,sr,zr,Se]),Bn=(0,B.useMemo)(()=>Ls(zr,hn),[zr,hn]),ii=(0,B.useMemo)(()=>{const Vn=new Map;return Bn.forEach((Gn,bi)=>{const vi=St(Gn,bi),Zi=(He?He(Gn):null)||{};Vn.set(vi,Zi)}),Vn},[Bn,St,He]),Ei=(0,B.useCallback)(Vn=>{var Gn;return!!(!((Gn=ii.get(St(Vn)))===null||Gn===void 0)&&Gn.disabled)},[ii,St]),[gi,xi]=(0,B.useMemo)(()=>{if(sr)return[xr||[],[]];const{checkedKeys:Vn,halfCheckedKeys:Gn}=(0,fa.S)(xr,!0,Rn,Ei);return[Vn||[],Gn]},[xr,sr,Rn,Ei]),kn=(0,B.useMemo)(()=>{const Vn=yt==="radio"?gi.slice(0,1):gi;return new Set(Vn)},[gi,yt]),ha=(0,B.useMemo)(()=>yt==="radio"?new Set:new Set(xi),[xi,yt]),[ei,uo]=(0,B.useState)(null);B.useEffect(()=>{H||kr(Jo)},[!!H]);const Ti=(0,B.useCallback)((Vn,Gn)=>{let bi,vi;zn(Vn),Se?(bi=Vn,vi=Vn.map(Zi=>fn.current.get(Zi))):(bi=[],vi=[],Vn.forEach(Zi=>{const gn=tr(Zi);gn!==void 0&&(bi.push(Zi),vi.push(gn))})),kr(bi),dt==null||dt(bi,vi,{type:Gn})},[kr,tr,dt,Se]),na=(0,B.useCallback)((Vn,Gn,bi,vi)=>{if(pt){const Zi=bi.map(gn=>tr(gn));pt(tr(Vn),Gn,Zi,vi)}Ti(bi,"single")},[pt,tr,Ti]),Ta=(0,B.useMemo)(()=>!It||pr?null:(It===!0?[ao,Ko,to]:It).map(Gn=>Gn===ao?{key:"all",text:wr.selectionAll,onSelect(){Ti(Hr.map((bi,vi)=>St(bi,vi)).filter(bi=>{const vi=ii.get(bi);return!(vi!=null&&vi.disabled)||kn.has(bi)}),"all")}}:Gn===Ko?{key:"invert",text:wr.selectInvert,onSelect(){const bi=new Set(kn);hn.forEach((Zi,gn)=>{const Xn=St(Zi,gn),aa=ii.get(Xn);aa!=null&&aa.disabled||(bi.has(Xn)?bi.delete(Xn):bi.add(Xn))});const vi=Array.from(bi);de&&de(vi),Ti(vi,"invert")}}:Gn===to?{key:"none",text:wr.selectNone,onSelect(){Ze==null||Ze(),Ti(Array.from(kn).filter(bi=>{const vi=ii.get(bi);return vi==null?void 0:vi.disabled}),"none")}}:Gn).map(Gn=>Object.assign(Object.assign({},Gn),{onSelect:function(){for(var bi,vi,Zi=arguments.length,gn=new Array(Zi),Xn=0;Xn<Zi;Xn++)gn[Xn]=arguments[Xn];(vi=Gn.onSelect)===null||vi===void 0||(bi=vi).call.apply(bi,[Gn].concat(gn)),uo(null)}})),[It,kn,hn,St,de,Ti]);return[(0,B.useCallback)(Vn=>{var Gn;if(!H)return Vn.filter(Yi=>Yi!==Va);let bi=(0,en.Z)(Vn);const vi=new Set(kn),Zi=Bn.map(St).filter(Yi=>!ii.get(Yi).disabled),gn=Zi.every(Yi=>vi.has(Yi)),Xn=Zi.some(Yi=>vi.has(Yi)),aa=()=>{const Yi=[];gn?Zi.forEach(ga=>{vi.delete(ga),Yi.push(ga)}):Zi.forEach(ga=>{vi.has(ga)||(vi.add(ga),Yi.push(ga))});const on=Array.from(vi);Et==null||Et(!gn,on.map(ga=>tr(ga)),Yi.map(ga=>tr(ga))),Ti(on,"all"),uo(null)};let ji;if(yt!=="radio"){let Yi;if(Ta){const Li={getPopupContainer:Ir,items:Ta.map((Po,No)=>{const{key:os,text:fs,onSelect:ss}=Po;return{key:os!=null?os:No,onClick:()=>{ss==null||ss(Zi)},label:fs}})};Yi=B.createElement("div",{className:`${Fr}-selection-extra`},B.createElement(Qs.Z,{menu:Li,getPopupContainer:Ir},B.createElement("span",null,B.createElement(ac.Z,null))))}const on=Bn.map((Li,Po)=>{const No=St(Li,Po),os=ii.get(No)||{};return Object.assign({checked:vi.has(No)},os)}).filter(Li=>{let{disabled:Po}=Li;return Po}),ga=!!on.length&&on.length===Bn.length,ho=ga&&on.every(Li=>{let{checked:Po}=Li;return Po}),Wa=ga&&on.some(Li=>{let{checked:Po}=Li;return Po});ji=!pr&&B.createElement("div",{className:`${Fr}-selection`},B.createElement(Sa.default,{checked:ga?ho:!!Bn.length&&gn,indeterminate:ga?!ho&&Wa:!gn&&Xn,onChange:aa,disabled:Bn.length===0||ga,"aria-label":Yi?"Custom selection":"Select all",skipGroup:!0}),Yi)}let ko;yt==="radio"?ko=(Yi,on,ga)=>{const ho=St(on,ga),Wa=vi.has(ho);return{node:B.createElement(Wi.ZP,Object.assign({},ii.get(ho),{checked:Wa,onClick:Li=>Li.stopPropagation(),onChange:Li=>{vi.has(ho)||na(ho,!0,[ho],Li.nativeEvent)}})),checked:Wa}}:ko=(Yi,on,ga)=>{var ho;const Wa=St(on,ga),Li=vi.has(Wa),Po=ha.has(Wa),No=ii.get(Wa);let os;return On==="nest"?os=Po:os=(ho=No==null?void 0:No.indeterminate)!==null&&ho!==void 0?ho:Po,{node:B.createElement(Sa.default,Object.assign({},No,{indeterminate:os,checked:Li,skipGroup:!0,onClick:fs=>fs.stopPropagation(),onChange:fs=>{let{nativeEvent:ss}=fs;const{shiftKey:hs}=ss;let Bl=-1,qo=-1;if(hs&&sr){const Ds=new Set([ei,Wa]);Zi.some((ps,jo)=>{if(Ds.has(ps))if(Bl===-1)Bl=jo;else return qo=jo,!0;return!1})}if(qo!==-1&&Bl!==qo&&sr){const Ds=Zi.slice(Bl,qo+1),ps=[];Li?Ds.forEach(wo=>{vi.has(wo)&&(ps.push(wo),vi.delete(wo))}):Ds.forEach(wo=>{vi.has(wo)||(ps.push(wo),vi.add(wo))});const jo=Array.from(vi);Je==null||Je(!Li,jo.map(wo=>tr(wo)),ps.map(wo=>tr(wo))),Ti(jo,"multiple")}else{const Ds=gi;if(sr){const ps=Li?(0,cl._5)(Ds,Wa):(0,cl.L0)(Ds,Wa);na(Wa,!Li,ps,ss)}else{const ps=(0,fa.S)([].concat((0,en.Z)(Ds),[Wa]),!0,Rn,Ei),{checkedKeys:jo,halfCheckedKeys:wo}=ps;let Hs=jo;if(Li){const oc=new Set(jo);oc.delete(Wa),Hs=(0,fa.S)(Array.from(oc),{checked:!1,halfCheckedKeys:wo},Rn,Ei).checkedKeys}na(Wa,!Li,Hs,ss)}}uo(Li?null:Wa)}})),checked:Li}};const Do=(Yi,on,ga)=>{const{node:ho,checked:Wa}=ko(Yi,on,ga);return Tt?Tt(Wa,on,ga,ho):ho};if(!bi.includes(Va))if(bi.findIndex(Yi=>{var on;return((on=Yi[rr])===null||on===void 0?void 0:on.columnType)==="EXPAND_COLUMN"})===0){const[Yi,...on]=bi;bi=[Yi,Va].concat((0,en.Z)(on))}else bi=[Va].concat((0,en.Z)(bi));const Ki=bi.indexOf(Va);bi=bi.filter((Yi,on)=>Yi!==Va||on===Ki);const ro=bi[Ki-1],as=bi[Ki+1];let Cn=Kt;Cn===void 0&&((as==null?void 0:as.fixed)!==void 0?Cn=as.fixed:(ro==null?void 0:ro.fixed)!==void 0&&(Cn=ro.fixed)),Cn&&ro&&((Gn=ro[rr])===null||Gn===void 0?void 0:Gn.columnType)==="EXPAND_COLUMN"&&ro.fixed===void 0&&(ro.fixed=Cn);const fo=k()(`${Fr}-selection-col`,{[`${Fr}-selection-col-with-dropdown`]:It&&yt==="checkbox"}),Ho={fixed:Cn,width:mt,className:`${Fr}-selection-column`,title:H.columnTitle||ji,render:Do,onCell:H.onCell,[rr]:{className:fo}};return bi.map(Yi=>Yi===Va?Ho:Yi)},[St,Bn,H,gi,kn,ha,mt,Ta,On,ei,ii,Je,na,Ei]),kn]},tl=x(89489),Hc=x(59477),Pl=x(6848);const Ws="ascend",tA="descend";function rA(U){return typeof U.sorter=="object"&&typeof U.sorter.multiple=="number"?U.sorter.multiple:!1}function fc(U){return typeof U=="function"?U:U&&typeof U=="object"&&U.compare?U.compare:!1}function yA(U,H){return H?U[U.indexOf(H)+1]:U[0]}function Nl(U,H,Se){let De=[];function Ye(He,dt){De.push({column:He,key:Oo(He,dt),multiplePriority:rA(He),sortOrder:He.sortOrder})}return(U||[]).forEach((He,dt)=>{const pt=mo(dt,Se);He.children?("sortOrder"in He&&Ye(He,pt),De=[].concat((0,en.Z)(De),(0,en.Z)(Nl(He.children,H,pt)))):He.sorter&&("sortOrder"in He?Ye(He,pt):H&&He.defaultSortOrder&&De.push({column:He,key:Oo(He,pt),multiplePriority:rA(He),sortOrder:He.defaultSortOrder}))}),De}function Gs(U,H,Se,De,Ye,He,dt,pt){return(H||[]).map((Et,de)=>{const Ze=mo(de,pt);let Je=Et;if(Je.sorter){const mt=Je.sortDirections||Ye,yt=Je.showSorterTooltip===void 0?dt:Je.showSorterTooltip,It=Oo(Je,Ze),Kt=Se.find(On=>{let{key:zr}=On;return zr===It}),Tt=Kt?Kt.sortOrder:null,pr=yA(mt,Tt);let sr;if(Et.sortIcon)sr=Et.sortIcon({sortOrder:Tt});else{const On=mt.includes(Ws)&&B.createElement(Hc.Z,{className:k()(`${U}-column-sorter-up`,{active:Tt===Ws})}),zr=mt.includes(tA)&&B.createElement(tl.Z,{className:k()(`${U}-column-sorter-down`,{active:Tt===tA})});sr=B.createElement("span",{className:k()(`${U}-column-sorter`,{[`${U}-column-sorter-full`]:!!(On&&zr)})},B.createElement("span",{className:`${U}-column-sorter-inner`,"aria-hidden":"true"},On,zr))}const{cancelSort:Fr,triggerAsc:Hr,triggerDesc:hn}=He||{};let tr=Fr;pr===tA?tr=hn:pr===Ws&&(tr=Hr);const St=typeof yt=="object"?yt:{title:tr};Je=Object.assign(Object.assign({},Je),{className:k()(Je.className,{[`${U}-column-sort`]:Tt}),title:On=>{const zr=B.createElement("div",{className:`${U}-column-sorters`},B.createElement("span",{className:`${U}-column-title`},qa(Et.title,On)),sr);return yt?B.createElement(Pl.Z,Object.assign({},St),zr):zr},onHeaderCell:On=>{const zr=Et.onHeaderCell&&Et.onHeaderCell(On)||{},wr=zr.onClick,Ir=zr.onKeyDown;zr.onClick=fn=>{De({column:Et,key:It,sortOrder:pr,multiplePriority:rA(Et)}),wr==null||wr(fn)},zr.onKeyDown=fn=>{fn.keyCode===Za.Z.ENTER&&(De({column:Et,key:It,sortOrder:pr,multiplePriority:rA(Et)}),Ir==null||Ir(fn))};const xr=Ni(Et.title,{}),kr=xr==null?void 0:xr.toString();return Tt?zr["aria-sort"]=Tt==="ascend"?"ascending":"descending":zr["aria-label"]=kr||"",zr.className=k()(zr.className,`${U}-column-has-sorters`),zr.tabIndex=0,Et.ellipsis&&(zr.title=(xr!=null?xr:"").toString()),zr}})}return"children"in Je&&(Je=Object.assign(Object.assign({},Je),{children:Gs(U,Je.children,Se,De,Ye,He,dt,Ze)})),Je})}function rl(U){const{column:H,sortOrder:Se}=U;return{column:H,order:Se,field:H.dataIndex,columnKey:H.key}}function nl(U){const H=U.filter(Se=>{let{sortOrder:De}=Se;return De}).map(rl);return H.length===0&&U.length?Object.assign(Object.assign({},rl(U[U.length-1])),{column:void 0}):H.length<=1?H[0]||{}:H}function Pa(U,H,Se){const De=H.slice().sort((dt,pt)=>pt.multiplePriority-dt.multiplePriority),Ye=U.slice(),He=De.filter(dt=>{let{column:{sorter:pt},sortOrder:Et}=dt;return fc(pt)&&Et});return He.length?Ye.sort((dt,pt)=>{for(let Et=0;Et<He.length;Et+=1){const de=He[Et],{column:{sorter:Ze},sortOrder:Je}=de,mt=fc(Ze);if(mt&&Je){const yt=mt(dt,pt,Je);if(yt!==0)return Je===Ws?yt:-yt}}return 0}).map(dt=>{const pt=dt[Se];return pt?Object.assign(Object.assign({},dt),{[Se]:Pa(pt,H,Se)}):dt}):Ye}function yo(U){let{prefixCls:H,mergedColumns:Se,onSorterChange:De,sortDirections:Ye,tableLocale:He,showSorterTooltip:dt}=U;const[pt,Et]=B.useState(Nl(Se,!0)),de=B.useMemo(()=>{let It=!0;const Kt=Nl(Se,!1);if(!Kt.length)return pt;const Tt=[];function pr(Fr){It?Tt.push(Fr):Tt.push(Object.assign(Object.assign({},Fr),{sortOrder:null}))}let sr=null;return Kt.forEach(Fr=>{sr===null?(pr(Fr),Fr.sortOrder&&(Fr.multiplePriority===!1?It=!1:sr=!0)):(sr&&Fr.multiplePriority!==!1||(It=!1),pr(Fr))}),Tt},[Se,pt]),Ze=B.useMemo(()=>{const It=de.map(Kt=>{let{column:Tt,sortOrder:pr}=Kt;return{column:Tt,order:pr}});return{sortColumns:It,sortColumn:It[0]&&It[0].column,sortOrder:It[0]&&It[0].order}},[de]);function Je(It){let Kt;It.multiplePriority===!1||!de.length||de[0].multiplePriority===!1?Kt=[It]:Kt=[].concat((0,en.Z)(de.filter(Tt=>{let{key:pr}=Tt;return pr!==It.key})),[It]),Et(Kt),De(nl(Kt),Kt)}return[It=>Gs(H,It,de,Je,Ye,He,dt),de,Ze,()=>nl(de)]}function bo(U,H){return U.map(Se=>{const De=Object.assign({},Se);return De.title=qa(Se.title,H),"children"in De&&(De.children=bo(De.children,H)),De})}function Yo(U){return[B.useCallback(Se=>bo(Se,U),[U])]}var ks=ki((U,H)=>{const{_renderTimes:Se}=U,{_renderTimes:De}=H;return Se!==De}),Mc=Fi((U,H)=>{const{_renderTimes:Se}=U,{_renderTimes:De}=H;return Se!==De}),Cl=x(64993),jc=x(17313),bA=x(83116),wA=x(37613),pc=U=>{const{componentCls:H}=U,Se=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,De=(Ye,He,dt)=>({[`&${H}-${Ye}`]:{[`> ${H}-container`]:{[`> ${H}-content, > ${H}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${H}-expanded-row-fixed`]:{margin:`-${He}px -${dt+U.lineWidth}px`}}}}}});return{[`${H}-wrapper`]:{[`${H}${H}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${H}-title`]:{border:Se,borderBottom:0},[`> ${H}-container`]:{borderInlineStart:Se,borderTop:Se,[`
> ${H}-content,
> ${H}-header,
> ${H}-body,
> ${H}-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:Se},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Se},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${H}-cell-fix-right-first::after`]:{borderInlineEnd:Se}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${H}-expanded-row-fixed`]:{margin:`-${U.tablePaddingVertical}px -${U.tablePaddingHorizontal+U.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:U.lineWidth,bottom:0,borderInlineEnd:Se,content:'""'}}}}}},[`&${H}-scroll-horizontal`]:{[`> ${H}-container > ${H}-body`]:{"> table > tbody":{[`
> tr${H}-expanded-row,
> tr${H}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},De("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle)),De("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall)),{[`> ${H}-footer`]:{border:Se,borderTop:0}}),[`${H}-cell`]:{[`${H}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${U.lineWidth}px 0 ${U.lineWidth}px ${U.tableHeaderBg}`}},[`${H}-bordered ${H}-cell-scrollbar`]:{borderInlineEnd:Se}}}},KA=U=>{const{componentCls:H}=U;return{[`${H}-wrapper`]:{[`${H}-cell-ellipsis`]:Object.assign(Object.assign({},jc.vS),{wordBreak:"keep-all",[`
&${H}-cell-fix-left-last,
&${H}-cell-fix-right-first
`]:{overflow:"visible",[`${H}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${H}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},od=U=>{const{componentCls:H}=U;return{[`${H}-wrapper`]:{[`${H}-tbody > tr${H}-placeholder`]:{textAlign:"center",color:U.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:U.colorBgContainer}}}}},ou=x(15969),Pu=U=>{const{componentCls:H,antCls:Se,controlInteractiveSize:De,motionDurationSlow:Ye,lineWidth:He,paddingXS:dt,lineType:pt,tableBorderColor:Et,tableExpandIconBg:de,tableExpandColumnWidth:Ze,borderRadius:Je,fontSize:mt,fontSizeSM:yt,lineHeight:It,tablePaddingVertical:Kt,tablePaddingHorizontal:Tt,tableExpandedRowBg:pr,paddingXXS:sr}=U,Fr=De/2-He,Hr=Fr*2+He*3,hn=`${He}px ${pt} ${Et}`,tr=sr-He;return{[`${H}-wrapper`]:{[`${H}-expand-icon-col`]:{width:Ze},[`${H}-row-expand-icon-cell`]:{textAlign:"center",[`${H}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${H}-row-indent`]:{height:1,float:"left"},[`${H}-row-expand-icon`]:Object.assign(Object.assign({},(0,ou.N)(U)),{position:"relative",float:"left",boxSizing:"border-box",width:Hr,height:Hr,padding:0,color:"inherit",lineHeight:`${Hr}px`,background:de,border:hn,borderRadius:Je,transform:`scale(${De/Hr})`,transition:`all ${Ye}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ye} ease-out`,content:'""'},"&::before":{top:Fr,insetInlineEnd:tr,insetInlineStart:tr,height:He},"&::after":{top:tr,bottom:tr,insetInlineStart:Fr,width:He,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"}}),[`${H}-row-indent + ${H}-row-expand-icon`]:{marginTop:(mt*It-He*3)/2-Math.ceil((yt*1.4-He*3)/2),marginInlineEnd:dt},[`tr${H}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:pr}},[`${Se}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${H}-expanded-row-fixed`]:{position:"relative",margin:`-${Kt}px -${Tt}px`,padding:`${Kt}px ${Tt}px`}}}},sd=U=>{const{componentCls:H,antCls:Se,iconCls:De,tableFilterDropdownWidth:Ye,tableFilterDropdownSearchWidth:He,paddingXXS:dt,paddingXS:pt,colorText:Et,lineWidth:de,lineType:Ze,tableBorderColor:Je,tableHeaderIconColor:mt,fontSizeSM:yt,tablePaddingHorizontal:It,borderRadius:Kt,motionDurationSlow:Tt,colorTextDescription:pr,colorPrimary:sr,tableHeaderFilterActiveBg:Fr,colorTextDisabled:Hr,tableFilterDropdownBg:hn,tableFilterDropdownHeight:tr,controlItemBgHover:St,controlItemBgActive:On,boxShadowSecondary:zr,filterDropdownMenuBg:wr}=U,Ir=`${Se}-dropdown`,xr=`${H}-filter-dropdown`,kr=`${Se}-tree`,fn=`${de}px ${Ze} ${Je}`;return[{[`${H}-wrapper`]:{[`${H}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${H}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-dt,marginInline:`${dt}px ${-It/2}px`,padding:`0 ${dt}px`,color:mt,fontSize:yt,borderRadius:Kt,cursor:"pointer",transition:`all ${Tt}`,"&:hover":{color:pr,background:Fr},"&.active":{color:sr}}}},{[`${Se}-dropdown`]:{[xr]:Object.assign(Object.assign({},(0,jc.Wf)(U)),{minWidth:Ye,backgroundColor:hn,borderRadius:Kt,boxShadow:zr,overflow:"hidden",[`${Ir}-menu`]:{maxHeight:tr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:wr,"&:empty::after":{display:"block",padding:`${pt}px 0`,color:Hr,fontSize:yt,textAlign:"center",content:'"Not Found"'}},[`${xr}-tree`]:{paddingBlock:`${pt}px 0`,paddingInline:pt,[kr]:{padding:0},[`${kr}-treenode ${kr}-node-content-wrapper:hover`]:{backgroundColor:St},[`${kr}-treenode-checkbox-checked ${kr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:On}}},[`${xr}-search`]:{padding:pt,borderBottom:fn,"&-input":{input:{minWidth:He},[De]:{color:Hr}}},[`${xr}-checkall`]:{width:"100%",marginBottom:dt,marginInlineStart:dt},[`${xr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${pt-de}px ${pt}px`,overflow:"hidden",borderTop:fn}})}},{[`${Se}-dropdown ${xr}, ${xr}-submenu`]:{[`${Se}-checkbox-wrapper + span`]:{paddingInlineStart:pt,color:Et},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},a=U=>{const{componentCls:H,lineWidth:Se,colorSplit:De,motionDurationSlow:Ye,zIndexTableFixed:He,tableBg:dt,zIndexTableSticky:pt}=U,Et=De;return{[`${H}-wrapper`]:{[`
${H}-cell-fix-left,
${H}-cell-fix-right
`]:{position:"sticky !important",zIndex:He,background:dt},[`
${H}-cell-fix-left-first::after,
${H}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Se,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ye}`,content:'""',pointerEvents:"none"},[`${H}-cell-fix-left-all::after`]:{display:"none"},[`
${H}-cell-fix-right-first::after,
${H}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Se,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ye}`,content:'""',pointerEvents:"none"},[`${H}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:pt+1,width:30,transition:`box-shadow ${Ye}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${H}-ping-left`]:{[`&:not(${H}-has-fix-left) ${H}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Et}`}},[`
${H}-cell-fix-left-first::after,
${H}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Et}`},[`${H}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${H}-ping-right`]:{[`&:not(${H}-has-fix-right) ${H}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Et}`}},[`
${H}-cell-fix-right-first::after,
${H}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Et}`}}}}},v=U=>{const{componentCls:H,antCls:Se}=U;return{[`${H}-wrapper`]:{[`${H}-pagination${Se}-pagination`]:{margin:`${U.margin}px 0`},[`${H}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:U.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},C=U=>{const{componentCls:H,tableRadius:Se}=U;return{[`${H}-wrapper`]:{[H]:{[`${H}-title, ${H}-header`]:{borderRadius:`${Se}px ${Se}px 0 0`},[`${H}-title + ${H}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${H}-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:Se,borderStartEndRadius:Se,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Se},"> *:last-child":{borderStartEndRadius:Se}}},"&-footer":{borderRadius:`0 0 ${Se}px ${Se}px`}}}}},V=U=>{const{componentCls:H}=U;return{[`${H}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${H}-pagination-left`]:{justifyContent:"flex-end"},[`${H}-pagination-right`]:{justifyContent:"flex-start"},[`${H}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${H}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${H}-row-indent`]:{float:"right"}}}}},_e=U=>{const{componentCls:H,antCls:Se,iconCls:De,fontSizeIcon:Ye,padding:He,paddingXS:dt,tableHeaderIconColor:pt,tableHeaderIconColorHover:Et,tableSelectionColumnWidth:de}=U;return{[`${H}-wrapper`]:{[`${H}-selection-col`]:{width:de,[`&${H}-selection-col-with-dropdown`]:{width:de+Ye+He/4}},[`${H}-bordered ${H}-selection-col`]:{width:de+dt*2,[`&${H}-selection-col-with-dropdown`]:{width:de+Ye+He/4+dt*2}},[`
table tr th${H}-selection-column,
table tr td${H}-selection-column
`]:{paddingInlineEnd:U.paddingXS,paddingInlineStart:U.paddingXS,textAlign:"center",[`${Se}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${H}-selection-column${H}-cell-fix-left`]:{zIndex:U.zIndexTableFixed+1},[`table tr th${H}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${H}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${H}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${U.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${U.tablePaddingHorizontal/4}px`,[De]:{color:pt,fontSize:Ye,verticalAlign:"baseline","&:hover":{color:Et}}}}}},Ve=U=>{const{componentCls:H}=U,Se=(De,Ye,He,dt)=>({[`${H}${H}-${De}`]:{fontSize:dt,[`
${H}-title,
${H}-footer,
${H}-cell,
${H}-thead > tr > th,
${H}-tbody > tr > th,
${H}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ye}px ${He}px`},[`${H}-filter-trigger`]:{marginInlineEnd:`-${He/2}px`},[`${H}-expanded-row-fixed`]:{margin:`-${Ye}px -${He}px`},[`${H}-tbody`]:{[`${H}-wrapper:only-child ${H}`]:{marginBlock:`-${Ye}px`,marginInline:`${U.tableExpandColumnWidth-He}px -${He}px`}},[`${H}-selection-column`]:{paddingInlineStart:`${He/4}px`}}});return{[`${H}-wrapper`]:Object.assign(Object.assign({},Se("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle,U.tableFontSizeMiddle)),Se("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall,U.tableFontSizeSmall))}},we=U=>{const{componentCls:H,marginXXS:Se,fontSizeIcon:De,tableHeaderIconColor:Ye,tableHeaderIconColorHover:He}=U;return{[`${H}-wrapper`]:{[`${H}-thead th${H}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${U.motionDurationSlow}`,"&:hover":{background:U.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:U.colorPrimary},[`
&${H}-cell-fix-left:hover,
&${H}-cell-fix-right:hover
`]:{background:U.tableFixedHeaderSortActiveBg}},[`${H}-thead th${H}-column-sort`]:{background:U.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${H}-column-sort`]:{background:U.tableBodySortBg},[`${H}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${H}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${H}-column-sorter`]:{marginInlineStart:Se,color:Ye,fontSize:0,transition:`color ${U.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:De,"&.active":{color:U.colorPrimary}},[`${H}-column-sorter-up + ${H}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${H}-column-sorters:hover ${H}-column-sorter`]:{color:He}}}},wt=U=>{const{componentCls:H,opacityLoading:Se,tableScrollThumbBg:De,tableScrollThumbBgHover:Ye,tableScrollThumbSize:He,tableScrollBg:dt,zIndexTableSticky:pt,stickyScrollBarBorderRadius:Et}=U,de=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`;return{[`${H}-wrapper`]:{[`${H}-sticky`]:{"&-holder":{position:"sticky",zIndex:pt,background:U.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${He}px !important`,zIndex:pt,display:"flex",alignItems:"center",background:dt,borderTop:de,opacity:Se,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:He,backgroundColor:De,borderRadius:Et,transition:`all ${U.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ye}}}}}}},ht=U=>{const{componentCls:H,lineWidth:Se,tableBorderColor:De}=U,Ye=`${Se}px ${U.lineType} ${De}`;return{[`${H}-wrapper`]:{[`${H}-summary`]:{position:"relative",zIndex:U.zIndexTableFixed,background:U.tableBg,"> tr":{"> th, > td":{borderBottom:Ye}}},[`div${H}-summary`]:{boxShadow:`0 -${Se}px 0 ${De}`}}}},ar=U=>{const{componentCls:H}=U,Se=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,De=`${H}-expanded-row-cell`;return{[`${H}-wrapper`]:{[`${H}-tbody-virtual`]:{[`${H}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${H}-cell`]:{borderBottom:Se},[`${H}-expanded-row`]:{[`${De}${De}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${U.lineWidth}px)`,borderInlineEnd:"none"}}},[`${H}-bordered`]:{[`${H}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Se,position:"absolute"},[`${H}-cell`]:{borderInlineEnd:Se,[`&${H}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-U.lineWidth,borderInlineStart:Se}}}}}}};const gr=U=>{const{componentCls:H,fontWeightStrong:Se,tablePaddingVertical:De,tablePaddingHorizontal:Ye,lineWidth:He,lineType:dt,tableBorderColor:pt,tableFontSize:Et,tableBg:de,tableRadius:Ze,tableHeaderTextColor:Je,motionDurationMid:mt,tableHeaderBg:yt,tableHeaderCellSplitColor:It,tableRowHoverBg:Kt,tableSelectedRowBg:Tt,tableSelectedRowHoverBg:pr,tableFooterTextColor:sr,tableFooterBg:Fr,paddingContentVerticalLG:Hr}=U,hn=`${He}px ${dt} ${pt}`;return{[`${H}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,jc.dF)()),{[H]:Object.assign(Object.assign({},(0,jc.Wf)(U)),{fontSize:Et,background:de,borderRadius:`${Ze}px ${Ze}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ze}px ${Ze}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${H}-cell,
${H}-thead > tr > th,
${H}-tbody > tr > th,
${H}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Hr}px ${Ye}px`,overflowWrap:"break-word"},[`${H}-title`]:{padding:`${De}px ${Ye}px`},[`${H}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Je,fontWeight:Se,textAlign:"start",background:yt,borderBottom:hn,transition:`background ${mt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${H}-selection-column):not(${H}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:It,transform:"translateY(-50%)",transition:`background-color ${mt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${H}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${mt}, border-color ${mt}`,borderBottom:hn,[`
> ${H}-wrapper:only-child,
> ${H}-expanded-row-fixed > ${H}-wrapper:only-child
`]:{[H]:{marginBlock:`-${De}px`,marginInline:`${U.tableExpandColumnWidth-Ye}px -${Ye}px`,[`${H}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Je,fontWeight:Se,textAlign:"start",background:yt,borderBottom:hn,transition:`background ${mt} ease`},[`
&${H}-row:hover > th,
&${H}-row:hover > td,
> th${H}-cell-row-hover,
> td${H}-cell-row-hover
`]:{background:Kt},[`&${H}-row-selected`]:{"> th, > td":{background:Tt},"&:hover > th, &:hover > td":{background:pr}}}},[`${H}-footer`]:{padding:`${De}px ${Ye}px`,color:sr,background:Fr}})}};var Kr=(0,bA.Z)("Table",U=>{const{colorTextHeading:H,colorSplit:Se,colorIcon:De,colorIconHover:Ye,opacityLoading:He,colorBgContainer:dt,controlInteractiveSize:pt,headerBg:Et,headerColor:de,headerSortActiveBg:Ze,headerSortHoverBg:Je,bodySortBg:mt,rowHoverBg:yt,rowSelectedBg:It,rowSelectedHoverBg:Kt,rowExpandedBg:Tt,cellPaddingBlock:pr,cellPaddingInline:sr,cellPaddingBlockMD:Fr,cellPaddingInlineMD:Hr,cellPaddingBlockSM:hn,cellPaddingInlineSM:tr,borderColor:St,footerBg:On,footerColor:zr,headerBorderRadius:wr,cellFontSize:Ir,cellFontSizeMD:xr,cellFontSizeSM:kr,headerSplitColor:fn,fixedHeaderSortActiveBg:zn,headerFilterHoverBg:Rn,filterDropdownBg:Bn,expandIconBg:ii,selectionColumnWidth:Ei,stickyScrollBarBg:gi}=U,xi=new Cl.C(De),kn=new Cl.C(Ye),ha=2,ei=(0,wA.TS)(U,{tableFontSize:Ir,tableBg:dt,tableRadius:wr,tablePaddingVertical:pr,tablePaddingHorizontal:sr,tablePaddingVerticalMiddle:Fr,tablePaddingHorizontalMiddle:Hr,tablePaddingVerticalSmall:hn,tablePaddingHorizontalSmall:tr,tableBorderColor:St,tableHeaderTextColor:de,tableHeaderBg:Et,tableFooterTextColor:zr,tableFooterBg:On,tableHeaderCellSplitColor:fn,tableHeaderSortBg:Ze,tableHeaderSortHoverBg:Je,tableHeaderIconColor:xi.clone().setAlpha(xi.getAlpha()*He).toRgbString(),tableHeaderIconColorHover:kn.clone().setAlpha(kn.getAlpha()*He).toRgbString(),tableBodySortBg:mt,tableFixedHeaderSortActiveBg:zn,tableHeaderFilterActiveBg:Rn,tableFilterDropdownBg:Bn,tableRowHoverBg:yt,tableSelectedRowBg:It,tableSelectedRowHoverBg:Kt,zIndexTableFixed:ha,zIndexTableSticky:ha+1,tableFontSizeMiddle:xr,tableFontSizeSmall:kr,tableSelectionColumnWidth:Ei,tableExpandIconBg:ii,tableExpandColumnWidth:pt+2*U.padding,tableExpandedRowBg:Tt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:gi,tableScrollThumbBgHover:H,tableScrollBg:Se});return[gr(ei),v(ei),ht(ei),we(ei),sd(ei),pc(ei),C(ei),Pu(ei),ht(ei),od(ei),_e(ei),a(ei),wt(ei),KA(ei),Ve(ei),V(ei),ar(ei)]},U=>{const{colorFillAlter:H,colorBgContainer:Se,colorTextHeading:De,colorFillSecondary:Ye,colorFillContent:He,controlItemBgActive:dt,controlItemBgActiveHover:pt,padding:Et,paddingSM:de,paddingXS:Ze,colorBorderSecondary:Je,borderRadiusLG:mt,fontSize:yt,controlHeight:It,colorTextPlaceholder:Kt}=U,Tt=new Cl.C(Ye).onBackground(Se).toHexShortString(),pr=new Cl.C(He).onBackground(Se).toHexShortString(),sr=new Cl.C(H).onBackground(Se).toHexShortString();return{headerBg:sr,headerColor:De,headerSortActiveBg:Tt,headerSortHoverBg:pr,bodySortBg:sr,rowHoverBg:sr,rowSelectedBg:dt,rowSelectedHoverBg:pt,rowExpandedBg:H,cellPaddingBlock:Et,cellPaddingInline:Et,cellPaddingBlockMD:de,cellPaddingInlineMD:Ze,cellPaddingBlockSM:Ze,cellPaddingInlineSM:Ze,borderColor:Je,headerBorderRadius:mt,footerBg:sr,footerColor:De,cellFontSize:yt,cellFontSizeMD:yt,cellFontSizeSM:yt,headerSplitColor:Je,fixedHeaderSortActiveBg:Tt,headerFilterHoverBg:He,filterDropdownMenuBg:Se,filterDropdownBg:Se,expandIconBg:Se,selectionColumnWidth:It,stickyScrollBarBg:Kt,stickyScrollBarBorderRadius:100}});const yn=[],_r=(U,H)=>{const{prefixCls:Se,className:De,rootClassName:Ye,style:He,size:dt,bordered:pt,dropdownPrefixCls:Et,dataSource:de,pagination:Ze,rowSelection:Je,rowKey:mt="key",rowClassName:yt,columns:It,children:Kt,childrenColumnName:Tt,onChange:pr,getPopupContainer:sr,loading:Fr,expandIcon:Hr,expandable:hn,expandedRowRender:tr,expandIconColumnIndex:St,indentSize:On,scroll:zr,sortDirections:wr,locale:Ir,showSorterTooltip:xr=!0,virtual:kr}=U,fn=B.useMemo(()=>It||be(Kt),[It,Kt]),zn=B.useMemo(()=>fn.some(pa=>pa.responsive),[fn]),Rn=(0,za.Z)(zn),Bn=B.useMemo(()=>{const pa=new Set(Object.keys(Rn).filter(oo=>Rn[oo]));return fn.filter(oo=>!oo.responsive||oo.responsive.some(Ka=>pa.has(Ka)))},[fn,Rn]),ii=(0,ri.Z)(U,["className","style","columns"]),{locale:Ei=ka.Z,direction:gi,table:xi,renderEmpty:kn,getPrefixCls:ha,getPopupContainer:ei}=B.useContext(La.E_),uo=(0,Hi.Z)(dt),Ti=Object.assign(Object.assign({},Ei.Table),Ir),na=de||yn,Ta=ha("table",Se),ma=ha("dropdown",Et),Vn=Object.assign({childrenColumnName:Tt,expandIconColumnIndex:St},hn),{childrenColumnName:Gn="children"}=Vn,bi=B.useMemo(()=>na.some(pa=>pa==null?void 0:pa[Gn])?"nest":tr||hn&&hn.expandedRowRender?"row":null,[na]),vi={body:B.useRef()},Zi=B.useMemo(()=>typeof mt=="function"?mt:pa=>pa==null?void 0:pa[mt],[mt]),[gn]=Ro(na,Gn,Zi),Xn={},aa=function(pa,oo){let Ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var xo,ms,Ps;const gs=Object.assign(Object.assign({},Xn),pa);Ka&&((xo=Xn.resetPagination)===null||xo===void 0||xo.call(Xn),!((ms=gs.pagination)===null||ms===void 0)&&ms.current&&(gs.pagination.current=1),Ze&&Ze.onChange&&Ze.onChange(1,(Ps=gs.pagination)===null||Ps===void 0?void 0:Ps.pageSize)),zr&&zr.scrollToFirstRowOnChange!==!1&&vi.body.current&&(0,ra.Z)(0,{getContainer:()=>vi.body.current}),pr==null||pr(gs.pagination,gs.filters,gs.sorter,{currentDataSource:Ms(Pa(na,gs.sorterStates,Gn),gs.filterStates),action:oo})},ji=(pa,oo)=>{aa({sorter:pa,sorterStates:oo},"sort",!1)},[ko,Do,Ki,ro]=yo({prefixCls:Ta,mergedColumns:Bn,onSorterChange:ji,sortDirections:wr||["ascend","descend"],tableLocale:Ti,showSorterTooltip:xr}),as=B.useMemo(()=>Pa(na,Do,Gn),[na,Do]);Xn.sorter=ro(),Xn.sorterStates=Do;const Cn=(pa,oo)=>{aa({filters:pa,filterStates:oo},"filter",!0)},[fo,Ho,Yi]=Dl({prefixCls:Ta,locale:Ti,dropdownPrefixCls:ma,mergedColumns:Bn,onFilterChange:Cn,getPopupContainer:sr||ei}),on=Ms(as,Ho);Xn.filters=Yi,Xn.filterStates=Ho;const ga=B.useMemo(()=>{const pa={};return Object.keys(Yi).forEach(oo=>{Yi[oo]!==null&&(pa[oo]=Yi[oo])}),Object.assign(Object.assign({},Ki),{filters:pa})},[Ki,Yi]),[ho]=Yo(ga),Wa=(pa,oo)=>{aa({pagination:Object.assign(Object.assign({},Xn.pagination),{current:pa,pageSize:oo})},"paginate")},[Li,Po]=Wl(on.length,Wa,Ze);Xn.pagination=Ze===!1?{}:Ia(Li,Ze),Xn.resetPagination=Po;const No=B.useMemo(()=>{if(Ze===!1||!Li.pageSize)return on;const{current:pa=1,total:oo,pageSize:Ka=bs}=Li;return on.length<oo?on.length>Ka?on.slice((pa-1)*Ka,pa*Ka):on:on.slice((pa-1)*Ka,pa*Ka)},[!!Ze,on,Li&&Li.current,Li&&Li.pageSize,Li&&Li.total]),[os,fs]=Vs({prefixCls:Ta,data:on,pageData:No,getRowKey:Zi,getRecordByKey:gn,expandType:bi,childrenColumnName:Gn,locale:Ti,getPopupContainer:sr||ei},Je),ss=(pa,oo,Ka)=>{let xo;return typeof yt=="function"?xo=k()(yt(pa,oo,Ka)):xo=k()(yt),k()({[`${Ta}-row-selected`]:fs.has(Zi(pa,oo))},xo)};Vn.__PARENT_RENDER_ICON__=Vn.expandIcon,Vn.expandIcon=Vn.expandIcon||Hr||Aa(Ti),bi==="nest"&&Vn.expandIconColumnIndex===void 0?Vn.expandIconColumnIndex=Je?1:0:Vn.expandIconColumnIndex>0&&Je&&(Vn.expandIconColumnIndex-=1),typeof Vn.indentSize!="number"&&(Vn.indentSize=typeof On=="number"?On:15);const hs=B.useCallback(pa=>ho(os(fo(ko(pa)))),[ko,fo,os]);let Bl,qo;if(Ze!==!1&&(Li!=null&&Li.total)){let pa;Li.size?pa=Li.size:pa=uo==="small"||uo==="middle"?"small":void 0;const oo=ms=>B.createElement(co.Z,Object.assign({},Li,{className:k()(`${Ta}-pagination ${Ta}-pagination-${ms}`,Li.className),size:pa})),Ka=gi==="rtl"?"left":"right",{position:xo}=Li;if(xo!==null&&Array.isArray(xo)){const ms=xo.find(Gl=>Gl.includes("top")),Ps=xo.find(Gl=>Gl.includes("bottom")),gs=xo.every(Gl=>`${Gl}`=="none");!ms&&!Ps&&!gs&&(qo=oo(Ka)),ms&&(Bl=oo(ms.toLowerCase().replace("top",""))),Ps&&(qo=oo(Ps.toLowerCase().replace("bottom","")))}else qo=oo(Ka)}let Ds;typeof Fr=="boolean"?Ds={spinning:Fr}:typeof Fr=="object"&&(Ds=Object.assign({spinning:!0},Fr));const[ps,jo]=Kr(Ta),[,wo]=(0,Ca.Z)(),Hs=k()(`${Ta}-wrapper`,xi==null?void 0:xi.className,{[`${Ta}-wrapper-rtl`]:gi==="rtl"},De,Ye,jo),oc=Object.assign(Object.assign({},xi==null?void 0:xi.style),He),Sl=Ir&&Ir.emptyText||(kn==null?void 0:kn("Table"))||B.createElement(ca.Z,{componentName:"Table"}),Ol=kr?Mc:ks,nA={},HA=B.useMemo(()=>{const{fontSize:pa,lineHeight:oo,padding:Ka,paddingXS:xo,paddingSM:ms}=wo,Ps=Math.floor(pa*oo);switch(uo){case"large":return Ka*2+Ps;case"small":return xo*2+Ps;default:return ms*2+Ps}},[wo,uo]);return kr&&(nA.listItemHeight=HA),ps(B.createElement("div",{ref:H,className:Hs,style:oc},B.createElement(Ya.Z,Object.assign({spinning:!1},Ds),Bl,B.createElement(Ol,Object.assign({},nA,ii,{columns:Bn,direction:gi,expandable:Vn,prefixCls:Ta,className:k()({[`${Ta}-middle`]:uo==="middle",[`${Ta}-small`]:uo==="small",[`${Ta}-bordered`]:pt,[`${Ta}-empty`]:na.length===0}),data:No,rowKey:Zi,rowClassName:ss,emptyText:Sl,internalHooks:ue,internalRefs:vi,transformColumns:hs})),qo)))};var Gt=B.forwardRef(_r);const Dr=(U,H)=>{const Se=B.useRef(0);return Se.current+=1,B.createElement(Gt,Object.assign({},U,{ref:H,_renderTimes:Se.current}))},Vr=B.forwardRef(Dr);Vr.SELECTION_COLUMN=Va,Vr.EXPAND_COLUMN=ge,Vr.SELECTION_ALL=ao,Vr.SELECTION_INVERT=Ko,Vr.SELECTION_NONE=to,Vr.Column=io,Vr.ColumnGroup=Zn,Vr.Summary=T;var bt=Vr,Bt=bt},99313:function(xn,er,x){"use strict";x.d(er,{default:function(){return Qi}});var ge=x(99267),ue=x(18785),Q=x(62772),Te=x(92310),ne=x.n(Te),G=x(92413),B=x(400),f=x(33708),E=x(33606),h=x(39559),Z=x(37061),S=x(59301),_=x(49658),N=x(18929),R=x(77900),I=(0,S.createContext)(null),Y=S.forwardRef(function(be,Ue){var Me=be.prefixCls,lt=be.className,Zt=be.style,Qt=be.id,Sr=be.active,fr=be.tabKey,Tr=be.children;return S.createElement("div",{id:Qt&&"".concat(Qt,"-panel-").concat(fr),role:"tabpanel",tabIndex:Sr?0:-1,"aria-labelledby":Qt&&"".concat(Qt,"-tab-").concat(fr),"aria-hidden":!Sr,style:Zt,className:ne()(Me,Sr&&"".concat(Me,"-active"),lt),ref:Ue},Tr)}),K=Y,se=["key","forceRender","style","className"];function te(be){var Ue=be.id,Me=be.activeKey,lt=be.animated,Zt=be.tabPosition,Qt=be.destroyInactiveTabPane,Sr=S.useContext(I),fr=Sr.prefixCls,Tr=Sr.tabs,Wr=lt.tabPane,An="".concat(fr,"-tabpane");return S.createElement("div",{className:ne()("".concat(fr,"-content-holder"))},S.createElement("div",{className:ne()("".concat(fr,"-content"),"".concat(fr,"-content-").concat(Zt),(0,B.Z)({},"".concat(fr,"-content-animated"),Wr))},Tr.map(function($r){var Rr=$r.key,qr=$r.forceRender,mn=$r.style,sn=$r.className,Sn=(0,Z.Z)($r,se),Hn=Rr===Me;return S.createElement(R.default,(0,G.Z)({key:Rr,visible:Hn,forceRender:qr,removeOnLeave:!!Qt,leavedClassName:"".concat(An,"-hidden")},lt.tabPaneMotion),function(pi,In){var an=pi.style,jt=pi.className;return S.createElement(K,(0,G.Z)({},Sn,{prefixCls:An,id:Ue,tabKey:Rr,animated:Wr,active:Hn,style:(0,f.Z)((0,f.Z)({},mn),an),className:ne()(sn,jt),ref:In}))})})))}var X=x(26407),W=x(29301),j=x(6089),le=x(8654),he={width:0,height:0,left:0,top:0};function Ne(be,Ue,Me){return(0,S.useMemo)(function(){for(var lt,Zt=new Map,Qt=Ue.get((lt=be[0])===null||lt===void 0?void 0:lt.key)||he,Sr=Qt.left+Qt.width,fr=0;fr<be.length;fr+=1){var Tr=be[fr].key,Wr=Ue.get(Tr);if(!Wr){var An;Wr=Ue.get((An=be[fr-1])===null||An===void 0?void 0:An.key)||he}var $r=Zt.get(Tr)||(0,f.Z)({},Wr);$r.right=Sr-$r.left-$r.width,Zt.set(Tr,$r)}return Zt},[be.map(function(lt){return lt.key}).join("_"),Ue,Me])}function Ce(be,Ue){var Me=S.useRef(be),lt=S.useState({}),Zt=(0,E.Z)(lt,2),Qt=Zt[1];function Sr(fr){var Tr=typeof fr=="function"?fr(Me.current):fr;Tr!==Me.current&&Ue(Tr,Me.current),Me.current=Tr,Qt({})}return[Me.current,Sr]}var je=.1,q=.01,ce=20,k=Math.pow(.995,ce);function ot(be,Ue){var Me=(0,S.useState)(),lt=(0,E.Z)(Me,2),Zt=lt[0],Qt=lt[1],Sr=(0,S.useState)(0),fr=(0,E.Z)(Sr,2),Tr=fr[0],Wr=fr[1],An=(0,S.useState)(0),$r=(0,E.Z)(An,2),Rr=$r[0],qr=$r[1],mn=(0,S.useState)(),sn=(0,E.Z)(mn,2),Sn=sn[0],Hn=sn[1],pi=(0,S.useRef)();function In(Xt){var Nr=Xt.touches[0],Lr=Nr.screenX,Jr=Nr.screenY;Qt({x:Lr,y:Jr}),window.clearInterval(pi.current)}function an(Xt){if(Zt){Xt.preventDefault();var Nr=Xt.touches[0],Lr=Nr.screenX,Jr=Nr.screenY;Qt({x:Lr,y:Jr});var _n=Lr-Zt.x,Dn=Jr-Zt.y;Ue(_n,Dn);var Ai=Date.now();Wr(Ai),qr(Ai-Tr),Hn({x:_n,y:Dn})}}function jt(){if(Zt&&(Qt(null),Hn(null),Sn)){var Xt=Sn.x/Rr,Nr=Sn.y/Rr,Lr=Math.abs(Xt),Jr=Math.abs(Nr);if(Math.max(Lr,Jr)<je)return;var _n=Xt,Dn=Nr;pi.current=window.setInterval(function(){if(Math.abs(_n)<q&&Math.abs(Dn)<q){window.clearInterval(pi.current);return}_n*=k,Dn*=k,Ue(_n*ce,Dn*ce)},ce)}}var Wt=(0,S.useRef)();function nr(Xt){var Nr=Xt.deltaX,Lr=Xt.deltaY,Jr=0,_n=Math.abs(Nr),Dn=Math.abs(Lr);_n===Dn?Jr=Wt.current==="x"?Nr:Lr:_n>Dn?(Jr=Nr,Wt.current="x"):(Jr=Lr,Wt.current="y"),Ue(-Jr,-Jr)&&Xt.preventDefault()}var qt=(0,S.useRef)(null);qt.current={onTouchStart:In,onTouchMove:an,onTouchEnd:jt,onWheel:nr},S.useEffect(function(){function Xt(_n){qt.current.onTouchStart(_n)}function Nr(_n){qt.current.onTouchMove(_n)}function Lr(_n){qt.current.onTouchEnd(_n)}function Jr(_n){qt.current.onWheel(_n)}return document.addEventListener("touchmove",Nr,{passive:!1}),document.addEventListener("touchend",Lr,{passive:!1}),be.current.addEventListener("touchstart",Xt,{passive:!1}),be.current.addEventListener("wheel",Jr),function(){document.removeEventListener("touchmove",Nr),document.removeEventListener("touchend",Lr)}},[])}var Le=x(34280);function xe(be){var Ue=(0,S.useState)(0),Me=(0,E.Z)(Ue,2),lt=Me[0],Zt=Me[1],Qt=(0,S.useRef)(0),Sr=(0,S.useRef)();return Sr.current=be,(0,Le.o)(function(){var fr;(fr=Sr.current)===null||fr===void 0||fr.call(Sr)},[lt]),function(){Qt.current===lt&&(Qt.current+=1,Zt(Qt.current))}}function Re(be){var Ue=(0,S.useRef)([]),Me=(0,S.useState)({}),lt=(0,E.Z)(Me,2),Zt=lt[1],Qt=(0,S.useRef)(typeof be=="function"?be():be),Sr=xe(function(){var Tr=Qt.current;Ue.current.forEach(function(Wr){Tr=Wr(Tr)}),Ue.current=[],Qt.current=Tr,Zt({})});function fr(Tr){Ue.current.push(Tr),Sr()}return[Qt.current,fr]}var ve={width:0,height:0,left:0,top:0,right:0};function ke(be,Ue,Me,lt,Zt,Qt,Sr){var fr=Sr.tabs,Tr=Sr.tabPosition,Wr=Sr.rtl,An,$r,Rr;return["top","bottom"].includes(Tr)?(An="width",$r=Wr?"right":"left",Rr=Math.abs(Me)):(An="height",$r="top",Rr=-Me),(0,S.useMemo)(function(){if(!fr.length)return[0,0];for(var qr=fr.length,mn=qr,sn=0;sn<qr;sn+=1){var Sn=be.get(fr[sn].key)||ve;if(Sn[$r]+Sn[An]>Rr+Ue){mn=sn-1;break}}for(var Hn=0,pi=qr-1;pi>=0;pi-=1){var In=be.get(fr[pi].key)||ve;if(In[$r]<Rr){Hn=pi+1;break}}return Hn>=mn?[0,0]:[Hn,mn]},[be,Ue,lt,Zt,Qt,Rr,Tr,fr.map(function(qr){return qr.key}).join("_"),Wr])}function fe(be){var Ue;return be instanceof Map?(Ue={},be.forEach(function(Me,lt){Ue[lt]=Me})):Ue=be,JSON.stringify(Ue)}var ye="TABS_DQ";function at(be){return String(be).replace(/"/g,ye)}function rt(be,Ue,Me,lt){return!(!Me||lt||be===!1||be===void 0&&(Ue===!1||Ue===null))}function nt(be,Ue){var Me=be.prefixCls,lt=be.editable,Zt=be.locale,Qt=be.style;return!lt||lt.showAdd===!1?null:S.createElement("button",{ref:Ue,type:"button",className:"".concat(Me,"-nav-add"),style:Qt,"aria-label":(Zt==null?void 0:Zt.addAriaLabel)||"Add tab",onClick:function(fr){lt.onEdit("add",{event:fr})}},lt.addIcon||"+")}var ut=S.forwardRef(nt),Nt=S.forwardRef(function(be,Ue){var Me=be.position,lt=be.prefixCls,Zt=be.extra;if(!Zt)return null;var Qt,Sr={};return(0,h.Z)(Zt)==="object"&&!S.isValidElement(Zt)?Sr=Zt:Sr.right=Zt,Me==="right"&&(Qt=Sr.right),Me==="left"&&(Qt=Sr.left),Qt?S.createElement("div",{className:"".concat(lt,"-extra-content"),ref:Ue},Qt):null}),zt=Nt,Ht=x(31561),cr=x(15285),or=x(10228);function yr(be,Ue){var Me=be.prefixCls,lt=be.id,Zt=be.tabs,Qt=be.locale,Sr=be.mobile,fr=be.moreIcon,Tr=fr===void 0?"More":fr,Wr=be.moreTransitionName,An=be.style,$r=be.className,Rr=be.editable,qr=be.tabBarGutter,mn=be.rtl,sn=be.removeAriaLabel,Sn=be.onTabClick,Hn=be.getPopupContainer,pi=be.popupClassName,In=(0,S.useState)(!1),an=(0,E.Z)(In,2),jt=an[0],Wt=an[1],nr=(0,S.useState)(null),qt=(0,E.Z)(nr,2),Xt=qt[0],Nr=qt[1],Lr="".concat(lt,"-more-popup"),Jr="".concat(Me,"-dropdown"),_n=Xt!==null?"".concat(Lr,"-").concat(Xt):null,Dn=Qt==null?void 0:Qt.dropdownAriaLabel;function Ai(Mn,ni){Mn.preventDefault(),Mn.stopPropagation(),Rr.onEdit("remove",{key:ni,event:Mn})}var Yn=S.createElement(cr.ZP,{onClick:function(ni){var Si=ni.key,Mi=ni.domEvent;Sn(Si,Mi),Wt(!1)},prefixCls:"".concat(Jr,"-menu"),id:Lr,tabIndex:-1,role:"listbox","aria-activedescendant":_n,selectedKeys:[Xt],"aria-label":Dn!==void 0?Dn:"expanded dropdown"},Zt.map(function(Mn){var ni=Mn.closable,Si=Mn.disabled,Mi=Mn.closeIcon,Wn=Mn.key,Pi=Mn.label,Ji=rt(ni,Mi,Rr,Si);return S.createElement(cr.sN,{key:Wn,id:"".concat(Lr,"-").concat(Wn),role:"option","aria-controls":lt&&"".concat(lt,"-panel-").concat(Wn),disabled:Si},S.createElement("span",null,Pi),Ji&&S.createElement("button",{type:"button","aria-label":sn||"remove",tabIndex:0,className:"".concat(Jr,"-menu-item-remove"),onClick:function(dn){dn.stopPropagation(),Ai(dn,Wn)}},Mi||Rr.removeIcon||"\xD7"))}));function ki(Mn){for(var ni=Zt.filter(function(Ji){return!Ji.disabled}),Si=ni.findIndex(function(Ji){return Ji.key===Xt})||0,Mi=ni.length,Wn=0;Wn<Mi;Wn+=1){Si=(Si+Mn+Mi)%Mi;var Pi=ni[Si];if(!Pi.disabled){Nr(Pi.key);return}}}function qn(Mn){var ni=Mn.which;if(!jt){[or.Z.DOWN,or.Z.SPACE,or.Z.ENTER].includes(ni)&&(Wt(!0),Mn.preventDefault());return}switch(ni){case or.Z.UP:ki(-1),Mn.preventDefault();break;case or.Z.DOWN:ki(1),Mn.preventDefault();break;case or.Z.ESC:Wt(!1);break;case or.Z.SPACE:case or.Z.ENTER:Xt!==null&&Sn(Xt,Mn);break}}(0,S.useEffect)(function(){var Mn=document.getElementById(_n);Mn&&Mn.scrollIntoView&&Mn.scrollIntoView(!1)},[Xt]),(0,S.useEffect)(function(){jt||Nr(null)},[jt]);var Nn=(0,B.Z)({},mn?"marginRight":"marginLeft",qr);Zt.length||(Nn.visibility="hidden",Nn.order=1);var ln=ne()((0,B.Z)({},"".concat(Jr,"-rtl"),mn)),wi=Sr?null:S.createElement(Ht.Z,{prefixCls:Jr,overlay:Yn,trigger:["hover"],visible:Zt.length?jt:!1,transitionName:Wr,onVisibleChange:Wt,overlayClassName:ne()(ln,pi),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Hn},S.createElement("button",{type:"button",className:"".concat(Me,"-nav-more"),style:Nn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Lr,id:"".concat(lt,"-more"),"aria-expanded":jt,onKeyDown:qn},Tr));return S.createElement("div",{className:ne()("".concat(Me,"-nav-operations"),$r),style:An,ref:Ue},wi,S.createElement(ut,{prefixCls:Me,locale:Qt,editable:Rr}))}var dr=S.memo(S.forwardRef(yr),function(be,Ue){return Ue.tabMoving});function $(be){var Ue,Me=be.prefixCls,lt=be.id,Zt=be.active,Qt=be.tab,Sr=Qt.key,fr=Qt.label,Tr=Qt.disabled,Wr=Qt.closeIcon,An=be.closable,$r=be.renderWrapper,Rr=be.removeAriaLabel,qr=be.editable,mn=be.onClick,sn=be.onFocus,Sn=be.style,Hn="".concat(Me,"-tab"),pi=rt(An,Wr,qr,Tr);function In(Wt){Tr||mn(Wt)}function an(Wt){Wt.preventDefault(),Wt.stopPropagation(),qr.onEdit("remove",{key:Sr,event:Wt})}var jt=S.createElement("div",{key:Sr,"data-node-key":at(Sr),className:ne()(Hn,(Ue={},(0,B.Z)(Ue,"".concat(Hn,"-with-remove"),pi),(0,B.Z)(Ue,"".concat(Hn,"-active"),Zt),(0,B.Z)(Ue,"".concat(Hn,"-disabled"),Tr),Ue)),style:Sn,onClick:In},S.createElement("div",{role:"tab","aria-selected":Zt,id:lt&&"".concat(lt,"-tab-").concat(Sr),className:"".concat(Hn,"-btn"),"aria-controls":lt&&"".concat(lt,"-panel-").concat(Sr),"aria-disabled":Tr,tabIndex:Tr?null:0,onClick:function(nr){nr.stopPropagation(),In(nr)},onKeyDown:function(nr){[or.Z.SPACE,or.Z.ENTER].includes(nr.which)&&(nr.preventDefault(),In(nr))},onFocus:sn},fr),pi&&S.createElement("button",{type:"button","aria-label":Rr||"remove",tabIndex:0,className:"".concat(Hn,"-remove"),onClick:function(nr){nr.stopPropagation(),an(nr)}},Wr||qr.removeIcon||"\xD7"));return $r?$r(jt):jt}var Xe=$,L=x(16089),p=function(Ue){var Me=Ue.activeTabOffset,lt=Ue.horizontal,Zt=Ue.rtl,Qt=Ue.indicatorSize,Sr=(0,S.useState)(),fr=(0,E.Z)(Sr,2),Tr=fr[0],Wr=fr[1],An=(0,S.useRef)(),$r=function(mn){return typeof Qt=="function"?Qt(mn):typeof Qt=="number"?Qt:mn};function Rr(){L.Z.cancel(An.current)}return(0,S.useEffect)(function(){var qr={};return Me&&(lt?(Zt?(qr.right=Me.right+Me.width/2,qr.transform="translateX(50%)"):(qr.left=Me.left+Me.width/2,qr.transform="translateX(-50%)"),qr.width=$r(Me.width)):(qr.top=Me.top+Me.height/2,qr.transform="translateY(-50%)",qr.height=$r(Me.height))),Rr(),An.current=(0,L.Z)(function(){Wr(qr)}),Rr},[Me,lt,Zt,Qt]),{style:Tr}},u=p,w=function(Ue){var Me=Ue.current||{},lt=Me.offsetWidth,Zt=lt===void 0?0:lt,Qt=Me.offsetHeight,Sr=Qt===void 0?0:Qt;return[Zt,Sr]},ee=function(Ue,Me){return Ue[Me?0:1]};function Be(be,Ue){var Me,lt=S.useContext(I),Zt=lt.prefixCls,Qt=lt.tabs,Sr=be.className,fr=be.style,Tr=be.id,Wr=be.animated,An=be.activeKey,$r=be.rtl,Rr=be.extra,qr=be.editable,mn=be.locale,sn=be.tabPosition,Sn=be.tabBarGutter,Hn=be.children,pi=be.onTabClick,In=be.onTabScroll,an=be.indicatorSize,jt=(0,S.useRef)(),Wt=(0,S.useRef)(),nr=(0,S.useRef)(),qt=(0,S.useRef)(),Xt=(0,S.useRef)(),Nr=(0,S.useRef)(),Lr=(0,S.useRef)(),Jr=sn==="top"||sn==="bottom",_n=Ce(0,function(Ba,da){Jr&&In&&In({direction:Ba>da?"left":"right"})}),Dn=(0,E.Z)(_n,2),Ai=Dn[0],Yn=Dn[1],ki=Ce(0,function(Ba,da){!Jr&&In&&In({direction:Ba>da?"top":"bottom"})}),qn=(0,E.Z)(ki,2),Nn=qn[0],ln=qn[1],wi=(0,S.useState)([0,0]),Mn=(0,E.Z)(wi,2),ni=Mn[0],Si=Mn[1],Mi=(0,S.useState)([0,0]),Wn=(0,E.Z)(Mi,2),Pi=Wn[0],Ji=Wn[1],si=(0,S.useState)([0,0]),dn=(0,E.Z)(si,2),rn=dn[0],Ln=dn[1],wn=(0,S.useState)([0,0]),Kn=(0,E.Z)(wn,2),ui=Kn[0],Fi=Kn[1],la=Re(new Map),ta=(0,E.Z)(la,2),ja=ta[0],io=ta[1],jn=Ne(Qt,ja,Pi[0]),Zn=ee(ni,Jr),ri=ee(Pi,Jr),ra=ee(rn,Jr),La=ee(ui,Jr),ca=Zn<ri+ra,Hi=ca?Zn-La:Zn-ra,za="".concat(Zt,"-nav-operations-hidden"),ka=0,co=0;Jr&&$r?(ka=0,co=Math.max(0,ri-Hi)):(ka=Math.min(0,Hi-ri),co=0);function Ya(Ba){return Ba<ka?ka:Ba>co?co:Ba}var Ca=(0,S.useRef)(),mi=(0,S.useState)(),Aa=(0,E.Z)(mi,2),Oo=Aa[0],mo=Aa[1];function qa(){mo(Date.now())}function Ni(){window.clearTimeout(Ca.current)}ot(qt,function(Ba,da){function Da(eo,Ao){eo(function(Oa){var Fa=Ya(Oa+Ao);return Fa})}return ca?(Jr?Da(Yn,Ba):Da(ln,da),Ni(),qa(),!0):!1}),(0,S.useEffect)(function(){return Ni(),Oo&&(Ca.current=window.setTimeout(function(){mo(0)},100)),Ni},[Oo]);var To=ke(jn,Hi,Jr?Ai:Nn,ri,ra,La,(0,f.Z)((0,f.Z)({},be),{},{tabs:Qt})),go=(0,E.Z)(To,2),el=go[0],Wo=go[1],Rs=(0,j.Z)(function(){var Ba=arguments.length>0&&arguments[0]!==void 0?arguments[0]:An,da=jn.get(Ba)||{width:0,height:0,left:0,right:0,top:0};if(Jr){var Da=Ai;$r?da.right<Ai?Da=da.right:da.right+da.width>Ai+Hi&&(Da=da.right+da.width-Hi):da.left<-Ai?Da=-da.left:da.left+da.width>-Ai+Hi&&(Da=-(da.left+da.width-Hi)),ln(0),Yn(Ya(Da))}else{var eo=Nn;da.top<-Nn?eo=-da.top:da.top+da.height>-Nn+Hi&&(eo=-(da.top+da.height-Hi)),Yn(0),ln(Ya(eo))}}),Go={};sn==="top"||sn==="bottom"?Go[$r?"marginRight":"marginLeft"]=Sn:Go.marginTop=Sn;var xl=Qt.map(function(Ba,da){var Da=Ba.key;return S.createElement(Xe,{id:Tr,prefixCls:Zt,key:Da,tab:Ba,style:da===0?void 0:Go,closable:Ba.closable,editable:qr,active:Da===An,renderWrapper:Hn,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,onClick:function(Ao){pi(Da,Ao)},onFocus:function(){Rs(Da),qa(),qt.current&&($r||(qt.current.scrollLeft=0),qt.current.scrollTop=0)}})}),$a=function(){return io(function(){var da=new Map;return Qt.forEach(function(Da){var eo,Ao=Da.key,Oa=(eo=Xt.current)===null||eo===void 0?void 0:eo.querySelector('[data-node-key="'.concat(at(Ao),'"]'));Oa&&da.set(Ao,{width:Oa.offsetWidth,height:Oa.offsetHeight,left:Oa.offsetLeft,top:Oa.offsetTop})}),da})};(0,S.useEffect)(function(){$a()},[Qt.map(function(Ba){return Ba.key}).join("_")]);var Qa=xe(function(){var Ba=w(jt),da=w(Wt),Da=w(nr);Si([Ba[0]-da[0]-Da[0],Ba[1]-da[1]-Da[1]]);var eo=w(Lr);Ln(eo);var Ao=w(Nr);Fi(Ao);var Oa=w(Xt);Ji([Oa[0]-eo[0],Oa[1]-eo[1]]),$a()}),Sa=Qt.slice(0,el),Qs=Qt.slice(Wo+1),Bi=[].concat((0,X.Z)(Sa),(0,X.Z)(Qs)),Vi=jn.get(An),Oi=u({activeTabOffset:Vi,horizontal:Jr,rtl:$r,indicatorSize:an}),Wi=Oi.style;(0,S.useEffect)(function(){Rs()},[An,ka,co,fe(Vi),fe(jn),Jr]),(0,S.useEffect)(function(){Qa()},[$r]);var ua=!!Bi.length,_a="".concat(Zt,"-nav-wrap"),Xo,Io,_o,Za;return Jr?$r?(Io=Ai>0,Xo=Ai!==co):(Xo=Ai<0,Io=Ai!==ka):(_o=Nn<0,Za=Nn!==ka),S.createElement(W.Z,{onResize:Qa},S.createElement("div",{ref:(0,le.x1)(Ue,jt),role:"tablist",className:ne()("".concat(Zt,"-nav"),Sr),style:fr,onKeyDown:function(){qa()}},S.createElement(zt,{ref:Wt,position:"left",extra:Rr,prefixCls:Zt}),S.createElement(W.Z,{onResize:Qa},S.createElement("div",{className:ne()(_a,(Me={},(0,B.Z)(Me,"".concat(_a,"-ping-left"),Xo),(0,B.Z)(Me,"".concat(_a,"-ping-right"),Io),(0,B.Z)(Me,"".concat(_a,"-ping-top"),_o),(0,B.Z)(Me,"".concat(_a,"-ping-bottom"),Za),Me)),ref:qt},S.createElement(W.Z,{onResize:Qa},S.createElement("div",{ref:Xt,className:"".concat(Zt,"-nav-list"),style:{transform:"translate(".concat(Ai,"px, ").concat(Nn,"px)"),transition:Oo?"none":void 0}},xl,S.createElement(ut,{ref:Lr,prefixCls:Zt,locale:mn,editable:qr,style:(0,f.Z)((0,f.Z)({},xl.length===0?void 0:Go),{},{visibility:ua?"hidden":null})}),S.createElement("div",{className:ne()("".concat(Zt,"-ink-bar"),(0,B.Z)({},"".concat(Zt,"-ink-bar-animated"),Wr.inkBar)),style:Wi}))))),S.createElement(dr,(0,G.Z)({},be,{removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:Nr,prefixCls:Zt,tabs:Bi,className:!ua&&za,tabMoving:!!Oo})),S.createElement(zt,{ref:nr,position:"right",extra:Rr,prefixCls:Zt})))}var T=S.forwardRef(Be),ae=["renderTabBar"],Ge=["label","key"];function Ee(be){var Ue=be.renderTabBar,Me=(0,Z.Z)(be,ae),lt=S.useContext(I),Zt=lt.tabs;if(Ue){var Qt=(0,f.Z)((0,f.Z)({},Me),{},{panes:Zt.map(function(Sr){var fr=Sr.label,Tr=Sr.key,Wr=(0,Z.Z)(Sr,Ge);return S.createElement(K,(0,G.Z)({tab:fr,key:Tr,tabKey:Tr},Wr))})});return Ue(Qt,T)}return S.createElement(T,Me)}var me=x(48736);function qe(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ue;return be===!1?Ue={inkBar:!1,tabPane:!1}:be===!0?Ue={inkBar:!0,tabPane:!1}:Ue=(0,f.Z)({inkBar:!0},(0,h.Z)(be)==="object"?be:{}),Ue.tabPaneMotion&&Ue.tabPane===void 0&&(Ue.tabPane=!0),!Ue.tabPaneMotion&&Ue.tabPane&&(Ue.tabPane=!1),Ue}var _t=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],pe=0;function st(be,Ue){var Me,lt=be.id,Zt=be.prefixCls,Qt=Zt===void 0?"rc-tabs":Zt,Sr=be.className,fr=be.items,Tr=be.direction,Wr=be.activeKey,An=be.defaultActiveKey,$r=be.editable,Rr=be.animated,qr=be.tabPosition,mn=qr===void 0?"top":qr,sn=be.tabBarGutter,Sn=be.tabBarStyle,Hn=be.tabBarExtraContent,pi=be.locale,In=be.moreIcon,an=be.moreTransitionName,jt=be.destroyInactiveTabPane,Wt=be.renderTabBar,nr=be.onChange,qt=be.onTabClick,Xt=be.onTabScroll,Nr=be.getPopupContainer,Lr=be.popupClassName,Jr=be.indicatorSize,_n=(0,Z.Z)(be,_t),Dn=S.useMemo(function(){return(fr||[]).filter(function(Fi){return Fi&&(0,h.Z)(Fi)==="object"&&"key"in Fi})},[fr]),Ai=Tr==="rtl",Yn=qe(Rr),ki=(0,S.useState)(!1),qn=(0,E.Z)(ki,2),Nn=qn[0],ln=qn[1];(0,S.useEffect)(function(){ln((0,_.Z)())},[]);var wi=(0,N.Z)(function(){var Fi;return(Fi=Dn[0])===null||Fi===void 0?void 0:Fi.key},{value:Wr,defaultValue:An}),Mn=(0,E.Z)(wi,2),ni=Mn[0],Si=Mn[1],Mi=(0,S.useState)(function(){return Dn.findIndex(function(Fi){return Fi.key===ni})}),Wn=(0,E.Z)(Mi,2),Pi=Wn[0],Ji=Wn[1];(0,S.useEffect)(function(){var Fi=Dn.findIndex(function(ta){return ta.key===ni});if(Fi===-1){var la;Fi=Math.max(0,Math.min(Pi,Dn.length-1)),Si((la=Dn[Fi])===null||la===void 0?void 0:la.key)}Ji(Fi)},[Dn.map(function(Fi){return Fi.key}).join("_"),ni,Pi]);var si=(0,N.Z)(null,{value:lt}),dn=(0,E.Z)(si,2),rn=dn[0],Ln=dn[1];(0,S.useEffect)(function(){lt||(Ln("rc-tabs-".concat(pe)),pe+=1)},[]);function wn(Fi,la){qt==null||qt(Fi,la);var ta=Fi!==ni;Si(Fi),ta&&(nr==null||nr(Fi))}var Kn={id:rn,activeKey:ni,animated:Yn,tabPosition:mn,rtl:Ai,mobile:Nn},ui=(0,f.Z)((0,f.Z)({},Kn),{},{editable:$r,locale:pi,moreIcon:In,moreTransitionName:an,tabBarGutter:sn,onTabClick:wn,onTabScroll:Xt,extra:Hn,style:Sn,panes:null,getPopupContainer:Nr,popupClassName:Lr,indicatorSize:Jr});return S.createElement(I.Provider,{value:{tabs:Dn,prefixCls:Qt}},S.createElement("div",(0,G.Z)({ref:Ue,id:lt,className:ne()(Qt,"".concat(Qt,"-").concat(mn),(Me={},(0,B.Z)(Me,"".concat(Qt,"-mobile"),Nn),(0,B.Z)(Me,"".concat(Qt,"-editable"),$r),(0,B.Z)(Me,"".concat(Qt,"-rtl"),Ai),Me),Sr)},_n),S.createElement(Ee,(0,G.Z)({},ui,{renderTabBar:Wt})),S.createElement(te,(0,G.Z)({destroyInactiveTabPane:jt},Kn,{animated:Yn}))))}var At=S.forwardRef(st),Pe=At,Ie=Pe,vt=x(36355),Ut=x(19716),hr=()=>null,br=x(62892);const Mr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ur(be){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Me;return Ue===!1?Me={inkBar:!1,tabPane:!1}:Ue===!0?Me={inkBar:!0,tabPane:!0}:Me=Object.assign({inkBar:!0},typeof Ue=="object"?Ue:{}),Me.tabPane&&(Me.tabPaneMotion=Object.assign(Object.assign({},Mr),{motionName:(0,br.m)(be,"switch")})),Me}var Qr=x(11592),rr=function(be,Ue){var Me={};for(var lt in be)Object.prototype.hasOwnProperty.call(be,lt)&&Ue.indexOf(lt)<0&&(Me[lt]=be[lt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,lt=Object.getOwnPropertySymbols(be);Zt<lt.length;Zt++)Ue.indexOf(lt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(be,lt[Zt])&&(Me[lt[Zt]]=be[lt[Zt]]);return Me};function Ar(be){return be.filter(Ue=>Ue)}function jr(be,Ue){if(be)return be;const Me=(0,Qr.Z)(Ue).map(lt=>{if(S.isValidElement(lt)){const{key:Zt,props:Qt}=lt,Sr=Qt||{},{tab:fr}=Sr,Tr=rr(Sr,["tab"]);return Object.assign(Object.assign({key:String(Zt)},Tr),{label:fr})}return null});return Ar(Me)}var cn=x(17313),Tn=x(83116),en=x(37613),Qn=x(13826),Pr=be=>{const{componentCls:Ue,motionDurationSlow:Me}=be;return[{[Ue]:{[`${Ue}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Me}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Me}`}}}}},[(0,Qn.oN)(be,"slide-up"),(0,Qn.oN)(be,"slide-down")]]};const ti=be=>{const{componentCls:Ue,tabsCardPadding:Me,cardBg:lt,cardGutter:Zt,colorBorderSecondary:Qt,itemSelectedColor:Sr}=be;return{[`${Ue}-card`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{margin:0,padding:Me,background:lt,border:`${be.lineWidth}px ${be.lineType} ${Qt}`,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOut}`},[`${Ue}-tab-active`]:{color:Sr,background:be.colorBgContainer},[`${Ue}-ink-bar`]:{visibility:"hidden"}},[`&${Ue}-top, &${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Zt}px`}}}},[`&${Ue}-top`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`${be.borderRadiusLG}px ${be.borderRadiusLG}px 0 0`},[`${Ue}-tab-active`]:{borderBottomColor:be.colorBgContainer}}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`0 0 ${be.borderRadiusLG}px ${be.borderRadiusLG}px`},[`${Ue}-tab-active`]:{borderTopColor:be.colorBgContainer}}},[`&${Ue}-left, &${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginTop:`${Zt}px`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be.borderRadiusLG}px 0 0 ${be.borderRadiusLG}px`}},[`${Ue}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:be.colorBgContainer}}}},[`&${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be.borderRadiusLG}px ${be.borderRadiusLG}px 0`}},[`${Ue}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:be.colorBgContainer}}}}}}},yi=be=>{const{componentCls:Ue,itemHoverColor:Me,dropdownEdgeChildVerticalPadding:lt}=be;return{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,cn.Wf)(be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:be.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ue}-dropdown-menu`]:{maxHeight:be.tabsDropdownHeight,margin:0,padding:`${lt}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:be.colorBgContainer,backgroundClip:"padding-box",borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,"&-item":Object.assign(Object.assign({},cn.vS),{display:"flex",alignItems:"center",minWidth:be.tabsDropdownWidth,margin:0,padding:`${be.paddingXXS}px ${be.paddingSM}px`,color:be.colorText,fontWeight:"normal",fontSize:be.fontSize,lineHeight:be.lineHeight,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:be.marginSM},color:be.colorTextDescription,fontSize:be.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Me}},"&:hover":{background:be.controlItemBgHover},"&-disabled":{"&, &:hover":{color:be.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ci=be=>{const{componentCls:Ue,margin:Me,colorBorderSecondary:lt,horizontalMargin:Zt,verticalItemPadding:Qt,verticalItemMargin:Sr}=be;return{[`${Ue}-top, ${Ue}-bottom`]:{flexDirection:"column",[`> ${Ue}-nav, > div > ${Ue}-nav`]:{margin:Zt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${be.lineWidth}px ${be.lineType} ${lt}`,content:"''"},[`${Ue}-ink-bar`]:{height:be.lineWidthBold,"&-animated":{transition:`width ${be.motionDurationSlow}, left ${be.motionDurationSlow},
right ${be.motionDurationSlow}`}},[`${Ue}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:be.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:be.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:be.boxShadowTabsOverflowRight},[`&${Ue}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ue}-top`]:{[`> ${Ue}-nav,
> div > ${Ue}-nav`]:{"&::before":{bottom:0},[`${Ue}-ink-bar`]:{bottom:0}}},[`${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{order:1,marginTop:`${Me}px`,marginBottom:0,"&::before":{top:0},[`${Ue}-ink-bar`]:{top:0}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{order:0}},[`${Ue}-left, ${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{flexDirection:"column",minWidth:be.controlHeight*1.25,[`${Ue}-tab`]:{padding:Qt,textAlign:"center"},[`${Ue}-tab + ${Ue}-tab`]:{margin:Sr},[`${Ue}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:be.controlHeight},"&::before":{top:0,boxShadow:be.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:be.boxShadowTabsOverflowBottom},[`&${Ue}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ue}-ink-bar`]:{width:be.lineWidthBold,"&-animated":{transition:`height ${be.motionDurationSlow}, top ${be.motionDurationSlow}`}},[`${Ue}-nav-list, ${Ue}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ue}-left`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${be.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:be.paddingLG}}}},[`${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{order:1,[`${Ue}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-be.lineWidth},borderRight:{_skip_check_:!0,value:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingRight:{_skip_check_:!0,value:be.paddingLG}}}}}},Ci=be=>{const{componentCls:Ue,cardPaddingSM:Me,cardPaddingLG:lt,horizontalItemPaddingSM:Zt,horizontalItemPaddingLG:Qt}=be;return{[Ue]:{"&-small":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Zt,fontSize:be.titleFontSizeSM}}},"&-large":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Qt,fontSize:be.titleFontSizeLG}}}},[`${Ue}-card`]:{[`&${Ue}-small`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Me}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`0 0 ${be.borderRadius}px ${be.borderRadius}px`}},[`&${Ue}-top`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`${be.borderRadius}px ${be.borderRadius}px 0 0`}},[`&${Ue}-right`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be.borderRadius}px ${be.borderRadius}px 0`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be.borderRadius}px 0 0 ${be.borderRadius}px`}}}},[`&${Ue}-large`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:lt}}}}}},hi=be=>{const{componentCls:Ue,itemActiveColor:Me,itemHoverColor:lt,iconCls:Zt,tabsHorizontalItemMargin:Qt,horizontalItemPadding:Sr,itemSelectedColor:fr,itemColor:Tr}=be,Wr=`${Ue}-tab`;return{[Wr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Sr,fontSize:be.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Tr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Me}},(0,cn.Qy)(be)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-be.marginXXS},marginLeft:{_skip_check_:!0,value:be.marginXS},color:be.colorTextDescription,fontSize:be.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${be.motionDurationSlow}`,"&:hover":{color:be.colorTextHeading}},"&:hover":{color:lt},[`&${Wr}-active ${Wr}-btn`]:{color:fr,textShadow:be.tabsActiveTextShadow},[`&${Wr}-disabled`]:{color:be.colorTextDisabled,cursor:"not-allowed"},[`&${Wr}-disabled ${Wr}-btn, &${Wr}-disabled ${Ue}-remove`]:{"&:focus, &:active":{color:be.colorTextDisabled}},[`& ${Wr}-remove ${Zt}`]:{margin:0},[Zt]:{marginRight:{_skip_check_:!0,value:be.marginSM}}},[`${Wr} + ${Wr}`]:{margin:{_skip_check_:!0,value:Qt}}}},Ri=be=>{const{componentCls:Ue,tabsHorizontalItemMarginRTL:Me,iconCls:lt,cardGutter:Zt}=be;return{[`${Ue}-rtl`]:{direction:"rtl",[`${Ue}-nav`]:{[`${Ue}-tab`]:{margin:{_skip_check_:!0,value:Me},[`${Ue}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[lt]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${be.marginSM}px`}},[`${Ue}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${be.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${be.marginXXS}px`},[lt]:{margin:0}}}},[`&${Ue}-left`]:{[`> ${Ue}-nav`]:{order:1},[`> ${Ue}-content-holder`]:{order:0}},[`&${Ue}-right`]:{[`> ${Ue}-nav`]:{order:0},[`> ${Ue}-content-holder`]:{order:1}},[`&${Ue}-card${Ue}-top, &${Ue}-card${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginRight:{_skip_check_:!0,value:Zt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ue}-dropdown-rtl`]:{direction:"rtl"},[`${Ue}-menu-item`]:{[`${Ue}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ba=be=>{const{componentCls:Ue,tabsCardPadding:Me,cardHeight:lt,cardGutter:Zt,itemHoverColor:Qt,itemActiveColor:Sr,colorBorderSecondary:fr}=be;return{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,cn.Wf)(be)),{display:"flex",[`> ${Ue}-nav, > div > ${Ue}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ue}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${be.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ue}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${be.motionDurationSlow}`},[`${Ue}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ue}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ue}-nav-more`]:{position:"relative",padding:Me,background:"transparent",border:0,color:be.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:be.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ue}-nav-add`]:Object.assign({minWidth:lt,marginLeft:{_skip_check_:!0,value:Zt},padding:`0 ${be.paddingXS}px`,background:"transparent",border:`${be.lineWidth}px ${be.lineType} ${fr}`,borderRadius:`${be.borderRadiusLG}px ${be.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:be.colorText,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOut}`,"&:hover":{color:Qt},"&:active, &:focus:not(:focus-visible)":{color:Sr}},(0,cn.Qy)(be))},[`${Ue}-extra-content`]:{flex:"none"},[`${Ue}-ink-bar`]:{position:"absolute",background:be.inkBarColor,pointerEvents:"none"}}),hi(be)),{[`${Ue}-content`]:{position:"relative",width:"100%"},[`${Ue}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ue}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ue}-centered`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-nav-wrap`]:{[`&:not([class*='${Ue}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Xi=(0,Tn.Z)("Tabs",be=>{const Ue=(0,en.TS)(be,{tabsCardPadding:be.cardPadding||`${(be.cardHeight-Math.round(be.fontSize*be.lineHeight))/2-be.lineWidth}px ${be.padding}px`,dropdownEdgeChildVerticalPadding:be.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${be.horizontalItemGutter}px`});return[Ci(Ue),Ri(Ue),ci(Ue),yi(Ue),ti(Ue),ba(Ue),Pr(Ue)]},be=>{const Ue=be.controlHeightLG;return{zIndexPopup:be.zIndexPopupBase+50,cardBg:be.colorFillAlter,cardHeight:Ue,cardPadding:"",cardPaddingSM:`${be.paddingXXS*1.5}px ${be.padding}px`,cardPaddingLG:`${be.paddingXS}px ${be.padding}px ${be.paddingXXS*1.5}px`,titleFontSize:be.fontSize,titleFontSizeLG:be.fontSizeLG,titleFontSizeSM:be.fontSize,inkBarColor:be.colorPrimary,horizontalMargin:`0 0 ${be.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${be.paddingSM}px 0`,horizontalItemPaddingSM:`${be.paddingXS}px 0`,horizontalItemPaddingLG:`${be.padding}px 0`,verticalItemPadding:`${be.paddingXS}px ${be.paddingLG}px`,verticalItemMargin:`${be.margin}px 0 0 0`,itemColor:be.colorText,itemSelectedColor:be.colorPrimary,itemHoverColor:be.colorPrimaryHover,itemActiveColor:be.colorPrimaryActive,cardGutter:be.marginXXS/2}}),_i=function(be,Ue){var Me={};for(var lt in be)Object.prototype.hasOwnProperty.call(be,lt)&&Ue.indexOf(lt)<0&&(Me[lt]=be[lt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,lt=Object.getOwnPropertySymbols(be);Zt<lt.length;Zt++)Ue.indexOf(lt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(be,lt[Zt])&&(Me[lt[Zt]]=be[lt[Zt]]);return Me};const oi=be=>{const{type:Ue,className:Me,rootClassName:lt,size:Zt,onEdit:Qt,hideAdd:Sr,centered:fr,addIcon:Tr,popupClassName:Wr,children:An,items:$r,animated:Rr,style:qr,indicatorSize:mn}=be,sn=_i(be,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Sn,moreIcon:Hn=S.createElement(ue.Z,null)}=sn,{direction:pi,tabs:In,getPrefixCls:an,getPopupContainer:jt}=S.useContext(vt.E_),Wt=an("tabs",Sn),[nr,qt]=Xi(Wt);let Xt;Ue==="editable-card"&&(Xt={onEdit:(Ai,Yn)=>{let{key:ki,event:qn}=Yn;Qt==null||Qt(Ai==="add"?qn:ki,Ai)},removeIcon:S.createElement(ge.Z,null),addIcon:Tr||S.createElement(Q.Z,null),showAdd:Sr!==!0});const Nr=an(),Lr=jr($r,An),Jr=Ur(Wt,Rr),_n=(0,Ut.Z)(Zt),Dn=Object.assign(Object.assign({},In==null?void 0:In.style),qr);return nr(S.createElement(Ie,Object.assign({direction:pi,getPopupContainer:jt,moreTransitionName:`${Nr}-slide-up`},sn,{items:Lr,className:ne()({[`${Wt}-${_n}`]:_n,[`${Wt}-card`]:["card","editable-card"].includes(Ue),[`${Wt}-editable-card`]:Ue==="editable-card",[`${Wt}-centered`]:fr},In==null?void 0:In.className,Me,lt,qt),popupClassName:ne()(Wr,qt),style:Dn,editable:Xt,moreIcon:Hn,prefixCls:Wt,animated:Jr,indicatorSize:mn!=null?mn:In==null?void 0:In.indicatorSize})))};oi.TabPane=hr;var Qi=oi},17574:function(xn,er,x){"use strict";x.d(er,{default:function(){return ke}});var ge=x(23130),ue=x(26407),Q=x(52671),Te=x(8657),ne=x(92413),G=x(59301),B={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"},f=B,E=x(7657),h=function(ye,at){return G.createElement(E.Z,(0,ne.Z)({},ye,{ref:at,icon:f}))},Z=G.forwardRef(h),S=Z,_=x(92310),N=x.n(_),R=x(35654),I=x(71430),Y=x(36355),K=x(56082),se=x(62892),te=x(20648);const X=4;function W(fe){const{dropPosition:ye,dropLevelOffset:at,prefixCls:rt,indent:nt,direction:ut="ltr"}=fe,Nt=ut==="ltr"?"left":"right",zt=ut==="ltr"?"right":"left",Ht={[Nt]:-at*nt+X,[zt]:0};switch(ye){case-1:Ht.top=-3;break;case 1:Ht.bottom=-3;break;default:Ht.bottom=-3,Ht[Nt]=nt+X;break}return G.createElement("div",{style:Ht,className:`${rt}-drop-indicator`})}var j=x(71997),he=G.forwardRef((fe,ye)=>{const{getPrefixCls:at,direction:rt,virtual:nt,tree:ut}=G.useContext(Y.E_),{prefixCls:Nt,className:zt,showIcon:Ht=!1,showLine:cr,switcherIcon:or,blockNode:yr=!1,children:dr,checkable:$=!1,selectable:Xe=!0,draggable:L,motion:p,style:u}=fe,w=at("tree",Nt),ee=at(),Be=p!=null?p:Object.assign(Object.assign({},(0,se.Z)(ee)),{motionAppear:!1}),T=Object.assign(Object.assign({},fe),{checkable:$,selectable:Xe,showIcon:Ht,motion:Be,blockNode:yr,showLine:!!cr,dropIndicatorRender:W}),[ae,Ge]=(0,te.ZP)(w),Ee=G.useMemo(()=>{if(!L)return!1;let qe={};switch(typeof L){case"function":qe.nodeDraggable=L;break;case"object":qe=Object.assign({},L);break;default:break}return qe.icon!==!1&&(qe.icon=qe.icon||G.createElement(K.Z,null)),qe},[L]),me=qe=>G.createElement(j.Z,{prefixCls:w,switcherIcon:or,treeNodeProps:qe,showLine:cr});return ae(G.createElement(ge.Z,Object.assign({itemHeight:20,ref:ye,virtual:nt},T,{style:Object.assign(Object.assign({},ut==null?void 0:ut.style),u),prefixCls:w,className:N()({[`${w}-icon-hide`]:!Ht,[`${w}-block-node`]:yr,[`${w}-unselectable`]:!Xe,[`${w}-rtl`]:rt==="rtl"},ut==null?void 0:ut.className,zt,Ge),direction:rt,checkable:$&&G.createElement("span",{className:`${w}-checkbox-inner`}),selectable:Xe,switcherIcon:me,draggable:Ee}),dr))}),Ne;(function(fe){fe[fe.None=0]="None",fe[fe.Start=1]="Start",fe[fe.End=2]="End"})(Ne||(Ne={}));function Ce(fe,ye){function at(rt){const{key:nt,children:ut}=rt;ye(nt,rt)!==!1&&Ce(ut||[],ye)}fe.forEach(at)}function je(fe){let{treeData:ye,expandedKeys:at,startKey:rt,endKey:nt}=fe;const ut=[];let Nt=Ne.None;if(rt&&rt===nt)return[rt];if(!rt||!nt)return[];function zt(Ht){return Ht===rt||Ht===nt}return Ce(ye,Ht=>{if(Nt===Ne.End)return!1;if(zt(Ht)){if(ut.push(Ht),Nt===Ne.None)Nt=Ne.Start;else if(Nt===Ne.Start)return Nt=Ne.End,!1}else Nt===Ne.Start&&ut.push(Ht);return at.includes(Ht)}),ut}function q(fe,ye){const at=(0,ue.Z)(ye),rt=[];return Ce(fe,(nt,ut)=>{const Nt=at.indexOf(nt);return Nt!==-1&&(rt.push(ut),at.splice(Nt,1)),!!at.length}),rt}var ce=function(fe,ye){var at={};for(var rt in fe)Object.prototype.hasOwnProperty.call(fe,rt)&&ye.indexOf(rt)<0&&(at[rt]=fe[rt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(fe);nt<rt.length;nt++)ye.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,rt[nt])&&(at[rt[nt]]=fe[rt[nt]]);return at};function k(fe){const{isLeaf:ye,expanded:at}=fe;return ye?G.createElement(Q.Z,null):at?G.createElement(Te.Z,null):G.createElement(S,null)}function ot(fe){let{treeData:ye,children:at}=fe;return ye||(0,I.zn)(at)}const Le=(fe,ye)=>{var{defaultExpandAll:at,defaultExpandParent:rt,defaultExpandedKeys:nt}=fe,ut=ce(fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Nt=G.useRef(),zt=G.useRef(),Ht=()=>{const{keyEntities:Ee}=(0,I.I8)(ot(ut));let me;return at?me=Object.keys(Ee):rt?me=(0,R.r7)(ut.expandedKeys||nt||[],Ee):me=ut.expandedKeys||nt,me},[cr,or]=G.useState(ut.selectedKeys||ut.defaultSelectedKeys||[]),[yr,dr]=G.useState(()=>Ht());G.useEffect(()=>{"selectedKeys"in ut&&or(ut.selectedKeys)},[ut.selectedKeys]),G.useEffect(()=>{"expandedKeys"in ut&&dr(ut.expandedKeys)},[ut.expandedKeys]);const $=(Ee,me)=>{var qe;return"expandedKeys"in ut||dr(Ee),(qe=ut.onExpand)===null||qe===void 0?void 0:qe.call(ut,Ee,me)},Xe=(Ee,me)=>{var qe;const{multiple:_t}=ut,{node:pe,nativeEvent:st}=me,{key:At=""}=pe,Pe=ot(ut),Ie=Object.assign(Object.assign({},me),{selected:!0}),vt=(st==null?void 0:st.ctrlKey)||(st==null?void 0:st.metaKey),Ut=st==null?void 0:st.shiftKey;let Rt;_t&&vt?(Rt=Ee,Nt.current=At,zt.current=Rt,Ie.selectedNodes=q(Pe,Rt)):_t&&Ut?(Rt=Array.from(new Set([].concat((0,ue.Z)(zt.current||[]),(0,ue.Z)(je({treeData:Pe,expandedKeys:yr,startKey:At,endKey:Nt.current}))))),Ie.selectedNodes=q(Pe,Rt)):(Rt=[At],Nt.current=At,zt.current=Rt,Ie.selectedNodes=q(Pe,Rt)),(qe=ut.onSelect)===null||qe===void 0||qe.call(ut,Rt,Ie),"selectedKeys"in ut||or(Rt)},{getPrefixCls:L,direction:p}=G.useContext(Y.E_),{prefixCls:u,className:w,showIcon:ee=!0,expandAction:Be="click"}=ut,T=ce(ut,["prefixCls","className","showIcon","expandAction"]),ae=L("tree",u),Ge=N()(`${ae}-directory`,{[`${ae}-directory-rtl`]:p==="rtl"},w);return G.createElement(he,Object.assign({icon:k,ref:ye,blockNode:!0},T,{showIcon:ee,expandAction:Be,prefixCls:ae,className:Ge,expandedKeys:yr,selectedKeys:cr,onSelect:Xe,onExpand:$}))};var Re=G.forwardRef(Le);const ve=he;ve.DirectoryTree=Re,ve.TreeNode=ge.O;var ke=ve},20648:function(xn,er,x){"use strict";x.d(er,{TM:function(){return _},Yk:function(){return S}});var ge=x(93083),ue=x(98447),Q=x(17313),Te=x(8378),ne=x(37613),G=x(83116);const B=new ge.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),f=(N,R)=>({[`.${N}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${R.motionDurationSlow}`}}}),E=(N,R)=>({[`.${N}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:R.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${R.lineWidthBold}px solid ${R.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h=(N,R)=>{const{treeCls:I,treeNodeCls:Y,treeNodePadding:K,titleHeight:se,nodeSelectedBg:te,nodeHoverBg:X}=R,W=R.paddingXS;return{[I]:Object.assign(Object.assign({},(0,Q.Wf)(R)),{background:R.colorBgContainer,borderRadius:R.borderRadius,transition:`background-color ${R.motionDurationSlow}`,[`&${I}-rtl`]:{[`${I}-switcher`]:{"&_close":{[`${I}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${I}-active-focused)`]:Object.assign({},(0,Q.oN)(R)),[`${I}-list-holder-inner`]:{alignItems:"flex-start"},[`&${I}-block-node`]:{[`${I}-list-holder-inner`]:{alignItems:"stretch",[`${I}-node-content-wrapper`]:{flex:"auto"},[`${Y}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${R.colorPrimary}`,opacity:0,animationName:B,animationDuration:R.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Y}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${I}-node-content-wrapper`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${I}-node-content-wrapper`]:Object.assign({},(0,Q.oN)(R)),[`&:not(${Y}-disabled).filter-node ${I}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${I}-draggable-icon`]:{flexShrink:0,width:se,lineHeight:`${se}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${R.motionDurationSlow}`,[`${Y}:hover &`]:{opacity:.45}},[`&${Y}-disabled`]:{[`${I}-draggable-icon`]:{visibility:"hidden"}}}},[`${I}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:se}},[`${I}-draggable-icon`]:{visibility:"hidden"},[`${I}-switcher`]:Object.assign(Object.assign({},f(N,R)),{position:"relative",flex:"none",alignSelf:"stretch",width:se,margin:0,lineHeight:`${se}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${I}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:R.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-K,marginInlineStart:-1,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se/2*.8,height:se/2,borderBottom:`1px solid ${R.colorBorder}`,content:'""'}}}),[`${I}-checkbox`]:{top:"initial",marginInlineEnd:W},[`${I}-node-content-wrapper, ${I}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:se,margin:0,padding:`0 ${R.paddingXS/2}px`,color:"inherit",lineHeight:`${se}px`,background:"transparent",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:X},[`&${I}-node-selected`]:{backgroundColor:te},[`${I}-iconEle`]:{display:"inline-block",width:se,height:se,lineHeight:`${se}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${I}-unselectable ${I}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${I}-node-content-wrapper`]:Object.assign({lineHeight:`${se}px`,userSelect:"none"},E(N,R)),[`${Y}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${R.colorPrimary}`}},"&-show-line":{[`${I}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-K,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${I}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Y}-leaf-last`]:{[`${I}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${se/2}px !important`}}}}})}},Z=N=>{const{treeCls:R,treeNodeCls:I,treeNodePadding:Y,directoryNodeSelectedBg:K,directoryNodeSelectedColor:se}=N;return{[`${R}${R}-directory`]:{[I]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${N.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:N.controlItemBgHover}},"> *":{zIndex:1},[`${R}-switcher`]:{transition:`color ${N.motionDurationMid}`},[`${R}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${R}-node-selected`]:{color:se,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${R}-switcher`]:{color:se},[`${R}-node-content-wrapper`]:{color:se,background:"transparent"}}}}}},S=(N,R)=>{const I=`.${N}`,Y=`${I}-treenode`,K=R.paddingXS/2,se=(0,ne.TS)(R,{treeCls:I,treeNodeCls:Y,treeNodePadding:K});return[h(N,se),Z(se)]},_=N=>{const{controlHeightSM:R}=N;return{titleHeight:R,nodeHoverBg:N.controlItemBgHover,nodeSelectedBg:N.controlItemBgActive}};er.ZP=(0,G.Z)("Tree",(N,R)=>{let{prefixCls:I}=R;return[{[N.componentCls]:(0,ue.C2)(`${I}-checkbox`,N)},S(I,N),(0,Te.Z)(N)]},N=>{const{colorTextLightSolid:R,colorPrimary:I}=N;return Object.assign(Object.assign({},_(N)),{directoryNodeSelectedColor:R,directoryNodeSelectedBg:I})})},71997:function(xn,er,x){"use strict";x.d(er,{Z:function(){return Y}});var ge=x(92413),ue=x(59301),Q={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"},Te=Q,ne=x(7657),G=function(se,te){return ue.createElement(ne.Z,(0,ge.Z)({},se,{ref:te,icon:Te}))},B=ue.forwardRef(G),f=B,E=x(52671),h=x(58617),Z=x(15075),S=x(43531),_=x(92310),N=x.n(_),R=x(92343),Y=K=>{const{prefixCls:se,switcherIcon:te,treeNodeProps:X,showLine:W}=K,{isLeaf:j,expanded:le,loading:he}=X;if(he)return ue.createElement(h.Z,{className:`${se}-switcher-loading-icon`});let Ne;if(W&&typeof W=="object"&&(Ne=W.showLeafIcon),j){if(!W)return null;if(typeof Ne!="boolean"&&Ne){const q=typeof Ne=="function"?Ne(X):Ne,ce=`${se}-switcher-line-custom-icon`;return(0,R.l$)(q)?(0,R.Tm)(q,{className:N()(q.props.className||"",ce)}):q}return Ne?ue.createElement(E.Z,{className:`${se}-switcher-line-icon`}):ue.createElement("span",{className:`${se}-switcher-leaf-line`})}const Ce=`${se}-switcher-icon`,je=typeof te=="function"?te(X):te;return(0,R.l$)(je)?(0,R.Tm)(je,{className:N()(je.props.className||"",Ce)}):je!==void 0?je:W?le?ue.createElement(Z.Z,{className:`${se}-switcher-line-icon`}):ue.createElement(S.Z,{className:`${se}-switcher-line-icon`}):ue.createElement(f,{className:Ce})}},86251:function(xn,er){"use strict";er.byteLength=B,er.toByteArray=E,er.fromByteArray=S;for(var x=[],ge=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Te=0,ne=Q.length;Te<ne;++Te)x[Te]=Q[Te],ge[Q.charCodeAt(Te)]=Te;ge[45]=62,ge[95]=63;function G(_){var N=_.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=_.indexOf("=");R===-1&&(R=N);var I=R===N?0:4-R%4;return[R,I]}function B(_){var N=G(_),R=N[0],I=N[1];return(R+I)*3/4-I}function f(_,N,R){return(N+R)*3/4-R}function E(_){var N,R=G(_),I=R[0],Y=R[1],K=new ue(f(_,I,Y)),se=0,te=Y>0?I-4:I,X;for(X=0;X<te;X+=4)N=ge[_.charCodeAt(X)]<<18|ge[_.charCodeAt(X+1)]<<12|ge[_.charCodeAt(X+2)]<<6|ge[_.charCodeAt(X+3)],K[se++]=N>>16&255,K[se++]=N>>8&255,K[se++]=N&255;return Y===2&&(N=ge[_.charCodeAt(X)]<<2|ge[_.charCodeAt(X+1)]>>4,K[se++]=N&255),Y===1&&(N=ge[_.charCodeAt(X)]<<10|ge[_.charCodeAt(X+1)]<<4|ge[_.charCodeAt(X+2)]>>2,K[se++]=N>>8&255,K[se++]=N&255),K}function h(_){return x[_>>18&63]+x[_>>12&63]+x[_>>6&63]+x[_&63]}function Z(_,N,R){for(var I,Y=[],K=N;K<R;K+=3)I=(_[K]<<16&16711680)+(_[K+1]<<8&65280)+(_[K+2]&255),Y.push(h(I));return Y.join("")}function S(_){for(var N,R=_.length,I=R%3,Y=[],K=16383,se=0,te=R-I;se<te;se+=K)Y.push(Z(_,se,se+K>te?te:se+K));return I===1?(N=_[R-1],Y.push(x[N>>2]+x[N<<4&63]+"==")):I===2&&(N=(_[R-2]<<8)+_[R-1],Y.push(x[N>>10]+x[N>>4&63]+x[N<<2&63]+"=")),Y.join("")}},19208:function(xn,er,x){"use strict";var ge;var ue=x(86251),Q=x(67467),Te=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;er.lW=f,ge=se,er.h2=50;var ne=2147483647;ge=ne,f.TYPED_ARRAY_SUPPORT=G(),!f.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function G(){try{var L=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(L,p),L.foo()===42}catch(u){return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function B(L){if(L>ne)throw new RangeError('The value "'+L+'" is invalid for option "size"');var p=new Uint8Array(L);return Object.setPrototypeOf(p,f.prototype),p}function f(L,p,u){if(typeof L=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(L)}return E(L,p,u)}f.poolSize=8192;function E(L,p,u){if(typeof L=="string")return _(L,p);if(ArrayBuffer.isView(L))return R(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(dr(L,ArrayBuffer)||L&&dr(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(dr(L,SharedArrayBuffer)||L&&dr(L.buffer,SharedArrayBuffer)))return I(L,p,u);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var w=L.valueOf&&L.valueOf();if(w!=null&&w!==L)return f.from(w,p,u);var ee=Y(L);if(ee)return ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return f.from(L[Symbol.toPrimitive]("string"),p,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}f.from=function(L,p,u){return E(L,p,u)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function Z(L,p,u){return h(L),L<=0?B(L):p!==void 0?typeof u=="string"?B(L).fill(p,u):B(L).fill(p):B(L)}f.alloc=function(L,p,u){return Z(L,p,u)};function S(L){return h(L),B(L<0?0:K(L)|0)}f.allocUnsafe=function(L){return S(L)},f.allocUnsafeSlow=function(L){return S(L)};function _(L,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);var u=te(L,p)|0,w=B(u),ee=w.write(L,p);return ee!==u&&(w=w.slice(0,ee)),w}function N(L){for(var p=L.length<0?0:K(L.length)|0,u=B(p),w=0;w<p;w+=1)u[w]=L[w]&255;return u}function R(L){if(dr(L,Uint8Array)){var p=new Uint8Array(L);return I(p.buffer,p.byteOffset,p.byteLength)}return N(L)}function I(L,p,u){if(p<0||L.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<p+(u||0))throw new RangeError('"length" is outside of buffer bounds');var w;return p===void 0&&u===void 0?w=new Uint8Array(L):u===void 0?w=new Uint8Array(L,p):w=new Uint8Array(L,p,u),Object.setPrototypeOf(w,f.prototype),w}function Y(L){if(f.isBuffer(L)){var p=K(L.length)|0,u=B(p);return u.length===0||L.copy(u,0,0,p),u}if(L.length!==void 0)return typeof L.length!="number"||$(L.length)?B(0):N(L);if(L.type==="Buffer"&&Array.isArray(L.data))return N(L.data)}function K(L){if(L>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return L|0}function se(L){return+L!=L&&(L=0),f.alloc(+L)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,u){if(dr(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),dr(u,Uint8Array)&&(u=f.from(u,u.offset,u.byteLength)),!f.isBuffer(p)||!f.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===u)return 0;for(var w=p.length,ee=u.length,Be=0,T=Math.min(w,ee);Be<T;++Be)if(p[Be]!==u[Be]){w=p[Be],ee=u[Be];break}return w<ee?-1:ee<w?1:0},f.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(p,u){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return f.alloc(0);var w;if(u===void 0)for(u=0,w=0;w<p.length;++w)u+=p[w].length;var ee=f.allocUnsafe(u),Be=0;for(w=0;w<p.length;++w){var T=p[w];if(dr(T,Uint8Array))Be+T.length>ee.length?f.from(T).copy(ee,Be):Uint8Array.prototype.set.call(ee,T,Be);else if(f.isBuffer(T))T.copy(ee,Be);else throw new TypeError('"list" argument must be an Array of Buffers');Be+=T.length}return ee};function te(L,p){if(f.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||dr(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);var u=L.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&u===0)return 0;for(var ee=!1;;)switch(p){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return zt(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return or(L).length;default:if(ee)return w?-1:zt(L).length;p=(""+p).toLowerCase(),ee=!0}}f.byteLength=te;function X(L,p,u){var w=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,p>>>=0,u<=p))return"";for(L||(L="utf8");;)switch(L){case"hex":return ve(this,p,u);case"utf8":case"utf-8":return k(this,p,u);case"ascii":return xe(this,p,u);case"latin1":case"binary":return Re(this,p,u);case"base64":return ce(this,p,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,p,u);default:if(w)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),w=!0}}f.prototype._isBuffer=!0;function W(L,p,u){var w=L[p];L[p]=L[u],L[u]=w}f.prototype.swap16=function(){var p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<p;u+=2)W(this,u,u+1);return this},f.prototype.swap32=function(){var p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<p;u+=4)W(this,u,u+3),W(this,u+1,u+2);return this},f.prototype.swap64=function(){var p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<p;u+=8)W(this,u,u+7),W(this,u+1,u+6),W(this,u+2,u+5),W(this,u+3,u+4);return this},f.prototype.toString=function(){var p=this.length;return p===0?"":arguments.length===0?k(this,0,p):X.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(p){if(!f.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:f.compare(this,p)===0},f.prototype.inspect=function(){var p="",u=er.h2;return p=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(p+=" ... "),"<Buffer "+p+">"},Te&&(f.prototype[Te]=f.prototype.inspect),f.prototype.compare=function(p,u,w,ee,Be){if(dr(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),!f.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(u===void 0&&(u=0),w===void 0&&(w=p?p.length:0),ee===void 0&&(ee=0),Be===void 0&&(Be=this.length),u<0||w>p.length||ee<0||Be>this.length)throw new RangeError("out of range index");if(ee>=Be&&u>=w)return 0;if(ee>=Be)return-1;if(u>=w)return 1;if(u>>>=0,w>>>=0,ee>>>=0,Be>>>=0,this===p)return 0;for(var T=Be-ee,ae=w-u,Ge=Math.min(T,ae),Ee=this.slice(ee,Be),me=p.slice(u,w),qe=0;qe<Ge;++qe)if(Ee[qe]!==me[qe]){T=Ee[qe],ae=me[qe];break}return T<ae?-1:ae<T?1:0};function j(L,p,u,w,ee){if(L.length===0)return-1;if(typeof u=="string"?(w=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,$(u)&&(u=ee?0:L.length-1),u<0&&(u=L.length+u),u>=L.length){if(ee)return-1;u=L.length-1}else if(u<0)if(ee)u=0;else return-1;if(typeof p=="string"&&(p=f.from(p,w)),f.isBuffer(p))return p.length===0?-1:le(L,p,u,w,ee);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(L,p,u):Uint8Array.prototype.lastIndexOf.call(L,p,u):le(L,[p],u,w,ee);throw new TypeError("val must be string, number or Buffer")}function le(L,p,u,w,ee){var Be=1,T=L.length,ae=p.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(L.length<2||p.length<2)return-1;Be=2,T/=2,ae/=2,u/=2}function Ge(pe,st){return Be===1?pe[st]:pe.readUInt16BE(st*Be)}var Ee;if(ee){var me=-1;for(Ee=u;Ee<T;Ee++)if(Ge(L,Ee)===Ge(p,me===-1?0:Ee-me)){if(me===-1&&(me=Ee),Ee-me+1===ae)return me*Be}else me!==-1&&(Ee-=Ee-me),me=-1}else for(u+ae>T&&(u=T-ae),Ee=u;Ee>=0;Ee--){for(var qe=!0,_t=0;_t<ae;_t++)if(Ge(L,Ee+_t)!==Ge(p,_t)){qe=!1;break}if(qe)return Ee}return-1}f.prototype.includes=function(p,u,w){return this.indexOf(p,u,w)!==-1},f.prototype.indexOf=function(p,u,w){return j(this,p,u,w,!0)},f.prototype.lastIndexOf=function(p,u,w){return j(this,p,u,w,!1)};function he(L,p,u,w){u=Number(u)||0;var ee=L.length-u;w?(w=Number(w),w>ee&&(w=ee)):w=ee;var Be=p.length;w>Be/2&&(w=Be/2);for(var T=0;T<w;++T){var ae=parseInt(p.substr(T*2,2),16);if($(ae))return T;L[u+T]=ae}return T}function Ne(L,p,u,w){return yr(zt(p,L.length-u),L,u,w)}function Ce(L,p,u,w){return yr(Ht(p),L,u,w)}function je(L,p,u,w){return yr(or(p),L,u,w)}function q(L,p,u,w){return yr(cr(p,L.length-u),L,u,w)}f.prototype.write=function(p,u,w,ee){if(u===void 0)ee="utf8",w=this.length,u=0;else if(w===void 0&&typeof u=="string")ee=u,w=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(w)?(w=w>>>0,ee===void 0&&(ee="utf8")):(ee=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Be=this.length-u;if((w===void 0||w>Be)&&(w=Be),p.length>0&&(w<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var T=!1;;)switch(ee){case"hex":return he(this,p,u,w);case"utf8":case"utf-8":return Ne(this,p,u,w);case"ascii":case"latin1":case"binary":return Ce(this,p,u,w);case"base64":return je(this,p,u,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,p,u,w);default:if(T)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),T=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ce(L,p,u){return p===0&&u===L.length?ue.fromByteArray(L):ue.fromByteArray(L.slice(p,u))}function k(L,p,u){u=Math.min(L.length,u);for(var w=[],ee=p;ee<u;){var Be=L[ee],T=null,ae=Be>239?4:Be>223?3:Be>191?2:1;if(ee+ae<=u){var Ge,Ee,me,qe;switch(ae){case 1:Be<128&&(T=Be);break;case 2:Ge=L[ee+1],(Ge&192)===128&&(qe=(Be&31)<<6|Ge&63,qe>127&&(T=qe));break;case 3:Ge=L[ee+1],Ee=L[ee+2],(Ge&192)===128&&(Ee&192)===128&&(qe=(Be&15)<<12|(Ge&63)<<6|Ee&63,qe>2047&&(qe<55296||qe>57343)&&(T=qe));break;case 4:Ge=L[ee+1],Ee=L[ee+2],me=L[ee+3],(Ge&192)===128&&(Ee&192)===128&&(me&192)===128&&(qe=(Be&15)<<18|(Ge&63)<<12|(Ee&63)<<6|me&63,qe>65535&&qe<1114112&&(T=qe))}}T===null?(T=65533,ae=1):T>65535&&(T-=65536,w.push(T>>>10&1023|55296),T=56320|T&1023),w.push(T),ee+=ae}return Le(w)}var ot=4096;function Le(L){var p=L.length;if(p<=ot)return String.fromCharCode.apply(String,L);for(var u="",w=0;w<p;)u+=String.fromCharCode.apply(String,L.slice(w,w+=ot));return u}function xe(L,p,u){var w="";u=Math.min(L.length,u);for(var ee=p;ee<u;++ee)w+=String.fromCharCode(L[ee]&127);return w}function Re(L,p,u){var w="";u=Math.min(L.length,u);for(var ee=p;ee<u;++ee)w+=String.fromCharCode(L[ee]);return w}function ve(L,p,u){var w=L.length;(!p||p<0)&&(p=0),(!u||u<0||u>w)&&(u=w);for(var ee="",Be=p;Be<u;++Be)ee+=Xe[L[Be]];return ee}function ke(L,p,u){for(var w=L.slice(p,u),ee="",Be=0;Be<w.length-1;Be+=2)ee+=String.fromCharCode(w[Be]+w[Be+1]*256);return ee}f.prototype.slice=function(p,u){var w=this.length;p=~~p,u=u===void 0?w:~~u,p<0?(p+=w,p<0&&(p=0)):p>w&&(p=w),u<0?(u+=w,u<0&&(u=0)):u>w&&(u=w),u<p&&(u=p);var ee=this.subarray(p,u);return Object.setPrototypeOf(ee,f.prototype),ee};function fe(L,p,u){if(L%1!==0||L<0)throw new RangeError("offset is not uint");if(L+p>u)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,u,w){p=p>>>0,u=u>>>0,w||fe(p,u,this.length);for(var ee=this[p],Be=1,T=0;++T<u&&(Be*=256);)ee+=this[p+T]*Be;return ee},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,u,w){p=p>>>0,u=u>>>0,w||fe(p,u,this.length);for(var ee=this[p+--u],Be=1;u>0&&(Be*=256);)ee+=this[p+--u]*Be;return ee},f.prototype.readUint8=f.prototype.readUInt8=function(p,u){return p=p>>>0,u||fe(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,u){return p=p>>>0,u||fe(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,u){return p=p>>>0,u||fe(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,u){return p=p>>>0,u||fe(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(p,u){return p=p>>>0,u||fe(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readIntLE=function(p,u,w){p=p>>>0,u=u>>>0,w||fe(p,u,this.length);for(var ee=this[p],Be=1,T=0;++T<u&&(Be*=256);)ee+=this[p+T]*Be;return Be*=128,ee>=Be&&(ee-=Math.pow(2,8*u)),ee},f.prototype.readIntBE=function(p,u,w){p=p>>>0,u=u>>>0,w||fe(p,u,this.length);for(var ee=u,Be=1,T=this[p+--ee];ee>0&&(Be*=256);)T+=this[p+--ee]*Be;return Be*=128,T>=Be&&(T-=Math.pow(2,8*u)),T},f.prototype.readInt8=function(p,u){return p=p>>>0,u||fe(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,u){p=p>>>0,u||fe(p,2,this.length);var w=this[p]|this[p+1]<<8;return w&32768?w|4294901760:w},f.prototype.readInt16BE=function(p,u){p=p>>>0,u||fe(p,2,this.length);var w=this[p+1]|this[p]<<8;return w&32768?w|4294901760:w},f.prototype.readInt32LE=function(p,u){return p=p>>>0,u||fe(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,u){return p=p>>>0,u||fe(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readFloatLE=function(p,u){return p=p>>>0,u||fe(p,4,this.length),Q.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,u){return p=p>>>0,u||fe(p,4,this.length),Q.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,u){return p=p>>>0,u||fe(p,8,this.length),Q.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,u){return p=p>>>0,u||fe(p,8,this.length),Q.read(this,p,!1,52,8)};function ye(L,p,u,w,ee,Be){if(!f.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>ee||p<Be)throw new RangeError('"value" argument is out of bounds');if(u+w>L.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,u,w,ee){if(p=+p,u=u>>>0,w=w>>>0,!ee){var Be=Math.pow(2,8*w)-1;ye(this,p,u,w,Be,0)}var T=1,ae=0;for(this[u]=p&255;++ae<w&&(T*=256);)this[u+ae]=p/T&255;return u+w},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,u,w,ee){if(p=+p,u=u>>>0,w=w>>>0,!ee){var Be=Math.pow(2,8*w)-1;ye(this,p,u,w,Be,0)}var T=w-1,ae=1;for(this[u+T]=p&255;--T>=0&&(ae*=256);)this[u+T]=p/ae&255;return u+w},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,1,255,0),this[u]=p&255,u+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,2,65535,0),this[u]=p&255,this[u+1]=p>>>8,u+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,2,65535,0),this[u]=p>>>8,this[u+1]=p&255,u+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,4,4294967295,0),this[u+3]=p>>>24,this[u+2]=p>>>16,this[u+1]=p>>>8,this[u]=p&255,u+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,4,4294967295,0),this[u]=p>>>24,this[u+1]=p>>>16,this[u+2]=p>>>8,this[u+3]=p&255,u+4},f.prototype.writeIntLE=function(p,u,w,ee){if(p=+p,u=u>>>0,!ee){var Be=Math.pow(2,8*w-1);ye(this,p,u,w,Be-1,-Be)}var T=0,ae=1,Ge=0;for(this[u]=p&255;++T<w&&(ae*=256);)p<0&&Ge===0&&this[u+T-1]!==0&&(Ge=1),this[u+T]=(p/ae>>0)-Ge&255;return u+w},f.prototype.writeIntBE=function(p,u,w,ee){if(p=+p,u=u>>>0,!ee){var Be=Math.pow(2,8*w-1);ye(this,p,u,w,Be-1,-Be)}var T=w-1,ae=1,Ge=0;for(this[u+T]=p&255;--T>=0&&(ae*=256);)p<0&&Ge===0&&this[u+T+1]!==0&&(Ge=1),this[u+T]=(p/ae>>0)-Ge&255;return u+w},f.prototype.writeInt8=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,1,127,-128),p<0&&(p=255+p+1),this[u]=p&255,u+1},f.prototype.writeInt16LE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,2,32767,-32768),this[u]=p&255,this[u+1]=p>>>8,u+2},f.prototype.writeInt16BE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,2,32767,-32768),this[u]=p>>>8,this[u+1]=p&255,u+2},f.prototype.writeInt32LE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,4,2147483647,-2147483648),this[u]=p&255,this[u+1]=p>>>8,this[u+2]=p>>>16,this[u+3]=p>>>24,u+4},f.prototype.writeInt32BE=function(p,u,w){return p=+p,u=u>>>0,w||ye(this,p,u,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[u]=p>>>24,this[u+1]=p>>>16,this[u+2]=p>>>8,this[u+3]=p&255,u+4};function at(L,p,u,w,ee,Be){if(u+w>L.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function rt(L,p,u,w,ee){return p=+p,u=u>>>0,ee||at(L,p,u,4,34028234663852886e22,-34028234663852886e22),Q.write(L,p,u,w,23,4),u+4}f.prototype.writeFloatLE=function(p,u,w){return rt(this,p,u,!0,w)},f.prototype.writeFloatBE=function(p,u,w){return rt(this,p,u,!1,w)};function nt(L,p,u,w,ee){return p=+p,u=u>>>0,ee||at(L,p,u,8,17976931348623157e292,-17976931348623157e292),Q.write(L,p,u,w,52,8),u+8}f.prototype.writeDoubleLE=function(p,u,w){return nt(this,p,u,!0,w)},f.prototype.writeDoubleBE=function(p,u,w){return nt(this,p,u,!1,w)},f.prototype.copy=function(p,u,w,ee){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(w||(w=0),!ee&&ee!==0&&(ee=this.length),u>=p.length&&(u=p.length),u||(u=0),ee>0&&ee<w&&(ee=w),ee===w||p.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),p.length-u<ee-w&&(ee=p.length-u+w);var Be=ee-w;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,w,ee):Uint8Array.prototype.set.call(p,this.subarray(w,ee),u),Be},f.prototype.fill=function(p,u,w,ee){if(typeof p=="string"){if(typeof u=="string"?(ee=u,u=0,w=this.length):typeof w=="string"&&(ee=w,w=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!f.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(p.length===1){var Be=p.charCodeAt(0);(ee==="utf8"&&Be<128||ee==="latin1")&&(p=Be)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(u<0||this.length<u||this.length<w)throw new RangeError("Out of range index");if(w<=u)return this;u=u>>>0,w=w===void 0?this.length:w>>>0,p||(p=0);var T;if(typeof p=="number")for(T=u;T<w;++T)this[T]=p;else{var ae=f.isBuffer(p)?p:f.from(p,ee),Ge=ae.length;if(Ge===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(T=0;T<w-u;++T)this[T+u]=ae[T%Ge]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function Nt(L){if(L=L.split("=")[0],L=L.trim().replace(ut,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function zt(L,p){p=p||1/0;for(var u,w=L.length,ee=null,Be=[],T=0;T<w;++T){if(u=L.charCodeAt(T),u>55295&&u<57344){if(!ee){if(u>56319){(p-=3)>-1&&Be.push(239,191,189);continue}else if(T+1===w){(p-=3)>-1&&Be.push(239,191,189);continue}ee=u;continue}if(u<56320){(p-=3)>-1&&Be.push(239,191,189),ee=u;continue}u=(ee-55296<<10|u-56320)+65536}else ee&&(p-=3)>-1&&Be.push(239,191,189);if(ee=null,u<128){if((p-=1)<0)break;Be.push(u)}else if(u<2048){if((p-=2)<0)break;Be.push(u>>6|192,u&63|128)}else if(u<65536){if((p-=3)<0)break;Be.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((p-=4)<0)break;Be.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return Be}function Ht(L){for(var p=[],u=0;u<L.length;++u)p.push(L.charCodeAt(u)&255);return p}function cr(L,p){for(var u,w,ee,Be=[],T=0;T<L.length&&!((p-=2)<0);++T)u=L.charCodeAt(T),w=u>>8,ee=u%256,Be.push(ee),Be.push(w);return Be}function or(L){return ue.toByteArray(Nt(L))}function yr(L,p,u,w){for(var ee=0;ee<w&&!(ee+u>=p.length||ee>=L.length);++ee)p[ee+u]=L[ee];return ee}function dr(L,p){return L instanceof p||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===p.name}function $(L){return L!==L}var Xe=function(){for(var L="0123456789abcdef",p=new Array(256),u=0;u<16;++u)for(var w=u*16,ee=0;ee<16;++ee)p[w+ee]=L[u]+L[ee];return p}()},64270:function(xn){(function(er,x){xn.exports=x()})(this,function(){"use strict";var er=function(m,d){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var re in g)Object.prototype.hasOwnProperty.call(g,re)&&(y[re]=g[re])},er(m,d)};function x(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");er(m,d);function y(){this.constructor=m}m.prototype=d===null?Object.create(d):(y.prototype=d.prototype,new y)}var ge=function(){return ge=Object.assign||function(d){for(var y,g=1,re=arguments.length;g<re;g++){y=arguments[g];for(var Fe in y)Object.prototype.hasOwnProperty.call(y,Fe)&&(d[Fe]=y[Fe])}return d},ge.apply(this,arguments)};function ue(m,d,y,g){function re(Fe){return Fe instanceof y?Fe:new y(function(tt){tt(Fe)})}return new(y||(y=Promise))(function(Fe,tt){function Ct(mr){try{ir(g.next(mr))}catch(Br){tt(Br)}}function xt(mr){try{ir(g.throw(mr))}catch(Br){tt(Br)}}function ir(mr){mr.done?Fe(mr.value):re(mr.value).then(Ct,xt)}ir((g=g.apply(m,d||[])).next())})}function Q(m,d){var y={label:0,sent:function(){if(Fe[0]&1)throw Fe[1];return Fe[1]},trys:[],ops:[]},g,re,Fe,tt;return tt={next:Ct(0),throw:Ct(1),return:Ct(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function Ct(ir){return function(mr){return xt([ir,mr])}}function xt(ir){if(g)throw new TypeError("Generator is already executing.");for(;y;)try{if(g=1,re&&(Fe=ir[0]&2?re.return:ir[0]?re.throw||((Fe=re.return)&&Fe.call(re),0):re.next)&&!(Fe=Fe.call(re,ir[1])).done)return Fe;switch(re=0,Fe&&(ir=[ir[0]&2,Fe.value]),ir[0]){case 0:case 1:Fe=ir;break;case 4:return y.label++,{value:ir[1],done:!1};case 5:y.label++,re=ir[1],ir=[0];continue;case 7:ir=y.ops.pop(),y.trys.pop();continue;default:if(Fe=y.trys,!(Fe=Fe.length>0&&Fe[Fe.length-1])&&(ir[0]===6||ir[0]===2)){y=0;continue}if(ir[0]===3&&(!Fe||ir[1]>Fe[0]&&ir[1]<Fe[3])){y.label=ir[1];break}if(ir[0]===6&&y.label<Fe[1]){y.label=Fe[1],Fe=ir;break}if(Fe&&y.label<Fe[2]){y.label=Fe[2],y.ops.push(ir);break}Fe[2]&&y.ops.pop(),y.trys.pop();continue}ir=d.call(m,y)}catch(mr){ir=[6,mr],re=0}finally{g=Fe=0}if(ir[0]&5)throw ir[1];return{value:ir[0]?ir[1]:void 0,done:!0}}}function Te(m,d,y){if(y||arguments.length===2)for(var g=0,re=d.length,Fe;g<re;g++)(Fe||!(g in d))&&(Fe||(Fe=Array.prototype.slice.call(d,0,g)),Fe[g]=d[g]);return m.concat(Fe||d)}for(var ne=function(){function m(d,y,g,re){this.left=d,this.top=y,this.width=g,this.height=re}return m.prototype.add=function(d,y,g,re){return new m(this.left+d,this.top+y,this.width+g,this.height+re)},m.fromClientRect=function(d,y){return new m(y.left+d.windowBounds.left,y.top+d.windowBounds.top,y.width,y.height)},m.fromDOMRectList=function(d,y){var g=Array.from(y).find(function(re){return re.width!==0});return g?new m(g.left+d.windowBounds.left,g.top+d.windowBounds.top,g.width,g.height):m.EMPTY},m.EMPTY=new m(0,0,0,0),m}(),G=function(m,d){return ne.fromClientRect(m,d.getBoundingClientRect())},B=function(m){var d=m.body,y=m.documentElement;if(!d||!y)throw new Error("Unable to get document size");var g=Math.max(Math.max(d.scrollWidth,y.scrollWidth),Math.max(d.offsetWidth,y.offsetWidth),Math.max(d.clientWidth,y.clientWidth)),re=Math.max(Math.max(d.scrollHeight,y.scrollHeight),Math.max(d.offsetHeight,y.offsetHeight),Math.max(d.clientHeight,y.clientHeight));return new ne(0,0,g,re)},f=function(m){for(var d=[],y=0,g=m.length;y<g;){var re=m.charCodeAt(y++);if(re>=55296&&re<=56319&&y<g){var Fe=m.charCodeAt(y++);(Fe&64512)===56320?d.push(((re&1023)<<10)+(Fe&1023)+65536):(d.push(re),y--)}else d.push(re)}return d},E=function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,m);var y=m.length;if(!y)return"";for(var g=[],re=-1,Fe="";++re<y;){var tt=m[re];tt<=65535?g.push(tt):(tt-=65536,g.push((tt>>10)+55296,tt%1024+56320)),(re+1===y||g.length>16384)&&(Fe+=String.fromCharCode.apply(String,g),g.length=0)}return Fe},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),S=0;S<h.length;S++)Z[h.charCodeAt(S)]=S;for(var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),R=0;R<_.length;R++)N[_.charCodeAt(R)]=R;for(var I=function(m){var d=m.length*.75,y=m.length,g,re=0,Fe,tt,Ct,xt;m[m.length-1]==="="&&(d--,m[m.length-2]==="="&&d--);var ir=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),mr=Array.isArray(ir)?ir:new Uint8Array(ir);for(g=0;g<y;g+=4)Fe=N[m.charCodeAt(g)],tt=N[m.charCodeAt(g+1)],Ct=N[m.charCodeAt(g+2)],xt=N[m.charCodeAt(g+3)],mr[re++]=Fe<<2|tt>>4,mr[re++]=(tt&15)<<4|Ct>>2,mr[re++]=(Ct&3)<<6|xt&63;return ir},Y=function(m){for(var d=m.length,y=[],g=0;g<d;g+=2)y.push(m[g+1]<<8|m[g]);return y},K=function(m){for(var d=m.length,y=[],g=0;g<d;g+=4)y.push(m[g+3]<<24|m[g+2]<<16|m[g+1]<<8|m[g]);return y},se=5,te=11,X=2,W=te-se,j=65536>>se,le=1<<se,he=le-1,Ne=1024>>se,Ce=j+Ne,je=Ce,q=32,ce=je+q,k=65536>>te,ot=1<<W,Le=ot-1,xe=function(m,d,y){return m.slice?m.slice(d,y):new Uint16Array(Array.prototype.slice.call(m,d,y))},Re=function(m,d,y){return m.slice?m.slice(d,y):new Uint32Array(Array.prototype.slice.call(m,d,y))},ve=function(m,d){var y=I(m),g=Array.isArray(y)?K(y):new Uint32Array(y),re=Array.isArray(y)?Y(y):new Uint16Array(y),Fe=24,tt=xe(re,Fe/2,g[4]/2),Ct=g[5]===2?xe(re,(Fe+g[4])/2):Re(g,Math.ceil((Fe+g[4])/4));return new ke(g[0],g[1],g[2],g[3],tt,Ct)},ke=function(){function m(d,y,g,re,Fe,tt){this.initialValue=d,this.errorValue=y,this.highStart=g,this.highValueIndex=re,this.index=Fe,this.data=tt}return m.prototype.get=function(d){var y;if(d>=0){if(d<55296||d>56319&&d<=65535)return y=this.index[d>>se],y=(y<<X)+(d&he),this.data[y];if(d<=65535)return y=this.index[j+(d-55296>>se)],y=(y<<X)+(d&he),this.data[y];if(d<this.highStart)return y=ce-k+(d>>te),y=this.index[y],y+=d>>se&Le,y=this.index[y],y=(y<<X)+(d&he),this.data[y];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},m}(),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),at=0;at<fe.length;at++)ye[fe.charCodeAt(at)]=at;var rt="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",nt=50,ut=1,Nt=2,zt=3,Ht=4,cr=5,or=7,yr=8,dr=9,$=10,Xe=11,L=12,p=13,u=14,w=15,ee=16,Be=17,T=18,ae=19,Ge=20,Ee=21,me=22,qe=23,_t=24,pe=25,st=26,At=27,Pe=28,Ie=29,vt=30,Ut=31,Rt=32,hr=33,br=34,Mr=35,Ur=36,Qr=37,rr=38,Ar=39,jr=40,cn=41,Tn=42,en=43,Qn=[9001,65288],li="!",Pr="\xD7",ti="\xF7",yi=ve(rt),ci=[vt,Ur],Ci=[ut,Nt,zt,cr],hi=[$,yr],Ri=[At,st],ba=Ci.concat(hi),Xi=[rr,Ar,jr,br,Mr],_i=[w,p],oi=function(m,d){d===void 0&&(d="strict");var y=[],g=[],re=[];return m.forEach(function(Fe,tt){var Ct=yi.get(Fe);if(Ct>nt?(re.push(!0),Ct-=nt):re.push(!1),["normal","auto","loose"].indexOf(d)!==-1&&[8208,8211,12316,12448].indexOf(Fe)!==-1)return g.push(tt),y.push(ee);if(Ct===Ht||Ct===Xe){if(tt===0)return g.push(tt),y.push(vt);var xt=y[tt-1];return ba.indexOf(xt)===-1?(g.push(g[tt-1]),y.push(xt)):(g.push(tt),y.push(vt))}if(g.push(tt),Ct===Ut)return y.push(d==="strict"?Ee:Qr);if(Ct===Tn||Ct===Ie)return y.push(vt);if(Ct===en)return Fe>=131072&&Fe<=196605||Fe>=196608&&Fe<=262141?y.push(Qr):y.push(vt);y.push(Ct)}),[g,y,re]},Qi=function(m,d,y,g){var re=g[y];if(Array.isArray(m)?m.indexOf(re)!==-1:m===re)for(var Fe=y;Fe<=g.length;){Fe++;var tt=g[Fe];if(tt===d)return!0;if(tt!==$)break}if(re===$)for(var Fe=y;Fe>0;){Fe--;var Ct=g[Fe];if(Array.isArray(m)?m.indexOf(Ct)!==-1:m===Ct)for(var xt=y;xt<=g.length;){xt++;var tt=g[xt];if(tt===d)return!0;if(tt!==$)break}if(Ct!==$)break}return!1},be=function(m,d){for(var y=m;y>=0;){var g=d[y];if(g===$)y--;else return g}return 0},Ue=function(m,d,y,g,re){if(y[g]===0)return Pr;var Fe=g-1;if(Array.isArray(re)&&re[Fe]===!0)return Pr;var tt=Fe-1,Ct=Fe+1,xt=d[Fe],ir=tt>=0?d[tt]:0,mr=d[Ct];if(xt===Nt&&mr===zt)return Pr;if(Ci.indexOf(xt)!==-1)return li;if(Ci.indexOf(mr)!==-1||hi.indexOf(mr)!==-1)return Pr;if(be(Fe,d)===yr)return ti;if(yi.get(m[Fe])===Xe||(xt===Rt||xt===hr)&&yi.get(m[Ct])===Xe||xt===or||mr===or||xt===dr||[$,p,w].indexOf(xt)===-1&&mr===dr||[Be,T,ae,_t,Pe].indexOf(mr)!==-1||be(Fe,d)===me||Qi(qe,me,Fe,d)||Qi([Be,T],Ee,Fe,d)||Qi(L,L,Fe,d))return Pr;if(xt===$)return ti;if(xt===qe||mr===qe)return Pr;if(mr===ee||xt===ee)return ti;if([p,w,Ee].indexOf(mr)!==-1||xt===u||ir===Ur&&_i.indexOf(xt)!==-1||xt===Pe&&mr===Ur||mr===Ge||ci.indexOf(mr)!==-1&&xt===pe||ci.indexOf(xt)!==-1&&mr===pe||xt===At&&[Qr,Rt,hr].indexOf(mr)!==-1||[Qr,Rt,hr].indexOf(xt)!==-1&&mr===st||ci.indexOf(xt)!==-1&&Ri.indexOf(mr)!==-1||Ri.indexOf(xt)!==-1&&ci.indexOf(mr)!==-1||[At,st].indexOf(xt)!==-1&&(mr===pe||[me,w].indexOf(mr)!==-1&&d[Ct+1]===pe)||[me,w].indexOf(xt)!==-1&&mr===pe||xt===pe&&[pe,Pe,_t].indexOf(mr)!==-1)return Pr;if([pe,Pe,_t,Be,T].indexOf(mr)!==-1)for(var Br=Fe;Br>=0;){var o=d[Br];if(o===pe)return Pr;if([Pe,_t].indexOf(o)!==-1)Br--;else break}if([At,st].indexOf(mr)!==-1)for(var Br=[Be,T].indexOf(xt)!==-1?tt:Fe;Br>=0;){var o=d[Br];if(o===pe)return Pr;if([Pe,_t].indexOf(o)!==-1)Br--;else break}if(rr===xt&&[rr,Ar,br,Mr].indexOf(mr)!==-1||[Ar,br].indexOf(xt)!==-1&&[Ar,jr].indexOf(mr)!==-1||[jr,Mr].indexOf(xt)!==-1&&mr===jr||Xi.indexOf(xt)!==-1&&[Ge,st].indexOf(mr)!==-1||Xi.indexOf(mr)!==-1&&xt===At||ci.indexOf(xt)!==-1&&ci.indexOf(mr)!==-1||xt===_t&&ci.indexOf(mr)!==-1||ci.concat(pe).indexOf(xt)!==-1&&mr===me&&Qn.indexOf(m[Ct])===-1||ci.concat(pe).indexOf(mr)!==-1&&xt===T)return Pr;if(xt===cn&&mr===cn){for(var b=y[Fe],D=1;b>0&&(b--,d[b]===cn);)D++;if(D%2!==0)return Pr}return xt===Rt&&mr===hr?Pr:ti},Me=function(m,d){d||(d={lineBreak:"normal",wordBreak:"normal"});var y=oi(m,d.lineBreak),g=y[0],re=y[1],Fe=y[2];(d.wordBreak==="break-all"||d.wordBreak==="break-word")&&(re=re.map(function(Ct){return[pe,vt,Tn].indexOf(Ct)!==-1?Qr:Ct}));var tt=d.wordBreak==="keep-all"?Fe.map(function(Ct,xt){return Ct&&m[xt]>=19968&&m[xt]<=40959}):void 0;return[g,re,tt]},lt=function(){function m(d,y,g,re){this.codePoints=d,this.required=y===li,this.start=g,this.end=re}return m.prototype.slice=function(){return E.apply(void 0,this.codePoints.slice(this.start,this.end))},m}(),Zt=function(m,d){var y=f(m),g=Me(y,d),re=g[0],Fe=g[1],tt=g[2],Ct=y.length,xt=0,ir=0;return{next:function(){if(ir>=Ct)return{done:!0,value:null};for(var mr=Pr;ir<Ct&&(mr=Ue(y,Fe,re,++ir,tt))===Pr;);if(mr!==Pr||ir===Ct){var Br=new lt(y,mr,xt,ir);return xt=ir,{value:Br,done:!1}}return{done:!0,value:null}}}},Qt=1,Sr=2,fr=4,Tr=8,Wr=10,An=47,$r=92,Rr=9,qr=32,mn=34,sn=61,Sn=35,Hn=36,pi=37,In=39,an=40,jt=41,Wt=95,nr=45,qt=33,Xt=60,Nr=62,Lr=64,Jr=91,_n=93,Dn=61,Ai=123,Yn=63,ki=125,qn=124,Nn=126,ln=128,wi=65533,Mn=42,ni=43,Si=44,Mi=58,Wn=59,Pi=46,Ji=0,si=8,dn=11,rn=14,Ln=31,wn=127,Kn=-1,ui=48,Fi=97,la=101,ta=102,ja=117,io=122,jn=65,Zn=69,ri=70,ra=85,La=90,ca=function(m){return m>=ui&&m<=57},Hi=function(m){return m>=55296&&m<=57343},za=function(m){return ca(m)||m>=jn&&m<=ri||m>=Fi&&m<=ta},ka=function(m){return m>=Fi&&m<=io},co=function(m){return m>=jn&&m<=La},Ya=function(m){return ka(m)||co(m)},Ca=function(m){return m>=ln},mi=function(m){return m===Wr||m===Rr||m===qr},Aa=function(m){return Ya(m)||Ca(m)||m===Wt},Oo=function(m){return Aa(m)||ca(m)||m===nr},mo=function(m){return m>=Ji&&m<=si||m===dn||m>=rn&&m<=Ln||m===wn},qa=function(m,d){return m!==$r?!1:d!==Wr},Ni=function(m,d,y){return m===nr?Aa(d)||qa(d,y):Aa(m)?!0:!!(m===$r&&qa(m,d))},To=function(m,d,y){return m===ni||m===nr?ca(d)?!0:d===Pi&&ca(y):ca(m===Pi?d:m)},go=function(m){var d=0,y=1;(m[d]===ni||m[d]===nr)&&(m[d]===nr&&(y=-1),d++);for(var g=[];ca(m[d]);)g.push(m[d++]);var re=g.length?parseInt(E.apply(void 0,g),10):0;m[d]===Pi&&d++;for(var Fe=[];ca(m[d]);)Fe.push(m[d++]);var tt=Fe.length,Ct=tt?parseInt(E.apply(void 0,Fe),10):0;(m[d]===Zn||m[d]===la)&&d++;var xt=1;(m[d]===ni||m[d]===nr)&&(m[d]===nr&&(xt=-1),d++);for(var ir=[];ca(m[d]);)ir.push(m[d++]);var mr=ir.length?parseInt(E.apply(void 0,ir),10):0;return y*(re+Ct*Math.pow(10,-tt))*Math.pow(10,xt*mr)},el={type:2},Wo={type:3},Rs={type:4},Go={type:13},xl={type:8},$a={type:21},Qa={type:9},Sa={type:10},Qs={type:11},Bi={type:12},Vi={type:14},Oi={type:23},Wi={type:1},ua={type:25},_a={type:24},Xo={type:26},Io={type:27},_o={type:28},Za={type:29},Ba={type:31},da={type:32},Da=function(){function m(){this._value=[]}return m.prototype.write=function(d){this._value=this._value.concat(f(d))},m.prototype.read=function(){for(var d=[],y=this.consumeToken();y!==da;)d.push(y),y=this.consumeToken();return d},m.prototype.consumeToken=function(){var d=this.consumeCodePoint();switch(d){case mn:return this.consumeStringToken(mn);case Sn:var y=this.peekCodePoint(0),g=this.peekCodePoint(1),re=this.peekCodePoint(2);if(Oo(y)||qa(g,re)){var Fe=Ni(y,g,re)?Sr:Qt,tt=this.consumeName();return{type:5,value:tt,flags:Fe}}break;case Hn:if(this.peekCodePoint(0)===sn)return this.consumeCodePoint(),Go;break;case In:return this.consumeStringToken(In);case an:return el;case jt:return Wo;case Mn:if(this.peekCodePoint(0)===sn)return this.consumeCodePoint(),Vi;break;case ni:if(To(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case Si:return Rs;case nr:var Ct=d,xt=this.peekCodePoint(0),ir=this.peekCodePoint(1);if(To(Ct,xt,ir))return this.reconsumeCodePoint(d),this.consumeNumericToken();if(Ni(Ct,xt,ir))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();if(xt===nr&&ir===Nr)return this.consumeCodePoint(),this.consumeCodePoint(),_a;break;case Pi:if(To(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case An:if(this.peekCodePoint(0)===Mn)for(this.consumeCodePoint();;){var mr=this.consumeCodePoint();if(mr===Mn&&(mr=this.consumeCodePoint(),mr===An))return this.consumeToken();if(mr===Kn)return this.consumeToken()}break;case Mi:return Xo;case Wn:return Io;case Xt:if(this.peekCodePoint(0)===qt&&this.peekCodePoint(1)===nr&&this.peekCodePoint(2)===nr)return this.consumeCodePoint(),this.consumeCodePoint(),ua;break;case Lr:var Br=this.peekCodePoint(0),o=this.peekCodePoint(1),b=this.peekCodePoint(2);if(Ni(Br,o,b)){var tt=this.consumeName();return{type:7,value:tt}}break;case Jr:return _o;case $r:if(qa(d,this.peekCodePoint(0)))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();break;case _n:return Za;case Dn:if(this.peekCodePoint(0)===sn)return this.consumeCodePoint(),xl;break;case Ai:return Qs;case ki:return Bi;case ja:case ra:var D=this.peekCodePoint(0),oe=this.peekCodePoint(1);return D===ni&&(za(oe)||oe===Yn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(d),this.consumeIdentLikeToken();case qn:if(this.peekCodePoint(0)===sn)return this.consumeCodePoint(),Qa;if(this.peekCodePoint(0)===qn)return this.consumeCodePoint(),$a;break;case Nn:if(this.peekCodePoint(0)===sn)return this.consumeCodePoint(),Sa;break;case Kn:return da}return mi(d)?(this.consumeWhiteSpace(),Ba):ca(d)?(this.reconsumeCodePoint(d),this.consumeNumericToken()):Aa(d)?(this.reconsumeCodePoint(d),this.consumeIdentLikeToken()):{type:6,value:E(d)}},m.prototype.consumeCodePoint=function(){var d=this._value.shift();return typeof d=="undefined"?-1:d},m.prototype.reconsumeCodePoint=function(d){this._value.unshift(d)},m.prototype.peekCodePoint=function(d){return d>=this._value.length?-1:this._value[d]},m.prototype.consumeUnicodeRangeToken=function(){for(var d=[],y=this.consumeCodePoint();za(y)&&d.length<6;)d.push(y),y=this.consumeCodePoint();for(var g=!1;y===Yn&&d.length<6;)d.push(y),y=this.consumeCodePoint(),g=!0;if(g){var re=parseInt(E.apply(void 0,d.map(function(xt){return xt===Yn?ui:xt})),16),Fe=parseInt(E.apply(void 0,d.map(function(xt){return xt===Yn?ri:xt})),16);return{type:30,start:re,end:Fe}}var tt=parseInt(E.apply(void 0,d),16);if(this.peekCodePoint(0)===nr&&za(this.peekCodePoint(1))){this.consumeCodePoint(),y=this.consumeCodePoint();for(var Ct=[];za(y)&&Ct.length<6;)Ct.push(y),y=this.consumeCodePoint();var Fe=parseInt(E.apply(void 0,Ct),16);return{type:30,start:tt,end:Fe}}else return{type:30,start:tt,end:tt}},m.prototype.consumeIdentLikeToken=function(){var d=this.consumeName();return d.toLowerCase()==="url"&&this.peekCodePoint(0)===an?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===an?(this.consumeCodePoint(),{type:19,value:d}):{type:20,value:d}},m.prototype.consumeUrlToken=function(){var d=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Kn)return{type:22,value:""};var y=this.peekCodePoint(0);if(y===In||y===mn){var g=this.consumeStringToken(this.consumeCodePoint());return g.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Kn||this.peekCodePoint(0)===jt)?(this.consumeCodePoint(),{type:22,value:g.value}):(this.consumeBadUrlRemnants(),Oi)}for(;;){var re=this.consumeCodePoint();if(re===Kn||re===jt)return{type:22,value:E.apply(void 0,d)};if(mi(re))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Kn||this.peekCodePoint(0)===jt?(this.consumeCodePoint(),{type:22,value:E.apply(void 0,d)}):(this.consumeBadUrlRemnants(),Oi);if(re===mn||re===In||re===an||mo(re))return this.consumeBadUrlRemnants(),Oi;if(re===$r)if(qa(re,this.peekCodePoint(0)))d.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Oi;else d.push(re)}},m.prototype.consumeWhiteSpace=function(){for(;mi(this.peekCodePoint(0));)this.consumeCodePoint()},m.prototype.consumeBadUrlRemnants=function(){for(;;){var d=this.consumeCodePoint();if(d===jt||d===Kn)return;qa(d,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},m.prototype.consumeStringSlice=function(d){for(var y=5e4,g="";d>0;){var re=Math.min(y,d);g+=E.apply(void 0,this._value.splice(0,re)),d-=re}return this._value.shift(),g},m.prototype.consumeStringToken=function(d){var y="",g=0;do{var re=this._value[g];if(re===Kn||re===void 0||re===d)return y+=this.consumeStringSlice(g),{type:0,value:y};if(re===Wr)return this._value.splice(0,g),Wi;if(re===$r){var Fe=this._value[g+1];Fe!==Kn&&Fe!==void 0&&(Fe===Wr?(y+=this.consumeStringSlice(g),g=-1,this._value.shift()):qa(re,Fe)&&(y+=this.consumeStringSlice(g),y+=E(this.consumeEscapedCodePoint()),g=-1))}g++}while(!0)},m.prototype.consumeNumber=function(){var d=[],y=fr,g=this.peekCodePoint(0);for((g===ni||g===nr)&&d.push(this.consumeCodePoint());ca(this.peekCodePoint(0));)d.push(this.consumeCodePoint());g=this.peekCodePoint(0);var re=this.peekCodePoint(1);if(g===Pi&&ca(re))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Tr;ca(this.peekCodePoint(0));)d.push(this.consumeCodePoint());g=this.peekCodePoint(0),re=this.peekCodePoint(1);var Fe=this.peekCodePoint(2);if((g===Zn||g===la)&&((re===ni||re===nr)&&ca(Fe)||ca(re)))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Tr;ca(this.peekCodePoint(0));)d.push(this.consumeCodePoint());return[go(d),y]},m.prototype.consumeNumericToken=function(){var d=this.consumeNumber(),y=d[0],g=d[1],re=this.peekCodePoint(0),Fe=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(Ni(re,Fe,tt)){var Ct=this.consumeName();return{type:15,number:y,flags:g,unit:Ct}}return re===pi?(this.consumeCodePoint(),{type:16,number:y,flags:g}):{type:17,number:y,flags:g}},m.prototype.consumeEscapedCodePoint=function(){var d=this.consumeCodePoint();if(za(d)){for(var y=E(d);za(this.peekCodePoint(0))&&y.length<6;)y+=E(this.consumeCodePoint());mi(this.peekCodePoint(0))&&this.consumeCodePoint();var g=parseInt(y,16);return g===0||Hi(g)||g>1114111?wi:g}return d===Kn?wi:d},m.prototype.consumeName=function(){for(var d="";;){var y=this.consumeCodePoint();if(Oo(y))d+=E(y);else if(qa(y,this.peekCodePoint(0)))d+=E(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(y),d}},m}(),eo=function(){function m(d){this._tokens=d}return m.create=function(d){var y=new Da;return y.write(d),new m(y.read())},m.parseValue=function(d){return m.create(d).parseComponentValue()},m.parseValues=function(d){return m.create(d).parseComponentValues()},m.prototype.parseComponentValue=function(){for(var d=this.consumeToken();d.type===31;)d=this.consumeToken();if(d.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(d);var y=this.consumeComponentValue();do d=this.consumeToken();while(d.type===31);if(d.type===32)return y;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},m.prototype.parseComponentValues=function(){for(var d=[];;){var y=this.consumeComponentValue();if(y.type===32)return d;d.push(y),d.push()}},m.prototype.consumeComponentValue=function(){var d=this.consumeToken();switch(d.type){case 11:case 28:case 2:return this.consumeSimpleBlock(d.type);case 19:return this.consumeFunction(d)}return d},m.prototype.consumeSimpleBlock=function(d){for(var y={type:d,values:[]},g=this.consumeToken();;){if(g.type===32||Ms(g,d))return y;this.reconsumeToken(g),y.values.push(this.consumeComponentValue()),g=this.consumeToken()}},m.prototype.consumeFunction=function(d){for(var y={name:d.value,values:[],type:18};;){var g=this.consumeToken();if(g.type===32||g.type===3)return y;this.reconsumeToken(g),y.values.push(this.consumeComponentValue())}},m.prototype.consumeToken=function(){var d=this._tokens.shift();return typeof d=="undefined"?da:d},m.prototype.reconsumeToken=function(d){this._tokens.unshift(d)},m}(),Ao=function(m){return m.type===15},Oa=function(m){return m.type===17},Fa=function(m){return m.type===20},Mo=function(m){return m.type===0},kl=function(m,d){return Fa(m)&&m.value===d},ds=function(m){return m.type!==31},ll=function(m){return m.type!==31&&m.type!==4},Uo=function(m){var d=[],y=[];return m.forEach(function(g){if(g.type===4){if(y.length===0)throw new Error("Error parsing function args, zero tokens for arg");d.push(y),y=[];return}g.type!==31&&y.push(g)}),y.length&&d.push(y),d},Ms=function(m,d){return d===11&&m.type===12||d===28&&m.type===29?!0:d===2&&m.type===3},Lo=function(m){return m.type===17||m.type===15},Un=function(m){return m.type===16||Lo(m)},Dl=function(m){return m.length>1?[m[0],m[1]]:[m[0]]},Ro={type:17,number:0,flags:fr},Vl={type:16,number:50,flags:fr},Ks={type:16,number:100,flags:fr},bs=function(m,d,y){var g=m[0],re=m[1];return[Ia(g,d),Ia(typeof re!="undefined"?re:g,y)]},Ia=function(m,d){if(m.type===16)return m.number/100*d;if(Ao(m))switch(m.unit){case"rem":case"em":return 16*m.number;case"px":default:return m.number}return m.number},Qo="deg",Wl="grad",ac="rad",cl="turn",fa={name:"angle",parse:function(m,d){if(d.type===15)switch(d.unit){case Qo:return Math.PI*d.number/180;case Wl:return Math.PI/200*d.number;case ac:return d.number;case cl:return Math.PI*2*d.number}throw new Error("Unsupported angle type")}},ia=function(m){return m.type===15&&(m.unit===Qo||m.unit===Wl||m.unit===ac||m.unit===cl)},vo=function(m){var d=m.filter(Fa).map(function(y){return y.value}).join(" ");switch(d){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ro,Ro];case"to top":case"bottom":return Va(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ro,Ks];case"to right":case"left":return Va(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ks,Ks];case"to bottom":case"top":return Va(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ks,Ro];case"to left":case"right":return Va(270)}return 0},Va=function(m){return Math.PI*m/180},ao={name:"color",parse:function(m,d){if(d.type===18){var y=Hc[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported color function "'+d.name+'"');return y(m,d.values)}if(d.type===5){if(d.value.length===3){var g=d.value.substring(0,1),re=d.value.substring(1,2),Fe=d.value.substring(2,3);return Jo(parseInt(g+g,16),parseInt(re+re,16),parseInt(Fe+Fe,16),1)}if(d.value.length===4){var g=d.value.substring(0,1),re=d.value.substring(1,2),Fe=d.value.substring(2,3),tt=d.value.substring(3,4);return Jo(parseInt(g+g,16),parseInt(re+re,16),parseInt(Fe+Fe,16),parseInt(tt+tt,16)/255)}if(d.value.length===6){var g=d.value.substring(0,2),re=d.value.substring(2,4),Fe=d.value.substring(4,6);return Jo(parseInt(g,16),parseInt(re,16),parseInt(Fe,16),1)}if(d.value.length===8){var g=d.value.substring(0,2),re=d.value.substring(2,4),Fe=d.value.substring(4,6),tt=d.value.substring(6,8);return Jo(parseInt(g,16),parseInt(re,16),parseInt(Fe,16),parseInt(tt,16)/255)}}if(d.type===20){var Ct=Ws[d.value.toUpperCase()];if(typeof Ct!="undefined")return Ct}return Ws.TRANSPARENT}},Ko=function(m){return(255&m)===0},to=function(m){var d=255&m,y=255&m>>8,g=255&m>>16,re=255&m>>24;return d<255?"rgba("+re+","+g+","+y+","+d/255+")":"rgb("+re+","+g+","+y+")"},Jo=function(m,d,y,g){return(m<<24|d<<16|y<<8|Math.round(g*255)<<0)>>>0},Ls=function(m,d){if(m.type===17)return m.number;if(m.type===16){var y=d===3?1:255;return d===3?m.number/100*y:Math.round(m.number/100*y)}return 0},Al=function(m,d){var y=d.filter(ll);if(y.length===3){var g=y.map(Ls),re=g[0],Fe=g[1],tt=g[2];return Jo(re,Fe,tt,1)}if(y.length===4){var Ct=y.map(Ls),re=Ct[0],Fe=Ct[1],tt=Ct[2],xt=Ct[3];return Jo(re,Fe,tt,xt)}return 0};function Vs(m,d,y){return y<0&&(y+=1),y>=1&&(y-=1),y<1/6?(d-m)*y*6+m:y<1/2?d:y<2/3?(d-m)*6*(2/3-y)+m:m}var tl=function(m,d){var y=d.filter(ll),g=y[0],re=y[1],Fe=y[2],tt=y[3],Ct=(g.type===17?Va(g.number):fa.parse(m,g))/(Math.PI*2),xt=Un(re)?re.number/100:0,ir=Un(Fe)?Fe.number/100:0,mr=typeof tt!="undefined"&&Un(tt)?Ia(tt,1):1;if(xt===0)return Jo(ir*255,ir*255,ir*255,1);var Br=ir<=.5?ir*(xt+1):ir+xt-ir*xt,o=ir*2-Br,b=Vs(o,Br,Ct+1/3),D=Vs(o,Br,Ct),oe=Vs(o,Br,Ct-1/3);return Jo(b*255,D*255,oe*255,mr)},Hc={hsl:tl,hsla:tl,rgb:Al,rgba:Al},Pl=function(m,d){return ao.parse(m,eo.create(d).parseComponentValue())},Ws={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},tA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(m,d){return d.map(function(y){if(Fa(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fc=function(m,d){var y=ao.parse(m,d[0]),g=d[1];return g&&Un(g)?{color:y,stop:g}:{color:y,stop:null}},yA=function(m,d){var y=m[0],g=m[m.length-1];y.stop===null&&(y.stop=Ro),g.stop===null&&(g.stop=Ks);for(var re=[],Fe=0,tt=0;tt<m.length;tt++){var Ct=m[tt].stop;if(Ct!==null){var xt=Ia(Ct,d);xt>Fe?re.push(xt):re.push(Fe),Fe=xt}else re.push(null)}for(var ir=null,tt=0;tt<re.length;tt++){var mr=re[tt];if(mr===null)ir===null&&(ir=tt);else if(ir!==null){for(var Br=tt-ir,o=re[ir-1],b=(mr-o)/(Br+1),D=1;D<=Br;D++)re[ir+D-1]=b*D;ir=null}}return m.map(function(oe,Oe){var Ke=oe.color;return{color:Ke,stop:Math.max(Math.min(1,re[Oe]/d),0)}})},Nl=function(m,d,y){var g=d/2,re=y/2,Fe=Ia(m[0],d)-g,tt=re-Ia(m[1],y);return(Math.atan2(tt,Fe)+Math.PI*2)%(Math.PI*2)},Gs=function(m,d,y){var g=typeof m=="number"?m:Nl(m,d,y),re=Math.abs(d*Math.sin(g))+Math.abs(y*Math.cos(g)),Fe=d/2,tt=y/2,Ct=re/2,xt=Math.sin(g-Math.PI/2)*Ct,ir=Math.cos(g-Math.PI/2)*Ct;return[re,Fe-ir,Fe+ir,tt-xt,tt+xt]},rl=function(m,d){return Math.sqrt(m*m+d*d)},nl=function(m,d,y,g,re){var Fe=[[0,0],[0,d],[m,0],[m,d]];return Fe.reduce(function(tt,Ct){var xt=Ct[0],ir=Ct[1],mr=rl(y-xt,g-ir);return(re?mr<tt.optimumDistance:mr>tt.optimumDistance)?{optimumCorner:Ct,optimumDistance:mr}:tt},{optimumDistance:re?1/0:-1/0,optimumCorner:null}).optimumCorner},Pa=function(m,d,y,g,re){var Fe=0,tt=0;switch(m.size){case 0:m.shape===0?Fe=tt=Math.min(Math.abs(d),Math.abs(d-g),Math.abs(y),Math.abs(y-re)):m.shape===1&&(Fe=Math.min(Math.abs(d),Math.abs(d-g)),tt=Math.min(Math.abs(y),Math.abs(y-re)));break;case 2:if(m.shape===0)Fe=tt=Math.min(rl(d,y),rl(d,y-re),rl(d-g,y),rl(d-g,y-re));else if(m.shape===1){var Ct=Math.min(Math.abs(y),Math.abs(y-re))/Math.min(Math.abs(d),Math.abs(d-g)),xt=nl(g,re,d,y,!0),ir=xt[0],mr=xt[1];Fe=rl(ir-d,(mr-y)/Ct),tt=Ct*Fe}break;case 1:m.shape===0?Fe=tt=Math.max(Math.abs(d),Math.abs(d-g),Math.abs(y),Math.abs(y-re)):m.shape===1&&(Fe=Math.max(Math.abs(d),Math.abs(d-g)),tt=Math.max(Math.abs(y),Math.abs(y-re)));break;case 3:if(m.shape===0)Fe=tt=Math.max(rl(d,y),rl(d,y-re),rl(d-g,y),rl(d-g,y-re));else if(m.shape===1){var Ct=Math.max(Math.abs(y),Math.abs(y-re))/Math.max(Math.abs(d),Math.abs(d-g)),Br=nl(g,re,d,y,!1),ir=Br[0],mr=Br[1];Fe=rl(ir-d,(mr-y)/Ct),tt=Ct*Fe}break}return Array.isArray(m.size)&&(Fe=Ia(m.size[0],g),tt=m.size.length===2?Ia(m.size[1],re):Fe),[Fe,tt]},yo=function(m,d){var y=Va(180),g=[];return Uo(d).forEach(function(re,Fe){if(Fe===0){var tt=re[0];if(tt.type===20&&tt.value==="to"){y=vo(re);return}else if(ia(tt)){y=fa.parse(m,tt);return}}var Ct=fc(m,re);g.push(Ct)}),{angle:y,stops:g,type:1}},bo=function(m,d){var y=Va(180),g=[];return Uo(d).forEach(function(re,Fe){if(Fe===0){var tt=re[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){y=vo(re);return}else if(ia(tt)){y=(fa.parse(m,tt)+Va(270))%Va(360);return}}var Ct=fc(m,re);g.push(Ct)}),{angle:y,stops:g,type:1}},Yo=function(m,d){var y=Va(180),g=[],re=1,Fe=0,tt=3,Ct=[];return Uo(d).forEach(function(xt,ir){var mr=xt[0];if(ir===0){if(Fa(mr)&&mr.value==="linear"){re=1;return}else if(Fa(mr)&&mr.value==="radial"){re=2;return}}if(mr.type===18){if(mr.name==="from"){var Br=ao.parse(m,mr.values[0]);g.push({stop:Ro,color:Br})}else if(mr.name==="to"){var Br=ao.parse(m,mr.values[0]);g.push({stop:Ks,color:Br})}else if(mr.name==="color-stop"){var o=mr.values.filter(ll);if(o.length===2){var Br=ao.parse(m,o[1]),b=o[0];Oa(b)&&g.push({stop:{type:16,number:b.number*100,flags:b.flags},color:Br})}}}}),re===1?{angle:(y+Va(180))%Va(360),stops:g,type:re}:{size:tt,shape:Fe,stops:g,position:Ct,type:re}},ks="closest-side",Mc="farthest-side",Cl="closest-corner",jc="farthest-corner",bA="circle",wA="ellipse",hc="cover",pc="contain",Du=function(m,d){var y=0,g=3,re=[],Fe=[];return Uo(d).forEach(function(tt,Ct){var xt=!0;if(Ct===0){var ir=!1;xt=tt.reduce(function(Br,o){if(ir)if(Fa(o))switch(o.value){case"center":return Fe.push(Vl),Br;case"top":case"left":return Fe.push(Ro),Br;case"right":case"bottom":return Fe.push(Ks),Br}else(Un(o)||Lo(o))&&Fe.push(o);else if(Fa(o))switch(o.value){case bA:return y=0,!1;case wA:return y=1,!1;case"at":return ir=!0,!1;case ks:return g=0,!1;case hc:case Mc:return g=1,!1;case pc:case Cl:return g=2,!1;case jc:return g=3,!1}else if(Lo(o)||Un(o))return Array.isArray(g)||(g=[]),g.push(o),!1;return Br},xt)}if(xt){var mr=fc(m,tt);re.push(mr)}}),{size:g,shape:y,stops:re,position:Fe,type:2}},KA=function(m,d){var y=0,g=3,re=[],Fe=[];return Uo(d).forEach(function(tt,Ct){var xt=!0;if(Ct===0?xt=tt.reduce(function(mr,Br){if(Fa(Br))switch(Br.value){case"center":return Fe.push(Vl),!1;case"top":case"left":return Fe.push(Ro),!1;case"right":case"bottom":return Fe.push(Ks),!1}else if(Un(Br)||Lo(Br))return Fe.push(Br),!1;return mr},xt):Ct===1&&(xt=tt.reduce(function(mr,Br){if(Fa(Br))switch(Br.value){case bA:return y=0,!1;case wA:return y=1,!1;case pc:case ks:return g=0,!1;case Mc:return g=1,!1;case Cl:return g=2,!1;case hc:case jc:return g=3,!1}else if(Lo(Br)||Un(Br))return Array.isArray(g)||(g=[]),g.push(Br),!1;return mr},xt)),xt){var ir=fc(m,tt);re.push(ir)}}),{size:g,shape:y,stops:re,position:Fe,type:2}},ad=function(m){return m.type===1},od=function(m){return m.type===2},ou={name:"image",parse:function(m,d){if(d.type===22){var y={url:d.value,type:0};return m.cache.addImage(d.value),y}if(d.type===18){var g=Pu[d.name];if(typeof g=="undefined")throw new Error('Attempting to parse an unsupported image function "'+d.name+'"');return g(m,d.values)}throw new Error("Unsupported image type "+d.type)}};function Sd(m){return!(m.type===20&&m.value==="none")&&(m.type!==18||!!Pu[m.name])}var Pu={"linear-gradient":yo,"-moz-linear-gradient":bo,"-ms-linear-gradient":bo,"-o-linear-gradient":bo,"-webkit-linear-gradient":bo,"radial-gradient":Du,"-moz-radial-gradient":KA,"-ms-radial-gradient":KA,"-o-radial-gradient":KA,"-webkit-radial-gradient":KA,"-webkit-gradient":Yo},su={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(m,d){if(d.length===0)return[];var y=d[0];return y.type===20&&y.value==="none"?[]:d.filter(function(g){return ll(g)&&Sd(g)}).map(function(g){return ou.parse(m,g)})}},sd={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(m,d){return d.map(function(y){if(Fa(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},c={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(m,d){return Uo(d).map(function(y){return y.filter(Un)}).map(Dl)}},a={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(m,d){return Uo(d).map(function(y){return y.filter(Fa).map(function(g){return g.value}).join(" ")}).map(l)}},l=function(m){switch(m){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},v;(function(m){m.AUTO="auto",m.CONTAIN="contain",m.COVER="cover"})(v||(v={}));var F={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(m,d){return Uo(d).map(function(y){return y.filter(C)})}},C=function(m){return Fa(m)||Un(m)},O=function(m){return{name:"border-"+m+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},V=O("top"),ie=O("right"),_e=O("bottom"),We=O("left"),Ve=function(m){return{name:"border-radius-"+m,initialValue:"0 0",prefix:!1,type:1,parse:function(d,y){return Dl(y.filter(Un))}}},ct=Ve("top-left"),we=Ve("top-right"),Lt=Ve("bottom-right"),wt=Ve("bottom-left"),kt=function(m){return{name:"border-"+m+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(d,y){switch(y){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ht=kt("top"),Pt=kt("right"),ar=kt("bottom"),gr=kt("left"),Kr=function(m){return{name:"border-"+m+"-width",initialValue:"0",type:0,prefix:!1,parse:function(d,y){return Ao(y)?y.number:0}}},yn=Kr("top"),_r=Kr("right"),Gt=Kr("bottom"),Dr=Kr("left"),Vr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(m,d){switch(d){case"rtl":return 1;case"ltr":default:return 0}}},Bt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(m,d){return d.filter(Fa).reduce(function(y,g){return y|U(g.value)},0)}},U=function(m){switch(m){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},H={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Se={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(m,d){return d.type===20&&d.value==="normal"?0:d.type===17||d.type===15?d.number:0}},De;(function(m){m.NORMAL="normal",m.STRICT="strict"})(De||(De={}));var Ye={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"strict":return De.STRICT;case"normal":default:return De.NORMAL}}},He={name:"line-height",initialValue:"normal",prefix:!1,type:4},dt=function(m,d){return Fa(m)&&m.value==="normal"?1.2*d:m.type===17?d*m.number:Un(m)?Ia(m,d):d},pt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(m,d){return d.type===20&&d.value==="none"?null:ou.parse(m,d)}},Et={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(m,d){switch(d){case"inside":return 0;case"outside":default:return 1}}},de={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ze=function(m){return{name:"margin-"+m,initialValue:"0",prefix:!1,type:4}},Je=Ze("top"),mt=Ze("right"),yt=Ze("bottom"),It=Ze("left"),Kt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(m,d){return d.filter(Fa).map(function(y){switch(y.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Tt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"break-word":return"break-word";case"normal":default:return"normal"}}},pr=function(m){return{name:"padding-"+m,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},sr=pr("top"),Fr=pr("right"),Hr=pr("bottom"),hn=pr("left"),tr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(m,d){switch(d){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},St={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(m,d){switch(d){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},On={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,d){return d.length===1&&kl(d[0],"none")?[]:Uo(d).map(function(y){for(var g={color:Ws.TRANSPARENT,offsetX:Ro,offsetY:Ro,blur:Ro},re=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Lo(tt)?(re===0?g.offsetX=tt:re===1?g.offsetY=tt:g.blur=tt,re++):g.color=ao.parse(m,tt)}return g})}},zr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},wr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(m,d){if(d.type===20&&d.value==="none")return null;if(d.type===18){var y=kr[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+d.name+'"');return y(d.values)}return null}},Ir=function(m){var d=m.filter(function(y){return y.type===17}).map(function(y){return y.number});return d.length===6?d:null},xr=function(m){var d=m.filter(function(xt){return xt.type===17}).map(function(xt){return xt.number}),y=d[0],g=d[1];d[2],d[3];var re=d[4],Fe=d[5];d[6],d[7],d[8],d[9],d[10],d[11];var tt=d[12],Ct=d[13];return d[14],d[15],d.length===16?[y,g,re,Fe,tt,Ct]:null},kr={matrix:Ir,matrix3d:xr},fn={type:16,number:50,flags:fr},zn=[fn,fn],Rn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(m,d){var y=d.filter(Un);return y.length!==2?zn:[y[0],y[1]]}},Bn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(m,d){switch(d){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ii;(function(m){m.NORMAL="normal",m.BREAK_ALL="break-all",m.KEEP_ALL="keep-all"})(ii||(ii={}));for(var Ei={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"break-all":return ii.BREAK_ALL;case"keep-all":return ii.KEEP_ALL;case"normal":default:return ii.NORMAL}}},gi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(m,d){if(d.type===20)return{auto:!0,order:0};if(Oa(d))return{auto:!1,order:d.number};throw new Error("Invalid z-index number parsed")}},xi={name:"time",parse:function(m,d){if(d.type===15)switch(d.unit.toLowerCase()){case"s":return 1e3*d.number;case"ms":return d.number}throw new Error("Unsupported time type")}},kn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(m,d){return Oa(d)?d.number:1}},ha={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ei={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(m,d){return d.filter(Fa).map(function(y){switch(y.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(y){return y!==0})}},uo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(m,d){var y=[],g=[];return d.forEach(function(re){switch(re.type){case 20:case 0:y.push(re.value);break;case 17:y.push(re.number.toString());break;case 4:g.push(y.join(" ")),y.length=0;break}}),y.length&&g.push(y.join(" ")),g.map(function(re){return re.indexOf(" ")===-1?re:"'"+re+"'"})}},Ti={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},na={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(m,d){if(Oa(d))return d.number;if(Fa(d))switch(d.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ta={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(m,d){return d.filter(Fa).map(function(y){return y.value})}},ma={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(m,d){switch(d){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Vn=function(m,d){return(m&d)!==0},Gn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(m,d){if(d.length===0)return[];var y=d[0];return y.type===20&&y.value==="none"?[]:d}},bi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(m,d){if(d.length===0)return null;var y=d[0];if(y.type===20&&y.value==="none")return null;for(var g=[],re=d.filter(ds),Fe=0;Fe<re.length;Fe++){var tt=re[Fe],Ct=re[Fe+1];if(tt.type===20){var xt=Ct&&Oa(Ct)?Ct.number:1;g.push({counter:tt.value,increment:xt})}}return g}},vi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(m,d){if(d.length===0)return[];for(var y=[],g=d.filter(ds),re=0;re<g.length;re++){var Fe=g[re],tt=g[re+1];if(Fa(Fe)&&Fe.value!=="none"){var Ct=tt&&Oa(tt)?tt.number:0;y.push({counter:Fe.value,reset:Ct})}}return y}},Zi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(m,d){return d.filter(Ao).map(function(y){return xi.parse(m,y)})}},gn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(m,d){if(d.length===0)return null;var y=d[0];if(y.type===20&&y.value==="none")return null;var g=[],re=d.filter(Mo);if(re.length%2!==0)return null;for(var Fe=0;Fe<re.length;Fe+=2){var tt=re[Fe].value,Ct=re[Fe+1].value;g.push({open:tt,close:Ct})}return g}},Xn=function(m,d,y){if(!m)return"";var g=m[Math.min(d,m.length-1)];return g?y?g.open:g.close:""},aa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,d){return d.length===1&&kl(d[0],"none")?[]:Uo(d).map(function(y){for(var g={color:255,offsetX:Ro,offsetY:Ro,blur:Ro,spread:Ro,inset:!1},re=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];kl(tt,"inset")?g.inset=!0:Lo(tt)?(re===0?g.offsetX=tt:re===1?g.offsetY=tt:re===2?g.blur=tt:g.spread=tt,re++):g.color=ao.parse(m,tt)}return g})}},ji={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(m,d){var y=[0,1,2],g=[];return d.filter(Fa).forEach(function(re){switch(re.value){case"stroke":g.push(1);break;case"fill":g.push(0);break;case"markers":g.push(2);break}}),y.forEach(function(re){g.indexOf(re)===-1&&g.push(re)}),g}},ko={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Do={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(m,d){return Ao(d)?d.number:0}},Ki=function(){function m(d,y){var g,re;this.animationDuration=Cn(d,Zi,y.animationDuration),this.backgroundClip=Cn(d,tA,y.backgroundClip),this.backgroundColor=Cn(d,rA,y.backgroundColor),this.backgroundImage=Cn(d,su,y.backgroundImage),this.backgroundOrigin=Cn(d,sd,y.backgroundOrigin),this.backgroundPosition=Cn(d,c,y.backgroundPosition),this.backgroundRepeat=Cn(d,a,y.backgroundRepeat),this.backgroundSize=Cn(d,F,y.backgroundSize),this.borderTopColor=Cn(d,V,y.borderTopColor),this.borderRightColor=Cn(d,ie,y.borderRightColor),this.borderBottomColor=Cn(d,_e,y.borderBottomColor),this.borderLeftColor=Cn(d,We,y.borderLeftColor),this.borderTopLeftRadius=Cn(d,ct,y.borderTopLeftRadius),this.borderTopRightRadius=Cn(d,we,y.borderTopRightRadius),this.borderBottomRightRadius=Cn(d,Lt,y.borderBottomRightRadius),this.borderBottomLeftRadius=Cn(d,wt,y.borderBottomLeftRadius),this.borderTopStyle=Cn(d,ht,y.borderTopStyle),this.borderRightStyle=Cn(d,Pt,y.borderRightStyle),this.borderBottomStyle=Cn(d,ar,y.borderBottomStyle),this.borderLeftStyle=Cn(d,gr,y.borderLeftStyle),this.borderTopWidth=Cn(d,yn,y.borderTopWidth),this.borderRightWidth=Cn(d,_r,y.borderRightWidth),this.borderBottomWidth=Cn(d,Gt,y.borderBottomWidth),this.borderLeftWidth=Cn(d,Dr,y.borderLeftWidth),this.boxShadow=Cn(d,aa,y.boxShadow),this.color=Cn(d,Vr,y.color),this.direction=Cn(d,bt,y.direction),this.display=Cn(d,Bt,y.display),this.float=Cn(d,H,y.cssFloat),this.fontFamily=Cn(d,uo,y.fontFamily),this.fontSize=Cn(d,Ti,y.fontSize),this.fontStyle=Cn(d,ma,y.fontStyle),this.fontVariant=Cn(d,Ta,y.fontVariant),this.fontWeight=Cn(d,na,y.fontWeight),this.letterSpacing=Cn(d,Se,y.letterSpacing),this.lineBreak=Cn(d,Ye,y.lineBreak),this.lineHeight=Cn(d,He,y.lineHeight),this.listStyleImage=Cn(d,pt,y.listStyleImage),this.listStylePosition=Cn(d,Et,y.listStylePosition),this.listStyleType=Cn(d,de,y.listStyleType),this.marginTop=Cn(d,Je,y.marginTop),this.marginRight=Cn(d,mt,y.marginRight),this.marginBottom=Cn(d,yt,y.marginBottom),this.marginLeft=Cn(d,It,y.marginLeft),this.opacity=Cn(d,kn,y.opacity);var Fe=Cn(d,Kt,y.overflow);this.overflowX=Fe[0],this.overflowY=Fe[Fe.length>1?1:0],this.overflowWrap=Cn(d,Tt,y.overflowWrap),this.paddingTop=Cn(d,sr,y.paddingTop),this.paddingRight=Cn(d,Fr,y.paddingRight),this.paddingBottom=Cn(d,Hr,y.paddingBottom),this.paddingLeft=Cn(d,hn,y.paddingLeft),this.paintOrder=Cn(d,ji,y.paintOrder),this.position=Cn(d,St,y.position),this.textAlign=Cn(d,tr,y.textAlign),this.textDecorationColor=Cn(d,ha,(g=y.textDecorationColor)!==null&&g!==void 0?g:y.color),this.textDecorationLine=Cn(d,ei,(re=y.textDecorationLine)!==null&&re!==void 0?re:y.textDecoration),this.textShadow=Cn(d,On,y.textShadow),this.textTransform=Cn(d,zr,y.textTransform),this.transform=Cn(d,wr,y.transform),this.transformOrigin=Cn(d,Rn,y.transformOrigin),this.visibility=Cn(d,Bn,y.visibility),this.webkitTextStrokeColor=Cn(d,ko,y.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cn(d,Do,y.webkitTextStrokeWidth),this.wordBreak=Cn(d,Ei,y.wordBreak),this.zIndex=Cn(d,gi,y.zIndex)}return m.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},m.prototype.isTransparent=function(){return Ko(this.backgroundColor)},m.prototype.isTransformed=function(){return this.transform!==null},m.prototype.isPositioned=function(){return this.position!==0},m.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},m.prototype.isFloating=function(){return this.float!==0},m.prototype.isInlineLevel=function(){return Vn(this.display,4)||Vn(this.display,33554432)||Vn(this.display,268435456)||Vn(this.display,536870912)||Vn(this.display,67108864)||Vn(this.display,134217728)},m}(),ro=function(){function m(d,y){this.content=Cn(d,Gn,y.content),this.quotes=Cn(d,gn,y.quotes)}return m}(),as=function(){function m(d,y){this.counterIncrement=Cn(d,bi,y.counterIncrement),this.counterReset=Cn(d,vi,y.counterReset)}return m}(),Cn=function(m,d,y){var g=new Da,re=y!==null&&typeof y!="undefined"?y.toString():d.initialValue;g.write(re);var Fe=new eo(g.read());switch(d.type){case 2:var tt=Fe.parseComponentValue();return d.parse(m,Fa(tt)?tt.value:d.initialValue);case 0:return d.parse(m,Fe.parseComponentValue());case 1:return d.parse(m,Fe.parseComponentValues());case 4:return Fe.parseComponentValue();case 3:switch(d.format){case"angle":return fa.parse(m,Fe.parseComponentValue());case"color":return ao.parse(m,Fe.parseComponentValue());case"image":return ou.parse(m,Fe.parseComponentValue());case"length":var Ct=Fe.parseComponentValue();return Lo(Ct)?Ct:Ro;case"length-percentage":var xt=Fe.parseComponentValue();return Un(xt)?xt:Ro;case"time":return xi.parse(m,Fe.parseComponentValue())}break}},fo="data-html2canvas-debug",Ho=function(m){var d=m.getAttribute(fo);switch(d){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Yi=function(m,d){var y=Ho(m);return y===1||d===y},on=function(){function m(d,y){if(this.context=d,this.textNodes=[],this.elements=[],this.flags=0,Yi(y,3))debugger;this.styles=new Ki(d,window.getComputedStyle(y,null)),vr(y)&&(this.styles.animationDuration.some(function(g){return g>0})&&(y.style.animationDuration="0s"),this.styles.transform!==null&&(y.style.transform="none")),this.bounds=G(this.context,y),Yi(y,4)&&(this.flags|=16)}return m}(),ga="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ho="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wa=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Li=0;Li<ho.length;Li++)Wa[ho.charCodeAt(Li)]=Li;for(var Po=function(m){var d=m.length*.75,y=m.length,g,re=0,Fe,tt,Ct,xt;m[m.length-1]==="="&&(d--,m[m.length-2]==="="&&d--);var ir=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),mr=Array.isArray(ir)?ir:new Uint8Array(ir);for(g=0;g<y;g+=4)Fe=Wa[m.charCodeAt(g)],tt=Wa[m.charCodeAt(g+1)],Ct=Wa[m.charCodeAt(g+2)],xt=Wa[m.charCodeAt(g+3)],mr[re++]=Fe<<2|tt>>4,mr[re++]=(tt&15)<<4|Ct>>2,mr[re++]=(Ct&3)<<6|xt&63;return ir},No=function(m){for(var d=m.length,y=[],g=0;g<d;g+=2)y.push(m[g+1]<<8|m[g]);return y},os=function(m){for(var d=m.length,y=[],g=0;g<d;g+=4)y.push(m[g+3]<<24|m[g+2]<<16|m[g+1]<<8|m[g]);return y},fs=5,ss=11,hs=2,Bl=ss-fs,qo=65536>>fs,Ds=1<<fs,ps=Ds-1,jo=1024>>fs,wo=qo+jo,Hs=wo,oc=32,Sl=Hs+oc,Ol=65536>>ss,nA=1<<Bl,HA=nA-1,pa=function(m,d,y){return m.slice?m.slice(d,y):new Uint16Array(Array.prototype.slice.call(m,d,y))},oo=function(m,d,y){return m.slice?m.slice(d,y):new Uint32Array(Array.prototype.slice.call(m,d,y))},Ka=function(m,d){var y=Po(m),g=Array.isArray(y)?os(y):new Uint32Array(y),re=Array.isArray(y)?No(y):new Uint16Array(y),Fe=24,tt=pa(re,Fe/2,g[4]/2),Ct=g[5]===2?pa(re,(Fe+g[4])/2):oo(g,Math.ceil((Fe+g[4])/4));return new xo(g[0],g[1],g[2],g[3],tt,Ct)},xo=function(){function m(d,y,g,re,Fe,tt){this.initialValue=d,this.errorValue=y,this.highStart=g,this.highValueIndex=re,this.index=Fe,this.data=tt}return m.prototype.get=function(d){var y;if(d>=0){if(d<55296||d>56319&&d<=65535)return y=this.index[d>>fs],y=(y<<hs)+(d&ps),this.data[y];if(d<=65535)return y=this.index[qo+(d-55296>>fs)],y=(y<<hs)+(d&ps),this.data[y];if(d<this.highStart)return y=Sl-Ol+(d>>ss),y=this.index[y],y+=d>>fs&HA,y=this.index[y],y=(y<<hs)+(d&ps),this.data[y];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},m}(),ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ps=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),gs=0;gs<ms.length;gs++)Ps[ms.charCodeAt(gs)]=gs;var Gl=1,El=2,zc=3,Ns=4,wa=5,So=7,Tl=8,Xl=9,js=10,xA=11,Jl=12,iA=13,jA=14,$c=15,CA=function(m){for(var d=[],y=0,g=m.length;y<g;){var re=m.charCodeAt(y++);if(re>=55296&&re<=56319&&y<g){var Fe=m.charCodeAt(y++);(Fe&64512)===56320?d.push(((re&1023)<<10)+(Fe&1023)+65536):(d.push(re),y--)}else d.push(re)}return d},Ul=function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,m);var y=m.length;if(!y)return"";for(var g=[],re=-1,Fe="";++re<y;){var tt=m[re];tt<=65535?g.push(tt):(tt-=65536,g.push((tt>>10)+55296,tt%1024+56320)),(re+1===y||g.length>16384)&&(Fe+=String.fromCharCode.apply(String,g),g.length=0)}return Fe},sc=Ka(ga),un="\xD7",Zc="\xF7",Os=function(m){return sc.get(m)},BA=function(m,d,y){var g=y-2,re=d[g],Fe=d[y-1],tt=d[y];if(Fe===El&&tt===zc)return un;if(Fe===El||Fe===zc||Fe===Ns||tt===El||tt===zc||tt===Ns)return Zc;if(Fe===Tl&&[Tl,Xl,xA,Jl].indexOf(tt)!==-1||(Fe===xA||Fe===Xl)&&(tt===Xl||tt===js)||(Fe===Jl||Fe===js)&&tt===js||tt===iA||tt===wa||tt===So||Fe===Gl)return un;if(Fe===iA&&tt===jA){for(;re===wa;)re=d[--g];if(re===jA)return un}if(Fe===$c&&tt===$c){for(var Ct=0;re===$c;)Ct++,re=d[--g];if(Ct%2===0)return un}return Zc},Vc=function(m){var d=CA(m),y=d.length,g=0,re=0,Fe=d.map(Os);return{next:function(){if(g>=y)return{done:!0,value:null};for(var tt=un;g<y&&(tt=BA(d,Fe,++g))===un;);if(tt!==un||g===y){var Ct=Ul.apply(null,d.slice(re,g));return re=g,{value:Ct,done:!1}}return{done:!0,value:null}}}},sa=function(m){for(var d=Vc(m),y=[],g;!(g=d.next()).done;)g.value&&y.push(g.value.slice());return y},zA=function(m){var d=123;if(m.createRange){var y=m.createRange();if(y.getBoundingClientRect){var g=m.createElement("boundtest");g.style.height=d+"px",g.style.display="block",m.body.appendChild(g),y.selectNode(g);var re=y.getBoundingClientRect(),Fe=Math.round(re.height);if(m.body.removeChild(g),Fe===d)return!0}}return!1},$A=function(m){var d=m.createElement("boundtest");d.style.width="50px",d.style.display="block",d.style.fontSize="12px",d.style.letterSpacing="0px",d.style.wordSpacing="0px",m.body.appendChild(d);var y=m.createRange();d.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var g=d.firstChild,re=f(g.data).map(function(xt){return E(xt)}),Fe=0,tt={},Ct=re.every(function(xt,ir){y.setStart(g,Fe),y.setEnd(g,Fe+xt.length);var mr=y.getBoundingClientRect();Fe+=xt.length;var Br=mr.x>tt.x||mr.y>tt.y;return tt=mr,ir===0?!0:Br});return m.body.removeChild(d),Ct},Eo=function(){return typeof new Image().crossOrigin!="undefined"},ZA=function(){return typeof new XMLHttpRequest().responseType=="string"},aA=function(m){var d=new Image,y=m.createElement("canvas"),g=y.getContext("2d");if(!g)return!1;d.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{g.drawImage(d,0,0),y.toDataURL()}catch(re){return!1}return!0},lc=function(m){return m[0]===0&&m[1]===255&&m[2]===0&&m[3]===255},Wc=function(m){var d=m.createElement("canvas"),y=100;d.width=y,d.height=y;var g=d.getContext("2d");if(!g)return Promise.reject(!1);g.fillStyle="rgb(0, 255, 0)",g.fillRect(0,0,y,y);var re=new Image,Fe=d.toDataURL();re.src=Fe;var tt=Yl(y,y,0,0,re);return g.fillStyle="red",g.fillRect(0,0,y,y),cc(tt).then(function(Ct){g.drawImage(Ct,0,0);var xt=g.getImageData(0,0,y,y).data;g.fillStyle="red",g.fillRect(0,0,y,y);var ir=m.createElement("div");return ir.style.backgroundImage="url("+Fe+")",ir.style.height=y+"px",lc(xt)?cc(Yl(y,y,0,0,ir)):Promise.reject(!1)}).then(function(Ct){return g.drawImage(Ct,0,0),lc(g.getImageData(0,0,y,y).data)}).catch(function(){return!1})},Yl=function(m,d,y,g,re){var Fe="http://www.w3.org/2000/svg",tt=document.createElementNS(Fe,"svg"),Ct=document.createElementNS(Fe,"foreignObject");return tt.setAttributeNS(null,"width",m.toString()),tt.setAttributeNS(null,"height",d.toString()),Ct.setAttributeNS(null,"width","100%"),Ct.setAttributeNS(null,"height","100%"),Ct.setAttributeNS(null,"x",y.toString()),Ct.setAttributeNS(null,"y",g.toString()),Ct.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(Ct),Ct.appendChild(re),tt},cc=function(m){return new Promise(function(d,y){var g=new Image;g.onload=function(){return d(g)},g.onerror=y,g.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},Co={get SUPPORT_RANGE_BOUNDS(){var m=zA(document);return Object.defineProperty(Co,"SUPPORT_RANGE_BOUNDS",{value:m}),m},get SUPPORT_WORD_BREAKING(){var m=Co.SUPPORT_RANGE_BOUNDS&&$A(document);return Object.defineProperty(Co,"SUPPORT_WORD_BREAKING",{value:m}),m},get SUPPORT_SVG_DRAWING(){var m=aA(document);return Object.defineProperty(Co,"SUPPORT_SVG_DRAWING",{value:m}),m},get SUPPORT_FOREIGNOBJECT_DRAWING(){var m=typeof Array.from=="function"&&typeof window.fetch=="function"?Wc(document):Promise.resolve(!1);return Object.defineProperty(Co,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:m}),m},get SUPPORT_CORS_IMAGES(){var m=Eo();return Object.defineProperty(Co,"SUPPORT_CORS_IMAGES",{value:m}),m},get SUPPORT_RESPONSE_TYPE(){var m=ZA();return Object.defineProperty(Co,"SUPPORT_RESPONSE_TYPE",{value:m}),m},get SUPPORT_CORS_XHR(){var m="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Co,"SUPPORT_CORS_XHR",{value:m}),m},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var m=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Co,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:m}),m}},Xs=function(){function m(d,y){this.text=d,this.bounds=y}return m}(),ls=function(m,d,y,g){var re=_l(d,y),Fe=[],tt=0;return re.forEach(function(Ct){if(y.textDecorationLine.length||Ct.trim().length>0)if(Co.SUPPORT_RANGE_BOUNDS){var xt=Ea(g,tt,Ct.length).getClientRects();if(xt.length>1){var ir=va(Ct),mr=0;ir.forEach(function(o){Fe.push(new Xs(o,ne.fromDOMRectList(m,Ea(g,mr+tt,o.length).getClientRects()))),mr+=o.length})}else Fe.push(new Xs(Ct,ne.fromDOMRectList(m,xt)))}else{var Br=g.splitText(Ct.length);Fe.push(new Xs(Ct,ul(m,g))),g=Br}else Co.SUPPORT_RANGE_BOUNDS||(g=g.splitText(Ct.length));tt+=Ct.length}),Fe},ul=function(m,d){var y=d.ownerDocument;if(y){var g=y.createElement("html2canvaswrapper");g.appendChild(d.cloneNode(!0));var re=d.parentNode;if(re){re.replaceChild(g,d);var Fe=G(m,g);return g.firstChild&&re.replaceChild(g.firstChild,g),Fe}}return ne.EMPTY},Ea=function(m,d,y){var g=m.ownerDocument;if(!g)throw new Error("Node has no owner document");var re=g.createRange();return re.setStart(m,d),re.setEnd(m,d+y),re},va=function(m){if(Co.SUPPORT_NATIVE_TEXT_SEGMENTATION){var d=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(d.segment(m)).map(function(y){return y.segment})}return sa(m)},Js=function(m,d){if(Co.SUPPORT_NATIVE_TEXT_SEGMENTATION){var y=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(y.segment(m)).map(function(g){return g.segment})}return VA(m,d)},_l=function(m,d){return d.letterSpacing!==0?va(m):Js(m,d)},Rl=[32,160,4961,65792,65793,4153,4241],VA=function(m,d){for(var y=Zt(m,{lineBreak:d.lineBreak,wordBreak:d.overflowWrap==="break-word"?"break-word":d.wordBreak}),g=[],re,Fe=function(){if(re.value){var tt=re.value.slice(),Ct=f(tt),xt="";Ct.forEach(function(ir){Rl.indexOf(ir)===-1?xt+=E(ir):(xt.length&&g.push(xt),g.push(E(ir)),xt="")}),xt.length&&g.push(xt)}};!(re=y.next()).done;)Fe();return g},cs=function(){function m(d,y,g){this.text=dl(y.data,g.textTransform),this.textBounds=ls(d,this.text,g,y)}return m}(),dl=function(m,d){switch(d){case 1:return m.toLowerCase();case 3:return m.replace(ql,ec);case 2:return m.toUpperCase();default:return m}},ql=/(^|\s|:|-|\(|\))([a-z])/g,ec=function(m,d,y){return m.length>0?d+y.toUpperCase():m},lu=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re.src=g.currentSrc||g.src,re.intrinsicWidth=g.naturalWidth,re.intrinsicHeight=g.naturalHeight,re.context.cache.addImage(re.src),re}return d}(on),ya=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re.canvas=g,re.intrinsicWidth=g.width,re.intrinsicHeight=g.height,re}return d}(on),fl=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this,Fe=new XMLSerializer,tt=G(y,g);return g.setAttribute("width",tt.width+"px"),g.setAttribute("height",tt.height+"px"),re.svg="data:image/svg+xml,"+encodeURIComponent(Fe.serializeToString(g)),re.intrinsicWidth=g.width.baseVal.value,re.intrinsicHeight=g.height.baseVal.value,re.context.cache.addImage(re.svg),re}return d}(on),mc=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re.value=g.value,re}return d}(on),gc=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re.start=g.start,re.reversed=typeof g.reversed=="boolean"&&g.reversed===!0,re}return d}(on),Zr=[{type:15,flags:0,unit:"px",number:3}],cu=[{type:16,flags:0,number:50}],Ed=function(m){return m.width>m.height?new ne(m.left+(m.width-m.height)/2,m.top,m.height,m.height):m.width<m.height?new ne(m.left,m.top+(m.height-m.width)/2,m.width,m.width):m},WA=function(m){var d=m.type===Au?new Array(m.value.length+1).join("\u2022"):m.value;return d.length===0?m.placeholder||"":d},SA="checkbox",Lc="radio",Au="password",uu=707406591,ws=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;switch(re.type=g.type.toLowerCase(),re.checked=g.checked,re.value=WA(g),(re.type===SA||re.type===Lc)&&(re.styles.backgroundColor=3739148031,re.styles.borderTopColor=re.styles.borderRightColor=re.styles.borderBottomColor=re.styles.borderLeftColor=2779096575,re.styles.borderTopWidth=re.styles.borderRightWidth=re.styles.borderBottomWidth=re.styles.borderLeftWidth=1,re.styles.borderTopStyle=re.styles.borderRightStyle=re.styles.borderBottomStyle=re.styles.borderLeftStyle=1,re.styles.backgroundClip=[0],re.styles.backgroundOrigin=[0],re.bounds=Ed(re.bounds)),re.type){case SA:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Zr;break;case Lc:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=cu;break}return re}return d}(on),vc=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this,Fe=g.options[g.selectedIndex||0];return re.value=Fe&&Fe.text||"",re}return d}(on),GA=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re.value=g.value,re}return d}(on),Gc=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;re.src=g.src,re.width=parseInt(g.width,10)||0,re.height=parseInt(g.height,10)||0,re.backgroundColor=re.styles.backgroundColor;try{if(g.contentWindow&&g.contentWindow.document&&g.contentWindow.document.documentElement){re.tree=JA(y,g.contentWindow.document.documentElement);var Fe=g.contentWindow.document.documentElement?Pl(y,getComputedStyle(g.contentWindow.document.documentElement).backgroundColor):Ws.TRANSPARENT,tt=g.contentWindow.document.body?Pl(y,getComputedStyle(g.contentWindow.document.body).backgroundColor):Ws.TRANSPARENT;re.backgroundColor=Ko(Fe)?Ko(tt)?re.styles.backgroundColor:tt:Fe}}catch(Ct){}return re}return d}(on),XA=["OL","UL","MENU"],EA=function(m,d,y,g){for(var re=d.firstChild,Fe=void 0;re;re=Fe)if(Fe=re.nextSibling,Dt(re)&&re.data.trim().length>0)y.textNodes.push(new cs(m,re,y.styles));else if(Jt(re))if(oA(re)&&re.assignedNodes)re.assignedNodes().forEach(function(Ct){return EA(m,Ct,y,g)});else{var tt=kc(m,re);tt.styles.isVisible()&&(P(re,tt,g)?tt.flags|=4:$e(tt.styles)&&(tt.flags|=2),XA.indexOf(re.tagName)!==-1&&(tt.flags|=8),y.elements.push(tt),re.slot,re.shadowRoot?EA(m,re.shadowRoot,tt,g):!pl(re)&&!xa(re)&&!tc(re)&&EA(m,re,tt,g))}},kc=function(m,d){return zo(d)?new lu(m,d):vs(d)?new ya(m,d):xa(d)?new fl(m,d):Fn(d)?new mc(m,d):Di(d)?new gc(m,d):qi(d)?new ws(m,d):tc(d)?new vc(m,d):pl(d)?new GA(m,d):hl(d)?new Gc(m,d):new on(m,d)},JA=function(m,d){var y=kc(m,d);return y.flags|=4,EA(m,d,y,y),y},P=function(m,d,y){return d.styles.isPositionedWithZIndex()||d.styles.opacity<1||d.styles.isTransformed()||zi(m)&&y.styles.isTransparent()},$e=function(m){return m.isPositioned()||m.isFloating()},Dt=function(m){return m.nodeType===Node.TEXT_NODE},Jt=function(m){return m.nodeType===Node.ELEMENT_NODE},vr=function(m){return Jt(m)&&typeof m.style!="undefined"&&!Xr(m)},Xr=function(m){return typeof m.className=="object"},Fn=function(m){return m.tagName==="LI"},Di=function(m){return m.tagName==="OL"},qi=function(m){return m.tagName==="INPUT"},Ma=function(m){return m.tagName==="HTML"},xa=function(m){return m.tagName==="svg"},zi=function(m){return m.tagName==="BODY"},vs=function(m){return m.tagName==="CANVAS"},xs=function(m){return m.tagName==="VIDEO"},zo=function(m){return m.tagName==="IMG"},hl=function(m){return m.tagName==="IFRAME"},Cs=function(m){return m.tagName==="STYLE"},Dc=function(m){return m.tagName==="SCRIPT"},pl=function(m){return m.tagName==="TEXTAREA"},tc=function(m){return m.tagName==="SELECT"},oA=function(m){return m.tagName==="SLOT"},du=function(m){return m.tagName.indexOf("-")>0},fu=function(){function m(){this.counters={}}return m.prototype.getCounterValue=function(d){var y=this.counters[d];return y&&y.length?y[y.length-1]:1},m.prototype.getCounterValues=function(d){var y=this.counters[d];return y||[]},m.prototype.pop=function(d){var y=this;d.forEach(function(g){return y.counters[g].pop()})},m.prototype.parse=function(d){var y=this,g=d.counterIncrement,re=d.counterReset,Fe=!0;g!==null&&g.forEach(function(Ct){var xt=y.counters[Ct.counter];xt&&Ct.increment!==0&&(Fe=!1,xt.length||xt.push(1),xt[Math.max(0,xt.length-1)]+=Ct.increment)});var tt=[];return Fe&&re.forEach(function(Ct){var xt=y.counters[Ct.counter];tt.push(Ct.counter),xt||(xt=y.counters[Ct.counter]=[]),xt.push(Ct.reset)}),tt},m}(),sA={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},YA={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Nu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},hu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},_s=function(m,d,y,g,re,Fe){return m<d||m>y?Hl(m,re,Fe.length>0):g.integers.reduce(function(tt,Ct,xt){for(;m>=Ct;)m-=Ct,tt+=g.values[xt];return tt},"")+Fe},qA=function(m,d,y,g){var re="";do y||m--,re=g(m)+re,m/=d;while(m*d>=d);return re},ns=function(m,d,y,g,re){var Fe=y-d+1;return(m<0?"-":"")+(qA(Math.abs(m),Fe,g,function(tt){return E(Math.floor(tt%Fe)+d)})+re)},yc=function(m,d,y){y===void 0&&(y=". ");var g=d.length;return qA(Math.abs(m),g,!1,function(re){return d[Math.floor(re%g)]})+y},Xc=1,Ts=2,ml=4,Ql=8,gl=function(m,d,y,g,re,Fe){if(m<-9999||m>9999)return Hl(m,4,re.length>0);var tt=Math.abs(m),Ct=re;if(tt===0)return d[0]+Ct;for(var xt=0;tt>0&&xt<=4;xt++){var ir=tt%10;ir===0&&Vn(Fe,Xc)&&Ct!==""?Ct=d[ir]+Ct:ir>1||ir===1&&xt===0||ir===1&&xt===1&&Vn(Fe,Ts)||ir===1&&xt===1&&Vn(Fe,ml)&&m>100||ir===1&&xt>1&&Vn(Fe,Ql)?Ct=d[ir]+(xt>0?y[xt-1]:"")+Ct:ir===1&&xt>0&&(Ct=y[xt-1]+Ct),tt=Math.floor(tt/10)}return(m<0?g:"")+Ct},Us="\u5341\u767E\u5343\u842C",Kl="\u62FE\u4F70\u4EDF\u842C",bc="\u30DE\u30A4\u30CA\u30B9",lA="\uB9C8\uC774\uB108\uC2A4",Hl=function(m,d,y){var g=y?". ":"",re=y?"\u3001":"",Fe=y?", ":"",tt=y?" ":"";switch(d){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var Ct=ns(m,48,57,!0,g);return Ct.length<4?"0"+Ct:Ct;case 4:return yc(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",re);case 6:return _s(m,1,3999,sA,3,g).toLowerCase();case 7:return _s(m,1,3999,sA,3,g);case 8:return ns(m,945,969,!1,g);case 9:return ns(m,97,122,!1,g);case 10:return ns(m,65,90,!1,g);case 11:return ns(m,1632,1641,!0,g);case 12:case 49:return _s(m,1,9999,YA,3,g);case 35:return _s(m,1,9999,YA,3,g).toLowerCase();case 13:return ns(m,2534,2543,!0,g);case 14:case 30:return ns(m,6112,6121,!0,g);case 15:return yc(m,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",re);case 16:return yc(m,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",re);case 17:case 48:return gl(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Us,"\u8CA0",re,Ts|ml|Ql);case 47:return gl(m,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Kl,"\u8CA0",re,Xc|Ts|ml|Ql);case 42:return gl(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Us,"\u8D1F",re,Ts|ml|Ql);case 41:return gl(m,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Kl,"\u8D1F",re,Xc|Ts|ml|Ql);case 26:return gl(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",bc,re,0);case 25:return gl(m,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",bc,re,Xc|Ts|ml);case 31:return gl(m,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",lA,Fe,Xc|Ts|ml);case 33:return gl(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",lA,Fe,0);case 32:return gl(m,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",lA,Fe,Xc|Ts|ml);case 18:return ns(m,2406,2415,!0,g);case 20:return _s(m,1,19999,hu,3,g);case 21:return ns(m,2790,2799,!0,g);case 22:return ns(m,2662,2671,!0,g);case 22:return _s(m,1,10999,Nu,3,g);case 23:return yc(m,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return yc(m,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return ns(m,3302,3311,!0,g);case 28:return yc(m,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",re);case 29:return yc(m,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",re);case 34:return ns(m,3792,3801,!0,g);case 37:return ns(m,6160,6169,!0,g);case 38:return ns(m,4160,4169,!0,g);case 39:return ns(m,2918,2927,!0,g);case 40:return ns(m,1776,1785,!0,g);case 43:return ns(m,3046,3055,!0,g);case 44:return ns(m,3174,3183,!0,g);case 45:return ns(m,3664,3673,!0,g);case 46:return ns(m,3872,3881,!0,g);case 3:default:return ns(m,48,57,!0,g)}},Pc="data-html2canvas-ignore",il=function(){function m(d,y,g){if(this.context=d,this.options=g,this.scrolledElements=[],this.referenceElement=y,this.counters=new fu,this.quoteDepth=0,!y.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(y.ownerDocument.documentElement,!1)}return m.prototype.toIFrame=function(d,y){var g=this,re=cA(d,y);if(!re.contentWindow)return Promise.reject("Unable to find iframe window");var Fe=d.defaultView.pageXOffset,tt=d.defaultView.pageYOffset,Ct=re.contentWindow,xt=Ct.document,ir=pu(re).then(function(){return ue(g,void 0,void 0,function(){var mr,Br;return Q(this,function(o){switch(o.label){case 0:return this.scrolledElements.forEach(wc),Ct&&(Ct.scrollTo(y.left,y.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Ct.scrollY!==y.top||Ct.scrollX!==y.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Ct.scrollX-y.left,Ct.scrollY-y.top,0,0))),mr=this.options.onclone,Br=this.clonedReferenceElement,typeof Br=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:xt.fonts&&xt.fonts.ready?[4,xt.fonts.ready]:[3,2];case 1:o.sent(),o.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Yc(xt)]:[3,4];case 3:o.sent(),o.label=4;case 4:return typeof mr=="function"?[2,Promise.resolve().then(function(){return mr(xt,Br)}).then(function(){return re})]:[2,re]}})})});return xt.open(),xt.write(Ou(document.doctype)+"<html></html>"),jl(this.referenceElement.ownerDocument,Fe,tt),xt.replaceChild(xt.adoptNode(this.documentElement),xt.documentElement),xt.close(),ir},m.prototype.createElementClone=function(d){if(Yi(d,2))debugger;if(vs(d))return this.createCanvasClone(d);if(xs(d))return this.createVideoClone(d);if(Cs(d))return this.createStyleClone(d);var y=d.cloneNode(!1);return zo(y)&&(zo(d)&&d.currentSrc&&d.currentSrc!==d.src&&(y.src=d.currentSrc,y.srcset=""),y.loading==="lazy"&&(y.loading="eager")),du(y)?this.createCustomElementClone(y):y},m.prototype.createCustomElementClone=function(d){var y=document.createElement("html2canvascustomelement");return Bs(d.style,y),y},m.prototype.createStyleClone=function(d){try{var y=d.sheet;if(y&&y.cssRules){var g=[].slice.call(y.cssRules,0).reduce(function(Fe,tt){return tt&&typeof tt.cssText=="string"?Fe+tt.cssText:Fe},""),re=d.cloneNode(!1);return re.textContent=g,re}}catch(Fe){if(this.context.logger.error("Unable to access cssRules property",Fe),Fe.name!=="SecurityError")throw Fe}return d.cloneNode(!1)},m.prototype.createCanvasClone=function(d){var y;if(this.options.inlineImages&&d.ownerDocument){var g=d.ownerDocument.createElement("img");try{return g.src=d.toDataURL(),g}catch(ir){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",d)}}var re=d.cloneNode(!1);try{re.width=d.width,re.height=d.height;var Fe=d.getContext("2d"),tt=re.getContext("2d");if(tt)if(!this.options.allowTaint&&Fe)tt.putImageData(Fe.getImageData(0,0,d.width,d.height),0,0);else{var Ct=(y=d.getContext("webgl2"))!==null&&y!==void 0?y:d.getContext("webgl");if(Ct){var xt=Ct.getContextAttributes();(xt==null?void 0:xt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",d)}tt.drawImage(d,0,0)}return re}catch(ir){this.context.logger.info("Unable to clone canvas as it is tainted",d)}return re},m.prototype.createVideoClone=function(d){var y=d.ownerDocument.createElement("canvas");y.width=d.offsetWidth,y.height=d.offsetHeight;var g=y.getContext("2d");try{return g&&(g.drawImage(d,0,0,y.width,y.height),this.options.allowTaint||g.getImageData(0,0,y.width,y.height)),y}catch(Fe){this.context.logger.info("Unable to clone video as it is tainted",d)}var re=d.ownerDocument.createElement("canvas");return re.width=d.offsetWidth,re.height=d.offsetHeight,re},m.prototype.appendChildNode=function(d,y,g){(!Jt(y)||!Dc(y)&&!y.hasAttribute(Pc)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(y)))&&(!this.options.copyStyles||!Jt(y)||!Cs(y))&&d.appendChild(this.cloneNode(y,g))},m.prototype.cloneChildNodes=function(d,y,g){for(var re=this,Fe=d.shadowRoot?d.shadowRoot.firstChild:d.firstChild;Fe;Fe=Fe.nextSibling)if(Jt(Fe)&&oA(Fe)&&typeof Fe.assignedNodes=="function"){var tt=Fe.assignedNodes();tt.length&&tt.forEach(function(Ct){return re.appendChildNode(y,Ct,g)})}else this.appendChildNode(y,Fe,g)},m.prototype.cloneNode=function(d,y){if(Dt(d))return document.createTextNode(d.data);if(!d.ownerDocument)return d.cloneNode(!1);var g=d.ownerDocument.defaultView;if(g&&Jt(d)&&(vr(d)||Xr(d))){var re=this.createElementClone(d);re.style.transitionProperty="none";var Fe=g.getComputedStyle(d),tt=g.getComputedStyle(d,":before"),Ct=g.getComputedStyle(d,":after");this.referenceElement===d&&vr(re)&&(this.clonedReferenceElement=re),zi(re)&&rc(re);var xt=this.counters.parse(new as(this.context,Fe)),ir=this.resolvePseudoContent(d,re,tt,Ys.BEFORE);du(d)&&(y=!0),xs(d)||this.cloneChildNodes(d,re,y),ir&&re.insertBefore(ir,re.firstChild);var mr=this.resolvePseudoContent(d,re,Ct,Ys.AFTER);return mr&&re.appendChild(mr),this.counters.pop(xt),(Fe&&(this.options.copyStyles||Xr(d))&&!hl(d)||y)&&Bs(Fe,re),(d.scrollTop!==0||d.scrollLeft!==0)&&this.scrolledElements.push([re,d.scrollLeft,d.scrollTop]),(pl(d)||tc(d))&&(pl(re)||tc(re))&&(re.value=d.value),re}return d.cloneNode(!1)},m.prototype.resolvePseudoContent=function(d,y,g,re){var Fe=this;if(g){var tt=g.content,Ct=y.ownerDocument;if(!(!Ct||!tt||tt==="none"||tt==="-moz-alt-content"||g.display==="none")){this.counters.parse(new as(this.context,g));var xt=new ro(this.context,g),ir=Ct.createElement("html2canvaspseudoelement");Bs(g,ir),xt.content.forEach(function(Br){if(Br.type===0)ir.appendChild(Ct.createTextNode(Br.value));else if(Br.type===22){var o=Ct.createElement("img");o.src=Br.value,o.style.opacity="1",ir.appendChild(o)}else if(Br.type===18){if(Br.name==="attr"){var b=Br.values.filter(Fa);b.length&&ir.appendChild(Ct.createTextNode(d.getAttribute(b[0].value)||""))}else if(Br.name==="counter"){var D=Br.values.filter(ll),oe=D[0],Oe=D[1];if(oe&&Fa(oe)){var Ke=Fe.counters.getCounterValue(oe.value),ze=Oe&&Fa(Oe)?de.parse(Fe.context,Oe.value):3;ir.appendChild(Ct.createTextNode(Hl(Ke,ze,!1)))}}else if(Br.name==="counters"){var et=Br.values.filter(ll),oe=et[0],it=et[1],Oe=et[2];if(oe&&Fa(oe)){var gt=Fe.counters.getCounterValues(oe.value),Mt=Oe&&Fa(Oe)?de.parse(Fe.context,Oe.value):3,ur=it&&it.type===0?it.value:"",lr=gt.map(function(Or){return Hl(Or,Mt,!1)}).join(ur);ir.appendChild(Ct.createTextNode(lr))}}}else if(Br.type===20)switch(Br.value){case"open-quote":ir.appendChild(Ct.createTextNode(Xn(xt.quotes,Fe.quoteDepth++,!0)));break;case"close-quote":ir.appendChild(Ct.createTextNode(Xn(xt.quotes,--Fe.quoteDepth,!1)));break;default:ir.appendChild(Ct.createTextNode(Br.value))}}),ir.className=eu+" "+xc;var mr=re===Ys.BEFORE?" "+eu:" "+xc;return Xr(y)?y.className.baseValue+=mr:y.className+=mr,ir}}},m.destroy=function(d){return d.parentNode?(d.parentNode.removeChild(d),!0):!1},m}(),Ys;(function(m){m[m.BEFORE=0]="BEFORE",m[m.AFTER=1]="AFTER"})(Ys||(Ys={}));var cA=function(m,d){var y=m.createElement("iframe");return y.className="html2canvas-container",y.style.visibility="hidden",y.style.position="fixed",y.style.left="-10000px",y.style.top="0px",y.style.border="0",y.width=d.width.toString(),y.height=d.height.toString(),y.scrolling="no",y.setAttribute(Pc,"true"),m.body.appendChild(y),y},Jc=function(m){return new Promise(function(d){if(m.complete){d();return}if(!m.src){d();return}m.onload=d,m.onerror=d})},Yc=function(m){return Promise.all([].slice.call(m.images,0).map(Jc))},pu=function(m){return new Promise(function(d,y){var g=m.contentWindow;if(!g)return y("No window assigned for iframe");var re=g.document;g.onload=m.onload=function(){g.onload=m.onload=null;var Fe=setInterval(function(){re.body.childNodes.length>0&&re.readyState==="complete"&&(clearInterval(Fe),d(m))},50)}})},qc=["all","d","content"],Bs=function(m,d){for(var y=m.length-1;y>=0;y--){var g=m.item(y);qc.indexOf(g)===-1&&d.style.setProperty(g,m.getPropertyValue(g))}return d},Ou=function(m){var d="";return m&&(d+="<!DOCTYPE ",m.name&&(d+=m.name),m.internalSubset&&(d+=m.internalSubset),m.publicId&&(d+='"'+m.publicId+'"'),m.systemId&&(d+='"'+m.systemId+'"'),d+=">"),d},jl=function(m,d,y){m&&m.defaultView&&(d!==m.defaultView.pageXOffset||y!==m.defaultView.pageYOffset)&&m.defaultView.scrollTo(d,y)},wc=function(m){var d=m[0],y=m[1],g=m[2];d.scrollLeft=y,d.scrollTop=g},mu=":before",ld=":after",eu="___html2canvas___pseudoelement_before",xc="___html2canvas___pseudoelement_after",Cc=`{
content: "" !important;
display: none !important;
}`,rc=function(m){zl(m,"."+eu+mu+Cc+`
.`+xc+ld+Cc)},zl=function(m,d){var y=m.ownerDocument;if(y){var g=y.createElement("style");g.textContent=d,m.appendChild(g)}},_A=function(){function m(){}return m.getOrigin=function(d){var y=m._link;return y?(y.href=d,y.href=y.href,y.protocol+y.hostname+y.port):"about:blank"},m.isSameOrigin=function(d){return m.getOrigin(d)===m._origin},m.setContext=function(d){m._link=d.document.createElement("a"),m._origin=m.getOrigin(d.location.href)},m._origin="about:blank",m}(),FA=function(){function m(d,y){this.context=d,this._options=y,this._cache={}}return m.prototype.addImage=function(d){var y=Promise.resolve();return this.has(d)||(Ss(d)||Ac(d))&&(this._cache[d]=this.loadImage(d)).catch(function(){}),y},m.prototype.match=function(d){return this._cache[d]},m.prototype.loadImage=function(d){return ue(this,void 0,void 0,function(){var y,g,re,Fe,tt=this;return Q(this,function(Ct){switch(Ct.label){case 0:return y=_A.isSameOrigin(d),g=!$o(d)&&this._options.useCORS===!0&&Co.SUPPORT_CORS_IMAGES&&!y,re=!$o(d)&&!y&&!Ss(d)&&typeof this._options.proxy=="string"&&Co.SUPPORT_CORS_XHR&&!g,!y&&this._options.allowTaint===!1&&!$o(d)&&!Ss(d)&&!re&&!g?[2]:(Fe=d,re?[4,this.proxy(Fe)]:[3,2]);case 1:Fe=Ct.sent(),Ct.label=2;case 2:return this.context.logger.debug("Added image "+d.substring(0,256)),[4,new Promise(function(xt,ir){var mr=new Image;mr.onload=function(){return xt(mr)},mr.onerror=ir,(is(Fe)||g)&&(mr.crossOrigin="anonymous"),mr.src=Fe,mr.complete===!0&&setTimeout(function(){return xt(mr)},500),tt._options.imageTimeout>0&&setTimeout(function(){return ir("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,Ct.sent()]}})})},m.prototype.has=function(d){return typeof this._cache[d]!="undefined"},m.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},m.prototype.proxy=function(d){var y=this,g=this._options.proxy;if(!g)throw new Error("No proxy defined");var re=d.substring(0,256);return new Promise(function(Fe,tt){var Ct=Co.SUPPORT_RESPONSE_TYPE?"blob":"text",xt=new XMLHttpRequest;xt.onload=function(){if(xt.status===200)if(Ct==="text")Fe(xt.response);else{var Br=new FileReader;Br.addEventListener("load",function(){return Fe(Br.result)},!1),Br.addEventListener("error",function(o){return tt(o)},!1),Br.readAsDataURL(xt.response)}else tt("Failed to proxy resource "+re+" with status code "+xt.status)},xt.onerror=tt;var ir=g.indexOf("?")>-1?"&":"?";if(xt.open("GET",""+g+ir+"url="+encodeURIComponent(d)+"&responseType="+Ct),Ct!=="text"&&xt instanceof XMLHttpRequest&&(xt.responseType=Ct),y._options.imageTimeout){var mr=y._options.imageTimeout;xt.timeout=mr,xt.ontimeout=function(){return tt("Timed out ("+mr+"ms) proxying "+re)}}xt.send()})},m}(),AA=/^data:image\/svg\+xml/i,Tu=/^data:image\/.*;base64,/i,Bc=/^data:image\/.*/i,Ac=function(m){return Co.SUPPORT_SVG_DRAWING||!oa(m)},$o=function(m){return Bc.test(m)},is=function(m){return Tu.test(m)},Ss=function(m){return m.substr(0,4)==="blob"},oa=function(m){return m.substr(-3).toLowerCase()==="svg"||AA.test(m)},di=function(){function m(d,y){this.type=0,this.x=d,this.y=y}return m.prototype.add=function(d,y){return new m(this.x+d,this.y+y)},m}(),uc=function(m,d,y){return new di(m.x+(d.x-m.x)*y,m.y+(d.y-m.y)*y)},uA=function(){function m(d,y,g,re){this.type=1,this.start=d,this.startControl=y,this.endControl=g,this.end=re}return m.prototype.subdivide=function(d,y){var g=uc(this.start,this.startControl,d),re=uc(this.startControl,this.endControl,d),Fe=uc(this.endControl,this.end,d),tt=uc(g,re,d),Ct=uc(re,Fe,d),xt=uc(tt,Ct,d);return y?new m(this.start,g,tt,xt):new m(xt,Ct,Fe,this.end)},m.prototype.add=function(d,y){return new m(this.start.add(d,y),this.startControl.add(d,y),this.endControl.add(d,y),this.end.add(d,y))},m.prototype.reverse=function(){return new m(this.end,this.endControl,this.startControl,this.start)},m}(),Fs=function(m){return m.type===1},cd=function(){function m(d){var y=d.styles,g=d.bounds,re=bs(y.borderTopLeftRadius,g.width,g.height),Fe=re[0],tt=re[1],Ct=bs(y.borderTopRightRadius,g.width,g.height),xt=Ct[0],ir=Ct[1],mr=bs(y.borderBottomRightRadius,g.width,g.height),Br=mr[0],o=mr[1],b=bs(y.borderBottomLeftRadius,g.width,g.height),D=b[0],oe=b[1],Oe=[];Oe.push((Fe+xt)/g.width),Oe.push((D+Br)/g.width),Oe.push((tt+oe)/g.height),Oe.push((ir+o)/g.height);var Ke=Math.max.apply(Math,Oe);Ke>1&&(Fe/=Ke,tt/=Ke,xt/=Ke,ir/=Ke,Br/=Ke,o/=Ke,D/=Ke,oe/=Ke);var ze=g.width-xt,et=g.height-o,it=g.width-Br,gt=g.height-oe,Mt=y.borderTopWidth,ur=y.borderRightWidth,lr=y.borderBottomWidth,Vt=y.borderLeftWidth,Gr=Ia(y.paddingTop,d.bounds.width),Or=Ia(y.paddingRight,d.bounds.width),Yt=Ia(y.paddingBottom,d.bounds.width),$t=Ia(y.paddingLeft,d.bounds.width);this.topLeftBorderDoubleOuterBox=Fe>0||tt>0?so(g.left+Vt/3,g.top+Mt/3,Fe-Vt/3,tt-Mt/3,Ga.TOP_LEFT):new di(g.left+Vt/3,g.top+Mt/3),this.topRightBorderDoubleOuterBox=Fe>0||tt>0?so(g.left+ze,g.top+Mt/3,xt-ur/3,ir-Mt/3,Ga.TOP_RIGHT):new di(g.left+g.width-ur/3,g.top+Mt/3),this.bottomRightBorderDoubleOuterBox=Br>0||o>0?so(g.left+it,g.top+et,Br-ur/3,o-lr/3,Ga.BOTTOM_RIGHT):new di(g.left+g.width-ur/3,g.top+g.height-lr/3),this.bottomLeftBorderDoubleOuterBox=D>0||oe>0?so(g.left+Vt/3,g.top+gt,D-Vt/3,oe-lr/3,Ga.BOTTOM_LEFT):new di(g.left+Vt/3,g.top+g.height-lr/3),this.topLeftBorderDoubleInnerBox=Fe>0||tt>0?so(g.left+Vt*2/3,g.top+Mt*2/3,Fe-Vt*2/3,tt-Mt*2/3,Ga.TOP_LEFT):new di(g.left+Vt*2/3,g.top+Mt*2/3),this.topRightBorderDoubleInnerBox=Fe>0||tt>0?so(g.left+ze,g.top+Mt*2/3,xt-ur*2/3,ir-Mt*2/3,Ga.TOP_RIGHT):new di(g.left+g.width-ur*2/3,g.top+Mt*2/3),this.bottomRightBorderDoubleInnerBox=Br>0||o>0?so(g.left+it,g.top+et,Br-ur*2/3,o-lr*2/3,Ga.BOTTOM_RIGHT):new di(g.left+g.width-ur*2/3,g.top+g.height-lr*2/3),this.bottomLeftBorderDoubleInnerBox=D>0||oe>0?so(g.left+Vt*2/3,g.top+gt,D-Vt*2/3,oe-lr*2/3,Ga.BOTTOM_LEFT):new di(g.left+Vt*2/3,g.top+g.height-lr*2/3),this.topLeftBorderStroke=Fe>0||tt>0?so(g.left+Vt/2,g.top+Mt/2,Fe-Vt/2,tt-Mt/2,Ga.TOP_LEFT):new di(g.left+Vt/2,g.top+Mt/2),this.topRightBorderStroke=Fe>0||tt>0?so(g.left+ze,g.top+Mt/2,xt-ur/2,ir-Mt/2,Ga.TOP_RIGHT):new di(g.left+g.width-ur/2,g.top+Mt/2),this.bottomRightBorderStroke=Br>0||o>0?so(g.left+it,g.top+et,Br-ur/2,o-lr/2,Ga.BOTTOM_RIGHT):new di(g.left+g.width-ur/2,g.top+g.height-lr/2),this.bottomLeftBorderStroke=D>0||oe>0?so(g.left+Vt/2,g.top+gt,D-Vt/2,oe-lr/2,Ga.BOTTOM_LEFT):new di(g.left+Vt/2,g.top+g.height-lr/2),this.topLeftBorderBox=Fe>0||tt>0?so(g.left,g.top,Fe,tt,Ga.TOP_LEFT):new di(g.left,g.top),this.topRightBorderBox=xt>0||ir>0?so(g.left+ze,g.top,xt,ir,Ga.TOP_RIGHT):new di(g.left+g.width,g.top),this.bottomRightBorderBox=Br>0||o>0?so(g.left+it,g.top+et,Br,o,Ga.BOTTOM_RIGHT):new di(g.left+g.width,g.top+g.height),this.bottomLeftBorderBox=D>0||oe>0?so(g.left,g.top+gt,D,oe,Ga.BOTTOM_LEFT):new di(g.left,g.top+g.height),this.topLeftPaddingBox=Fe>0||tt>0?so(g.left+Vt,g.top+Mt,Math.max(0,Fe-Vt),Math.max(0,tt-Mt),Ga.TOP_LEFT):new di(g.left+Vt,g.top+Mt),this.topRightPaddingBox=xt>0||ir>0?so(g.left+Math.min(ze,g.width-ur),g.top+Mt,ze>g.width+ur?0:Math.max(0,xt-ur),Math.max(0,ir-Mt),Ga.TOP_RIGHT):new di(g.left+g.width-ur,g.top+Mt),this.bottomRightPaddingBox=Br>0||o>0?so(g.left+Math.min(it,g.width-Vt),g.top+Math.min(et,g.height-lr),Math.max(0,Br-ur),Math.max(0,o-lr),Ga.BOTTOM_RIGHT):new di(g.left+g.width-ur,g.top+g.height-lr),this.bottomLeftPaddingBox=D>0||oe>0?so(g.left+Vt,g.top+Math.min(gt,g.height-lr),Math.max(0,D-Vt),Math.max(0,oe-lr),Ga.BOTTOM_LEFT):new di(g.left+Vt,g.top+g.height-lr),this.topLeftContentBox=Fe>0||tt>0?so(g.left+Vt+$t,g.top+Mt+Gr,Math.max(0,Fe-(Vt+$t)),Math.max(0,tt-(Mt+Gr)),Ga.TOP_LEFT):new di(g.left+Vt+$t,g.top+Mt+Gr),this.topRightContentBox=xt>0||ir>0?so(g.left+Math.min(ze,g.width+Vt+$t),g.top+Mt+Gr,ze>g.width+Vt+$t?0:xt-Vt+$t,ir-(Mt+Gr),Ga.TOP_RIGHT):new di(g.left+g.width-(ur+Or),g.top+Mt+Gr),this.bottomRightContentBox=Br>0||o>0?so(g.left+Math.min(it,g.width-(Vt+$t)),g.top+Math.min(et,g.height+Mt+Gr),Math.max(0,Br-(ur+Or)),o-(lr+Yt),Ga.BOTTOM_RIGHT):new di(g.left+g.width-(ur+Or),g.top+g.height-(lr+Yt)),this.bottomLeftContentBox=D>0||oe>0?so(g.left+Vt+$t,g.top+gt,Math.max(0,D-(Vt+$t)),oe-(lr+Yt),Ga.BOTTOM_LEFT):new di(g.left+Vt+$t,g.top+g.height-(lr+Yt))}return m}(),Ga;(function(m){m[m.TOP_LEFT=0]="TOP_LEFT",m[m.TOP_RIGHT=1]="TOP_RIGHT",m[m.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",m[m.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ga||(Ga={}));var so=function(m,d,y,g,re){var Fe=4*((Math.sqrt(2)-1)/3),tt=y*Fe,Ct=g*Fe,xt=m+y,ir=d+g;switch(re){case Ga.TOP_LEFT:return new uA(new di(m,ir),new di(m,ir-Ct),new di(xt-tt,d),new di(xt,d));case Ga.TOP_RIGHT:return new uA(new di(m,d),new di(m+tt,d),new di(xt,ir-Ct),new di(xt,ir));case Ga.BOTTOM_RIGHT:return new uA(new di(xt,d),new di(xt,d+Ct),new di(m+tt,ir),new di(m,ir));case Ga.BOTTOM_LEFT:default:return new uA(new di(xt,ir),new di(xt-tt,ir),new di(m,d+Ct),new di(m,d))}},Xa=function(m){return[m.topLeftBorderBox,m.topRightBorderBox,m.bottomRightBorderBox,m.bottomLeftBorderBox]},Uu=function(m){return[m.topLeftContentBox,m.topRightContentBox,m.bottomRightContentBox,m.bottomLeftContentBox]},IA=function(m){return[m.topLeftPaddingBox,m.topRightPaddingBox,m.bottomRightPaddingBox,m.bottomLeftPaddingBox]},$d=function(){function m(d,y,g){this.offsetX=d,this.offsetY=y,this.matrix=g,this.type=0,this.target=6}return m}(),MA=function(){function m(d,y){this.path=d,this.target=y,this.type=1}return m}(),tu=function(){function m(d){this.opacity=d,this.type=2,this.target=6}return m}(),LA=function(m){return m.type===0},Ad=function(m){return m.type===1},al=function(m){return m.type===2},Ru=function(m,d){return m.length===d.length?m.some(function(y,g){return y===d[g]}):!1},Qu=function(m,d,y,g,re){return m.map(function(Fe,tt){switch(tt){case 0:return Fe.add(d,y);case 1:return Fe.add(d+g,y);case 2:return Fe.add(d+g,y+re);case 3:return Fe.add(d,y+re)}return Fe})},vn=function(){function m(d){this.element=d,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return m}(),Zo=function(){function m(d,y){if(this.container=d,this.parent=y,this.effects=[],this.curves=new cd(this.container),this.container.styles.opacity<1&&this.effects.push(new tu(this.container.styles.opacity)),this.container.styles.transform!==null){var g=this.container.bounds.left+this.container.styles.transformOrigin[0].number,re=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Fe=this.container.styles.transform;this.effects.push(new $d(g,re,Fe))}if(this.container.styles.overflowX!==0){var tt=Xa(this.curves),Ct=IA(this.curves);Ru(tt,Ct)?this.effects.push(new MA(tt,6)):(this.effects.push(new MA(tt,2)),this.effects.push(new MA(Ct,4)))}}return m.prototype.getEffects=function(d){for(var y=[2,3].indexOf(this.container.styles.position)===-1,g=this.parent,re=this.effects.slice(0);g;){var Fe=g.effects.filter(function(xt){return!Ad(xt)});if(y||g.container.styles.position!==0||!g.parent){if(re.unshift.apply(re,Fe),y=[2,3].indexOf(g.container.styles.position)===-1,g.container.styles.overflowX!==0){var tt=Xa(g.curves),Ct=IA(g.curves);Ru(tt,Ct)||re.unshift(new MA(Ct,6))}}else re.unshift.apply(re,Fe);g=g.parent}return re.filter(function(xt){return Vn(xt.target,d)})},m}(),Zd=function(m,d,y,g){m.container.elements.forEach(function(re){var Fe=Vn(re.flags,4),tt=Vn(re.flags,2),Ct=new Zo(re,m);Vn(re.styles.display,2048)&&g.push(Ct);var xt=Vn(re.flags,8)?[]:g;if(Fe||tt){var ir=Fe||re.styles.isPositioned()?y:d,mr=new vn(Ct);if(re.styles.isPositioned()||re.styles.opacity<1||re.styles.isTransformed()){var Br=re.styles.zIndex.order;if(Br<0){var o=0;ir.negativeZIndex.some(function(D,oe){return Br>D.element.container.styles.zIndex.order?(o=oe,!1):o>0}),ir.negativeZIndex.splice(o,0,mr)}else if(Br>0){var b=0;ir.positiveZIndex.some(function(D,oe){return Br>=D.element.container.styles.zIndex.order?(b=oe+1,!1):b>0}),ir.positiveZIndex.splice(b,0,mr)}else ir.zeroOrAutoZIndexOrTransformedOrOpacity.push(mr)}else re.styles.isFloating()?ir.nonPositionedFloats.push(mr):ir.nonPositionedInlineLevel.push(mr);Zd(Ct,mr,Fe?mr:y,xt)}else re.styles.isInlineLevel()?d.inlineLevel.push(Ct):d.nonInlineLevel.push(Ct),Zd(Ct,d,y,xt);Vn(re.flags,8)&&Vd(re,xt)})},Vd=function(m,d){for(var y=m instanceof gc?m.start:1,g=m instanceof gc?m.reversed:!1,re=0;re<d.length;re++){var Fe=d[re];Fe.container instanceof mc&&typeof Fe.container.value=="number"&&Fe.container.value!==0&&(y=Fe.container.value),Fe.listValue=Hl(y,Fe.container.styles.listStyleType,!0),y+=g?-1:1}},Wd=function(m){var d=new Zo(m,null),y=new vn(d),g=[];return Zd(d,y,y,g),Vd(d.container,g),y},_d=function(m,d){switch(d){case 0:return $l(m.topLeftBorderBox,m.topLeftPaddingBox,m.topRightBorderBox,m.topRightPaddingBox);case 1:return $l(m.topRightBorderBox,m.topRightPaddingBox,m.bottomRightBorderBox,m.bottomRightPaddingBox);case 2:return $l(m.bottomRightBorderBox,m.bottomRightPaddingBox,m.bottomLeftBorderBox,m.bottomLeftPaddingBox);case 3:default:return $l(m.bottomLeftBorderBox,m.bottomLeftPaddingBox,m.topLeftBorderBox,m.topLeftPaddingBox)}},Ku=function(m,d){switch(d){case 0:return $l(m.topLeftBorderBox,m.topLeftBorderDoubleOuterBox,m.topRightBorderBox,m.topRightBorderDoubleOuterBox);case 1:return $l(m.topRightBorderBox,m.topRightBorderDoubleOuterBox,m.bottomRightBorderBox,m.bottomRightBorderDoubleOuterBox);case 2:return $l(m.bottomRightBorderBox,m.bottomRightBorderDoubleOuterBox,m.bottomLeftBorderBox,m.bottomLeftBorderDoubleOuterBox);case 3:default:return $l(m.bottomLeftBorderBox,m.bottomLeftBorderDoubleOuterBox,m.topLeftBorderBox,m.topLeftBorderDoubleOuterBox)}},ud=function(m,d){switch(d){case 0:return $l(m.topLeftBorderDoubleInnerBox,m.topLeftPaddingBox,m.topRightBorderDoubleInnerBox,m.topRightPaddingBox);case 1:return $l(m.topRightBorderDoubleInnerBox,m.topRightPaddingBox,m.bottomRightBorderDoubleInnerBox,m.bottomRightPaddingBox);case 2:return $l(m.bottomRightBorderDoubleInnerBox,m.bottomRightPaddingBox,m.bottomLeftBorderDoubleInnerBox,m.bottomLeftPaddingBox);case 3:default:return $l(m.bottomLeftBorderDoubleInnerBox,m.bottomLeftPaddingBox,m.topLeftBorderDoubleInnerBox,m.topLeftPaddingBox)}},vf=function(m,d){switch(d){case 0:return gu(m.topLeftBorderStroke,m.topRightBorderStroke);case 1:return gu(m.topRightBorderStroke,m.bottomRightBorderStroke);case 2:return gu(m.bottomRightBorderStroke,m.bottomLeftBorderStroke);case 3:default:return gu(m.bottomLeftBorderStroke,m.topLeftBorderStroke)}},gu=function(m,d){var y=[];return Fs(m)?y.push(m.subdivide(.5,!1)):y.push(m),Fs(d)?y.push(d.subdivide(.5,!0)):y.push(d),y},$l=function(m,d,y,g){var re=[];return Fs(m)?re.push(m.subdivide(.5,!1)):re.push(m),Fs(y)?re.push(y.subdivide(.5,!0)):re.push(y),Fs(g)?re.push(g.subdivide(.5,!0).reverse()):re.push(g),Fs(d)?re.push(d.subdivide(.5,!1).reverse()):re.push(d),re},Nc=function(m){var d=m.bounds,y=m.styles;return d.add(y.borderLeftWidth,y.borderTopWidth,-(y.borderRightWidth+y.borderLeftWidth),-(y.borderTopWidth+y.borderBottomWidth))},Is=function(m){var d=m.styles,y=m.bounds,g=Ia(d.paddingLeft,y.width),re=Ia(d.paddingRight,y.width),Fe=Ia(d.paddingTop,y.width),tt=Ia(d.paddingBottom,y.width);return y.add(g+d.borderLeftWidth,Fe+d.borderTopWidth,-(d.borderRightWidth+d.borderLeftWidth+g+re),-(d.borderTopWidth+d.borderBottomWidth+Fe+tt))},Hu=function(m,d){return m===0?d.bounds:m===2?Is(d):Nc(d)},dd=function(m,d){return m===0?d.bounds:m===2?Is(d):Nc(d)},dA=function(m,d,y){var g=Hu(yl(m.styles.backgroundOrigin,d),m),re=dd(yl(m.styles.backgroundClip,d),m),Fe=ju(yl(m.styles.backgroundSize,d),y,g),tt=Fe[0],Ct=Fe[1],xt=bs(yl(m.styles.backgroundPosition,d),g.width-tt,g.height-Ct),ir=Sc(yl(m.styles.backgroundRepeat,d),xt,Fe,g,re),mr=Math.round(g.left+xt[0]),Br=Math.round(g.top+xt[1]);return[ir,mr,Br,tt,Ct]},vl=function(m){return Fa(m)&&m.value===v.AUTO},fd=function(m){return typeof m=="number"},ju=function(m,d,y){var g=d[0],re=d[1],Fe=d[2],tt=m[0],Ct=m[1];if(!tt)return[0,0];if(Un(tt)&&Ct&&Un(Ct))return[Ia(tt,y.width),Ia(Ct,y.height)];var xt=fd(Fe);if(Fa(tt)&&(tt.value===v.CONTAIN||tt.value===v.COVER)){if(fd(Fe)){var ir=y.width/y.height;return ir<Fe!=(tt.value===v.COVER)?[y.width,y.width/Fe]:[y.height*Fe,y.height]}return[y.width,y.height]}var mr=fd(g),Br=fd(re),o=mr||Br;if(vl(tt)&&(!Ct||vl(Ct))){if(mr&&Br)return[g,re];if(!xt&&!o)return[y.width,y.height];if(o&&xt){var b=mr?g:re*Fe,D=Br?re:g/Fe;return[b,D]}var oe=mr?g:y.width,Oe=Br?re:y.height;return[oe,Oe]}if(xt){var Ke=0,ze=0;return Un(tt)?Ke=Ia(tt,y.width):Un(Ct)&&(ze=Ia(Ct,y.height)),vl(tt)?Ke=ze*Fe:(!Ct||vl(Ct))&&(ze=Ke/Fe),[Ke,ze]}var et=null,it=null;if(Un(tt)?et=Ia(tt,y.width):Ct&&Un(Ct)&&(it=Ia(Ct,y.height)),et!==null&&(!Ct||vl(Ct))&&(it=mr&&Br?et/g*re:y.height),it!==null&&vl(tt)&&(et=mr&&Br?it/re*g:y.width),et!==null&&it!==null)return[et,it];throw new Error("Unable to calculate background-size for element")},yl=function(m,d){var y=m[d];return typeof y=="undefined"?m[0]:y},Sc=function(m,d,y,g,re){var Fe=d[0],tt=d[1],Ct=y[0],xt=y[1];switch(m){case 2:return[new di(Math.round(g.left),Math.round(g.top+tt)),new di(Math.round(g.left+g.width),Math.round(g.top+tt)),new di(Math.round(g.left+g.width),Math.round(xt+g.top+tt)),new di(Math.round(g.left),Math.round(xt+g.top+tt))];case 3:return[new di(Math.round(g.left+Fe),Math.round(g.top)),new di(Math.round(g.left+Fe+Ct),Math.round(g.top)),new di(Math.round(g.left+Fe+Ct),Math.round(g.height+g.top)),new di(Math.round(g.left+Fe),Math.round(g.height+g.top))];case 1:return[new di(Math.round(g.left+Fe),Math.round(g.top+tt)),new di(Math.round(g.left+Fe+Ct),Math.round(g.top+tt)),new di(Math.round(g.left+Fe+Ct),Math.round(g.top+tt+xt)),new di(Math.round(g.left+Fe),Math.round(g.top+tt+xt))];default:return[new di(Math.round(re.left),Math.round(re.top)),new di(Math.round(re.left+re.width),Math.round(re.top)),new di(Math.round(re.left+re.width),Math.round(re.height+re.top)),new di(Math.round(re.left),Math.round(re.height+re.top))]}},fA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",zu="Hidden Text",Gd=function(){function m(d){this._data={},this._document=d}return m.prototype.parseMetrics=function(d,y){var g=this._document.createElement("div"),re=this._document.createElement("img"),Fe=this._document.createElement("span"),tt=this._document.body;g.style.visibility="hidden",g.style.fontFamily=d,g.style.fontSize=y,g.style.margin="0",g.style.padding="0",g.style.whiteSpace="nowrap",tt.appendChild(g),re.src=fA,re.width=1,re.height=1,re.style.margin="0",re.style.padding="0",re.style.verticalAlign="baseline",Fe.style.fontFamily=d,Fe.style.fontSize=y,Fe.style.margin="0",Fe.style.padding="0",Fe.appendChild(this._document.createTextNode(zu)),g.appendChild(Fe),g.appendChild(re);var Ct=re.offsetTop-Fe.offsetTop+2;g.removeChild(Fe),g.appendChild(this._document.createTextNode(zu)),g.style.lineHeight="normal",re.style.verticalAlign="super";var xt=re.offsetTop-g.offsetTop+2;return tt.removeChild(g),{baseline:Ct,middle:xt}},m.prototype.getMetrics=function(d,y){var g=d+" "+y;return typeof this._data[g]=="undefined"&&(this._data[g]=this.parseMetrics(d,y)),this._data[g]},m}(),hA=function(){function m(d,y){this.context=d,this.options=y}return m}(),Ec=1e4,$u=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re._activeEffects=[],re.canvas=g.canvas?g.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),g.canvas||(re.canvas.width=Math.floor(g.width*g.scale),re.canvas.height=Math.floor(g.height*g.scale),re.canvas.style.width=g.width+"px",re.canvas.style.height=g.height+"px"),re.fontMetrics=new Gd(document),re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-g.x,-g.y),re.ctx.textBaseline="bottom",re._activeEffects=[],re.context.logger.debug("Canvas renderer initialized ("+g.width+"x"+g.height+") with scale "+g.scale),re}return d.prototype.applyEffects=function(y){for(var g=this;this._activeEffects.length;)this.popEffect();y.forEach(function(re){return g.applyEffect(re)})},d.prototype.applyEffect=function(y){this.ctx.save(),al(y)&&(this.ctx.globalAlpha=y.opacity),LA(y)&&(this.ctx.translate(y.offsetX,y.offsetY),this.ctx.transform(y.matrix[0],y.matrix[1],y.matrix[2],y.matrix[3],y.matrix[4],y.matrix[5]),this.ctx.translate(-y.offsetX,-y.offsetY)),Ad(y)&&(this.path(y.path),this.ctx.clip()),this._activeEffects.push(y)},d.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},d.prototype.renderStack=function(y){return ue(this,void 0,void 0,function(){var g;return Q(this,function(re){switch(re.label){case 0:return g=y.element.container.styles,g.isVisible()?[4,this.renderStackContent(y)]:[3,2];case 1:re.sent(),re.label=2;case 2:return[2]}})})},d.prototype.renderNode=function(y){return ue(this,void 0,void 0,function(){return Q(this,function(g){switch(g.label){case 0:if(Vn(y.container.flags,16))debugger;return y.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(y)]:[3,3];case 1:return g.sent(),[4,this.renderNodeContent(y)];case 2:g.sent(),g.label=3;case 3:return[2]}})})},d.prototype.renderTextWithLetterSpacing=function(y,g,re){var Fe=this;if(g===0)this.ctx.fillText(y.text,y.bounds.left,y.bounds.top+re);else{var tt=va(y.text);tt.reduce(function(Ct,xt){return Fe.ctx.fillText(xt,Ct,y.bounds.top+re),Ct+Fe.ctx.measureText(xt).width},y.bounds.left)}},d.prototype.createFontStyle=function(y){var g=y.fontVariant.filter(function(tt){return tt==="normal"||tt==="small-caps"}).join(""),re=Xd(y.fontFamily).join(", "),Fe=Ao(y.fontSize)?""+y.fontSize.number+y.fontSize.unit:y.fontSize.number+"px";return[[y.fontStyle,g,y.fontWeight,Fe,re].join(" "),re,Fe]},d.prototype.renderTextNode=function(y,g){return ue(this,void 0,void 0,function(){var re,Fe,tt,Ct,xt,ir,mr,Br,o=this;return Q(this,function(b){return re=this.createFontStyle(g),Fe=re[0],tt=re[1],Ct=re[2],this.ctx.font=Fe,this.ctx.direction=g.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",xt=this.fontMetrics.getMetrics(tt,Ct),ir=xt.baseline,mr=xt.middle,Br=g.paintOrder,y.textBounds.forEach(function(D){Br.forEach(function(oe){switch(oe){case 0:o.ctx.fillStyle=to(g.color),o.renderTextWithLetterSpacing(D,g.letterSpacing,ir);var Oe=g.textShadow;Oe.length&&D.text.trim().length&&(Oe.slice(0).reverse().forEach(function(Ke){o.ctx.shadowColor=to(Ke.color),o.ctx.shadowOffsetX=Ke.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=Ke.offsetY.number*o.options.scale,o.ctx.shadowBlur=Ke.blur.number,o.renderTextWithLetterSpacing(D,g.letterSpacing,ir)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),g.textDecorationLine.length&&(o.ctx.fillStyle=to(g.textDecorationColor||g.color),g.textDecorationLine.forEach(function(Ke){switch(Ke){case 1:o.ctx.fillRect(D.bounds.left,Math.round(D.bounds.top+ir),D.bounds.width,1);break;case 2:o.ctx.fillRect(D.bounds.left,Math.round(D.bounds.top),D.bounds.width,1);break;case 3:o.ctx.fillRect(D.bounds.left,Math.ceil(D.bounds.top+mr),D.bounds.width,1);break}}));break;case 1:g.webkitTextStrokeWidth&&D.text.trim().length&&(o.ctx.strokeStyle=to(g.webkitTextStrokeColor),o.ctx.lineWidth=g.webkitTextStrokeWidth,o.ctx.lineJoin=window.chrome?"miter":"round",o.ctx.strokeText(D.text,D.bounds.left,D.bounds.top+ir)),o.ctx.strokeStyle="",o.ctx.lineWidth=0,o.ctx.lineJoin="miter";break}})}),[2]})})},d.prototype.renderReplacedElement=function(y,g,re){if(re&&y.intrinsicWidth>0&&y.intrinsicHeight>0){var Fe=Is(y),tt=IA(g);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(re,0,0,y.intrinsicWidth,y.intrinsicHeight,Fe.left,Fe.top,Fe.width,Fe.height),this.ctx.restore()}},d.prototype.renderNodeContent=function(y){return ue(this,void 0,void 0,function(){var g,re,Fe,tt,Ct,xt,ze,ze,ir,mr,Br,o,it,b,D,gt,oe,Oe,Ke,ze,et,it,gt;return Q(this,function(Mt){switch(Mt.label){case 0:this.applyEffects(y.getEffects(4)),g=y.container,re=y.curves,Fe=g.styles,tt=0,Ct=g.textNodes,Mt.label=1;case 1:return tt<Ct.length?(xt=Ct[tt],[4,this.renderTextNode(xt,Fe)]):[3,4];case 2:Mt.sent(),Mt.label=3;case 3:return tt++,[3,1];case 4:if(!(g instanceof lu))return[3,8];Mt.label=5;case 5:return Mt.trys.push([5,7,,8]),[4,this.context.cache.match(g.src)];case 6:return ze=Mt.sent(),this.renderReplacedElement(g,re,ze),[3,8];case 7:return Mt.sent(),this.context.logger.error("Error loading image "+g.src),[3,8];case 8:if(g instanceof ya&&this.renderReplacedElement(g,re,g.canvas),!(g instanceof fl))return[3,12];Mt.label=9;case 9:return Mt.trys.push([9,11,,12]),[4,this.context.cache.match(g.svg)];case 10:return ze=Mt.sent(),this.renderReplacedElement(g,re,ze),[3,12];case 11:return Mt.sent(),this.context.logger.error("Error loading svg "+g.svg.substring(0,255)),[3,12];case 12:return g instanceof Gc&&g.tree?(ir=new d(this.context,{scale:this.options.scale,backgroundColor:g.backgroundColor,x:0,y:0,width:g.width,height:g.height}),[4,ir.render(g.tree)]):[3,14];case 13:mr=Mt.sent(),g.width&&g.height&&this.ctx.drawImage(mr,0,0,g.width,g.height,g.bounds.left,g.bounds.top,g.bounds.width,g.bounds.height),Mt.label=14;case 14:if(g instanceof ws&&(Br=Math.min(g.bounds.width,g.bounds.height),g.type===SA?g.checked&&(this.ctx.save(),this.path([new di(g.bounds.left+Br*.39363,g.bounds.top+Br*.79),new di(g.bounds.left+Br*.16,g.bounds.top+Br*.5549),new di(g.bounds.left+Br*.27347,g.bounds.top+Br*.44071),new di(g.bounds.left+Br*.39694,g.bounds.top+Br*.5649),new di(g.bounds.left+Br*.72983,g.bounds.top+Br*.23),new di(g.bounds.left+Br*.84,g.bounds.top+Br*.34085),new di(g.bounds.left+Br*.39363,g.bounds.top+Br*.79)]),this.ctx.fillStyle=to(uu),this.ctx.fill(),this.ctx.restore()):g.type===Lc&&g.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(g.bounds.left+Br/2,g.bounds.top+Br/2,Br/4,0,Math.PI*2,!0),this.ctx.fillStyle=to(uu),this.ctx.fill(),this.ctx.restore())),Zu(g)&&g.value.length){switch(o=this.createFontStyle(Fe),it=o[0],b=o[1],D=this.fontMetrics.getMetrics(it,b).baseline,this.ctx.font=it,this.ctx.fillStyle=to(Fe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=kA(g.styles.textAlign),gt=Is(g),oe=0,g.styles.textAlign){case 1:oe+=gt.width/2;break;case 2:oe+=gt.width;break}Oe=gt.add(oe,0,0,-gt.height/2+1),this.ctx.save(),this.path([new di(gt.left,gt.top),new di(gt.left+gt.width,gt.top),new di(gt.left+gt.width,gt.top+gt.height),new di(gt.left,gt.top+gt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Xs(g.value,Oe),Fe.letterSpacing,D),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Vn(g.styles.display,2048))return[3,20];if(g.styles.listStyleImage===null)return[3,19];if(Ke=g.styles.listStyleImage,Ke.type!==0)return[3,18];ze=void 0,et=Ke.url,Mt.label=15;case 15:return Mt.trys.push([15,17,,18]),[4,this.context.cache.match(et)];case 16:return ze=Mt.sent(),this.ctx.drawImage(ze,g.bounds.left-(ze.width+10),g.bounds.top),[3,18];case 17:return Mt.sent(),this.context.logger.error("Error loading list-style-image "+et),[3,18];case 18:return[3,20];case 19:y.listValue&&g.styles.listStyleType!==-1&&(it=this.createFontStyle(Fe)[0],this.ctx.font=it,this.ctx.fillStyle=to(Fe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",gt=new ne(g.bounds.left,g.bounds.top+Ia(g.styles.paddingTop,g.bounds.width),g.bounds.width,dt(Fe.lineHeight,Fe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Xs(y.listValue,gt),Fe.letterSpacing,dt(Fe.lineHeight,Fe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Mt.label=20;case 20:return[2]}})})},d.prototype.renderStackContent=function(y){return ue(this,void 0,void 0,function(){var g,re,Ke,Fe,tt,Ke,Ct,xt,Ke,ir,mr,Ke,Br,o,Ke,b,D,Ke,oe,Oe,Ke;return Q(this,function(ze){switch(ze.label){case 0:if(Vn(y.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(y.element)];case 1:ze.sent(),g=0,re=y.negativeZIndex,ze.label=2;case 2:return g<re.length?(Ke=re[g],[4,this.renderStack(Ke)]):[3,5];case 3:ze.sent(),ze.label=4;case 4:return g++,[3,2];case 5:return[4,this.renderNodeContent(y.element)];case 6:ze.sent(),Fe=0,tt=y.nonInlineLevel,ze.label=7;case 7:return Fe<tt.length?(Ke=tt[Fe],[4,this.renderNode(Ke)]):[3,10];case 8:ze.sent(),ze.label=9;case 9:return Fe++,[3,7];case 10:Ct=0,xt=y.nonPositionedFloats,ze.label=11;case 11:return Ct<xt.length?(Ke=xt[Ct],[4,this.renderStack(Ke)]):[3,14];case 12:ze.sent(),ze.label=13;case 13:return Ct++,[3,11];case 14:ir=0,mr=y.nonPositionedInlineLevel,ze.label=15;case 15:return ir<mr.length?(Ke=mr[ir],[4,this.renderStack(Ke)]):[3,18];case 16:ze.sent(),ze.label=17;case 17:return ir++,[3,15];case 18:Br=0,o=y.inlineLevel,ze.label=19;case 19:return Br<o.length?(Ke=o[Br],[4,this.renderNode(Ke)]):[3,22];case 20:ze.sent(),ze.label=21;case 21:return Br++,[3,19];case 22:b=0,D=y.zeroOrAutoZIndexOrTransformedOrOpacity,ze.label=23;case 23:return b<D.length?(Ke=D[b],[4,this.renderStack(Ke)]):[3,26];case 24:ze.sent(),ze.label=25;case 25:return b++,[3,23];case 26:oe=0,Oe=y.positiveZIndex,ze.label=27;case 27:return oe<Oe.length?(Ke=Oe[oe],[4,this.renderStack(Ke)]):[3,30];case 28:ze.sent(),ze.label=29;case 29:return oe++,[3,27];case 30:return[2]}})})},d.prototype.mask=function(y){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(y.slice(0).reverse()),this.ctx.closePath()},d.prototype.path=function(y){this.ctx.beginPath(),this.formatPath(y),this.ctx.closePath()},d.prototype.formatPath=function(y){var g=this;y.forEach(function(re,Fe){var tt=Fs(re)?re.start:re;Fe===0?g.ctx.moveTo(tt.x,tt.y):g.ctx.lineTo(tt.x,tt.y),Fs(re)&&g.ctx.bezierCurveTo(re.startControl.x,re.startControl.y,re.endControl.x,re.endControl.y,re.end.x,re.end.y)})},d.prototype.renderRepeat=function(y,g,re,Fe){this.path(y),this.ctx.fillStyle=g,this.ctx.translate(re,Fe),this.ctx.fill(),this.ctx.translate(-re,-Fe)},d.prototype.resizeImage=function(y,g,re){var Fe;if(y.width===g&&y.height===re)return y;var tt=(Fe=this.canvas.ownerDocument)!==null&&Fe!==void 0?Fe:document,Ct=tt.createElement("canvas");Ct.width=Math.max(1,g),Ct.height=Math.max(1,re);var xt=Ct.getContext("2d");return xt.drawImage(y,0,0,y.width,y.height,0,0,g,re),Ct},d.prototype.renderBackgroundImage=function(y){return ue(this,void 0,void 0,function(){var g,re,Fe,tt,Ct,xt;return Q(this,function(ir){switch(ir.label){case 0:g=y.styles.backgroundImage.length-1,re=function(mr){var Br,o,b,Gr,tn,fi,$t,Yr,lr,D,Gr,tn,fi,$t,Yr,oe,Oe,Ke,ze,et,it,gt,Mt,ur,lr,Vt,Gr,Or,Yt,$t,Yr,bn,tn,fi,Jn,Gi,ai,Ha,Ua,Ra,Na,no;return Q(this,function(po){switch(po.label){case 0:if(mr.type!==0)return[3,5];Br=void 0,o=mr.url,po.label=1;case 1:return po.trys.push([1,3,,4]),[4,Fe.context.cache.match(o)];case 2:return Br=po.sent(),[3,4];case 3:return po.sent(),Fe.context.logger.error("Error loading background-image "+o),[3,4];case 4:return Br&&(b=dA(y,g,[Br.width,Br.height,Br.width/Br.height]),Gr=b[0],tn=b[1],fi=b[2],$t=b[3],Yr=b[4],lr=Fe.ctx.createPattern(Fe.resizeImage(Br,$t,Yr),"repeat"),Fe.renderRepeat(Gr,lr,tn,fi)),[3,6];case 5:ad(mr)?(D=dA(y,g,[null,null,null]),Gr=D[0],tn=D[1],fi=D[2],$t=D[3],Yr=D[4],oe=Gs(mr.angle,$t,Yr),Oe=oe[0],Ke=oe[1],ze=oe[2],et=oe[3],it=oe[4],gt=document.createElement("canvas"),gt.width=$t,gt.height=Yr,Mt=gt.getContext("2d"),ur=Mt.createLinearGradient(Ke,et,ze,it),yA(mr.stops,Oe).forEach(function(ea){return ur.addColorStop(ea.stop,to(ea.color))}),Mt.fillStyle=ur,Mt.fillRect(0,0,$t,Yr),$t>0&&Yr>0&&(lr=Fe.ctx.createPattern(gt,"repeat"),Fe.renderRepeat(Gr,lr,tn,fi))):od(mr)&&(Vt=dA(y,g,[null,null,null]),Gr=Vt[0],Or=Vt[1],Yt=Vt[2],$t=Vt[3],Yr=Vt[4],bn=mr.position.length===0?[Vl]:mr.position,tn=Ia(bn[0],$t),fi=Ia(bn[bn.length-1],Yr),Jn=Pa(mr,tn,fi,$t,Yr),Gi=Jn[0],ai=Jn[1],Gi>0&&ai>0&&(Ha=Fe.ctx.createRadialGradient(Or+tn,Yt+fi,0,Or+tn,Yt+fi,Gi),yA(mr.stops,Gi*2).forEach(function(ea){return Ha.addColorStop(ea.stop,to(ea.color))}),Fe.path(Gr),Fe.ctx.fillStyle=Ha,Gi!==ai?(Ua=y.bounds.left+.5*y.bounds.width,Ra=y.bounds.top+.5*y.bounds.height,Na=ai/Gi,no=1/Na,Fe.ctx.save(),Fe.ctx.translate(Ua,Ra),Fe.ctx.transform(1,0,0,Na,0,0),Fe.ctx.translate(-Ua,-Ra),Fe.ctx.fillRect(Or,no*(Yt-Ra)+Ra,$t,Yr*no),Fe.ctx.restore()):Fe.ctx.fill())),po.label=6;case 6:return g--,[2]}})},Fe=this,tt=0,Ct=y.styles.backgroundImage.slice(0).reverse(),ir.label=1;case 1:return tt<Ct.length?(xt=Ct[tt],[5,re(xt)]):[3,4];case 2:ir.sent(),ir.label=3;case 3:return tt++,[3,1];case 4:return[2]}})})},d.prototype.renderSolidBorder=function(y,g,re){return ue(this,void 0,void 0,function(){return Q(this,function(Fe){return this.path(_d(re,g)),this.ctx.fillStyle=to(y),this.ctx.fill(),[2]})})},d.prototype.renderDoubleBorder=function(y,g,re,Fe){return ue(this,void 0,void 0,function(){var tt,Ct;return Q(this,function(xt){switch(xt.label){case 0:return g<3?[4,this.renderSolidBorder(y,re,Fe)]:[3,2];case 1:return xt.sent(),[2];case 2:return tt=Ku(Fe,re),this.path(tt),this.ctx.fillStyle=to(y),this.ctx.fill(),Ct=ud(Fe,re),this.path(Ct),this.ctx.fill(),[2]}})})},d.prototype.renderNodeBackgroundAndBorders=function(y){return ue(this,void 0,void 0,function(){var g,re,Fe,tt,Ct,xt,ir,mr,Br=this;return Q(this,function(o){switch(o.label){case 0:return this.applyEffects(y.getEffects(2)),g=y.container.styles,re=!Ko(g.backgroundColor)||g.backgroundImage.length,Fe=[{style:g.borderTopStyle,color:g.borderTopColor,width:g.borderTopWidth},{style:g.borderRightStyle,color:g.borderRightColor,width:g.borderRightWidth},{style:g.borderBottomStyle,color:g.borderBottomColor,width:g.borderBottomWidth},{style:g.borderLeftStyle,color:g.borderLeftColor,width:g.borderLeftWidth}],tt=hd(yl(g.backgroundClip,0),y.curves),re||g.boxShadow.length?(this.ctx.save(),this.path(tt),this.ctx.clip(),Ko(g.backgroundColor)||(this.ctx.fillStyle=to(g.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(y.container)]):[3,2];case 1:o.sent(),this.ctx.restore(),g.boxShadow.slice(0).reverse().forEach(function(b){Br.ctx.save();var D=Xa(y.curves),oe=b.inset?0:Ec,Oe=Qu(D,-oe+(b.inset?1:-1)*b.spread.number,(b.inset?1:-1)*b.spread.number,b.spread.number*(b.inset?-2:2),b.spread.number*(b.inset?-2:2));b.inset?(Br.path(D),Br.ctx.clip(),Br.mask(Oe)):(Br.mask(D),Br.ctx.clip(),Br.path(Oe)),Br.ctx.shadowOffsetX=b.offsetX.number+oe,Br.ctx.shadowOffsetY=b.offsetY.number,Br.ctx.shadowColor=to(b.color),Br.ctx.shadowBlur=b.blur.number,Br.ctx.fillStyle=b.inset?to(b.color):"rgba(0,0,0,1)",Br.ctx.fill(),Br.ctx.restore()}),o.label=2;case 2:Ct=0,xt=0,ir=Fe,o.label=3;case 3:return xt<ir.length?(mr=ir[xt],mr.style!==0&&!Ko(mr.color)&&mr.width>0?mr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(mr.color,mr.width,Ct,y.curves,2)]:[3,11]):[3,13];case 4:return o.sent(),[3,11];case 5:return mr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(mr.color,mr.width,Ct,y.curves,3)];case 6:return o.sent(),[3,11];case 7:return mr.style!==4?[3,9]:[4,this.renderDoubleBorder(mr.color,mr.width,Ct,y.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(mr.color,Ct,y.curves)];case 10:o.sent(),o.label=11;case 11:Ct++,o.label=12;case 12:return xt++,[3,3];case 13:return[2]}})})},d.prototype.renderDashedDottedBorder=function(y,g,re,Fe,tt){return ue(this,void 0,void 0,function(){var Ct,xt,ir,mr,Br,o,b,D,oe,Oe,Ke,ze,et,it,gt,Mt,gt,Mt;return Q(this,function(ur){return this.ctx.save(),Ct=vf(Fe,re),xt=_d(Fe,re),tt===2&&(this.path(xt),this.ctx.clip()),Fs(xt[0])?(ir=xt[0].start.x,mr=xt[0].start.y):(ir=xt[0].x,mr=xt[0].y),Fs(xt[1])?(Br=xt[1].end.x,o=xt[1].end.y):(Br=xt[1].x,o=xt[1].y),re===0||re===2?b=Math.abs(ir-Br):b=Math.abs(mr-o),this.ctx.beginPath(),tt===3?this.formatPath(Ct):this.formatPath(xt.slice(0,2)),D=g<3?g*3:g*2,oe=g<3?g*2:g,tt===3&&(D=g,oe=g),Oe=!0,b<=D*2?Oe=!1:b<=D*2+oe?(Ke=b/(2*D+oe),D*=Ke,oe*=Ke):(ze=Math.floor((b+oe)/(D+oe)),et=(b-ze*D)/(ze-1),it=(b-(ze+1)*D)/ze,oe=it<=0||Math.abs(oe-et)<Math.abs(oe-it)?et:it),Oe&&(tt===3?this.ctx.setLineDash([0,D+oe]):this.ctx.setLineDash([D,oe])),tt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=g):this.ctx.lineWidth=g*2+1.1,this.ctx.strokeStyle=to(y),this.ctx.stroke(),this.ctx.setLineDash([]),tt===2&&(Fs(xt[0])&&(gt=xt[3],Mt=xt[0],this.ctx.beginPath(),this.formatPath([new di(gt.end.x,gt.end.y),new di(Mt.start.x,Mt.start.y)]),this.ctx.stroke()),Fs(xt[1])&&(gt=xt[1],Mt=xt[2],this.ctx.beginPath(),this.formatPath([new di(gt.end.x,gt.end.y),new di(Mt.start.x,Mt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},d.prototype.render=function(y){return ue(this,void 0,void 0,function(){var g;return Q(this,function(re){switch(re.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=to(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),g=Wd(y),[4,this.renderStack(g)];case 1:return re.sent(),this.applyEffects([]),[2,this.canvas]}})})},d}(hA),Zu=function(m){return m instanceof GA||m instanceof vc?!0:m instanceof ws&&m.type!==Lc&&m.type!==SA},hd=function(m,d){switch(m){case 0:return Xa(d);case 2:return Uu(d);case 1:default:return IA(d)}},kA=function(m){switch(m){case 1:return"center";case 2:return"right";case 0:default:return"left"}},pA=["-apple-system","system-ui"],Xd=function(m){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?m.filter(function(d){return pA.indexOf(d)===-1}):m},Jd=function(m){x(d,m);function d(y,g){var re=m.call(this,y,g)||this;return re.canvas=g.canvas?g.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),re.options=g,re.canvas.width=Math.floor(g.width*g.scale),re.canvas.height=Math.floor(g.height*g.scale),re.canvas.style.width=g.width+"px",re.canvas.style.height=g.height+"px",re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-g.x,-g.y),re.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+g.width+"x"+g.height+" at "+g.x+","+g.y+") with scale "+g.scale),re}return d.prototype.render=function(y){return ue(this,void 0,void 0,function(){var g,re;return Q(this,function(Fe){switch(Fe.label){case 0:return g=Yl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,y),[4,vu(g)];case 1:return re=Fe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=to(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(re,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},d}(hA),vu=function(m){return new Promise(function(d,y){var g=new Image;g.onload=function(){d(g)},g.onerror=y,g.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},Vu=function(){function m(d){var y=d.id,g=d.enabled;this.id=y,this.enabled=g,this.start=Date.now()}return m.prototype.debug=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Te([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},m.prototype.getTime=function(){return Date.now()-this.start},m.prototype.info=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Te([this.id,this.getTime()+"ms"],d))},m.prototype.warn=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Te([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},m.prototype.error=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Te([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},m.instances={},m}(),Wu=function(){function m(d,y){var g;this.windowBounds=y,this.instanceName="#"+m.instanceCount++,this.logger=new Vu({id:this.instanceName,enabled:d.logging}),this.cache=(g=d.cache)!==null&&g!==void 0?g:new FA(this,d)}return m.instanceCount=1,m}(),Fd=function(m,d){return d===void 0&&(d={}),Yd(m,d)};typeof window!="undefined"&&_A.setContext(window);var Yd=function(m,d){return ue(void 0,void 0,void 0,function(){var y,g,re,Fe,tt,Ct,xt,ir,mr,Br,o,b,D,oe,Oe,Ke,ze,et,it,gt,ur,Mt,ur,lr,Vt,Gr,Or,Yt,$t,Yr,bn,tn,fi,Jn,Gi,ai,Ha,Ua,Ra,Na;return Q(this,function(no){switch(no.label){case 0:if(!m||typeof m!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(y=m.ownerDocument,!y)throw new Error("Element is not attached to a Document");if(g=y.defaultView,!g)throw new Error("Document is not attached to a Window");return re={allowTaint:(lr=d.allowTaint)!==null&&lr!==void 0?lr:!1,imageTimeout:(Vt=d.imageTimeout)!==null&&Vt!==void 0?Vt:15e3,proxy:d.proxy,useCORS:(Gr=d.useCORS)!==null&&Gr!==void 0?Gr:!1},Fe=ge({logging:(Or=d.logging)!==null&&Or!==void 0?Or:!0,cache:d.cache},re),tt={windowWidth:(Yt=d.windowWidth)!==null&&Yt!==void 0?Yt:g.innerWidth,windowHeight:($t=d.windowHeight)!==null&&$t!==void 0?$t:g.innerHeight,scrollX:(Yr=d.scrollX)!==null&&Yr!==void 0?Yr:g.pageXOffset,scrollY:(bn=d.scrollY)!==null&&bn!==void 0?bn:g.pageYOffset},Ct=new ne(tt.scrollX,tt.scrollY,tt.windowWidth,tt.windowHeight),xt=new Wu(Fe,Ct),ir=(tn=d.foreignObjectRendering)!==null&&tn!==void 0?tn:!1,mr={allowTaint:(fi=d.allowTaint)!==null&&fi!==void 0?fi:!1,onclone:d.onclone,ignoreElements:d.ignoreElements,inlineImages:ir,copyStyles:ir},xt.logger.debug("Starting document clone with size "+Ct.width+"x"+Ct.height+" scrolled to "+-Ct.left+","+-Ct.top),Br=new il(xt,m,mr),o=Br.clonedReferenceElement,o?[4,Br.toIFrame(y,Ct)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return b=no.sent(),D=zi(o)||Ma(o)?B(o.ownerDocument):G(xt,o),oe=D.width,Oe=D.height,Ke=D.left,ze=D.top,et=yf(xt,o,d.backgroundColor),it={canvas:d.canvas,backgroundColor:et,scale:(Gi=(Jn=d.scale)!==null&&Jn!==void 0?Jn:g.devicePixelRatio)!==null&&Gi!==void 0?Gi:1,x:((ai=d.x)!==null&&ai!==void 0?ai:0)+Ke,y:((Ha=d.y)!==null&&Ha!==void 0?Ha:0)+ze,width:(Ua=d.width)!==null&&Ua!==void 0?Ua:Math.ceil(oe),height:(Ra=d.height)!==null&&Ra!==void 0?Ra:Math.ceil(Oe)},ir?(xt.logger.debug("Document cloned, using foreign object rendering"),ur=new Jd(xt,it),[4,ur.render(o)]):[3,3];case 2:return gt=no.sent(),[3,5];case 3:return xt.logger.debug("Document cloned, element located at "+Ke+","+ze+" with size "+oe+"x"+Oe+" using computed rendering"),xt.logger.debug("Starting DOM parsing"),Mt=JA(xt,o),et===Mt.styles.backgroundColor&&(Mt.styles.backgroundColor=Ws.TRANSPARENT),xt.logger.debug("Starting renderer for element at "+it.x+","+it.y+" with size "+it.width+"x"+it.height),ur=new $u(xt,it),[4,ur.render(Mt)];case 4:gt=no.sent(),no.label=5;case 5:return(!((Na=d.removeContainer)!==null&&Na!==void 0)||Na)&&(il.destroy(b)||xt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),xt.logger.debug("Finished rendering"),[2,gt]}})})},yf=function(m,d,y){var g=d.ownerDocument,re=g.documentElement?Pl(m,getComputedStyle(g.documentElement).backgroundColor):Ws.TRANSPARENT,Fe=g.body?Pl(m,getComputedStyle(g.body).backgroundColor):Ws.TRANSPARENT,tt=typeof y=="string"?Pl(m,y):y===null?Ws.TRANSPARENT:4294967295;return d===g.documentElement?Ko(re)?Ko(Fe)?tt:Fe:re:tt};return Fd})},65022:function(xn,er,x){var ge=x(97671);(function(Q,Te){xn.exports=Te(x(32092),x(64270))})(self,function(ue,Q){return function(){var Te={"./src/plugin/hyperlinks.js":function(f,E,h){"use strict";h.r(E);var Z=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),S=h.n(Z),_=h("./node_modules/core-js/modules/es.string.link.js"),N=h.n(_),R=h("./src/worker.js"),I=h("./src/utils.js"),Y=[],K={toContainer:R.default.prototype.toContainer,toPdf:R.default.prototype.toPdf};R.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){if(this.opt.enableLinks){var X=this.prop.container,W=X.querySelectorAll("a"),j=(0,I.unitConvert)(X.getBoundingClientRect(),this.prop.pageSize.k);Y=[],Array.prototype.forEach.call(W,function(le){for(var he=le.getClientRects(),Ne=0;Ne<he.length;Ne++){var Ce=(0,I.unitConvert)(he[Ne],this.prop.pageSize.k);Ce.left-=j.left,Ce.top-=j.top;var je=Math.floor(Ce.top/this.prop.pageSize.inner.height)+1,q=this.opt.margin[0]+Ce.top%this.prop.pageSize.inner.height,ce=this.opt.margin[1]+Ce.left;Y.push({page:je,top:q,left:ce,clientRect:Ce,link:le})}},this)}})},R.default.prototype.toPdf=function(){return K.toPdf.call(this).then(function(){if(this.opt.enableLinks){Y.forEach(function(W){this.prop.pdf.setPage(W.page),this.prop.pdf.link(W.left,W.top,W.clientRect.width,W.clientRect.height,{url:W.link.href})},this);var X=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(X)}})}},"./src/plugin/jspdf-plugin.js":function(f,E,h){"use strict";h.r(E);var Z=h("./node_modules/core-js/modules/es.symbol.js"),S=h.n(Z),_=h("./node_modules/core-js/modules/es.symbol.description.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.object.to-string.js"),I=h.n(R),Y=h("./node_modules/core-js/modules/es.symbol.iterator.js"),K=h.n(Y),se=h("./node_modules/core-js/modules/es.array.iterator.js"),te=h.n(se),X=h("./node_modules/core-js/modules/es.string.iterator.js"),W=h.n(X),j=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=h.n(j),he=h("jspdf"),Ne=h.n(he);function Ce(je){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(ce){return typeof ce}:Ce=function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},Ce(je)}he.jsPDF.getPageSize=function(je,q,ce){if(Ce(je)==="object"){var k=je;je=k.orientation,q=k.unit||q,ce=k.format||ce}q=q||"mm",ce=ce||"a4",je=(""+(je||"P")).toLowerCase();var ot=(""+ce).toLowerCase(),Le={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(q){case"pt":var xe=1;break;case"mm":var xe=72/25.4;break;case"cm":var xe=72/2.54;break;case"in":var xe=72;break;case"px":var xe=72/96;break;case"pc":var xe=12;break;case"em":var xe=12;break;case"ex":var xe=6;break;default:throw"Invalid unit: "+q}if(Le.hasOwnProperty(ot))var Re=Le[ot][1]/xe,ve=Le[ot][0]/xe;else try{var Re=ce[1],ve=ce[0]}catch(ye){throw new Error("Invalid format: "+ce)}if(je==="p"||je==="portrait"){if(je="p",ve>Re){var ke=ve;ve=Re,Re=ke}}else if(je==="l"||je==="landscape"){if(je="l",Re>ve){var ke=ve;ve=Re,Re=ke}}else throw"Invalid orientation: "+je;var fe={width:ve,height:Re,unit:q,k:xe};return fe},E.default=he.jsPDF},"./src/plugin/pagebreaks.js":function(f,E,h){"use strict";h.r(E);var Z=h("./node_modules/core-js/modules/es.array.concat.js"),S=h.n(Z),_=h("./node_modules/core-js/modules/es.array.slice.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.array.join.js"),I=h.n(R),Y=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),K=h.n(Y),se=h("./node_modules/core-js/modules/es.object.keys.js"),te=h.n(se),X=h("./src/worker.js"),W=h("./src/utils.js"),j={toContainer:X.default.prototype.toContainer};X.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},X.default.prototype.toContainer=function(){return j.toContainer.call(this).then(function(){var Ne=this.prop.container,Ce=this.prop.pageSize.inner.px.height,je=[].concat(this.opt.pagebreak.mode),q={avoidAll:je.indexOf("avoid-all")!==-1,css:je.indexOf("css")!==-1,legacy:je.indexOf("legacy")!==-1},ce={},k=this;["before","after","avoid"].forEach(function(xe){var Re=q.avoidAll&&xe==="avoid";ce[xe]=Re?[]:[].concat(k.opt.pagebreak[xe]||[]),ce[xe].length>0&&(ce[xe]=Array.prototype.slice.call(Ne.querySelectorAll(ce[xe].join(", "))))});var ot=Ne.querySelectorAll(".html2pdf__page-break");ot=Array.prototype.slice.call(ot);var Le=Ne.querySelectorAll("*");Array.prototype.forEach.call(Le,function(Re){var ve={before:!1,after:q.legacy&&ot.indexOf(Re)!==-1,avoid:q.avoidAll};if(q.css){var ke=window.getComputedStyle(Re),fe=["always","page","left","right"],ye=["avoid","avoid-page"];ve={before:ve.before||fe.indexOf(ke.breakBefore||ke.pageBreakBefore)!==-1,after:ve.after||fe.indexOf(ke.breakAfter||ke.pageBreakAfter)!==-1,avoid:ve.avoid||ye.indexOf(ke.breakInside||ke.pageBreakInside)!==-1}}Object.keys(ve).forEach(function(zt){ve[zt]=ve[zt]||ce[zt].indexOf(Re)!==-1});var at=Re.getBoundingClientRect();if(ve.avoid&&!ve.before){var rt=Math.floor(at.top/Ce),nt=Math.floor(at.bottom/Ce),ut=Math.abs(at.bottom-at.top)/Ce;nt!==rt&&ut<=1&&(ve.before=!0)}if(ve.before){var Nt=(0,W.createElement)("div",{style:{display:"block",height:Ce-at.top%Ce+"px"}});Re.parentNode.insertBefore(Nt,Re)}if(ve.after){var Nt=(0,W.createElement)("div",{style:{display:"block",height:Ce-at.bottom%Ce+"px"}});Re.parentNode.insertBefore(Nt,Re.nextSibling)}})})}},"./src/utils.js":function(f,E,h){"use strict";h.r(E),h.d(E,{objType:function(){return je},createElement:function(){return q},cloneNode:function(){return ce},unitConvert:function(){return k},toPx:function(){return ot}});var Z=h("./node_modules/core-js/modules/es.number.constructor.js"),S=h.n(Z),_=h("./node_modules/core-js/modules/es.symbol.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.symbol.description.js"),I=h.n(R),Y=h("./node_modules/core-js/modules/es.object.to-string.js"),K=h.n(Y),se=h("./node_modules/core-js/modules/es.symbol.iterator.js"),te=h.n(se),X=h("./node_modules/core-js/modules/es.array.iterator.js"),W=h.n(X),j=h("./node_modules/core-js/modules/es.string.iterator.js"),le=h.n(j),he=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ne=h.n(he);function Ce(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(Re){return typeof Re}:Ce=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},Ce(Le)}var je=function(xe){var Re=Ce(xe);return Re==="undefined"?"undefined":Re==="string"||xe instanceof String?"string":Re==="number"||xe instanceof Number?"number":Re==="function"||xe instanceof Function?"function":xe&&xe.constructor===Array?"array":xe&&xe.nodeType===1?"element":Re==="object"?"object":"unknown"},q=function(xe,Re){var ve=document.createElement(xe);if(Re.className&&(ve.className=Re.className),Re.innerHTML){ve.innerHTML=Re.innerHTML;for(var ke=ve.getElementsByTagName("script"),fe=ke.length;fe-- >0;null)ke[fe].parentNode.removeChild(ke[fe])}for(var ye in Re.style)ve.style[ye]=Re.style[ye];return ve},ce=function Le(xe,Re){for(var ve=xe.nodeType===3?document.createTextNode(xe.nodeValue):xe.cloneNode(!1),ke=xe.firstChild;ke;ke=ke.nextSibling)(Re===!0||ke.nodeType!==1||ke.nodeName!=="SCRIPT")&&ve.appendChild(Le(ke,Re));return xe.nodeType===1&&(xe.nodeName==="CANVAS"?(ve.width=xe.width,ve.height=xe.height,ve.getContext("2d").drawImage(xe,0,0)):(xe.nodeName==="TEXTAREA"||xe.nodeName==="SELECT")&&(ve.value=xe.value),ve.addEventListener("load",function(){ve.scrollTop=xe.scrollTop,ve.scrollLeft=xe.scrollLeft},!0)),ve},k=function(xe,Re){if(je(xe)==="number")return xe*72/96/Re;var ve={};for(var ke in xe)ve[ke]=xe[ke]*72/96/Re;return ve},ot=function(xe,Re){return Math.floor(xe*Re/72*96)}},"./src/worker.js":function(f,E,h){"use strict";h.r(E);var Z=h("./node_modules/core-js/modules/es.object.assign.js"),S=h.n(Z),_=h("./node_modules/core-js/modules/es.array.map.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.object.keys.js"),I=h.n(R),Y=h("./node_modules/core-js/modules/es.array.concat.js"),K=h.n(Y),se=h("./node_modules/core-js/modules/es.object.to-string.js"),te=h.n(se),X=h("./node_modules/core-js/modules/es.regexp.to-string.js"),W=h.n(X),j=h("./node_modules/core-js/modules/es.function.name.js"),le=h.n(j),he=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ne=h.n(he),Ce=h("jspdf"),je=h.n(Ce),q=h("html2canvas"),ce=h.n(q),k=h("./src/utils.js"),ot=h("./node_modules/es6-promise/dist/es6-promise.js"),Le=h.n(ot),xe=Le().Promise,Re=function ve(ke){var fe=Object.assign(ve.convert(xe.resolve()),JSON.parse(JSON.stringify(ve.template))),ye=ve.convert(xe.resolve(),fe);return ye=ye.setProgress(1,ve,1,[ve]),ye=ye.set(ke),ye};Re.prototype=Object.create(xe.prototype),Re.prototype.constructor=Re,Re.convert=function(ke,fe){return ke.__proto__=fe||Re.prototype,ke},Re.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},Re.prototype.from=function(ke,fe){function ye(at){switch((0,k.objType)(at)){case"string":return"string";case"element":return at.nodeName.toLowerCase&&at.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(fe=fe||ye(ke),fe){case"string":return this.set({src:(0,k.createElement)("div",{innerHTML:ke})});case"element":return this.set({src:ke});case"canvas":return this.set({canvas:ke});case"img":return this.set({img:ke});default:return this.error("Unknown source type.")}})},Re.prototype.to=function(ke){switch(ke){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Re.prototype.toContainer=function(){var ke=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ke).then(function(){var ye={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},at={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};ye.opacity=0;var rt=(0,k.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,k.createElement)("div",{className:"html2pdf__overlay",style:ye}),this.prop.container=(0,k.createElement)("div",{className:"html2pdf__container",style:at}),this.prop.container.appendChild(rt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Re.prototype.toCanvas=function(){var ke=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ke).then(function(){var ye=Object.assign({},this.opt.html2canvas);return delete ye.onrendered,q(this.prop.container,ye)}).then(function(ye){var at=this.opt.html2canvas.onrendered||function(){};at(ye),this.prop.canvas=ye,document.body.removeChild(this.prop.overlay)})},Re.prototype.toImg=function(){var ke=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ke).then(function(){var ye=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ye})},Re.prototype.toPdf=function(){var ke=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ke).then(function(){var ye=this.prop.canvas,at=this.opt,rt=ye.height,nt=Math.floor(ye.width*this.prop.pageSize.inner.ratio),ut=Math.ceil(rt/nt),Nt=this.prop.pageSize.inner.height,zt=document.createElement("canvas"),Ht=zt.getContext("2d");zt.width=ye.width,zt.height=nt,this.prop.pdf=this.prop.pdf||new Ce.jsPDF(at.jsPDF);for(var cr=0;cr<ut;cr++){cr===ut-1&&rt%nt!==0&&(zt.height=rt%nt,Nt=zt.height*this.prop.pageSize.inner.width/zt.width);var or=zt.width,yr=zt.height;Ht.fillStyle="white",Ht.fillRect(0,0,or,yr),Ht.drawImage(ye,0,cr*nt,or,yr,0,0,or,yr),cr&&this.prop.pdf.addPage();var dr=zt.toDataURL("image/"+at.image.type,at.image.quality);this.prop.pdf.addImage(dr,at.image.type,at.margin[1],at.margin[0],this.prop.pageSize.inner.width,Nt)}})},Re.prototype.output=function(ke,fe,ye){return ye=ye||"pdf",ye.toLowerCase()==="img"||ye.toLowerCase()==="image"?this.outputImg(ke,fe):this.outputPdf(ke,fe)},Re.prototype.outputPdf=function(ke,fe){var ye=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ye).then(function(){return this.prop.pdf.output(ke,fe)})},Re.prototype.outputImg=function(ke,fe){var ye=[function(){return this.prop.img||this.toImg()}];return this.thenList(ye).then(function(){switch(ke){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ke+'" is not supported.'}})},Re.prototype.save=function(ke){var fe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(fe).set(ke?{filename:ke}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Re.prototype.set=function(ke){if((0,k.objType)(ke)!=="object")return this;var fe=Object.keys(ke||{}).map(function(ye){switch(ye){case"margin":return this.setMargin.bind(this,ke.margin);case"jsPDF":return function(){return this.opt.jsPDF=ke.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ke.pageSize);default:return ye in Re.template.prop?function(){this.prop[ye]=ke[ye]}:function(){this.opt[ye]=ke[ye]}}},this);return this.then(function(){return this.thenList(fe)})},Re.prototype.get=function(ke,fe){return this.then(function(){var at=ke in Re.template.prop?this.prop[ke]:this.opt[ke];return fe?fe(at):at})},Re.prototype.setMargin=function(ke){return this.then(function(){switch((0,k.objType)(ke)){case"number":ke=[ke,ke,ke,ke];case"array":if(ke.length===2&&(ke=[ke[0],ke[1],ke[0],ke[1]]),ke.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ke}).then(this.setPageSize)},Re.prototype.setPageSize=function(ke){return this.then(function(){ke=ke||Ce.jsPDF.getPageSize(this.opt.jsPDF),ke.hasOwnProperty("inner")||(ke.inner={width:ke.width-this.opt.margin[1]-this.opt.margin[3],height:ke.height-this.opt.margin[0]-this.opt.margin[2]},ke.inner.px={width:(0,k.toPx)(ke.inner.width,ke.k),height:(0,k.toPx)(ke.inner.height,ke.k)},ke.inner.ratio=ke.inner.height/ke.inner.width),this.prop.pageSize=ke})},Re.prototype.setProgress=function(ke,fe,ye,at){return ke!=null&&(this.progress.val=ke),fe!=null&&(this.progress.state=fe),ye!=null&&(this.progress.n=ye),at!=null&&(this.progress.stack=at),this.progress.ratio=this.progress.val/this.progress.state,this},Re.prototype.updateProgress=function(ke,fe,ye,at){return this.setProgress(ke?this.progress.val+ke:null,fe||null,ye?this.progress.n+ye:null,at?this.progress.stack.concat(at):null)},Re.prototype.then=function(ke,fe){var ye=this;return this.thenCore(ke,fe,function(rt,nt){return ye.updateProgress(null,null,1,[rt]),xe.prototype.then.call(this,function(Nt){return ye.updateProgress(null,rt),Nt}).then(rt,nt).then(function(Nt){return ye.updateProgress(1),Nt})})},Re.prototype.thenCore=function(ke,fe,ye){ye=ye||xe.prototype.then;var at=this;ke&&(ke=ke.bind(at)),fe&&(fe=fe.bind(at));var rt=xe.toString().indexOf("[native code]")!==-1&&xe.name==="Promise",nt=rt?at:Re.convert(Object.assign({},at),xe.prototype),ut=ye.call(nt,ke,fe);return Re.convert(ut,at.__proto__)},Re.prototype.thenExternal=function(ke,fe){return xe.prototype.then.call(this,ke,fe)},Re.prototype.thenList=function(ke){var fe=this;return ke.forEach(function(at){fe=fe.thenCore(at)}),fe},Re.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var ke=xe.prototype.catch.call(this,ve);return Re.convert(ke,this)},Re.prototype.catchExternal=function(ke){return xe.prototype.catch.call(this,ke)},Re.prototype.error=function(ke){return this.then(function(){throw new Error(ke)})},Re.prototype.using=Re.prototype.set,Re.prototype.saveAs=Re.prototype.save,Re.prototype.export=Re.prototype.output,Re.prototype.run=Re.prototype.then,E.default=Re},"./node_modules/core-js/internals/a-function.js":function(f){f.exports=function(E){if(typeof E!="function")throw TypeError(String(E)+" is not a function");return E}},"./node_modules/core-js/internals/a-possible-prototype.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S){if(!Z(S)&&S!==null)throw TypeError("Can't set "+String(S)+" as a prototype");return S}},"./node_modules/core-js/internals/add-to-unscopables.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/well-known-symbol.js"),S=h("./node_modules/core-js/internals/object-create.js"),_=h("./node_modules/core-js/internals/object-define-property.js"),N=Z("unscopables"),R=Array.prototype;R[N]==null&&_.f(R,N,{configurable:!0,value:S(null)}),f.exports=function(I){R[N][I]=!0}},"./node_modules/core-js/internals/an-object.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S){if(!Z(S))throw TypeError(String(S)+" is not an object");return S}},"./node_modules/core-js/internals/array-for-each.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/array-iteration.js").forEach,S=h("./node_modules/core-js/internals/array-method-is-strict.js"),_=S("forEach");f.exports=_?[].forEach:function(R){return Z(this,R,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/to-length.js"),_=h("./node_modules/core-js/internals/to-absolute-index.js"),N=function(R){return function(I,Y,K){var se=Z(I),te=S(se.length),X=_(K,te),W;if(R&&Y!=Y){for(;te>X;)if(W=se[X++],W!=W)return!0}else for(;te>X;X++)if((R||X in se)&&se[X]===Y)return R||X||0;return!R&&-1}};f.exports={includes:N(!0),indexOf:N(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/function-bind-context.js"),S=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/to-object.js"),N=h("./node_modules/core-js/internals/to-length.js"),R=h("./node_modules/core-js/internals/array-species-create.js"),I=[].push,Y=function(K){var se=K==1,te=K==2,X=K==3,W=K==4,j=K==6,le=K==7,he=K==5||j;return function(Ne,Ce,je,q){for(var ce=_(Ne),k=S(ce),ot=Z(Ce,je,3),Le=N(k.length),xe=0,Re=q||R,ve=se?Re(Ne,Le):te||le?Re(Ne,0):void 0,ke,fe;Le>xe;xe++)if((he||xe in k)&&(ke=k[xe],fe=ot(ke,xe,ce),K))if(se)ve[xe]=fe;else if(fe)switch(K){case 3:return!0;case 5:return ke;case 6:return xe;case 2:I.call(ve,ke)}else switch(K){case 4:return!1;case 7:I.call(ve,ke)}return j?-1:X||W?W:ve}};f.exports={forEach:Y(0),map:Y(1),filter:Y(2),some:Y(3),every:Y(4),find:Y(5),findIndex:Y(6),filterReject:Y(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/well-known-symbol.js"),_=h("./node_modules/core-js/internals/engine-v8-version.js"),N=S("species");f.exports=function(R){return _>=51||!Z(function(){var I=[],Y=I.constructor={};return Y[N]=function(){return{foo:1}},I[R](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/fails.js");f.exports=function(S,_){var N=[][S];return!!N&&Z(function(){N.call(null,_||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/is-array.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("species");f.exports=function(R){var I;return S(R)&&(I=R.constructor,typeof I=="function"&&(I===Array||S(I.prototype))?I=void 0:Z(I)&&(I=I[N],I===null&&(I=void 0))),I===void 0?Array:I}},"./node_modules/core-js/internals/array-species-create.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/array-species-constructor.js");f.exports=function(S,_){return new(Z(S))(_===0?0:_)}},"./node_modules/core-js/internals/classof-raw.js":function(f){var E={}.toString;f.exports=function(h){return E.call(h).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/classof-raw.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("toStringTag"),R=S(function(){return arguments}())=="Arguments",I=function(Y,K){try{return Y[K]}catch(se){}};f.exports=Z?S:function(Y){var K,se,te;return Y===void 0?"Undefined":Y===null?"Null":typeof(se=I(K=Object(Y),N))=="string"?se:R?S(K):(te=S(K))=="Object"&&typeof K.callee=="function"?"Arguments":te}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/own-keys.js"),_=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),N=h("./node_modules/core-js/internals/object-define-property.js");f.exports=function(R,I){for(var Y=S(I),K=N.f,se=_.f,te=0;te<Y.length;te++){var X=Y[te];Z(R,X)||K(R,X,se(I,X))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/fails.js");f.exports=!Z(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},"./node_modules/core-js/internals/create-html.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/require-object-coercible.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=/"/g;f.exports=function(N,R,I,Y){var K=S(Z(N)),se="<"+R;return I!==""&&(se+=" "+I+'="'+S(Y).replace(_,"&quot;")+'"'),se+">"+K+"</"+R+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,S=h("./node_modules/core-js/internals/object-create.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/set-to-string-tag.js"),R=h("./node_modules/core-js/internals/iterators.js"),I=function(){return this};f.exports=function(Y,K,se){var te=K+" Iterator";return Y.prototype=S(Z,{next:_(1,se)}),N(Y,te,!1,!0),R[te]=I,Y}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js");f.exports=Z?function(N,R,I){return S.f(N,R,_(1,I))}:function(N,R,I){return N[R]=I,N}},"./node_modules/core-js/internals/create-property-descriptor.js":function(f){f.exports=function(E,h){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:h}}},"./node_modules/core-js/internals/create-property.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/to-property-key.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js");f.exports=function(N,R,I){var Y=Z(R);Y in N?S.f(N,Y,_(0,I)):N[Y]=I}},"./node_modules/core-js/internals/define-iterator.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/create-iterator-constructor.js"),_=h("./node_modules/core-js/internals/object-get-prototype-of.js"),N=h("./node_modules/core-js/internals/object-set-prototype-of.js"),R=h("./node_modules/core-js/internals/set-to-string-tag.js"),I=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),Y=h("./node_modules/core-js/internals/redefine.js"),K=h("./node_modules/core-js/internals/well-known-symbol.js"),se=h("./node_modules/core-js/internals/is-pure.js"),te=h("./node_modules/core-js/internals/iterators.js"),X=h("./node_modules/core-js/internals/iterators-core.js"),W=X.IteratorPrototype,j=X.BUGGY_SAFARI_ITERATORS,le=K("iterator"),he="keys",Ne="values",Ce="entries",je=function(){return this};f.exports=function(q,ce,k,ot,Le,xe,Re){S(k,ce,ot);var ve=function(Ht){if(Ht===Le&&rt)return rt;if(!j&&Ht in ye)return ye[Ht];switch(Ht){case he:return function(){return new k(this,Ht)};case Ne:return function(){return new k(this,Ht)};case Ce:return function(){return new k(this,Ht)}}return function(){return new k(this)}},ke=ce+" Iterator",fe=!1,ye=q.prototype,at=ye[le]||ye["@@iterator"]||Le&&ye[Le],rt=!j&&at||ve(Le),nt=ce=="Array"&&ye.entries||at,ut,Nt,zt;if(nt&&(ut=_(nt.call(new q)),W!==Object.prototype&&ut.next&&(!se&&_(ut)!==W&&(N?N(ut,W):typeof ut[le]!="function"&&I(ut,le,je)),R(ut,ke,!0,!0),se&&(te[ke]=je))),Le==Ne&&at&&at.name!==Ne&&(fe=!0,rt=function(){return at.call(this)}),(!se||Re)&&ye[le]!==rt&&I(ye,le,rt),te[ce]=rt,Le)if(Nt={values:ve(Ne),keys:xe?rt:ve(he),entries:ve(Ce)},Re)for(zt in Nt)(j||fe||!(zt in ye))&&Y(ye,zt,Nt[zt]);else Z({target:ce,proto:!0,forced:j||fe},Nt);return Nt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/path.js"),S=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=h("./node_modules/core-js/internals/object-define-property.js").f;f.exports=function(R){var I=Z.Symbol||(Z.Symbol={});S(I,R)||N(I,R,{value:_.f(R)})}},"./node_modules/core-js/internals/descriptors.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/fails.js");f.exports=!Z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/is-object.js"),_=Z.document,N=S(_)&&S(_.createElement);f.exports=function(R){return N?_.createElement(R):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(f){f.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/get-built-in.js");f.exports=Z("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/engine-user-agent.js"),_=Z.process,N=Z.Deno,R=_&&_.versions||N&&N.version,I=R&&R.v8,Y,K;I?(Y=I.split("."),K=Y[0]<4?1:Y[0]+Y[1]):S&&(Y=S.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=S.match(/Chrome\/(\d+)/),Y&&(K=Y[1]))),f.exports=K&&+K},"./node_modules/core-js/internals/enum-bug-keys.js":function(f){f.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/redefine.js"),R=h("./node_modules/core-js/internals/set-global.js"),I=h("./node_modules/core-js/internals/copy-constructor-properties.js"),Y=h("./node_modules/core-js/internals/is-forced.js");f.exports=function(K,se){var te=K.target,X=K.global,W=K.stat,j,le,he,Ne,Ce,je;if(X?le=Z:W?le=Z[te]||R(te,{}):le=(Z[te]||{}).prototype,le)for(he in se){if(Ce=se[he],K.noTargetGet?(je=S(le,he),Ne=je&&je.value):Ne=le[he],j=Y(X?he:te+(W?".":"#")+he,K.forced),!j&&Ne!==void 0){if(typeof Ce==typeof Ne)continue;I(Ce,Ne)}(K.sham||Ne&&Ne.sham)&&_(Ce,"sham",!0),N(le,he,Ce,K)}}},"./node_modules/core-js/internals/fails.js":function(f){f.exports=function(E){try{return!!E()}catch(h){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/a-function.js");f.exports=function(S,_,N){if(Z(S),_===void 0)return S;switch(N){case 0:return function(){return S.call(_)};case 1:return function(R){return S.call(_,R)};case 2:return function(R,I){return S.call(_,R,I)};case 3:return function(R,I,Y){return S.call(_,R,I,Y)}}return function(){return S.apply(_,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=function(_){return typeof _=="function"?_:void 0};f.exports=function(_,N){return arguments.length<2?S(Z[_]):Z[_]&&Z[_][N]}},"./node_modules/core-js/internals/global.js":function(f){var E=function(h){return h&&h.Math==Math&&h};f.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-object.js"),S={}.hasOwnProperty;f.exports=Object.hasOwn||function(N,R){return S.call(Z(N),R)}},"./node_modules/core-js/internals/hidden-keys.js":function(f){f.exports={}},"./node_modules/core-js/internals/html.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/get-built-in.js");f.exports=Z("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/document-create-element.js");f.exports=!Z&&!S(function(){return Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/classof-raw.js"),_="".split;f.exports=Z(function(){return!Object("z").propertyIsEnumerable(0)})?function(N){return S(N)=="String"?_.call(N,""):Object(N)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/object-set-prototype-of.js");f.exports=function(_,N,R){var I,Y;return S&&typeof(I=N.constructor)=="function"&&I!==R&&Z(Y=I.prototype)&&Y!==R.prototype&&S(_,Y),_}},"./node_modules/core-js/internals/inspect-source.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/shared-store.js"),S=Function.toString;typeof Z.inspectSource!="function"&&(Z.inspectSource=function(_){return S.call(_)}),f.exports=Z.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/native-weak-map.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-object.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=h("./node_modules/core-js/internals/has.js"),I=h("./node_modules/core-js/internals/shared-store.js"),Y=h("./node_modules/core-js/internals/shared-key.js"),K=h("./node_modules/core-js/internals/hidden-keys.js"),se="Object already initialized",te=S.WeakMap,X,W,j,le=function(k){return j(k)?W(k):X(k,{})},he=function(k){return function(ot){var Le;if(!_(ot)||(Le=W(ot)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return Le}};if(Z||I.state){var Ne=I.state||(I.state=new te),Ce=Ne.get,je=Ne.has,q=Ne.set;X=function(k,ot){if(je.call(Ne,k))throw new TypeError(se);return ot.facade=k,q.call(Ne,k,ot),ot},W=function(k){return Ce.call(Ne,k)||{}},j=function(k){return je.call(Ne,k)}}else{var ce=Y("state");K[ce]=!0,X=function(k,ot){if(R(k,ce))throw new TypeError(se);return ot.facade=k,N(k,ce,ot),ot},W=function(k){return R(k,ce)?k[ce]:{}},j=function(k){return R(k,ce)}}f.exports={set:X,get:W,has:j,enforce:le,getterFor:he}},"./node_modules/core-js/internals/is-array.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/classof-raw.js");f.exports=Array.isArray||function(_){return Z(_)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/fails.js"),S=/#|\.prototype\./,_=function(K,se){var te=R[N(K)];return te==Y?!0:te==I?!1:typeof se=="function"?Z(se):!!se},N=_.normalize=function(K){return String(K).replace(S,".").toLowerCase()},R=_.data={},I=_.NATIVE="N",Y=_.POLYFILL="P";f.exports=_},"./node_modules/core-js/internals/is-object.js":function(f){f.exports=function(E){return typeof E=="object"?E!==null:typeof E=="function"}},"./node_modules/core-js/internals/is-pure.js":function(f){f.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/get-built-in.js"),S=h("./node_modules/core-js/internals/use-symbol-as-uid.js");f.exports=S?function(_){return typeof _=="symbol"}:function(_){var N=Z("Symbol");return typeof N=="function"&&Object(_)instanceof N}},"./node_modules/core-js/internals/iterators-core.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/object-get-prototype-of.js"),_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/has.js"),R=h("./node_modules/core-js/internals/well-known-symbol.js"),I=h("./node_modules/core-js/internals/is-pure.js"),Y=R("iterator"),K=!1,se=function(){return this},te,X,W;[].keys&&(W=[].keys(),"next"in W?(X=S(S(W)),X!==Object.prototype&&(te=X)):K=!0);var j=te==null||Z(function(){var le={};return te[Y].call(le)!==le});j&&(te={}),(!I||j)&&!N(te,Y)&&_(te,Y,se),f.exports={IteratorPrototype:te,BUGGY_SAFARI_ITERATORS:K}},"./node_modules/core-js/internals/iterators.js":function(f){f.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/engine-v8-version.js"),S=h("./node_modules/core-js/internals/fails.js");f.exports=!!Object.getOwnPropertySymbols&&!S(function(){var _=Symbol();return!String(_)||!(Object(_)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})},"./node_modules/core-js/internals/native-weak-map.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/inspect-source.js"),_=Z.WeakMap;f.exports=typeof _=="function"&&/native code/.test(S(_))},"./node_modules/core-js/internals/object-assign.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),R=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),I=h("./node_modules/core-js/internals/to-object.js"),Y=h("./node_modules/core-js/internals/indexed-object.js"),K=Object.assign,se=Object.defineProperty;f.exports=!K||S(function(){if(Z&&K({b:1},K(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var te={},X={},W=Symbol(),j="abcdefghijklmnopqrst";return te[W]=7,j.split("").forEach(function(le){X[le]=le}),K({},te)[W]!=7||_(K({},X)).join("")!=j})?function(X,W){for(var j=I(X),le=arguments.length,he=1,Ne=N.f,Ce=R.f;le>he;)for(var je=Y(arguments[he++]),q=Ne?_(je).concat(Ne(je)):_(je),ce=q.length,k=0,ot;ce>k;)ot=q[k++],(!Z||Ce.call(je,ot))&&(j[ot]=je[ot]);return j}:K},"./node_modules/core-js/internals/object-create.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/an-object.js"),S=h("./node_modules/core-js/internals/object-define-properties.js"),_=h("./node_modules/core-js/internals/enum-bug-keys.js"),N=h("./node_modules/core-js/internals/hidden-keys.js"),R=h("./node_modules/core-js/internals/html.js"),I=h("./node_modules/core-js/internals/document-create-element.js"),Y=h("./node_modules/core-js/internals/shared-key.js"),K=">",se="<",te="prototype",X="script",W=Y("IE_PROTO"),j=function(){},le=function(q){return se+X+K+q+se+"/"+X+K},he=function(q){q.write(le("")),q.close();var ce=q.parentWindow.Object;return q=null,ce},Ne=function(){var q=I("iframe"),ce="java"+X+":",k;if(q.style)return q.style.display="none",R.appendChild(q),q.src=String(ce),k=q.contentWindow.document,k.open(),k.write(le("document.F=Object")),k.close(),k.F},Ce,je=function(){try{Ce=new ActiveXObject("htmlfile")}catch(ce){}je=document.domain&&Ce?he(Ce):Ne()||he(Ce);for(var q=_.length;q--;)delete je[te][_[q]];return je()};N[W]=!0,f.exports=Object.create||function(ce,k){var ot;return ce!==null?(j[te]=Z(ce),ot=new j,j[te]=null,ot[W]=ce):ot=je(),k===void 0?ot:S(ot,k)}},"./node_modules/core-js/internals/object-define-properties.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/object-keys.js");f.exports=Z?Object.defineProperties:function(I,Y){_(I);for(var K=N(Y),se=K.length,te=0,X;se>te;)S.f(I,X=K[te++],Y[X]);return I}},"./node_modules/core-js/internals/object-define-property.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/ie8-dom-define.js"),_=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/to-property-key.js"),R=Object.defineProperty;E.f=Z?R:function(Y,K,se){if(_(Y),K=N(K),_(se),S)try{return R(Y,K,se)}catch(te){}if("get"in se||"set"in se)throw TypeError("Accessors not supported");return"value"in se&&(Y[K]=se.value),Y}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/to-indexed-object.js"),R=h("./node_modules/core-js/internals/to-property-key.js"),I=h("./node_modules/core-js/internals/has.js"),Y=h("./node_modules/core-js/internals/ie8-dom-define.js"),K=Object.getOwnPropertyDescriptor;E.f=Z?K:function(te,X){if(te=N(te),X=R(X),Y)try{return K(te,X)}catch(W){}if(I(te,X))return _(!S.f.call(te,X),te[X])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,_={}.toString,N=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],R=function(I){try{return S(I)}catch(Y){return N.slice()}};f.exports.f=function(Y){return N&&_.call(Y)=="[object Window]"?R(Y):S(Z(Y))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/object-keys-internal.js"),S=h("./node_modules/core-js/internals/enum-bug-keys.js"),_=S.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(R){return Z(R,_)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(f,E){E.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/to-object.js"),_=h("./node_modules/core-js/internals/shared-key.js"),N=h("./node_modules/core-js/internals/correct-prototype-getter.js"),R=_("IE_PROTO"),I=Object.prototype;f.exports=N?Object.getPrototypeOf:function(Y){return Y=S(Y),Z(Y,R)?Y[R]:typeof Y.constructor=="function"&&Y instanceof Y.constructor?Y.constructor.prototype:Y instanceof Object?I:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/to-indexed-object.js"),_=h("./node_modules/core-js/internals/array-includes.js").indexOf,N=h("./node_modules/core-js/internals/hidden-keys.js");f.exports=function(R,I){var Y=S(R),K=0,se=[],te;for(te in Y)!Z(N,te)&&Z(Y,te)&&se.push(te);for(;I.length>K;)Z(Y,te=I[K++])&&(~_(se,te)||se.push(te));return se}},"./node_modules/core-js/internals/object-keys.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/object-keys-internal.js"),S=h("./node_modules/core-js/internals/enum-bug-keys.js");f.exports=Object.keys||function(N){return Z(N,S)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(f,E){"use strict";var h={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,S=Z&&!h.call({1:2},1);E.f=S?function(N){var R=Z(this,N);return!!R&&R.enumerable}:h},"./node_modules/core-js/internals/object-set-prototype-of.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/an-object.js"),S=h("./node_modules/core-js/internals/a-possible-prototype.js");f.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var _=!1,N={},R;try{R=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,R.call(N,[]),_=N instanceof Array}catch(I){}return function(Y,K){return Z(Y),S(K),_?R.call(Y,K):Y.__proto__=K,Y}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/classof.js");f.exports=Z?{}.toString:function(){return"[object "+S(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S,_){var N,R;if(_==="string"&&typeof(N=S.toString)=="function"&&!Z(R=N.call(S))||typeof(N=S.valueOf)=="function"&&!Z(R=N.call(S))||_!=="string"&&typeof(N=S.toString)=="function"&&!Z(R=N.call(S)))return R;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/get-built-in.js"),S=h("./node_modules/core-js/internals/object-get-own-property-names.js"),_=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),N=h("./node_modules/core-js/internals/an-object.js");f.exports=Z("Reflect","ownKeys")||function(I){var Y=S.f(N(I)),K=_.f;return K?Y.concat(K(I)):Y}},"./node_modules/core-js/internals/path.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js");f.exports=Z},"./node_modules/core-js/internals/redefine.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),_=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/set-global.js"),R=h("./node_modules/core-js/internals/inspect-source.js"),I=h("./node_modules/core-js/internals/internal-state.js"),Y=I.get,K=I.enforce,se=String(String).split("String");(f.exports=function(te,X,W,j){var le=j?!!j.unsafe:!1,he=j?!!j.enumerable:!1,Ne=j?!!j.noTargetGet:!1,Ce;if(typeof W=="function"&&(typeof X=="string"&&!_(W,"name")&&S(W,"name",X),Ce=K(W),Ce.source||(Ce.source=se.join(typeof X=="string"?X:""))),te===Z){he?te[X]=W:N(X,W);return}else le?!Ne&&te[X]&&(he=!0):delete te[X];he?te[X]=W:S(te,X,W)})(Function.prototype,"toString",function(){return typeof this=="function"&&Y(this).source||R(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/an-object.js");f.exports=function(){var S=Z(this),_="";return S.global&&(_+="g"),S.ignoreCase&&(_+="i"),S.multiline&&(_+="m"),S.dotAll&&(_+="s"),S.unicode&&(_+="u"),S.sticky&&(_+="y"),_}},"./node_modules/core-js/internals/require-object-coercible.js":function(f){f.exports=function(E){if(E==null)throw TypeError("Can't call method on "+E);return E}},"./node_modules/core-js/internals/set-global.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js");f.exports=function(S,_){try{Object.defineProperty(Z,S,{value:_,configurable:!0,writable:!0})}catch(N){Z[S]=_}return _}},"./node_modules/core-js/internals/set-to-string-tag.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/object-define-property.js").f,S=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("toStringTag");f.exports=function(R,I,Y){R&&!S(R=Y?R:R.prototype,N)&&Z(R,N,{configurable:!0,value:I})}},"./node_modules/core-js/internals/shared-key.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/shared.js"),S=h("./node_modules/core-js/internals/uid.js"),_=Z("keys");f.exports=function(N){return _[N]||(_[N]=S(N))}},"./node_modules/core-js/internals/shared-store.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/set-global.js"),_="__core-js_shared__",N=Z[_]||S(_,{});f.exports=N},"./node_modules/core-js/internals/shared.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-pure.js"),S=h("./node_modules/core-js/internals/shared-store.js");(f.exports=function(_,N){return S[_]||(S[_]=N!==void 0?N:{})})("versions",[]).push({version:"3.16.0",mode:Z?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/fails.js");f.exports=function(S){return Z(function(){var _=""[S]('"');return _!==_.toLowerCase()||_.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-integer.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/require-object-coercible.js"),N=function(R){return function(I,Y){var K=S(_(I)),se=Z(Y),te=K.length,X,W;return se<0||se>=te?R?"":void 0:(X=K.charCodeAt(se),X<55296||X>56319||se+1===te||(W=K.charCodeAt(se+1))<56320||W>57343?R?K.charAt(se):X:R?K.slice(se,se+2):(X-55296<<10)+(W-56320)+65536)}};f.exports={codeAt:N(!1),charAt:N(!0)}},"./node_modules/core-js/internals/string-trim.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/require-object-coercible.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/whitespaces.js"),N="["+_+"]",R=RegExp("^"+N+N+"*"),I=RegExp(N+N+"*$"),Y=function(K){return function(se){var te=S(Z(se));return K&1&&(te=te.replace(R,"")),K&2&&(te=te.replace(I,"")),te}};f.exports={start:Y(1),end:Y(2),trim:Y(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-integer.js"),S=Math.max,_=Math.min;f.exports=function(N,R){var I=Z(N);return I<0?S(I+R,0):_(I,R)}},"./node_modules/core-js/internals/to-indexed-object.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/indexed-object.js"),S=h("./node_modules/core-js/internals/require-object-coercible.js");f.exports=function(_){return Z(S(_))}},"./node_modules/core-js/internals/to-integer.js":function(f){var E=Math.ceil,h=Math.floor;f.exports=function(Z){return isNaN(Z=+Z)?0:(Z>0?h:E)(Z)}},"./node_modules/core-js/internals/to-length.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-integer.js"),S=Math.min;f.exports=function(_){return _>0?S(Z(_),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/require-object-coercible.js");f.exports=function(S){return Object(Z(S))}},"./node_modules/core-js/internals/to-primitive.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/is-symbol.js"),_=h("./node_modules/core-js/internals/ordinary-to-primitive.js"),N=h("./node_modules/core-js/internals/well-known-symbol.js"),R=N("toPrimitive");f.exports=function(I,Y){if(!Z(I)||S(I))return I;var K=I[R],se;if(K!==void 0){if(Y===void 0&&(Y="default"),se=K.call(I,Y),!Z(se)||S(se))return se;throw TypeError("Can't convert object to primitive value")}return Y===void 0&&(Y="number"),_(I,Y)}},"./node_modules/core-js/internals/to-property-key.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-primitive.js"),S=h("./node_modules/core-js/internals/is-symbol.js");f.exports=function(_){var N=Z(_,"string");return S(N)?N:String(N)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/well-known-symbol.js"),S=Z("toStringTag"),_={};_[S]="z",f.exports=String(_)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/is-symbol.js");f.exports=function(S){if(Z(S))throw TypeError("Cannot convert a Symbol value to a string");return String(S)}},"./node_modules/core-js/internals/uid.js":function(f){var E=0,h=Math.random();f.exports=function(Z){return"Symbol("+String(Z===void 0?"":Z)+")_"+(++E+h).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/native-symbol.js");f.exports=Z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/well-known-symbol.js");E.f=Z},"./node_modules/core-js/internals/well-known-symbol.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/shared.js"),_=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/uid.js"),R=h("./node_modules/core-js/internals/native-symbol.js"),I=h("./node_modules/core-js/internals/use-symbol-as-uid.js"),Y=S("wks"),K=Z.Symbol,se=I?K:K&&K.withoutSetter||N;f.exports=function(te){return(!_(Y,te)||!(R||typeof Y[te]=="string"))&&(R&&_(K,te)?Y[te]=K[te]:Y[te]=se("Symbol."+te)),Y[te]}},"./node_modules/core-js/internals/whitespaces.js":function(f){f.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/is-object.js"),R=h("./node_modules/core-js/internals/to-object.js"),I=h("./node_modules/core-js/internals/to-length.js"),Y=h("./node_modules/core-js/internals/create-property.js"),K=h("./node_modules/core-js/internals/array-species-create.js"),se=h("./node_modules/core-js/internals/array-method-has-species-support.js"),te=h("./node_modules/core-js/internals/well-known-symbol.js"),X=h("./node_modules/core-js/internals/engine-v8-version.js"),W=te("isConcatSpreadable"),j=9007199254740991,le="Maximum allowed index exceeded",he=X>=51||!S(function(){var q=[];return q[W]=!1,q.concat()[0]!==q}),Ne=se("concat"),Ce=function(q){if(!N(q))return!1;var ce=q[W];return ce!==void 0?!!ce:_(q)},je=!he||!Ne;Z({target:"Array",proto:!0,forced:je},{concat:function(ce){var k=R(this),ot=K(k,0),Le=0,xe,Re,ve,ke,fe;for(xe=-1,ve=arguments.length;xe<ve;xe++)if(fe=xe===-1?k:arguments[xe],Ce(fe)){if(ke=I(fe.length),Le+ke>j)throw TypeError(le);for(Re=0;Re<ke;Re++,Le++)Re in fe&&Y(ot,Le,fe[Re])}else{if(Le>=j)throw TypeError(le);Y(ot,Le++,fe)}return ot.length=Le,ot}})},"./node_modules/core-js/modules/es.array.iterator.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/add-to-unscopables.js"),_=h("./node_modules/core-js/internals/iterators.js"),N=h("./node_modules/core-js/internals/internal-state.js"),R=h("./node_modules/core-js/internals/define-iterator.js"),I="Array Iterator",Y=N.set,K=N.getterFor(I);f.exports=R(Array,"Array",function(se,te){Y(this,{type:I,target:Z(se),index:0,kind:te})},function(){var se=K(this),te=se.target,X=se.kind,W=se.index++;return!te||W>=te.length?(se.target=void 0,{value:void 0,done:!0}):X=="keys"?{value:W,done:!1}:X=="values"?{value:te[W],done:!1}:{value:[W,te[W]],done:!1}},"values"),_.Arguments=_.Array,S("keys"),S("values"),S("entries")},"./node_modules/core-js/modules/es.array.join.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/to-indexed-object.js"),N=h("./node_modules/core-js/internals/array-method-is-strict.js"),R=[].join,I=S!=Object,Y=N("join",",");Z({target:"Array",proto:!0,forced:I||!Y},{join:function(se){return R.call(_(this),se===void 0?",":se)}})},"./node_modules/core-js/modules/es.array.map.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/array-iteration.js").map,_=h("./node_modules/core-js/internals/array-method-has-species-support.js"),N=_("map");Z({target:"Array",proto:!0,forced:!N},{map:function(I){return S(this,I,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/is-object.js"),_=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/to-absolute-index.js"),R=h("./node_modules/core-js/internals/to-length.js"),I=h("./node_modules/core-js/internals/to-indexed-object.js"),Y=h("./node_modules/core-js/internals/create-property.js"),K=h("./node_modules/core-js/internals/well-known-symbol.js"),se=h("./node_modules/core-js/internals/array-method-has-species-support.js"),te=se("slice"),X=K("species"),W=[].slice,j=Math.max;Z({target:"Array",proto:!0,forced:!te},{slice:function(he,Ne){var Ce=I(this),je=R(Ce.length),q=N(he,je),ce=N(Ne===void 0?je:Ne,je),k,ot,Le;if(_(Ce)&&(k=Ce.constructor,typeof k=="function"&&(k===Array||_(k.prototype))?k=void 0:S(k)&&(k=k[X],k===null&&(k=void 0)),k===Array||k===void 0))return W.call(Ce,q,ce);for(ot=new(k===void 0?Array:k)(j(ce-q,0)),Le=0;q<ce;q++,Le++)q in Ce&&Y(ot,Le,Ce[q]);return ot.length=Le,ot}})},"./node_modules/core-js/modules/es.function.name.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js").f,_=Function.prototype,N=_.toString,R=/^\s*function ([^ (]*)/,I="name";Z&&!(I in _)&&S(_,I,{configurable:!0,get:function(){try{return N.call(this).match(R)[1]}catch(Y){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-forced.js"),N=h("./node_modules/core-js/internals/redefine.js"),R=h("./node_modules/core-js/internals/has.js"),I=h("./node_modules/core-js/internals/classof-raw.js"),Y=h("./node_modules/core-js/internals/inherit-if-required.js"),K=h("./node_modules/core-js/internals/is-symbol.js"),se=h("./node_modules/core-js/internals/to-primitive.js"),te=h("./node_modules/core-js/internals/fails.js"),X=h("./node_modules/core-js/internals/object-create.js"),W=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,j=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=h("./node_modules/core-js/internals/object-define-property.js").f,he=h("./node_modules/core-js/internals/string-trim.js").trim,Ne="Number",Ce=S[Ne],je=Ce.prototype,q=I(X(je))==Ne,ce=function(Re){if(K(Re))throw TypeError("Cannot convert a Symbol value to a number");var ve=se(Re,"number"),ke,fe,ye,at,rt,nt,ut,Nt;if(typeof ve=="string"&&ve.length>2){if(ve=he(ve),ke=ve.charCodeAt(0),ke===43||ke===45){if(fe=ve.charCodeAt(2),fe===88||fe===120)return NaN}else if(ke===48){switch(ve.charCodeAt(1)){case 66:case 98:ye=2,at=49;break;case 79:case 111:ye=8,at=55;break;default:return+ve}for(rt=ve.slice(2),nt=rt.length,ut=0;ut<nt;ut++)if(Nt=rt.charCodeAt(ut),Nt<48||Nt>at)return NaN;return parseInt(rt,ye)}}return+ve};if(_(Ne,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var k=function(ve){var ke=arguments.length<1?0:ve,fe=this;return fe instanceof k&&(q?te(function(){je.valueOf.call(fe)}):I(fe)!=Ne)?Y(new Ce(ce(ke)),fe,k):ce(ke)},ot=Z?W(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Le=0,xe;ot.length>Le;Le++)R(Ce,xe=ot[Le])&&!R(k,xe)&&le(k,xe,j(Ce,xe));k.prototype=je,je.constructor=k,N(S,Ne,k)}},"./node_modules/core-js/modules/es.object.assign.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/object-assign.js");Z({target:"Object",stat:!0,forced:Object.assign!==S},{assign:S})},"./node_modules/core-js/modules/es.object.keys.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/to-object.js"),_=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/fails.js"),R=N(function(){_(1)});Z({target:"Object",stat:!0,forced:R},{keys:function(Y){return _(S(Y))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/redefine.js"),_=h("./node_modules/core-js/internals/object-to-string.js");Z||S(Object.prototype,"toString",_,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/redefine.js"),S=h("./node_modules/core-js/internals/an-object.js"),_=h("./node_modules/core-js/internals/to-string.js"),N=h("./node_modules/core-js/internals/fails.js"),R=h("./node_modules/core-js/internals/regexp-flags.js"),I="toString",Y=RegExp.prototype,K=Y[I],se=N(function(){return K.call({source:"a",flags:"b"})!="/a/b"}),te=K.name!=I;(se||te)&&Z(RegExp.prototype,I,function(){var W=S(this),j=_(W.source),le=W.flags,he=_(le===void 0&&W instanceof RegExp&&!("flags"in Y)?R.call(W):le);return"/"+j+"/"+he},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/string-multibyte.js").charAt,S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/internal-state.js"),N=h("./node_modules/core-js/internals/define-iterator.js"),R="String Iterator",I=_.set,Y=_.getterFor(R);N(String,"String",function(K){I(this,{type:R,string:S(K),index:0})},function(){var se=Y(this),te=se.string,X=se.index,W;return X>=te.length?{value:void 0,done:!0}:(W=Z(te,X),se.index+=W.length,{value:W,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/create-html.js"),_=h("./node_modules/core-js/internals/string-html-forced.js");Z({target:"String",proto:!0,forced:_("link")},{link:function(R){return S(this,"a","href",R)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/global.js"),N=h("./node_modules/core-js/internals/has.js"),R=h("./node_modules/core-js/internals/is-object.js"),I=h("./node_modules/core-js/internals/object-define-property.js").f,Y=h("./node_modules/core-js/internals/copy-constructor-properties.js"),K=_.Symbol;if(S&&typeof K=="function"&&(!("description"in K.prototype)||K().description!==void 0)){var se={},te=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ce=this instanceof te?new K(Ne):Ne===void 0?K():K(Ne);return Ne===""&&(se[Ce]=!0),Ce};Y(te,K);var X=te.prototype=K.prototype;X.constructor=te;var W=X.toString,j=String(K("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;I(X,"description",{configurable:!0,get:function(){var Ne=R(this)?this.valueOf():this,Ce=W.call(Ne);if(N(se,Ne))return"";var je=j?Ce.slice(7,-1):Ce.replace(le,"$1");return je===""?void 0:je}}),Z({global:!0,forced:!0},{Symbol:te})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/define-well-known-symbol.js");Z("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(f,E,h){"use strict";var Z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/get-built-in.js"),N=h("./node_modules/core-js/internals/is-pure.js"),R=h("./node_modules/core-js/internals/descriptors.js"),I=h("./node_modules/core-js/internals/native-symbol.js"),Y=h("./node_modules/core-js/internals/fails.js"),K=h("./node_modules/core-js/internals/has.js"),se=h("./node_modules/core-js/internals/is-array.js"),te=h("./node_modules/core-js/internals/is-object.js"),X=h("./node_modules/core-js/internals/is-symbol.js"),W=h("./node_modules/core-js/internals/an-object.js"),j=h("./node_modules/core-js/internals/to-object.js"),le=h("./node_modules/core-js/internals/to-indexed-object.js"),he=h("./node_modules/core-js/internals/to-property-key.js"),Ne=h("./node_modules/core-js/internals/to-string.js"),Ce=h("./node_modules/core-js/internals/create-property-descriptor.js"),je=h("./node_modules/core-js/internals/object-create.js"),q=h("./node_modules/core-js/internals/object-keys.js"),ce=h("./node_modules/core-js/internals/object-get-own-property-names.js"),k=h("./node_modules/core-js/internals/object-get-own-property-names-external.js"),ot=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Le=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),xe=h("./node_modules/core-js/internals/object-define-property.js"),Re=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),ve=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),ke=h("./node_modules/core-js/internals/redefine.js"),fe=h("./node_modules/core-js/internals/shared.js"),ye=h("./node_modules/core-js/internals/shared-key.js"),at=h("./node_modules/core-js/internals/hidden-keys.js"),rt=h("./node_modules/core-js/internals/uid.js"),nt=h("./node_modules/core-js/internals/well-known-symbol.js"),ut=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Nt=h("./node_modules/core-js/internals/define-well-known-symbol.js"),zt=h("./node_modules/core-js/internals/set-to-string-tag.js"),Ht=h("./node_modules/core-js/internals/internal-state.js"),cr=h("./node_modules/core-js/internals/array-iteration.js").forEach,or=ye("hidden"),yr="Symbol",dr="prototype",$=nt("toPrimitive"),Xe=Ht.set,L=Ht.getterFor(yr),p=Object[dr],u=S.Symbol,w=_("JSON","stringify"),ee=Le.f,Be=xe.f,T=k.f,ae=Re.f,Ge=fe("symbols"),Ee=fe("op-symbols"),me=fe("string-to-symbol-registry"),qe=fe("symbol-to-string-registry"),_t=fe("wks"),pe=S.QObject,st=!pe||!pe[dr]||!pe[dr].findChild,At=R&&Y(function(){return je(Be({},"a",{get:function(){return Be(this,"a",{value:7}).a}})).a!=7})?function(Qr,rr,Ar){var jr=ee(p,rr);jr&&delete p[rr],Be(Qr,rr,Ar),jr&&Qr!==p&&Be(p,rr,jr)}:Be,Pe=function(Qr,rr){var Ar=Ge[Qr]=je(u[dr]);return Xe(Ar,{type:yr,tag:Qr,description:rr}),R||(Ar.description=rr),Ar},Ie=function(rr,Ar,jr){rr===p&&Ie(Ee,Ar,jr),W(rr);var cn=he(Ar);return W(jr),K(Ge,cn)?(jr.enumerable?(K(rr,or)&&rr[or][cn]&&(rr[or][cn]=!1),jr=je(jr,{enumerable:Ce(0,!1)})):(K(rr,or)||Be(rr,or,Ce(1,{})),rr[or][cn]=!0),At(rr,cn,jr)):Be(rr,cn,jr)},vt=function(rr,Ar){W(rr);var jr=le(Ar),cn=q(jr).concat(Mr(jr));return cr(cn,function(Tn){(!R||Rt.call(jr,Tn))&&Ie(rr,Tn,jr[Tn])}),rr},Ut=function(rr,Ar){return Ar===void 0?je(rr):vt(je(rr),Ar)},Rt=function(rr){var Ar=he(rr),jr=ae.call(this,Ar);return this===p&&K(Ge,Ar)&&!K(Ee,Ar)?!1:jr||!K(this,Ar)||!K(Ge,Ar)||K(this,or)&&this[or][Ar]?jr:!0},hr=function(rr,Ar){var jr=le(rr),cn=he(Ar);if(!(jr===p&&K(Ge,cn)&&!K(Ee,cn))){var Tn=ee(jr,cn);return Tn&&K(Ge,cn)&&!(K(jr,or)&&jr[or][cn])&&(Tn.enumerable=!0),Tn}},br=function(rr){var Ar=T(le(rr)),jr=[];return cr(Ar,function(cn){!K(Ge,cn)&&!K(at,cn)&&jr.push(cn)}),jr},Mr=function(rr){var Ar=rr===p,jr=T(Ar?Ee:le(rr)),cn=[];return cr(jr,function(Tn){K(Ge,Tn)&&(!Ar||K(p,Tn))&&cn.push(Ge[Tn])}),cn};if(I||(u=function(){if(this instanceof u)throw TypeError("Symbol is not a constructor");var rr=!arguments.length||arguments[0]===void 0?void 0:Ne(arguments[0]),Ar=rt(rr),jr=function(cn){this===p&&jr.call(Ee,cn),K(this,or)&&K(this[or],Ar)&&(this[or][Ar]=!1),At(this,Ar,Ce(1,cn))};return R&&st&&At(p,Ar,{configurable:!0,set:jr}),Pe(Ar,rr)},ke(u[dr],"toString",function(){return L(this).tag}),ke(u,"withoutSetter",function(Qr){return Pe(rt(Qr),Qr)}),Re.f=Rt,xe.f=Ie,Le.f=hr,ce.f=k.f=br,ot.f=Mr,ut.f=function(Qr){return Pe(nt(Qr),Qr)},R&&(Be(u[dr],"description",{configurable:!0,get:function(){return L(this).description}}),N||ke(p,"propertyIsEnumerable",Rt,{unsafe:!0}))),Z({global:!0,wrap:!0,forced:!I,sham:!I},{Symbol:u}),cr(q(_t),function(Qr){Nt(Qr)}),Z({target:yr,stat:!0,forced:!I},{for:function(Qr){var rr=Ne(Qr);if(K(me,rr))return me[rr];var Ar=u(rr);return me[rr]=Ar,qe[Ar]=rr,Ar},keyFor:function(rr){if(!X(rr))throw TypeError(rr+" is not a symbol");if(K(qe,rr))return qe[rr]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),Z({target:"Object",stat:!0,forced:!I,sham:!R},{create:Ut,defineProperty:Ie,defineProperties:vt,getOwnPropertyDescriptor:hr}),Z({target:"Object",stat:!0,forced:!I},{getOwnPropertyNames:br,getOwnPropertySymbols:Mr}),Z({target:"Object",stat:!0,forced:Y(function(){ot.f(1)})},{getOwnPropertySymbols:function(rr){return ot.f(j(rr))}}),w){var Ur=!I||Y(function(){var Qr=u();return w([Qr])!="[null]"||w({a:Qr})!="{}"||w(Object(Qr))!="{}"});Z({target:"JSON",stat:!0,forced:Ur},{stringify:function(rr,Ar,jr){for(var cn=[rr],Tn=1,en;arguments.length>Tn;)cn.push(arguments[Tn++]);if(en=Ar,!(!te(Ar)&&rr===void 0||X(rr)))return se(Ar)||(Ar=function(Qn,li){if(typeof en=="function"&&(li=en.call(this,Qn,li)),!X(li))return li}),cn[1]=Ar,w.apply(null,cn)}})}u[dr][$]||ve(u[dr],$,u[dr].valueOf),zt(u,yr),at[or]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/dom-iterables.js"),_=h("./node_modules/core-js/internals/array-for-each.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var R in S){var I=Z[R],Y=I&&I.prototype;if(Y&&Y.forEach!==_)try{N(Y,"forEach",_)}catch(K){Y.forEach=_}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(f,E,h){var Z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/dom-iterables.js"),_=h("./node_modules/core-js/modules/es.array.iterator.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=h("./node_modules/core-js/internals/well-known-symbol.js"),I=R("iterator"),Y=R("toStringTag"),K=_.values;for(var se in S){var te=Z[se],X=te&&te.prototype;if(X){if(X[I]!==K)try{N(X,I,K)}catch(j){X[I]=K}if(X[Y]||N(X,Y,se),S[se]){for(var W in _)if(X[W]!==_[W])try{N(X,W,_[W])}catch(j){X[W]=_[W]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(f){(function(E,h){f.exports=h()})(this,function(){"use strict";function E(pe){var st=typeof pe;return pe!==null&&(st==="object"||st==="function")}function h(pe){return typeof pe=="function"}var Z=void 0;Array.isArray?Z=Array.isArray:Z=function(pe){return Object.prototype.toString.call(pe)==="[object Array]"};var S=Z,_=0,N=void 0,R=void 0,I=function(st,At){q[_]=st,q[_+1]=At,_+=2,_===2&&(R?R(ce):ot())};function Y(pe){R=pe}function K(pe){I=pe}var se=typeof window!="undefined"?window:void 0,te=se||{},X=te.MutationObserver||te.WebKitMutationObserver,W=typeof self=="undefined"&&typeof ge!="undefined"&&{}.toString.call(ge)==="[object process]",j=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return ge.nextTick(ce)}}function he(){return typeof N!="undefined"?function(){N(ce)}:je()}function Ne(){var pe=0,st=new X(ce),At=document.createTextNode("");return st.observe(At,{characterData:!0}),function(){At.data=pe=++pe%2}}function Ce(){var pe=new MessageChannel;return pe.port1.onmessage=ce,function(){return pe.port2.postMessage(0)}}function je(){var pe=setTimeout;return function(){return pe(ce,1)}}var q=new Array(1e3);function ce(){for(var pe=0;pe<_;pe+=2){var st=q[pe],At=q[pe+1];st(At),q[pe]=void 0,q[pe+1]=void 0}_=0}function k(){try{var pe=Function("return this")().require("vertx");return N=pe.runOnLoop||pe.runOnContext,he()}catch(st){return je()}}var ot=void 0;W?ot=le():X?ot=Ne():j?ot=Ce():se===void 0?ot=k():ot=je();function Le(pe,st){var At=this,Pe=new this.constructor(ve);Pe[Re]===void 0&&w(Pe);var Ie=At._state;if(Ie){var vt=arguments[Ie-1];I(function(){return Xe(Ie,Pe,vt,At._result)})}else dr(At,Pe,pe,st);return Pe}function xe(pe){var st=this;if(pe&&typeof pe=="object"&&pe.constructor===st)return pe;var At=new st(ve);return Ht(At,pe),At}var Re=Math.random().toString(36).substring(2);function ve(){}var ke=void 0,fe=1,ye=2;function at(){return new TypeError("You cannot resolve a promise with itself")}function rt(){return new TypeError("A promises callback cannot return that same promise.")}function nt(pe,st,At,Pe){try{pe.call(st,At,Pe)}catch(Ie){return Ie}}function ut(pe,st,At){I(function(Pe){var Ie=!1,vt=nt(At,st,function(Ut){Ie||(Ie=!0,st!==Ut?Ht(Pe,Ut):or(Pe,Ut))},function(Ut){Ie||(Ie=!0,yr(Pe,Ut))},"Settle: "+(Pe._label||" unknown promise"));!Ie&&vt&&(Ie=!0,yr(Pe,vt))},pe)}function Nt(pe,st){st._state===fe?or(pe,st._result):st._state===ye?yr(pe,st._result):dr(st,void 0,function(At){return Ht(pe,At)},function(At){return yr(pe,At)})}function zt(pe,st,At){st.constructor===pe.constructor&&At===Le&&st.constructor.resolve===xe?Nt(pe,st):At===void 0?or(pe,st):h(At)?ut(pe,st,At):or(pe,st)}function Ht(pe,st){if(pe===st)yr(pe,at());else if(E(st)){var At=void 0;try{At=st.then}catch(Pe){yr(pe,Pe);return}zt(pe,st,At)}else or(pe,st)}function cr(pe){pe._onerror&&pe._onerror(pe._result),$(pe)}function or(pe,st){pe._state===ke&&(pe._result=st,pe._state=fe,pe._subscribers.length!==0&&I($,pe))}function yr(pe,st){pe._state===ke&&(pe._state=ye,pe._result=st,I(cr,pe))}function dr(pe,st,At,Pe){var Ie=pe._subscribers,vt=Ie.length;pe._onerror=null,Ie[vt]=st,Ie[vt+fe]=At,Ie[vt+ye]=Pe,vt===0&&pe._state&&I($,pe)}function $(pe){var st=pe._subscribers,At=pe._state;if(st.length!==0){for(var Pe=void 0,Ie=void 0,vt=pe._result,Ut=0;Ut<st.length;Ut+=3)Pe=st[Ut],Ie=st[Ut+At],Pe?Xe(At,Pe,Ie,vt):Ie(vt);pe._subscribers.length=0}}function Xe(pe,st,At,Pe){var Ie=h(At),vt=void 0,Ut=void 0,Rt=!0;if(Ie){try{vt=At(Pe)}catch(hr){Rt=!1,Ut=hr}if(st===vt){yr(st,rt());return}}else vt=Pe;st._state!==ke||(Ie&&Rt?Ht(st,vt):Rt===!1?yr(st,Ut):pe===fe?or(st,vt):pe===ye&&yr(st,vt))}function L(pe,st){try{st(function(Pe){Ht(pe,Pe)},function(Pe){yr(pe,Pe)})}catch(At){yr(pe,At)}}var p=0;function u(){return p++}function w(pe){pe[Re]=p++,pe._state=void 0,pe._result=void 0,pe._subscribers=[]}function ee(){return new Error("Array Methods must be provided an Array")}var Be=function(){function pe(st,At){this._instanceConstructor=st,this.promise=new st(ve),this.promise[Re]||w(this.promise),S(At)?(this.length=At.length,this._remaining=At.length,this._result=new Array(this.length),this.length===0?or(this.promise,this._result):(this.length=this.length||0,this._enumerate(At),this._remaining===0&&or(this.promise,this._result))):yr(this.promise,ee())}return pe.prototype._enumerate=function(At){for(var Pe=0;this._state===ke&&Pe<At.length;Pe++)this._eachEntry(At[Pe],Pe)},pe.prototype._eachEntry=function(At,Pe){var Ie=this._instanceConstructor,vt=Ie.resolve;if(vt===xe){var Ut=void 0,Rt=void 0,hr=!1;try{Ut=At.then}catch(Mr){hr=!0,Rt=Mr}if(Ut===Le&&At._state!==ke)this._settledAt(At._state,Pe,At._result);else if(typeof Ut!="function")this._remaining--,this._result[Pe]=At;else if(Ie===qe){var br=new Ie(ve);hr?yr(br,Rt):zt(br,At,Ut),this._willSettleAt(br,Pe)}else this._willSettleAt(new Ie(function(Mr){return Mr(At)}),Pe)}else this._willSettleAt(vt(At),Pe)},pe.prototype._settledAt=function(At,Pe,Ie){var vt=this.promise;vt._state===ke&&(this._remaining--,At===ye?yr(vt,Ie):this._result[Pe]=Ie),this._remaining===0&&or(vt,this._result)},pe.prototype._willSettleAt=function(At,Pe){var Ie=this;dr(At,void 0,function(vt){return Ie._settledAt(fe,Pe,vt)},function(vt){return Ie._settledAt(ye,Pe,vt)})},pe}();function T(pe){return new Be(this,pe).promise}function ae(pe){var st=this;return S(pe)?new st(function(At,Pe){for(var Ie=pe.length,vt=0;vt<Ie;vt++)st.resolve(pe[vt]).then(At,Pe)}):new st(function(At,Pe){return Pe(new TypeError("You must pass an array to race."))})}function Ge(pe){var st=this,At=new st(ve);return yr(At,pe),At}function Ee(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function me(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var qe=function(){function pe(st){this[Re]=u(),this._result=this._state=void 0,this._subscribers=[],ve!==st&&(typeof st!="function"&&Ee(),this instanceof pe?L(this,st):me())}return pe.prototype.catch=function(At){return this.then(null,At)},pe.prototype.finally=function(At){var Pe=this,Ie=Pe.constructor;return h(At)?Pe.then(function(vt){return Ie.resolve(At()).then(function(){return vt})},function(vt){return Ie.resolve(At()).then(function(){throw vt})}):Pe.then(At,At)},pe}();qe.prototype.then=Le,qe.all=T,qe.race=ae,qe.resolve=xe,qe.reject=Ge,qe._setScheduler=Y,qe._setAsap=K,qe._asap=I;function _t(){var pe=void 0;if(typeof x.g!="undefined")pe=x.g;else if(typeof self!="undefined")pe=self;else try{pe=Function("return this")()}catch(Pe){throw new Error("polyfill failed because global object is unavailable in this environment")}var st=pe.Promise;if(st){var At=null;try{At=Object.prototype.toString.call(st.resolve())}catch(Pe){}if(At==="[object Promise]"&&!st.cast)return}pe.Promise=qe}return qe.polyfill=_t,qe.Promise=qe,qe})},html2canvas:function(f){"use strict";f.exports=Q},jspdf:function(f){"use strict";f.exports=ue}},ne={};function G(f){var E=ne[f];if(E!==void 0)return E.exports;var h=ne[f]={exports:{}};return Te[f].call(h.exports,h,h.exports,G),h.exports}(function(){G.n=function(f){var E=f&&f.__esModule?function(){return f.default}:function(){return f};return G.d(E,{a:E}),E}})(),function(){G.d=function(f,E){for(var h in E)G.o(E,h)&&!G.o(f,h)&&Object.defineProperty(f,h,{enumerable:!0,get:E[h]})}}(),function(){G.o=function(f,E){return Object.prototype.hasOwnProperty.call(f,E)}}(),function(){G.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}}();var B={};return function(){"use strict";G.r(B);var f=G("./src/worker.js"),E=G("./src/plugin/jspdf-plugin.js"),h=G("./src/plugin/pagebreaks.js"),Z=G("./src/plugin/hyperlinks.js"),S=function _(N,R){var I=new _.Worker(R);return N?I.from(N).save():I};S.Worker=f.default,B.default=S}(),B=B.default,B}()})},67467:function(xn,er){er.read=function(x,ge,ue,Q,Te){var ne,G,B=Te*8-Q-1,f=(1<<B)-1,E=f>>1,h=-7,Z=ue?Te-1:0,S=ue?-1:1,_=x[ge+Z];for(Z+=S,ne=_&(1<<-h)-1,_>>=-h,h+=B;h>0;ne=ne*256+x[ge+Z],Z+=S,h-=8);for(G=ne&(1<<-h)-1,ne>>=-h,h+=Q;h>0;G=G*256+x[ge+Z],Z+=S,h-=8);if(ne===0)ne=1-E;else{if(ne===f)return G?NaN:(_?-1:1)*(1/0);G=G+Math.pow(2,Q),ne=ne-E}return(_?-1:1)*G*Math.pow(2,ne-Q)},er.write=function(x,ge,ue,Q,Te,ne){var G,B,f,E=ne*8-Te-1,h=(1<<E)-1,Z=h>>1,S=Te===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=Q?0:ne-1,N=Q?1:-1,R=ge<0||ge===0&&1/ge<0?1:0;for(ge=Math.abs(ge),isNaN(ge)||ge===1/0?(B=isNaN(ge)?1:0,G=h):(G=Math.floor(Math.log(ge)/Math.LN2),ge*(f=Math.pow(2,-G))<1&&(G--,f*=2),G+Z>=1?ge+=S/f:ge+=S*Math.pow(2,1-Z),ge*f>=2&&(G++,f/=2),G+Z>=h?(B=0,G=h):G+Z>=1?(B=(ge*f-1)*Math.pow(2,Te),G=G+Z):(B=ge*Math.pow(2,Z-1)*Math.pow(2,Te),G=0));Te>=8;x[ue+_]=B&255,_+=N,B/=256,Te-=8);for(G=G<<Te|B,E+=Te;E>0;x[ue+_]=G&255,_+=N,G/=256,E-=8);x[ue+_-N]|=R*128}},24334:function(xn,er,x){var ge,ue;(function(Q,Te){xn.exports=Te(Q)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(Q){"use strict";Q=Q||{};var Te=Q.Base64,ne="2.6.4",G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=function(k){for(var ot={},Le=0,xe=k.length;Le<xe;Le++)ot[k.charAt(Le)]=Le;return ot}(G),f=String.fromCharCode,E=function(k){if(k.length<2){var ot=k.charCodeAt(0);return ot<128?k:ot<2048?f(192|ot>>>6)+f(128|ot&63):f(224|ot>>>12&15)+f(128|ot>>>6&63)+f(128|ot&63)}else{var ot=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return f(240|ot>>>18&7)+f(128|ot>>>12&63)+f(128|ot>>>6&63)+f(128|ot&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Z=function(k){return k.replace(h,E)},S=function(k){var ot=[0,2,1][k.length%3],Le=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),xe=[G.charAt(Le>>>18),G.charAt(Le>>>12&63),ot>=2?"=":G.charAt(Le>>>6&63),ot>=1?"=":G.charAt(Le&63)];return xe.join("")},_=Q.btoa&&typeof Q.btoa=="function"?function(k){return Q.btoa(k)}:function(k){if(k.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return k.replace(/[\s\S]{1,3}/g,S)},N=function(k){return _(Z(String(k)))},R=function(k){return k.replace(/[+\/]/g,function(ot){return ot=="+"?"-":"_"}).replace(/=/g,"")},I=function(k,ot){return ot?R(N(k)):N(k)},Y=function(k){return I(k,!0)},K;Q.Uint8Array&&(K=function(k,ot){for(var Le="",xe=0,Re=k.length;xe<Re;xe+=3){var ve=k[xe],ke=k[xe+1],fe=k[xe+2],ye=ve<<16|ke<<8|fe;Le+=G.charAt(ye>>>18)+G.charAt(ye>>>12&63)+(typeof ke!="undefined"?G.charAt(ye>>>6&63):"=")+(typeof fe!="undefined"?G.charAt(ye&63):"=")}return ot?R(Le):Le});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(k){switch(k.length){case 4:var ot=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),Le=ot-65536;return f((Le>>>10)+55296)+f((Le&1023)+56320);case 3:return f((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return f((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},X=function(k){return k.replace(se,te)},W=function(k){var ot=k.length,Le=ot%4,xe=(ot>0?B[k.charAt(0)]<<18:0)|(ot>1?B[k.charAt(1)]<<12:0)|(ot>2?B[k.charAt(2)]<<6:0)|(ot>3?B[k.charAt(3)]:0),Re=[f(xe>>>16),f(xe>>>8&255),f(xe&255)];return Re.length-=[0,0,2,1][Le],Re.join("")},j=Q.atob&&typeof Q.atob=="function"?function(k){return Q.atob(k)}:function(k){return k.replace(/\S{1,4}/g,W)},le=function(k){return j(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(k){return X(j(k))},Ne=function(k){return String(k).replace(/[-_]/g,function(ot){return ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ce=function(k){return he(Ne(k))},je;Q.Uint8Array&&(je=function(k){return Uint8Array.from(le(Ne(k)),function(ot){return ot.charCodeAt(0)})});var q=function(){var k=Q.Base64;return Q.Base64=Te,k};if(Q.Base64={VERSION:ne,atob:le,btoa:_,fromBase64:Ce,toBase64:I,utob:Z,encode:I,encodeURI:Y,btou:X,decode:Ce,noConflict:q,fromUint8Array:K,toUint8Array:je},typeof Object.defineProperty=="function"){var ce=function(k){return{value:k,enumerable:!1,writable:!0,configurable:!0}};Q.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ce(function(){return Ce(this)})),Object.defineProperty(String.prototype,"toBase64",ce(function(k){return I(this,k)})),Object.defineProperty(String.prototype,"toBase64URI",ce(function(){return I(this,!0)}))}}return Q.Meteor&&(Base64=Q.Base64),xn.exports?xn.exports.Base64=Q.Base64:(ge=[],ue=function(){return Q.Base64}.apply(er,ge),ue!==void 0&&(xn.exports=ue)),{Base64:Q.Base64}})},32092:function(xn,er,x){"use strict";x.r(er),x.d(er,{AcroForm:function(){return Ro},AcroFormAppearance:function(){return Un},AcroFormButton:function(){return Mo},AcroFormCheckBox:function(){return Uo},AcroFormChoiceField:function(){return eo},AcroFormComboBox:function(){return Oa},AcroFormEditBox:function(){return Fa},AcroFormListBox:function(){return Ao},AcroFormPasswordField:function(){return Lo},AcroFormPushButton:function(){return kl},AcroFormRadioButton:function(){return ds},AcroFormTextField:function(){return Ms},GState:function(){return ka},ShadingPattern:function(){return Ya},TilingPattern:function(){return Ca},default:function(){return sd},jsPDF:function(){return mi}});var ge=x(39559),ue={},Q=function(c,a,l,v,F){var C=new Worker(ue[a]||(ue[a]=URL.createObjectURL(new Blob([c+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return C.onmessage=function(O){var V=O.data,ie=V.$e$;if(ie){var _e=new Error(ie[0]);_e.code=ie[1],_e.stack=ie[2],F(_e,null)}else F(null,V)},C.postMessage(l,v),C},Te=Uint8Array,ne=Uint16Array,G=Int32Array,B=new Te([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f=new Te([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),E=new Te([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(c,a){for(var l=new ne(31),v=0;v<31;++v)l[v]=a+=1<<c[v-1];for(var F=new G(l[30]),v=1;v<30;++v)for(var C=l[v];C<l[v+1];++C)F[C]=C-l[v]<<5|v;return{b:l,r:F}},Z=h(B,2),S=Z.b,_=Z.r;S[28]=258,_[258]=28;for(var N=h(f,0),R=N.b,I=N.r,Y=new ne(32768),K=0;K<32768;++K){var se=(K&43690)>>1|(K&21845)<<1;se=(se&52428)>>2|(se&13107)<<2,se=(se&61680)>>4|(se&3855)<<4,Y[K]=((se&65280)>>8|(se&255)<<8)>>1}for(var te=function(c,a,l){for(var v=c.length,F=0,C=new ne(a);F<v;++F)c[F]&&++C[c[F]-1];var O=new ne(a);for(F=1;F<a;++F)O[F]=O[F-1]+C[F-1]<<1;var V;if(l){V=new ne(1<<a);var ie=15-a;for(F=0;F<v;++F)if(c[F])for(var _e=F<<4|c[F],We=a-c[F],Ve=O[c[F]-1]++<<We,ct=Ve|(1<<We)-1;Ve<=ct;++Ve)V[Y[Ve]>>ie]=_e}else for(V=new ne(v),F=0;F<v;++F)c[F]&&(V[F]=Y[O[c[F]-1]++]>>15-c[F]);return V},X=new Te(288),K=0;K<144;++K)X[K]=8;for(var K=144;K<256;++K)X[K]=9;for(var K=256;K<280;++K)X[K]=7;for(var K=280;K<288;++K)X[K]=8;for(var W=new Te(32),K=0;K<32;++K)W[K]=5;var j=te(X,9,0),le=te(X,9,1),he=te(W,5,0),Ne=te(W,5,1),Ce=function(c){for(var a=c[0],l=1;l<c.length;++l)c[l]>a&&(a=c[l]);return a},je=function(c,a,l){var v=a/8|0;return(c[v]|c[v+1]<<8)>>(a&7)&l},q=function(c,a){var l=a/8|0;return(c[l]|c[l+1]<<8|c[l+2]<<16)>>(a&7)},ce=function(c){return(c+7)/8|0},k=function(c,a,l){return(a==null||a<0)&&(a=0),(l==null||l>c.length)&&(l=c.length),new Te(c.subarray(a,l))},ot={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Le=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],xe=function(c,a,l){var v=new Error(a||Le[c]);if(v.code=c,Error.captureStackTrace&&Error.captureStackTrace(v,xe),!l)throw v;return v},Re=function(c,a,l,v){var F=c.length,C=v?v.length:0;if(!F||a.f&&!a.l)return l||new Te(0);var O=!l,V=O||a.i!=2,ie=a.i;O&&(l=new Te(F*3));var _e=function(sr){var Fr=l.length;if(sr>Fr){var Hr=new Te(Math.max(Fr*2,sr));Hr.set(l),l=Hr}},We=a.f||0,Ve=a.p||0,ct=a.b||0,we=a.l,Lt=a.d,wt=a.m,kt=a.n,ht=F*8;do{if(!we){We=je(c,Ve,1);var Pt=je(c,Ve+1,3);if(Ve+=3,Pt)if(Pt==1)we=le,Lt=Ne,wt=9,kt=5;else if(Pt==2){var yn=je(c,Ve,31)+257,_r=je(c,Ve+10,15)+4,Gt=yn+je(c,Ve+5,31)+1;Ve+=14;for(var Dr=new Te(Gt),Vr=new Te(19),bt=0;bt<_r;++bt)Vr[E[bt]]=je(c,Ve+bt*3,7);Ve+=_r*3;for(var Bt=Ce(Vr),U=(1<<Bt)-1,H=te(Vr,Bt,1),bt=0;bt<Gt;){var Se=H[je(c,Ve,U)];Ve+=Se&15;var ar=Se>>4;if(ar<16)Dr[bt++]=ar;else{var De=0,Ye=0;for(ar==16?(Ye=3+je(c,Ve,3),Ve+=2,De=Dr[bt-1]):ar==17?(Ye=3+je(c,Ve,7),Ve+=3):ar==18&&(Ye=11+je(c,Ve,127),Ve+=7);Ye--;)Dr[bt++]=De}}var He=Dr.subarray(0,yn),dt=Dr.subarray(yn);wt=Ce(He),kt=Ce(dt),we=te(He,wt,1),Lt=te(dt,kt,1)}else xe(1);else{var ar=ce(Ve)+4,gr=c[ar-4]|c[ar-3]<<8,Kr=ar+gr;if(Kr>F){ie&&xe(0);break}V&&_e(ct+gr),l.set(c.subarray(ar,Kr),ct),a.b=ct+=gr,a.p=Ve=Kr*8,a.f=We;continue}if(Ve>ht){ie&&xe(0);break}}V&&_e(ct+131072);for(var pt=(1<<wt)-1,Et=(1<<kt)-1,de=Ve;;de=Ve){var De=we[q(c,Ve)&pt],Ze=De>>4;if(Ve+=De&15,Ve>ht){ie&&xe(0);break}if(De||xe(2),Ze<256)l[ct++]=Ze;else if(Ze==256){de=Ve,we=null;break}else{var Je=Ze-254;if(Ze>264){var bt=Ze-257,mt=B[bt];Je=je(c,Ve,(1<<mt)-1)+S[bt],Ve+=mt}var yt=Lt[q(c,Ve)&Et],It=yt>>4;yt||xe(3),Ve+=yt&15;var dt=R[It];if(It>3){var mt=f[It];dt+=q(c,Ve)&(1<<mt)-1,Ve+=mt}if(Ve>ht){ie&&xe(0);break}V&&_e(ct+131072);var Kt=ct+Je;if(ct<dt){var Tt=C-dt,pr=Math.min(dt,Kt);for(Tt+ct<0&&xe(3);ct<pr;++ct)l[ct]=v[Tt+ct]}for(;ct<Kt;++ct)l[ct]=l[ct-dt]}}a.l=we,a.p=de,a.b=ct,a.f=We,we&&(We=1,a.m=wt,a.d=Lt,a.n=kt)}while(!We);return ct!=l.length&&O?k(l,0,ct):l.subarray(0,ct)},ve=function(c,a,l){l<<=a&7;var v=a/8|0;c[v]|=l,c[v+1]|=l>>8},ke=function(c,a,l){l<<=a&7;var v=a/8|0;c[v]|=l,c[v+1]|=l>>8,c[v+2]|=l>>16},fe=function(c,a){for(var l=[],v=0;v<c.length;++v)c[v]&&l.push({s:v,f:c[v]});var F=l.length,C=l.slice();if(!F)return{t:zt,l:0};if(F==1){var O=new Te(l[0].s+1);return O[l[0].s]=1,{t:O,l:1}}l.sort(function(Kr,yn){return Kr.f-yn.f}),l.push({s:-1,f:25001});var V=l[0],ie=l[1],_e=0,We=1,Ve=2;for(l[0]={s:-1,f:V.f+ie.f,l:V,r:ie};We!=F-1;)V=l[l[_e].f<l[Ve].f?_e++:Ve++],ie=l[_e!=We&&l[_e].f<l[Ve].f?_e++:Ve++],l[We++]={s:-1,f:V.f+ie.f,l:V,r:ie};for(var ct=C[0].s,v=1;v<F;++v)C[v].s>ct&&(ct=C[v].s);var we=new ne(ct+1),Lt=ye(l[We-1],we,0);if(Lt>a){var v=0,wt=0,kt=Lt-a,ht=1<<kt;for(C.sort(function(yn,_r){return we[_r.s]-we[yn.s]||yn.f-_r.f});v<F;++v){var Pt=C[v].s;if(we[Pt]>a)wt+=ht-(1<<Lt-we[Pt]),we[Pt]=a;else break}for(wt>>=kt;wt>0;){var ar=C[v].s;we[ar]<a?wt-=1<<a-we[ar]++-1:++v}for(;v>=0&&wt;--v){var gr=C[v].s;we[gr]==a&&(--we[gr],++wt)}Lt=a}return{t:new Te(we),l:Lt}},ye=function(c,a,l){return c.s==-1?Math.max(ye(c.l,a,l+1),ye(c.r,a,l+1)):a[c.s]=l},at=function(c){for(var a=c.length;a&&!c[--a];);for(var l=new ne(++a),v=0,F=c[0],C=1,O=function(ie){l[v++]=ie},V=1;V<=a;++V)if(c[V]==F&&V!=a)++C;else{if(!F&&C>2){for(;C>138;C-=138)O(32754);C>2&&(O(C>10?C-11<<5|28690:C-3<<5|12305),C=0)}else if(C>3){for(O(F),--C;C>6;C-=6)O(8304);C>2&&(O(C-3<<5|8208),C=0)}for(;C--;)O(F);C=1,F=c[V]}return{c:l.subarray(0,v),n:a}},rt=function(c,a){for(var l=0,v=0;v<a.length;++v)l+=c[v]*a[v];return l},nt=function(c,a,l){var v=l.length,F=ce(a+2);c[F]=v&255,c[F+1]=v>>8,c[F+2]=c[F]^255,c[F+3]=c[F+1]^255;for(var C=0;C<v;++C)c[F+C+4]=l[C];return(F+4+v)*8},ut=function(c,a,l,v,F,C,O,V,ie,_e,We){ve(a,We++,l),++F[256];for(var Ve=fe(F,15),ct=Ve.t,we=Ve.l,Lt=fe(C,15),wt=Lt.t,kt=Lt.l,ht=at(ct),Pt=ht.c,ar=ht.n,gr=at(wt),Kr=gr.c,yn=gr.n,_r=new ne(19),Gt=0;Gt<Pt.length;++Gt)++_r[Pt[Gt]&31];for(var Gt=0;Gt<Kr.length;++Gt)++_r[Kr[Gt]&31];for(var Dr=fe(_r,7),Vr=Dr.t,bt=Dr.l,Bt=19;Bt>4&&!Vr[E[Bt-1]];--Bt);var U=_e+5<<3,H=rt(F,X)+rt(C,W)+O,Se=rt(F,ct)+rt(C,wt)+O+14+3*Bt+rt(_r,Vr)+2*_r[16]+3*_r[17]+7*_r[18];if(ie>=0&&U<=H&&U<=Se)return nt(a,We,c.subarray(ie,ie+_e));var De,Ye,He,dt;if(ve(a,We,1+(Se<H)),We+=2,Se<H){De=te(ct,we,0),Ye=ct,He=te(wt,kt,0),dt=wt;var pt=te(Vr,bt,0);ve(a,We,ar-257),ve(a,We+5,yn-1),ve(a,We+10,Bt-4),We+=14;for(var Gt=0;Gt<Bt;++Gt)ve(a,We+3*Gt,Vr[E[Gt]]);We+=3*Bt;for(var Et=[Pt,Kr],de=0;de<2;++de)for(var Ze=Et[de],Gt=0;Gt<Ze.length;++Gt){var Je=Ze[Gt]&31;ve(a,We,pt[Je]),We+=Vr[Je],Je>15&&(ve(a,We,Ze[Gt]>>5&127),We+=Ze[Gt]>>12)}}else De=j,Ye=X,He=he,dt=W;for(var Gt=0;Gt<V;++Gt){var mt=v[Gt];if(mt>255){var Je=mt>>18&31;ke(a,We,De[Je+257]),We+=Ye[Je+257],Je>7&&(ve(a,We,mt>>23&31),We+=B[Je]);var yt=mt&31;ke(a,We,He[yt]),We+=dt[yt],yt>3&&(ke(a,We,mt>>5&8191),We+=f[yt])}else ke(a,We,De[mt]),We+=Ye[mt]}return ke(a,We,De[256]),We+Ye[256]},Nt=new G([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new Te(0),Ht=function(c,a,l,v,F,C){var O=C.z||c.length,V=new Te(v+O+5*(1+Math.ceil(O/7e3))+F),ie=V.subarray(v,V.length-F),_e=C.l,We=(C.r||0)&7;if(a){We&&(ie[0]=C.r>>3);for(var Ve=Nt[a-1],ct=Ve>>13,we=Ve&8191,Lt=(1<<l)-1,wt=C.p||new ne(32768),kt=C.h||new ne(Lt+1),ht=Math.ceil(l/3),Pt=2*ht,ar=function(hn){return(c[hn]^c[hn+1]<<ht^c[hn+2]<<Pt)&Lt},gr=new G(25e3),Kr=new ne(288),yn=new ne(32),_r=0,Gt=0,Dr=C.i||0,Vr=0,bt=C.w||0,Bt=0;Dr+2<O;++Dr){var U=ar(Dr),H=Dr&32767,Se=kt[U];if(wt[H]=Se,kt[U]=H,bt<=Dr){var De=O-Dr;if((_r>7e3||Vr>24576)&&(De>423||!_e)){We=ut(c,ie,0,gr,Kr,yn,Gt,Vr,Bt,Dr-Bt,We),Vr=_r=Gt=0,Bt=Dr;for(var Ye=0;Ye<286;++Ye)Kr[Ye]=0;for(var Ye=0;Ye<30;++Ye)yn[Ye]=0}var He=2,dt=0,pt=we,Et=H-Se&32767;if(De>2&&U==ar(Dr-Et))for(var de=Math.min(ct,De)-1,Ze=Math.min(32767,Dr),Je=Math.min(258,De);Et<=Ze&&--pt&&H!=Se;){if(c[Dr+He]==c[Dr+He-Et]){for(var mt=0;mt<Je&&c[Dr+mt]==c[Dr+mt-Et];++mt);if(mt>He){if(He=mt,dt=Et,mt>de)break;for(var yt=Math.min(Et,mt-2),It=0,Ye=0;Ye<yt;++Ye){var Kt=Dr-Et+Ye&32767,Tt=wt[Kt],pr=Kt-Tt&32767;pr>It&&(It=pr,Se=Kt)}}}H=Se,Se=wt[H],Et+=H-Se&32767}if(dt){gr[Vr++]=268435456|_[He]<<18|I[dt];var sr=_[He]&31,Fr=I[dt]&31;Gt+=B[sr]+f[Fr],++Kr[257+sr],++yn[Fr],bt=Dr+He,++_r}else gr[Vr++]=c[Dr],++Kr[c[Dr]]}}for(Dr=Math.max(Dr,bt);Dr<O;++Dr)gr[Vr++]=c[Dr],++Kr[c[Dr]];We=ut(c,ie,_e,gr,Kr,yn,Gt,Vr,Bt,Dr-Bt,We),_e||(C.r=We&7|ie[We/8|0]<<3,We-=7,C.h=kt,C.p=wt,C.i=Dr,C.w=bt)}else{for(var Dr=C.w||0;Dr<O+_e;Dr+=65535){var Hr=Dr+65535;Hr>=O&&(ie[We/8|0]=_e,Hr=O),We=nt(ie,We+1,c.subarray(Dr,Hr))}C.i=O}return k(V,0,v+ce(We)+F)},cr=null,or=function(){var c=-1;return{p:function(a){for(var l=c,v=0;v<a.length;++v)l=cr[l&255^a[v]]^l>>>8;c=l},d:function(){return~c}}},yr=function(){var c=1,a=0;return{p:function(l){for(var v=c,F=a,C=l.length|0,O=0;O!=C;){for(var V=Math.min(O+2655,C);O<V;++O)F+=v+=l[O];v=(v&65535)+15*(v>>16),F=(F&65535)+15*(F>>16)}c=v,a=F},d:function(){return c%=65521,a%=65521,(c&255)<<24|(c&65280)<<8|(a&255)<<8|a>>8}}},dr=function(c,a,l,v,F){if(!F&&(F={l:1},a.dictionary)){var C=a.dictionary.subarray(-32768),O=new Te(C.length+c.length);O.set(C),O.set(c,C.length),c=O,F.w=C.length}return Ht(c,a.level==null?6:a.level,a.mem==null?F.l?Math.ceil(Math.max(8,Math.min(13,Math.log(c.length)))*1.5):20:12+a.mem,l,v,F)},$=function(c,a){var l={};for(var v in c)l[v]=c[v];for(var v in a)l[v]=a[v];return l},Xe=function(c,a,l){for(var v=c(),F=c.toString(),C=F.slice(F.indexOf("[")+1,F.lastIndexOf("]")).replace(/\s+/g,"").split(","),O=0;O<v.length;++O){var V=v[O],ie=C[O];if(typeof V=="function"){a+=";"+ie+"=";var _e=V.toString();if(V.prototype)if(_e.indexOf("[native code]")!=-1){var We=_e.indexOf(" ",8)+1;a+=_e.slice(We,_e.indexOf("(",We))}else{a+=_e;for(var Ve in V.prototype)a+=";"+ie+".prototype."+Ve+"="+V.prototype[Ve].toString()}else a+=_e}else l[ie]=V}return a},L=null,p=function(c){var a=[];for(var l in c)c[l].buffer&&a.push((c[l]=new c[l].constructor(c[l])).buffer);return a},u=function(c,a,l,v){if(!L[l]){for(var F="",C={},O=c.length-1,V=0;V<O;++V)F=Xe(c[V],F,C);L[l]={c:Xe(c[O],F,C),e:C}}var ie=$({},L[l].e);return Q(L[l].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+a.toString()+"}",l,ie,p(ie),v)},w=function(){return[Te,ne,G,B,f,E,S,R,le,Ne,Y,Le,te,Ce,je,q,ce,k,xe,Re,Qn,Ee,me]},ee=function(){return[Te,ne,G,B,f,E,_,I,j,X,he,W,Y,Nt,zt,te,ve,ke,fe,ye,at,rt,nt,ut,ce,k,Ht,dr,jr,Ee]},Be=function(){return[vt,hr,Ie,or,cr]},T=function(){return[Ut,Rt]},ae=function(){return[br,Ie,yr]},Ge=function(){return[Mr]},Ee=function(c){return postMessage(c,[c.buffer])},me=function(c){return c&&{out:c.size&&new Te(c.size),dictionary:c.dictionary}},qe=function(c,a,l,v,F,C){var O=u(l,v,F,function(V,ie){O.terminate(),C(V,ie)});return O.postMessage([c,a],a.consume?[c.buffer]:[]),function(){O.terminate()}},_t=function(c){return c.ondata=function(a,l){return postMessage([a,l],[a.buffer])},function(a){a.data.length?(c.push(a.data[0],a.data[1]),postMessage([a.data[0].length])):c.flush()}},pe=function(c,a,l,v,F,C,O){var V,ie=u(c,v,F,function(_e,We){_e?(ie.terminate(),a.ondata.call(a,_e)):Array.isArray(We)?We.length==1?(a.queuedSize-=We[0],a.ondrain&&a.ondrain(We[0])):(We[1]&&ie.terminate(),a.ondata.call(a,_e,We[0],We[1])):O(We)});ie.postMessage(l),a.queuedSize=0,a.push=function(_e,We){a.ondata||xe(5),V&&a.ondata(xe(4,0,1),null,!!We),a.queuedSize+=_e.length,ie.postMessage([_e,V=We],[_e.buffer])},a.terminate=function(){ie.terminate()},C&&(a.flush=function(){ie.postMessage([])})},st=function(c,a){return c[a]|c[a+1]<<8},At=function(c,a){return(c[a]|c[a+1]<<8|c[a+2]<<16|c[a+3]<<24)>>>0},Pe=function(c,a){return At(c,a)+At(c,a+4)*4294967296},Ie=function(c,a,l){for(;l;++a)c[a]=l,l>>>=8},vt=function(c,a){var l=a.filename;if(c[0]=31,c[1]=139,c[2]=8,c[8]=a.level<2?4:a.level==9?2:0,c[9]=3,a.mtime!=0&&Ie(c,4,Math.floor(new Date(a.mtime||Date.now())/1e3)),l){c[3]=8;for(var v=0;v<=l.length;++v)c[v+10]=l.charCodeAt(v)}},Ut=function(c){(c[0]!=31||c[1]!=139||c[2]!=8)&&xe(6,"invalid gzip data");var a=c[3],l=10;a&4&&(l+=(c[10]|c[11]<<8)+2);for(var v=(a>>3&1)+(a>>4&1);v>0;v-=!c[l++]);return l+(a&2)},Rt=function(c){var a=c.length;return(c[a-4]|c[a-3]<<8|c[a-2]<<16|c[a-1]<<24)>>>0},hr=function(c){return 10+(c.filename?c.filename.length+1:0)},br=function(c,a){var l=a.level,v=l==0?0:l<6?1:l==9?3:2;if(c[0]=120,c[1]=v<<6|(a.dictionary&&32),c[1]|=31-(c[0]<<8|c[1])%31,a.dictionary){var F=yr();F.p(a.dictionary),Ie(c,2,F.d())}},Mr=function(c,a){return((c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31)&&xe(6,"invalid zlib data"),(c[1]>>5&1)==+!a&&xe(6,"invalid zlib data: "+(c[1]&32?"need":"unexpected")+" dictionary"),(c[1]>>3&4)+2};function Ur(c,a){return typeof c=="function"&&(a=c,c={}),this.ondata=a,c}var Qr=null,rr=null;function Ar(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),qe(c,a,[ee],function(v){return Ee(jr(v.data[0],v.data[1]))},0,l)}function jr(c,a){return dr(c,a||{},0,0)}var cn=null,Tn=null;function en(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),qe(c,a,[w],function(v){return Ee(Qn(v.data[0],me(v.data[1])))},1,l)}function Qn(c,a){return Re(c,{i:2},a&&a.out,a&&a.dictionary)}var li=null,Pr=null;function ti(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),qe(c,a,[ee,Be,function(){return[yi]}],function(v){return Ee(yi(v.data[0],v.data[1]))},2,l)}function yi(c,a){a||(a={});var l=or(),v=c.length;l.p(c);var F=dr(c,a,hr(a),8),C=F.length;return vt(F,a),Ie(F,C-8,l.d()),Ie(F,C-4,v),F}var ci=null,Ci=null;function hi(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),qe(c,a,[w,T,function(){return[Ri]}],function(v){return Ee(Ri(v.data[0],v.data[1]))},3,l)}function Ri(c,a){var l=Ut(c);return l+8>c.length&&xe(6,"invalid gzip data"),Re(c.subarray(l,-8),{i:2},a&&a.out||new Te(Rt(c)),a&&a.dictionary)}var ba=null,Xi=null;function _i(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),qe(c,a,[ee,ae,function(){return[oi]}],function(v){return Ee(oi(v.data[0],v.data[1]))},4,l)}function oi(c,a){a||(a={});var l=yr();l.p(c);var v=dr(c,a,a.dictionary?6:2,4);return br(v,a),Ie(v,v.length-4,l.d()),v}var Qi=null,be=null;function Ue(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),qe(c,a,[w,Ge,function(){return[Me]}],function(v){return Ee(Me(v.data[0],me(v.data[1])))},5,l)}function Me(c,a){return Re(c.subarray(Mr(c,a&&a.dictionary),-4),{i:2},a&&a.out,a&&a.dictionary)}var lt=null,Zt=null;function Qt(c,a,l){return l||(l=a,a={}),typeof l!="function"&&xe(7),c[0]==31&&c[1]==139&&c[2]==8?hi(c,a,l):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?en(c,a,l):Ue(c,a,l)}function Sr(c,a){return c[0]==31&&c[1]==139&&c[2]==8?Ri(c,a):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?Qn(c,a):Me(c,a)}var fr=function(c,a,l,v){for(var F in c){var C=c[F],O=a+F,V=v;Array.isArray(C)&&(V=$(v,C[1]),C=C[0]),C instanceof Te?l[O]=[C,V]:(l[O+="/"]=[new Te(0),V],fr(C,O,l,v))}},Tr=typeof TextEncoder!="undefined"&&new TextEncoder,Wr=typeof TextDecoder!="undefined"&&new TextDecoder,An=0;try{Wr.decode(zt,{stream:!0}),An=1}catch(c){}var $r=function(c){for(var a="",l=0;;){var v=c[l++],F=(v>127)+(v>223)+(v>239);if(l+F>c.length)return{s:a,r:k(c,l-1)};F?F==3?(v=((v&15)<<18|(c[l++]&63)<<12|(c[l++]&63)<<6|c[l++]&63)-65536,a+=String.fromCharCode(55296|v>>10,56320|v&1023)):F&1?a+=String.fromCharCode((v&31)<<6|c[l++]&63):a+=String.fromCharCode((v&15)<<12|(c[l++]&63)<<6|c[l++]&63):a+=String.fromCharCode(v)}},Rr=null,qr=null;function mn(c,a){if(a){for(var l=new Te(c.length),v=0;v<c.length;++v)l[v]=c.charCodeAt(v);return l}if(Tr)return Tr.encode(c);for(var F=c.length,C=new Te(c.length+(c.length>>1)),O=0,V=function(We){C[O++]=We},v=0;v<F;++v){if(O+5>C.length){var ie=new Te(O+8+(F-v<<1));ie.set(C),C=ie}var _e=c.charCodeAt(v);_e<128||a?V(_e):_e<2048?(V(192|_e>>6),V(128|_e&63)):_e>55295&&_e<57344?(_e=65536+(_e&1047552)|c.charCodeAt(++v)&1023,V(240|_e>>18),V(128|_e>>12&63),V(128|_e>>6&63),V(128|_e&63)):(V(224|_e>>12),V(128|_e>>6&63),V(128|_e&63))}return k(C,0,O)}function sn(c,a){if(a){for(var l="",v=0;v<c.length;v+=16384)l+=String.fromCharCode.apply(null,c.subarray(v,v+16384));return l}else{if(Wr)return Wr.decode(c);var F=$r(c),C=F.s,l=F.r;return l.length&&xe(8),C}}var Sn=function(c){return c==1?3:c<6?2:c==9?1:0},Hn=function(c,a){return a+30+st(c,a+26)+st(c,a+28)},pi=function(c,a,l){var v=st(c,a+28),F=sn(c.subarray(a+46,a+46+v),!(st(c,a+8)&2048)),C=a+46+v,O=At(c,a+20),V=l&&O==4294967295?In(c,C):[O,At(c,a+24),At(c,a+42)],ie=V[0],_e=V[1],We=V[2];return[st(c,a+10),ie,_e,F,C+st(c,a+30)+st(c,a+32),We]},In=function(c,a){for(;st(c,a)!=1;a+=4+st(c,a+2));return[Pe(c,a+12),Pe(c,a+4),Pe(c,a+20)]},an=function(c){var a=0;if(c)for(var l in c){var v=c[l].length;v>65535&&xe(9),a+=v+4}return a},jt=function(c,a,l,v,F,C,O,V){var ie=v.length,_e=l.extra,We=V&&V.length,Ve=an(_e);Ie(c,a,O!=null?33639248:67324752),a+=4,O!=null&&(c[a++]=20,c[a++]=l.os),c[a]=20,a+=2,c[a++]=l.flag<<1|(C<0&&8),c[a++]=F&&8,c[a++]=l.compression&255,c[a++]=l.compression>>8;var ct=new Date(l.mtime==null?Date.now():l.mtime),we=ct.getFullYear()-1980;if((we<0||we>119)&&xe(10),Ie(c,a,we<<25|ct.getMonth()+1<<21|ct.getDate()<<16|ct.getHours()<<11|ct.getMinutes()<<5|ct.getSeconds()>>1),a+=4,C!=-1&&(Ie(c,a,l.crc),Ie(c,a+4,C<0?-C-2:C),Ie(c,a+8,l.size)),Ie(c,a+12,ie),Ie(c,a+14,Ve),a+=16,O!=null&&(Ie(c,a,We),Ie(c,a+6,l.attrs),Ie(c,a+10,O),a+=14),c.set(v,a),a+=ie,Ve)for(var Lt in _e){var wt=_e[Lt],kt=wt.length;Ie(c,a,+Lt),Ie(c,a+2,kt),c.set(wt,a+4),a+=4+kt}return We&&(c.set(V,a),a+=We),a},Wt=function(c,a,l,v,F){Ie(c,a,101010256),Ie(c,a+8,l),Ie(c,a+10,l),Ie(c,a+12,v),Ie(c,a+16,F)},nr=null,qt=null,Xt=null,Nr=null;function Lr(c,a,l){l||(l=a,a={}),typeof l!="function"&&xe(7);var v={};fr(c,"",v,a);var F=Object.keys(v),C=F.length,O=0,V=0,ie=C,_e=new Array(C),We=[],Ve=function(){for(var kt=0;kt<We.length;++kt)We[kt]()},ct=function(kt,ht){ki(function(){l(kt,ht)})};ki(function(){ct=l});var we=function(){var kt=new Te(V+22),ht=O,Pt=V-O;V=0;for(var ar=0;ar<ie;++ar){var gr=_e[ar];try{var Kr=gr.c.length;jt(kt,V,gr,gr.f,gr.u,Kr);var yn=30+gr.f.length+an(gr.extra),_r=V+yn;kt.set(gr.c,_r),jt(kt,O,gr,gr.f,gr.u,Kr,V,gr.m),O+=16+yn+(gr.m?gr.m.length:0),V=_r+Kr}catch(Gt){return ct(Gt,null)}}Wt(kt,O,_e.length,Pt,ht),ct(null,kt)};C||we();for(var Lt=function(kt){var ht=F[kt],Pt=v[ht],ar=Pt[0],gr=Pt[1],Kr=or(),yn=ar.length;Kr.p(ar);var _r=mn(ht),Gt=_r.length,Dr=gr.comment,Vr=Dr&&mn(Dr),bt=Vr&&Vr.length,Bt=an(gr.extra),U=gr.level==0?0:8,H=function(Se,De){if(Se)Ve(),ct(Se,null);else{var Ye=De.length;_e[kt]=$(gr,{size:yn,crc:Kr.d(),c:De,f:_r,m:Vr,u:Gt!=ht.length||Vr&&Dr.length!=bt,compression:U}),O+=30+Gt+Bt+Ye,V+=76+2*(Gt+Bt)+(bt||0)+Ye,--C||we()}};if(Gt>65535&&H(xe(11,0,1),null),!U)H(null,ar);else if(yn<16e4)try{H(null,jr(ar,gr))}catch(Se){H(Se,null)}else We.push(Ar(ar,gr,H))},wt=0;wt<ie;++wt)Lt(wt);return Ve}function Jr(c,a){a||(a={});var l={},v=[];fr(c,"",l,a);var F=0,C=0;for(var O in l){var V=l[O],ie=V[0],_e=V[1],We=_e.level==0?0:8,Ve=mn(O),ct=Ve.length,we=_e.comment,Lt=we&&mn(we),wt=Lt&&Lt.length,kt=an(_e.extra);ct>65535&&xe(11);var ht=We?jr(ie,_e):ie,Pt=ht.length,ar=or();ar.p(ie),v.push($(_e,{size:ie.length,crc:ar.d(),c:ht,f:Ve,m:Lt,u:ct!=O.length||Lt&&we.length!=wt,o:F,compression:We})),F+=30+ct+kt+Pt,C+=76+2*(ct+kt)+(wt||0)+Pt}for(var gr=new Te(C+22),Kr=F,yn=C-F,_r=0;_r<v.length;++_r){var Ve=v[_r];jt(gr,Ve.o,Ve,Ve.f,Ve.u,Ve.c.length);var Gt=30+Ve.f.length+an(Ve.extra);gr.set(Ve.c,Ve.o+Gt),jt(gr,F,Ve,Ve.f,Ve.u,Ve.c.length,Ve.o,Ve.m),F+=16+Gt+(Ve.m?Ve.m.length:0)}return Wt(gr,F,v.length,yn,Kr),gr}var _n=null,Dn=null,Ai=null,Yn=null,ki=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(c){c()};function qn(c,a,l){l||(l=a,a={}),typeof l!="function"&&xe(7);var v=[],F=function(){for(var kt=0;kt<v.length;++kt)v[kt]()},C={},O=function(kt,ht){ki(function(){l(kt,ht)})};ki(function(){O=l});for(var V=c.length-22;At(c,V)!=101010256;--V)if(!V||c.length-V>65558)return O(xe(13,0,1),null),F;var ie=st(c,V+8);if(ie){var _e=ie,We=At(c,V+16),Ve=We==4294967295||_e==65535;if(Ve){var ct=At(c,V-12);Ve=At(c,ct)==101075792,Ve&&(_e=ie=At(c,ct+32),We=At(c,ct+48))}for(var we=a&&a.filter,Lt=function(kt){var ht=pi(c,We,Ve),Pt=ht[0],ar=ht[1],gr=ht[2],Kr=ht[3],yn=ht[4],_r=ht[5],Gt=Hn(c,_r);We=yn;var Dr=function(bt,Bt){bt?(F(),O(bt,null)):(Bt&&(C[Kr]=Bt),--ie||O(null,C))};if(!we||we({name:Kr,size:ar,originalSize:gr,compression:Pt}))if(!Pt)Dr(null,k(c,Gt,Gt+ar));else if(Pt==8){var Vr=c.subarray(Gt,Gt+ar);if(gr<524288||ar>.8*gr)try{Dr(null,Qn(Vr,{out:new Te(gr)}))}catch(bt){Dr(bt,null)}else v.push(en(Vr,{size:gr},Dr))}else Dr(xe(14,"unknown compression type "+Pt,1),null);else Dr(null,null)},wt=0;wt<_e;++wt)Lt(wt)}else O(null,{});return F}function Nn(c,a){for(var l={},v=c.length-22;At(c,v)!=101010256;--v)(!v||c.length-v>65558)&&xe(13);var F=st(c,v+8);if(!F)return{};var C=At(c,v+16),O=C==4294967295||F==65535;if(O){var V=At(c,v-12);O=At(c,V)==101075792,O&&(F=At(c,V+32),C=At(c,V+48))}for(var ie=a&&a.filter,_e=0;_e<F;++_e){var We=pi(c,C,O),Ve=We[0],ct=We[1],we=We[2],Lt=We[3],wt=We[4],kt=We[5],ht=Hn(c,kt);C=wt,(!ie||ie({name:Lt,size:ct,originalSize:we,compression:Ve}))&&(Ve?Ve==8?l[Lt]=Qn(c.subarray(ht,ht+ct),{out:new Te(we)}):xe(14,"unknown compression type "+Ve):l[Lt]=k(c,ht,ht+ct))}return l}var ln=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function wi(){ln.console&&typeof ln.console.log=="function"&&ln.console.log.apply(ln.console,arguments)}var Mn={log:wi,warn:function(c){ln.console&&(typeof ln.console.warn=="function"?ln.console.warn.apply(ln.console,arguments):wi.call(null,arguments))},error:function(c){ln.console&&(typeof ln.console.error=="function"?ln.console.error.apply(ln.console,arguments):wi(c))}};function ni(c,a,l){var v=new XMLHttpRequest;v.open("GET",c),v.responseType="blob",v.onload=function(){Ji(v.response,a,l)},v.onerror=function(){Mn.error("could not download file")},v.send()}function Si(c){var a=new XMLHttpRequest;a.open("HEAD",c,!1);try{a.send()}catch(l){}return a.status>=200&&a.status<=299}function Mi(c){try{c.dispatchEvent(new MouseEvent("click"))}catch(l){var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(a)}}var Wn,Pi,Ji=ln.saveAs||((typeof window=="undefined"?"undefined":(0,ge.Z)(window))!=="object"||window!==ln?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(c,a,l){var v=ln.URL||ln.webkitURL,F=document.createElement("a");a=a||c.name||"download",F.download=a,F.rel="noopener",typeof c=="string"?(F.href=c,F.origin!==location.origin?Si(F.href)?ni(c,a,l):Mi(F,F.target="_blank"):Mi(F)):(F.href=v.createObjectURL(c),setTimeout(function(){v.revokeObjectURL(F.href)},4e4),setTimeout(function(){Mi(F)},0))}:"msSaveOrOpenBlob"in navigator?function(c,a,l){if(a=a||c.name||"download",typeof c=="string")if(Si(c))ni(c,a,l);else{var v=document.createElement("a");v.href=c,v.target="_blank",setTimeout(function(){Mi(v)})}else navigator.msSaveOrOpenBlob(function(F,C){return C===void 0?C={autoBom:!1}:(0,ge.Z)(C)!=="object"&&(Mn.warn("Deprecated: Expected third argument to be a object"),C={autoBom:!C}),C.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\uFEFF",F],{type:F.type}):F}(c,l),a)}:function(c,a,l,v){if((v=v||open("","_blank"))&&(v.document.title=v.document.body.innerText="downloading..."),typeof c=="string")return ni(c,a,l);var F=c.type==="application/octet-stream",C=/constructor/i.test(ln.HTMLElement)||ln.safari,O=/CriOS\/[\d]+/.test(navigator.userAgent);if((O||F&&C)&&(typeof FileReader=="undefined"?"undefined":(0,ge.Z)(FileReader))==="object"){var V=new FileReader;V.onloadend=function(){var We=V.result;We=O?We:We.replace(/^data:[^;]*;/,"data:attachment/file;"),v?v.location.href=We:location=We,v=null},V.readAsDataURL(c)}else{var ie=ln.URL||ln.webkitURL,_e=ie.createObjectURL(c);v?v.location=_e:location.href=_e,v=null,setTimeout(function(){ie.revokeObjectURL(_e)},4e4)}});function si(c){var a;c=c||"",this.ok=!1,c.charAt(0)=="#"&&(c=c.substr(1,6)),c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[c=(c=c.replace(/ /g,"")).toLowerCase()]||c;for(var l=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(V){return[parseInt(V[1]),parseInt(V[2]),parseInt(V[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(V){return[parseInt(V[1],16),parseInt(V[2],16),parseInt(V[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(V){return[parseInt(V[1]+V[1],16),parseInt(V[2]+V[2],16),parseInt(V[3]+V[3],16)]}}],v=0;v<l.length;v++){var F=l[v].re,C=l[v].process,O=F.exec(c);O&&(a=C(O),this.r=a[0],this.g=a[1],this.b=a[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var V=this.r.toString(16),ie=this.g.toString(16),_e=this.b.toString(16);return V.length==1&&(V="0"+V),ie.length==1&&(ie="0"+ie),_e.length==1&&(_e="0"+_e),"#"+V+ie+_e}}function dn(c,a){var l=c[0],v=c[1],F=c[2],C=c[3];l=Ln(l,v,F,C,a[0],7,-680876936),C=Ln(C,l,v,F,a[1],12,-389564586),F=Ln(F,C,l,v,a[2],17,606105819),v=Ln(v,F,C,l,a[3],22,-1044525330),l=Ln(l,v,F,C,a[4],7,-176418897),C=Ln(C,l,v,F,a[5],12,1200080426),F=Ln(F,C,l,v,a[6],17,-1473231341),v=Ln(v,F,C,l,a[7],22,-45705983),l=Ln(l,v,F,C,a[8],7,1770035416),C=Ln(C,l,v,F,a[9],12,-1958414417),F=Ln(F,C,l,v,a[10],17,-42063),v=Ln(v,F,C,l,a[11],22,-1990404162),l=Ln(l,v,F,C,a[12],7,1804603682),C=Ln(C,l,v,F,a[13],12,-40341101),F=Ln(F,C,l,v,a[14],17,-1502002290),l=wn(l,v=Ln(v,F,C,l,a[15],22,1236535329),F,C,a[1],5,-165796510),C=wn(C,l,v,F,a[6],9,-1069501632),F=wn(F,C,l,v,a[11],14,643717713),v=wn(v,F,C,l,a[0],20,-373897302),l=wn(l,v,F,C,a[5],5,-701558691),C=wn(C,l,v,F,a[10],9,38016083),F=wn(F,C,l,v,a[15],14,-660478335),v=wn(v,F,C,l,a[4],20,-405537848),l=wn(l,v,F,C,a[9],5,568446438),C=wn(C,l,v,F,a[14],9,-1019803690),F=wn(F,C,l,v,a[3],14,-187363961),v=wn(v,F,C,l,a[8],20,1163531501),l=wn(l,v,F,C,a[13],5,-1444681467),C=wn(C,l,v,F,a[2],9,-51403784),F=wn(F,C,l,v,a[7],14,1735328473),l=Kn(l,v=wn(v,F,C,l,a[12],20,-1926607734),F,C,a[5],4,-378558),C=Kn(C,l,v,F,a[8],11,-2022574463),F=Kn(F,C,l,v,a[11],16,1839030562),v=Kn(v,F,C,l,a[14],23,-35309556),l=Kn(l,v,F,C,a[1],4,-1530992060),C=Kn(C,l,v,F,a[4],11,1272893353),F=Kn(F,C,l,v,a[7],16,-155497632),v=Kn(v,F,C,l,a[10],23,-1094730640),l=Kn(l,v,F,C,a[13],4,681279174),C=Kn(C,l,v,F,a[0],11,-358537222),F=Kn(F,C,l,v,a[3],16,-722521979),v=Kn(v,F,C,l,a[6],23,76029189),l=Kn(l,v,F,C,a[9],4,-640364487),C=Kn(C,l,v,F,a[12],11,-421815835),F=Kn(F,C,l,v,a[15],16,530742520),l=ui(l,v=Kn(v,F,C,l,a[2],23,-995338651),F,C,a[0],6,-198630844),C=ui(C,l,v,F,a[7],10,1126891415),F=ui(F,C,l,v,a[14],15,-1416354905),v=ui(v,F,C,l,a[5],21,-57434055),l=ui(l,v,F,C,a[12],6,1700485571),C=ui(C,l,v,F,a[3],10,-1894986606),F=ui(F,C,l,v,a[10],15,-1051523),v=ui(v,F,C,l,a[1],21,-2054922799),l=ui(l,v,F,C,a[8],6,1873313359),C=ui(C,l,v,F,a[15],10,-30611744),F=ui(F,C,l,v,a[6],15,-1560198380),v=ui(v,F,C,l,a[13],21,1309151649),l=ui(l,v,F,C,a[4],6,-145523070),C=ui(C,l,v,F,a[11],10,-1120210379),F=ui(F,C,l,v,a[2],15,718787259),v=ui(v,F,C,l,a[9],21,-343485551),c[0]=ri(l,c[0]),c[1]=ri(v,c[1]),c[2]=ri(F,c[2]),c[3]=ri(C,c[3])}function rn(c,a,l,v,F,C){return a=ri(ri(a,c),ri(v,C)),ri(a<<F|a>>>32-F,l)}function Ln(c,a,l,v,F,C,O){return rn(a&l|~a&v,c,a,F,C,O)}function wn(c,a,l,v,F,C,O){return rn(a&v|l&~v,c,a,F,C,O)}function Kn(c,a,l,v,F,C,O){return rn(a^l^v,c,a,F,C,O)}function ui(c,a,l,v,F,C,O){return rn(l^(a|~v),c,a,F,C,O)}function Fi(c){var a,l=c.length,v=[1732584193,-271733879,-1732584194,271733878];for(a=64;a<=c.length;a+=64)dn(v,la(c.substring(a-64,a)));c=c.substring(a-64);var F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(a=0;a<c.length;a++)F[a>>2]|=c.charCodeAt(a)<<(a%4<<3);if(F[a>>2]|=128<<(a%4<<3),a>55)for(dn(v,F),a=0;a<16;a++)F[a]=0;return F[14]=8*l,dn(v,F),v}function la(c){var a,l=[];for(a=0;a<64;a+=4)l[a>>2]=c.charCodeAt(a)+(c.charCodeAt(a+1)<<8)+(c.charCodeAt(a+2)<<16)+(c.charCodeAt(a+3)<<24);return l}Wn=ln.atob.bind(ln),Pi=ln.btoa.bind(ln);var ta="0123456789abcdef".split("");function ja(c){for(var a="",l=0;l<4;l++)a+=ta[c>>8*l+4&15]+ta[c>>8*l&15];return a}function io(c){return String.fromCharCode((255&c)>>0,(65280&c)>>8,(16711680&c)>>16,(4278190080&c)>>24)}function jn(c){return Fi(c).map(io).join("")}var Zn=function(c){for(var a=0;a<c.length;a++)c[a]=ja(c[a]);return c.join("")}(Fi("hello"))!="5d41402abc4b2a76b9719d911017c592";function ri(c,a){if(Zn){var l=(65535&c)+(65535&a);return(c>>16)+(a>>16)+(l>>16)<<16|65535&l}return c+a&4294967295}function ra(c,a){var l,v,F,C;if(c!==l){for(var O=(F=c,C=1+(256/c.length>>0),new Array(C+1).join(F)),V=[],ie=0;ie<256;ie++)V[ie]=ie;var _e=0;for(ie=0;ie<256;ie++){var We=V[ie];_e=(_e+We+O.charCodeAt(ie))%256,V[ie]=V[_e],V[_e]=We}l=c,v=V}else V=v;var Ve=a.length,ct=0,we=0,Lt="";for(ie=0;ie<Ve;ie++)we=(we+(We=V[ct=(ct+1)%256]))%256,V[ct]=V[we],V[we]=We,O=V[(V[ct]+V[we])%256],Lt+=String.fromCharCode(a.charCodeAt(ie)^O);return Lt}var La={print:4,modify:8,copy:16,"annot-forms":32};function ca(c,a,l,v){this.v=1,this.r=2;var F=192;c.forEach(function(V){if(La.perm!==void 0)throw new Error("Invalid permission: "+V);F+=La[V]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var C=(a+this.padding).substr(0,32),O=(l+this.padding).substr(0,32);this.O=this.processOwnerPassword(C,O),this.P=-(1+(255^F)),this.encryptionKey=jn(C+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(v)).substr(0,5),this.U=ra(this.encryptionKey,this.padding)}function Hi(c){if(/[^\u0000-\u00ff]/.test(c))throw new Error("Invalid PDF Name Object: "+c+", Only accept ASCII characters.");for(var a="",l=c.length,v=0;v<l;v++){var F=c.charCodeAt(v);F<33||F===35||F===37||F===40||F===41||F===47||F===60||F===62||F===91||F===93||F===123||F===125||F>126?a+="#"+("0"+F.toString(16)).slice(-2):a+=c[v]}return a}function za(c){if((0,ge.Z)(c)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var a={};this.subscribe=function(l,v,F){if(F=F||!1,typeof l!="string"||typeof v!="function"||typeof F!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");a.hasOwnProperty(l)||(a[l]={});var C=Math.random().toString(35);return a[l][C]=[v,!!F],C},this.unsubscribe=function(l){for(var v in a)if(a[v][l])return delete a[v][l],Object.keys(a[v]).length===0&&delete a[v],!0;return!1},this.publish=function(l){if(a.hasOwnProperty(l)){var v=Array.prototype.slice.call(arguments,1),F=[];for(var C in a[l]){var O=a[l][C];try{O[0].apply(c,v)}catch(V){ln.console&&Mn.error("jsPDF PubSub Error",V.message,V)}O[1]&&F.push(C)}F.length&&F.forEach(this.unsubscribe)}},this.getTopics=function(){return a}}function ka(c){if(!(this instanceof ka))return new ka(c);var a="opacity,stroke-opacity".split(",");for(var l in c)c.hasOwnProperty(l)&&a.indexOf(l)>=0&&(this[l]=c[l]);this.id="",this.objectNumber=-1}function co(c,a){this.gState=c,this.matrix=a,this.id="",this.objectNumber=-1}function Ya(c,a,l,v,F){if(!(this instanceof Ya))return new Ya(c,a,l,v,F);this.type=c==="axial"?2:3,this.coords=a,this.colors=l,co.call(this,v,F)}function Ca(c,a,l,v,F){if(!(this instanceof Ca))return new Ca(c,a,l,v,F);this.boundingBox=c,this.xStep=a,this.yStep=l,this.stream="",this.cloneIndex=0,co.call(this,v,F)}function mi(c){var a,l=typeof arguments[0]=="string"?arguments[0]:"p",v=arguments[1],F=arguments[2],C=arguments[3],O=[],V=1,ie=16,_e="S",We=null;(0,ge.Z)(c=c||{})==="object"&&(l=c.orientation,v=c.unit||v,F=c.format||F,C=c.compress||c.compressPdf||C,(We=c.encryption||null)!==null&&(We.userPassword=We.userPassword||"",We.ownerPassword=We.ownerPassword||"",We.userPermissions=We.userPermissions||[]),V=typeof c.userUnit=="number"?Math.abs(c.userUnit):1,c.precision!==void 0&&(a=c.precision),c.floatPrecision!==void 0&&(ie=c.floatPrecision),_e=c.defaultPathOperation||"S"),O=c.filters||(C===!0?["FlateEncode"]:O),v=v||"mm",l=(""+(l||"P")).toLowerCase();var Ve=c.putOnlyUsedFonts||!1,ct={},we={internal:{},__private__:{}};we.__private__.PubSub=za;var Lt="1.3",wt=we.__private__.getPdfVersion=function(){return Lt};we.__private__.setPdfVersion=function(P){Lt=P};var kt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};we.__private__.getPageFormats=function(){return kt};var ht=we.__private__.getPageFormat=function(P){return kt[P]};F=F||"a4";var Pt={COMPAT:"compat",ADVANCED:"advanced"},ar=Pt.COMPAT;function gr(){this.saveGraphicsState(),St(new Ki(kn,0,0,-kn,0,kc()*kn).toString()+" cm"),this.setFontSize(this.getFontSize()/kn),_e="n",ar=Pt.ADVANCED}function Kr(){this.restoreGraphicsState(),_e="S",ar=Pt.COMPAT}var yn=we.__private__.combineFontStyleAndFontWeight=function(P,$e){if(P=="bold"&&$e=="normal"||P=="bold"&&$e==400||P=="normal"&&$e=="italic"||P=="bold"&&$e=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return $e&&(P=$e==400||$e==="normal"?P==="italic"?"italic":"normal":$e!=700&&$e!=="bold"||P!=="normal"?($e==700?"bold":$e)+""+P:"bold"),P};we.advancedAPI=function(P){var $e=ar===Pt.COMPAT;return $e&&gr.call(this),typeof P!="function"||(P(this),$e&&Kr.call(this)),this},we.compatAPI=function(P){var $e=ar===Pt.ADVANCED;return $e&&Kr.call(this),typeof P!="function"||(P(this),$e&&gr.call(this)),this},we.isAdvancedAPI=function(){return ar===Pt.ADVANCED};var _r,Gt=function(P){if(ar!==Pt.ADVANCED)throw new Error(P+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Dr=we.roundToPrecision=we.__private__.roundToPrecision=function(P,$e){var Dt=a||$e;if(isNaN(P)||isNaN(Dt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return P.toFixed(Dt).replace(/0+$/,"")};_r=we.hpf=we.__private__.hpf=typeof ie=="number"?function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.hpf");return Dr(P,ie)}:ie==="smart"?function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.hpf");return Dr(P,P>-1&&P<1?16:5)}:function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.hpf");return Dr(P,16)};var Vr=we.f2=we.__private__.f2=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.f2");return Dr(P,2)},bt=we.__private__.f3=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.f3");return Dr(P,3)},Bt=we.scale=we.__private__.scale=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.scale");return ar===Pt.COMPAT?P*kn:ar===Pt.ADVANCED?P:void 0},U=function(P){return ar===Pt.COMPAT?kc()-P:ar===Pt.ADVANCED?P:void 0},H=function(P){return Bt(U(P))};we.__private__.setPrecision=we.setPrecision=function(P){typeof parseInt(P,10)=="number"&&(a=parseInt(P,10))};var Se,De="00000000000000000000000000000000",Ye=we.__private__.getFileId=function(){return De},He=we.__private__.setFileId=function(P){return De=P!==void 0&&/^[a-fA-F0-9]{32}$/.test(P)?P.toUpperCase():De.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),We!==null&&(Os=new ca(We.userPermissions,We.userPassword,We.ownerPassword,De)),De};we.setFileId=function(P){return He(P),this},we.getFileId=function(){return Ye()};var dt=we.__private__.convertDateToPDFDate=function(P){var $e=P.getTimezoneOffset(),Dt=$e<0?"+":"-",Jt=Math.floor(Math.abs($e/60)),vr=Math.abs($e%60),Xr=[Dt,Je(Jt),"'",Je(vr),"'"].join("");return["D:",P.getFullYear(),Je(P.getMonth()+1),Je(P.getDate()),Je(P.getHours()),Je(P.getMinutes()),Je(P.getSeconds()),Xr].join("")},pt=we.__private__.convertPDFDateToDate=function(P){var $e=parseInt(P.substr(2,4),10),Dt=parseInt(P.substr(6,2),10)-1,Jt=parseInt(P.substr(8,2),10),vr=parseInt(P.substr(10,2),10),Xr=parseInt(P.substr(12,2),10),Fn=parseInt(P.substr(14,2),10);return new Date($e,Dt,Jt,vr,Xr,Fn,0)},Et=we.__private__.setCreationDate=function(P){var $e;if(P===void 0&&(P=new Date),P instanceof Date)$e=dt(P);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(P))throw new Error("Invalid argument passed to jsPDF.setCreationDate");$e=P}return Se=$e},de=we.__private__.getCreationDate=function(P){var $e=Se;return P==="jsDate"&&($e=pt(Se)),$e};we.setCreationDate=function(P){return Et(P),this},we.getCreationDate=function(P){return de(P)};var Ze,Je=we.__private__.padd2=function(P){return("0"+parseInt(P)).slice(-2)},mt=we.__private__.padd2Hex=function(P){return("00"+(P=P.toString())).substr(P.length)},yt=0,It=[],Kt=[],Tt=0,pr=[],sr=[],Fr=!1,Hr=Kt,hn=function(){yt=0,Tt=0,Kt=[],It=[],pr=[],ga=Ho(),ho=Ho()};we.__private__.setCustomOutputDestination=function(P){Fr=!0,Hr=P};var tr=function(P){Fr||(Hr=P)};we.__private__.resetCustomOutputDestination=function(){Fr=!1,Hr=Kt};var St=we.__private__.out=function(P){return P=P.toString(),Tt+=P.length+1,Hr.push(P),Hr},On=we.__private__.write=function(P){return St(arguments.length===1?P.toString():Array.prototype.join.call(arguments," "))},zr=we.__private__.getArrayBuffer=function(P){for(var $e=P.length,Dt=new ArrayBuffer($e),Jt=new Uint8Array(Dt);$e--;)Jt[$e]=P.charCodeAt($e);return Dt},wr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];we.__private__.getStandardFonts=function(){return wr};var Ir=c.fontSize||16;we.__private__.setFontSize=we.setFontSize=function(P){return Ir=ar===Pt.ADVANCED?P/kn:P,this};var xr,kr=we.__private__.getFontSize=we.getFontSize=function(){return ar===Pt.COMPAT?Ir:Ir*kn},fn=c.R2L||!1;we.__private__.setR2L=we.setR2L=function(P){return fn=P,this},we.__private__.getR2L=we.getR2L=function(){return fn};var zn,Rn=we.__private__.setZoomMode=function(P){var $e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(P))xr=P;else if(isNaN(P)){if($e.indexOf(P)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+P+'" is not recognized.');xr=P}else xr=parseInt(P,10)};we.__private__.getZoomMode=function(){return xr};var Bn,ii=we.__private__.setPageMode=function(P){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(P)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+P+'" is not recognized.');zn=P};we.__private__.getPageMode=function(){return zn};var Ei=we.__private__.setLayoutMode=function(P){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(P)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+P+'" is not recognized.');Bn=P};we.__private__.getLayoutMode=function(){return Bn},we.__private__.setDisplayMode=we.setDisplayMode=function(P,$e,Dt){return Rn(P),Ei($e),ii(Dt),this};var gi={title:"",subject:"",author:"",keywords:"",creator:""};we.__private__.getDocumentProperty=function(P){if(Object.keys(gi).indexOf(P)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return gi[P]},we.__private__.getDocumentProperties=function(){return gi},we.__private__.setDocumentProperties=we.setProperties=we.setDocumentProperties=function(P){for(var $e in gi)gi.hasOwnProperty($e)&&P[$e]&&(gi[$e]=P[$e]);return this},we.__private__.setDocumentProperty=function(P,$e){if(Object.keys(gi).indexOf(P)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return gi[P]=$e};var xi,kn,ha,ei,uo,Ti={},na={},Ta=[],ma={},Vn={},Gn={},bi={},vi=null,Zi=0,gn=[],Xn=new za(we),aa=c.hotfixes||[],ji={},ko={},Do=[],Ki=function P($e,Dt,Jt,vr,Xr,Fn){if(!(this instanceof P))return new P($e,Dt,Jt,vr,Xr,Fn);isNaN($e)&&($e=1),isNaN(Dt)&&(Dt=0),isNaN(Jt)&&(Jt=0),isNaN(vr)&&(vr=1),isNaN(Xr)&&(Xr=0),isNaN(Fn)&&(Fn=0),this._matrix=[$e,Dt,Jt,vr,Xr,Fn]};Object.defineProperty(Ki.prototype,"sx",{get:function(){return this._matrix[0]},set:function(P){this._matrix[0]=P}}),Object.defineProperty(Ki.prototype,"shy",{get:function(){return this._matrix[1]},set:function(P){this._matrix[1]=P}}),Object.defineProperty(Ki.prototype,"shx",{get:function(){return this._matrix[2]},set:function(P){this._matrix[2]=P}}),Object.defineProperty(Ki.prototype,"sy",{get:function(){return this._matrix[3]},set:function(P){this._matrix[3]=P}}),Object.defineProperty(Ki.prototype,"tx",{get:function(){return this._matrix[4]},set:function(P){this._matrix[4]=P}}),Object.defineProperty(Ki.prototype,"ty",{get:function(){return this._matrix[5]},set:function(P){this._matrix[5]=P}}),Object.defineProperty(Ki.prototype,"a",{get:function(){return this._matrix[0]},set:function(P){this._matrix[0]=P}}),Object.defineProperty(Ki.prototype,"b",{get:function(){return this._matrix[1]},set:function(P){this._matrix[1]=P}}),Object.defineProperty(Ki.prototype,"c",{get:function(){return this._matrix[2]},set:function(P){this._matrix[2]=P}}),Object.defineProperty(Ki.prototype,"d",{get:function(){return this._matrix[3]},set:function(P){this._matrix[3]=P}}),Object.defineProperty(Ki.prototype,"e",{get:function(){return this._matrix[4]},set:function(P){this._matrix[4]=P}}),Object.defineProperty(Ki.prototype,"f",{get:function(){return this._matrix[5]},set:function(P){this._matrix[5]=P}}),Object.defineProperty(Ki.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ki.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ki.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ki.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ki.prototype.join=function(P){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(_r).join(P)},Ki.prototype.multiply=function(P){var $e=P.sx*this.sx+P.shy*this.shx,Dt=P.sx*this.shy+P.shy*this.sy,Jt=P.shx*this.sx+P.sy*this.shx,vr=P.shx*this.shy+P.sy*this.sy,Xr=P.tx*this.sx+P.ty*this.shx+this.tx,Fn=P.tx*this.shy+P.ty*this.sy+this.ty;return new Ki($e,Dt,Jt,vr,Xr,Fn)},Ki.prototype.decompose=function(){var P=this.sx,$e=this.shy,Dt=this.shx,Jt=this.sy,vr=this.tx,Xr=this.ty,Fn=Math.sqrt(P*P+$e*$e),Di=(P/=Fn)*Dt+($e/=Fn)*Jt;Dt-=P*Di,Jt-=$e*Di;var qi=Math.sqrt(Dt*Dt+Jt*Jt);return Di/=qi,P*(Jt/=qi)<$e*(Dt/=qi)&&(P=-P,$e=-$e,Di=-Di,Fn=-Fn),{scale:new Ki(Fn,0,0,qi,0,0),translate:new Ki(1,0,0,1,vr,Xr),rotate:new Ki(P,$e,-$e,P,0,0),skew:new Ki(1,0,Di,1,0,0)}},Ki.prototype.toString=function(P){return this.join(" ")},Ki.prototype.inversed=function(){var P=this.sx,$e=this.shy,Dt=this.shx,Jt=this.sy,vr=this.tx,Xr=this.ty,Fn=1/(P*Jt-$e*Dt),Di=Jt*Fn,qi=-$e*Fn,Ma=-Dt*Fn,xa=P*Fn;return new Ki(Di,qi,Ma,xa,-Di*vr-Ma*Xr,-qi*vr-xa*Xr)},Ki.prototype.applyToPoint=function(P){var $e=P.x*this.sx+P.y*this.shx+this.tx,Dt=P.x*this.shy+P.y*this.sy+this.ty;return new Au($e,Dt)},Ki.prototype.applyToRectangle=function(P){var $e=this.applyToPoint(P),Dt=this.applyToPoint(new Au(P.x+P.w,P.y+P.h));return new uu($e.x,$e.y,Dt.x-$e.x,Dt.y-$e.y)},Ki.prototype.clone=function(){var P=this.sx,$e=this.shy,Dt=this.shx,Jt=this.sy,vr=this.tx,Xr=this.ty;return new Ki(P,$e,Dt,Jt,vr,Xr)},we.Matrix=Ki;var ro=we.matrixMult=function(P,$e){return $e.multiply(P)},as=new Ki(1,0,0,1,0,0);we.unitMatrix=we.identityMatrix=as;var Cn=function(P,$e){if(!Vn[P]){var Dt=($e instanceof Ya?"Sh":"P")+(Object.keys(ma).length+1).toString(10);$e.id=Dt,Vn[P]=Dt,ma[Dt]=$e,Xn.publish("addPattern",$e)}};we.ShadingPattern=Ya,we.TilingPattern=Ca,we.addShadingPattern=function(P,$e){return Gt("addShadingPattern()"),Cn(P,$e),this},we.beginTilingPattern=function(P){Gt("beginTilingPattern()"),vc(P.boundingBox[0],P.boundingBox[1],P.boundingBox[2]-P.boundingBox[0],P.boundingBox[3]-P.boundingBox[1],P.matrix)},we.endTilingPattern=function(P,$e){Gt("endTilingPattern()"),$e.stream=sr[Ze].join(`
`),Cn(P,$e),Xn.publish("endTilingPattern",$e),Do.pop().restore()};var fo=we.__private__.newObject=function(){var P=Ho();return Yi(P,!0),P},Ho=we.__private__.newObjectDeferred=function(){return yt++,It[yt]=function(){return Tt},yt},Yi=function(P,$e){return $e=typeof $e=="boolean"&&$e,It[P]=Tt,$e&&St(P+" 0 obj"),P},on=we.__private__.newAdditionalObject=function(){var P={objId:Ho(),content:""};return pr.push(P),P},ga=Ho(),ho=Ho(),Wa=we.__private__.decodeColorString=function(P){var $e=P.split(" ");if($e.length!==2||$e[1]!=="g"&&$e[1]!=="G")$e.length===5&&($e[4]==="k"||$e[4]==="K")&&($e=[(1-$e[0])*(1-$e[3]),(1-$e[1])*(1-$e[3]),(1-$e[2])*(1-$e[3]),"r"]);else{var Dt=parseFloat($e[0]);$e=[Dt,Dt,Dt,"r"]}for(var Jt="#",vr=0;vr<3;vr++)Jt+=("0"+Math.floor(255*parseFloat($e[vr])).toString(16)).slice(-2);return Jt},Li=we.__private__.encodeColorString=function(P){var $e;typeof P=="string"&&(P={ch1:P});var Dt=P.ch1,Jt=P.ch2,vr=P.ch3,Xr=P.ch4,Fn=P.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Dt=="string"&&Dt.charAt(0)!=="#"){var Di=new si(Dt);if(Di.ok)Dt=Di.toHex();else if(!/^\d*\.?\d*$/.test(Dt))throw new Error('Invalid color "'+Dt+'" passed to jsPDF.encodeColorString.')}if(typeof Dt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Dt)&&(Dt="#"+Dt[1]+Dt[1]+Dt[2]+Dt[2]+Dt[3]+Dt[3]),typeof Dt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Dt)){var qi=parseInt(Dt.substr(1),16);Dt=qi>>16&255,Jt=qi>>8&255,vr=255&qi}if(Jt===void 0||Xr===void 0&&Dt===Jt&&Jt===vr)if(typeof Dt=="string")$e=Dt+" "+Fn[0];else switch(P.precision){case 2:$e=Vr(Dt/255)+" "+Fn[0];break;case 3:default:$e=bt(Dt/255)+" "+Fn[0]}else if(Xr===void 0||(0,ge.Z)(Xr)==="object"){if(Xr&&!isNaN(Xr.a)&&Xr.a===0)return $e=["1.","1.","1.",Fn[1]].join(" ");if(typeof Dt=="string")$e=[Dt,Jt,vr,Fn[1]].join(" ");else switch(P.precision){case 2:$e=[Vr(Dt/255),Vr(Jt/255),Vr(vr/255),Fn[1]].join(" ");break;default:case 3:$e=[bt(Dt/255),bt(Jt/255),bt(vr/255),Fn[1]].join(" ")}}else if(typeof Dt=="string")$e=[Dt,Jt,vr,Xr,Fn[2]].join(" ");else switch(P.precision){case 2:$e=[Vr(Dt),Vr(Jt),Vr(vr),Vr(Xr),Fn[2]].join(" ");break;case 3:default:$e=[bt(Dt),bt(Jt),bt(vr),bt(Xr),Fn[2]].join(" ")}return $e},Po=we.__private__.getFilters=function(){return O},No=we.__private__.putStream=function(P){var $e=(P=P||{}).data||"",Dt=P.filters||Po(),Jt=P.alreadyAppliedFilters||[],vr=P.addLength1||!1,Xr=$e.length,Fn=P.objectId,Di=function(hl){return hl};if(We!==null&&Fn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");We!==null&&(Di=Os.encryptor(Fn,0));var qi={};Dt===!0&&(Dt=["FlateEncode"]);var Ma=P.additionalKeyValues||[],xa=(qi=mi.API.processDataByFilters!==void 0?mi.API.processDataByFilters($e,Dt):{data:$e,reverseChain:[]}).reverseChain+(Array.isArray(Jt)?Jt.join(" "):Jt.toString());if(qi.data.length!==0&&(Ma.push({key:"Length",value:qi.data.length}),vr===!0&&Ma.push({key:"Length1",value:Xr})),xa.length!=0)if(xa.split("/").length-1==1)Ma.push({key:"Filter",value:xa});else{Ma.push({key:"Filter",value:"["+xa+"]"});for(var zi=0;zi<Ma.length;zi+=1)if(Ma[zi].key==="DecodeParms"){for(var vs=[],xs=0;xs<qi.reverseChain.split("/").length-1;xs+=1)vs.push("null");vs.push(Ma[zi].value),Ma[zi].value="["+vs.join(" ")+"]"}}St("<<");for(var zo=0;zo<Ma.length;zo++)St("/"+Ma[zo].key+" "+Ma[zo].value);St(">>"),qi.data.length!==0&&(St("stream"),St(Di(qi.data)),St("endstream"))},os=we.__private__.putPage=function(P){var $e=P.number,Dt=P.data,Jt=P.objId,vr=P.contentsObjId;Yi(Jt,!0),St("<</Type /Page"),St("/Parent "+P.rootDictionaryObjId+" 0 R"),St("/Resources "+P.resourceDictionaryObjId+" 0 R"),St("/MediaBox ["+parseFloat(_r(P.mediaBox.bottomLeftX))+" "+parseFloat(_r(P.mediaBox.bottomLeftY))+" "+_r(P.mediaBox.topRightX)+" "+_r(P.mediaBox.topRightY)+"]"),P.cropBox!==null&&St("/CropBox ["+_r(P.cropBox.bottomLeftX)+" "+_r(P.cropBox.bottomLeftY)+" "+_r(P.cropBox.topRightX)+" "+_r(P.cropBox.topRightY)+"]"),P.bleedBox!==null&&St("/BleedBox ["+_r(P.bleedBox.bottomLeftX)+" "+_r(P.bleedBox.bottomLeftY)+" "+_r(P.bleedBox.topRightX)+" "+_r(P.bleedBox.topRightY)+"]"),P.trimBox!==null&&St("/TrimBox ["+_r(P.trimBox.bottomLeftX)+" "+_r(P.trimBox.bottomLeftY)+" "+_r(P.trimBox.topRightX)+" "+_r(P.trimBox.topRightY)+"]"),P.artBox!==null&&St("/ArtBox ["+_r(P.artBox.bottomLeftX)+" "+_r(P.artBox.bottomLeftY)+" "+_r(P.artBox.topRightX)+" "+_r(P.artBox.topRightY)+"]"),typeof P.userUnit=="number"&&P.userUnit!==1&&St("/UserUnit "+P.userUnit),Xn.publish("putPage",{objId:Jt,pageContext:gn[$e],pageNumber:$e,page:Dt}),St("/Contents "+vr+" 0 R"),St(">>"),St("endobj");var Xr=Dt.join(`
`);return ar===Pt.ADVANCED&&(Xr+=`
Q`),Yi(vr,!0),No({data:Xr,filters:Po(),objectId:vr}),St("endobj"),Jt},fs=we.__private__.putPages=function(){var P,$e,Dt=[];for(P=1;P<=Zi;P++)gn[P].objId=Ho(),gn[P].contentsObjId=Ho();for(P=1;P<=Zi;P++)Dt.push(os({number:P,data:sr[P],objId:gn[P].objId,contentsObjId:gn[P].contentsObjId,mediaBox:gn[P].mediaBox,cropBox:gn[P].cropBox,bleedBox:gn[P].bleedBox,trimBox:gn[P].trimBox,artBox:gn[P].artBox,userUnit:gn[P].userUnit,rootDictionaryObjId:ga,resourceDictionaryObjId:ho}));Yi(ga,!0),St("<</Type /Pages");var Jt="/Kids [";for($e=0;$e<Zi;$e++)Jt+=Dt[$e]+" 0 R ";St(Jt+"]"),St("/Count "+Zi),St(">>"),St("endobj"),Xn.publish("postPutPages")},ss=function(P){Xn.publish("putFont",{font:P,out:St,newObject:fo,putStream:No}),P.isAlreadyPutted!==!0&&(P.objectNumber=fo(),St("<<"),St("/Type /Font"),St("/BaseFont /"+Hi(P.postScriptName)),St("/Subtype /Type1"),typeof P.encoding=="string"&&St("/Encoding /"+P.encoding),St("/FirstChar 32"),St("/LastChar 255"),St(">>"),St("endobj"))},hs=function(){for(var P in Ti)Ti.hasOwnProperty(P)&&(Ve===!1||Ve===!0&&ct.hasOwnProperty(P))&&ss(Ti[P])},Bl=function(P){P.objectNumber=fo();var $e=[];$e.push({key:"Type",value:"/XObject"}),$e.push({key:"Subtype",value:"/Form"}),$e.push({key:"BBox",value:"["+[_r(P.x),_r(P.y),_r(P.x+P.width),_r(P.y+P.height)].join(" ")+"]"}),$e.push({key:"Matrix",value:"["+P.matrix.toString()+"]"});var Dt=P.pages[1].join(`
`);No({data:Dt,additionalKeyValues:$e,objectId:P.objectNumber}),St("endobj")},qo=function(){for(var P in ji)ji.hasOwnProperty(P)&&Bl(ji[P])},Ds=function(P,$e){var Dt,Jt=[],vr=1/($e-1);for(Dt=0;Dt<1;Dt+=vr)Jt.push(Dt);if(Jt.push(1),P[0].offset!=0){var Xr={offset:0,color:P[0].color};P.unshift(Xr)}if(P[P.length-1].offset!=1){var Fn={offset:1,color:P[P.length-1].color};P.push(Fn)}for(var Di="",qi=0,Ma=0;Ma<Jt.length;Ma++){for(Dt=Jt[Ma];Dt>P[qi+1].offset;)qi++;var xa=P[qi].offset,zi=(Dt-xa)/(P[qi+1].offset-xa),vs=P[qi].color,xs=P[qi+1].color;Di+=mt(Math.round((1-zi)*vs[0]+zi*xs[0]).toString(16))+mt(Math.round((1-zi)*vs[1]+zi*xs[1]).toString(16))+mt(Math.round((1-zi)*vs[2]+zi*xs[2]).toString(16))}return Di.trim()},ps=function(P,$e){$e||($e=21);var Dt=fo(),Jt=Ds(P.colors,$e),vr=[];vr.push({key:"FunctionType",value:"0"}),vr.push({key:"Domain",value:"[0.0 1.0]"}),vr.push({key:"Size",value:"["+$e+"]"}),vr.push({key:"BitsPerSample",value:"8"}),vr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),No({data:Jt,additionalKeyValues:vr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Dt}),St("endobj"),P.objectNumber=fo(),St("<< /ShadingType "+P.type),St("/ColorSpace /DeviceRGB");var Xr="/Coords ["+_r(parseFloat(P.coords[0]))+" "+_r(parseFloat(P.coords[1]))+" ";P.type===2?Xr+=_r(parseFloat(P.coords[2]))+" "+_r(parseFloat(P.coords[3])):Xr+=_r(parseFloat(P.coords[2]))+" "+_r(parseFloat(P.coords[3]))+" "+_r(parseFloat(P.coords[4]))+" "+_r(parseFloat(P.coords[5])),St(Xr+="]"),P.matrix&&St("/Matrix ["+P.matrix.toString()+"]"),St("/Function "+Dt+" 0 R"),St("/Extend [true true]"),St(">>"),St("endobj")},jo=function(P,$e){var Dt=Ho(),Jt=fo();$e.push({resourcesOid:Dt,objectOid:Jt}),P.objectNumber=Jt;var vr=[];vr.push({key:"Type",value:"/Pattern"}),vr.push({key:"PatternType",value:"1"}),vr.push({key:"PaintType",value:"1"}),vr.push({key:"TilingType",value:"1"}),vr.push({key:"BBox",value:"["+P.boundingBox.map(_r).join(" ")+"]"}),vr.push({key:"XStep",value:_r(P.xStep)}),vr.push({key:"YStep",value:_r(P.yStep)}),vr.push({key:"Resources",value:Dt+" 0 R"}),P.matrix&&vr.push({key:"Matrix",value:"["+P.matrix.toString()+"]"}),No({data:P.stream,additionalKeyValues:vr,objectId:P.objectNumber}),St("endobj")},wo=function(P){var $e;for($e in ma)ma.hasOwnProperty($e)&&(ma[$e]instanceof Ya?ps(ma[$e]):ma[$e]instanceof Ca&&jo(ma[$e],P))},Hs=function(P){for(var $e in P.objectNumber=fo(),St("<<"),P)switch($e){case"opacity":St("/ca "+Vr(P[$e]));break;case"stroke-opacity":St("/CA "+Vr(P[$e]))}St(">>"),St("endobj")},oc=function(){var P;for(P in Gn)Gn.hasOwnProperty(P)&&Hs(Gn[P])},Sl=function(){for(var P in St("/XObject <<"),ji)ji.hasOwnProperty(P)&&ji[P].objectNumber>=0&&St("/"+P+" "+ji[P].objectNumber+" 0 R");Xn.publish("putXobjectDict"),St(">>")},Ol=function(){Os.oid=fo(),St("<<"),St("/Filter /Standard"),St("/V "+Os.v),St("/R "+Os.r),St("/U <"+Os.toHexString(Os.U)+">"),St("/O <"+Os.toHexString(Os.O)+">"),St("/P "+Os.P),St(">>"),St("endobj")},nA=function(){for(var P in St("/Font <<"),Ti)Ti.hasOwnProperty(P)&&(Ve===!1||Ve===!0&&ct.hasOwnProperty(P))&&St("/"+P+" "+Ti[P].objectNumber+" 0 R");St(">>")},HA=function(){if(Object.keys(ma).length>0){for(var P in St("/Shading <<"),ma)ma.hasOwnProperty(P)&&ma[P]instanceof Ya&&ma[P].objectNumber>=0&&St("/"+P+" "+ma[P].objectNumber+" 0 R");Xn.publish("putShadingPatternDict"),St(">>")}},pa=function(P){if(Object.keys(ma).length>0){for(var $e in St("/Pattern <<"),ma)ma.hasOwnProperty($e)&&ma[$e]instanceof we.TilingPattern&&ma[$e].objectNumber>=0&&ma[$e].objectNumber<P&&St("/"+$e+" "+ma[$e].objectNumber+" 0 R");Xn.publish("putTilingPatternDict"),St(">>")}},oo=function(){if(Object.keys(Gn).length>0){var P;for(P in St("/ExtGState <<"),Gn)Gn.hasOwnProperty(P)&&Gn[P].objectNumber>=0&&St("/"+P+" "+Gn[P].objectNumber+" 0 R");Xn.publish("putGStateDict"),St(">>")}},Ka=function(P){Yi(P.resourcesOid,!0),St("<<"),St("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),nA(),HA(),pa(P.objectOid),oo(),Sl(),St(">>"),St("endobj")},xo=function(){var P=[];hs(),oc(),qo(),wo(P),Xn.publish("putResources"),P.forEach(Ka),Ka({resourcesOid:ho,objectOid:Number.MAX_SAFE_INTEGER}),Xn.publish("postPutResources")},ms=function(){Xn.publish("putAdditionalObjects");for(var P=0;P<pr.length;P++){var $e=pr[P];Yi($e.objId,!0),St($e.content),St("endobj")}Xn.publish("postPutAdditionalObjects")},Ps=function(P){na[P.fontName]=na[P.fontName]||{},na[P.fontName][P.fontStyle]=P.id},gs=function(P,$e,Dt,Jt,vr){var Xr={id:"F"+(Object.keys(Ti).length+1).toString(10),postScriptName:P,fontName:$e,fontStyle:Dt,encoding:Jt,isStandardFont:vr||!1,metadata:{}};return Xn.publish("addFont",{font:Xr,instance:this}),Ti[Xr.id]=Xr,Ps(Xr),Xr.id},Gl=function(P){for(var $e=0,Dt=wr.length;$e<Dt;$e++){var Jt=gs.call(this,P[$e][0],P[$e][1],P[$e][2],wr[$e][3],!0);Ve===!1&&(ct[Jt]=!0);var vr=P[$e][0].split("-");Ps({id:Jt,fontName:vr[0],fontStyle:vr[1]||""})}Xn.publish("addFonts",{fonts:Ti,dictionary:na})},El=function(P){return P.foo=function(){try{return P.apply(this,arguments)}catch(Jt){var $e=Jt.stack||"";~$e.indexOf(" at ")&&($e=$e.split(" at ")[1]);var Dt="Error in function "+$e.split(`
`)[0].split("<")[0]+": "+Jt.message;if(!ln.console)throw new Error(Dt);ln.console.error(Dt,Jt),ln.alert&&alert(Dt)}},P.foo.bar=P,P.foo},zc=function(P,$e){var Dt,Jt,vr,Xr,Fn,Di,qi,Ma,xa;if(vr=($e=$e||{}).sourceEncoding||"Unicode",Fn=$e.outputEncoding,($e.autoencode||Fn)&&Ti[xi].metadata&&Ti[xi].metadata[vr]&&Ti[xi].metadata[vr].encoding&&(Xr=Ti[xi].metadata[vr].encoding,!Fn&&Ti[xi].encoding&&(Fn=Ti[xi].encoding),!Fn&&Xr.codePages&&(Fn=Xr.codePages[0]),typeof Fn=="string"&&(Fn=Xr[Fn]),Fn)){for(qi=!1,Di=[],Dt=0,Jt=P.length;Dt<Jt;Dt++)(Ma=Fn[P.charCodeAt(Dt)])?Di.push(String.fromCharCode(Ma)):Di.push(P[Dt]),Di[Dt].charCodeAt(0)>>8&&(qi=!0);P=Di.join("")}for(Dt=P.length;qi===void 0&&Dt!==0;)P.charCodeAt(Dt-1)>>8&&(qi=!0),Dt--;if(!qi)return P;for(Di=$e.noBOM?[]:[254,255],Dt=0,Jt=P.length;Dt<Jt;Dt++){if((xa=(Ma=P.charCodeAt(Dt))>>8)>>8)throw new Error("Character at position "+Dt+" of string '"+P+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Di.push(xa),Di.push(Ma-(xa<<8))}return String.fromCharCode.apply(void 0,Di)},Ns=we.__private__.pdfEscape=we.pdfEscape=function(P,$e){return zc(P,$e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wa=we.__private__.beginPage=function(P){sr[++Zi]=[],gn[Zi]={objId:0,contentsObjId:0,userUnit:Number(V),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(P[0]),topRightY:Number(P[1])}},Xl(Zi),tr(sr[Ze])},So=function(P,$e){var Dt,Jt,vr;switch(l=$e||l,typeof P=="string"&&(Dt=ht(P.toLowerCase()),Array.isArray(Dt)&&(Jt=Dt[0],vr=Dt[1])),Array.isArray(P)&&(Jt=P[0]*kn,vr=P[1]*kn),isNaN(Jt)&&(Jt=F[0],vr=F[1]),(Jt>14400||vr>14400)&&(Mn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Jt=Math.min(14400,Jt),vr=Math.min(14400,vr)),F=[Jt,vr],l.substr(0,1)){case"l":vr>Jt&&(F=[vr,Jt]);break;case"p":Jt>vr&&(F=[vr,Jt])}wa(F),Rl(Js),St(fl),WA!==0&&St(WA+" J"),SA!==0&&St(SA+" j"),Xn.publish("addPage",{pageNumber:Zi})},Tl=function(P){P>0&&P<=Zi&&(sr.splice(P,1),gn.splice(P,1),Zi--,Ze>Zi&&(Ze=Zi),this.setPage(Ze))},Xl=function(P){P>0&&P<=Zi&&(Ze=P)},js=we.__private__.getNumberOfPages=we.getNumberOfPages=function(){return sr.length-1},xA=function(P,$e,Dt){var Jt,vr=void 0;return Dt=Dt||{},P=P!==void 0?P:Ti[xi].fontName,$e=$e!==void 0?$e:Ti[xi].fontStyle,Jt=P.toLowerCase(),na[Jt]!==void 0&&na[Jt][$e]!==void 0?vr=na[Jt][$e]:na[P]!==void 0&&na[P][$e]!==void 0?vr=na[P][$e]:Dt.disableWarning===!1&&Mn.warn("Unable to look up font label for font '"+P+"', '"+$e+"'. Refer to getFontList() for available fonts."),vr||Dt.noFallback||(vr=na.times[$e])==null&&(vr=na.times.normal),vr},Jl=we.__private__.putInfo=function(){var P=fo(),$e=function(Jt){return Jt};for(var Dt in We!==null&&($e=Os.encryptor(P,0)),St("<<"),St("/Producer ("+Ns($e("jsPDF "+mi.version))+")"),gi)gi.hasOwnProperty(Dt)&&gi[Dt]&&St("/"+Dt.substr(0,1).toUpperCase()+Dt.substr(1)+" ("+Ns($e(gi[Dt]))+")");St("/CreationDate ("+Ns($e(Se))+")"),St(">>"),St("endobj")},iA=we.__private__.putCatalog=function(P){var $e=(P=P||{}).rootDictionaryObjId||ga;switch(fo(),St("<<"),St("/Type /Catalog"),St("/Pages "+$e+" 0 R"),xr||(xr="fullwidth"),xr){case"fullwidth":St("/OpenAction [3 0 R /FitH null]");break;case"fullheight":St("/OpenAction [3 0 R /FitV null]");break;case"fullpage":St("/OpenAction [3 0 R /Fit]");break;case"original":St("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Dt=""+xr;Dt.substr(Dt.length-1)==="%"&&(xr=parseInt(xr)/100),typeof xr=="number"&&St("/OpenAction [3 0 R /XYZ null null "+Vr(xr)+"]")}switch(Bn||(Bn="continuous"),Bn){case"continuous":St("/PageLayout /OneColumn");break;case"single":St("/PageLayout /SinglePage");break;case"two":case"twoleft":St("/PageLayout /TwoColumnLeft");break;case"tworight":St("/PageLayout /TwoColumnRight")}zn&&St("/PageMode /"+zn),Xn.publish("putCatalog"),St(">>"),St("endobj")},jA=we.__private__.putTrailer=function(){St("trailer"),St("<<"),St("/Size "+(yt+1)),St("/Root "+yt+" 0 R"),St("/Info "+(yt-1)+" 0 R"),We!==null&&St("/Encrypt "+Os.oid+" 0 R"),St("/ID [ <"+De+"> <"+De+"> ]"),St(">>")},$c=we.__private__.putHeader=function(){St("%PDF-"+Lt),St("%\xBA\xDF\xAC\xE0")},CA=we.__private__.putXRef=function(){var P="0000000000";St("xref"),St("0 "+(yt+1)),St("0000000000 65535 f ");for(var $e=1;$e<=yt;$e++)typeof It[$e]=="function"?St((P+It[$e]()).slice(-10)+" 00000 n "):It[$e]!==void 0?St((P+It[$e]).slice(-10)+" 00000 n "):St("0000000000 00000 n ")},Ul=we.__private__.buildDocument=function(){hn(),tr(Kt),Xn.publish("buildDocument"),$c(),fs(),ms(),xo(),We!==null&&Ol(),Jl(),iA();var P=Tt;return CA(),jA(),St("startxref"),St(""+P),St("%%EOF"),tr(sr[Ze]),Kt.join(`
`)},sc=we.__private__.getBlob=function(P){return new Blob([zr(P)],{type:"application/pdf"})},un=we.output=we.__private__.output=El(function(P,$e){switch(typeof($e=$e||{})=="string"?$e={filename:$e}:$e.filename=$e.filename||"generated.pdf",P){case void 0:return Ul();case"save":we.save($e.filename);break;case"arraybuffer":return zr(Ul());case"blob":return sc(Ul());case"bloburi":case"bloburl":if(ln.URL!==void 0&&typeof ln.URL.createObjectURL=="function")return ln.URL&&ln.URL.createObjectURL(sc(Ul()))||void 0;Mn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Dt="",Jt=Ul();try{Dt=Pi(Jt)}catch(xs){Dt=Pi(unescape(encodeURIComponent(Jt)))}return"data:application/pdf;filename="+$e.filename+";base64,"+Dt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ln)==="[object Window]"){var vr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Xr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';$e.pdfObjectUrl&&(vr=$e.pdfObjectUrl,Xr="");var Fn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+vr+'"'+Xr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify($e)+");<\/script></body></html>",Di=ln.open();return Di!==null&&Di.document.write(Fn),Di}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ln)==="[object Window]"){var qi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+($e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+$e.filename+'" width="500px" height="400px" /></body></html>',Ma=ln.open();if(Ma!==null){Ma.document.write(qi);var xa=this;Ma.document.documentElement.querySelector("#pdfViewer").onload=function(){Ma.document.title=$e.filename,Ma.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(xa.output("bloburl"))}}return Ma}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ln)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var zi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",$e)+'"></iframe></body></html>',vs=ln.open();if(vs!==null&&(vs.document.write(zi),vs.document.title=$e.filename),vs||typeof safari=="undefined")return vs;break;case"datauri":case"dataurl":return ln.document.location.href=this.output("datauristring",$e);default:return null}}),Zc=function(P){return Array.isArray(aa)===!0&&aa.indexOf(P)>-1};switch(v){case"pt":kn=1;break;case"mm":kn=72/25.4;break;case"cm":kn=72/2.54;break;case"in":kn=72;break;case"px":kn=Zc("px_scaling")==1?.75:96/72;break;case"pc":case"em":kn=12;break;case"ex":kn=6;break;default:if(typeof v!="number")throw new Error("Invalid unit: "+v);kn=v}var Os=null;Et(),He();var BA=function(P){return We!==null?Os.encryptor(P,0):function($e){return $e}},Vc=we.__private__.getPageInfo=we.getPageInfo=function(P){if(isNaN(P)||P%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:gn[P].objId,pageNumber:P,pageContext:gn[P]}},sa=we.__private__.getPageInfoByObjId=function(P){if(isNaN(P)||P%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var $e in gn)if(gn[$e].objId===P)break;return Vc($e)},zA=we.__private__.getCurrentPageInfo=we.getCurrentPageInfo=function(){return{objId:gn[Ze].objId,pageNumber:Ze,pageContext:gn[Ze]}};we.addPage=function(){return So.apply(this,arguments),this},we.setPage=function(){return Xl.apply(this,arguments),tr.call(this,sr[Ze]),this},we.insertPage=function(P){return this.addPage(),this.movePage(Ze,P),this},we.movePage=function(P,$e){var Dt,Jt;if(P>$e){Dt=sr[P],Jt=gn[P];for(var vr=P;vr>$e;vr--)sr[vr]=sr[vr-1],gn[vr]=gn[vr-1];sr[$e]=Dt,gn[$e]=Jt,this.setPage($e)}else if(P<$e){Dt=sr[P],Jt=gn[P];for(var Xr=P;Xr<$e;Xr++)sr[Xr]=sr[Xr+1],gn[Xr]=gn[Xr+1];sr[$e]=Dt,gn[$e]=Jt,this.setPage($e)}return this},we.deletePage=function(){return Tl.apply(this,arguments),this},we.__private__.text=we.text=function(P,$e,Dt,Jt,vr){var Xr,Fn,Di,qi,Ma,xa,zi,vs,xs,zo=(Jt=Jt||{}).scope||this;if(typeof P=="number"&&typeof $e=="number"&&(typeof Dt=="string"||Array.isArray(Dt))){var hl=Dt;Dt=$e,$e=P,P=hl}if(arguments[3]instanceof Ki?(Gt("The transform parameter of text() with a Matrix value"),xs=vr):(Di=arguments[4],qi=arguments[5],(0,ge.Z)(zi=arguments[3])==="object"&&zi!==null||(typeof Di=="string"&&(qi=Di,Di=null),typeof zi=="string"&&(qi=zi,zi=null),typeof zi=="number"&&(Di=zi,zi=null),Jt={flags:zi,angle:Di,align:qi})),isNaN($e)||isNaN(Dt)||P==null)throw new Error("Invalid arguments passed to jsPDF.text");if(P.length===0)return zo;var Cs="",Dc=!1,pl=typeof Jt.lineHeightFactor=="number"?Jt.lineHeightFactor:va,tc=zo.internal.scaleFactor;function oA($o){return $o=$o.split(" ").join(Array(Jt.TabLen||9).join(" ")),Ns($o,zi)}function du($o){for(var is,Ss=$o.concat(),oa=[],di=Ss.length;di--;)typeof(is=Ss.shift())=="string"?oa.push(is):Array.isArray($o)&&(is.length===1||is[1]===void 0&&is[2]===void 0)?oa.push(is[0]):oa.push([is[0],is[1],is[2]]);return oa}function fu($o,is){var Ss;if(typeof $o=="string")Ss=is($o)[0];else if(Array.isArray($o)){for(var oa,di,uc=$o.concat(),uA=[],Fs=uc.length;Fs--;)typeof(oa=uc.shift())=="string"?uA.push(is(oa)[0]):Array.isArray(oa)&&typeof oa[0]=="string"&&(di=is(oa[0],oa[1],oa[2]),uA.push([di[0],di[1],di[2]]));Ss=uA}return Ss}var sA=!1,YA=!0;if(typeof P=="string")sA=!0;else if(Array.isArray(P)){var Nu=P.concat();Fn=[];for(var hu,_s=Nu.length;_s--;)(typeof(hu=Nu.shift())!="string"||Array.isArray(hu)&&typeof hu[0]!="string")&&(YA=!1);sA=YA}if(sA===!1)throw new Error('Type of text must be string or Array. "'+P+'" is not recognized.');typeof P=="string"&&(P=P.match(/[\r?\n]/)?P.split(/\r\n|\r|\n/g):[P]);var qA=Ir/zo.internal.scaleFactor,ns=qA*(pl-1);switch(Jt.baseline){case"bottom":Dt-=ns;break;case"top":Dt+=qA-ns;break;case"hanging":Dt+=qA-2*ns;break;case"middle":Dt+=qA/2-ns}if((xa=Jt.maxWidth||0)>0&&(typeof P=="string"?P=zo.splitTextToSize(P,xa):Object.prototype.toString.call(P)==="[object Array]"&&(P=P.reduce(function($o,is){return $o.concat(zo.splitTextToSize(is,xa))},[]))),Xr={text:P,x:$e,y:Dt,options:Jt,mutex:{pdfEscape:Ns,activeFontKey:xi,fonts:Ti,activeFontSize:Ir}},Xn.publish("preProcessText",Xr),P=Xr.text,Di=(Jt=Xr.options).angle,!(xs instanceof Ki)&&Di&&typeof Di=="number"){Di*=Math.PI/180,Jt.rotationDirection===0&&(Di=-Di),ar===Pt.ADVANCED&&(Di=-Di);var yc=Math.cos(Di),Xc=Math.sin(Di);xs=new Ki(yc,Xc,-Xc,yc,0,0)}else Di&&Di instanceof Ki&&(xs=Di);ar!==Pt.ADVANCED||xs||(xs=as),(Ma=Jt.charSpace||cu)!==void 0&&(Cs+=_r(Bt(Ma))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(vs=Jt.horizontalScale)!==void 0&&(Cs+=_r(100*vs)+` Tz
`),Jt.lang;var Ts=-1,ml=Jt.renderingMode!==void 0?Jt.renderingMode:Jt.stroke,Ql=zo.internal.getCurrentPageInfo().pageContext;switch(ml){case 0:case!1:case"fill":Ts=0;break;case 1:case!0:case"stroke":Ts=1;break;case 2:case"fillThenStroke":Ts=2;break;case 3:case"invisible":Ts=3;break;case 4:case"fillAndAddForClipping":Ts=4;break;case 5:case"strokeAndAddPathForClipping":Ts=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ts=6;break;case 7:case"addToPathForClipping":Ts=7}var gl=Ql.usedRenderingMode!==void 0?Ql.usedRenderingMode:-1;Ts!==-1?Cs+=Ts+` Tr
`:gl!==-1&&(Cs+=`0 Tr
`),Ts!==-1&&(Ql.usedRenderingMode=Ts),qi=Jt.align||"left";var Us,Kl=Ir*pl,bc=zo.internal.pageSize.getWidth(),lA=Ti[xi];Ma=Jt.charSpace||cu,xa=Jt.maxWidth||0,zi=Object.assign({autoencode:!0,noBOM:!0},Jt.flags);var Hl=[],Pc=function($o){return zo.getStringUnitWidth($o,{font:lA,charSpace:Ma,fontSize:Ir,doKerning:!1})*Ir/tc};if(Object.prototype.toString.call(P)==="[object Array]"){var il;Fn=du(P),qi!=="left"&&(Us=Fn.map(Pc));var Ys,cA=0;if(qi==="right"){$e-=Us[0],P=[],_s=Fn.length;for(var Jc=0;Jc<_s;Jc++)Jc===0?(Ys=ql($e),il=ec(Dt)):(Ys=Bt(cA-Us[Jc]),il=-Kl),P.push([Fn[Jc],Ys,il]),cA=Us[Jc]}else if(qi==="center"){$e-=Us[0]/2,P=[],_s=Fn.length;for(var Yc=0;Yc<_s;Yc++)Yc===0?(Ys=ql($e),il=ec(Dt)):(Ys=Bt((cA-Us[Yc])/2),il=-Kl),P.push([Fn[Yc],Ys,il]),cA=Us[Yc]}else if(qi==="left"){P=[],_s=Fn.length;for(var pu=0;pu<_s;pu++)P.push(Fn[pu])}else if(qi==="justify"&&lA.encoding==="Identity-H"){P=[],_s=Fn.length,xa=xa!==0?xa:bc;for(var qc=0,Bs=0;Bs<_s;Bs++)if(il=Bs===0?ec(Dt):-Kl,Ys=Bs===0?ql($e):qc,Bs<_s-1){var Ou=Bt((xa-Us[Bs])/(Fn[Bs].split(" ").length-1)),jl=Fn[Bs].split(" ");P.push([jl[0]+" ",Ys,il]),qc=0;for(var wc=1;wc<jl.length;wc++){var mu=(Pc(jl[wc-1]+" "+jl[wc])-Pc(jl[wc]))*tc+Ou;wc==jl.length-1?P.push([jl[wc],mu,0]):P.push([jl[wc]+" ",mu,0]),qc-=mu}}else P.push([Fn[Bs],Ys,il]);P.push(["",qc,0])}else{if(qi!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(P=[],_s=Fn.length,xa=xa!==0?xa:bc,Bs=0;Bs<_s;Bs++)il=Bs===0?ec(Dt):-Kl,Ys=Bs===0?ql($e):0,Bs<_s-1?Hl.push(_r(Bt((xa-Us[Bs])/(Fn[Bs].split(" ").length-1)))):Hl.push(0),P.push([Fn[Bs],Ys,il])}}var ld=typeof Jt.R2L=="boolean"?Jt.R2L:fn;ld===!0&&(P=fu(P,function($o,is,Ss){return[$o.split("").reverse().join(""),is,Ss]})),Xr={text:P,x:$e,y:Dt,options:Jt,mutex:{pdfEscape:Ns,activeFontKey:xi,fonts:Ti,activeFontSize:Ir}},Xn.publish("postProcessText",Xr),P=Xr.text,Dc=Xr.mutex.isHex||!1;var eu=Ti[xi].encoding;eu!=="WinAnsiEncoding"&&eu!=="StandardEncoding"||(P=fu(P,function($o,is,Ss){return[oA($o),is,Ss]})),Fn=du(P),P=[];for(var xc,Cc,rc,zl=0,_A=1,FA=Array.isArray(Fn[0])?_A:zl,AA="",Tu=function($o,is,Ss){var oa="";return Ss instanceof Ki?(Ss=typeof Jt.angle=="number"?ro(Ss,new Ki(1,0,0,1,$o,is)):ro(new Ki(1,0,0,1,$o,is),Ss),ar===Pt.ADVANCED&&(Ss=ro(new Ki(1,0,0,-1,0,0),Ss)),oa=Ss.join(" ")+` Tm
`):oa=_r($o)+" "+_r(is)+` Td
`,oa},Bc=0;Bc<Fn.length;Bc++){switch(AA="",FA){case _A:rc=(Dc?"<":"(")+Fn[Bc][0]+(Dc?">":")"),xc=parseFloat(Fn[Bc][1]),Cc=parseFloat(Fn[Bc][2]);break;case zl:rc=(Dc?"<":"(")+Fn[Bc]+(Dc?">":")"),xc=ql($e),Cc=ec(Dt)}Hl!==void 0&&Hl[Bc]!==void 0&&(AA=Hl[Bc]+` Tw
`),Bc===0?P.push(AA+Tu(xc,Cc,xs)+rc):FA===zl?P.push(AA+rc):FA===_A&&P.push(AA+Tu(xc,Cc,xs)+rc)}P=FA===zl?P.join(` Tj
T* `):P.join(` Tj
`),P+=` Tj
`;var Ac=`BT
/`;return Ac+=xi+" "+Ir+` Tf
`,Ac+=_r(Ir*pl)+` TL
`,Ac+=gc+`
`,Ac+=Cs,Ac+=P,St(Ac+="ET"),ct[xi]=!0,zo};var $A=we.__private__.clip=we.clip=function(P){return St(P==="evenodd"?"W*":"W"),this};we.clipEvenOdd=function(){return $A("evenodd")},we.__private__.discardPath=we.discardPath=function(){return St("n"),this};var Eo=we.__private__.isValidStyle=function(P){var $e=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(P)!==-1&&($e=!0),$e};we.__private__.setDefaultPathOperation=we.setDefaultPathOperation=function(P){return Eo(P)&&(_e=P),this};var ZA=we.__private__.getStyle=we.getStyle=function(P){var $e=_e;switch(P){case"D":case"S":$e="S";break;case"F":$e="f";break;case"FD":case"DF":$e="B";break;case"f":case"f*":case"B":case"B*":$e=P}return $e},aA=we.close=function(){return St("h"),this};we.stroke=function(){return St("S"),this},we.fill=function(P){return lc("f",P),this},we.fillEvenOdd=function(P){return lc("f*",P),this},we.fillStroke=function(P){return lc("B",P),this},we.fillStrokeEvenOdd=function(P){return lc("B*",P),this};var lc=function(P,$e){(0,ge.Z)($e)==="object"?cc($e,P):St(P)},Wc=function(P){P===null||ar===Pt.ADVANCED&&P===void 0||(P=ZA(P),St(P))};function Yl(P,$e,Dt,Jt,vr){var Xr=new Ca($e||this.boundingBox,Dt||this.xStep,Jt||this.yStep,this.gState,vr||this.matrix);Xr.stream=this.stream;var Fn=P+"$$"+this.cloneIndex+++"$$";return Cn(Fn,Xr),Xr}var cc=function(P,$e){var Dt=Vn[P.key],Jt=ma[Dt];if(Jt instanceof Ya)St("q"),St(Co($e)),Jt.gState&&we.setGState(Jt.gState),St(P.matrix.toString()+" cm"),St("/"+Dt+" sh"),St("Q");else if(Jt instanceof Ca){var vr=new Ki(1,0,0,-1,0,kc());P.matrix&&(vr=vr.multiply(P.matrix||as),Dt=Yl.call(Jt,P.key,P.boundingBox,P.xStep,P.yStep,vr).id),St("q"),St("/Pattern cs"),St("/"+Dt+" scn"),Jt.gState&&we.setGState(Jt.gState),St($e),St("Q")}},Co=function(P){switch(P){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Xs=we.moveTo=function(P,$e){return St(_r(Bt(P))+" "+_r(H($e))+" m"),this},ls=we.lineTo=function(P,$e){return St(_r(Bt(P))+" "+_r(H($e))+" l"),this},ul=we.curveTo=function(P,$e,Dt,Jt,vr,Xr){return St([_r(Bt(P)),_r(H($e)),_r(Bt(Dt)),_r(H(Jt)),_r(Bt(vr)),_r(H(Xr)),"c"].join(" ")),this};we.__private__.line=we.line=function(P,$e,Dt,Jt,vr){if(isNaN(P)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||!Eo(vr))throw new Error("Invalid arguments passed to jsPDF.line");return ar===Pt.COMPAT?this.lines([[Dt-P,Jt-$e]],P,$e,[1,1],vr||"S"):this.lines([[Dt-P,Jt-$e]],P,$e,[1,1]).stroke()},we.__private__.lines=we.lines=function(P,$e,Dt,Jt,vr,Xr){var Fn,Di,qi,Ma,xa,zi,vs,xs,zo,hl,Cs,Dc;if(typeof P=="number"&&(Dc=Dt,Dt=$e,$e=P,P=Dc),Jt=Jt||[1,1],Xr=Xr||!1,isNaN($e)||isNaN(Dt)||!Array.isArray(P)||!Array.isArray(Jt)||!Eo(vr)||typeof Xr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Xs($e,Dt),Fn=Jt[0],Di=Jt[1],Ma=P.length,hl=$e,Cs=Dt,qi=0;qi<Ma;qi++)(xa=P[qi]).length===2?(hl=xa[0]*Fn+hl,Cs=xa[1]*Di+Cs,ls(hl,Cs)):(zi=xa[0]*Fn+hl,vs=xa[1]*Di+Cs,xs=xa[2]*Fn+hl,zo=xa[3]*Di+Cs,hl=xa[4]*Fn+hl,Cs=xa[5]*Di+Cs,ul(zi,vs,xs,zo,hl,Cs));return Xr&&aA(),Wc(vr),this},we.path=function(P){for(var $e=0;$e<P.length;$e++){var Dt=P[$e],Jt=Dt.c;switch(Dt.op){case"m":Xs(Jt[0],Jt[1]);break;case"l":ls(Jt[0],Jt[1]);break;case"c":ul.apply(this,Jt);break;case"h":aA()}}return this},we.__private__.rect=we.rect=function(P,$e,Dt,Jt,vr){if(isNaN(P)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||!Eo(vr))throw new Error("Invalid arguments passed to jsPDF.rect");return ar===Pt.COMPAT&&(Jt=-Jt),St([_r(Bt(P)),_r(H($e)),_r(Bt(Dt)),_r(Bt(Jt)),"re"].join(" ")),Wc(vr),this},we.__private__.triangle=we.triangle=function(P,$e,Dt,Jt,vr,Xr,Fn){if(isNaN(P)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||isNaN(vr)||isNaN(Xr)||!Eo(Fn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Dt-P,Jt-$e],[vr-Dt,Xr-Jt],[P-vr,$e-Xr]],P,$e,[1,1],Fn,!0),this},we.__private__.roundedRect=we.roundedRect=function(P,$e,Dt,Jt,vr,Xr,Fn){if(isNaN(P)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||isNaN(vr)||isNaN(Xr)||!Eo(Fn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Di=4/3*(Math.SQRT2-1);return vr=Math.min(vr,.5*Dt),Xr=Math.min(Xr,.5*Jt),this.lines([[Dt-2*vr,0],[vr*Di,0,vr,Xr-Xr*Di,vr,Xr],[0,Jt-2*Xr],[0,Xr*Di,-vr*Di,Xr,-vr,Xr],[2*vr-Dt,0],[-vr*Di,0,-vr,-Xr*Di,-vr,-Xr],[0,2*Xr-Jt],[0,-Xr*Di,vr*Di,-Xr,vr,-Xr]],P+vr,$e,[1,1],Fn,!0),this},we.__private__.ellipse=we.ellipse=function(P,$e,Dt,Jt,vr){if(isNaN(P)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||!Eo(vr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Xr=4/3*(Math.SQRT2-1)*Dt,Fn=4/3*(Math.SQRT2-1)*Jt;return Xs(P+Dt,$e),ul(P+Dt,$e-Fn,P+Xr,$e-Jt,P,$e-Jt),ul(P-Xr,$e-Jt,P-Dt,$e-Fn,P-Dt,$e),ul(P-Dt,$e+Fn,P-Xr,$e+Jt,P,$e+Jt),ul(P+Xr,$e+Jt,P+Dt,$e+Fn,P+Dt,$e),Wc(vr),this},we.__private__.circle=we.circle=function(P,$e,Dt,Jt){if(isNaN(P)||isNaN($e)||isNaN(Dt)||!Eo(Jt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(P,$e,Dt,Dt,Jt)},we.setFont=function(P,$e,Dt){return Dt&&($e=yn($e,Dt)),xi=xA(P,$e,{disableWarning:!1}),this};var Ea=we.__private__.getFont=we.getFont=function(){return Ti[xA.apply(we,arguments)]};we.__private__.getFontList=we.getFontList=function(){var P,$e,Dt={};for(P in na)if(na.hasOwnProperty(P))for($e in Dt[P]=[],na[P])na[P].hasOwnProperty($e)&&Dt[P].push($e);return Dt},we.addFont=function(P,$e,Dt,Jt,vr){var Xr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Xr.indexOf(arguments[3])!==-1?vr=arguments[3]:arguments[3]&&Xr.indexOf(arguments[3])==-1&&(Dt=yn(Dt,Jt)),vr=vr||"Identity-H",gs.call(this,P,$e,Dt,vr)};var va,Js=c.lineWidth||.200025,_l=we.__private__.getLineWidth=we.getLineWidth=function(){return Js},Rl=we.__private__.setLineWidth=we.setLineWidth=function(P){return Js=P,St(_r(Bt(P))+" w"),this};we.__private__.setLineDash=mi.API.setLineDash=mi.API.setLineDashPattern=function(P,$e){if(P=P||[],$e=$e||0,isNaN($e)||!Array.isArray(P))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return P=P.map(function(Dt){return _r(Bt(Dt))}).join(" "),$e=_r(Bt($e)),St("["+P+"] "+$e+" d"),this};var VA=we.__private__.getLineHeight=we.getLineHeight=function(){return Ir*va};we.__private__.getLineHeight=we.getLineHeight=function(){return Ir*va};var cs=we.__private__.setLineHeightFactor=we.setLineHeightFactor=function(P){return typeof(P=P||1.15)=="number"&&(va=P),this},dl=we.__private__.getLineHeightFactor=we.getLineHeightFactor=function(){return va};cs(c.lineHeight);var ql=we.__private__.getHorizontalCoordinate=function(P){return Bt(P)},ec=we.__private__.getVerticalCoordinate=function(P){return ar===Pt.ADVANCED?P:gn[Ze].mediaBox.topRightY-gn[Ze].mediaBox.bottomLeftY-Bt(P)},lu=we.__private__.getHorizontalCoordinateString=we.getHorizontalCoordinateString=function(P){return _r(ql(P))},ya=we.__private__.getVerticalCoordinateString=we.getVerticalCoordinateString=function(P){return _r(ec(P))},fl=c.strokeColor||"0 G";we.__private__.getStrokeColor=we.getDrawColor=function(){return Wa(fl)},we.__private__.setStrokeColor=we.setDrawColor=function(P,$e,Dt,Jt){return fl=Li({ch1:P,ch2:$e,ch3:Dt,ch4:Jt,pdfColorType:"draw",precision:2}),St(fl),this};var mc=c.fillColor||"0 g";we.__private__.getFillColor=we.getFillColor=function(){return Wa(mc)},we.__private__.setFillColor=we.setFillColor=function(P,$e,Dt,Jt){return mc=Li({ch1:P,ch2:$e,ch3:Dt,ch4:Jt,pdfColorType:"fill",precision:2}),St(mc),this};var gc=c.textColor||"0 g",Zr=we.__private__.getTextColor=we.getTextColor=function(){return Wa(gc)};we.__private__.setTextColor=we.setTextColor=function(P,$e,Dt,Jt){return gc=Li({ch1:P,ch2:$e,ch3:Dt,ch4:Jt,pdfColorType:"text",precision:3}),this};var cu=c.charSpace,Ed=we.__private__.getCharSpace=we.getCharSpace=function(){return parseFloat(cu||0)};we.__private__.setCharSpace=we.setCharSpace=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cu=P,this};var WA=0;we.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},we.__private__.setLineCap=we.setLineCap=function(P){var $e=we.CapJoinStyles[P];if($e===void 0)throw new Error("Line cap style of '"+P+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return WA=$e,St($e+" J"),this};var SA=0;we.__private__.setLineJoin=we.setLineJoin=function(P){var $e=we.CapJoinStyles[P];if($e===void 0)throw new Error("Line join style of '"+P+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return SA=$e,St($e+" j"),this},we.__private__.setLineMiterLimit=we.__private__.setMiterLimit=we.setLineMiterLimit=we.setMiterLimit=function(P){if(P=P||0,isNaN(P))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return St(_r(Bt(P))+" M"),this},we.GState=ka,we.setGState=function(P){(P=typeof P=="string"?Gn[bi[P]]:Lc(null,P)).equals(vi)||(St("/"+P.id+" gs"),vi=P)};var Lc=function(P,$e){if(!P||!bi[P]){var Dt=!1;for(var Jt in Gn)if(Gn.hasOwnProperty(Jt)&&Gn[Jt].equals($e)){Dt=!0;break}if(Dt)$e=Gn[Jt];else{var vr="GS"+(Object.keys(Gn).length+1).toString(10);Gn[vr]=$e,$e.id=vr}return P&&(bi[P]=$e.id),Xn.publish("addGState",$e),$e}};we.addGState=function(P,$e){return Lc(P,$e),this},we.saveGraphicsState=function(){return St("q"),Ta.push({key:xi,size:Ir,color:gc}),this},we.restoreGraphicsState=function(){St("Q");var P=Ta.pop();return xi=P.key,Ir=P.size,gc=P.color,vi=null,this},we.setCurrentTransformationMatrix=function(P){return St(P.toString()+" cm"),this},we.comment=function(P){return St("#"+P),this};var Au=function(P,$e){var Dt=P||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Dt},set:function(Xr){isNaN(Xr)||(Dt=parseFloat(Xr))}});var Jt=$e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Jt},set:function(Xr){isNaN(Xr)||(Jt=parseFloat(Xr))}});var vr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return vr},set:function(Xr){vr=Xr.toString()}}),this},uu=function(P,$e,Dt,Jt){Au.call(this,P,$e),this.type="rect";var vr=Dt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return vr},set:function(Fn){isNaN(Fn)||(vr=parseFloat(Fn))}});var Xr=Jt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Xr},set:function(Fn){isNaN(Fn)||(Xr=parseFloat(Fn))}}),this},ws=function(){this.page=Zi,this.currentPage=Ze,this.pages=sr.slice(0),this.pagesContext=gn.slice(0),this.x=ha,this.y=ei,this.matrix=uo,this.width=XA(Ze),this.height=kc(Ze),this.outputDestination=Hr,this.id="",this.objectNumber=-1};ws.prototype.restore=function(){Zi=this.page,Ze=this.currentPage,gn=this.pagesContext,sr=this.pages,ha=this.x,ei=this.y,uo=this.matrix,EA(Ze,this.width),JA(Ze,this.height),Hr=this.outputDestination};var vc=function(P,$e,Dt,Jt,vr){Do.push(new ws),Zi=Ze=0,sr=[],ha=P,ei=$e,uo=vr,wa([Dt,Jt])},GA=function(P){if(ko[P])Do.pop().restore();else{var $e=new ws,Dt="Xo"+(Object.keys(ji).length+1).toString(10);$e.id=Dt,ko[P]=Dt,ji[Dt]=$e,Xn.publish("addFormObject",$e),Do.pop().restore()}};for(var Gc in we.beginFormObject=function(P,$e,Dt,Jt,vr){return vc(P,$e,Dt,Jt,vr),this},we.endFormObject=function(P){return GA(P),this},we.doFormObject=function(P,$e){var Dt=ji[ko[P]];return St("q"),St($e.toString()+" cm"),St("/"+Dt.id+" Do"),St("Q"),this},we.getFormObject=function(P){var $e=ji[ko[P]];return{x:$e.x,y:$e.y,width:$e.width,height:$e.height,matrix:$e.matrix}},we.save=function(P,$e){return P=P||"generated.pdf",($e=$e||{}).returnPromise=$e.returnPromise||!1,$e.returnPromise===!1?(Ji(sc(Ul()),P),typeof Ji.unload=="function"&&ln.setTimeout&&setTimeout(Ji.unload,911),this):new Promise(function(Dt,Jt){try{var vr=Ji(sc(Ul()),P);typeof Ji.unload=="function"&&ln.setTimeout&&setTimeout(Ji.unload,911),Dt(vr)}catch(Xr){Jt(Xr.message)}})},mi.API)mi.API.hasOwnProperty(Gc)&&(Gc==="events"&&mi.API.events.length?function(P,$e){var Dt,Jt,vr;for(vr=$e.length-1;vr!==-1;vr--)Dt=$e[vr][0],Jt=$e[vr][1],P.subscribe.apply(P,[Dt].concat(typeof Jt=="function"?[Jt]:Jt))}(Xn,mi.API.events):we[Gc]=mi.API[Gc]);var XA=we.getPageWidth=function(P){return(gn[P=P||Ze].mediaBox.topRightX-gn[P].mediaBox.bottomLeftX)/kn},EA=we.setPageWidth=function(P,$e){gn[P].mediaBox.topRightX=$e*kn+gn[P].mediaBox.bottomLeftX},kc=we.getPageHeight=function(P){return(gn[P=P||Ze].mediaBox.topRightY-gn[P].mediaBox.bottomLeftY)/kn},JA=we.setPageHeight=function(P,$e){gn[P].mediaBox.topRightY=$e*kn+gn[P].mediaBox.bottomLeftY};return we.internal={pdfEscape:Ns,getStyle:ZA,getFont:Ea,getFontSize:kr,getCharSpace:Ed,getTextColor:Zr,getLineHeight:VA,getLineHeightFactor:dl,getLineWidth:_l,write:On,getHorizontalCoordinate:ql,getVerticalCoordinate:ec,getCoordinateString:lu,getVerticalCoordinateString:ya,collections:{},newObject:fo,newAdditionalObject:on,newObjectDeferred:Ho,newObjectDeferredBegin:Yi,getFilters:Po,putStream:No,events:Xn,scaleFactor:kn,pageSize:{getWidth:function(){return XA(Ze)},setWidth:function(P){EA(Ze,P)},getHeight:function(){return kc(Ze)},setHeight:function(P){JA(Ze,P)}},encryptionOptions:We,encryption:Os,getEncryptor:BA,output:un,getNumberOfPages:js,pages:sr,out:St,f2:Vr,f3:bt,getPageInfo:Vc,getPageInfoByObjId:sa,getCurrentPageInfo:zA,getPDFVersion:wt,Point:Au,Rectangle:uu,Matrix:Ki,hasHotfix:Zc},Object.defineProperty(we.internal.pageSize,"width",{get:function(){return XA(Ze)},set:function(P){EA(Ze,P)},enumerable:!0,configurable:!0}),Object.defineProperty(we.internal.pageSize,"height",{get:function(){return kc(Ze)},set:function(P){JA(Ze,P)},enumerable:!0,configurable:!0}),Gl.call(we,wr),xi="F1",So(F,l),Xn.publish("initialized"),we}ca.prototype.lsbFirstWord=function(c){return String.fromCharCode(c>>0&255,c>>8&255,c>>16&255,c>>24&255)},ca.prototype.toHexString=function(c){return c.split("").map(function(a){return("0"+(255&a.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ca.prototype.hexToBytes=function(c){for(var a=[],l=0;l<c.length;l+=2)a.push(String.fromCharCode(parseInt(c.substr(l,2),16)));return a.join("")},ca.prototype.processOwnerPassword=function(c,a){return ra(jn(a).substr(0,5),c)},ca.prototype.encryptor=function(c,a){var l=jn(this.encryptionKey+String.fromCharCode(255&c,c>>8&255,c>>16&255,255&a,a>>8&255)).substr(0,10);return function(v){return ra(l,v)}},ka.prototype.equals=function(c){var a,l="id,objectNumber,equals";if(!c||(0,ge.Z)(c)!==(0,ge.Z)(this))return!1;var v=0;for(a in this)if(!(l.indexOf(a)>=0)){if(this.hasOwnProperty(a)&&!c.hasOwnProperty(a)||this[a]!==c[a])return!1;v++}for(a in c)c.hasOwnProperty(a)&&l.indexOf(a)<0&&v--;return v===0},mi.API={events:[]},mi.version="2.5.2";var Aa=mi.API,Oo=1,mo=function(c){return c.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qa=function(c){return c.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ni=function(c){return c.toFixed(2)},To=function(c){return c.toFixed(5)};Aa.__acroform__={};var go=function(c,a){c.prototype=Object.create(a.prototype),c.prototype.constructor=c},el=function(c){return c*Oo},Wo=function(c){var a=new Ba,l=Un.internal.getHeight(c)||0,v=Un.internal.getWidth(c)||0;return a.BBox=[0,0,Number(Ni(v)),Number(Ni(l))],a},Rs=Aa.__acroform__.setBit=function(c,a){if(c=c||0,a=a||0,isNaN(c)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return c|=1<<a},Go=Aa.__acroform__.clearBit=function(c,a){if(c=c||0,a=a||0,isNaN(c)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return c&=~(1<<a)},xl=Aa.__acroform__.getBit=function(c,a){if(isNaN(c)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return c&1<<a?1:0},$a=Aa.__acroform__.getBitForPdf=function(c,a){if(isNaN(c)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return xl(c,a-1)},Qa=Aa.__acroform__.setBitForPdf=function(c,a){if(isNaN(c)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Rs(c,a-1)},Sa=Aa.__acroform__.clearBitForPdf=function(c,a){if(isNaN(c)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Go(c,a-1)},Qs=Aa.__acroform__.calculateCoordinates=function(c,a){var l=a.internal.getHorizontalCoordinate,v=a.internal.getVerticalCoordinate,F=c[0],C=c[1],O=c[2],V=c[3],ie={};return ie.lowerLeft_X=l(F)||0,ie.lowerLeft_Y=v(C+V)||0,ie.upperRight_X=l(F+O)||0,ie.upperRight_Y=v(C)||0,[Number(Ni(ie.lowerLeft_X)),Number(Ni(ie.lowerLeft_Y)),Number(Ni(ie.upperRight_X)),Number(Ni(ie.upperRight_Y))]},Bi=function(c){if(c.appearanceStreamContent)return c.appearanceStreamContent;if(c.V||c.DV){var a=[],l=c._V||c.DV,v=Vi(c,l),F=c.scope.internal.getFont(c.fontName,c.fontStyle).id;a.push("/Tx BMC"),a.push("q"),a.push("BT"),a.push(c.scope.__private__.encodeColorString(c.color)),a.push("/"+F+" "+Ni(v.fontSize)+" Tf"),a.push("1 0 0 1 0 0 Tm"),a.push(v.text),a.push("ET"),a.push("Q"),a.push("EMC");var C=Wo(c);return C.scope=c.scope,C.stream=a.join(`
`),C}},Vi=function(c,a){var l=c.fontSize===0?c.maxFontSize:c.fontSize,v={text:"",fontSize:""},F=(a=(a=a.substr(0,1)=="("?a.substr(1):a).substr(a.length-1)==")"?a.substr(0,a.length-1):a).split(" ");F=c.multiline?F.map(function(bt){return bt.split(`
`)}):F.map(function(bt){return[bt]});var C=l,O=Un.internal.getHeight(c)||0;O=O<0?-O:O;var V=Un.internal.getWidth(c)||0;V=V<0?-V:V;var ie=function(bt,Bt,U){if(bt+1<F.length){var H=Bt+" "+F[bt+1][0];return Oi(H,c,U).width<=V-4}return!1};C++;e:for(;C>0;){a="",C--;var _e,We,Ve=Oi("3",c,C).height,ct=c.multiline?O-C:(O-Ve)/2,we=ct+=2,Lt=0,wt=0,kt=0;if(C<=0){a=`(...) Tj
`,a+="% Width of Text: "+Oi(a,c,C=12).width+", FieldWidth:"+V+`
`;break}for(var ht="",Pt=0,ar=0;ar<F.length;ar++)if(F.hasOwnProperty(ar)){var gr=!1;if(F[ar].length!==1&&kt!==F[ar].length-1){if((Ve+2)*(Pt+2)+2>O)continue e;ht+=F[ar][kt],gr=!0,wt=ar,ar--}else{ht=(ht+=F[ar][kt]+" ").substr(ht.length-1)==" "?ht.substr(0,ht.length-1):ht;var Kr=parseInt(ar),yn=ie(Kr,ht,C),_r=ar>=F.length-1;if(yn&&!_r){ht+=" ",kt=0;continue}if(yn||_r){if(_r)wt=Kr;else if(c.multiline&&(Ve+2)*(Pt+2)+2>O)continue e}else{if(!c.multiline||(Ve+2)*(Pt+2)+2>O)continue e;wt=Kr}}for(var Gt="",Dr=Lt;Dr<=wt;Dr++){var Vr=F[Dr];if(c.multiline){if(Dr===wt){Gt+=Vr[kt]+" ",kt=(kt+1)%Vr.length;continue}if(Dr===Lt){Gt+=Vr[Vr.length-1]+" ";continue}}Gt+=Vr[0]+" "}switch(Gt=Gt.substr(Gt.length-1)==" "?Gt.substr(0,Gt.length-1):Gt,We=Oi(Gt,c,C).width,c.textAlign){case"right":_e=V-We-2;break;case"center":_e=(V-We)/2;break;case"left":default:_e=2}a+=Ni(_e)+" "+Ni(we)+` Td
`,a+="("+mo(Gt)+`) Tj
`,a+=-Ni(_e)+` 0 Td
`,we=-(C+2),We=0,Lt=gr?wt:wt+1,Pt++,ht=""}break}return v.text=a,v.fontSize=C,v},Oi=function(c,a,l){var v=a.scope.internal.getFont(a.fontName,a.fontStyle),F=a.scope.getStringUnitWidth(c,{font:v,fontSize:parseFloat(l),charSpace:0})*parseFloat(l);return{height:a.scope.getStringUnitWidth("3",{font:v,fontSize:parseFloat(l),charSpace:0})*parseFloat(l)*1.5,width:F}},Wi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ua=function(c,a){var l={type:"reference",object:c};a.internal.getPageInfo(c.page).pageContext.annotations.find(function(v){return v.type===l.type&&v.object===l.object})===void 0&&a.internal.getPageInfo(c.page).pageContext.annotations.push(l)},_a=function(c,a){for(var l in c)if(c.hasOwnProperty(l)){var v=l,F=c[l];a.internal.newObjectDeferredBegin(F.objId,!0),(0,ge.Z)(F)==="object"&&typeof F.putStream=="function"&&F.putStream(),delete c[v]}},Xo=function(c,a){if(a.scope=c,c.internal!==void 0&&(c.internal.acroformPlugin===void 0||c.internal.acroformPlugin.isInitialized===!1)){if(Da.FieldNum=0,c.internal.acroformPlugin=JSON.parse(JSON.stringify(Wi)),c.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Oo=c.internal.scaleFactor,c.internal.acroformPlugin.acroFormDictionaryRoot=new da,c.internal.acroformPlugin.acroFormDictionaryRoot.scope=c,c.internal.acroformPlugin.acroFormDictionaryRoot._eventID=c.internal.events.subscribe("postPutResources",function(){(function(l){l.internal.events.unsubscribe(l.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete l.internal.acroformPlugin.acroFormDictionaryRoot._eventID,l.internal.acroformPlugin.printedOut=!0})(c)}),c.internal.events.subscribe("buildDocument",function(){(function(l){l.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var v=l.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var F in v)if(v.hasOwnProperty(F)){var C=v[F];C.objId=void 0,C.hasAnnotation&&ua(C,l)}})(c)}),c.internal.events.subscribe("putCatalog",function(){(function(l){if(l.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");l.internal.write("/AcroForm "+l.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(c)}),c.internal.events.subscribe("postPutPages",function(l){(function(v,F){var C=!v;for(var O in v||(F.internal.newObjectDeferredBegin(F.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),F.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),v=v||F.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(v.hasOwnProperty(O)){var V=v[O],ie=[],_e=V.Rect;if(V.Rect&&(V.Rect=Qs(V.Rect,F)),F.internal.newObjectDeferredBegin(V.objId,!0),V.DA=Un.createDefaultAppearanceStream(V),(0,ge.Z)(V)==="object"&&typeof V.getKeyValueListForStream=="function"&&(ie=V.getKeyValueListForStream()),V.Rect=_e,V.hasAppearanceStream&&!V.appearanceStreamContent){var We=Bi(V);ie.push({key:"AP",value:"<</N "+We+">>"}),F.internal.acroformPlugin.xForms.push(We)}if(V.appearanceStreamContent){var Ve="";for(var ct in V.appearanceStreamContent)if(V.appearanceStreamContent.hasOwnProperty(ct)){var we=V.appearanceStreamContent[ct];if(Ve+="/"+ct+" ",Ve+="<<",Object.keys(we).length>=1||Array.isArray(we)){for(var O in we)if(we.hasOwnProperty(O)){var Lt=we[O];typeof Lt=="function"&&(Lt=Lt.call(F,V)),Ve+="/"+O+" "+Lt+" ",F.internal.acroformPlugin.xForms.indexOf(Lt)>=0||F.internal.acroformPlugin.xForms.push(Lt)}}else typeof(Lt=we)=="function"&&(Lt=Lt.call(F,V)),Ve+="/"+O+" "+Lt,F.internal.acroformPlugin.xForms.indexOf(Lt)>=0||F.internal.acroformPlugin.xForms.push(Lt);Ve+=">>"}ie.push({key:"AP",value:`<<
`+Ve+">>"})}F.internal.putStream({additionalKeyValues:ie,objectId:V.objId}),F.internal.out("endobj")}C&&_a(F.internal.acroformPlugin.xForms,F)})(l,c)}),c.internal.acroformPlugin.isInitialized=!0}},Io=Aa.__acroform__.arrayToPdfArray=function(c,a,l){var v=function(O){return O};if(Array.isArray(c)){for(var F="[",C=0;C<c.length;C++)switch(C!==0&&(F+=" "),(0,ge.Z)(c[C])){case"boolean":case"number":case"object":F+=c[C].toString();break;case"string":c[C].substr(0,1)!=="/"?(a!==void 0&&l&&(v=l.internal.getEncryptor(a)),F+="("+mo(v(c[C].toString()))+")"):F+=c[C].toString()}return F+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},_o=function(c,a,l){var v=function(F){return F};return a!==void 0&&l&&(v=l.internal.getEncryptor(a)),(c=c||"").toString(),c="("+mo(v(c))+")"},Za=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(c){this._objId=c}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Za.prototype.toString=function(){return this.objId+" 0 R"},Za.prototype.putStream=function(){var c=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:c,objectId:this.objId}),this.scope.internal.out("endobj")},Za.prototype.getKeyValueListForStream=function(){var c=[],a=Object.getOwnPropertyNames(this).filter(function(C){return C!="content"&&C!="appearanceStreamContent"&&C!="scope"&&C!="objId"&&C.substring(0,1)!="_"});for(var l in a)if(Object.getOwnPropertyDescriptor(this,a[l]).configurable===!1){var v=a[l],F=this[v];F&&(Array.isArray(F)?c.push({key:v,value:Io(F,this.objId,this.scope)}):F instanceof Za?(F.scope=this.scope,c.push({key:v,value:F.objId+" 0 R"})):typeof F!="function"&&c.push({key:v,value:F}))}return c};var Ba=function(){Za.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var c,a=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return a},set:function(l){a=l}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(l){c=l.trim()},get:function(){return c||null}})};go(Ba,Za);var da=function(){Za.call(this);var c,a=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return a.length>0?a:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return a}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(c){var l=function(v){return v};return this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),"("+mo(l(c))+")"}},set:function(l){c=l}})};go(da,Za);var Da=function c(){Za.call(this);var a=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return a},set:function(ht){if(isNaN(ht))throw new Error('Invalid value "'+ht+'" for attribute F supplied.');a=ht}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!$a(a,3)},set:function(ht){ht?this.F=Qa(a,3):this.F=Sa(a,3)}});var l=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return l},set:function(ht){if(isNaN(ht))throw new Error('Invalid value "'+ht+'" for attribute Ff supplied.');l=ht}});var v=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(v.length!==0)return v},set:function(ht){v=ht!==void 0?ht:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!v||isNaN(v[0])?0:v[0]},set:function(ht){v[0]=ht}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!v||isNaN(v[1])?0:v[1]},set:function(ht){v[1]=ht}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!v||isNaN(v[2])?0:v[2]},set:function(ht){v[2]=ht}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!v||isNaN(v[3])?0:v[3]},set:function(ht){v[3]=ht}});var F="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return F},set:function(ht){switch(ht){case"/Btn":case"/Tx":case"/Ch":case"/Sig":F=ht;break;default:throw new Error('Invalid value "'+ht+'" for attribute FT supplied.')}}});var C=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!C||C.length<1){if(this instanceof ll)return;C="FieldObject"+c.FieldNum++}var ht=function(Pt){return Pt};return this.scope&&(ht=this.scope.internal.getEncryptor(this.objId)),"("+mo(ht(C))+")"},set:function(ht){C=ht.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return C},set:function(ht){C=ht}});var O="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return O},set:function(ht){O=ht}});var V="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return V},set:function(ht){V=ht}});var ie=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ie},set:function(ht){ie=ht}});var _e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _e===void 0?50/Oo:_e},set:function(ht){_e=ht}});var We="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return We},set:function(ht){We=ht}});var Ve="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ve||this instanceof ll||this instanceof Ms))return _o(Ve,this.objId,this.scope)},set:function(ht){ht=ht.toString(),Ve=ht}});var ct=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(ct)return this instanceof Mo?ct:_o(ct,this.objId,this.scope)},set:function(ht){ht=ht.toString(),ct=this instanceof Mo?ht:ht.substr(0,1)==="("?qa(ht.substr(1,ht.length-2)):qa(ht)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Mo?qa(ct.substr(1,ct.length-1)):ct},set:function(ht){ht=ht.toString(),ct=this instanceof Mo?"/"+ht:ht}});var we=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(we)return we},set:function(ht){this.V=ht}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(we)return this instanceof Mo?we:_o(we,this.objId,this.scope)},set:function(ht){ht=ht.toString(),we=this instanceof Mo?ht:ht.substr(0,1)==="("?qa(ht.substr(1,ht.length-2)):qa(ht)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Mo?qa(we.substr(1,we.length-1)):we},set:function(ht){ht=ht.toString(),we=this instanceof Mo?"/"+ht:ht}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Lt,wt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(ht){ht=!!ht,wt=ht}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Lt)return Lt},set:function(ht){Lt=ht}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,1)},set:function(ht){ht?this.Ff=Qa(this.Ff,1):this.Ff=Sa(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,2)},set:function(ht){ht?this.Ff=Qa(this.Ff,2):this.Ff=Sa(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,3)},set:function(ht){ht?this.Ff=Qa(this.Ff,3):this.Ff=Sa(this.Ff,3)}});var kt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(kt!==null)return kt},set:function(ht){if([0,1,2].indexOf(ht)===-1)throw new Error('Invalid value "'+ht+'" for attribute Q supplied.');kt=ht}}),Object.defineProperty(this,"textAlign",{get:function(){var ht;switch(kt){case 0:default:ht="left";break;case 1:ht="center";break;case 2:ht="right"}return ht},configurable:!0,enumerable:!0,set:function(ht){switch(ht){case"right":case 2:kt=2;break;case"center":case 1:kt=1;break;case"left":case 0:default:kt=0}}})};go(Da,Za);var eo=function(){Da.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var c=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return c},set:function(l){c=l}});var a=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Io(a,this.objId,this.scope)},set:function(l){var v,F;F=[],typeof(v=l)=="string"&&(F=function(C,O,V){V||(V=1);for(var ie,_e=[];ie=O.exec(C);)_e.push(ie[V]);return _e}(v,/\((.*?)\)/g)),a=F}}),this.getOptions=function(){return a},this.setOptions=function(l){a=l,this.sort&&a.sort()},this.addOption=function(l){l=(l=l||"").toString(),a.push(l),this.sort&&a.sort()},this.removeOption=function(l,v){for(v=v||!1,l=(l=l||"").toString();a.indexOf(l)!==-1&&(a.splice(a.indexOf(l),1),v!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,18)},set:function(l){l?this.Ff=Qa(this.Ff,18):this.Ff=Sa(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,19)},set:function(l){this.combo===!0&&(l?this.Ff=Qa(this.Ff,19):this.Ff=Sa(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,20)},set:function(l){l?(this.Ff=Qa(this.Ff,20),a.sort()):this.Ff=Sa(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,22)},set:function(l){l?this.Ff=Qa(this.Ff,22):this.Ff=Sa(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,23)},set:function(l){l?this.Ff=Qa(this.Ff,23):this.Ff=Sa(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,27)},set:function(l){l?this.Ff=Qa(this.Ff,27):this.Ff=Sa(this.Ff,27)}}),this.hasAppearanceStream=!1};go(eo,Da);var Ao=function(){eo.call(this),this.fontName="helvetica",this.combo=!1};go(Ao,eo);var Oa=function(){Ao.call(this),this.combo=!0};go(Oa,Ao);var Fa=function(){Oa.call(this),this.edit=!0};go(Fa,Oa);var Mo=function(){Da.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,15)},set:function(l){l?this.Ff=Qa(this.Ff,15):this.Ff=Sa(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,16)},set:function(l){l?this.Ff=Qa(this.Ff,16):this.Ff=Sa(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,17)},set:function(l){l?this.Ff=Qa(this.Ff,17):this.Ff=Sa(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,26)},set:function(l){l?this.Ff=Qa(this.Ff,26):this.Ff=Sa(this.Ff,26)}});var c,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var l=function(C){return C};if(this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),Object.keys(a).length!==0){var v,F=[];for(v in F.push("<<"),a)F.push("/"+v+" ("+mo(l(a[v]))+")");return F.push(">>"),F.join(`
`)}},set:function(l){(0,ge.Z)(l)==="object"&&(a=l)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(l){typeof l=="string"&&(a.CA=l)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return c.substr(1,c.length-1)},set:function(l){c="/"+l}})};go(Mo,Da);var kl=function(){Mo.call(this),this.pushButton=!0};go(kl,Mo);var ds=function(){Mo.call(this),this.radio=!0,this.pushButton=!1;var c=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return c},set:function(a){c=a!==void 0?a:[]}})};go(ds,Mo);var ll=function(){var c,a;Da.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return c},set:function(F){c=F}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(F){a=F}});var l,v={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var F=function(V){return V};this.scope&&(F=this.scope.internal.getEncryptor(this.objId));var C,O=[];for(C in O.push("<<"),v)O.push("/"+C+" ("+mo(F(v[C]))+")");return O.push(">>"),O.join(`
`)},set:function(F){(0,ge.Z)(F)==="object"&&(v=F)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return v.CA||""},set:function(F){typeof F=="string"&&(v.CA=F)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return l},set:function(F){l=F}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return l.substr(1,l.length-1)},set:function(F){l="/"+F}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Un.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};go(ll,Da),ds.prototype.setAppearance=function(c){if(!("createAppearanceStream"in c)||!("getCA"in c))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var a in this.Kids)if(this.Kids.hasOwnProperty(a)){var l=this.Kids[a];l.appearanceStreamContent=c.createAppearanceStream(l.optionName),l.caption=c.getCA()}},ds.prototype.createOption=function(c){var a=new ll;return a.Parent=this,a.optionName=c,this.Kids.push(a),Dl.call(this.scope,a),a};var Uo=function(){Mo.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Un.CheckBox.createAppearanceStream()};go(Uo,Mo);var Ms=function(){Da.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,13)},set:function(a){a?this.Ff=Qa(this.Ff,13):this.Ff=Sa(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,21)},set:function(a){a?this.Ff=Qa(this.Ff,21):this.Ff=Sa(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,23)},set:function(a){a?this.Ff=Qa(this.Ff,23):this.Ff=Sa(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,24)},set:function(a){a?this.Ff=Qa(this.Ff,24):this.Ff=Sa(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,25)},set:function(a){a?this.Ff=Qa(this.Ff,25):this.Ff=Sa(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,26)},set:function(a){a?this.Ff=Qa(this.Ff,26):this.Ff=Sa(this.Ff,26)}});var c=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return c},set:function(a){c=a}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return c},set:function(a){Number.isInteger(a)&&(c=a)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};go(Ms,Da);var Lo=function(){Ms.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!$a(this.Ff,14)},set:function(c){c?this.Ff=Qa(this.Ff,14):this.Ff=Sa(this.Ff,14)}}),this.password=!0};go(Lo,Ms);var Un={CheckBox:{createAppearanceStream:function(){return{N:{On:Un.CheckBox.YesNormal},D:{On:Un.CheckBox.YesPushDown,Off:Un.CheckBox.OffPushDown}}},YesPushDown:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=c.scope.internal.getFont(c.fontName,c.fontStyle).id,F=c.scope.__private__.encodeColorString(c.color),C=Vi(c,c.caption);return l.push("0.749023 g"),l.push("0 0 "+Ni(Un.internal.getWidth(c))+" "+Ni(Un.internal.getHeight(c))+" re"),l.push("f"),l.push("BMC"),l.push("q"),l.push("0 0 1 rg"),l.push("/"+v+" "+Ni(C.fontSize)+" Tf "+F),l.push("BT"),l.push(C.text),l.push("ET"),l.push("Q"),l.push("EMC"),a.stream=l.join(`
`),a},YesNormal:function(c){var a=Wo(c);a.scope=c.scope;var l=c.scope.internal.getFont(c.fontName,c.fontStyle).id,v=c.scope.__private__.encodeColorString(c.color),F=[],C=Un.internal.getHeight(c),O=Un.internal.getWidth(c),V=Vi(c,c.caption);return F.push("1 g"),F.push("0 0 "+Ni(O)+" "+Ni(C)+" re"),F.push("f"),F.push("q"),F.push("0 0 1 rg"),F.push("0 0 "+Ni(O-1)+" "+Ni(C-1)+" re"),F.push("W"),F.push("n"),F.push("0 g"),F.push("BT"),F.push("/"+l+" "+Ni(V.fontSize)+" Tf "+v),F.push(V.text),F.push("ET"),F.push("Q"),a.stream=F.join(`
`),a},OffPushDown:function(c){var a=Wo(c);a.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Ni(Un.internal.getWidth(c))+" "+Ni(Un.internal.getHeight(c))+" re"),l.push("f"),a.stream=l.join(`
`),a}},RadioButton:{Circle:{createAppearanceStream:function(c){var a={D:{Off:Un.RadioButton.Circle.OffPushDown},N:{}};return a.N[c]=Un.RadioButton.Circle.YesNormal,a.D[c]=Un.RadioButton.Circle.YesPushDown,a},getCA:function(){return"l"},YesNormal:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=Un.internal.getWidth(c)<=Un.internal.getHeight(c)?Un.internal.getWidth(c)/4:Un.internal.getHeight(c)/4;v=Number((.9*v).toFixed(5));var F=Un.internal.Bezier_C,C=Number((v*F).toFixed(5));return l.push("q"),l.push("1 0 0 1 "+To(Un.internal.getWidth(c)/2)+" "+To(Un.internal.getHeight(c)/2)+" cm"),l.push(v+" 0 m"),l.push(v+" "+C+" "+C+" "+v+" 0 "+v+" c"),l.push("-"+C+" "+v+" -"+v+" "+C+" -"+v+" 0 c"),l.push("-"+v+" -"+C+" -"+C+" -"+v+" 0 -"+v+" c"),l.push(C+" -"+v+" "+v+" -"+C+" "+v+" 0 c"),l.push("f"),l.push("Q"),a.stream=l.join(`
`),a},YesPushDown:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=Un.internal.getWidth(c)<=Un.internal.getHeight(c)?Un.internal.getWidth(c)/4:Un.internal.getHeight(c)/4;v=Number((.9*v).toFixed(5));var F=Number((2*v).toFixed(5)),C=Number((F*Un.internal.Bezier_C).toFixed(5)),O=Number((v*Un.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+To(Un.internal.getWidth(c)/2)+" "+To(Un.internal.getHeight(c)/2)+" cm"),l.push(F+" 0 m"),l.push(F+" "+C+" "+C+" "+F+" 0 "+F+" c"),l.push("-"+C+" "+F+" -"+F+" "+C+" -"+F+" 0 c"),l.push("-"+F+" -"+C+" -"+C+" -"+F+" 0 -"+F+" c"),l.push(C+" -"+F+" "+F+" -"+C+" "+F+" 0 c"),l.push("f"),l.push("Q"),l.push("0 g"),l.push("q"),l.push("1 0 0 1 "+To(Un.internal.getWidth(c)/2)+" "+To(Un.internal.getHeight(c)/2)+" cm"),l.push(v+" 0 m"),l.push(v+" "+O+" "+O+" "+v+" 0 "+v+" c"),l.push("-"+O+" "+v+" -"+v+" "+O+" -"+v+" 0 c"),l.push("-"+v+" -"+O+" -"+O+" -"+v+" 0 -"+v+" c"),l.push(O+" -"+v+" "+v+" -"+O+" "+v+" 0 c"),l.push("f"),l.push("Q"),a.stream=l.join(`
`),a},OffPushDown:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=Un.internal.getWidth(c)<=Un.internal.getHeight(c)?Un.internal.getWidth(c)/4:Un.internal.getHeight(c)/4;v=Number((.9*v).toFixed(5));var F=Number((2*v).toFixed(5)),C=Number((F*Un.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+To(Un.internal.getWidth(c)/2)+" "+To(Un.internal.getHeight(c)/2)+" cm"),l.push(F+" 0 m"),l.push(F+" "+C+" "+C+" "+F+" 0 "+F+" c"),l.push("-"+C+" "+F+" -"+F+" "+C+" -"+F+" 0 c"),l.push("-"+F+" -"+C+" -"+C+" -"+F+" 0 -"+F+" c"),l.push(C+" -"+F+" "+F+" -"+C+" "+F+" 0 c"),l.push("f"),l.push("Q"),a.stream=l.join(`
`),a}},Cross:{createAppearanceStream:function(c){var a={D:{Off:Un.RadioButton.Cross.OffPushDown},N:{}};return a.N[c]=Un.RadioButton.Cross.YesNormal,a.D[c]=Un.RadioButton.Cross.YesPushDown,a},getCA:function(){return"8"},YesNormal:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=Un.internal.calculateCross(c);return l.push("q"),l.push("1 1 "+Ni(Un.internal.getWidth(c)-2)+" "+Ni(Un.internal.getHeight(c)-2)+" re"),l.push("W"),l.push("n"),l.push(Ni(v.x1.x)+" "+Ni(v.x1.y)+" m"),l.push(Ni(v.x2.x)+" "+Ni(v.x2.y)+" l"),l.push(Ni(v.x4.x)+" "+Ni(v.x4.y)+" m"),l.push(Ni(v.x3.x)+" "+Ni(v.x3.y)+" l"),l.push("s"),l.push("Q"),a.stream=l.join(`
`),a},YesPushDown:function(c){var a=Wo(c);a.scope=c.scope;var l=Un.internal.calculateCross(c),v=[];return v.push("0.749023 g"),v.push("0 0 "+Ni(Un.internal.getWidth(c))+" "+Ni(Un.internal.getHeight(c))+" re"),v.push("f"),v.push("q"),v.push("1 1 "+Ni(Un.internal.getWidth(c)-2)+" "+Ni(Un.internal.getHeight(c)-2)+" re"),v.push("W"),v.push("n"),v.push(Ni(l.x1.x)+" "+Ni(l.x1.y)+" m"),v.push(Ni(l.x2.x)+" "+Ni(l.x2.y)+" l"),v.push(Ni(l.x4.x)+" "+Ni(l.x4.y)+" m"),v.push(Ni(l.x3.x)+" "+Ni(l.x3.y)+" l"),v.push("s"),v.push("Q"),a.stream=v.join(`
`),a},OffPushDown:function(c){var a=Wo(c);a.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Ni(Un.internal.getWidth(c))+" "+Ni(Un.internal.getHeight(c))+" re"),l.push("f"),a.stream=l.join(`
`),a}}},createDefaultAppearanceStream:function(c){var a=c.scope.internal.getFont(c.fontName,c.fontStyle).id,l=c.scope.__private__.encodeColorString(c.color);return"/"+a+" "+c.fontSize+" Tf "+l}};Un.internal={Bezier_C:.551915024494,calculateCross:function(c){var a=Un.internal.getWidth(c),l=Un.internal.getHeight(c),v=Math.min(a,l);return{x1:{x:(a-v)/2,y:(l-v)/2+v},x2:{x:(a-v)/2+v,y:(l-v)/2},x3:{x:(a-v)/2,y:(l-v)/2},x4:{x:(a-v)/2+v,y:(l-v)/2+v}}}},Un.internal.getWidth=function(c){var a=0;return(0,ge.Z)(c)==="object"&&(a=el(c.Rect[2])),a},Un.internal.getHeight=function(c){var a=0;return(0,ge.Z)(c)==="object"&&(a=el(c.Rect[3])),a};var Dl=Aa.addField=function(c){if(Xo(this,c),!(c instanceof Da))throw new Error("Invalid argument passed to jsPDF.addField.");var a;return(a=c).scope.internal.acroformPlugin.printedOut&&(a.scope.internal.acroformPlugin.printedOut=!1,a.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),a.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(a),c.page=c.scope.internal.getCurrentPageInfo().pageNumber,this};Aa.AcroFormChoiceField=eo,Aa.AcroFormListBox=Ao,Aa.AcroFormComboBox=Oa,Aa.AcroFormEditBox=Fa,Aa.AcroFormButton=Mo,Aa.AcroFormPushButton=kl,Aa.AcroFormRadioButton=ds,Aa.AcroFormCheckBox=Uo,Aa.AcroFormTextField=Ms,Aa.AcroFormPasswordField=Lo,Aa.AcroFormAppearance=Un,Aa.AcroForm={ChoiceField:eo,ListBox:Ao,ComboBox:Oa,EditBox:Fa,Button:Mo,PushButton:kl,RadioButton:ds,CheckBox:Uo,TextField:Ms,PasswordField:Lo,Appearance:Un},mi.AcroForm={ChoiceField:eo,ListBox:Ao,ComboBox:Oa,EditBox:Fa,Button:Mo,PushButton:kl,RadioButton:ds,CheckBox:Uo,TextField:Ms,PasswordField:Lo,Appearance:Un};var Ro=mi.AcroForm;function Vl(c){return c.reduce(function(a,l,v){return a[l]=v,a},{})}(function(c){c.__addimage__={};var a="UNKNOWN",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},v=c.__addimage__.getImageFileTypeByImageData=function(bt,Bt){var U,H,Se,De,Ye,He=a;if((Bt=Bt||a)==="RGBA"||bt.data!==void 0&&bt.data instanceof Uint8ClampedArray&&"height"in bt&&"width"in bt)return"RGBA";if(yn(bt))for(Ye in l)for(Se=l[Ye],U=0;U<Se.length;U+=1){for(De=!0,H=0;H<Se[U].length;H+=1)if(Se[U][H]!==void 0&&Se[U][H]!==bt[H]){De=!1;break}if(De===!0){He=Ye;break}}else for(Ye in l)for(Se=l[Ye],U=0;U<Se.length;U+=1){for(De=!0,H=0;H<Se[U].length;H+=1)if(Se[U][H]!==void 0&&Se[U][H]!==bt.charCodeAt(H)){De=!1;break}if(De===!0){He=Ye;break}}return He===a&&Bt!==a&&(He=Bt),He},F=function bt(Bt){for(var U=this.internal.write,H=this.internal.putStream,Se=(0,this.internal.getFilters)();Se.indexOf("FlateEncode")!==-1;)Se.splice(Se.indexOf("FlateEncode"),1);Bt.objectId=this.internal.newObject();var De=[];if(De.push({key:"Type",value:"/XObject"}),De.push({key:"Subtype",value:"/Image"}),De.push({key:"Width",value:Bt.width}),De.push({key:"Height",value:Bt.height}),Bt.colorSpace===kt.INDEXED?De.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Bt.palette.length/3-1)+" "+("sMask"in Bt&&Bt.sMask!==void 0?Bt.objectId+2:Bt.objectId+1)+" 0 R]"}):(De.push({key:"ColorSpace",value:"/"+Bt.colorSpace}),Bt.colorSpace===kt.DEVICE_CMYK&&De.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),De.push({key:"BitsPerComponent",value:Bt.bitsPerComponent}),"decodeParameters"in Bt&&Bt.decodeParameters!==void 0&&De.push({key:"DecodeParms",value:"<<"+Bt.decodeParameters+">>"}),"transparency"in Bt&&Array.isArray(Bt.transparency)){for(var Ye="",He=0,dt=Bt.transparency.length;He<dt;He++)Ye+=Bt.transparency[He]+" "+Bt.transparency[He]+" ";De.push({key:"Mask",value:"["+Ye+"]"})}Bt.sMask!==void 0&&De.push({key:"SMask",value:Bt.objectId+1+" 0 R"});var pt=Bt.filter!==void 0?["/"+Bt.filter]:void 0;if(H({data:Bt.data,additionalKeyValues:De,alreadyAppliedFilters:pt,objectId:Bt.objectId}),U("endobj"),"sMask"in Bt&&Bt.sMask!==void 0){var Et="/Predictor "+Bt.predictor+" /Colors 1 /BitsPerComponent "+Bt.bitsPerComponent+" /Columns "+Bt.width,de={width:Bt.width,height:Bt.height,colorSpace:"DeviceGray",bitsPerComponent:Bt.bitsPerComponent,decodeParameters:Et,data:Bt.sMask};"filter"in Bt&&(de.filter=Bt.filter),bt.call(this,de)}if(Bt.colorSpace===kt.INDEXED){var Ze=this.internal.newObject();H({data:Gt(new Uint8Array(Bt.palette)),objectId:Ze}),U("endobj")}},C=function(){var bt=this.internal.collections.addImage_images;for(var Bt in bt)F.call(this,bt[Bt])},O=function(){var bt,Bt=this.internal.collections.addImage_images,U=this.internal.write;for(var H in Bt)U("/I"+(bt=Bt[H]).index,bt.objectId,"0","R")},V=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",C),this.internal.events.subscribe("putXobjectDict",O))},ie=function(){var bt=this.internal.collections.addImage_images;return V.call(this),bt},_e=function(){return Object.keys(this.internal.collections.addImage_images).length},We=function(bt){return typeof c["process"+bt.toUpperCase()]=="function"},Ve=function(bt){return(0,ge.Z)(bt)==="object"&&bt.nodeType===1},ct=function(bt,Bt){if(bt.nodeName==="IMG"&&bt.hasAttribute("src")){var U=""+bt.getAttribute("src");if(U.indexOf("data:image/")===0)return Wn(unescape(U).split("base64,").pop());var H=c.loadFile(U,!0);if(H!==void 0)return H}if(bt.nodeName==="CANVAS"){if(bt.width===0||bt.height===0)throw new Error("Given canvas must have data. Canvas width: "+bt.width+", height: "+bt.height);var Se;switch(Bt){case"PNG":Se="image/png";break;case"WEBP":Se="image/webp";break;case"JPEG":case"JPG":default:Se="image/jpeg"}return Wn(bt.toDataURL(Se,1).split("base64,").pop())}},we=function(bt){var Bt=this.internal.collections.addImage_images;if(Bt){for(var U in Bt)if(bt===Bt[U].alias)return Bt[U]}},Lt=function(bt,Bt,U){return bt||Bt||(bt=-96,Bt=-96),bt<0&&(bt=-1*U.width*72/bt/this.internal.scaleFactor),Bt<0&&(Bt=-1*U.height*72/Bt/this.internal.scaleFactor),bt===0&&(bt=Bt*U.width/U.height),Bt===0&&(Bt=bt*U.height/U.width),[bt,Bt]},wt=function(bt,Bt,U,H,Se,De){var Ye=Lt.call(this,U,H,Se),He=this.internal.getCoordinateString,dt=this.internal.getVerticalCoordinateString,pt=ie.call(this);if(U=Ye[0],H=Ye[1],pt[Se.index]=Se,De){De*=Math.PI/180;var Et=Math.cos(De),de=Math.sin(De),Ze=function(mt){return mt.toFixed(4)},Je=[Ze(Et),Ze(de),Ze(-1*de),Ze(Et),0,0,"cm"]}this.internal.write("q"),De?(this.internal.write([1,"0","0",1,He(bt),dt(Bt+H),"cm"].join(" ")),this.internal.write(Je.join(" ")),this.internal.write([He(U),"0","0",He(H),"0","0","cm"].join(" "))):this.internal.write([He(U),"0","0",He(H),He(bt),dt(Bt+H),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Se.index+" Do"),this.internal.write("Q")},kt=c.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};c.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var ht=c.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Pt=c.__addimage__.sHashCode=function(bt){var Bt,U,H=0;if(typeof bt=="string")for(U=bt.length,Bt=0;Bt<U;Bt++)H=(H<<5)-H+bt.charCodeAt(Bt),H|=0;else if(yn(bt))for(U=bt.byteLength/2,Bt=0;Bt<U;Bt++)H=(H<<5)-H+bt[Bt],H|=0;return H},ar=c.__addimage__.validateStringAsBase64=function(bt){(bt=bt||"").toString().trim();var Bt=!0;return bt.length===0&&(Bt=!1),bt.length%4!=0&&(Bt=!1),/^[A-Za-z0-9+/]+$/.test(bt.substr(0,bt.length-2))===!1&&(Bt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(bt.substr(-2))===!1&&(Bt=!1),Bt},gr=c.__addimage__.extractImageFromDataUrl=function(bt){var Bt=(bt=bt||"").split("base64,"),U=null;if(Bt.length===2){var H=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Bt[0]);Array.isArray(H)&&(U={mimeType:H[1],charset:H[2],data:Bt[1]})}return U},Kr=c.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};c.__addimage__.isArrayBuffer=function(bt){return Kr()&&bt instanceof ArrayBuffer};var yn=c.__addimage__.isArrayBufferView=function(bt){return Kr()&&typeof Uint32Array!="undefined"&&(bt instanceof Int8Array||bt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&bt instanceof Uint8ClampedArray||bt instanceof Int16Array||bt instanceof Uint16Array||bt instanceof Int32Array||bt instanceof Uint32Array||bt instanceof Float32Array||bt instanceof Float64Array)},_r=c.__addimage__.binaryStringToUint8Array=function(bt){for(var Bt=bt.length,U=new Uint8Array(Bt),H=0;H<Bt;H++)U[H]=bt.charCodeAt(H);return U},Gt=c.__addimage__.arrayBufferToBinaryString=function(bt){for(var Bt="",U=yn(bt)?bt:new Uint8Array(bt),H=0;H<U.length;H+=8192)Bt+=String.fromCharCode.apply(null,U.subarray(H,H+8192));return Bt};c.addImage=function(){var bt,Bt,U,H,Se,De,Ye,He,dt;if(typeof arguments[1]=="number"?(Bt=a,U=arguments[1],H=arguments[2],Se=arguments[3],De=arguments[4],Ye=arguments[5],He=arguments[6],dt=arguments[7]):(Bt=arguments[1],U=arguments[2],H=arguments[3],Se=arguments[4],De=arguments[5],Ye=arguments[6],He=arguments[7],dt=arguments[8]),(0,ge.Z)(bt=arguments[0])==="object"&&!Ve(bt)&&"imageData"in bt){var pt=bt;bt=pt.imageData,Bt=pt.format||Bt||a,U=pt.x||U||0,H=pt.y||H||0,Se=pt.w||pt.width||Se,De=pt.h||pt.height||De,Ye=pt.alias||Ye,He=pt.compression||He,dt=pt.rotation||pt.angle||dt}var Et=this.internal.getFilters();if(He===void 0&&Et.indexOf("FlateEncode")!==-1&&(He="SLOW"),isNaN(U)||isNaN(H))throw new Error("Invalid coordinates passed to jsPDF.addImage");V.call(this);var de=Dr.call(this,bt,Bt,Ye,He);return wt.call(this,U,H,Se,De,de,dt),this};var Dr=function(bt,Bt,U,H){var Se,De,Ye;if(typeof bt=="string"&&v(bt)===a){bt=unescape(bt);var He=Vr(bt,!1);(He!==""||(He=c.loadFile(bt,!0))!==void 0)&&(bt=He)}if(Ve(bt)&&(bt=ct(bt,Bt)),Bt=v(bt,Bt),!We(Bt))throw new Error("addImage does not support files of type '"+Bt+"', please ensure that a plugin for '"+Bt+"' support is added.");if(((Ye=U)==null||Ye.length===0)&&(U=function(dt){return typeof dt=="string"||yn(dt)?Pt(dt):yn(dt.data)?Pt(dt.data):null}(bt)),(Se=we.call(this,U))||(Kr()&&(bt instanceof Uint8Array||Bt==="RGBA"||(De=bt,bt=_r(bt))),Se=this["process"+Bt.toUpperCase()](bt,_e.call(this),U,function(dt){return dt&&typeof dt=="string"&&(dt=dt.toUpperCase()),dt in c.image_compression?dt:ht.NONE}(H),De)),!Se)throw new Error("An unknown error occurred whilst processing the image.");return Se},Vr=c.__addimage__.convertBase64ToBinaryString=function(bt,Bt){var U;Bt=typeof Bt!="boolean"||Bt;var H,Se="";if(typeof bt=="string"){H=(U=gr(bt))!==null?U.data:bt;try{Se=Wn(H)}catch(De){if(Bt)throw ar(H)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+De.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Se};c.getImageProperties=function(bt){var Bt,U,H="";if(Ve(bt)&&(bt=ct(bt)),typeof bt=="string"&&v(bt)===a&&((H=Vr(bt,!1))===""&&(H=c.loadFile(bt)||""),bt=H),U=v(bt),!We(U))throw new Error("addImage does not support files of type '"+U+"', please ensure that a plugin for '"+U+"' support is added.");if(!Kr()||bt instanceof Uint8Array||(bt=_r(bt)),!(Bt=this["process"+U.toUpperCase()](bt)))throw new Error("An unknown error occurred whilst processing the image");return Bt.fileType=U,Bt}})(mi.API),function(c){var a=function(l){if(l!==void 0&&l!="")return!0};mi.API.events.push(["addPage",function(l){this.internal.getPageInfo(l.pageNumber).pageContext.annotations=[]}]),c.events.push(["putPage",function(l){for(var v,F,C,O=this.internal.getCoordinateString,V=this.internal.getVerticalCoordinateString,ie=this.internal.getPageInfoByObjId(l.objId),_e=l.pageContext.annotations,We=!1,Ve=0;Ve<_e.length&&!We;Ve++)switch((v=_e[Ve]).type){case"link":(a(v.options.url)||a(v.options.pageNumber))&&(We=!0);break;case"reference":case"text":case"freetext":We=!0}if(We!=0){this.internal.write("/Annots [");for(var ct=0;ct<_e.length;ct++){v=_e[ct];var we=this.internal.pdfEscape,Lt=this.internal.getEncryptor(l.objId);switch(v.type){case"reference":this.internal.write(" "+v.object.objId+" 0 R ");break;case"text":var wt=this.internal.newAdditionalObject(),kt=this.internal.newAdditionalObject(),ht=this.internal.getEncryptor(wt.objId),Pt=v.title||"Note";C="<</Type /Annot /Subtype /Text "+(F="/Rect ["+O(v.bounds.x)+" "+V(v.bounds.y+v.bounds.h)+" "+O(v.bounds.x+v.bounds.w)+" "+V(v.bounds.y)+"] ")+"/Contents ("+we(ht(v.contents))+")",C+=" /Popup "+kt.objId+" 0 R",C+=" /P "+ie.objId+" 0 R",C+=" /T ("+we(ht(Pt))+") >>",wt.content=C;var ar=wt.objId+" 0 R";C="<</Type /Annot /Subtype /Popup "+(F="/Rect ["+O(v.bounds.x+30)+" "+V(v.bounds.y+v.bounds.h)+" "+O(v.bounds.x+v.bounds.w+30)+" "+V(v.bounds.y)+"] ")+" /Parent "+ar,v.open&&(C+=" /Open true"),C+=" >>",kt.content=C,this.internal.write(wt.objId,"0 R",kt.objId,"0 R");break;case"freetext":F="/Rect ["+O(v.bounds.x)+" "+V(v.bounds.y)+" "+O(v.bounds.x+v.bounds.w)+" "+V(v.bounds.y+v.bounds.h)+"] ";var gr=v.color||"#000000";C="<</Type /Annot /Subtype /FreeText "+F+"/Contents ("+we(Lt(v.contents))+")",C+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+gr+")",C+=" /Border [0 0 0]",C+=" >>",this.internal.write(C);break;case"link":if(v.options.name){var Kr=this.annotations._nameMap[v.options.name];v.options.pageNumber=Kr.page,v.options.top=Kr.y}else v.options.top||(v.options.top=0);if(F="/Rect ["+v.finalBounds.x+" "+v.finalBounds.y+" "+v.finalBounds.w+" "+v.finalBounds.h+"] ",C="",v.options.url)C="<</Type /Annot /Subtype /Link "+F+"/Border [0 0 0] /A <</S /URI /URI ("+we(Lt(v.options.url))+") >>";else if(v.options.pageNumber)switch(C="<</Type /Annot /Subtype /Link "+F+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(v.options.pageNumber).objId+" 0 R",v.options.magFactor=v.options.magFactor||"XYZ",v.options.magFactor){case"Fit":C+=" /Fit]";break;case"FitH":C+=" /FitH "+v.options.top+"]";break;case"FitV":v.options.left=v.options.left||0,C+=" /FitV "+v.options.left+"]";break;case"XYZ":default:var yn=V(v.options.top);v.options.left=v.options.left||0,v.options.zoom===void 0&&(v.options.zoom=0),C+=" /XYZ "+v.options.left+" "+yn+" "+v.options.zoom+"]"}C!=""&&(C+=" >>",this.internal.write(C))}}this.internal.write("]")}}]),c.createAnnotation=function(l){var v=this.internal.getCurrentPageInfo();switch(l.type){case"link":this.link(l.bounds.x,l.bounds.y,l.bounds.w,l.bounds.h,l);break;case"text":case"freetext":v.pageContext.annotations.push(l)}},c.link=function(l,v,F,C,O){var V=this.internal.getCurrentPageInfo(),ie=this.internal.getCoordinateString,_e=this.internal.getVerticalCoordinateString;V.pageContext.annotations.push({finalBounds:{x:ie(l),y:_e(v),w:ie(l+F),h:_e(v+C)},options:O,type:"link"})},c.textWithLink=function(l,v,F,C){var O,V,ie=this.getTextWidth(l),_e=this.internal.getLineHeight()/this.internal.scaleFactor;if(C.maxWidth!==void 0){V=C.maxWidth;var We=this.splitTextToSize(l,V).length;O=Math.ceil(_e*We)}else V=ie,O=_e;return this.text(l,v,F,C),F+=.2*_e,C.align==="center"&&(v-=ie/2),C.align==="right"&&(v-=ie),this.link(v,F-_e,V,O,C),ie},c.getTextWidth=function(l){var v=this.internal.getFontSize();return this.getStringUnitWidth(l)*v/this.internal.scaleFactor}}(mi.API),function(c){var a={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},l={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},v={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},F=[1570,1571,1573,1575];c.__arabicParser__={};var C=c.__arabicParser__.isInArabicSubstitutionA=function(wt){return a[wt.charCodeAt(0)]!==void 0},O=c.__arabicParser__.isArabicLetter=function(wt){return typeof wt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(wt)},V=c.__arabicParser__.isArabicEndLetter=function(wt){return O(wt)&&C(wt)&&a[wt.charCodeAt(0)].length<=2},ie=c.__arabicParser__.isArabicAlfLetter=function(wt){return O(wt)&&F.indexOf(wt.charCodeAt(0))>=0};c.__arabicParser__.arabicLetterHasIsolatedForm=function(wt){return O(wt)&&C(wt)&&a[wt.charCodeAt(0)].length>=1};var _e=c.__arabicParser__.arabicLetterHasFinalForm=function(wt){return O(wt)&&C(wt)&&a[wt.charCodeAt(0)].length>=2};c.__arabicParser__.arabicLetterHasInitialForm=function(wt){return O(wt)&&C(wt)&&a[wt.charCodeAt(0)].length>=3};var We=c.__arabicParser__.arabicLetterHasMedialForm=function(wt){return O(wt)&&C(wt)&&a[wt.charCodeAt(0)].length==4},Ve=c.__arabicParser__.resolveLigatures=function(wt){var kt=0,ht=l,Pt="",ar=0;for(kt=0;kt<wt.length;kt+=1)ht[wt.charCodeAt(kt)]!==void 0?(ar++,typeof(ht=ht[wt.charCodeAt(kt)])=="number"&&(Pt+=String.fromCharCode(ht),ht=l,ar=0),kt===wt.length-1&&(ht=l,Pt+=wt.charAt(kt-(ar-1)),kt-=ar-1,ar=0)):(ht=l,Pt+=wt.charAt(kt-ar),kt-=ar,ar=0);return Pt};c.__arabicParser__.isArabicDiacritic=function(wt){return wt!==void 0&&v[wt.charCodeAt(0)]!==void 0};var ct=c.__arabicParser__.getCorrectForm=function(wt,kt,ht){return O(wt)?C(wt)===!1?-1:!_e(wt)||!O(kt)&&!O(ht)||!O(ht)&&V(kt)||V(wt)&&!O(kt)||V(wt)&&ie(kt)||V(wt)&&V(kt)?0:We(wt)&&O(kt)&&!V(kt)&&O(ht)&&_e(ht)?3:V(wt)||!O(ht)?1:2:-1},we=function(wt){var kt=0,ht=0,Pt=0,ar="",gr="",Kr="",yn=(wt=wt||"").split("\\s+"),_r=[];for(kt=0;kt<yn.length;kt+=1){for(_r.push(""),ht=0;ht<yn[kt].length;ht+=1)ar=yn[kt][ht],gr=yn[kt][ht-1],Kr=yn[kt][ht+1],O(ar)?(Pt=ct(ar,gr,Kr),_r[kt]+=Pt!==-1?String.fromCharCode(a[ar.charCodeAt(0)][Pt]):ar):_r[kt]+=ar;_r[kt]=Ve(_r[kt])}return _r.join(" ")},Lt=c.__arabicParser__.processArabic=c.processArabic=function(){var wt,kt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,ht=[];if(Array.isArray(kt)){var Pt=0;for(ht=[],Pt=0;Pt<kt.length;Pt+=1)Array.isArray(kt[Pt])?ht.push([we(kt[Pt][0]),kt[Pt][1],kt[Pt][2]]):ht.push([we(kt[Pt])]);wt=ht}else wt=we(kt);return typeof arguments[0]=="string"?wt:(arguments[0].text=wt,arguments[0])};c.events.push(["preProcessText",Lt])}(mi.API),mi.API.autoPrint=function(c){var a;switch((c=c||{}).variant=c.variant||"non-conform",c.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){a=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+a+" 0 R")})}return this},function(c){var a=function(){var l=void 0;Object.defineProperty(this,"pdf",{get:function(){return l},set:function(V){l=V}});var v=150;Object.defineProperty(this,"width",{get:function(){return v},set:function(V){v=isNaN(V)||Number.isInteger(V)===!1||V<0?150:V,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=v+1)}});var F=300;Object.defineProperty(this,"height",{get:function(){return F},set:function(V){F=isNaN(V)||Number.isInteger(V)===!1||V<0?300:V,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=F+1)}});var C=[];Object.defineProperty(this,"childNodes",{get:function(){return C},set:function(V){C=V}});var O={};Object.defineProperty(this,"style",{get:function(){return O},set:function(V){O=V}}),Object.defineProperty(this,"parentNode",{})};a.prototype.getContext=function(l,v){var F;if((l=l||"2d")!=="2d")return null;for(F in v)this.pdf.context2d.hasOwnProperty(F)&&(this.pdf.context2d[F]=v[F]);return this.pdf.context2d._canvas=this,this.pdf.context2d},a.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},c.events.push(["initialized",function(){this.canvas=new a,this.canvas.pdf=this}])}(mi.API),function(c){var a={left:0,top:0,bottom:0,right:0},l=!1,v=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},a),this.internal.__cell__.margins.width=this.getPageWidth(),F.call(this))},F=function(){this.internal.__cell__.lastCell=new C,this.internal.__cell__.pages=1},C=function(){var ie=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ie},set:function(wt){ie=wt}});var _e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _e},set:function(wt){_e=wt}});var We=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return We},set:function(wt){We=wt}});var Ve=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Ve},set:function(wt){Ve=wt}});var ct=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return ct},set:function(wt){ct=wt}});var we=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return we},set:function(wt){we=wt}});var Lt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Lt},set:function(wt){Lt=wt}}),this};C.prototype.clone=function(){return new C(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},C.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},c.setHeaderFunction=function(ie){return v.call(this),this.internal.__cell__.headerFunction=typeof ie=="function"?ie:void 0,this},c.getTextDimensions=function(ie,_e){v.call(this);var We=(_e=_e||{}).fontSize||this.getFontSize(),Ve=_e.font||this.getFont(),ct=_e.scaleFactor||this.internal.scaleFactor,we=0,Lt=0,wt=0,kt=this;if(!Array.isArray(ie)&&typeof ie!="string"){if(typeof ie!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ie=String(ie)}var ht=_e.maxWidth;ht>0?typeof ie=="string"?ie=this.splitTextToSize(ie,ht):Object.prototype.toString.call(ie)==="[object Array]"&&(ie=ie.reduce(function(ar,gr){return ar.concat(kt.splitTextToSize(gr,ht))},[])):ie=Array.isArray(ie)?ie:[ie];for(var Pt=0;Pt<ie.length;Pt++)we<(wt=this.getStringUnitWidth(ie[Pt],{font:Ve})*We)&&(we=wt);return we!==0&&(Lt=ie.length),{w:we/=ct,h:Math.max((Lt*We*this.getLineHeightFactor()-We*(this.getLineHeightFactor()-1))/ct,0)}},c.cellAddPage=function(){v.call(this),this.addPage();var ie=this.internal.__cell__.margins||a;return this.internal.__cell__.lastCell=new C(ie.left,ie.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var O=c.cell=function(){var ie;ie=arguments[0]instanceof C?arguments[0]:new C(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),v.call(this);var _e=this.internal.__cell__.lastCell,We=this.internal.__cell__.padding,Ve=this.internal.__cell__.margins||a,ct=this.internal.__cell__.tableHeaderRow,we=this.internal.__cell__.printHeaders;return _e.lineNumber!==void 0&&(_e.lineNumber===ie.lineNumber?(ie.x=(_e.x||0)+(_e.width||0),ie.y=_e.y||0):_e.y+_e.height+ie.height+Ve.bottom>this.getPageHeight()?(this.cellAddPage(),ie.y=Ve.top,we&&ct&&(this.printHeaderRow(ie.lineNumber,!0),ie.y+=ct[0].height)):ie.y=_e.y+_e.height||ie.y),ie.text[0]!==void 0&&(this.rect(ie.x,ie.y,ie.width,ie.height,l===!0?"FD":void 0),ie.align==="right"?this.text(ie.text,ie.x+ie.width-We,ie.y+We,{align:"right",baseline:"top"}):ie.align==="center"?this.text(ie.text,ie.x+ie.width/2,ie.y+We,{align:"center",baseline:"top",maxWidth:ie.width-We-We}):this.text(ie.text,ie.x+We,ie.y+We,{align:"left",baseline:"top",maxWidth:ie.width-We-We})),this.internal.__cell__.lastCell=ie,this};c.table=function(ie,_e,We,Ve,ct){if(v.call(this),!We)throw new Error("No data for PDF table.");var we,Lt,wt,kt,ht=[],Pt=[],ar=[],gr={},Kr={},yn=[],_r=[],Gt=(ct=ct||{}).autoSize||!1,Dr=ct.printHeaders!==!1,Vr=ct.css&&ct.css["font-size"]!==void 0?16*ct.css["font-size"]:ct.fontSize||12,bt=ct.margins||Object.assign({width:this.getPageWidth()},a),Bt=typeof ct.padding=="number"?ct.padding:3,U=ct.headerBackgroundColor||"#c8c8c8",H=ct.headerTextColor||"#000";if(F.call(this),this.internal.__cell__.printHeaders=Dr,this.internal.__cell__.margins=bt,this.internal.__cell__.table_font_size=Vr,this.internal.__cell__.padding=Bt,this.internal.__cell__.headerBackgroundColor=U,this.internal.__cell__.headerTextColor=H,this.setFontSize(Vr),Ve==null)Pt=ht=Object.keys(We[0]),ar=ht.map(function(){return"left"});else if(Array.isArray(Ve)&&(0,ge.Z)(Ve[0])==="object")for(ht=Ve.map(function(pt){return pt.name}),Pt=Ve.map(function(pt){return pt.prompt||pt.name||""}),ar=Ve.map(function(pt){return pt.align||"left"}),we=0;we<Ve.length;we+=1)Kr[Ve[we].name]=Ve[we].width*(19.049976/25.4);else Array.isArray(Ve)&&typeof Ve[0]=="string"&&(Pt=ht=Ve,ar=ht.map(function(){return"left"}));if(Gt||Array.isArray(Ve)&&typeof Ve[0]=="string")for(we=0;we<ht.length;we+=1){for(gr[kt=ht[we]]=We.map(function(pt){return pt[kt]}),this.setFont(void 0,"bold"),yn.push(this.getTextDimensions(Pt[we],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Lt=gr[kt],this.setFont(void 0,"normal"),wt=0;wt<Lt.length;wt+=1)yn.push(this.getTextDimensions(Lt[wt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Kr[kt]=Math.max.apply(null,yn)+Bt+Bt,yn=[]}if(Dr){var Se={};for(we=0;we<ht.length;we+=1)Se[ht[we]]={},Se[ht[we]].text=Pt[we],Se[ht[we]].align=ar[we];var De=V.call(this,Se,Kr);_r=ht.map(function(pt){return new C(ie,_e,Kr[pt],De,Se[pt].text,void 0,Se[pt].align)}),this.setTableHeaderRow(_r),this.printHeaderRow(1,!1)}var Ye=Ve.reduce(function(pt,Et){return pt[Et.name]=Et.align,pt},{});for(we=0;we<We.length;we+=1){"rowStart"in ct&&ct.rowStart instanceof Function&&ct.rowStart({row:we,data:We[we]},this);var He=V.call(this,We[we],Kr);for(wt=0;wt<ht.length;wt+=1){var dt=We[we][ht[wt]];"cellStart"in ct&&ct.cellStart instanceof Function&&ct.cellStart({row:we,col:wt,data:dt},this),O.call(this,new C(ie,_e,Kr[ht[wt]],He,dt,we+2,Ye[ht[wt]]))}}return this.internal.__cell__.table_x=ie,this.internal.__cell__.table_y=_e,this};var V=function(ie,_e){var We=this.internal.__cell__.padding,Ve=this.internal.__cell__.table_font_size,ct=this.internal.scaleFactor;return Object.keys(ie).map(function(we){var Lt=ie[we];return this.splitTextToSize(Lt.hasOwnProperty("text")?Lt.text:Lt,_e[we]-We-We)},this).map(function(we){return this.getLineHeightFactor()*we.length*Ve/ct+We+We},this).reduce(function(we,Lt){return Math.max(we,Lt)},0)};c.setTableHeaderRow=function(ie){v.call(this),this.internal.__cell__.tableHeaderRow=ie},c.printHeaderRow=function(ie,_e){if(v.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var We;if(l=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ve=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new C(Ve[0],Ve[1],Ve[2],Ve[3],void 0,-1)}this.setFont(void 0,"bold");for(var ct=[],we=0;we<this.internal.__cell__.tableHeaderRow.length;we+=1){We=this.internal.__cell__.tableHeaderRow[we].clone(),_e&&(We.y=this.internal.__cell__.margins.top||0,ct.push(We)),We.lineNumber=ie;var Lt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),O.call(this,We),this.setTextColor(Lt)}ct.length>0&&this.setTableHeaderRow(ct),this.setFont(void 0,"normal"),l=!1}}(mi.API);var Ks={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},bs=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ia=Vl(bs),Qo=[100,200,300,400,500,600,700,800,900],Wl=Vl(Qo);function ac(c){var a=c.family.replace(/"|'/g,"").toLowerCase(),l=function(C){return Ks[C=C||"normal"]?C:"normal"}(c.style),v=function(C){if(!C)return 400;if(typeof C=="number")return C>=100&&C<=900&&C%100==0?C:400;if(/^\d00$/.test(C))return parseInt(C);switch(C){case"bold":return 700;case"normal":default:return 400}}(c.weight),F=function(C){return typeof Ia[C=C||"normal"]=="number"?C:"normal"}(c.stretch);return{family:a,style:l,weight:v,stretch:F,src:c.src||[],ref:c.ref||{name:a,style:[F,l,v].join(" ")}}}function cl(c,a,l,v){var F;for(F=l;F>=0&&F<a.length;F+=v)if(c[a[F]])return c[a[F]];for(F=l;F>=0&&F<a.length;F-=v)if(c[a[F]])return c[a[F]]}var fa={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ia={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function vo(c){return[c.stretch,c.style,c.weight,c.family].join(" ")}function Va(c,a,l){for(var v=(l=l||{}).defaultFontFamily||"times",F=Object.assign({},fa,l.genericFontFamilies||{}),C=null,O=null,V=0;V<a.length;++V)if(F[(C=ac(a[V])).family]&&(C.family=F[C.family]),c.hasOwnProperty(C.family)){O=c[C.family];break}if(!(O=O||c[v]))throw new Error("Could not find a font-family for the rule '"+vo(C)+"' and default family '"+v+"'.");if(O=function(ie,_e){if(_e[ie])return _e[ie];var We=Ia[ie],Ve=We<=Ia.normal?-1:1,ct=cl(_e,bs,We,Ve);if(!ct)throw new Error("Could not find a matching font-stretch value for "+ie);return ct}(C.stretch,O),O=function(ie,_e){if(_e[ie])return _e[ie];for(var We=Ks[ie],Ve=0;Ve<We.length;++Ve)if(_e[We[Ve]])return _e[We[Ve]];throw new Error("Could not find a matching font-style for "+ie)}(C.style,O),!(O=function(ie,_e){if(_e[ie])return _e[ie];if(ie===400&&_e[500])return _e[500];if(ie===500&&_e[400])return _e[400];var We=Wl[ie],Ve=cl(_e,Qo,We,ie<400?-1:1);if(!Ve)throw new Error("Could not find a matching font-weight for value "+ie);return Ve}(C.weight,O)))throw new Error("Failed to resolve a font for the rule '"+vo(C)+"'.");return O}function ao(c){return c.trimLeft()}function Ko(c,a){for(var l=0;l<c.length;){if(c.charAt(l)===a)return[c.substring(0,l),c.substring(l+1)];l+=1}return null}function to(c){var a=c.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return a===null?null:[a[0],c.substring(a[0].length)]}var Jo,Ls,Al,Vs=["times"];(function(c){var a,l,v,F,C,O,V,ie,_e,We=function(de){return de=de||{},this.isStrokeTransparent=de.isStrokeTransparent||!1,this.strokeOpacity=de.strokeOpacity||1,this.strokeStyle=de.strokeStyle||"#000000",this.fillStyle=de.fillStyle||"#000000",this.isFillTransparent=de.isFillTransparent||!1,this.fillOpacity=de.fillOpacity||1,this.font=de.font||"10px sans-serif",this.textBaseline=de.textBaseline||"alphabetic",this.textAlign=de.textAlign||"left",this.lineWidth=de.lineWidth||1,this.lineJoin=de.lineJoin||"miter",this.lineCap=de.lineCap||"butt",this.path=de.path||[],this.transform=de.transform!==void 0?de.transform.clone():new ie,this.globalCompositeOperation=de.globalCompositeOperation||"normal",this.globalAlpha=de.globalAlpha||1,this.clip_path=de.clip_path||[],this.currentPoint=de.currentPoint||new O,this.miterLimit=de.miterLimit||10,this.lastPoint=de.lastPoint||new O,this.lineDashOffset=de.lineDashOffset||0,this.lineDash=de.lineDash||[],this.margin=de.margin||[0,0,0,0],this.prevPageLastElemOffset=de.prevPageLastElemOffset||0,this.ignoreClearRect=typeof de.ignoreClearRect!="boolean"||de.ignoreClearRect,this};c.events.push(["initialized",function(){this.context2d=new Ve(this),a=this.internal.f2,l=this.internal.getCoordinateString,v=this.internal.getVerticalCoordinateString,F=this.internal.getHorizontalCoordinate,C=this.internal.getVerticalCoordinate,O=this.internal.Point,V=this.internal.Rectangle,ie=this.internal.Matrix,_e=new We}]);var Ve=function(de){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Ze=de;Object.defineProperty(this,"pdf",{get:function(){return Ze}});var Je=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Je},set:function(tr){Je=!!tr}});var mt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return mt},set:function(tr){mt=!!tr}});var yt=0;Object.defineProperty(this,"posX",{get:function(){return yt},set:function(tr){isNaN(tr)||(yt=tr)}});var It=0;Object.defineProperty(this,"posY",{get:function(){return It},set:function(tr){isNaN(tr)||(It=tr)}}),Object.defineProperty(this,"margin",{get:function(){return _e.margin},set:function(tr){var St;typeof tr=="number"?St=[tr,tr,tr,tr]:((St=new Array(4))[0]=tr[0],St[1]=tr.length>=2?tr[1]:St[0],St[2]=tr.length>=3?tr[2]:St[0],St[3]=tr.length>=4?tr[3]:St[1]),_e.margin=St}});var Kt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Kt},set:function(tr){Kt=tr}});var Tt=0;Object.defineProperty(this,"lastBreak",{get:function(){return Tt},set:function(tr){Tt=tr}});var pr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return pr},set:function(tr){pr=tr}}),Object.defineProperty(this,"ctx",{get:function(){return _e},set:function(tr){tr instanceof We&&(_e=tr)}}),Object.defineProperty(this,"path",{get:function(){return _e.path},set:function(tr){_e.path=tr}});var sr=[];Object.defineProperty(this,"ctxStack",{get:function(){return sr},set:function(tr){sr=tr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(tr){var St;St=ct(tr),this.ctx.fillStyle=St.style,this.ctx.isFillTransparent=St.a===0,this.ctx.fillOpacity=St.a,this.pdf.setFillColor(St.r,St.g,St.b,{a:St.a}),this.pdf.setTextColor(St.r,St.g,St.b,{a:St.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(tr){var St=ct(tr);this.ctx.strokeStyle=St.style,this.ctx.isStrokeTransparent=St.a===0,this.ctx.strokeOpacity=St.a,St.a===0?this.pdf.setDrawColor(255,255,255):(St.a,this.pdf.setDrawColor(St.r,St.g,St.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(tr){["butt","round","square"].indexOf(tr)!==-1&&(this.ctx.lineCap=tr,this.pdf.setLineCap(tr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(tr){isNaN(tr)||(this.ctx.lineWidth=tr,this.pdf.setLineWidth(tr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(tr){["bevel","round","miter"].indexOf(tr)!==-1&&(this.ctx.lineJoin=tr,this.pdf.setLineJoin(tr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(tr){isNaN(tr)||(this.ctx.miterLimit=tr,this.pdf.setMiterLimit(tr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(tr){this.ctx.textBaseline=tr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(tr){["right","end","center","left","start"].indexOf(tr)!==-1&&(this.ctx.textAlign=tr)}});var Fr=null;function Hr(tr,St){if(Fr===null){var On=function(zr){var wr=[];return Object.keys(zr).forEach(function(Ir){zr[Ir].forEach(function(xr){var kr=null;switch(xr){case"bold":kr={family:Ir,weight:"bold"};break;case"italic":kr={family:Ir,style:"italic"};break;case"bolditalic":kr={family:Ir,weight:"bold",style:"italic"};break;case"":case"normal":kr={family:Ir}}kr!==null&&(kr.ref={name:Ir,style:xr},wr.push(kr))})}),wr}(tr.getFontList());Fr=function(zr){for(var wr={},Ir=0;Ir<zr.length;++Ir){var xr=ac(zr[Ir]),kr=xr.family,fn=xr.stretch,zn=xr.style,Rn=xr.weight;wr[kr]=wr[kr]||{},wr[kr][fn]=wr[kr][fn]||{},wr[kr][fn][zn]=wr[kr][fn][zn]||{},wr[kr][fn][zn][Rn]=xr}return wr}(On.concat(St))}return Fr}var hn=null;Object.defineProperty(this,"fontFaces",{get:function(){return hn},set:function(tr){Fr=null,hn=tr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(tr){var St;if(this.ctx.font=tr,(St=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(tr))!==null){var On=St[1],zr=(St[2],St[3]),wr=St[4],Ir=(St[5],St[6]),xr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(wr)[2];wr=Math.floor(xr==="px"?parseFloat(wr)*this.pdf.internal.scaleFactor:xr==="em"?parseFloat(wr)*this.pdf.getFontSize():parseFloat(wr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(wr);var kr=function(gi){var xi,kn,ha=[],ei=gi.trim();if(ei==="")return Vs;if(ei in ia)return[ia[ei]];for(;ei!=="";){switch(kn=null,xi=(ei=ao(ei)).charAt(0)){case'"':case"'":kn=Ko(ei.substring(1),xi);break;default:kn=to(ei)}if(kn===null||(ha.push(kn[0]),(ei=ao(kn[1]))!==""&&ei.charAt(0)!==","))return Vs;ei=ei.replace(/^,/,"")}return ha}(Ir);if(this.fontFaces){var fn=Va(Hr(this.pdf,this.fontFaces),kr.map(function(gi){return{family:gi,stretch:"normal",weight:zr,style:On}}));this.pdf.setFont(fn.ref.name,fn.ref.style)}else{var zn="";(zr==="bold"||parseInt(zr,10)>=700||On==="bold")&&(zn="bold"),On==="italic"&&(zn+="italic"),zn.length===0&&(zn="normal");for(var Rn="",Bn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ii=0;ii<kr.length;ii++){if(this.pdf.internal.getFont(kr[ii],zn,{noFallback:!0,disableWarning:!0})!==void 0){Rn=kr[ii];break}if(zn==="bolditalic"&&this.pdf.internal.getFont(kr[ii],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Rn=kr[ii],zn="bold";else if(this.pdf.internal.getFont(kr[ii],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Rn=kr[ii],zn="normal";break}}if(Rn===""){for(var Ei=0;Ei<kr.length;Ei++)if(Bn[kr[Ei]]){Rn=Bn[kr[Ei]];break}}Rn=Rn===""?"Times":Rn,this.pdf.setFont(Rn,zn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(tr){this.ctx.globalCompositeOperation=tr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(tr){this.ctx.globalAlpha=tr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(tr){this.ctx.lineDashOffset=tr,Et.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(tr){this.ctx.lineDash=tr,Et.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(tr){this.ctx.ignoreClearRect=!!tr}})};Ve.prototype.setLineDash=function(de){this.lineDash=de},Ve.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ve.prototype.fill=function(){gr.call(this,"fill",!1)},Ve.prototype.stroke=function(){gr.call(this,"stroke",!1)},Ve.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ve.prototype.moveTo=function(de,Ze){if(isNaN(de)||isNaN(Ze))throw Mn.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Je=this.ctx.transform.applyToPoint(new O(de,Ze));this.path.push({type:"mt",x:Je.x,y:Je.y}),this.ctx.lastPoint=new O(de,Ze)},Ve.prototype.closePath=function(){var de=new O(0,0),Ze=0;for(Ze=this.path.length-1;Ze!==-1;Ze--)if(this.path[Ze].type==="begin"&&(0,ge.Z)(this.path[Ze+1])==="object"&&typeof this.path[Ze+1].x=="number"){de=new O(this.path[Ze+1].x,this.path[Ze+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new O(de.x,de.y)},Ve.prototype.lineTo=function(de,Ze){if(isNaN(de)||isNaN(Ze))throw Mn.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Je=this.ctx.transform.applyToPoint(new O(de,Ze));this.path.push({type:"lt",x:Je.x,y:Je.y}),this.ctx.lastPoint=new O(Je.x,Je.y)},Ve.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),gr.call(this,null,!0)},Ve.prototype.quadraticCurveTo=function(de,Ze,Je,mt){if(isNaN(Je)||isNaN(mt)||isNaN(de)||isNaN(Ze))throw Mn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var yt=this.ctx.transform.applyToPoint(new O(Je,mt)),It=this.ctx.transform.applyToPoint(new O(de,Ze));this.path.push({type:"qct",x1:It.x,y1:It.y,x:yt.x,y:yt.y}),this.ctx.lastPoint=new O(yt.x,yt.y)},Ve.prototype.bezierCurveTo=function(de,Ze,Je,mt,yt,It){if(isNaN(yt)||isNaN(It)||isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt))throw Mn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Kt=this.ctx.transform.applyToPoint(new O(yt,It)),Tt=this.ctx.transform.applyToPoint(new O(de,Ze)),pr=this.ctx.transform.applyToPoint(new O(Je,mt));this.path.push({type:"bct",x1:Tt.x,y1:Tt.y,x2:pr.x,y2:pr.y,x:Kt.x,y:Kt.y}),this.ctx.lastPoint=new O(Kt.x,Kt.y)},Ve.prototype.arc=function(de,Ze,Je,mt,yt,It){if(isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt)||isNaN(yt))throw Mn.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(It=!!It,!this.ctx.transform.isIdentity){var Kt=this.ctx.transform.applyToPoint(new O(de,Ze));de=Kt.x,Ze=Kt.y;var Tt=this.ctx.transform.applyToPoint(new O(0,Je)),pr=this.ctx.transform.applyToPoint(new O(0,0));Je=Math.sqrt(Math.pow(Tt.x-pr.x,2)+Math.pow(Tt.y-pr.y,2))}Math.abs(yt-mt)>=2*Math.PI&&(mt=0,yt=2*Math.PI),this.path.push({type:"arc",x:de,y:Ze,radius:Je,startAngle:mt,endAngle:yt,counterclockwise:It})},Ve.prototype.arcTo=function(de,Ze,Je,mt,yt){throw new Error("arcTo not implemented.")},Ve.prototype.rect=function(de,Ze,Je,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt))throw Mn.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(de,Ze),this.lineTo(de+Je,Ze),this.lineTo(de+Je,Ze+mt),this.lineTo(de,Ze+mt),this.lineTo(de,Ze),this.lineTo(de+Je,Ze),this.lineTo(de,Ze)},Ve.prototype.fillRect=function(de,Ze,Je,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt))throw Mn.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!we.call(this)){var yt={};this.lineCap!=="butt"&&(yt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(yt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(de,Ze,Je,mt),this.fill(),yt.hasOwnProperty("lineCap")&&(this.lineCap=yt.lineCap),yt.hasOwnProperty("lineJoin")&&(this.lineJoin=yt.lineJoin)}},Ve.prototype.strokeRect=function(de,Ze,Je,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt))throw Mn.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Lt.call(this)||(this.beginPath(),this.rect(de,Ze,Je,mt),this.stroke())},Ve.prototype.clearRect=function(de,Ze,Je,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt))throw Mn.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(de,Ze,Je,mt))},Ve.prototype.save=function(de){de=typeof de!="boolean"||de;for(var Ze=this.pdf.internal.getCurrentPageInfo().pageNumber,Je=0;Je<this.pdf.internal.getNumberOfPages();Je++)this.pdf.setPage(Je+1),this.pdf.internal.out("q");if(this.pdf.setPage(Ze),de){this.ctx.fontSize=this.pdf.internal.getFontSize();var mt=new We(this.ctx);this.ctxStack.push(this.ctx),this.ctx=mt}},Ve.prototype.restore=function(de){de=typeof de!="boolean"||de;for(var Ze=this.pdf.internal.getCurrentPageInfo().pageNumber,Je=0;Je<this.pdf.internal.getNumberOfPages();Je++)this.pdf.setPage(Je+1),this.pdf.internal.out("Q");this.pdf.setPage(Ze),de&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Ve.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var ct=function(de){var Ze,Je,mt,yt;if(de.isCanvasGradient===!0&&(de=de.getColor()),!de)return{r:0,g:0,b:0,a:0,style:de};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(de))Ze=0,Je=0,mt=0,yt=0;else{var It=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(de);if(It!==null)Ze=parseInt(It[1]),Je=parseInt(It[2]),mt=parseInt(It[3]),yt=1;else if((It=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(de))!==null)Ze=parseInt(It[1]),Je=parseInt(It[2]),mt=parseInt(It[3]),yt=parseFloat(It[4]);else{if(yt=1,typeof de=="string"&&de.charAt(0)!=="#"){var Kt=new si(de);de=Kt.ok?Kt.toHex():"#000000"}de.length===4?(Ze=de.substring(1,2),Ze+=Ze,Je=de.substring(2,3),Je+=Je,mt=de.substring(3,4),mt+=mt):(Ze=de.substring(1,3),Je=de.substring(3,5),mt=de.substring(5,7)),Ze=parseInt(Ze,16),Je=parseInt(Je,16),mt=parseInt(mt,16)}}return{r:Ze,g:Je,b:mt,a:yt,style:de}},we=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Lt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ve.prototype.fillText=function(de,Ze,Je,mt){if(isNaN(Ze)||isNaN(Je)||typeof de!="string")throw Mn.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(mt=isNaN(mt)?void 0:mt,!we.call(this)){var yt=He(this.ctx.transform.rotation),It=this.ctx.transform.scaleX;Bt.call(this,{text:de,x:Ze,y:Je,scale:It,angle:yt,align:this.textAlign,maxWidth:mt})}},Ve.prototype.strokeText=function(de,Ze,Je,mt){if(isNaN(Ze)||isNaN(Je)||typeof de!="string")throw Mn.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Lt.call(this)){mt=isNaN(mt)?void 0:mt;var yt=He(this.ctx.transform.rotation),It=this.ctx.transform.scaleX;Bt.call(this,{text:de,x:Ze,y:Je,scale:It,renderingMode:"stroke",angle:yt,align:this.textAlign,maxWidth:mt})}},Ve.prototype.measureText=function(de){if(typeof de!="string")throw Mn.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ze=this.pdf,Je=this.pdf.internal.scaleFactor,mt=Ze.internal.getFontSize(),yt=Ze.getStringUnitWidth(de)*mt/Ze.internal.scaleFactor,It=function(Kt){var Tt=(Kt=Kt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Tt}}),this};return new It({width:yt*=Math.round(96*Je/72*1e4)/1e4})},Ve.prototype.scale=function(de,Ze){if(isNaN(de)||isNaN(Ze))throw Mn.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Je=new ie(de,0,0,Ze,0,0);this.ctx.transform=this.ctx.transform.multiply(Je)},Ve.prototype.rotate=function(de){if(isNaN(de))throw Mn.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ze=new ie(Math.cos(de),Math.sin(de),-Math.sin(de),Math.cos(de),0,0);this.ctx.transform=this.ctx.transform.multiply(Ze)},Ve.prototype.translate=function(de,Ze){if(isNaN(de)||isNaN(Ze))throw Mn.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Je=new ie(1,0,0,1,de,Ze);this.ctx.transform=this.ctx.transform.multiply(Je)},Ve.prototype.transform=function(de,Ze,Je,mt,yt,It){if(isNaN(de)||isNaN(Ze)||isNaN(Je)||isNaN(mt)||isNaN(yt)||isNaN(It))throw Mn.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Kt=new ie(de,Ze,Je,mt,yt,It);this.ctx.transform=this.ctx.transform.multiply(Kt)},Ve.prototype.setTransform=function(de,Ze,Je,mt,yt,It){de=isNaN(de)?1:de,Ze=isNaN(Ze)?0:Ze,Je=isNaN(Je)?0:Je,mt=isNaN(mt)?1:mt,yt=isNaN(yt)?0:yt,It=isNaN(It)?0:It,this.ctx.transform=new ie(de,Ze,Je,mt,yt,It)};var wt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ve.prototype.drawImage=function(de,Ze,Je,mt,yt,It,Kt,Tt,pr){var sr=this.pdf.getImageProperties(de),Fr=1,Hr=1,hn=1,tr=1;mt!==void 0&&Tt!==void 0&&(hn=Tt/mt,tr=pr/yt,Fr=sr.width/mt*Tt/mt,Hr=sr.height/yt*pr/yt),It===void 0&&(It=Ze,Kt=Je,Ze=0,Je=0),mt!==void 0&&Tt===void 0&&(Tt=mt,pr=yt),mt===void 0&&Tt===void 0&&(Tt=sr.width,pr=sr.height);for(var St,On=this.ctx.transform.decompose(),zr=He(On.rotate.shx),wr=new ie,Ir=(wr=(wr=(wr=wr.multiply(On.translate)).multiply(On.skew)).multiply(On.scale)).applyToRectangle(new V(It-Ze*hn,Kt-Je*tr,mt*Fr,yt*Hr)),xr=kt.call(this,Ir),kr=[],fn=0;fn<xr.length;fn+=1)kr.indexOf(xr[fn])===-1&&kr.push(xr[fn]);if(ar(kr),this.autoPaging)for(var zn=kr[0],Rn=kr[kr.length-1],Bn=zn;Bn<Rn+1;Bn++){this.pdf.setPage(Bn);var ii=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ei=Bn===1?this.posY+this.margin[0]:this.margin[0],gi=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],xi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],kn=Bn===1?0:gi+(Bn-2)*xi;if(this.ctx.clip_path.length!==0){var ha=this.path;St=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(St,this.posX+this.margin[3],-kn+Ei+this.ctx.prevPageLastElemOffset),Kr.call(this,"fill",!0),this.path=ha}var ei=JSON.parse(JSON.stringify(Ir));ei=Pt([ei],this.posX+this.margin[3],-kn+Ei+this.ctx.prevPageLastElemOffset)[0];var uo=(Bn>zn||Bn<Rn)&&wt.call(this);uo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ii,xi,null).clip().discardPath()),this.pdf.addImage(de,"JPEG",ei.x,ei.y,ei.w,ei.h,null,null,zr),uo&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(de,"JPEG",Ir.x,Ir.y,Ir.w,Ir.h,null,null,zr)};var kt=function(de,Ze,Je){var mt=[];Ze=Ze||this.pdf.internal.pageSize.width,Je=Je||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var yt=this.posY+this.ctx.prevPageLastElemOffset;switch(de.type){default:case"mt":case"lt":mt.push(Math.floor((de.y+yt)/Je)+1);break;case"arc":mt.push(Math.floor((de.y+yt-de.radius)/Je)+1),mt.push(Math.floor((de.y+yt+de.radius)/Je)+1);break;case"qct":var It=dt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,de.x1,de.y1,de.x,de.y);mt.push(Math.floor((It.y+yt)/Je)+1),mt.push(Math.floor((It.y+It.h+yt)/Je)+1);break;case"bct":var Kt=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,de.x1,de.y1,de.x2,de.y2,de.x,de.y);mt.push(Math.floor((Kt.y+yt)/Je)+1),mt.push(Math.floor((Kt.y+Kt.h+yt)/Je)+1);break;case"rect":mt.push(Math.floor((de.y+yt)/Je)+1),mt.push(Math.floor((de.y+de.h+yt)/Je)+1)}for(var Tt=0;Tt<mt.length;Tt+=1)for(;this.pdf.internal.getNumberOfPages()<mt[Tt];)ht.call(this);return mt},ht=function(){var de=this.fillStyle,Ze=this.strokeStyle,Je=this.font,mt=this.lineCap,yt=this.lineWidth,It=this.lineJoin;this.pdf.addPage(),this.fillStyle=de,this.strokeStyle=Ze,this.font=Je,this.lineCap=mt,this.lineWidth=yt,this.lineJoin=It},Pt=function(de,Ze,Je){for(var mt=0;mt<de.length;mt++)switch(de[mt].type){case"bct":de[mt].x2+=Ze,de[mt].y2+=Je;case"qct":de[mt].x1+=Ze,de[mt].y1+=Je;case"mt":case"lt":case"arc":default:de[mt].x+=Ze,de[mt].y+=Je}return de},ar=function(de){return de.sort(function(Ze,Je){return Ze-Je})},gr=function(de,Ze){for(var Je,mt,yt=this.fillStyle,It=this.strokeStyle,Kt=this.lineCap,Tt=this.lineWidth,pr=Math.abs(Tt*this.ctx.transform.scaleX),sr=this.lineJoin,Fr=JSON.parse(JSON.stringify(this.path)),Hr=JSON.parse(JSON.stringify(this.path)),hn=[],tr=0;tr<Hr.length;tr++)if(Hr[tr].x!==void 0)for(var St=kt.call(this,Hr[tr]),On=0;On<St.length;On+=1)hn.indexOf(St[On])===-1&&hn.push(St[On]);for(var zr=0;zr<hn.length;zr++)for(;this.pdf.internal.getNumberOfPages()<hn[zr];)ht.call(this);if(ar(hn),this.autoPaging)for(var wr=hn[0],Ir=hn[hn.length-1],xr=wr;xr<Ir+1;xr++){this.pdf.setPage(xr),this.fillStyle=yt,this.strokeStyle=It,this.lineCap=Kt,this.lineWidth=pr,this.lineJoin=sr;var kr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fn=xr===1?this.posY+this.margin[0]:this.margin[0],zn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Rn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Bn=xr===1?0:zn+(xr-2)*Rn;if(this.ctx.clip_path.length!==0){var ii=this.path;Je=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(Je,this.posX+this.margin[3],-Bn+fn+this.ctx.prevPageLastElemOffset),Kr.call(this,de,!0),this.path=ii}if(mt=JSON.parse(JSON.stringify(Fr)),this.path=Pt(mt,this.posX+this.margin[3],-Bn+fn+this.ctx.prevPageLastElemOffset),Ze===!1||xr===0){var Ei=(xr>wr||xr<Ir)&&wt.call(this);Ei&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kr,Rn,null).clip().discardPath()),Kr.call(this,de,Ze),Ei&&this.pdf.restoreGraphicsState()}this.lineWidth=Tt}else this.lineWidth=pr,Kr.call(this,de,Ze),this.lineWidth=Tt;this.path=Fr},Kr=function(de,Ze){if((de!=="stroke"||Ze||!Lt.call(this))&&(de==="stroke"||Ze||!we.call(this))){for(var Je,mt,yt=[],It=this.path,Kt=0;Kt<It.length;Kt++){var Tt=It[Kt];switch(Tt.type){case"begin":yt.push({begin:!0});break;case"close":yt.push({close:!0});break;case"mt":yt.push({start:Tt,deltas:[],abs:[]});break;case"lt":var pr=yt.length;if(It[Kt-1]&&!isNaN(It[Kt-1].x)&&(Je=[Tt.x-It[Kt-1].x,Tt.y-It[Kt-1].y],pr>0)){for(;pr>=0;pr--)if(yt[pr-1].close!==!0&&yt[pr-1].begin!==!0){yt[pr-1].deltas.push(Je),yt[pr-1].abs.push(Tt);break}}break;case"bct":Je=[Tt.x1-It[Kt-1].x,Tt.y1-It[Kt-1].y,Tt.x2-It[Kt-1].x,Tt.y2-It[Kt-1].y,Tt.x-It[Kt-1].x,Tt.y-It[Kt-1].y],yt[yt.length-1].deltas.push(Je);break;case"qct":var sr=It[Kt-1].x+2/3*(Tt.x1-It[Kt-1].x),Fr=It[Kt-1].y+2/3*(Tt.y1-It[Kt-1].y),Hr=Tt.x+2/3*(Tt.x1-Tt.x),hn=Tt.y+2/3*(Tt.y1-Tt.y),tr=Tt.x,St=Tt.y;Je=[sr-It[Kt-1].x,Fr-It[Kt-1].y,Hr-It[Kt-1].x,hn-It[Kt-1].y,tr-It[Kt-1].x,St-It[Kt-1].y],yt[yt.length-1].deltas.push(Je);break;case"arc":yt.push({deltas:[],abs:[],arc:!0}),Array.isArray(yt[yt.length-1].abs)&&yt[yt.length-1].abs.push(Tt)}}mt=Ze?null:de==="stroke"?"stroke":"fill";for(var On=!1,zr=0;zr<yt.length;zr++)if(yt[zr].arc)for(var wr=yt[zr].abs,Ir=0;Ir<wr.length;Ir++){var xr=wr[Ir];xr.type==="arc"?Gt.call(this,xr.x,xr.y,xr.radius,xr.startAngle,xr.endAngle,xr.counterclockwise,void 0,Ze,!On):U.call(this,xr.x,xr.y),On=!0}else if(yt[zr].close===!0)this.pdf.internal.out("h"),On=!1;else if(yt[zr].begin!==!0){var kr=yt[zr].start.x,fn=yt[zr].start.y;H.call(this,yt[zr].deltas,kr,fn),On=!0}mt&&Dr.call(this,mt),Ze&&Vr.call(this)}},yn=function(de){var Ze=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Je=Ze*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return de-Je;case"top":return de+Ze-Je;case"hanging":return de+Ze-2*Je;case"middle":return de+Ze/2-Je;case"ideographic":return de;case"alphabetic":default:return de}},_r=function(de){return de+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ve.prototype.createLinearGradient=function(){var de=function(){};return de.colorStops=[],de.addColorStop=function(Ze,Je){this.colorStops.push([Ze,Je])},de.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},de.isCanvasGradient=!0,de},Ve.prototype.createPattern=function(){return this.createLinearGradient()},Ve.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Gt=function(de,Ze,Je,mt,yt,It,Kt,Tt,pr){for(var sr=De.call(this,Je,mt,yt,It),Fr=0;Fr<sr.length;Fr++){var Hr=sr[Fr];Fr===0&&(pr?bt.call(this,Hr.x1+de,Hr.y1+Ze):U.call(this,Hr.x1+de,Hr.y1+Ze)),Se.call(this,de,Ze,Hr.x2,Hr.y2,Hr.x3,Hr.y3,Hr.x4,Hr.y4)}Tt?Vr.call(this):Dr.call(this,Kt)},Dr=function(de){switch(de){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Vr=function(){this.pdf.clip(),this.pdf.discardPath()},bt=function(de,Ze){this.pdf.internal.out(l(de)+" "+v(Ze)+" m")},Bt=function(de){var Ze;switch(de.align){case"right":case"end":Ze="right";break;case"center":Ze="center";break;case"left":case"start":default:Ze="left"}var Je=this.pdf.getTextDimensions(de.text),mt=yn.call(this,de.y),yt=_r.call(this,mt)-Je.h,It=this.ctx.transform.applyToPoint(new O(de.x,mt)),Kt=this.ctx.transform.decompose(),Tt=new ie;Tt=(Tt=(Tt=Tt.multiply(Kt.translate)).multiply(Kt.skew)).multiply(Kt.scale);for(var pr,sr,Fr,Hr=this.ctx.transform.applyToRectangle(new V(de.x,mt,Je.w,Je.h)),hn=Tt.applyToRectangle(new V(de.x,yt,Je.w,Je.h)),tr=kt.call(this,hn),St=[],On=0;On<tr.length;On+=1)St.indexOf(tr[On])===-1&&St.push(tr[On]);if(ar(St),this.autoPaging)for(var zr=St[0],wr=St[St.length-1],Ir=zr;Ir<wr+1;Ir++){this.pdf.setPage(Ir);var xr=Ir===1?this.posY+this.margin[0]:this.margin[0],kr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],fn=this.pdf.internal.pageSize.height-this.margin[2],zn=fn-this.margin[0],Rn=this.pdf.internal.pageSize.width-this.margin[1],Bn=Rn-this.margin[3],ii=Ir===1?0:kr+(Ir-2)*zn;if(this.ctx.clip_path.length!==0){var Ei=this.path;pr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(pr,this.posX+this.margin[3],-1*ii+xr),Kr.call(this,"fill",!0),this.path=Ei}var gi=Pt([JSON.parse(JSON.stringify(hn))],this.posX+this.margin[3],-ii+xr+this.ctx.prevPageLastElemOffset)[0];de.scale>=.01&&(sr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(sr*de.scale),Fr=this.lineWidth,this.lineWidth=Fr*de.scale);var xi=this.autoPaging!=="text";if(xi||gi.y+gi.h<=fn){if(xi||gi.y>=xr&&gi.x<=Rn){var kn=xi?de.text:this.pdf.splitTextToSize(de.text,de.maxWidth||Rn-gi.x)[0],ha=Pt([JSON.parse(JSON.stringify(Hr))],this.posX+this.margin[3],-ii+xr+this.ctx.prevPageLastElemOffset)[0],ei=xi&&(Ir>zr||Ir<wr)&&wt.call(this);ei&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Bn,zn,null).clip().discardPath()),this.pdf.text(kn,ha.x,ha.y,{angle:de.angle,align:Ze,renderingMode:de.renderingMode}),ei&&this.pdf.restoreGraphicsState()}}else gi.y<fn&&(this.ctx.prevPageLastElemOffset+=fn-gi.y);de.scale>=.01&&(this.pdf.setFontSize(sr),this.lineWidth=Fr)}else de.scale>=.01&&(sr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(sr*de.scale),Fr=this.lineWidth,this.lineWidth=Fr*de.scale),this.pdf.text(de.text,It.x+this.posX,It.y+this.posY,{angle:de.angle,align:Ze,renderingMode:de.renderingMode,maxWidth:de.maxWidth}),de.scale>=.01&&(this.pdf.setFontSize(sr),this.lineWidth=Fr)},U=function(de,Ze,Je,mt){Je=Je||0,mt=mt||0,this.pdf.internal.out(l(de+Je)+" "+v(Ze+mt)+" l")},H=function(de,Ze,Je){return this.pdf.lines(de,Ze,Je,null,null)},Se=function(de,Ze,Je,mt,yt,It,Kt,Tt){this.pdf.internal.out([a(F(Je+de)),a(C(mt+Ze)),a(F(yt+de)),a(C(It+Ze)),a(F(Kt+de)),a(C(Tt+Ze)),"c"].join(" "))},De=function(de,Ze,Je,mt){for(var yt=2*Math.PI,It=Math.PI/2;Ze>Je;)Ze-=yt;var Kt=Math.abs(Je-Ze);Kt<yt&&mt&&(Kt=yt-Kt);for(var Tt=[],pr=mt?-1:1,sr=Ze;Kt>1e-5;){var Fr=sr+pr*Math.min(Kt,It);Tt.push(Ye.call(this,de,sr,Fr)),Kt-=Math.abs(Fr-sr),sr=Fr}return Tt},Ye=function(de,Ze,Je){var mt=(Je-Ze)/2,yt=de*Math.cos(mt),It=de*Math.sin(mt),Kt=yt,Tt=-It,pr=Kt*Kt+Tt*Tt,sr=pr+Kt*yt+Tt*It,Fr=4/3*(Math.sqrt(2*pr*sr)-sr)/(Kt*It-Tt*yt),Hr=Kt-Fr*Tt,hn=Tt+Fr*Kt,tr=Hr,St=-hn,On=mt+Ze,zr=Math.cos(On),wr=Math.sin(On);return{x1:de*Math.cos(Ze),y1:de*Math.sin(Ze),x2:Hr*zr-hn*wr,y2:Hr*wr+hn*zr,x3:tr*zr-St*wr,y3:tr*wr+St*zr,x4:de*Math.cos(Je),y4:de*Math.sin(Je)}},He=function(de){return 180*de/Math.PI},dt=function(de,Ze,Je,mt,yt,It){var Kt=de+.5*(Je-de),Tt=Ze+.5*(mt-Ze),pr=yt+.5*(Je-yt),sr=It+.5*(mt-It),Fr=Math.min(de,yt,Kt,pr),Hr=Math.max(de,yt,Kt,pr),hn=Math.min(Ze,It,Tt,sr),tr=Math.max(Ze,It,Tt,sr);return new V(Fr,hn,Hr-Fr,tr-hn)},pt=function(de,Ze,Je,mt,yt,It,Kt,Tt){var pr,sr,Fr,Hr,hn,tr,St,On,zr,wr,Ir,xr,kr,fn,zn=Je-de,Rn=mt-Ze,Bn=yt-Je,ii=It-mt,Ei=Kt-yt,gi=Tt-It;for(sr=0;sr<41;sr++)zr=(St=(Fr=de+(pr=sr/40)*zn)+pr*((hn=Je+pr*Bn)-Fr))+pr*(hn+pr*(yt+pr*Ei-hn)-St),wr=(On=(Hr=Ze+pr*Rn)+pr*((tr=mt+pr*ii)-Hr))+pr*(tr+pr*(It+pr*gi-tr)-On),sr==0?(Ir=zr,xr=wr,kr=zr,fn=wr):(Ir=Math.min(Ir,zr),xr=Math.min(xr,wr),kr=Math.max(kr,zr),fn=Math.max(fn,wr));return new V(Math.round(Ir),Math.round(xr),Math.round(kr-Ir),Math.round(fn-xr))},Et=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var de,Ze,Je=(de=this.ctx.lineDash,Ze=this.ctx.lineDashOffset,JSON.stringify({lineDash:de,lineDashOffset:Ze}));this.prevLineDash!==Je&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Je)}}})(mi.API),function(c){var a=function(C){var O,V,ie,_e,We,Ve,ct,we,Lt,wt;for(/[^\x00-\xFF]/.test(C),V=[],ie=0,_e=(C+=O="\0\0\0\0".slice(C.length%4||4)).length;_e>ie;ie+=4)(We=(C.charCodeAt(ie)<<24)+(C.charCodeAt(ie+1)<<16)+(C.charCodeAt(ie+2)<<8)+C.charCodeAt(ie+3))!==0?(Ve=(We=((We=((We=((We=(We-(wt=We%85))/85)-(Lt=We%85))/85)-(we=We%85))/85)-(ct=We%85))/85)%85,V.push(Ve+33,ct+33,we+33,Lt+33,wt+33)):V.push(122);return function(kt,ht){for(var Pt=ht;Pt>0;Pt--)kt.pop()}(V,O.length),String.fromCharCode.apply(String,V)+"~>"},l=function(C){var O,V,ie,_e,We,Ve=String,ct="length",we=255,Lt="charCodeAt",wt="slice",kt="replace";for(C[wt](-2),C=C[wt](0,-2)[kt](/\s/g,"")[kt]("z","!!!!!"),ie=[],_e=0,We=(C+=O="uuuuu"[wt](C[ct]%5||5))[ct];We>_e;_e+=5)V=52200625*(C[Lt](_e)-33)+614125*(C[Lt](_e+1)-33)+7225*(C[Lt](_e+2)-33)+85*(C[Lt](_e+3)-33)+(C[Lt](_e+4)-33),ie.push(we&V>>24,we&V>>16,we&V>>8,we&V);return function(ht,Pt){for(var ar=Pt;ar>0;ar--)ht.pop()}(ie,O[ct]),Ve.fromCharCode.apply(Ve,ie)},v=function(C){var O=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((C=C.replace(/\s/g,"")).indexOf(">")!==-1&&(C=C.substr(0,C.indexOf(">"))),C.length%2&&(C+="0"),O.test(C)===!1)return"";for(var V="",ie=0;ie<C.length;ie+=2)V+=String.fromCharCode("0x"+(C[ie]+C[ie+1]));return V},F=function(C){for(var O=new Uint8Array(C.length),V=C.length;V--;)O[V]=C.charCodeAt(V);return C=(O=oi(O)).reduce(function(ie,_e){return ie+String.fromCharCode(_e)},"")};c.processDataByFilters=function(C,O){var V=0,ie=C||"",_e=[];for(typeof(O=O||[])=="string"&&(O=[O]),V=0;V<O.length;V+=1)switch(O[V]){case"ASCII85Decode":case"/ASCII85Decode":ie=l(ie),_e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ie=a(ie),_e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ie=v(ie),_e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ie=ie.split("").map(function(We){return("0"+We.charCodeAt().toString(16)).slice(-2)}).join("")+">",_e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ie=F(ie),_e.push("/FlateDecode");break;default:throw new Error('The filter: "'+O[V]+'" is not implemented')}return{data:ie,reverseChain:_e.reverse().join(" ")}}}(mi.API),function(c){c.loadFile=function(a,l,v){return function(F,C,O){C=C!==!1,O=typeof O=="function"?O:function(){};var V=void 0;try{V=function(ie,_e,We){var Ve=new XMLHttpRequest,ct=0,we=function(Lt){var wt=Lt.length,kt=[],ht=String.fromCharCode;for(ct=0;ct<wt;ct+=1)kt.push(ht(255&Lt.charCodeAt(ct)));return kt.join("")};if(Ve.open("GET",ie,!_e),Ve.overrideMimeType("text/plain; charset=x-user-defined"),_e===!1&&(Ve.onload=function(){Ve.status===200?We(we(this.responseText)):We(void 0)}),Ve.send(null),_e&&Ve.status===200)return we(Ve.responseText)}(F,C,O)}catch(ie){}return V}(a,l,v)},c.loadImageFile=c.loadFile}(mi.API),function(c){function a(){return(ln.html2canvas?Promise.resolve(ln.html2canvas):Promise.resolve().then(x.t.bind(x,64270,23))).catch(function(O){return Promise.reject(new Error("Could not load html2canvas: "+O))}).then(function(O){return O.default?O.default:O})}function l(){return(ln.DOMPurify?Promise.resolve(ln.DOMPurify):x.e(3985).then(x.t.bind(x,73985,23))).catch(function(O){return Promise.reject(new Error("Could not load dompurify: "+O))}).then(function(O){return O.default?O.default:O})}var v=function(O){var V=(0,ge.Z)(O);return V==="undefined"?"undefined":V==="string"||O instanceof String?"string":V==="number"||O instanceof Number?"number":V==="function"||O instanceof Function?"function":O&&O.constructor===Array?"array":O&&O.nodeType===1?"element":V==="object"?"object":"unknown"},F=function(O,V){var ie=document.createElement(O);for(var _e in V.className&&(ie.className=V.className),V.innerHTML&&V.dompurify&&(ie.innerHTML=V.dompurify.sanitize(V.innerHTML)),V.style)ie.style[_e]=V.style[_e];return ie},C=function O(V){var ie=Object.assign(O.convert(Promise.resolve()),JSON.parse(JSON.stringify(O.template))),_e=O.convert(Promise.resolve(),ie);return _e=(_e=_e.setProgress(1,O,1,[O])).set(V)};(C.prototype=Object.create(Promise.prototype)).constructor=C,C.convert=function(O,V){return O.__proto__=V||C.prototype,O},C.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},C.prototype.from=function(O,V){return this.then(function(){switch(V=V||function(ie){switch(v(ie)){case"string":return"string";case"element":return ie.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(O)){case"string":return this.then(l).then(function(ie){return this.set({src:F("div",{innerHTML:O,dompurify:ie})})});case"element":return this.set({src:O});case"canvas":return this.set({canvas:O});case"img":return this.set({img:O});default:return this.error("Unknown source type.")}})},C.prototype.to=function(O){switch(O){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},C.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var O={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},V=function ie(_e,We){for(var Ve=_e.nodeType===3?document.createTextNode(_e.nodeValue):_e.cloneNode(!1),ct=_e.firstChild;ct;ct=ct.nextSibling)We!==!0&&ct.nodeType===1&&ct.nodeName==="SCRIPT"||Ve.appendChild(ie(ct,We));return _e.nodeType===1&&(_e.nodeName==="CANVAS"?(Ve.width=_e.width,Ve.height=_e.height,Ve.getContext("2d").drawImage(_e,0,0)):_e.nodeName!=="TEXTAREA"&&_e.nodeName!=="SELECT"||(Ve.value=_e.value),Ve.addEventListener("load",function(){Ve.scrollTop=_e.scrollTop,Ve.scrollLeft=_e.scrollLeft},!0)),Ve}(this.prop.src,this.opt.html2canvas.javascriptEnabled);V.tagName==="BODY"&&(O.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=F("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=F("div",{className:"html2pdf__container",style:O}),this.prop.container.appendChild(V),this.prop.container.firstChild.appendChild(F("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},C.prototype.toCanvas=function(){var O=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(O).then(a).then(function(V){var ie=Object.assign({},this.opt.html2canvas);return delete ie.onrendered,V(this.prop.container,ie)}).then(function(V){(this.opt.html2canvas.onrendered||function(){})(V),this.prop.canvas=V,document.body.removeChild(this.prop.overlay)})},C.prototype.toContext2d=function(){var O=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(O).then(a).then(function(V){var ie=this.opt.jsPDF,_e=this.opt.fontFaces,We=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Ve=Object.assign({async:!0,allowTaint:!0,scale:We,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Ve.onrendered,ie.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ie.context2d.posX=this.opt.x,ie.context2d.posY=this.opt.y,ie.context2d.margin=this.opt.margin,ie.context2d.fontFaces=_e,_e)for(var ct=0;ct<_e.length;++ct){var we=_e[ct],Lt=we.src.find(function(wt){return wt.format==="truetype"});Lt&&ie.addFont(Lt.url,we.ref.name,we.ref.style)}return Ve.windowHeight=Ve.windowHeight||0,Ve.windowHeight=Ve.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ve.windowHeight,ie.context2d.save(!0),V(this.prop.container,Ve)}).then(function(V){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(V),this.prop.canvas=V,document.body.removeChild(this.prop.overlay)})},C.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var O=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=O})},C.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},C.prototype.output=function(O,V,ie){return(ie=ie||"pdf").toLowerCase()==="img"||ie.toLowerCase()==="image"?this.outputImg(O,V):this.outputPdf(O,V)},C.prototype.outputPdf=function(O,V){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(O,V)})},C.prototype.outputImg=function(O){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(O){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+O+'" is not supported.'}})},C.prototype.save=function(O){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(O?{filename:O}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},C.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},C.prototype.set=function(O){if(v(O)!=="object")return this;var V=Object.keys(O||{}).map(function(ie){if(ie in C.template.prop)return function(){this.prop[ie]=O[ie]};switch(ie){case"margin":return this.setMargin.bind(this,O.margin);case"jsPDF":return function(){return this.opt.jsPDF=O.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,O.pageSize);default:return function(){this.opt[ie]=O[ie]}}},this);return this.then(function(){return this.thenList(V)})},C.prototype.get=function(O,V){return this.then(function(){var ie=O in C.template.prop?this.prop[O]:this.opt[O];return V?V(ie):ie})},C.prototype.setMargin=function(O){return this.then(function(){switch(v(O)){case"number":O=[O,O,O,O];case"array":if(O.length===2&&(O=[O[0],O[1],O[0],O[1]]),O.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=O}).then(this.setPageSize)},C.prototype.setPageSize=function(O){function V(ie,_e){return Math.floor(ie*_e/72*96)}return this.then(function(){(O=O||mi.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(O.inner={width:O.width-this.opt.margin[1]-this.opt.margin[3],height:O.height-this.opt.margin[0]-this.opt.margin[2]},O.inner.px={width:V(O.inner.width,O.k),height:V(O.inner.height,O.k)},O.inner.ratio=O.inner.height/O.inner.width),this.prop.pageSize=O})},C.prototype.setProgress=function(O,V,ie,_e){return O!=null&&(this.progress.val=O),V!=null&&(this.progress.state=V),ie!=null&&(this.progress.n=ie),_e!=null&&(this.progress.stack=_e),this.progress.ratio=this.progress.val/this.progress.state,this},C.prototype.updateProgress=function(O,V,ie,_e){return this.setProgress(O?this.progress.val+O:null,V||null,ie?this.progress.n+ie:null,_e?this.progress.stack.concat(_e):null)},C.prototype.then=function(O,V){var ie=this;return this.thenCore(O,V,function(_e,We){return ie.updateProgress(null,null,1,[_e]),Promise.prototype.then.call(this,function(Ve){return ie.updateProgress(null,_e),Ve}).then(_e,We).then(function(Ve){return ie.updateProgress(1),Ve})})},C.prototype.thenCore=function(O,V,ie){ie=ie||Promise.prototype.then,O&&(O=O.bind(this)),V&&(V=V.bind(this));var _e=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:C.convert(Object.assign({},this),Promise.prototype),We=ie.call(_e,O,V);return C.convert(We,this.__proto__)},C.prototype.thenExternal=function(O,V){return Promise.prototype.then.call(this,O,V)},C.prototype.thenList=function(O){var V=this;return O.forEach(function(ie){V=V.thenCore(ie)}),V},C.prototype.catch=function(O){O&&(O=O.bind(this));var V=Promise.prototype.catch.call(this,O);return C.convert(V,this)},C.prototype.catchExternal=function(O){return Promise.prototype.catch.call(this,O)},C.prototype.error=function(O){return this.then(function(){throw new Error(O)})},C.prototype.using=C.prototype.set,C.prototype.saveAs=C.prototype.save,C.prototype.export=C.prototype.output,C.prototype.run=C.prototype.then,mi.getPageSize=function(O,V,ie){if((0,ge.Z)(O)==="object"){var _e=O;O=_e.orientation,V=_e.unit||V,ie=_e.format||ie}V=V||"mm",ie=ie||"a4",O=(""+(O||"P")).toLowerCase();var We,Ve=(""+ie).toLowerCase(),ct={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(V){case"pt":We=1;break;case"mm":We=72/25.4;break;case"cm":We=72/2.54;break;case"in":We=72;break;case"px":We=.75;break;case"pc":case"em":We=12;break;case"ex":We=6;break;default:throw"Invalid unit: "+V}var we,Lt=0,wt=0;if(ct.hasOwnProperty(Ve))Lt=ct[Ve][1]/We,wt=ct[Ve][0]/We;else try{Lt=ie[1],wt=ie[0]}catch(kt){throw new Error("Invalid format: "+ie)}if(O==="p"||O==="portrait")O="p",wt>Lt&&(we=wt,wt=Lt,Lt=we);else{if(O!=="l"&&O!=="landscape")throw"Invalid orientation: "+O;O="l",Lt>wt&&(we=wt,wt=Lt,Lt=we)}return{width:wt,height:Lt,unit:V,k:We,orientation:O}},c.html=function(O,V){(V=V||{}).callback=V.callback||function(){},V.html2canvas=V.html2canvas||{},V.html2canvas.canvas=V.html2canvas.canvas||this.canvas,V.jsPDF=V.jsPDF||this,V.fontFaces=V.fontFaces?V.fontFaces.map(ac):null;var ie=new C(V);return V.worker?ie:ie.from(O).doCallback()}}(mi.API),mi.API.addJS=function(c){return Al=c,this.internal.events.subscribe("postPutResources",function(){Jo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Jo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ls=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Al+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Jo!==void 0&&Ls!==void 0&&this.internal.out("/Names <</JavaScript "+Jo+" 0 R>>")}),this},function(c){var a;c.events.push(["postPutResources",function(){var l=this,v=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var F=l.outline.render().split(/\r\n/),C=0;C<F.length;C++){var O=F[C],V=v.exec(O);if(V!=null){var ie=V[1];l.internal.newObjectDeferredBegin(ie,!1)}l.internal.write(O)}if(this.outline.createNamedDestinations){var _e=this.internal.pages.length,We=[];for(C=0;C<_e;C++){var Ve=l.internal.newObject();We.push(Ve);var ct=l.internal.getPageInfo(C+1);l.internal.write("<< /D["+ct.objId+" 0 R /XYZ null null null]>> endobj")}var we=l.internal.newObject();for(l.internal.write("<< /Names [ "),C=0;C<We.length;C++)l.internal.write("(page_"+(C+1)+")"+We[C]+" 0 R");l.internal.write(" ] >>","endobj"),a=l.internal.newObject(),l.internal.write("<< /Dests "+we+" 0 R"),l.internal.write(">>","endobj")}}]),c.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+a+" 0 R"))}]),c.events.push(["initialized",function(){var l=this;l.outline={createNamedDestinations:!1,root:{children:[]}},l.outline.add=function(v,F,C){var O={title:F,options:C,children:[]};return v==null&&(v=this.root),v.children.push(O),O},l.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=l,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},l.outline.genIds_r=function(v){v.id=l.internal.newObjectDeferred();for(var F=0;F<v.children.length;F++)this.genIds_r(v.children[F])},l.outline.renderRoot=function(v){this.objStart(v),this.line("/Type /Outlines"),v.children.length>0&&(this.line("/First "+this.makeRef(v.children[0])),this.line("/Last "+this.makeRef(v.children[v.children.length-1]))),this.line("/Count "+this.count_r({count:0},v)),this.objEnd()},l.outline.renderItems=function(v){for(var F=this.ctx.pdf.internal.getVerticalCoordinateString,C=0;C<v.children.length;C++){var O=v.children[C];this.objStart(O),this.line("/Title "+this.makeString(O.title)),this.line("/Parent "+this.makeRef(v)),C>0&&this.line("/Prev "+this.makeRef(v.children[C-1])),C<v.children.length-1&&this.line("/Next "+this.makeRef(v.children[C+1])),O.children.length>0&&(this.line("/First "+this.makeRef(O.children[0])),this.line("/Last "+this.makeRef(O.children[O.children.length-1])));var V=this.count=this.count_r({count:0},O);if(V>0&&this.line("/Count "+V),O.options&&O.options.pageNumber){var ie=l.internal.getPageInfo(O.options.pageNumber);this.line("/Dest ["+ie.objId+" 0 R /XYZ 0 "+F(0)+" 0]")}this.objEnd()}for(var _e=0;_e<v.children.length;_e++)this.renderItems(v.children[_e])},l.outline.line=function(v){this.ctx.val+=v+`\r
`},l.outline.makeRef=function(v){return v.id+" 0 R"},l.outline.makeString=function(v){return"("+l.internal.pdfEscape(v)+")"},l.outline.objStart=function(v){this.ctx.val+=`\r
`+v.id+` 0 obj\r
<<\r
`},l.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},l.outline.count_r=function(v,F){for(var C=0;C<F.children.length;C++)v.count++,this.count_r(v,F.children[C]);return v.count}}])}(mi.API),function(c){var a=[192,193,194,195,196,197,198,199];c.processJPEG=function(l,v,F,C,O,V){var ie,_e=this.decode.DCT_DECODE,We=null;if(typeof l=="string"||this.__addimage__.isArrayBuffer(l)||this.__addimage__.isArrayBufferView(l)){switch(l=O||l,l=this.__addimage__.isArrayBuffer(l)?new Uint8Array(l):l,(ie=function(Ve){for(var ct,we=256*Ve.charCodeAt(4)+Ve.charCodeAt(5),Lt=Ve.length,wt={width:0,height:0,numcomponents:1},kt=4;kt<Lt;kt+=2){if(kt+=we,a.indexOf(Ve.charCodeAt(kt+1))!==-1){ct=256*Ve.charCodeAt(kt+5)+Ve.charCodeAt(kt+6),wt={width:256*Ve.charCodeAt(kt+7)+Ve.charCodeAt(kt+8),height:ct,numcomponents:Ve.charCodeAt(kt+9)};break}we=256*Ve.charCodeAt(kt+2)+Ve.charCodeAt(kt+3)}return wt}(l=this.__addimage__.isArrayBufferView(l)?this.__addimage__.arrayBufferToBinaryString(l):l)).numcomponents){case 1:V=this.color_spaces.DEVICE_GRAY;break;case 4:V=this.color_spaces.DEVICE_CMYK;break;case 3:V=this.color_spaces.DEVICE_RGB}We={data:l,width:ie.width,height:ie.height,colorSpace:V,bitsPerComponent:8,filter:_e,index:v,alias:F}}return We}}(mi.API);var tl,Hc,Pl,Ws,tA,rA=function(){var c,a,l;function v(C){var O,V,ie,_e,We,Ve,ct,we,Lt,wt,kt,ht,Pt,ar;for(this.data=C,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ve=null;;){switch(O=this.readUInt32(),Lt=function(){var gr,Kr;for(Kr=[],gr=0;gr<4;++gr)Kr.push(String.fromCharCode(this.data[this.pos++]));return Kr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(O);break;case"fcTL":Ve&&this.animation.frames.push(Ve),this.pos+=4,Ve={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},We=this.readUInt16(),_e=this.readUInt16()||100,Ve.delay=1e3*We/_e,Ve.disposeOp=this.data[this.pos++],Ve.blendOp=this.data[this.pos++],Ve.data=[];break;case"IDAT":case"fdAT":for(Lt==="fdAT"&&(this.pos+=4,O-=4),C=(Ve!=null?Ve.data:void 0)||this.imgData,ht=0;0<=O?ht<O:ht>O;0<=O?++ht:--ht)C.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ie=this.palette.length/3,this.transparency.indexed=this.read(O),this.transparency.indexed.length>ie)throw new Error("More transparent colors than palette size");if((wt=ie-this.transparency.indexed.length)>0)for(Pt=0;0<=wt?Pt<wt:Pt>wt;0<=wt?++Pt:--Pt)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(O)[0];break;case 2:this.transparency.rgb=this.read(O)}break;case"tEXt":ct=(kt=this.read(O)).indexOf(0),we=String.fromCharCode.apply(String,kt.slice(0,ct)),this.text[we]=String.fromCharCode.apply(String,kt.slice(ct+1));break;case"IEND":return Ve&&this.animation.frames.push(Ve),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ar=this.colorType)===4||ar===6,V=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*V,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=O}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}v.prototype.read=function(C){var O,V;for(V=[],O=0;0<=C?O<C:O>C;0<=C?++O:--O)V.push(this.data[this.pos++]);return V},v.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},v.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},v.prototype.decodePixels=function(C){var O=this.pixelBitlength/8,V=new Uint8Array(this.width*this.height*O),ie=0,_e=this;if(C==null&&(C=this.imgData),C.length===0)return new Uint8Array(0);function We(Ve,ct,we,Lt){var wt,kt,ht,Pt,ar,gr,Kr,yn,_r,Gt,Dr,Vr,bt,Bt,U,H,Se,De,Ye,He,dt,pt=Math.ceil((_e.width-Ve)/we),Et=Math.ceil((_e.height-ct)/Lt),de=_e.width==pt&&_e.height==Et;for(Bt=O*pt,Vr=de?V:new Uint8Array(Bt*Et),gr=C.length,bt=0,kt=0;bt<Et&&ie<gr;){switch(C[ie++]){case 0:for(Pt=Se=0;Se<Bt;Pt=Se+=1)Vr[kt++]=C[ie++];break;case 1:for(Pt=De=0;De<Bt;Pt=De+=1)wt=C[ie++],ar=Pt<O?0:Vr[kt-O],Vr[kt++]=(wt+ar)%256;break;case 2:for(Pt=Ye=0;Ye<Bt;Pt=Ye+=1)wt=C[ie++],ht=(Pt-Pt%O)/O,U=bt&&Vr[(bt-1)*Bt+ht*O+Pt%O],Vr[kt++]=(U+wt)%256;break;case 3:for(Pt=He=0;He<Bt;Pt=He+=1)wt=C[ie++],ht=(Pt-Pt%O)/O,ar=Pt<O?0:Vr[kt-O],U=bt&&Vr[(bt-1)*Bt+ht*O+Pt%O],Vr[kt++]=(wt+Math.floor((ar+U)/2))%256;break;case 4:for(Pt=dt=0;dt<Bt;Pt=dt+=1)wt=C[ie++],ht=(Pt-Pt%O)/O,ar=Pt<O?0:Vr[kt-O],bt===0?U=H=0:(U=Vr[(bt-1)*Bt+ht*O+Pt%O],H=ht&&Vr[(bt-1)*Bt+(ht-1)*O+Pt%O]),Kr=ar+U-H,yn=Math.abs(Kr-ar),Gt=Math.abs(Kr-U),Dr=Math.abs(Kr-H),_r=yn<=Gt&&yn<=Dr?ar:Gt<=Dr?U:H,Vr[kt++]=(wt+_r)%256;break;default:throw new Error("Invalid filter algorithm: "+C[ie-1])}if(!de){var Ze=((ct+bt*Lt)*_e.width+Ve)*O,Je=bt*Bt;for(Pt=0;Pt<pt;Pt+=1){for(var mt=0;mt<O;mt+=1)V[Ze++]=Vr[Je++];Ze+=(we-1)*O}}bt++}}return C=Me(C),_e.interlaceMethod==1?(We(0,0,8,8),We(4,0,8,8),We(0,4,4,8),We(2,0,4,4),We(0,2,2,4),We(1,0,2,2),We(0,1,1,2)):We(0,0,1,1),V},v.prototype.decodePalette=function(){var C,O,V,ie,_e,We,Ve,ct,we;for(V=this.palette,We=this.transparency.indexed||[],_e=new Uint8Array((We.length||0)+V.length),ie=0,C=0,O=Ve=0,ct=V.length;Ve<ct;O=Ve+=3)_e[ie++]=V[O],_e[ie++]=V[O+1],_e[ie++]=V[O+2],_e[ie++]=(we=We[C++])!=null?we:255;return _e},v.prototype.copyToImageData=function(C,O){var V,ie,_e,We,Ve,ct,we,Lt,wt,kt,ht;if(ie=this.colors,wt=null,V=this.hasAlphaChannel,this.palette.length&&(wt=(ht=this._decodedPalette)!=null?ht:this._decodedPalette=this.decodePalette(),ie=4,V=!0),Lt=(_e=C.data||C).length,Ve=wt||O,We=ct=0,ie===1)for(;We<Lt;)we=wt?4*O[We/4]:ct,kt=Ve[we++],_e[We++]=kt,_e[We++]=kt,_e[We++]=kt,_e[We++]=V?Ve[we++]:255,ct=we;else for(;We<Lt;)we=wt?4*O[We/4]:ct,_e[We++]=Ve[we++],_e[We++]=Ve[we++],_e[We++]=Ve[we++],_e[We++]=V?Ve[we++]:255,ct=we},v.prototype.decode=function(){var C;return C=new Uint8Array(this.width*this.height*4),this.copyToImageData(C,this.decodePixels()),C};var F=function(){if(Object.prototype.toString.call(ln)==="[object Window]"){try{a=ln.document.createElement("canvas"),l=a.getContext("2d")}catch(C){return!1}return!0}return!1};return F(),c=function(C){var O;if(F()===!0)return l.width=C.width,l.height=C.height,l.clearRect(0,0,C.width,C.height),l.putImageData(C,0,0),(O=new Image).src=a.toDataURL(),O;throw new Error("This method requires a Browser with Canvas-capability.")},v.prototype.decodeFrames=function(C){var O,V,ie,_e,We,Ve,ct,we;if(this.animation){for(we=[],V=We=0,Ve=(ct=this.animation.frames).length;We<Ve;V=++We)O=ct[V],ie=C.createImageData(O.width,O.height),_e=this.decodePixels(new Uint8Array(O.data)),this.copyToImageData(ie,_e),O.imageData=ie,we.push(O.image=c(ie));return we}},v.prototype.renderFrame=function(C,O){var V,ie,_e;return V=(ie=this.animation.frames)[O],_e=ie[O-1],O===0&&C.clearRect(0,0,this.width,this.height),(_e!=null?_e.disposeOp:void 0)===1?C.clearRect(_e.xOffset,_e.yOffset,_e.width,_e.height):(_e!=null?_e.disposeOp:void 0)===2&&C.putImageData(_e.imageData,_e.xOffset,_e.yOffset),V.blendOp===0&&C.clearRect(V.xOffset,V.yOffset,V.width,V.height),C.drawImage(V.image,V.xOffset,V.yOffset)},v.prototype.animate=function(C){var O,V,ie,_e,We,Ve,ct=this;return V=0,Ve=this.animation,_e=Ve.numFrames,ie=Ve.frames,We=Ve.numPlays,(O=function(){var we,Lt;if(we=V++%_e,Lt=ie[we],ct.renderFrame(C,we),_e>1&&V/_e<We)return ct.animation._timeout=setTimeout(O,Lt.delay)})()},v.prototype.stopAnimation=function(){var C;return clearTimeout((C=this.animation)!=null?C._timeout:void 0)},v.prototype.render=function(C){var O,V;return C._png&&C._png.stopAnimation(),C._png=this,C.width=this.width,C.height=this.height,O=C.getContext("2d"),this.animation?(this.decodeFrames(O),this.animate(O)):(V=O.createImageData(this.width,this.height),this.copyToImageData(V,this.decodePixels()),O.putImageData(V,0,0))},v}();function fc(c){var a=0;if(c[a++]!==71||c[a++]!==73||c[a++]!==70||c[a++]!==56||(c[a++]+1&253)!=56||c[a++]!==97)throw new Error("Invalid GIF 87a/89a header.");var l=c[a++]|c[a++]<<8,v=c[a++]|c[a++]<<8,F=c[a++],C=F>>7,O=1<<(7&F)+1;c[a++],c[a++];var V=null,ie=null;C&&(V=a,ie=O,a+=3*O);var _e=!0,We=[],Ve=0,ct=null,we=0,Lt=null;for(this.width=l,this.height=v;_e&&a<c.length;)switch(c[a++]){case 33:switch(c[a++]){case 255:if(c[a]!==11||c[a+1]==78&&c[a+2]==69&&c[a+3]==84&&c[a+4]==83&&c[a+5]==67&&c[a+6]==65&&c[a+7]==80&&c[a+8]==69&&c[a+9]==50&&c[a+10]==46&&c[a+11]==48&&c[a+12]==3&&c[a+13]==1&&c[a+16]==0)a+=14,Lt=c[a++]|c[a++]<<8,a++;else for(a+=12;;){if(!((bt=c[a++])>=0))throw Error("Invalid block size");if(bt===0)break;a+=bt}break;case 249:if(c[a++]!==4||c[a+4]!==0)throw new Error("Invalid graphics extension block.");var wt=c[a++];Ve=c[a++]|c[a++]<<8,ct=c[a++],!(1&wt)&&(ct=null),we=wt>>2&7,a++;break;case 254:for(;;){if(!((bt=c[a++])>=0))throw Error("Invalid block size");if(bt===0)break;a+=bt}break;default:throw new Error("Unknown graphic control label: 0x"+c[a-1].toString(16))}break;case 44:var kt=c[a++]|c[a++]<<8,ht=c[a++]|c[a++]<<8,Pt=c[a++]|c[a++]<<8,ar=c[a++]|c[a++]<<8,gr=c[a++],Kr=gr>>6&1,yn=1<<(7&gr)+1,_r=V,Gt=ie,Dr=!1;gr>>7&&(Dr=!0,_r=a,Gt=yn,a+=3*yn);var Vr=a;for(a++;;){var bt;if(!((bt=c[a++])>=0))throw Error("Invalid block size");if(bt===0)break;a+=bt}We.push({x:kt,y:ht,width:Pt,height:ar,has_local_palette:Dr,palette_offset:_r,palette_size:Gt,data_offset:Vr,data_length:a-Vr,transparent_index:ct,interlaced:!!Kr,delay:Ve,disposal:we});break;case 59:_e=!1;break;default:throw new Error("Unknown gif block: 0x"+c[a-1].toString(16))}this.numFrames=function(){return We.length},this.loopCount=function(){return Lt},this.frameInfo=function(Bt){if(Bt<0||Bt>=We.length)throw new Error("Frame index out of range.");return We[Bt]},this.decodeAndBlitFrameBGRA=function(Bt,U){var H=this.frameInfo(Bt),Se=H.width*H.height,De=new Uint8Array(Se);yA(c,H.data_offset,De,Se);var Ye=H.palette_offset,He=H.transparent_index;He===null&&(He=256);var dt=H.width,pt=l-dt,Et=dt,de=4*(H.y*l+H.x),Ze=4*((H.y+H.height)*l+H.x),Je=de,mt=4*pt;H.interlaced===!0&&(mt+=4*l*7);for(var yt=8,It=0,Kt=De.length;It<Kt;++It){var Tt=De[It];if(Et===0&&(Et=dt,(Je+=mt)>=Ze&&(mt=4*pt+4*l*(yt-1),Je=de+(dt+pt)*(yt<<1),yt>>=1)),Tt===He)Je+=4;else{var pr=c[Ye+3*Tt],sr=c[Ye+3*Tt+1],Fr=c[Ye+3*Tt+2];U[Je++]=Fr,U[Je++]=sr,U[Je++]=pr,U[Je++]=255}--Et}},this.decodeAndBlitFrameRGBA=function(Bt,U){var H=this.frameInfo(Bt),Se=H.width*H.height,De=new Uint8Array(Se);yA(c,H.data_offset,De,Se);var Ye=H.palette_offset,He=H.transparent_index;He===null&&(He=256);var dt=H.width,pt=l-dt,Et=dt,de=4*(H.y*l+H.x),Ze=4*((H.y+H.height)*l+H.x),Je=de,mt=4*pt;H.interlaced===!0&&(mt+=4*l*7);for(var yt=8,It=0,Kt=De.length;It<Kt;++It){var Tt=De[It];if(Et===0&&(Et=dt,(Je+=mt)>=Ze&&(mt=4*pt+4*l*(yt-1),Je=de+(dt+pt)*(yt<<1),yt>>=1)),Tt===He)Je+=4;else{var pr=c[Ye+3*Tt],sr=c[Ye+3*Tt+1],Fr=c[Ye+3*Tt+2];U[Je++]=pr,U[Je++]=sr,U[Je++]=Fr,U[Je++]=255}--Et}}}function yA(c,a,l,v){for(var F=c[a++],C=1<<F,O=C+1,V=O+1,ie=F+1,_e=(1<<ie)-1,We=0,Ve=0,ct=0,we=c[a++],Lt=new Int32Array(4096),wt=null;;){for(;We<16&&we!==0;)Ve|=c[a++]<<We,We+=8,we===1?we=c[a++]:--we;if(We<ie)break;var kt=Ve&_e;if(Ve>>=ie,We-=ie,kt!==C){if(kt===O)break;for(var ht=kt<V?kt:wt,Pt=0,ar=ht;ar>C;)ar=Lt[ar]>>8,++Pt;var gr=ar;if(ct+Pt+(ht!==kt?1:0)>v)return void Mn.log("Warning, gif stream longer than expected.");l[ct++]=gr;var Kr=ct+=Pt;for(ht!==kt&&(l[ct++]=gr),ar=ht;Pt--;)ar=Lt[ar],l[--Kr]=255&ar,ar>>=8;wt!==null&&V<4096&&(Lt[V++]=wt<<8|gr,V>=_e+1&&ie<12&&(++ie,_e=_e<<1|1)),wt=kt}else V=O+1,_e=(1<<(ie=F+1))-1,wt=null}return ct!==v&&Mn.log("Warning, gif stream shorter than expected."),l}function Nl(c){var a,l,v,F,C,O=Math.floor,V=new Array(64),ie=new Array(64),_e=new Array(64),We=new Array(64),Ve=new Array(65535),ct=new Array(65535),we=new Array(64),Lt=new Array(64),wt=[],kt=0,ht=7,Pt=new Array(64),ar=new Array(64),gr=new Array(64),Kr=new Array(256),yn=new Array(2048),_r=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Gt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Dr=[0,1,2,3,4,5,6,7,8,9,10,11],Vr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],bt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Bt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Se=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function De(de,Ze){for(var Je=0,mt=0,yt=new Array,It=1;It<=16;It++){for(var Kt=1;Kt<=de[It];Kt++)yt[Ze[mt]]=[],yt[Ze[mt]][0]=Je,yt[Ze[mt]][1]=It,mt++,Je++;Je*=2}return yt}function Ye(de){for(var Ze=de[0],Je=de[1]-1;Je>=0;)Ze&1<<Je&&(kt|=1<<ht),Je--,--ht<0&&(kt==255?(He(255),He(0)):He(kt),ht=7,kt=0)}function He(de){wt.push(de)}function dt(de){He(de>>8&255),He(255&de)}function pt(de,Ze,Je,mt,yt){for(var It,Kt=yt[0],Tt=yt[240],pr=function(wr,Ir){var xr,kr,fn,zn,Rn,Bn,ii,Ei,gi,xi,kn=0;for(gi=0;gi<8;++gi){xr=wr[kn],kr=wr[kn+1],fn=wr[kn+2],zn=wr[kn+3],Rn=wr[kn+4],Bn=wr[kn+5],ii=wr[kn+6];var ha=xr+(Ei=wr[kn+7]),ei=xr-Ei,uo=kr+ii,Ti=kr-ii,na=fn+Bn,Ta=fn-Bn,ma=zn+Rn,Vn=zn-Rn,Gn=ha+ma,bi=ha-ma,vi=uo+na,Zi=uo-na;wr[kn]=Gn+vi,wr[kn+4]=Gn-vi;var gn=.707106781*(Zi+bi);wr[kn+2]=bi+gn,wr[kn+6]=bi-gn;var Xn=.382683433*((Gn=Vn+Ta)-(Zi=Ti+ei)),aa=.5411961*Gn+Xn,ji=1.306562965*Zi+Xn,ko=.707106781*(vi=Ta+Ti),Do=ei+ko,Ki=ei-ko;wr[kn+5]=Ki+aa,wr[kn+3]=Ki-aa,wr[kn+1]=Do+ji,wr[kn+7]=Do-ji,kn+=8}for(kn=0,gi=0;gi<8;++gi){xr=wr[kn],kr=wr[kn+8],fn=wr[kn+16],zn=wr[kn+24],Rn=wr[kn+32],Bn=wr[kn+40],ii=wr[kn+48];var ro=xr+(Ei=wr[kn+56]),as=xr-Ei,Cn=kr+ii,fo=kr-ii,Ho=fn+Bn,Yi=fn-Bn,on=zn+Rn,ga=zn-Rn,ho=ro+on,Wa=ro-on,Li=Cn+Ho,Po=Cn-Ho;wr[kn]=ho+Li,wr[kn+32]=ho-Li;var No=.707106781*(Po+Wa);wr[kn+16]=Wa+No,wr[kn+48]=Wa-No;var os=.382683433*((ho=ga+Yi)-(Po=fo+as)),fs=.5411961*ho+os,ss=1.306562965*Po+os,hs=.707106781*(Li=Yi+fo),Bl=as+hs,qo=as-hs;wr[kn+40]=qo+fs,wr[kn+24]=qo-fs,wr[kn+8]=Bl+ss,wr[kn+56]=Bl-ss,kn++}for(gi=0;gi<64;++gi)xi=wr[gi]*Ir[gi],we[gi]=xi>0?xi+.5|0:xi-.5|0;return we}(de,Ze),sr=0;sr<64;++sr)Lt[_r[sr]]=pr[sr];var Fr=Lt[0]-Je;Je=Lt[0],Fr==0?Ye(mt[0]):(Ye(mt[ct[It=32767+Fr]]),Ye(Ve[It]));for(var Hr=63;Hr>0&&Lt[Hr]==0;)Hr--;if(Hr==0)return Ye(Kt),Je;for(var hn,tr=1;tr<=Hr;){for(var St=tr;Lt[tr]==0&&tr<=Hr;)++tr;var On=tr-St;if(On>=16){hn=On>>4;for(var zr=1;zr<=hn;++zr)Ye(Tt);On&=15}It=32767+Lt[tr],Ye(yt[(On<<4)+ct[It]]),Ye(Ve[It]),tr++}return Hr!=63&&Ye(Kt),Je}function Et(de){de=Math.min(Math.max(de,1),100),C!=de&&(function(Ze){for(var Je=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],mt=0;mt<64;mt++){var yt=O((Je[mt]*Ze+50)/100);yt=Math.min(Math.max(yt,1),255),V[_r[mt]]=yt}for(var It=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Kt=0;Kt<64;Kt++){var Tt=O((It[Kt]*Ze+50)/100);Tt=Math.min(Math.max(Tt,1),255),ie[_r[Kt]]=Tt}for(var pr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],sr=0,Fr=0;Fr<8;Fr++)for(var Hr=0;Hr<8;Hr++)_e[sr]=1/(V[_r[sr]]*pr[Fr]*pr[Hr]*8),We[sr]=1/(ie[_r[sr]]*pr[Fr]*pr[Hr]*8),sr++}(de<50?Math.floor(5e3/de):Math.floor(200-2*de)),C=de)}this.encode=function(de,Ze){Ze&&Et(Ze),wt=new Array,kt=0,ht=7,dt(65496),dt(65504),dt(16),He(74),He(70),He(73),He(70),He(0),He(1),He(1),He(0),dt(1),dt(1),He(0),He(0),function(){dt(65499),dt(132),He(0);for(var kr=0;kr<64;kr++)He(V[kr]);He(1);for(var fn=0;fn<64;fn++)He(ie[fn])}(),function(kr,fn){dt(65472),dt(17),He(8),dt(fn),dt(kr),He(3),He(1),He(17),He(0),He(2),He(17),He(1),He(3),He(17),He(1)}(de.width,de.height),function(){dt(65476),dt(418),He(0);for(var kr=0;kr<16;kr++)He(Gt[kr+1]);for(var fn=0;fn<=11;fn++)He(Dr[fn]);He(16);for(var zn=0;zn<16;zn++)He(Vr[zn+1]);for(var Rn=0;Rn<=161;Rn++)He(bt[Rn]);He(1);for(var Bn=0;Bn<16;Bn++)He(Bt[Bn+1]);for(var ii=0;ii<=11;ii++)He(U[ii]);He(17);for(var Ei=0;Ei<16;Ei++)He(H[Ei+1]);for(var gi=0;gi<=161;gi++)He(Se[gi])}(),dt(65498),dt(12),He(3),He(1),He(0),He(2),He(17),He(3),He(17),He(0),He(63),He(0);var Je=0,mt=0,yt=0;kt=0,ht=7,this.encode.displayName="_encode_";for(var It,Kt,Tt,pr,sr,Fr,Hr,hn,tr,St=de.data,On=de.width,zr=de.height,wr=4*On,Ir=0;Ir<zr;){for(It=0;It<wr;){for(sr=wr*Ir+It,Hr=-1,hn=0,tr=0;tr<64;tr++)Fr=sr+(hn=tr>>3)*wr+(Hr=4*(7&tr)),Ir+hn>=zr&&(Fr-=wr*(Ir+1+hn-zr)),It+Hr>=wr&&(Fr-=It+Hr-wr+4),Kt=St[Fr++],Tt=St[Fr++],pr=St[Fr++],Pt[tr]=(yn[Kt]+yn[Tt+256>>0]+yn[pr+512>>0]>>16)-128,ar[tr]=(yn[Kt+768>>0]+yn[Tt+1024>>0]+yn[pr+1280>>0]>>16)-128,gr[tr]=(yn[Kt+1280>>0]+yn[Tt+1536>>0]+yn[pr+1792>>0]>>16)-128;Je=pt(Pt,_e,Je,a,v),mt=pt(ar,We,mt,l,F),yt=pt(gr,We,yt,l,F),It+=32}Ir+=8}if(ht>=0){var xr=[];xr[1]=ht+1,xr[0]=(1<<ht+1)-1,Ye(xr)}return dt(65497),new Uint8Array(wt)},c=c||50,function(){for(var de=String.fromCharCode,Ze=0;Ze<256;Ze++)Kr[Ze]=de(Ze)}(),a=De(Gt,Dr),l=De(Bt,U),v=De(Vr,bt),F=De(H,Se),function(){for(var de=1,Ze=2,Je=1;Je<=15;Je++){for(var mt=de;mt<Ze;mt++)ct[32767+mt]=Je,Ve[32767+mt]=[],Ve[32767+mt][1]=Je,Ve[32767+mt][0]=mt;for(var yt=-(Ze-1);yt<=-de;yt++)ct[32767+yt]=Je,Ve[32767+yt]=[],Ve[32767+yt][1]=Je,Ve[32767+yt][0]=Ze-1+yt;de<<=1,Ze<<=1}}(),function(){for(var de=0;de<256;de++)yn[de]=19595*de,yn[de+256>>0]=38470*de,yn[de+512>>0]=7471*de+32768,yn[de+768>>0]=-11059*de,yn[de+1024>>0]=-21709*de,yn[de+1280>>0]=32768*de+8421375,yn[de+1536>>0]=-27439*de,yn[de+1792>>0]=-5329*de}(),Et(c)}function Gs(c,a){if(this.pos=0,this.buffer=c,this.datav=new DataView(c.buffer),this.is_with_alpha=!!a,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function rl(c){function a(Gt){if(!Gt)throw Error("assert :P")}function l(Gt,Dr,Vr){for(var bt=0;4>bt;bt++)if(Gt[Dr+bt]!=Vr.charCodeAt(bt))return!0;return!1}function v(Gt,Dr,Vr,bt,Bt){for(var U=0;U<Bt;U++)Gt[Dr+U]=Vr[bt+U]}function F(Gt,Dr,Vr,bt){for(var Bt=0;Bt<bt;Bt++)Gt[Dr+Bt]=Vr}function C(Gt){return new Int32Array(Gt)}function O(Gt,Dr){for(var Vr=[],bt=0;bt<Gt;bt++)Vr.push(new Dr);return Vr}function V(Gt,Dr){var Vr=[];return function bt(Bt,U,H){for(var Se=H[U],De=0;De<Se&&(Bt.push(H.length>U+1?[]:new Dr),!(H.length<U+1));De++)bt(Bt[De],U+1,H)}(Vr,0,Gt),Vr}var ie=function(){var Gt=this;function Dr(o,b){for(var D=1<<b-1>>>0;o&D;)D>>>=1;return D?(o&D-1)+D:o}function Vr(o,b,D,oe,Oe){a(!(oe%D));do o[b+(oe-=D)]=Oe;while(0<oe)}function bt(o,b,D,oe,Oe){if(a(2328>=Oe),512>=Oe)var Ke=C(512);else if((Ke=C(Oe))==null)return 0;return function(ze,et,it,gt,Mt,ur){var lr,Vt,Gr=et,Or=1<<it,Yt=C(16),$t=C(16);for(a(Mt!=0),a(gt!=null),a(ze!=null),a(0<it),Vt=0;Vt<Mt;++Vt){if(15<gt[Vt])return 0;++Yt[gt[Vt]]}if(Yt[0]==Mt)return 0;for($t[1]=0,lr=1;15>lr;++lr){if(Yt[lr]>1<<lr)return 0;$t[lr+1]=$t[lr]+Yt[lr]}for(Vt=0;Vt<Mt;++Vt)lr=gt[Vt],0<gt[Vt]&&(ur[$t[lr]++]=Vt);if($t[15]==1)return(gt=new Bt).g=0,gt.value=ur[0],Vr(ze,Gr,1,Or,gt),Or;var Yr,bn=-1,tn=Or-1,fi=0,Jn=1,Gi=1,ai=1<<it;for(Vt=0,lr=1,Mt=2;lr<=it;++lr,Mt<<=1){if(Jn+=Gi<<=1,0>(Gi-=Yt[lr]))return 0;for(;0<Yt[lr];--Yt[lr])(gt=new Bt).g=lr,gt.value=ur[Vt++],Vr(ze,Gr+fi,Mt,ai,gt),fi=Dr(fi,lr)}for(lr=it+1,Mt=2;15>=lr;++lr,Mt<<=1){if(Jn+=Gi<<=1,0>(Gi-=Yt[lr]))return 0;for(;0<Yt[lr];--Yt[lr]){if(gt=new Bt,(fi&tn)!=bn){for(Gr+=ai,Yr=1<<(bn=lr)-it;15>bn&&!(0>=(Yr-=Yt[bn]));)++bn,Yr<<=1;Or+=ai=1<<(Yr=bn-it),ze[et+(bn=fi&tn)].g=Yr+it,ze[et+bn].value=Gr-et-bn}gt.g=lr-it,gt.value=ur[Vt++],Vr(ze,Gr+(fi>>it),Mt,ai,gt),fi=Dr(fi,lr)}}return Jn!=2*$t[15]-1?0:Or}(o,b,D,oe,Oe,Ke)}function Bt(){this.value=this.g=0}function U(){this.value=this.g=0}function H(){this.G=O(5,Bt),this.H=C(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=O(_s,U)}function Se(o,b,D,oe){a(o!=null),a(b!=null),a(2147483648>oe),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=b,o.pa=D,o.Jd=b,o.Yc=D+oe,o.Zc=4<=oe?D+oe-4+1:D,It(o)}function De(o,b){for(var D=0;0<b--;)D|=Tt(o,128)<<b;return D}function Ye(o,b){var D=De(o,b);return Kt(o)?-D:D}function He(o,b,D,oe){var Oe,Ke=0;for(a(o!=null),a(b!=null),a(4294967288>oe),o.Sb=oe,o.Ra=0,o.u=0,o.h=0,4<oe&&(oe=4),Oe=0;Oe<oe;++Oe)Ke+=b[D+Oe]<<8*Oe;o.Ra=Ke,o.bb=oe,o.oa=b,o.pa=D}function dt(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<yc-8>>>0,++o.bb,o.u-=8;Je(o)&&(o.h=1,o.u=0)}function pt(o,b){if(a(0<=b),!o.h&&b<=ns){var D=Ze(o)&qA[b];return o.u+=b,dt(o),D}return o.h=1,o.u=0}function Et(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function de(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Ze(o){return o.Ra>>>(o.u&yc-1)>>>0}function Je(o){return a(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>yc}function mt(o,b){o.u=b,o.h=Je(o)}function yt(o){o.u>=Xc&&(a(o.u>=Xc),dt(o))}function It(o){a(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(a(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function Kt(o){return De(o,1)}function Tt(o,b){var D=o.Ca;0>o.b&&It(o);var oe=o.b,Oe=D*b>>>8,Ke=(o.I>>>oe>Oe)+0;for(Ke?(D-=Oe,o.I-=Oe+1<<oe>>>0):D=Oe+1,oe=D,Oe=0;256<=oe;)Oe+=8,oe>>=8;return oe=7^Oe+Ts[oe],o.b-=oe,o.Ca=(D<<oe)-1,Ke}function pr(o,b,D){o[b+0]=D>>24&255,o[b+1]=D>>16&255,o[b+2]=D>>8&255,o[b+3]=D>>0&255}function sr(o,b){return o[b+0]<<0|o[b+1]<<8}function Fr(o,b){return sr(o,b)|o[b+2]<<16}function Hr(o,b){return sr(o,b)|sr(o,b+2)<<16}function hn(o,b){var D=1<<b;return a(o!=null),a(0<b),o.X=C(D),o.X==null?0:(o.Mb=32-b,o.Xa=b,1)}function tr(o,b){a(o!=null),a(b!=null),a(o.Xa==b.Xa),v(b.X,0,o.X,0,1<<b.Xa)}function St(){this.X=[],this.Xa=this.Mb=0}function On(o,b,D,oe){a(D!=null),a(oe!=null);var Oe=D[0],Ke=oe[0];return Oe==0&&(Oe=(o*Ke+b/2)/b),Ke==0&&(Ke=(b*Oe+o/2)/o),0>=Oe||0>=Ke?0:(D[0]=Oe,oe[0]=Ke,1)}function zr(o,b){return o+(1<<b)-1>>>b}function wr(o,b){return((4278255360&o)+(4278255360&b)>>>0&4278255360)+((16711935&o)+(16711935&b)>>>0&16711935)>>>0}function Ir(o,b){Gt[b]=function(D,oe,Oe,Ke,ze,et,it){var gt;for(gt=0;gt<ze;++gt){var Mt=Gt[o](et[it+gt-1],Oe,Ke+gt);et[it+gt]=wr(D[oe+gt],Mt)}}}function xr(){this.ud=this.hd=this.jd=0}function kr(o,b){return((4278124286&(o^b))>>>1)+(o&b)>>>0}function fn(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function zn(o,b){return fn(o+(o-b+.5>>1))}function Rn(o,b,D){return Math.abs(b-D)-Math.abs(o-D)}function Bn(o,b,D,oe,Oe,Ke,ze){for(oe=Ke[ze-1],D=0;D<Oe;++D)Ke[ze+D]=oe=wr(o[b+D],oe)}function ii(o,b,D,oe,Oe){var Ke;for(Ke=0;Ke<D;++Ke){var ze=o[b+Ke],et=ze>>8&255,it=16711935&(it=(it=16711935&ze)+((et<<16)+et));oe[Oe+Ke]=(4278255360&ze)+it>>>0}}function Ei(o,b){b.jd=o>>0&255,b.hd=o>>8&255,b.ud=o>>16&255}function gi(o,b,D,oe,Oe,Ke){var ze;for(ze=0;ze<oe;++ze){var et=b[D+ze],it=et>>>8,gt=et,Mt=255&(Mt=(Mt=et>>>16)+((o.jd<<24>>24)*(it<<24>>24)>>>5));gt=255&(gt=(gt=gt+((o.hd<<24>>24)*(it<<24>>24)>>>5))+((o.ud<<24>>24)*(Mt<<24>>24)>>>5)),Oe[Ke+ze]=(4278255360&et)+(Mt<<16)+gt}}function xi(o,b,D,oe,Oe){Gt[b]=function(Ke,ze,et,it,gt,Mt,ur,lr,Vt){for(it=ur;it<lr;++it)for(ur=0;ur<Vt;++ur)gt[Mt++]=Oe(et[oe(Ke[ze++])])},Gt[o]=function(Ke,ze,et,it,gt,Mt,ur){var lr=8>>Ke.b,Vt=Ke.Ea,Gr=Ke.K[0],Or=Ke.w;if(8>lr)for(Ke=(1<<Ke.b)-1,Or=(1<<lr)-1;ze<et;++ze){var Yt,$t=0;for(Yt=0;Yt<Vt;++Yt)Yt&Ke||($t=oe(it[gt++])),Mt[ur++]=Oe(Gr[$t&Or]),$t>>=lr}else Gt["VP8LMapColor"+D](it,gt,Gr,Or,Mt,ur,ze,et,Vt)}}function kn(o,b,D,oe,Oe){for(D=b+D;b<D;){var Ke=o[b++];oe[Oe++]=Ke>>16&255,oe[Oe++]=Ke>>8&255,oe[Oe++]=Ke>>0&255}}function ha(o,b,D,oe,Oe){for(D=b+D;b<D;){var Ke=o[b++];oe[Oe++]=Ke>>16&255,oe[Oe++]=Ke>>8&255,oe[Oe++]=Ke>>0&255,oe[Oe++]=Ke>>24&255}}function ei(o,b,D,oe,Oe){for(D=b+D;b<D;){var Ke=(ze=o[b++])>>16&240|ze>>12&15,ze=ze>>0&240|ze>>28&15;oe[Oe++]=Ke,oe[Oe++]=ze}}function uo(o,b,D,oe,Oe){for(D=b+D;b<D;){var Ke=(ze=o[b++])>>16&248|ze>>13&7,ze=ze>>5&224|ze>>3&31;oe[Oe++]=Ke,oe[Oe++]=ze}}function Ti(o,b,D,oe,Oe){for(D=b+D;b<D;){var Ke=o[b++];oe[Oe++]=Ke>>0&255,oe[Oe++]=Ke>>8&255,oe[Oe++]=Ke>>16&255}}function na(o,b,D,oe,Oe,Ke){if(Ke==0)for(D=b+D;b<D;)pr(oe,((Ke=o[b++])[0]>>24|Ke[1]>>8&65280|Ke[2]<<8&16711680|Ke[3]<<24)>>>0),Oe+=32;else v(oe,Oe,o,b,D)}function Ta(o,b){Gt[b][0]=Gt[o+"0"],Gt[b][1]=Gt[o+"1"],Gt[b][2]=Gt[o+"2"],Gt[b][3]=Gt[o+"3"],Gt[b][4]=Gt[o+"4"],Gt[b][5]=Gt[o+"5"],Gt[b][6]=Gt[o+"6"],Gt[b][7]=Gt[o+"7"],Gt[b][8]=Gt[o+"8"],Gt[b][9]=Gt[o+"9"],Gt[b][10]=Gt[o+"10"],Gt[b][11]=Gt[o+"11"],Gt[b][12]=Gt[o+"12"],Gt[b][13]=Gt[o+"13"],Gt[b][14]=Gt[o+"0"],Gt[b][15]=Gt[o+"0"]}function ma(o){return o==al||o==Ru||o==Qu||o==vn}function Vn(){this.eb=[],this.size=this.A=this.fb=0}function Gn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function bi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Vn,this.f.kb=new Gn,this.sd=null}function vi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Zi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function gn(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function Xn(o,b){var D=o.T,oe=b.ba.f.RGBA,Oe=oe.eb,Ke=oe.fb+o.ka*oe.A,ze=Ec[b.ba.S],et=o.y,it=o.O,gt=o.f,Mt=o.N,ur=o.ea,lr=o.W,Vt=b.cc,Gr=b.dc,Or=b.Mc,Yt=b.Nc,$t=o.ka,Yr=o.ka+o.T,bn=o.U,tn=bn+1>>1;for($t==0?ze(et,it,null,null,gt,Mt,ur,lr,gt,Mt,ur,lr,Oe,Ke,null,null,bn):(ze(b.ec,b.fc,et,it,Vt,Gr,Or,Yt,gt,Mt,ur,lr,Oe,Ke-oe.A,Oe,Ke,bn),++D);$t+2<Yr;$t+=2)Vt=gt,Gr=Mt,Or=ur,Yt=lr,Mt+=o.Rc,lr+=o.Rc,Ke+=2*oe.A,ze(et,(it+=2*o.fa)-o.fa,et,it,Vt,Gr,Or,Yt,gt,Mt,ur,lr,Oe,Ke-oe.A,Oe,Ke,bn);return it+=o.fa,o.j+Yr<o.o?(v(b.ec,b.fc,et,it,bn),v(b.cc,b.dc,gt,Mt,tn),v(b.Mc,b.Nc,ur,lr,tn),D--):1&Yr||ze(et,it,null,null,gt,Mt,ur,lr,gt,Mt,ur,lr,Oe,Ke+oe.A,null,null,bn),D}function aa(o,b,D){var oe=o.F,Oe=[o.J];if(oe!=null){var Ke=o.U,ze=b.ba.S,et=ze==tu||ze==Qu;b=b.ba.f.RGBA;var it=[0],gt=o.ka;it[0]=o.T,o.Kb&&(gt==0?--it[0]:(--gt,Oe[0]-=o.width),o.j+o.ka+o.T==o.o&&(it[0]=o.o-o.j-gt));var Mt=b.eb;gt=b.fb+gt*b.A,o=is(oe,Oe[0],o.width,Ke,it,Mt,gt+(et?0:3),b.A),a(D==it),o&&ma(ze)&&Ac(Mt,gt,et,Ke,it,b.A)}return 0}function ji(o){var b=o.ma,D=b.ba.S,oe=11>D,Oe=D==IA||D==MA||D==tu||D==LA||D==12||ma(D);if(b.memory=null,b.Ib=null,b.Jb=null,b.Nd=null,!YA(b.Oa,o,Oe?11:12))return 0;if(Oe&&ma(D)&&Fn(),o.da)alert("todo:use_scaling");else{if(oe){if(b.Ib=gn,o.Kb){if(D=o.U+1>>1,b.memory=C(o.U+2*D),b.memory==null)return 0;b.ec=b.memory,b.fc=0,b.cc=b.ec,b.dc=b.fc+o.U,b.Mc=b.cc,b.Nc=b.dc+D,b.Ib=Xn,Fn()}}else alert("todo:EmitYUV");Oe&&(b.Jb=aa,oe&&vr())}if(oe&&!m){for(o=0;256>o;++o)d[o]=89858*(o-128)+Vu>>vu,re[o]=-22014*(o-128)+Vu,g[o]=-45773*(o-128),y[o]=113618*(o-128)+Vu>>vu;for(o=Wu;o<Fd;++o)b=76283*(o-16)+Vu>>vu,Fe[o-Wu]=pl(b,255),tt[o-Wu]=pl(b+8>>4,15);m=1}return 1}function ko(o){var b=o.ma,D=o.U,oe=o.T;return a(!(1&o.ka)),0>=D||0>=oe?0:(D=b.Ib(o,b),b.Jb!=null&&b.Jb(o,b,D),b.Dc+=D,1)}function Do(o){o.ma.memory=null}function Ki(o,b,D,oe){return pt(o,8)!=47?0:(b[0]=pt(o,14)+1,D[0]=pt(o,14)+1,oe[0]=pt(o,1),pt(o,3)!=0?0:!o.h)}function ro(o,b){if(4>o)return o+1;var D=o-2>>1;return(2+(1&o)<<D)+pt(b,D)+1}function as(o,b){return 120<b?b-120:1<=(D=((D=Ku[b-1])>>4)*o+(8-(15&D)))?D:1;var D}function Cn(o,b,D){var oe=Ze(D),Oe=o[b+=255&oe].g-8;return 0<Oe&&(mt(D,D.u+8),oe=Ze(D),b+=o[b].value,b+=oe&(1<<Oe)-1),mt(D,D.u+o[b].g),o[b].value}function fo(o,b,D){return D.g+=o.g,D.value+=o.value<<b>>>0,a(8>=D.g),o.g}function Ho(o,b,D){var oe=o.xc;return a((b=oe==0?0:o.vc[o.md*(D>>oe)+(b>>oe)])<o.Wb),o.Ya[b]}function Yi(o,b,D,oe){var Oe=o.ab,Ke=o.c*b,ze=o.C;b=ze+b;var et=D,it=oe;for(oe=o.Ta,D=o.Ua;0<Oe--;){var gt=o.gc[Oe],Mt=ze,ur=b,lr=et,Vt=it,Gr=(it=oe,et=D,gt.Ea);switch(a(Mt<ur),a(ur<=gt.nc),gt.hc){case 2:gl(lr,Vt,(ur-Mt)*Gr,it,et);break;case 0:var Or=Mt,Yt=ur,$t=it,Yr=et,bn=(ai=gt).Ea;Or==0&&(ml(lr,Vt,null,null,1,$t,Yr),Bn(lr,Vt+1,0,0,bn-1,$t,Yr+1),Vt+=bn,Yr+=bn,++Or);for(var tn=1<<ai.b,fi=tn-1,Jn=zr(bn,ai.b),Gi=ai.K,ai=ai.w+(Or>>ai.b)*Jn;Or<Yt;){var Ha=Gi,Ua=ai,Ra=1;for(Ql(lr,Vt,$t,Yr-bn,1,$t,Yr);Ra<bn;){var Na=(Ra&~fi)+tn;Na>bn&&(Na=bn),(0,Hl[Ha[Ua++]>>8&15])(lr,Vt+ +Ra,$t,Yr+Ra-bn,Na-Ra,$t,Yr+Ra),Ra=Na}Vt+=bn,Yr+=bn,++Or&fi||(ai+=Jn)}ur!=gt.nc&&v(it,et-Gr,it,et+(ur-Mt-1)*Gr,Gr);break;case 1:for(Gr=lr,Yt=Vt,bn=(lr=gt.Ea)-(Yr=lr&~($t=(Vt=1<<gt.b)-1)),Or=zr(lr,gt.b),tn=gt.K,gt=gt.w+(Mt>>gt.b)*Or;Mt<ur;){for(fi=tn,Jn=gt,Gi=new xr,ai=Yt+Yr,Ha=Yt+lr;Yt<ai;)Ei(fi[Jn++],Gi),Pc(Gi,Gr,Yt,Vt,it,et),Yt+=Vt,et+=Vt;Yt<Ha&&(Ei(fi[Jn++],Gi),Pc(Gi,Gr,Yt,bn,it,et),Yt+=bn,et+=bn),++Mt&$t||(gt+=Or)}break;case 3:if(lr==it&&Vt==et&&0<gt.b){for(Yt=it,lr=Gr=et+(ur-Mt)*Gr-(Yr=(ur-Mt)*zr(gt.Ea,gt.b)),Vt=it,$t=et,Or=[],Yr=(bn=Yr)-1;0<=Yr;--Yr)Or[Yr]=Vt[$t+Yr];for(Yr=bn-1;0<=Yr;--Yr)Yt[lr+Yr]=Or[Yr];Us(gt,Mt,ur,it,Gr,it,et)}else Us(gt,Mt,ur,lr,Vt,it,et)}et=oe,it=D}it!=D&&v(oe,D,et,it,Ke)}function on(o,b){var D=o.V,oe=o.Ba+o.c*o.C,Oe=b-o.C;if(a(b<=o.l.o),a(16>=Oe),0<Oe){var Ke=o.l,ze=o.Ta,et=o.Ua,it=Ke.width;if(Yi(o,Oe,D,oe),Oe=et=[et],a((D=o.C)<(oe=b)),a(Ke.v<Ke.va),oe>Ke.o&&(oe=Ke.o),D<Ke.j){var gt=Ke.j-D;D=Ke.j,Oe[0]+=gt*it}if(D>=oe?D=0:(Oe[0]+=4*Ke.v,Ke.ka=D-Ke.j,Ke.U=Ke.va-Ke.v,Ke.T=oe-D,D=1),D){if(et=et[0],11>(D=o.ca).S){var Mt=D.f.RGBA,ur=(oe=D.S,Oe=Ke.U,Ke=Ke.T,gt=Mt.eb,Mt.A),lr=Ke;for(Mt=Mt.fb+o.Ma*Mt.A;0<lr--;){var Vt=ze,Gr=et,Or=Oe,Yt=gt,$t=Mt;switch(oe){case Uu:il(Vt,Gr,Or,Yt,$t);break;case IA:Ys(Vt,Gr,Or,Yt,$t);break;case al:Ys(Vt,Gr,Or,Yt,$t),Ac(Yt,$t,0,Or,1,0);break;case $d:Yc(Vt,Gr,Or,Yt,$t);break;case MA:na(Vt,Gr,Or,Yt,$t,1);break;case Ru:na(Vt,Gr,Or,Yt,$t,1),Ac(Yt,$t,0,Or,1,0);break;case tu:na(Vt,Gr,Or,Yt,$t,0);break;case Qu:na(Vt,Gr,Or,Yt,$t,0),Ac(Yt,$t,1,Or,1,0);break;case LA:cA(Vt,Gr,Or,Yt,$t);break;case vn:cA(Vt,Gr,Or,Yt,$t),$o(Yt,$t,Or,1,0);break;case Ad:Jc(Vt,Gr,Or,Yt,$t);break;default:a(0)}et+=it,Mt+=ur}o.Ma+=Ke}else alert("todo:EmitRescaledRowsYUVA");a(o.Ma<=D.height)}}o.C=b,a(o.C<=o.i)}function ga(o){var b;if(0<o.ua)return 0;for(b=0;b<o.Wb;++b){var D=o.Ya[b].G,oe=o.Ya[b].H;if(0<D[1][oe[1]+0].g||0<D[2][oe[2]+0].g||0<D[3][oe[3]+0].g)return 0}return 1}function ho(o,b,D,oe,Oe,Ke){if(o.Z!=0){var ze=o.qd,et=o.rd;for(a(hA[o.Z]!=null);b<D;++b)hA[o.Z](ze,et,oe,Oe,oe,Oe,Ke),ze=oe,et=Oe,Oe+=Ke;o.qd=ze,o.rd=et}}function Wa(o,b){var D=o.l.ma,oe=D.Z==0||D.Z==1?o.l.j:o.C;if(oe=o.C<oe?oe:o.C,a(b<=o.l.o),b>oe){var Oe=o.l.width,Ke=D.ca,ze=D.tb+Oe*oe,et=o.V,it=o.Ba+o.c*oe,gt=o.gc;a(o.ab==1),a(gt[0].hc==3),bc(gt[0],oe,b,et,it,Ke,ze),ho(D,oe,b,Ke,ze,Oe)}o.C=o.Ma=b}function Li(o,b,D,oe,Oe,Ke,ze){var et=o.$/oe,it=o.$%oe,gt=o.m,Mt=o.s,ur=D+o.$,lr=ur;Oe=D+oe*Oe;var Vt=D+oe*Ke,Gr=280+Mt.ua,Or=o.Pb?et:16777216,Yt=0<Mt.ua?Mt.Wa:null,$t=Mt.wc,Yr=ur<Vt?Ho(Mt,it,et):null;a(o.C<Ke),a(Vt<=Oe);var bn=!1;e:for(;;){for(;bn||ur<Vt;){var tn=0;if(et>=Or){var fi=ur-D;a((Or=o).Pb),Or.wd=Or.m,Or.xd=fi,0<Or.s.ua&&tr(Or.s.Wa,Or.s.vb),Or=et+vf}if(it&$t||(Yr=Ho(Mt,it,et)),a(Yr!=null),Yr.Qb&&(b[ur]=Yr.qb,bn=!0),!bn)if(yt(gt),Yr.jc){tn=gt,fi=b;var Jn=ur,Gi=Yr.pd[Ze(tn)&_s-1];a(Yr.jc),256>Gi.g?(mt(tn,tn.u+Gi.g),fi[Jn]=Gi.value,tn=0):(mt(tn,tn.u+Gi.g-256),a(256<=Gi.value),tn=Gi.value),tn==0&&(bn=!0)}else tn=Cn(Yr.G[0],Yr.H[0],gt);if(gt.h)break;if(bn||256>tn){if(!bn)if(Yr.nd)b[ur]=(Yr.qb|tn<<8)>>>0;else{if(yt(gt),bn=Cn(Yr.G[1],Yr.H[1],gt),yt(gt),fi=Cn(Yr.G[2],Yr.H[2],gt),Jn=Cn(Yr.G[3],Yr.H[3],gt),gt.h)break;b[ur]=(Jn<<24|bn<<16|tn<<8|fi)>>>0}if(bn=!1,++ur,++it>=oe&&(it=0,++et,ze!=null&&et<=Ke&&!(et%16)&&ze(o,et),Yt!=null))for(;lr<ur;)tn=b[lr++],Yt.X[(506832829*tn&4294967295)>>>Yt.Mb]=tn}else if(280>tn){if(tn=ro(tn-256,gt),fi=Cn(Yr.G[4],Yr.H[4],gt),yt(gt),fi=as(oe,fi=ro(fi,gt)),gt.h)break;if(ur-D<fi||Oe-ur<tn)break e;for(Jn=0;Jn<tn;++Jn)b[ur+Jn]=b[ur+Jn-fi];for(ur+=tn,it+=tn;it>=oe;)it-=oe,++et,ze!=null&&et<=Ke&&!(et%16)&&ze(o,et);if(a(ur<=Oe),it&$t&&(Yr=Ho(Mt,it,et)),Yt!=null)for(;lr<ur;)tn=b[lr++],Yt.X[(506832829*tn&4294967295)>>>Yt.Mb]=tn}else{if(!(tn<Gr))break e;for(bn=tn-280,a(Yt!=null);lr<ur;)tn=b[lr++],Yt.X[(506832829*tn&4294967295)>>>Yt.Mb]=tn;tn=ur,a(!(bn>>>(fi=Yt).Xa)),b[tn]=fi.X[bn],bn=!0}bn||a(gt.h==Je(gt))}if(o.Pb&&gt.h&&ur<Oe)a(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&tr(o.s.vb,o.s.Wa);else{if(gt.h)break e;ze!=null&&ze(o,et>Ke?Ke:et),o.a=0,o.$=ur-D}return 1}return o.a=3,0}function Po(o){a(o!=null),o.vc=null,o.yc=null,o.Ya=null;var b=o.Wa;b!=null&&(b.X=null),o.vb=null,a(o!=null)}function No(){var o=new GA;return o==null?null:(o.a=0,o.xb=Gd,Ta("Predictor","VP8LPredictors"),Ta("Predictor","VP8LPredictors_C"),Ta("PredictorAdd","VP8LPredictorsAdd"),Ta("PredictorAdd","VP8LPredictorsAdd_C"),gl=ii,Pc=gi,il=kn,Ys=ha,cA=ei,Jc=uo,Yc=Ti,Gt.VP8LMapColor32b=Kl,Gt.VP8LMapColor8b=lA,o)}function os(o,b,D,oe,Oe){var Ke=1,ze=[o],et=[b],it=oe.m,gt=oe.s,Mt=null,ur=0;e:for(;;){if(D)for(;Ke&&pt(it,1);){var lr=ze,Vt=et,Gr=oe,Or=1,Yt=Gr.m,$t=Gr.gc[Gr.ab],Yr=pt(Yt,2);if(Gr.Oc&1<<Yr)Ke=0;else{switch(Gr.Oc|=1<<Yr,$t.hc=Yr,$t.Ea=lr[0],$t.nc=Vt[0],$t.K=[null],++Gr.ab,a(4>=Gr.ab),Yr){case 0:case 1:$t.b=pt(Yt,3)+2,Or=os(zr($t.Ea,$t.b),zr($t.nc,$t.b),0,Gr,$t.K),$t.K=$t.K[0];break;case 3:var bn,tn=pt(Yt,8)+1,fi=16<tn?0:4<tn?1:2<tn?2:3;if(lr[0]=zr($t.Ea,fi),$t.b=fi,bn=Or=os(tn,1,0,Gr,$t.K)){var Jn,Gi=tn,ai=$t,Ha=1<<(8>>ai.b),Ua=C(Ha);if(Ua==null)bn=0;else{var Ra=ai.K[0],Na=ai.w;for(Ua[0]=ai.K[0][0],Jn=1;Jn<1*Gi;++Jn)Ua[Jn]=wr(Ra[Na+Jn],Ua[Jn-1]);for(;Jn<4*Ha;++Jn)Ua[Jn]=0;ai.K[0]=null,ai.K[0]=Ua,bn=1}}Or=bn;break;case 2:break;default:a(0)}Ke=Or}}if(ze=ze[0],et=et[0],Ke&&pt(it,1)&&!(Ke=1<=(ur=pt(it,4))&&11>=ur)){oe.a=3;break e}var no;if(no=Ke)t:{var po,ea,ol,bl=oe,qs=ze,_c=et,es=ur,Fc=D,Oc=bl.m,Fl=bl.s,wl=[null],dc=1,eA=0,DA=ud[es];r:for(;;){if(Fc&&pt(Oc,1)){var zs=pt(Oc,3)+2,PA=zr(qs,zs),NA=zr(_c,zs),OA=PA*NA;if(!os(PA,NA,0,bl,wl))break r;for(wl=wl[0],Fl.xc=zs,po=0;po<OA;++po){var ru=wl[po]>>8&65535;wl[po]=ru,ru>=dc&&(dc=ru+1)}}if(Oc.h)break r;for(ea=0;5>ea;++ea){var As=Vd[ea];!ea&&0<es&&(As+=1<<es),eA<As&&(eA=As)}var pd=O(dc*DA,Bt),qd=dc,Rf=O(qd,H);if(Rf==null)var ef=null;else a(65536>=qd),ef=Rf;var Gu=C(eA);if(ef==null||Gu==null||pd==null){bl.a=1;break r}var Xu=pd;for(po=ol=0;po<dc;++po){var nc=ef[po],md=nc.G,gd=nc.H,Qf=0,Ju=1,bf=0;for(ea=0;5>ea;++ea){As=Vd[ea],md[ea]=Xu,gd[ea]=ol,!ea&&0<es&&(As+=1<<es);i:{var Id,Md=As,Ld=bl,kd=Gu,Tc=Xu,m0=ol,vd=0,yu=Ld.m,Es=pt(yu,1);if(F(kd,0,0,Md),Es){var g0=pt(yu,1)+1,Kf=pt(yu,1),bu=pt(yu,Kf==0?1:8);kd[bu]=1,g0==2&&(kd[bu=pt(yu,8)]=1);var Yu=1}else{var Hf=C(19),wf=pt(yu,4)+4;if(19<wf){Ld.a=3;var Uc=0;break i}for(Id=0;Id<wf;++Id)Hf[_d[Id]]=pt(yu,3);var ic=void 0,qu=void 0,ed=Ld,v0=Hf,tf=Md,jf=kd,xf=0,mA=ed.m,rf=8,zf=O(128,Bt);n:for(;bt(zf,0,7,v0,19);){if(pt(mA,1)){var $f=2+2*pt(mA,3);if((ic=2+pt(mA,$f))>tf)break n}else ic=tf;for(qu=0;qu<tf&&ic--;){yt(mA);var Dd=zf[0+(127&Ze(mA))];mt(mA,mA.u+Dd.g);var TA=Dd.value;if(16>TA)jf[qu++]=TA,TA!=0&&(rf=TA);else{var Zf=TA==16,yd=TA-16,y0=Zd[yd],Cf=pt(mA,Zo[yd])+y0;if(qu+Cf>tf)break n;for(var b0=Zf?rf:0;0<Cf--;)jf[qu++]=b0}}xf=1;break n}xf||(ed.a=3),Yu=xf}(Yu=Yu&&!yu.h)&&(vd=bt(Tc,m0,8,kd,Md)),Yu&&vd!=0?Uc=vd:(Ld.a=3,Uc=0)}if(Uc==0)break r;if(Ju&&Wd[ea]==1&&(Ju=Xu[ol].g==0),Qf+=Xu[ol].g,ol+=Uc,3>=ea){var Pd,Bf=Gu[0];for(Pd=1;Pd<As;++Pd)Gu[Pd]>Bf&&(Bf=Gu[Pd]);bf+=Bf}}if(nc.nd=Ju,nc.Qb=0,Ju&&(nc.qb=(md[3][gd[3]+0].value<<24|md[1][gd[1]+0].value<<16|md[2][gd[2]+0].value)>>>0,Qf==0&&256>md[0][gd[0]+0].value&&(nc.Qb=1,nc.qb+=md[0][gd[0]+0].value<<8)),nc.jc=!nc.Qb&&6>bf,nc.jc){var wu,Rc=nc;for(wu=0;wu<_s;++wu){var xu=wu,nu=Rc.pd[xu],nf=Rc.G[0][Rc.H[0]+xu];256<=nf.value?(nu.g=nf.g+256,nu.value=nf.value):(nu.g=0,nu.value=0,xu>>=fo(nf,8,nu),xu>>=fo(Rc.G[1][Rc.H[1]+xu],16,nu),xu>>=fo(Rc.G[2][Rc.H[2]+xu],0,nu),fo(Rc.G[3][Rc.H[3]+xu],24,nu))}}}Fl.vc=wl,Fl.Wb=dc,Fl.Ya=ef,Fl.yc=pd,no=1;break t}no=0}if(!(Ke=no)){oe.a=3;break e}if(0<ur){if(gt.ua=1<<ur,!hn(gt.Wa,ur)){oe.a=1,Ke=0;break e}}else gt.ua=0;var Sf=oe,Vf=ze,w0=et,Ef=Sf.s,_f=Ef.xc;if(Sf.c=Vf,Sf.i=w0,Ef.md=zr(Vf,_f),Ef.wc=_f==0?-1:(1<<_f)-1,D){oe.xb=zu;break e}if((Mt=C(ze*et))==null){oe.a=1,Ke=0;break e}Ke=(Ke=Li(oe,Mt,0,ze,et,et,null))&&!it.h;break e}return Ke?(Oe!=null?Oe[0]=Mt:(a(Mt==null),a(D)),oe.$=0,D||Po(gt)):Po(gt),Ke}function fs(o,b){var D=o.c*o.i,oe=D+b+16*b;return a(o.c<=b),o.V=C(oe),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+D+b,1)}function ss(o,b){var D=o.C,oe=b-D,Oe=o.V,Ke=o.Ba+o.c*D;for(a(b<=o.l.o);0<oe;){var ze=16<oe?16:oe,et=o.l.ma,it=o.l.width,gt=it*ze,Mt=et.ca,ur=et.tb+it*D,lr=o.Ta,Vt=o.Ua;Yi(o,ze,Oe,Ke),Ss(lr,Vt,Mt,ur,gt),ho(et,D,D+ze,Mt,ur,it),oe-=ze,Oe+=ze*o.c,D+=ze}a(D==b),o.C=o.Ma=b}function hs(){this.ub=this.yd=this.td=this.Rb=0}function Bl(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function qo(){this.Fb=this.Bb=this.Cb=0,this.Zb=C(4),this.Lb=C(4)}function Ds(){this.Yb=function(){var o=[];return function b(D,oe,Oe){for(var Ke=Oe[oe],ze=0;ze<Ke&&(D.push(Oe.length>oe+1?[]:0),!(Oe.length<oe+1));ze++)b(D[ze],oe+1,Oe)}(o,0,[3,11]),o}()}function ps(){this.jb=C(3),this.Wc=V([4,8],Ds),this.Xc=V([4,17],Ds)}function jo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new C(4),this.od=new C(4)}function wo(){this.ld=this.La=this.dd=this.tc=0}function Hs(){this.Na=this.la=0}function oc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Sl(){this.ad=C(384),this.Za=0,this.Ob=C(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ol(){this.uc=this.M=this.Nb=0,this.wa=Array(new wo),this.Y=0,this.ya=Array(new Sl),this.aa=0,this.l=new pa}function nA(){this.y=C(16),this.f=C(8),this.ea=C(8)}function HA(){this.cb=this.a=0,this.sc="",this.m=new Et,this.Od=new hs,this.Kc=new Bl,this.ed=new jo,this.Qa=new qo,this.Ic=this.$c=this.Aa=0,this.D=new Ol,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=O(8,Et),this.ia=0,this.pb=O(4,oc),this.Pa=new ps,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new nA),this.Hd=0,this.rb=Array(new Hs),this.sb=0,this.wa=Array(new wo),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Sl),this.L=this.aa=0,this.gd=V([4,2],wo),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function pa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function oo(){var o=new HA;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Nc||(Nc=Ps)),o}function Ka(o,b,D){return o.a==0&&(o.a=b,o.sc=D,o.cb=0),0}function xo(o,b,D){return 3<=D&&o[b+0]==157&&o[b+1]==1&&o[b+2]==42}function ms(o,b){if(o==null)return 0;if(o.a=0,o.sc="OK",b==null)return Ka(o,2,"null VP8Io passed to VP8GetHeaders()");var D=b.data,oe=b.w,Oe=b.ha;if(4>Oe)return Ka(o,7,"Truncated header.");var Ke=D[oe+0]|D[oe+1]<<8|D[oe+2]<<16,ze=o.Od;if(ze.Rb=!(1&Ke),ze.td=Ke>>1&7,ze.yd=Ke>>4&1,ze.ub=Ke>>5,3<ze.td)return Ka(o,3,"Incorrect keyframe parameters.");if(!ze.yd)return Ka(o,4,"Frame not displayable.");oe+=3,Oe-=3;var et=o.Kc;if(ze.Rb){if(7>Oe)return Ka(o,7,"cannot parse picture header");if(!xo(D,oe,Oe))return Ka(o,3,"Bad code word");et.c=16383&(D[oe+4]<<8|D[oe+3]),et.Td=D[oe+4]>>6,et.i=16383&(D[oe+6]<<8|D[oe+5]),et.Ud=D[oe+6]>>6,oe+=7,Oe-=7,o.za=et.c+15>>4,o.Ub=et.i+15>>4,b.width=et.c,b.height=et.i,b.Da=0,b.j=0,b.v=0,b.va=b.width,b.o=b.height,b.da=0,b.ib=b.width,b.hb=b.height,b.U=b.width,b.T=b.height,F((Ke=o.Pa).jb,0,255,Ke.jb.length),a((Ke=o.Qa)!=null),Ke.Cb=0,Ke.Bb=0,Ke.Fb=1,F(Ke.Zb,0,0,Ke.Zb.length),F(Ke.Lb,0,0,Ke.Lb)}if(ze.ub>Oe)return Ka(o,7,"bad partition length");Se(Ke=o.m,D,oe,ze.ub),oe+=ze.ub,Oe-=ze.ub,ze.Rb&&(et.Ld=Kt(Ke),et.Kd=Kt(Ke)),et=o.Qa;var it,gt=o.Pa;if(a(Ke!=null),a(et!=null),et.Cb=Kt(Ke),et.Cb){if(et.Bb=Kt(Ke),Kt(Ke)){for(et.Fb=Kt(Ke),it=0;4>it;++it)et.Zb[it]=Kt(Ke)?Ye(Ke,7):0;for(it=0;4>it;++it)et.Lb[it]=Kt(Ke)?Ye(Ke,6):0}if(et.Bb)for(it=0;3>it;++it)gt.jb[it]=Kt(Ke)?De(Ke,8):255}else et.Bb=0;if(Ke.Ka)return Ka(o,3,"cannot parse segment header");if((et=o.ed).zd=Kt(Ke),et.Tb=De(Ke,6),et.wb=De(Ke,3),et.Pc=Kt(Ke),et.Pc&&Kt(Ke)){for(gt=0;4>gt;++gt)Kt(Ke)&&(et.vd[gt]=Ye(Ke,6));for(gt=0;4>gt;++gt)Kt(Ke)&&(et.od[gt]=Ye(Ke,6))}if(o.L=et.Tb==0?0:et.zd?1:2,Ke.Ka)return Ka(o,3,"cannot parse filter header");var Mt=Oe;if(Oe=it=oe,oe=it+Mt,et=Mt,o.Xb=(1<<De(o.m,2))-1,Mt<3*(gt=o.Xb))D=7;else{for(it+=3*gt,et-=3*gt,Mt=0;Mt<gt;++Mt){var ur=D[Oe+0]|D[Oe+1]<<8|D[Oe+2]<<16;ur>et&&(ur=et),Se(o.Jc[+Mt],D,it,ur),it+=ur,et-=ur,Oe+=3}Se(o.Jc[+gt],D,it,et),D=it<oe?0:5}if(D!=0)return Ka(o,D,"cannot parse partitions");for(D=De(it=o.m,7),Oe=Kt(it)?Ye(it,4):0,oe=Kt(it)?Ye(it,4):0,et=Kt(it)?Ye(it,4):0,gt=Kt(it)?Ye(it,4):0,it=Kt(it)?Ye(it,4):0,Mt=o.Qa,ur=0;4>ur;++ur){if(Mt.Cb){var lr=Mt.Zb[ur];Mt.Fb||(lr+=D)}else{if(0<ur){o.pb[ur]=o.pb[0];continue}lr=D}var Vt=o.pb[ur];Vt.Sc[0]=gu[pl(lr+Oe,127)],Vt.Sc[1]=$l[pl(lr+0,127)],Vt.Eb[0]=2*gu[pl(lr+oe,127)],Vt.Eb[1]=101581*$l[pl(lr+et,127)]>>16,8>Vt.Eb[1]&&(Vt.Eb[1]=8),Vt.Qc[0]=gu[pl(lr+gt,117)],Vt.Qc[1]=$l[pl(lr+it,127)],Vt.lc=lr+it}if(!ze.Rb)return Ka(o,4,"Not a key frame.");for(Kt(Ke),ze=o.Pa,D=0;4>D;++D){for(Oe=0;8>Oe;++Oe)for(oe=0;3>oe;++oe)for(et=0;11>et;++et)gt=Tt(Ke,fd[D][Oe][oe][et])?De(Ke,8):dA[D][Oe][oe][et],ze.Wc[D][Oe].Yb[oe][et]=gt;for(Oe=0;17>Oe;++Oe)ze.Xc[D][Oe]=ze.Wc[D][ju[Oe]]}return o.kc=Kt(Ke),o.kc&&(o.Bd=De(Ke,8)),o.cb=1}function Ps(o,b,D,oe,Oe,Ke,ze){var et=b[Oe].Yb[D];for(D=0;16>Oe;++Oe){if(!Tt(o,et[D+0]))return Oe;for(;!Tt(o,et[D+1]);)if(et=b[++Oe].Yb[0],D=0,Oe==16)return 16;var it=b[Oe+1].Yb;if(Tt(o,et[D+2])){var gt=o,Mt=0;if(Tt(gt,(lr=et)[(ur=D)+3]))if(Tt(gt,lr[ur+6])){for(et=0,ur=2*(Mt=Tt(gt,lr[ur+8]))+(lr=Tt(gt,lr[ur+9+Mt])),Mt=0,lr=Is[ur];lr[et];++et)Mt+=Mt+Tt(gt,lr[et]);Mt+=3+(8<<ur)}else Tt(gt,lr[ur+7])?(Mt=7+2*Tt(gt,165),Mt+=Tt(gt,145)):Mt=5+Tt(gt,159);else Mt=Tt(gt,lr[ur+4])?3+Tt(gt,lr[ur+5]):2;et=it[2]}else Mt=1,et=it[1];it=ze+Hu[Oe],0>(gt=o).b&&It(gt);var ur,lr=gt.b,Vt=(ur=gt.Ca>>1)-(gt.I>>lr)>>31;--gt.b,gt.Ca+=Vt,gt.Ca|=1,gt.I-=(ur+1&Vt)<<lr,Ke[it]=((Mt^Vt)-Vt)*oe[(0<Oe)+0]}return 16}function gs(o){var b=o.rb[o.sb-1];b.la=0,b.Na=0,F(o.zc,0,0,o.zc.length),o.ja=0}function Gl(o,b){if(o==null)return 0;if(b==null)return Ka(o,2,"NULL VP8Io parameter in VP8Decode().");if(!o.cb&&!ms(o,b))return 0;if(a(o.cb),b.ac==null||b.ac(b)){b.ob&&(o.L=0);var D=xt[o.L];if(o.L==2?(o.yb=0,o.zb=0):(o.yb=b.v-D>>4,o.zb=b.j-D>>4,0>o.yb&&(o.yb=0),0>o.zb&&(o.zb=0)),o.Va=b.o+15+D>>4,o.Hb=b.va+15+D>>4,o.Hb>o.za&&(o.Hb=o.za),o.Va>o.Ub&&(o.Va=o.Ub),0<o.L){var oe=o.ed;for(D=0;4>D;++D){var Oe;if(o.Qa.Cb){var Ke=o.Qa.Lb[D];o.Qa.Fb||(Ke+=oe.Tb)}else Ke=oe.Tb;for(Oe=0;1>=Oe;++Oe){var ze=o.gd[D][Oe],et=Ke;if(oe.Pc&&(et+=oe.vd[0],Oe&&(et+=oe.od[0])),0<(et=0>et?0:63<et?63:et)){var it=et;0<oe.wb&&(it=4<oe.wb?it>>2:it>>1)>9-oe.wb&&(it=9-oe.wb),1>it&&(it=1),ze.dd=it,ze.tc=2*et+it,ze.ld=40<=et?2:15<=et?1:0}else ze.tc=0;ze.La=Oe}}}D=0}else Ka(o,6,"Frame setup failed"),D=o.a;if(D=D==0){if(D){o.$c=0,0<o.Aa||(o.Ic=mr);e:{D=o.Ic,oe=4*(it=o.za);var gt=32*it,Mt=it+1,ur=0<o.L?it*(0<o.Aa?2:1):0,lr=(o.Aa==2?2:1)*it;if((ze=oe+832+(Oe=3*(16*D+xt[o.L])/2*gt)+(Ke=o.Fa!=null&&0<o.Fa.length?o.Kc.c*o.Kc.i:0))!=ze)D=0;else{if(ze>o.Vb){if(o.Vb=0,o.Ec=C(ze),o.Fc=0,o.Ec==null){D=Ka(o,1,"no memory during frame initialization.");break e}o.Vb=ze}ze=o.Ec,et=o.Fc,o.Ac=ze,o.Bc=et,et+=oe,o.Gd=O(gt,nA),o.Hd=0,o.rb=O(Mt+1,Hs),o.sb=1,o.wa=ur?O(ur,wo):null,o.Y=0,o.D.Nb=0,o.D.wa=o.wa,o.D.Y=o.Y,0<o.Aa&&(o.D.Y+=it),a(!0),o.oc=ze,o.pc=et,et+=832,o.ya=O(lr,Sl),o.aa=0,o.D.ya=o.ya,o.D.aa=o.aa,o.Aa==2&&(o.D.aa+=it),o.R=16*it,o.B=8*it,it=(gt=xt[o.L])*o.R,gt=gt/2*o.B,o.sa=ze,o.ta=et+it,o.qa=o.sa,o.ra=o.ta+16*D*o.R+gt,o.Ha=o.qa,o.Ia=o.ra+8*D*o.B+gt,o.$c=0,et+=Oe,o.mb=Ke?ze:null,o.nb=Ke?et:null,a(et+Ke<=o.Fc+o.Vb),gs(o),F(o.Ac,o.Bc,0,oe),D=1}}if(D){if(b.ka=0,b.y=o.sa,b.O=o.ta,b.f=o.qa,b.N=o.ra,b.ea=o.Ha,b.Vd=o.Ia,b.fa=o.R,b.Rc=o.B,b.F=null,b.J=0,!Fs){for(D=-255;255>=D;++D)oa[255+D]=0>D?-D:D;for(D=-1020;1020>=D;++D)di[1020+D]=-128>D?-128:127<D?127:D;for(D=-112;112>=D;++D)uc[112+D]=-16>D?-16:15<D?15:D;for(D=-255;510>=D;++D)uA[255+D]=0>D?0:255<D?255:D;Fs=1}pu=Jl,qc=Tl,Ou=Xl,jl=js,wc=xA,Bs=So,mu=mc,ld=gc,eu=Ed,xc=WA,Cc=Zr,rc=cu,zl=SA,_A=Lc,FA=dl,AA=ql,Tu=ec,Bc=lu,Sc[0]=Eo,Sc[1]=jA,Sc[2]=zA,Sc[3]=$A,Sc[4]=ZA,Sc[5]=lc,Sc[6]=aA,Sc[7]=Wc,Sc[8]=cc,Sc[9]=Yl,yl[0]=Zc,yl[1]=CA,yl[2]=Ul,yl[3]=sc,yl[4]=Os,yl[5]=BA,yl[6]=Vc,fA[0]=ul,fA[1]=$c,fA[2]=Co,fA[3]=Xs,fA[4]=va,fA[5]=Ea,fA[6]=Js,D=1}else D=0}D&&(D=function(Vt,Gr){for(Vt.M=0;Vt.M<Vt.Va;++Vt.M){var Or,Yt=Vt.Jc[Vt.M&Vt.Xb],$t=Vt.m,Yr=Vt;for(Or=0;Or<Yr.za;++Or){var bn=$t,tn=Yr,fi=tn.Ac,Jn=tn.Bc+4*Or,Gi=tn.zc,ai=tn.ya[tn.aa+Or];if(tn.Qa.Bb?ai.$b=Tt(bn,tn.Pa.jb[0])?2+Tt(bn,tn.Pa.jb[2]):Tt(bn,tn.Pa.jb[1]):ai.$b=0,tn.kc&&(ai.Ad=Tt(bn,tn.Bd)),ai.Za=!Tt(bn,145)+0,ai.Za){var Ha=ai.Ob,Ua=0;for(tn=0;4>tn;++tn){var Ra,Na=Gi[0+tn];for(Ra=0;4>Ra;++Ra){Na=vl[fi[Jn+Ra]][Na];for(var no=dd[Tt(bn,Na[0])];0<no;)no=dd[2*no+Tt(bn,Na[no])];Na=-no,fi[Jn+Ra]=Na}v(Ha,Ua,fi,Jn,4),Ua+=4,Gi[0+tn]=Na}}else Na=Tt(bn,156)?Tt(bn,128)?1:3:Tt(bn,163)?2:0,ai.Ob[0]=Na,F(fi,Jn,Na,4),F(Gi,0,Na,4);ai.Dd=Tt(bn,142)?Tt(bn,114)?Tt(bn,183)?1:3:2:0}if(Yr.m.Ka)return Ka(Vt,7,"Premature end-of-partition0 encountered.");for(;Vt.ja<Vt.za;++Vt.ja){if(Yr=Yt,bn=($t=Vt).rb[$t.sb-1],fi=$t.rb[$t.sb+$t.ja],Or=$t.ya[$t.aa+$t.ja],Jn=$t.kc?Or.Ad:0)bn.la=fi.la=0,Or.Za||(bn.Na=fi.Na=0),Or.Hc=0,Or.Gc=0,Or.ia=0;else{var po,ea;if(bn=fi,fi=Yr,Jn=$t.Pa.Xc,Gi=$t.ya[$t.aa+$t.ja],ai=$t.pb[Gi.$b],tn=Gi.ad,Ha=0,Ua=$t.rb[$t.sb-1],Na=Ra=0,F(tn,Ha,0,384),Gi.Za)var ol=0,bl=Jn[3];else{no=C(16);var qs=bn.Na+Ua.Na;if(qs=Nc(fi,Jn[1],qs,ai.Eb,0,no,0),bn.Na=Ua.Na=(0<qs)+0,1<qs)pu(no,0,tn,Ha);else{var _c=no[0]+3>>3;for(no=0;256>no;no+=16)tn[Ha+no]=_c}ol=1,bl=Jn[0]}var es=15&bn.la,Fc=15&Ua.la;for(no=0;4>no;++no){var Oc=1&Fc;for(_c=ea=0;4>_c;++_c)es=es>>1|(Oc=(qs=Nc(fi,bl,qs=Oc+(1&es),ai.Sc,ol,tn,Ha))>ol)<<7,ea=ea<<2|(3<qs?3:1<qs?2:tn[Ha+0]!=0),Ha+=16;es>>=4,Fc=Fc>>1|Oc<<7,Ra=(Ra<<8|ea)>>>0}for(bl=es,ol=Fc>>4,po=0;4>po;po+=2){for(ea=0,es=bn.la>>4+po,Fc=Ua.la>>4+po,no=0;2>no;++no){for(Oc=1&Fc,_c=0;2>_c;++_c)qs=Oc+(1&es),es=es>>1|(Oc=0<(qs=Nc(fi,Jn[2],qs,ai.Qc,0,tn,Ha)))<<3,ea=ea<<2|(3<qs?3:1<qs?2:tn[Ha+0]!=0),Ha+=16;es>>=2,Fc=Fc>>1|Oc<<5}Na|=ea<<4*po,bl|=es<<4<<po,ol|=(240&Fc)<<po}bn.la=bl,Ua.la=ol,Gi.Hc=Ra,Gi.Gc=Na,Gi.ia=43690&Na?0:ai.ia,Jn=!(Ra|Na)}if(0<$t.L&&($t.wa[$t.Y+$t.ja]=$t.gd[Or.$b][Or.Za],$t.wa[$t.Y+$t.ja].La|=!Jn),Yr.Ka)return Ka(Vt,7,"Premature end-of-file encountered.")}if(gs(Vt),$t=Gr,Yr=1,Or=(Yt=Vt).D,bn=0<Yt.L&&Yt.M>=Yt.zb&&Yt.M<=Yt.Va,Yt.Aa==0)e:{if(Or.M=Yt.M,Or.uc=bn,fu(Yt,Or),Yr=1,Or=(ea=Yt.D).Nb,bn=(Na=xt[Yt.L])*Yt.R,fi=Na/2*Yt.B,no=16*Or*Yt.R,_c=8*Or*Yt.B,Jn=Yt.sa,Gi=Yt.ta-bn+no,ai=Yt.qa,tn=Yt.ra-fi+_c,Ha=Yt.Ha,Ua=Yt.Ia-fi+_c,Fc=(es=ea.M)==0,Ra=es>=Yt.Va-1,Yt.Aa==2&&fu(Yt,ea),ea.uc)for(Oc=(qs=Yt).D.M,a(qs.D.uc),ea=qs.yb;ea<qs.Hb;++ea){ol=ea,bl=Oc;var Fl=(wl=(As=qs).D).Nb;po=As.R;var wl=wl.wa[wl.Y+ol],dc=As.sa,eA=As.ta+16*Fl*po+16*ol,DA=wl.dd,zs=wl.tc;if(zs!=0)if(a(3<=zs),As.L==1)0<ol&&AA(dc,eA,po,zs+4),wl.La&&Bc(dc,eA,po,zs),0<bl&&FA(dc,eA,po,zs+4),wl.La&&Tu(dc,eA,po,zs);else{var PA=As.B,NA=As.qa,OA=As.ra+8*Fl*PA+8*ol,ru=As.Ha,As=As.Ia+8*Fl*PA+8*ol;Fl=wl.ld,0<ol&&(ld(dc,eA,po,zs+4,DA,Fl),xc(NA,OA,ru,As,PA,zs+4,DA,Fl)),wl.La&&(rc(dc,eA,po,zs,DA,Fl),_A(NA,OA,ru,As,PA,zs,DA,Fl)),0<bl&&(mu(dc,eA,po,zs+4,DA,Fl),eu(NA,OA,ru,As,PA,zs+4,DA,Fl)),wl.La&&(Cc(dc,eA,po,zs,DA,Fl),zl(NA,OA,ru,As,PA,zs,DA,Fl))}}if(Yt.ia&&alert("todo:DitherRow"),$t.put!=null){if(ea=16*es,es=16*(es+1),Fc?($t.y=Yt.sa,$t.O=Yt.ta+no,$t.f=Yt.qa,$t.N=Yt.ra+_c,$t.ea=Yt.Ha,$t.W=Yt.Ia+_c):(ea-=Na,$t.y=Jn,$t.O=Gi,$t.f=ai,$t.N=tn,$t.ea=Ha,$t.W=Ua),Ra||(es-=Na),es>$t.o&&(es=$t.o),$t.F=null,$t.J=null,Yt.Fa!=null&&0<Yt.Fa.length&&ea<es&&($t.J=JA(Yt,$t,ea,es-ea),$t.F=Yt.mb,$t.F==null&&$t.F.length==0)){Yr=Ka(Yt,3,"Could not decode alpha data.");break e}ea<$t.j&&(Na=$t.j-ea,ea=$t.j,a(!(1&Na)),$t.O+=Yt.R*Na,$t.N+=Yt.B*(Na>>1),$t.W+=Yt.B*(Na>>1),$t.F!=null&&($t.J+=$t.width*Na)),ea<es&&($t.O+=$t.v,$t.N+=$t.v>>1,$t.W+=$t.v>>1,$t.F!=null&&($t.J+=$t.v),$t.ka=ea-$t.j,$t.U=$t.va-$t.v,$t.T=es-ea,Yr=$t.put($t))}Or+1!=Yt.Ic||Ra||(v(Yt.sa,Yt.ta-bn,Jn,Gi+16*Yt.R,bn),v(Yt.qa,Yt.ra-fi,ai,tn+8*Yt.B,fi),v(Yt.Ha,Yt.Ia-fi,Ha,Ua+8*Yt.B,fi))}if(!Yr)return Ka(Vt,6,"Output aborted.")}return 1}(o,b)),b.bc!=null&&b.bc(b),D&=1}return D?(o.cb=0,D):0}function El(o,b,D,oe,Oe){Oe=o[b+D+32*oe]+(Oe>>3),o[b+D+32*oe]=-256&Oe?0>Oe?0:255:Oe}function zc(o,b,D,oe,Oe,Ke){El(o,b,0,D,oe+Oe),El(o,b,1,D,oe+Ke),El(o,b,2,D,oe-Ke),El(o,b,3,D,oe-Oe)}function Ns(o){return(20091*o>>16)+o}function wa(o,b,D,oe){var Oe,Ke=0,ze=C(16);for(Oe=0;4>Oe;++Oe){var et=o[b+0]+o[b+8],it=o[b+0]-o[b+8],gt=(35468*o[b+4]>>16)-Ns(o[b+12]),Mt=Ns(o[b+4])+(35468*o[b+12]>>16);ze[Ke+0]=et+Mt,ze[Ke+1]=it+gt,ze[Ke+2]=it-gt,ze[Ke+3]=et-Mt,Ke+=4,b++}for(Oe=Ke=0;4>Oe;++Oe)et=(o=ze[Ke+0]+4)+ze[Ke+8],it=o-ze[Ke+8],gt=(35468*ze[Ke+4]>>16)-Ns(ze[Ke+12]),El(D,oe,0,0,et+(Mt=Ns(ze[Ke+4])+(35468*ze[Ke+12]>>16))),El(D,oe,1,0,it+gt),El(D,oe,2,0,it-gt),El(D,oe,3,0,et-Mt),Ke++,oe+=32}function So(o,b,D,oe){var Oe=o[b+0]+4,Ke=35468*o[b+4]>>16,ze=Ns(o[b+4]),et=35468*o[b+1]>>16;zc(D,oe,0,Oe+ze,o=Ns(o[b+1]),et),zc(D,oe,1,Oe+Ke,o,et),zc(D,oe,2,Oe-Ke,o,et),zc(D,oe,3,Oe-ze,o,et)}function Tl(o,b,D,oe,Oe){wa(o,b,D,oe),Oe&&wa(o,b+16,D,oe+4)}function Xl(o,b,D,oe){qc(o,b+0,D,oe,1),qc(o,b+32,D,oe+128,1)}function js(o,b,D,oe){var Oe;for(o=o[b+0]+4,Oe=0;4>Oe;++Oe)for(b=0;4>b;++b)El(D,oe,b,Oe,o)}function xA(o,b,D,oe){o[b+0]&&jl(o,b+0,D,oe),o[b+16]&&jl(o,b+16,D,oe+4),o[b+32]&&jl(o,b+32,D,oe+128),o[b+48]&&jl(o,b+48,D,oe+128+4)}function Jl(o,b,D,oe){var Oe,Ke=C(16);for(Oe=0;4>Oe;++Oe){var ze=o[b+0+Oe]+o[b+12+Oe],et=o[b+4+Oe]+o[b+8+Oe],it=o[b+4+Oe]-o[b+8+Oe],gt=o[b+0+Oe]-o[b+12+Oe];Ke[0+Oe]=ze+et,Ke[8+Oe]=ze-et,Ke[4+Oe]=gt+it,Ke[12+Oe]=gt-it}for(Oe=0;4>Oe;++Oe)ze=(o=Ke[0+4*Oe]+3)+Ke[3+4*Oe],et=Ke[1+4*Oe]+Ke[2+4*Oe],it=Ke[1+4*Oe]-Ke[2+4*Oe],gt=o-Ke[3+4*Oe],D[oe+0]=ze+et>>3,D[oe+16]=gt+it>>3,D[oe+32]=ze-et>>3,D[oe+48]=gt-it>>3,oe+=64}function iA(o,b,D){var oe,Oe=b-32,Ke=so,ze=255-o[Oe-1];for(oe=0;oe<D;++oe){var et,it=Ke,gt=ze+o[b-1];for(et=0;et<D;++et)o[b+et]=it[gt+o[Oe+et]];b+=32}}function jA(o,b){iA(o,b,4)}function $c(o,b){iA(o,b,8)}function CA(o,b){iA(o,b,16)}function Ul(o,b){var D;for(D=0;16>D;++D)v(o,b+32*D,o,b-32,16)}function sc(o,b){var D;for(D=16;0<D;--D)F(o,b,o[b-1],16),b+=32}function un(o,b,D){var oe;for(oe=0;16>oe;++oe)F(b,D+32*oe,o,16)}function Zc(o,b){var D,oe=16;for(D=0;16>D;++D)oe+=o[b-1+32*D]+o[b+D-32];un(oe>>5,o,b)}function Os(o,b){var D,oe=8;for(D=0;16>D;++D)oe+=o[b-1+32*D];un(oe>>4,o,b)}function BA(o,b){var D,oe=8;for(D=0;16>D;++D)oe+=o[b+D-32];un(oe>>4,o,b)}function Vc(o,b){un(128,o,b)}function sa(o,b,D){return o+2*b+D+2>>2}function zA(o,b){var D,oe=b-32;for(oe=new Uint8Array([sa(o[oe-1],o[oe+0],o[oe+1]),sa(o[oe+0],o[oe+1],o[oe+2]),sa(o[oe+1],o[oe+2],o[oe+3]),sa(o[oe+2],o[oe+3],o[oe+4])]),D=0;4>D;++D)v(o,b+32*D,oe,0,oe.length)}function $A(o,b){var D=o[b-1],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1+96];pr(o,b+0,16843009*sa(o[b-1-32],D,oe)),pr(o,b+32,16843009*sa(D,oe,Oe)),pr(o,b+64,16843009*sa(oe,Oe,Ke)),pr(o,b+96,16843009*sa(Oe,Ke,Ke))}function Eo(o,b){var D,oe=4;for(D=0;4>D;++D)oe+=o[b+D-32]+o[b-1+32*D];for(oe>>=3,D=0;4>D;++D)F(o,b+32*D,oe,4)}function ZA(o,b){var D=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1-32],ze=o[b+0-32],et=o[b+1-32],it=o[b+2-32],gt=o[b+3-32];o[b+0+96]=sa(oe,Oe,o[b-1+96]),o[b+1+96]=o[b+0+64]=sa(D,oe,Oe),o[b+2+96]=o[b+1+64]=o[b+0+32]=sa(Ke,D,oe),o[b+3+96]=o[b+2+64]=o[b+1+32]=o[b+0+0]=sa(ze,Ke,D),o[b+3+64]=o[b+2+32]=o[b+1+0]=sa(et,ze,Ke),o[b+3+32]=o[b+2+0]=sa(it,et,ze),o[b+3+0]=sa(gt,it,et)}function aA(o,b){var D=o[b+1-32],oe=o[b+2-32],Oe=o[b+3-32],Ke=o[b+4-32],ze=o[b+5-32],et=o[b+6-32],it=o[b+7-32];o[b+0+0]=sa(o[b+0-32],D,oe),o[b+1+0]=o[b+0+32]=sa(D,oe,Oe),o[b+2+0]=o[b+1+32]=o[b+0+64]=sa(oe,Oe,Ke),o[b+3+0]=o[b+2+32]=o[b+1+64]=o[b+0+96]=sa(Oe,Ke,ze),o[b+3+32]=o[b+2+64]=o[b+1+96]=sa(Ke,ze,et),o[b+3+64]=o[b+2+96]=sa(ze,et,it),o[b+3+96]=sa(et,it,it)}function lc(o,b){var D=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1-32],ze=o[b+0-32],et=o[b+1-32],it=o[b+2-32],gt=o[b+3-32];o[b+0+0]=o[b+1+64]=Ke+ze+1>>1,o[b+1+0]=o[b+2+64]=ze+et+1>>1,o[b+2+0]=o[b+3+64]=et+it+1>>1,o[b+3+0]=it+gt+1>>1,o[b+0+96]=sa(Oe,oe,D),o[b+0+64]=sa(oe,D,Ke),o[b+0+32]=o[b+1+96]=sa(D,Ke,ze),o[b+1+32]=o[b+2+96]=sa(Ke,ze,et),o[b+2+32]=o[b+3+96]=sa(ze,et,it),o[b+3+32]=sa(et,it,gt)}function Wc(o,b){var D=o[b+0-32],oe=o[b+1-32],Oe=o[b+2-32],Ke=o[b+3-32],ze=o[b+4-32],et=o[b+5-32],it=o[b+6-32],gt=o[b+7-32];o[b+0+0]=D+oe+1>>1,o[b+1+0]=o[b+0+64]=oe+Oe+1>>1,o[b+2+0]=o[b+1+64]=Oe+Ke+1>>1,o[b+3+0]=o[b+2+64]=Ke+ze+1>>1,o[b+0+32]=sa(D,oe,Oe),o[b+1+32]=o[b+0+96]=sa(oe,Oe,Ke),o[b+2+32]=o[b+1+96]=sa(Oe,Ke,ze),o[b+3+32]=o[b+2+96]=sa(Ke,ze,et),o[b+3+64]=sa(ze,et,it),o[b+3+96]=sa(et,it,gt)}function Yl(o,b){var D=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1+96];o[b+0+0]=D+oe+1>>1,o[b+2+0]=o[b+0+32]=oe+Oe+1>>1,o[b+2+32]=o[b+0+64]=Oe+Ke+1>>1,o[b+1+0]=sa(D,oe,Oe),o[b+3+0]=o[b+1+32]=sa(oe,Oe,Ke),o[b+3+32]=o[b+1+64]=sa(Oe,Ke,Ke),o[b+3+64]=o[b+2+64]=o[b+0+96]=o[b+1+96]=o[b+2+96]=o[b+3+96]=Ke}function cc(o,b){var D=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1+96],ze=o[b-1-32],et=o[b+0-32],it=o[b+1-32],gt=o[b+2-32];o[b+0+0]=o[b+2+32]=D+ze+1>>1,o[b+0+32]=o[b+2+64]=oe+D+1>>1,o[b+0+64]=o[b+2+96]=Oe+oe+1>>1,o[b+0+96]=Ke+Oe+1>>1,o[b+3+0]=sa(et,it,gt),o[b+2+0]=sa(ze,et,it),o[b+1+0]=o[b+3+32]=sa(D,ze,et),o[b+1+32]=o[b+3+64]=sa(oe,D,ze),o[b+1+64]=o[b+3+96]=sa(Oe,oe,D),o[b+1+96]=sa(Ke,Oe,oe)}function Co(o,b){var D;for(D=0;8>D;++D)v(o,b+32*D,o,b-32,8)}function Xs(o,b){var D;for(D=0;8>D;++D)F(o,b,o[b-1],8),b+=32}function ls(o,b,D){var oe;for(oe=0;8>oe;++oe)F(b,D+32*oe,o,8)}function ul(o,b){var D,oe=8;for(D=0;8>D;++D)oe+=o[b+D-32]+o[b-1+32*D];ls(oe>>4,o,b)}function Ea(o,b){var D,oe=4;for(D=0;8>D;++D)oe+=o[b+D-32];ls(oe>>3,o,b)}function va(o,b){var D,oe=4;for(D=0;8>D;++D)oe+=o[b-1+32*D];ls(oe>>3,o,b)}function Js(o,b){ls(128,o,b)}function _l(o,b,D){var oe=o[b-D],Oe=o[b+0],Ke=3*(Oe-oe)+cd[1020+o[b-2*D]-o[b+D]],ze=Ga[112+(Ke+4>>3)];o[b-D]=so[255+oe+Ga[112+(Ke+3>>3)]],o[b+0]=so[255+Oe-ze]}function Rl(o,b,D,oe){var Oe=o[b+0],Ke=o[b+D];return Xa[255+o[b-2*D]-o[b-D]]>oe||Xa[255+Ke-Oe]>oe}function VA(o,b,D,oe){return 4*Xa[255+o[b-D]-o[b+0]]+Xa[255+o[b-2*D]-o[b+D]]<=oe}function cs(o,b,D,oe,Oe){var Ke=o[b-3*D],ze=o[b-2*D],et=o[b-D],it=o[b+0],gt=o[b+D],Mt=o[b+2*D],ur=o[b+3*D];return 4*Xa[255+et-it]+Xa[255+ze-gt]>oe?0:Xa[255+o[b-4*D]-Ke]<=Oe&&Xa[255+Ke-ze]<=Oe&&Xa[255+ze-et]<=Oe&&Xa[255+ur-Mt]<=Oe&&Xa[255+Mt-gt]<=Oe&&Xa[255+gt-it]<=Oe}function dl(o,b,D,oe){var Oe=2*oe+1;for(oe=0;16>oe;++oe)VA(o,b+oe,D,Oe)&&_l(o,b+oe,D)}function ql(o,b,D,oe){var Oe=2*oe+1;for(oe=0;16>oe;++oe)VA(o,b+oe*D,1,Oe)&&_l(o,b+oe*D,1)}function ec(o,b,D,oe){var Oe;for(Oe=3;0<Oe;--Oe)dl(o,b+=4*D,D,oe)}function lu(o,b,D,oe){var Oe;for(Oe=3;0<Oe;--Oe)ql(o,b+=4,D,oe)}function ya(o,b,D,oe,Oe,Ke,ze,et){for(Ke=2*Ke+1;0<Oe--;){if(cs(o,b,D,Ke,ze))if(Rl(o,b,D,et))_l(o,b,D);else{var it=o,gt=b,Mt=D,ur=it[gt-2*Mt],lr=it[gt-Mt],Vt=it[gt+0],Gr=it[gt+Mt],Or=it[gt+2*Mt],Yt=27*(Yr=cd[1020+3*(Vt-lr)+cd[1020+ur-Gr]])+63>>7,$t=18*Yr+63>>7,Yr=9*Yr+63>>7;it[gt-3*Mt]=so[255+it[gt-3*Mt]+Yr],it[gt-2*Mt]=so[255+ur+$t],it[gt-Mt]=so[255+lr+Yt],it[gt+0]=so[255+Vt-Yt],it[gt+Mt]=so[255+Gr-$t],it[gt+2*Mt]=so[255+Or-Yr]}b+=oe}}function fl(o,b,D,oe,Oe,Ke,ze,et){for(Ke=2*Ke+1;0<Oe--;){if(cs(o,b,D,Ke,ze))if(Rl(o,b,D,et))_l(o,b,D);else{var it=o,gt=b,Mt=D,ur=it[gt-Mt],lr=it[gt+0],Vt=it[gt+Mt],Gr=Ga[112+((Or=3*(lr-ur))+4>>3)],Or=Ga[112+(Or+3>>3)],Yt=Gr+1>>1;it[gt-2*Mt]=so[255+it[gt-2*Mt]+Yt],it[gt-Mt]=so[255+ur+Or],it[gt+0]=so[255+lr-Gr],it[gt+Mt]=so[255+Vt-Yt]}b+=oe}}function mc(o,b,D,oe,Oe,Ke){ya(o,b,D,1,16,oe,Oe,Ke)}function gc(o,b,D,oe,Oe,Ke){ya(o,b,1,D,16,oe,Oe,Ke)}function Zr(o,b,D,oe,Oe,Ke){var ze;for(ze=3;0<ze;--ze)fl(o,b+=4*D,D,1,16,oe,Oe,Ke)}function cu(o,b,D,oe,Oe,Ke){var ze;for(ze=3;0<ze;--ze)fl(o,b+=4,1,D,16,oe,Oe,Ke)}function Ed(o,b,D,oe,Oe,Ke,ze,et){ya(o,b,Oe,1,8,Ke,ze,et),ya(D,oe,Oe,1,8,Ke,ze,et)}function WA(o,b,D,oe,Oe,Ke,ze,et){ya(o,b,1,Oe,8,Ke,ze,et),ya(D,oe,1,Oe,8,Ke,ze,et)}function SA(o,b,D,oe,Oe,Ke,ze,et){fl(o,b+4*Oe,Oe,1,8,Ke,ze,et),fl(D,oe+4*Oe,Oe,1,8,Ke,ze,et)}function Lc(o,b,D,oe,Oe,Ke,ze,et){fl(o,b+4,1,Oe,8,Ke,ze,et),fl(D,oe+4,1,Oe,8,Ke,ze,et)}function Au(){this.ba=new bi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Zi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function uu(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ws(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function vc(){this.ua=0,this.Wa=new St,this.vb=new St,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new H,this.yc=new Bt}function GA(){this.xb=this.a=0,this.l=new pa,this.ca=new bi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new de,this.Pb=0,this.wd=new de,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new vc,this.ab=0,this.gc=O(4,ws),this.Oc=0}function Gc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new pa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function XA(o,b,D,oe,Oe,Ke,ze){for(o=o==null?0:o[b+0],b=0;b<ze;++b)Oe[Ke+b]=o+D[oe+b]&255,o=Oe[Ke+b]}function EA(o,b,D,oe,Oe,Ke,ze){var et;if(o==null)XA(null,null,D,oe,Oe,Ke,ze);else for(et=0;et<ze;++et)Oe[Ke+et]=o[b+et]+D[oe+et]&255}function kc(o,b,D,oe,Oe,Ke,ze){if(o==null)XA(null,null,D,oe,Oe,Ke,ze);else{var et,it=o[b+0],gt=it,Mt=it;for(et=0;et<ze;++et)gt=Mt+(it=o[b+et])-gt,Mt=D[oe+et]+(-256&gt?0>gt?0:255:gt)&255,gt=it,Oe[Ke+et]=Mt}}function JA(o,b,D,oe){var Oe=b.width,Ke=b.o;if(a(o!=null&&b!=null),0>D||0>=oe||D+oe>Ke)return null;if(!o.Cc){if(o.ga==null){var ze;if(o.ga=new Gc,(ze=o.ga==null)||(ze=b.width*b.o,a(o.Gb.length==0),o.Gb=C(ze),o.Uc=0,o.Gb==null?ze=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,ze=1),ze=!ze),!ze){ze=o.ga;var et=o.Fa,it=o.P,gt=o.qc,Mt=o.mb,ur=o.nb,lr=it+1,Vt=gt-1,Gr=ze.l;if(a(et!=null&&Mt!=null&&b!=null),hA[0]=null,hA[1]=XA,hA[2]=EA,hA[3]=kc,ze.ca=Mt,ze.tb=ur,ze.c=b.width,ze.i=b.height,a(0<ze.c&&0<ze.i),1>=gt)b=0;else if(ze.$a=et[it+0]>>0&3,ze.Z=et[it+0]>>2&3,ze.Lc=et[it+0]>>4&3,it=et[it+0]>>6&3,0>ze.$a||1<ze.$a||4<=ze.Z||1<ze.Lc||it)b=0;else if(Gr.put=ko,Gr.ac=ji,Gr.bc=Do,Gr.ma=ze,Gr.width=b.width,Gr.height=b.height,Gr.Da=b.Da,Gr.v=b.v,Gr.va=b.va,Gr.j=b.j,Gr.o=b.o,ze.$a)e:{a(ze.$a==1),b=No();t:for(;;){if(b==null){b=0;break e}if(a(ze!=null),ze.mc=b,b.c=ze.c,b.i=ze.i,b.l=ze.l,b.l.ma=ze,b.l.width=ze.c,b.l.height=ze.i,b.a=0,He(b.m,et,lr,Vt),!os(ze.c,ze.i,1,b,null)||(b.ab==1&&b.gc[0].hc==3&&ga(b.s)?(ze.ic=1,et=b.c*b.i,b.Ta=null,b.Ua=0,b.V=C(et),b.Ba=0,b.V==null?(b.a=1,b=0):b=1):(ze.ic=0,b=fs(b,ze.c)),!b))break t;b=1;break e}ze.mc=null,b=0}else b=Vt>=ze.c*ze.i;ze=!b}if(ze)return null;o.ga.Lc!=1?o.Ga=0:oe=Ke-D}a(o.ga!=null),a(D+oe<=Ke);e:{if(b=(et=o.ga).c,Ke=et.l.o,et.$a==0){if(lr=o.rc,Vt=o.Vc,Gr=o.Fa,it=o.P+1+D*b,gt=o.mb,Mt=o.nb+D*b,a(it<=o.P+o.qc),et.Z!=0)for(a(hA[et.Z]!=null),ze=0;ze<oe;++ze)hA[et.Z](lr,Vt,Gr,it,gt,Mt,b),lr=gt,Vt=Mt,Mt+=b,it+=b;else for(ze=0;ze<oe;++ze)v(gt,Mt,Gr,it,b),lr=gt,Vt=Mt,Mt+=b,it+=b;o.rc=lr,o.Vc=Vt}else{if(a(et.mc!=null),b=D+oe,a((ze=et.mc)!=null),a(b<=ze.i),ze.C>=b)b=1;else if(et.ic||vr(),et.ic){et=ze.V,lr=ze.Ba,Vt=ze.c;var Or=ze.i,Yt=(Gr=1,it=ze.$/Vt,gt=ze.$%Vt,Mt=ze.m,ur=ze.s,ze.$),$t=Vt*Or,Yr=Vt*b,bn=ur.wc,tn=Yt<Yr?Ho(ur,gt,it):null;a(Yt<=$t),a(b<=Or),a(ga(ur));t:for(;;){for(;!Mt.h&&Yt<Yr;){if(gt&bn||(tn=Ho(ur,gt,it)),a(tn!=null),yt(Mt),256>(Or=Cn(tn.G[0],tn.H[0],Mt)))et[lr+Yt]=Or,++Yt,++gt>=Vt&&(gt=0,++it<=b&&!(it%16)&&Wa(ze,it));else{if(!(280>Or)){Gr=0;break t}Or=ro(Or-256,Mt);var fi,Jn=Cn(tn.G[4],tn.H[4],Mt);if(yt(Mt),!(Yt>=(Jn=as(Vt,Jn=ro(Jn,Mt)))&&$t-Yt>=Or)){Gr=0;break t}for(fi=0;fi<Or;++fi)et[lr+Yt+fi]=et[lr+Yt+fi-Jn];for(Yt+=Or,gt+=Or;gt>=Vt;)gt-=Vt,++it<=b&&!(it%16)&&Wa(ze,it);Yt<Yr&&gt&bn&&(tn=Ho(ur,gt,it))}a(Mt.h==Je(Mt))}Wa(ze,it>b?b:it);break t}!Gr||Mt.h&&Yt<$t?(Gr=0,ze.a=Mt.h?5:3):ze.$=Yt,b=Gr}else b=Li(ze,ze.V,ze.Ba,ze.c,ze.i,b,ss);if(!b){oe=0;break e}}D+oe>=Ke&&(o.Cc=1),oe=1}if(!oe)return null;if(o.Cc&&((oe=o.ga)!=null&&(oe.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+D*Oe}function P(o,b,D,oe,Oe,Ke){for(;0<Oe--;){var ze,et=o,it=b+(D?1:0),gt=o,Mt=b+(D?0:3);for(ze=0;ze<oe;++ze){var ur=gt[Mt+4*ze];ur!=255&&(ur*=32897,et[it+4*ze+0]=et[it+4*ze+0]*ur>>23,et[it+4*ze+1]=et[it+4*ze+1]*ur>>23,et[it+4*ze+2]=et[it+4*ze+2]*ur>>23)}b+=Ke}}function $e(o,b,D,oe,Oe){for(;0<oe--;){var Ke;for(Ke=0;Ke<D;++Ke){var ze=o[b+2*Ke+0],et=15&(gt=o[b+2*Ke+1]),it=4369*et,gt=(240&gt|gt>>4)*it>>16;o[b+2*Ke+0]=(240&ze|ze>>4)*it>>16&240|(15&ze|ze<<4)*it>>16>>4&15,o[b+2*Ke+1]=240&gt|et}b+=Oe}}function Dt(o,b,D,oe,Oe,Ke,ze,et){var it,gt,Mt=255;for(gt=0;gt<Oe;++gt){for(it=0;it<oe;++it){var ur=o[b+it];Ke[ze+4*it]=ur,Mt&=ur}b+=D,ze+=et}return Mt!=255}function Jt(o,b,D,oe,Oe){var Ke;for(Ke=0;Ke<Oe;++Ke)D[oe+Ke]=o[b+Ke]>>8}function vr(){Ac=P,$o=$e,is=Dt,Ss=Jt}function Xr(o,b,D){Gt[o]=function(oe,Oe,Ke,ze,et,it,gt,Mt,ur,lr,Vt,Gr,Or,Yt,$t,Yr,bn){var tn,fi=bn-1>>1,Jn=et[it+0]|gt[Mt+0]<<16,Gi=ur[lr+0]|Vt[Gr+0]<<16;a(oe!=null);var ai=3*Jn+Gi+131074>>2;for(b(oe[Oe+0],255&ai,ai>>16,Or,Yt),Ke!=null&&(ai=3*Gi+Jn+131074>>2,b(Ke[ze+0],255&ai,ai>>16,$t,Yr)),tn=1;tn<=fi;++tn){var Ha=et[it+tn]|gt[Mt+tn]<<16,Ua=ur[lr+tn]|Vt[Gr+tn]<<16,Ra=Jn+Ha+Gi+Ua+524296,Na=Ra+2*(Ha+Gi)>>3;ai=Na+Jn>>1,Jn=(Ra=Ra+2*(Jn+Ua)>>3)+Ha>>1,b(oe[Oe+2*tn-1],255&ai,ai>>16,Or,Yt+(2*tn-1)*D),b(oe[Oe+2*tn-0],255&Jn,Jn>>16,Or,Yt+(2*tn-0)*D),Ke!=null&&(ai=Ra+Gi>>1,Jn=Na+Ua>>1,b(Ke[ze+2*tn-1],255&ai,ai>>16,$t,Yr+(2*tn-1)*D),b(Ke[ze+2*tn+0],255&Jn,Jn>>16,$t,Yr+(2*tn+0)*D)),Jn=Ha,Gi=Ua}1&bn||(ai=3*Jn+Gi+131074>>2,b(oe[Oe+bn-1],255&ai,ai>>16,Or,Yt+(bn-1)*D),Ke!=null&&(ai=3*Gi+Jn+131074>>2,b(Ke[ze+bn-1],255&ai,ai>>16,$t,Yr+(bn-1)*D)))}}function Fn(){Ec[Uu]=$u,Ec[IA]=hd,Ec[$d]=Zu,Ec[MA]=kA,Ec[tu]=pA,Ec[LA]=Xd,Ec[Ad]=Jd,Ec[al]=hd,Ec[Ru]=kA,Ec[Qu]=pA,Ec[vn]=Xd}function Di(o){return o&~yf?0>o?0:255:o>>Yd}function qi(o,b){return Di((19077*o>>8)+(26149*b>>8)-14234)}function Ma(o,b,D){return Di((19077*o>>8)-(6419*b>>8)-(13320*D>>8)+8708)}function xa(o,b){return Di((19077*o>>8)+(33050*b>>8)-17685)}function zi(o,b,D,oe,Oe){oe[Oe+0]=qi(o,D),oe[Oe+1]=Ma(o,b,D),oe[Oe+2]=xa(o,b)}function vs(o,b,D,oe,Oe){oe[Oe+0]=xa(o,b),oe[Oe+1]=Ma(o,b,D),oe[Oe+2]=qi(o,D)}function xs(o,b,D,oe,Oe){var Ke=Ma(o,b,D);b=Ke<<3&224|xa(o,b)>>3,oe[Oe+0]=248&qi(o,D)|Ke>>5,oe[Oe+1]=b}function zo(o,b,D,oe,Oe){var Ke=240&xa(o,b)|15;oe[Oe+0]=240&qi(o,D)|Ma(o,b,D)>>4,oe[Oe+1]=Ke}function hl(o,b,D,oe,Oe){oe[Oe+0]=255,zi(o,b,D,oe,Oe+1)}function Cs(o,b,D,oe,Oe){vs(o,b,D,oe,Oe),oe[Oe+3]=255}function Dc(o,b,D,oe,Oe){zi(o,b,D,oe,Oe),oe[Oe+3]=255}function pl(o,b){return 0>o?0:o>b?b:o}function tc(o,b,D){Gt[o]=function(oe,Oe,Ke,ze,et,it,gt,Mt,ur){for(var lr=Mt+(-2&ur)*D;Mt!=lr;)b(oe[Oe+0],Ke[ze+0],et[it+0],gt,Mt),b(oe[Oe+1],Ke[ze+0],et[it+0],gt,Mt+D),Oe+=2,++ze,++it,Mt+=2*D;1&ur&&b(oe[Oe+0],Ke[ze+0],et[it+0],gt,Mt)}}function oA(o,b,D){return D==0?o==0?b==0?6:5:b==0?4:0:D}function du(o,b,D,oe,Oe){switch(o>>>30){case 3:qc(b,D,oe,Oe,0);break;case 2:Bs(b,D,oe,Oe);break;case 1:jl(b,D,oe,Oe)}}function fu(o,b){var D,oe,Oe=b.M,Ke=b.Nb,ze=o.oc,et=o.pc+40,it=o.oc,gt=o.pc+584,Mt=o.oc,ur=o.pc+600;for(D=0;16>D;++D)ze[et+32*D-1]=129;for(D=0;8>D;++D)it[gt+32*D-1]=129,Mt[ur+32*D-1]=129;for(0<Oe?ze[et-1-32]=it[gt-1-32]=Mt[ur-1-32]=129:(F(ze,et-32-1,127,21),F(it,gt-32-1,127,9),F(Mt,ur-32-1,127,9)),oe=0;oe<o.za;++oe){var lr=b.ya[b.aa+oe];if(0<oe){for(D=-1;16>D;++D)v(ze,et+32*D-4,ze,et+32*D+12,4);for(D=-1;8>D;++D)v(it,gt+32*D-4,it,gt+32*D+4,4),v(Mt,ur+32*D-4,Mt,ur+32*D+4,4)}var Vt=o.Gd,Gr=o.Hd+oe,Or=lr.ad,Yt=lr.Hc;if(0<Oe&&(v(ze,et-32,Vt[Gr].y,0,16),v(it,gt-32,Vt[Gr].f,0,8),v(Mt,ur-32,Vt[Gr].ea,0,8)),lr.Za){var $t=ze,Yr=et-32+16;for(0<Oe&&(oe>=o.za-1?F($t,Yr,Vt[Gr].y[15],4):v($t,Yr,Vt[Gr+1].y,0,4)),D=0;4>D;D++)$t[Yr+128+D]=$t[Yr+256+D]=$t[Yr+384+D]=$t[Yr+0+D];for(D=0;16>D;++D,Yt<<=2)$t=ze,Yr=et+Ct[D],Sc[lr.Ob[D]]($t,Yr),du(Yt,Or,16*+D,$t,Yr)}else if($t=oA(oe,Oe,lr.Ob[0]),yl[$t](ze,et),Yt!=0)for(D=0;16>D;++D,Yt<<=2)du(Yt,Or,16*+D,ze,et+Ct[D]);for(D=lr.Gc,$t=oA(oe,Oe,lr.Dd),fA[$t](it,gt),fA[$t](Mt,ur),Yt=Or,$t=it,Yr=gt,255&(lr=D>>0)&&(170&lr?Ou(Yt,256,$t,Yr):wc(Yt,256,$t,Yr)),lr=Mt,Yt=ur,255&(D>>=8)&&(170&D?Ou(Or,320,lr,Yt):wc(Or,320,lr,Yt)),Oe<o.Ub-1&&(v(Vt[Gr].y,0,ze,et+480,16),v(Vt[Gr].f,0,it,gt+224,8),v(Vt[Gr].ea,0,Mt,ur+224,8)),D=8*Ke*o.B,Vt=o.sa,Gr=o.ta+16*oe+16*Ke*o.R,Or=o.qa,lr=o.ra+8*oe+D,Yt=o.Ha,$t=o.Ia+8*oe+D,D=0;16>D;++D)v(Vt,Gr+D*o.R,ze,et+32*D,16);for(D=0;8>D;++D)v(Or,lr+D*o.B,it,gt+32*D,8),v(Yt,$t+D*o.B,Mt,ur+32*D,8)}}function sA(o,b,D,oe,Oe,Ke,ze,et,it){var gt=[0],Mt=[0],ur=0,lr=it!=null?it.kd:0,Vt=it!=null?it:new uu;if(o==null||12>D)return 7;Vt.data=o,Vt.w=b,Vt.ha=D,b=[b],D=[D],Vt.gb=[Vt.gb];e:{var Gr=b,Or=D,Yt=Vt.gb;if(a(o!=null),a(Or!=null),a(Yt!=null),Yt[0]=0,12<=Or[0]&&!l(o,Gr[0],"RIFF")){if(l(o,Gr[0]+8,"WEBP")){Yt=3;break e}var $t=Hr(o,Gr[0]+4);if(12>$t||4294967286<$t){Yt=3;break e}if(lr&&$t>Or[0]-8){Yt=7;break e}Yt[0]=$t,Gr[0]+=12,Or[0]-=12}Yt=0}if(Yt!=0)return Yt;for($t=0<Vt.gb[0],D=D[0];;){e:{var Yr=o;Or=b,Yt=D;var bn=gt,tn=Mt,fi=Gr=[0];if((ai=ur=[ur])[0]=0,8>Yt[0])Yt=7;else{if(!l(Yr,Or[0],"VP8X")){if(Hr(Yr,Or[0]+4)!=10){Yt=3;break e}if(18>Yt[0]){Yt=7;break e}var Jn=Hr(Yr,Or[0]+8),Gi=1+Fr(Yr,Or[0]+12);if(2147483648<=Gi*(Yr=1+Fr(Yr,Or[0]+15))){Yt=3;break e}fi!=null&&(fi[0]=Jn),bn!=null&&(bn[0]=Gi),tn!=null&&(tn[0]=Yr),Or[0]+=18,Yt[0]-=18,ai[0]=1}Yt=0}}if(ur=ur[0],Gr=Gr[0],Yt!=0)return Yt;if(Or=!!(2&Gr),!$t&&ur)return 3;if(Ke!=null&&(Ke[0]=!!(16&Gr)),ze!=null&&(ze[0]=Or),et!=null&&(et[0]=0),ze=gt[0],Gr=Mt[0],ur&&Or&&it==null){Yt=0;break}if(4>D){Yt=7;break}if($t&&ur||!$t&&!ur&&!l(o,b[0],"ALPH")){D=[D],Vt.na=[Vt.na],Vt.P=[Vt.P],Vt.Sa=[Vt.Sa];e:{Jn=o,Yt=b,$t=D;var ai=Vt.gb;bn=Vt.na,tn=Vt.P,fi=Vt.Sa,Gi=22,a(Jn!=null),a($t!=null),Yr=Yt[0];var Ha=$t[0];for(a(bn!=null),a(fi!=null),bn[0]=null,tn[0]=null,fi[0]=0;;){if(Yt[0]=Yr,$t[0]=Ha,8>Ha){Yt=7;break e}var Ua=Hr(Jn,Yr+4);if(4294967286<Ua){Yt=3;break e}var Ra=8+Ua+1&-2;if(Gi+=Ra,0<ai&&Gi>ai){Yt=3;break e}if(!l(Jn,Yr,"VP8 ")||!l(Jn,Yr,"VP8L")){Yt=0;break e}if(Ha[0]<Ra){Yt=7;break e}l(Jn,Yr,"ALPH")||(bn[0]=Jn,tn[0]=Yr+8,fi[0]=Ua),Yr+=Ra,Ha-=Ra}}if(D=D[0],Vt.na=Vt.na[0],Vt.P=Vt.P[0],Vt.Sa=Vt.Sa[0],Yt!=0)break}D=[D],Vt.Ja=[Vt.Ja],Vt.xa=[Vt.xa];e:if(ai=o,Yt=b,$t=D,bn=Vt.gb[0],tn=Vt.Ja,fi=Vt.xa,Jn=Yt[0],Yr=!l(ai,Jn,"VP8 "),Gi=!l(ai,Jn,"VP8L"),a(ai!=null),a($t!=null),a(tn!=null),a(fi!=null),8>$t[0])Yt=7;else{if(Yr||Gi){if(ai=Hr(ai,Jn+4),12<=bn&&ai>bn-12){Yt=3;break e}if(lr&&ai>$t[0]-8){Yt=7;break e}tn[0]=ai,Yt[0]+=8,$t[0]-=8,fi[0]=Gi}else fi[0]=5<=$t[0]&&ai[Jn+0]==47&&!(ai[Jn+4]>>5),tn[0]=$t[0];Yt=0}if(D=D[0],Vt.Ja=Vt.Ja[0],Vt.xa=Vt.xa[0],b=b[0],Yt!=0)break;if(4294967286<Vt.Ja)return 3;if(et==null||Or||(et[0]=Vt.xa?2:1),ze=[ze],Gr=[Gr],Vt.xa){if(5>D){Yt=7;break}et=ze,lr=Gr,Or=Ke,o==null||5>D?o=0:5<=D&&o[b+0]==47&&!(o[b+4]>>5)?($t=[0],ai=[0],bn=[0],He(tn=new de,o,b,D),Ki(tn,$t,ai,bn)?(et!=null&&(et[0]=$t[0]),lr!=null&&(lr[0]=ai[0]),Or!=null&&(Or[0]=bn[0]),o=1):o=0):o=0}else{if(10>D){Yt=7;break}et=Gr,o==null||10>D||!xo(o,b+3,D-3)?o=0:(lr=o[b+0]|o[b+1]<<8|o[b+2]<<16,Or=16383&(o[b+7]<<8|o[b+6]),o=16383&(o[b+9]<<8|o[b+8]),1&lr||3<(lr>>1&7)||!(lr>>4&1)||lr>>5>=Vt.Ja||!Or||!o?o=0:(ze&&(ze[0]=Or),et&&(et[0]=o),o=1))}if(!o||(ze=ze[0],Gr=Gr[0],ur&&(gt[0]!=ze||Mt[0]!=Gr)))return 3;it!=null&&(it[0]=Vt,it.offset=b-it.w,a(4294967286>b-it.w),a(it.offset==it.ha-D));break}return Yt==0||Yt==7&&ur&&it==null?(Ke!=null&&(Ke[0]|=Vt.na!=null&&0<Vt.na.length),oe!=null&&(oe[0]=ze),Oe!=null&&(Oe[0]=Gr),0):Yt}function YA(o,b,D){var oe=b.width,Oe=b.height,Ke=0,ze=0,et=oe,it=Oe;if(b.Da=o!=null&&0<o.Da,b.Da&&(et=o.cd,it=o.bd,Ke=o.v,ze=o.j,11>D||(Ke&=-2,ze&=-2),0>Ke||0>ze||0>=et||0>=it||Ke+et>oe||ze+it>Oe))return 0;if(b.v=Ke,b.j=ze,b.va=Ke+et,b.o=ze+it,b.U=et,b.T=it,b.da=o!=null&&0<o.da,b.da){if(!On(et,it,D=[o.ib],Ke=[o.hb]))return 0;b.ib=D[0],b.hb=Ke[0]}return b.ob=o!=null&&o.ob,b.Kb=o==null||!o.Sd,b.da&&(b.ob=b.ib<3*oe/4&&b.hb<3*Oe/4,b.Kb=0),1}function Nu(o){if(o==null)return 2;if(11>o.S){var b=o.f.RGBA;b.fb+=(o.height-1)*b.A,b.A=-b.A}else b=o.f.kb,o=o.height,b.O+=(o-1)*b.fa,b.fa=-b.fa,b.N+=(o-1>>1)*b.Ab,b.Ab=-b.Ab,b.W+=(o-1>>1)*b.Db,b.Db=-b.Db,b.F!=null&&(b.J+=(o-1)*b.lb,b.lb=-b.lb);return 0}function hu(o,b,D,oe){if(oe==null||0>=o||0>=b)return 2;if(D!=null){if(D.Da){var Oe=D.cd,Ke=D.bd,ze=-2&D.v,et=-2&D.j;if(0>ze||0>et||0>=Oe||0>=Ke||ze+Oe>o||et+Ke>b)return 2;o=Oe,b=Ke}if(D.da){if(!On(o,b,Oe=[D.ib],Ke=[D.hb]))return 2;o=Oe[0],b=Ke[0]}}oe.width=o,oe.height=b;e:{var it=oe.width,gt=oe.height;if(o=oe.S,0>=it||0>=gt||!(o>=Uu&&13>o))o=2;else{if(0>=oe.Rd&&oe.sd==null){ze=Ke=Oe=b=0;var Mt=(et=it*Br[o])*gt;if(11>o||(Ke=(gt+1)/2*(b=(it+1)/2),o==12&&(ze=(Oe=it)*gt)),(gt=C(Mt+2*Ke+ze))==null){o=1;break e}oe.sd=gt,11>o?((it=oe.f.RGBA).eb=gt,it.fb=0,it.A=et,it.size=Mt):((it=oe.f.kb).y=gt,it.O=0,it.fa=et,it.Fd=Mt,it.f=gt,it.N=0+Mt,it.Ab=b,it.Cd=Ke,it.ea=gt,it.W=0+Mt+Ke,it.Db=b,it.Ed=Ke,o==12&&(it.F=gt,it.J=0+Mt+2*Ke),it.Tc=ze,it.lb=Oe)}if(b=1,Oe=oe.S,Ke=oe.width,ze=oe.height,Oe>=Uu&&13>Oe)if(11>Oe)o=oe.f.RGBA,b&=(et=Math.abs(o.A))*(ze-1)+Ke<=o.size,b&=et>=Ke*Br[Oe],b&=o.eb!=null;else{o=oe.f.kb,et=(Ke+1)/2,Mt=(ze+1)/2,it=Math.abs(o.fa),gt=Math.abs(o.Ab);var ur=Math.abs(o.Db),lr=Math.abs(o.lb),Vt=lr*(ze-1)+Ke;b&=it*(ze-1)+Ke<=o.Fd,b&=gt*(Mt-1)+et<=o.Cd,b=(b&=ur*(Mt-1)+et<=o.Ed)&it>=Ke&gt>=et&ur>=et,b&=o.y!=null,b&=o.f!=null,b&=o.ea!=null,Oe==12&&(b&=lr>=Ke,b&=Vt<=o.Tc,b&=o.F!=null)}else b=0;o=b?0:2}}return o!=0||D!=null&&D.fd&&(o=Nu(oe)),o}var _s=64,qA=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ns=24,yc=32,Xc=8,Ts=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ir("Predictor0","PredictorAdd0"),Gt.Predictor0=function(){return 4278190080},Gt.Predictor1=function(o){return o},Gt.Predictor2=function(o,b,D){return b[D+0]},Gt.Predictor3=function(o,b,D){return b[D+1]},Gt.Predictor4=function(o,b,D){return b[D-1]},Gt.Predictor5=function(o,b,D){return kr(kr(o,b[D+1]),b[D+0])},Gt.Predictor6=function(o,b,D){return kr(o,b[D-1])},Gt.Predictor7=function(o,b,D){return kr(o,b[D+0])},Gt.Predictor8=function(o,b,D){return kr(b[D-1],b[D+0])},Gt.Predictor9=function(o,b,D){return kr(b[D+0],b[D+1])},Gt.Predictor10=function(o,b,D){return kr(kr(o,b[D-1]),kr(b[D+0],b[D+1]))},Gt.Predictor11=function(o,b,D){var oe=b[D+0];return 0>=Rn(oe>>24&255,o>>24&255,(b=b[D-1])>>24&255)+Rn(oe>>16&255,o>>16&255,b>>16&255)+Rn(oe>>8&255,o>>8&255,b>>8&255)+Rn(255&oe,255&o,255&b)?oe:o},Gt.Predictor12=function(o,b,D){var oe=b[D+0];return(fn((o>>24&255)+(oe>>24&255)-((b=b[D-1])>>24&255))<<24|fn((o>>16&255)+(oe>>16&255)-(b>>16&255))<<16|fn((o>>8&255)+(oe>>8&255)-(b>>8&255))<<8|fn((255&o)+(255&oe)-(255&b)))>>>0},Gt.Predictor13=function(o,b,D){var oe=b[D-1];return(zn((o=kr(o,b[D+0]))>>24&255,oe>>24&255)<<24|zn(o>>16&255,oe>>16&255)<<16|zn(o>>8&255,oe>>8&255)<<8|zn(o>>0&255,oe>>0&255))>>>0};var ml=Gt.PredictorAdd0;Gt.PredictorAdd1=Bn,Ir("Predictor2","PredictorAdd2"),Ir("Predictor3","PredictorAdd3"),Ir("Predictor4","PredictorAdd4"),Ir("Predictor5","PredictorAdd5"),Ir("Predictor6","PredictorAdd6"),Ir("Predictor7","PredictorAdd7"),Ir("Predictor8","PredictorAdd8"),Ir("Predictor9","PredictorAdd9"),Ir("Predictor10","PredictorAdd10"),Ir("Predictor11","PredictorAdd11"),Ir("Predictor12","PredictorAdd12"),Ir("Predictor13","PredictorAdd13");var Ql=Gt.PredictorAdd2;xi("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),xi("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var gl,Us=Gt.ColorIndexInverseTransform,Kl=Gt.MapARGB,bc=Gt.VP8LColorIndexInverseTransformAlpha,lA=Gt.MapAlpha,Hl=Gt.VP8LPredictorsAdd=[];Hl.length=16,(Gt.VP8LPredictors=[]).length=16,(Gt.VP8LPredictorsAdd_C=[]).length=16,(Gt.VP8LPredictors_C=[]).length=16;var Pc,il,Ys,cA,Jc,Yc,pu,qc,Bs,Ou,jl,wc,mu,ld,eu,xc,Cc,rc,zl,_A,FA,AA,Tu,Bc,Ac,$o,is,Ss,oa=C(511),di=C(2041),uc=C(225),uA=C(767),Fs=0,cd=di,Ga=uc,so=uA,Xa=oa,Uu=0,IA=1,$d=2,MA=3,tu=4,LA=5,Ad=6,al=7,Ru=8,Qu=9,vn=10,Zo=[2,3,7],Zd=[3,3,11],Vd=[280,256,256,256,40],Wd=[0,1,1,1,0],_d=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ku=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],ud=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],vf=8,gu=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],$l=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Nc=null,Is=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],dd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],dA=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],vl=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],fd=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ju=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],yl=[],Sc=[],fA=[],zu=1,Gd=2,hA=[],Ec=[];Xr("UpsampleRgbLinePair",zi,3),Xr("UpsampleBgrLinePair",vs,3),Xr("UpsampleRgbaLinePair",Dc,4),Xr("UpsampleBgraLinePair",Cs,4),Xr("UpsampleArgbLinePair",hl,4),Xr("UpsampleRgba4444LinePair",zo,2),Xr("UpsampleRgb565LinePair",xs,2);var $u=Gt.UpsampleRgbLinePair,Zu=Gt.UpsampleBgrLinePair,hd=Gt.UpsampleRgbaLinePair,kA=Gt.UpsampleBgraLinePair,pA=Gt.UpsampleArgbLinePair,Xd=Gt.UpsampleRgba4444LinePair,Jd=Gt.UpsampleRgb565LinePair,vu=16,Vu=1<<vu-1,Wu=-227,Fd=482,Yd=6,yf=(256<<Yd)-1,m=0,d=C(256),y=C(256),g=C(256),re=C(256),Fe=C(Fd-Wu),tt=C(Fd-Wu);tc("YuvToRgbRow",zi,3),tc("YuvToBgrRow",vs,3),tc("YuvToRgbaRow",Dc,4),tc("YuvToBgraRow",Cs,4),tc("YuvToArgbRow",hl,4),tc("YuvToRgba4444Row",zo,2),tc("YuvToRgb565Row",xs,2);var Ct=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],xt=[0,2,8],ir=[8,7,6,4,4,2,2,2,1,1,1,1],mr=1;this.WebPDecodeRGBA=function(o,b,D,oe,Oe){var Ke=IA,ze=new Au,et=new bi;ze.ba=et,et.S=Ke,et.width=[et.width],et.height=[et.height];var it=et.width,gt=et.height,Mt=new vi;if(Mt==null||o==null)var ur=2;else a(Mt!=null),ur=sA(o,b,D,Mt.width,Mt.height,Mt.Pd,Mt.Qd,Mt.format,null);if(ur!=0?it=0:(it!=null&&(it[0]=Mt.width[0]),gt!=null&&(gt[0]=Mt.height[0]),it=1),it){et.width=et.width[0],et.height=et.height[0],oe!=null&&(oe[0]=et.width),Oe!=null&&(Oe[0]=et.height);e:{if(oe=new pa,(Oe=new uu).data=o,Oe.w=b,Oe.ha=D,Oe.kd=1,b=[0],a(Oe!=null),((o=sA(Oe.data,Oe.w,Oe.ha,null,null,null,b,null,Oe))==0||o==7)&&b[0]&&(o=4),(b=o)==0){if(a(ze!=null),oe.data=Oe.data,oe.w=Oe.w+Oe.offset,oe.ha=Oe.ha-Oe.offset,oe.put=ko,oe.ac=ji,oe.bc=Do,oe.ma=ze,Oe.xa){if((o=No())==null){ze=1;break e}if(function(lr,Vt){var Gr=[0],Or=[0],Yt=[0];t:for(;;){if(lr==null)return 0;if(Vt==null)return lr.a=2,0;if(lr.l=Vt,lr.a=0,He(lr.m,Vt.data,Vt.w,Vt.ha),!Ki(lr.m,Gr,Or,Yt)){lr.a=3;break t}if(lr.xb=Gd,Vt.width=Gr[0],Vt.height=Or[0],!os(Gr[0],Or[0],1,lr,null))break t;return 1}return a(lr.a!=0),0}(o,oe)){if(oe=(b=hu(oe.width,oe.height,ze.Oa,ze.ba))==0){t:{oe=o;r:for(;;){if(oe==null){oe=0;break t}if(a(oe.s.yc!=null),a(oe.s.Ya!=null),a(0<oe.s.Wb),a((D=oe.l)!=null),a((Oe=D.ma)!=null),oe.xb!=0){if(oe.ca=Oe.ba,oe.tb=Oe.tb,a(oe.ca!=null),!YA(Oe.Oa,D,MA)){oe.a=2;break r}if(!fs(oe,D.width)||D.da)break r;if((D.da||ma(oe.ca.S))&&vr(),11>oe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),oe.ca.f.kb.F!=null&&vr()),oe.Pb&&0<oe.s.ua&&oe.s.vb.X==null&&!hn(oe.s.vb,oe.s.Wa.Xa)){oe.a=1;break r}oe.xb=0}if(!Li(oe,oe.V,oe.Ba,oe.c,oe.i,D.o,on))break r;Oe.Dc=oe.Ma,oe=1;break t}a(oe.a!=0),oe=0}oe=!oe}oe&&(b=o.a)}else b=o.a}else{if((o=new oo)==null){ze=1;break e}if(o.Fa=Oe.na,o.P=Oe.P,o.qc=Oe.Sa,ms(o,oe)){if((b=hu(oe.width,oe.height,ze.Oa,ze.ba))==0){if(o.Aa=0,D=ze.Oa,a((Oe=o)!=null),D!=null){if(0<(it=0>(it=D.Md)?0:100<it?255:255*it/100)){for(gt=Mt=0;4>gt;++gt)12>(ur=Oe.pb[gt]).lc&&(ur.ia=it*ir[0>ur.lc?0:ur.lc]>>3),Mt|=ur.ia;Mt&&(alert("todo:VP8InitRandom"),Oe.ia=1)}Oe.Ga=D.Id,100<Oe.Ga?Oe.Ga=100:0>Oe.Ga&&(Oe.Ga=0)}Gl(o,oe)||(b=o.a)}}else b=o.a}b==0&&ze.Oa!=null&&ze.Oa.fd&&(b=Nu(ze.ba))}ze=b}Ke=ze!=0?null:11>Ke?et.f.RGBA.eb:et.f.kb.y}else Ke=null;return Ke};var Br=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _e(Gt,Dr){for(var Vr="",bt=0;bt<4;bt++)Vr+=String.fromCharCode(Gt[Dr++]);return Vr}function We(Gt,Dr){return(Gt[Dr+0]<<0|Gt[Dr+1]<<8|Gt[Dr+2]<<16)>>>0}function Ve(Gt,Dr){return(Gt[Dr+0]<<0|Gt[Dr+1]<<8|Gt[Dr+2]<<16|Gt[Dr+3]<<24)>>>0}new ie;var ct=[0],we=[0],Lt=[],wt=new ie,kt=c,ht=function(Gt,Dr){var Vr={},bt=0,Bt=!1,U=0,H=0;if(Vr.frames=[],!function(Ze,Je,mt,yt){for(var It=0;It<yt;It++)if(Ze[Je+It]!=mt.charCodeAt(It))return!0;return!1}(Gt,Dr,"RIFF",4)){var Se,De;for(Ve(Gt,Dr+=4),Dr+=8;Dr<Gt.length;){var Ye=_e(Gt,Dr),He=Ve(Gt,Dr+=4);Dr+=4;var dt=He+(1&He);switch(Ye){case"VP8 ":case"VP8L":Vr.frames[bt]===void 0&&(Vr.frames[bt]={}),(de=Vr.frames[bt]).src_off=Bt?H:Dr-8,de.src_size=U+He+8,bt++,Bt&&(Bt=!1,U=0,H=0);break;case"VP8X":(de=Vr.header={}).feature_flags=Gt[Dr];var pt=Dr+4;de.canvas_width=1+We(Gt,pt),pt+=3,de.canvas_height=1+We(Gt,pt),pt+=3;break;case"ALPH":Bt=!0,U=dt+8,H=Dr-8;break;case"ANIM":(de=Vr.header).bgcolor=Ve(Gt,Dr),pt=Dr+4,de.loop_count=(Se=Gt)[(De=pt)+0]<<0|Se[De+1]<<8,pt+=2;break;case"ANMF":var Et,de;(de=Vr.frames[bt]={}).offset_x=2*We(Gt,Dr),Dr+=3,de.offset_y=2*We(Gt,Dr),Dr+=3,de.width=1+We(Gt,Dr),Dr+=3,de.height=1+We(Gt,Dr),Dr+=3,de.duration=We(Gt,Dr),Dr+=3,Et=Gt[Dr++],de.dispose=1&Et,de.blend=Et>>1&1}Ye!="ANMF"&&(Dr+=dt)}return Vr}}(kt,0);ht.response=kt,ht.rgbaoutput=!0,ht.dataurl=!1;var Pt=ht.header?ht.header:null,ar=ht.frames?ht.frames:null;if(Pt){Pt.loop_counter=Pt.loop_count,ct=[Pt.canvas_height],we=[Pt.canvas_width];for(var gr=0;gr<ar.length&&ar[gr].blend!=0;gr++);}var Kr=ar[0],yn=wt.WebPDecodeRGBA(kt,Kr.src_off,Kr.src_size,we,ct);Kr.rgba=yn,Kr.imgwidth=we[0],Kr.imgheight=ct[0];for(var _r=0;_r<we[0]*ct[0]*4;_r++)Lt[_r]=yn[_r];return this.width=we,this.height=ct,this.data=Lt,this}(function(c){var a=function(){return typeof oi=="function"},l=function(ct,we,Lt,wt){var kt=4,ht=O;switch(wt){case c.image_compression.FAST:kt=1,ht=C;break;case c.image_compression.MEDIUM:kt=6,ht=V;break;case c.image_compression.SLOW:kt=9,ht=ie}ct=v(ct,we,Lt,ht);var Pt=oi(ct,{level:kt});return c.__addimage__.arrayBufferToBinaryString(Pt)},v=function(ct,we,Lt,wt){for(var kt,ht,Pt,ar=ct.length/we,gr=new Uint8Array(ct.length+ar),Kr=We(),yn=0;yn<ar;yn+=1){if(Pt=yn*we,kt=ct.subarray(Pt,Pt+we),wt)gr.set(wt(kt,Lt,ht),Pt+yn);else{for(var _r,Gt=Kr.length,Dr=[];_r<Gt;_r+=1)Dr[_r]=Kr[_r](kt,Lt,ht);var Vr=Ve(Dr.concat());gr.set(Dr[Vr],Pt+yn)}ht=kt}return gr},F=function(ct){var we=Array.apply([],ct);return we.unshift(0),we},C=function(ct,we){var Lt,wt=[],kt=ct.length;wt[0]=1;for(var ht=0;ht<kt;ht+=1)Lt=ct[ht-we]||0,wt[ht+1]=ct[ht]-Lt+256&255;return wt},O=function(ct,we,Lt){var wt,kt=[],ht=ct.length;kt[0]=2;for(var Pt=0;Pt<ht;Pt+=1)wt=Lt&&Lt[Pt]||0,kt[Pt+1]=ct[Pt]-wt+256&255;return kt},V=function(ct,we,Lt){var wt,kt,ht=[],Pt=ct.length;ht[0]=3;for(var ar=0;ar<Pt;ar+=1)wt=ct[ar-we]||0,kt=Lt&&Lt[ar]||0,ht[ar+1]=ct[ar]+256-(wt+kt>>>1)&255;return ht},ie=function(ct,we,Lt){var wt,kt,ht,Pt,ar=[],gr=ct.length;ar[0]=4;for(var Kr=0;Kr<gr;Kr+=1)wt=ct[Kr-we]||0,kt=Lt&&Lt[Kr]||0,ht=Lt&&Lt[Kr-we]||0,Pt=_e(wt,kt,ht),ar[Kr+1]=ct[Kr]-Pt+256&255;return ar},_e=function(ct,we,Lt){if(ct===we&&we===Lt)return ct;var wt=Math.abs(we-Lt),kt=Math.abs(ct-Lt),ht=Math.abs(ct+we-Lt-Lt);return wt<=kt&&wt<=ht?ct:kt<=ht?we:Lt},We=function(){return[F,C,O,V,ie]},Ve=function(ct){var we=ct.map(function(Lt){return Lt.reduce(function(wt,kt){return wt+Math.abs(kt)},0)});return we.indexOf(Math.min.apply(null,we))};c.processPNG=function(ct,we,Lt,wt){var kt,ht,Pt,ar,gr,Kr,yn,_r,Gt,Dr,Vr,bt,Bt,U,H,Se=this.decode.FLATE_DECODE,De="";if(this.__addimage__.isArrayBuffer(ct)&&(ct=new Uint8Array(ct)),this.__addimage__.isArrayBufferView(ct)){if(ct=(Pt=new rA(ct)).imgData,ht=Pt.bits,kt=Pt.colorSpace,gr=Pt.colors,[4,6].indexOf(Pt.colorType)!==-1){if(Pt.bits===8){Gt=(_r=Pt.pixelBitlength==32?new Uint32Array(Pt.decodePixels().buffer):Pt.pixelBitlength==16?new Uint16Array(Pt.decodePixels().buffer):new Uint8Array(Pt.decodePixels().buffer)).length,Vr=new Uint8Array(Gt*Pt.colors),Dr=new Uint8Array(Gt);var Ye,He=Pt.pixelBitlength-Pt.bits;for(U=0,H=0;U<Gt;U++){for(Bt=_r[U],Ye=0;Ye<He;)Vr[H++]=Bt>>>Ye&255,Ye+=Pt.bits;Dr[U]=Bt>>>Ye&255}}if(Pt.bits===16){Gt=(_r=new Uint32Array(Pt.decodePixels().buffer)).length,Vr=new Uint8Array(Gt*(32/Pt.pixelBitlength)*Pt.colors),Dr=new Uint8Array(Gt*(32/Pt.pixelBitlength)),bt=Pt.colors>1,U=0,H=0;for(var dt=0;U<Gt;)Bt=_r[U++],Vr[H++]=Bt>>>0&255,bt&&(Vr[H++]=Bt>>>16&255,Bt=_r[U++],Vr[H++]=Bt>>>0&255),Dr[dt++]=Bt>>>16&255;ht=8}wt!==c.image_compression.NONE&&a()?(ct=l(Vr,Pt.width*Pt.colors,Pt.colors,wt),yn=l(Dr,Pt.width,1,wt)):(ct=Vr,yn=Dr,Se=void 0)}if(Pt.colorType===3&&(kt=this.color_spaces.INDEXED,Kr=Pt.palette,Pt.transparency.indexed)){var pt=Pt.transparency.indexed,Et=0;for(U=0,Gt=pt.length;U<Gt;++U)Et+=pt[U];if((Et/=255)===Gt-1&&pt.indexOf(0)!==-1)ar=[pt.indexOf(0)];else if(Et!==Gt){for(_r=Pt.decodePixels(),Dr=new Uint8Array(_r.length),U=0,Gt=_r.length;U<Gt;U++)Dr[U]=pt[_r[U]];yn=l(Dr,Pt.width,1)}}var de=function(Ze){var Je;switch(Ze){case c.image_compression.FAST:Je=11;break;case c.image_compression.MEDIUM:Je=13;break;case c.image_compression.SLOW:Je=14;break;default:Je=12}return Je}(wt);return Se===this.decode.FLATE_DECODE&&(De="/Predictor "+de+" "),De+="/Colors "+gr+" /BitsPerComponent "+ht+" /Columns "+Pt.width,(this.__addimage__.isArrayBuffer(ct)||this.__addimage__.isArrayBufferView(ct))&&(ct=this.__addimage__.arrayBufferToBinaryString(ct)),(yn&&this.__addimage__.isArrayBuffer(yn)||this.__addimage__.isArrayBufferView(yn))&&(yn=this.__addimage__.arrayBufferToBinaryString(yn)),{alias:Lt,data:ct,index:we,filter:Se,decodeParameters:De,transparency:ar,palette:Kr,sMask:yn,predictor:de,width:Pt.width,height:Pt.height,bitsPerComponent:ht,colorSpace:kt}}}})(mi.API),function(c){c.processGIF89A=function(a,l,v,F){var C=new fc(a),O=C.width,V=C.height,ie=[];C.decodeAndBlitFrameRGBA(0,ie);var _e={data:ie,width:O,height:V},We=new Nl(100).encode(_e,100);return c.processJPEG.call(this,We,l,v,F)},c.processGIF87A=c.processGIF89A}(mi.API),Gs.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var c=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(c);for(var a=0;a<c;a++){var l=this.datav.getUint8(this.pos++,!0),v=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0);this.palette[a]={red:F,green:v,blue:l,quad:C}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Gs.prototype.parseBGR=function(){this.pos=this.offset;try{var c="bit"+this.bitPP,a=this.width*this.height*4;this.data=new Uint8Array(a),this[c]()}catch(l){Mn.log("bit decode error:"+l)}},Gs.prototype.bit1=function(){var c,a=Math.ceil(this.width/8),l=a%4;for(c=this.height-1;c>=0;c--){for(var v=this.bottom_up?c:this.height-1-c,F=0;F<a;F++)for(var C=this.datav.getUint8(this.pos++,!0),O=v*this.width*4+8*F*4,V=0;V<8&&8*F+V<this.width;V++){var ie=this.palette[C>>7-V&1];this.data[O+4*V]=ie.blue,this.data[O+4*V+1]=ie.green,this.data[O+4*V+2]=ie.red,this.data[O+4*V+3]=255}l!==0&&(this.pos+=4-l)}},Gs.prototype.bit4=function(){for(var c=Math.ceil(this.width/2),a=c%4,l=this.height-1;l>=0;l--){for(var v=this.bottom_up?l:this.height-1-l,F=0;F<c;F++){var C=this.datav.getUint8(this.pos++,!0),O=v*this.width*4+2*F*4,V=C>>4,ie=15&C,_e=this.palette[V];if(this.data[O]=_e.blue,this.data[O+1]=_e.green,this.data[O+2]=_e.red,this.data[O+3]=255,2*F+1>=this.width)break;_e=this.palette[ie],this.data[O+4]=_e.blue,this.data[O+4+1]=_e.green,this.data[O+4+2]=_e.red,this.data[O+4+3]=255}a!==0&&(this.pos+=4-a)}},Gs.prototype.bit8=function(){for(var c=this.width%4,a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,v=0;v<this.width;v++){var F=this.datav.getUint8(this.pos++,!0),C=l*this.width*4+4*v;if(F<this.palette.length){var O=this.palette[F];this.data[C]=O.red,this.data[C+1]=O.green,this.data[C+2]=O.blue,this.data[C+3]=255}else this.data[C]=255,this.data[C+1]=255,this.data[C+2]=255,this.data[C+3]=255}c!==0&&(this.pos+=4-c)}},Gs.prototype.bit15=function(){for(var c=this.width%3,a=parseInt("11111",2),l=this.height-1;l>=0;l--){for(var v=this.bottom_up?l:this.height-1-l,F=0;F<this.width;F++){var C=this.datav.getUint16(this.pos,!0);this.pos+=2;var O=(C&a)/a*255|0,V=(C>>5&a)/a*255|0,ie=(C>>10&a)/a*255|0,_e=C>>15?255:0,We=v*this.width*4+4*F;this.data[We]=ie,this.data[We+1]=V,this.data[We+2]=O,this.data[We+3]=_e}this.pos+=c}},Gs.prototype.bit16=function(){for(var c=this.width%3,a=parseInt("11111",2),l=parseInt("111111",2),v=this.height-1;v>=0;v--){for(var F=this.bottom_up?v:this.height-1-v,C=0;C<this.width;C++){var O=this.datav.getUint16(this.pos,!0);this.pos+=2;var V=(O&a)/a*255|0,ie=(O>>5&l)/l*255|0,_e=(O>>11)/a*255|0,We=F*this.width*4+4*C;this.data[We]=_e,this.data[We+1]=ie,this.data[We+2]=V,this.data[We+3]=255}this.pos+=c}},Gs.prototype.bit24=function(){for(var c=this.height-1;c>=0;c--){for(var a=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var v=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),O=a*this.width*4+4*l;this.data[O]=C,this.data[O+1]=F,this.data[O+2]=v,this.data[O+3]=255}this.pos+=this.width%4}},Gs.prototype.bit32=function(){for(var c=this.height-1;c>=0;c--)for(var a=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var v=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),O=this.datav.getUint8(this.pos++,!0),V=a*this.width*4+4*l;this.data[V]=C,this.data[V+1]=F,this.data[V+2]=v,this.data[V+3]=O}},Gs.prototype.getData=function(){return this.data},function(c){c.processBMP=function(a,l,v,F){var C=new Gs(a,!1),O=C.width,V=C.height,ie={data:C.getData(),width:O,height:V},_e=new Nl(100).encode(ie,100);return c.processJPEG.call(this,_e,l,v,F)}}(mi.API),rl.prototype.getData=function(){return this.data},function(c){c.processWEBP=function(a,l,v,F){var C=new rl(a,!1),O=C.width,V=C.height,ie={data:C.getData(),width:O,height:V},_e=new Nl(100).encode(ie,100);return c.processJPEG.call(this,_e,l,v,F)}}(mi.API),mi.API.processRGBA=function(c,a,l){for(var v=c.data,F=v.length,C=new Uint8Array(F/4*3),O=new Uint8Array(F/4),V=0,ie=0,_e=0;_e<F;_e+=4){var We=v[_e],Ve=v[_e+1],ct=v[_e+2],we=v[_e+3];C[V++]=We,C[V++]=Ve,C[V++]=ct,O[ie++]=we}var Lt=this.__addimage__.arrayBufferToBinaryString(C);return{alpha:this.__addimage__.arrayBufferToBinaryString(O),data:Lt,index:a,alias:l,colorSpace:"DeviceRGB",bitsPerComponent:8,width:c.width,height:c.height}},mi.API.setLanguage=function(c){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[c]!==void 0&&(this.internal.languageSettings.languageCode=c,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},tl=mi.API,Hc=tl.getCharWidthsArray=function(c,a){var l,v,F=(a=a||{}).font||this.internal.getFont(),C=a.fontSize||this.internal.getFontSize(),O=a.charSpace||this.internal.getCharSpace(),V=a.widths?a.widths:F.metadata.Unicode.widths,ie=V.fof?V.fof:1,_e=a.kerning?a.kerning:F.metadata.Unicode.kerning,We=_e.fof?_e.fof:1,Ve=a.doKerning!==!1,ct=0,we=c.length,Lt=0,wt=V[0]||ie,kt=[];for(l=0;l<we;l++)v=c.charCodeAt(l),typeof F.metadata.widthOfString=="function"?kt.push((F.metadata.widthOfGlyph(F.metadata.characterToGlyph(v))+O*(1e3/C)||0)/1e3):(ct=Ve&&(0,ge.Z)(_e[v])==="object"&&!isNaN(parseInt(_e[v][Lt],10))?_e[v][Lt]/We:0,kt.push((V[v]||wt)/ie+ct)),Lt=v;return kt},Pl=tl.getStringUnitWidth=function(c,a){var l=(a=a||{}).fontSize||this.internal.getFontSize(),v=a.font||this.internal.getFont(),F=a.charSpace||this.internal.getCharSpace();return tl.processArabic&&(c=tl.processArabic(c)),typeof v.metadata.widthOfString=="function"?v.metadata.widthOfString(c,l,F)/l:Hc.apply(this,arguments).reduce(function(C,O){return C+O},0)},Ws=function(c,a,l,v){for(var F=[],C=0,O=c.length,V=0;C!==O&&V+a[C]<l;)V+=a[C],C++;F.push(c.slice(0,C));var ie=C;for(V=0;C!==O;)V+a[C]>v&&(F.push(c.slice(ie,C)),V=0,ie=C),V+=a[C],C++;return ie!==C&&F.push(c.slice(ie,C)),F},tA=function(c,a,l){l||(l={});var v,F,C,O,V,ie,_e,We=[],Ve=[We],ct=l.textIndent||0,we=0,Lt=0,wt=c.split(" "),kt=Hc.apply(this,[" ",l])[0];if(ie=l.lineIndent===-1?wt[0].length+2:l.lineIndent||0){var ht=Array(ie).join(" "),Pt=[];wt.map(function(gr){(gr=gr.split(/\s*\n/)).length>1?Pt=Pt.concat(gr.map(function(Kr,yn){return(yn&&Kr.length?`
`:"")+Kr})):Pt.push(gr[0])}),wt=Pt,ie=Pl.apply(this,[ht,l])}for(C=0,O=wt.length;C<O;C++){var ar=0;if(v=wt[C],ie&&v[0]==`
`&&(v=v.substr(1),ar=1),ct+we+(Lt=(F=Hc.apply(this,[v,l])).reduce(function(gr,Kr){return gr+Kr},0))>a||ar){if(Lt>a){for(V=Ws.apply(this,[v,F,a-(ct+we),a]),We.push(V.shift()),We=[V.pop()];V.length;)Ve.push([V.shift()]);Lt=F.slice(v.length-(We[0]?We[0].length:0)).reduce(function(gr,Kr){return gr+Kr},0)}else We=[v];Ve.push(We),ct=Lt+ie,we=kt}else We.push(v),ct+=we+Lt,we=kt}return _e=ie?function(gr,Kr){return(Kr?ht:"")+gr.join(" ")}:function(gr){return gr.join(" ")},Ve.map(_e)},tl.splitTextToSize=function(c,a,l){var v,F=(l=l||{}).fontSize||this.internal.getFontSize(),C=function(We){if(We.widths&&We.kerning)return{widths:We.widths,kerning:We.kerning};var Ve=this.internal.getFont(We.fontName,We.fontStyle);return Ve.metadata.Unicode?{widths:Ve.metadata.Unicode.widths||{0:1},kerning:Ve.metadata.Unicode.kerning||{}}:{font:Ve.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,l);v=Array.isArray(c)?c:String(c).split(/\r?\n/);var O=1*this.internal.scaleFactor*a/F;C.textIndent=l.textIndent?1*l.textIndent*this.internal.scaleFactor/F:0,C.lineIndent=l.lineIndent;var V,ie,_e=[];for(V=0,ie=v.length;V<ie;V++)_e=_e.concat(tA.apply(this,[v[V],O,C]));return _e},function(c){c.__fontmetrics__=c.__fontmetrics__||{};for(var a="klmnopqrstuvwxyz",l={},v={},F=0;F<a.length;F++)l[a[F]]="0123456789abcdef"[F],v["0123456789abcdef"[F]]=a[F];var C=function(Ve){return"0x"+parseInt(Ve,10).toString(16)},O=c.__fontmetrics__.compress=function(Ve){var ct,we,Lt,wt,kt=["{"];for(var ht in Ve){if(ct=Ve[ht],isNaN(parseInt(ht,10))?we="'"+ht+"'":(ht=parseInt(ht,10),we=(we=C(ht).slice(2)).slice(0,-1)+v[we.slice(-1)]),typeof ct=="number")ct<0?(Lt=C(ct).slice(3),wt="-"):(Lt=C(ct).slice(2),wt=""),Lt=wt+Lt.slice(0,-1)+v[Lt.slice(-1)];else{if((0,ge.Z)(ct)!=="object")throw new Error("Don't know what to do with value type "+(0,ge.Z)(ct)+".");Lt=O(ct)}kt.push(we+Lt)}return kt.push("}"),kt.join("")},V=c.__fontmetrics__.uncompress=function(Ve){if(typeof Ve!="string")throw new Error("Invalid argument passed to uncompress.");for(var ct,we,Lt,wt,kt={},ht=1,Pt=kt,ar=[],gr="",Kr="",yn=Ve.length-1,_r=1;_r<yn;_r+=1)(wt=Ve[_r])=="'"?ct?(Lt=ct.join(""),ct=void 0):ct=[]:ct?ct.push(wt):wt=="{"?(ar.push([Pt,Lt]),Pt={},Lt=void 0):wt=="}"?((we=ar.pop())[0][we[1]]=Pt,Lt=void 0,Pt=we[0]):wt=="-"?ht=-1:Lt===void 0?l.hasOwnProperty(wt)?(gr+=l[wt],Lt=parseInt(gr,16)*ht,ht=1,gr=""):gr+=wt:l.hasOwnProperty(wt)?(Kr+=l[wt],Pt[Lt]=parseInt(Kr,16)*ht,ht=1,Lt=void 0,Kr=""):Kr+=wt;return kt},ie={codePages:["WinAnsiEncoding"],WinAnsiEncoding:V("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_e={Unicode:{Courier:ie,"Courier-Bold":ie,"Courier-BoldOblique":ie,"Courier-Oblique":ie,Helvetica:ie,"Helvetica-Bold":ie,"Helvetica-BoldOblique":ie,"Helvetica-Oblique":ie,"Times-Roman":ie,"Times-Bold":ie,"Times-BoldItalic":ie,"Times-Italic":ie}},We={Unicode:{"Courier-Oblique":V("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":V("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":V("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:V("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":V("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":V("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:V("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:V("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":V("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:V("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":V("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":V("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":V("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":V("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};c.events.push(["addFont",function(Ve){var ct=Ve.font,we=We.Unicode[ct.postScriptName];we&&(ct.metadata.Unicode={},ct.metadata.Unicode.widths=we.widths,ct.metadata.Unicode.kerning=we.kerning);var Lt=_e.Unicode[ct.postScriptName];Lt&&(ct.metadata.Unicode.encoding=Lt,ct.encoding=Lt.codePages[0])}])}(mi.API),function(c){var a=function(l){for(var v=l.length,F=new Uint8Array(v),C=0;C<v;C++)F[C]=l.charCodeAt(C);return F};c.API.events.push(["addFont",function(l){var v=void 0,F=l.font,C=l.instance;if(!F.isStandardFont){if(C===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+F.postScriptName+"').");if(typeof(v=C.existsFileInVFS(F.postScriptName)===!1?C.loadFile(F.postScriptName):C.getFileFromVFS(F.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+F.postScriptName+"').");(function(O,V){V=/^\x00\x01\x00\x00/.test(V)?a(V):a(Wn(V)),O.metadata=c.API.TTFFont.open(V),O.metadata.Unicode=O.metadata.Unicode||{encoding:{},kerning:{},widths:[]},O.metadata.glyIdsUsed=[0]})(F,v)}}])}(mi),function(c){function a(){return(ln.canvg?Promise.resolve(ln.canvg):x.e(6949).then(x.bind(x,46949))).catch(function(l){return Promise.reject(new Error("Could not load canvg: "+l))}).then(function(l){return l.default?l.default:l})}mi.API.addSvgAsImage=function(l,v,F,C,O,V,ie,_e){if(isNaN(v)||isNaN(F))throw Mn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(C)||isNaN(O))throw Mn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var We=document.createElement("canvas");We.width=C,We.height=O;var Ve=We.getContext("2d");Ve.fillStyle="#fff",Ve.fillRect(0,0,We.width,We.height);var ct={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},we=this;return a().then(function(Lt){return Lt.fromString(Ve,l,ct)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Lt){return Lt.render(ct)}).then(function(){we.addImage(We.toDataURL("image/jpeg",1),v,F,C,O,ie,_e)})}}(),mi.API.putTotalPages=function(c){var a,l=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(a=new RegExp(c,"g"),l=this.internal.getNumberOfPages()):(a=new RegExp(this.pdfEscape16(c,this.internal.getFont()),"g"),l=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var v=1;v<=this.internal.getNumberOfPages();v++)for(var F=0;F<this.internal.pages[v].length;F++)this.internal.pages[v][F]=this.internal.pages[v][F].replace(a,l);return this},mi.API.viewerPreferences=function(c,a){var l;c=c||{},a=a||!1;var v,F,C,O={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},V=Object.keys(O),ie=[],_e=0,We=0,Ve=0;function ct(Lt,wt){var kt,ht=!1;for(kt=0;kt<Lt.length;kt+=1)Lt[kt]===wt&&(ht=!0);return ht}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(O)),this.internal.viewerpreferences.isSubscribed=!1),l=this.internal.viewerpreferences.configuration,c==="reset"||a===!0){var we=V.length;for(Ve=0;Ve<we;Ve+=1)l[V[Ve]].value=l[V[Ve]].defaultValue,l[V[Ve]].explicitSet=!1}if((0,ge.Z)(c)==="object"){for(F in c)if(C=c[F],ct(V,F)&&C!==void 0){if(l[F].type==="boolean"&&typeof C=="boolean")l[F].value=C;else if(l[F].type==="name"&&ct(l[F].valueSet,C))l[F].value=C;else if(l[F].type==="integer"&&Number.isInteger(C))l[F].value=C;else if(l[F].type==="array"){for(_e=0;_e<C.length;_e+=1)if(v=!0,C[_e].length===1&&typeof C[_e][0]=="number")ie.push(String(C[_e]-1));else if(C[_e].length>1){for(We=0;We<C[_e].length;We+=1)typeof C[_e][We]!="number"&&(v=!1);v===!0&&ie.push([C[_e][0]-1,C[_e][1]-1].join(" "))}l[F].value="["+ie.join(" ")+"]"}else l[F].value=l[F].defaultValue;l[F].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Lt,wt=[];for(Lt in l)l[Lt].explicitSet===!0&&(l[Lt].type==="name"?wt.push("/"+Lt+" /"+l[Lt].value):wt.push("/"+Lt+" "+l[Lt].value));wt.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+wt.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=l,this},function(c){var a=function(){var v='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',F=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),C=unescape(encodeURIComponent(v)),O=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),V=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ie=unescape(encodeURIComponent("</x:xmpmeta>")),_e=C.length+O.length+V.length+F.length+ie.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+_e+" >>"),this.internal.write("stream"),this.internal.write(F+C+O+V+ie),this.internal.write("endstream"),this.internal.write("endobj")},l=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};c.addMetadata=function(v,F){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:v,namespaceuri:F||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",l),this.internal.events.subscribe("postPutResources",a)),this}}(mi.API),function(c){var a=c.API,l=a.pdfEscape16=function(C,O){for(var V,ie=O.metadata.Unicode.widths,_e=["","0","00","000","0000"],We=[""],Ve=0,ct=C.length;Ve<ct;++Ve){if(V=O.metadata.characterToGlyph(C.charCodeAt(Ve)),O.metadata.glyIdsUsed.push(V),O.metadata.toUnicode[V]=C.charCodeAt(Ve),ie.indexOf(V)==-1&&(ie.push(V),ie.push([parseInt(O.metadata.widthOfGlyph(V),10)])),V=="0")return We.join("");V=V.toString(16),We.push(_e[4-V.length],V)}return We.join("")},v=function(C){var O,V,ie,_e,We,Ve,ct;for(We=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,ie=[],Ve=0,ct=(V=Object.keys(C).sort(function(we,Lt){return we-Lt})).length;Ve<ct;Ve++)O=V[Ve],ie.length>=100&&(We+=`
`+ie.length+` beginbfchar
`+ie.join(`
`)+`
endbfchar`,ie=[]),C[O]!==void 0&&C[O]!==null&&typeof C[O].toString=="function"&&(_e=("0000"+C[O].toString(16)).slice(-4),O=("0000"+(+O).toString(16)).slice(-4),ie.push("<"+O+"><"+_e+">"));return ie.length&&(We+=`
`+ie.length+` beginbfchar
`+ie.join(`
`)+`
endbfchar
`),We+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};a.events.push(["putFont",function(C){(function(O){var V=O.font,ie=O.out,_e=O.newObject,We=O.putStream;if(V.metadata instanceof c.API.TTFFont&&V.encoding==="Identity-H"){for(var Ve=V.metadata.Unicode.widths,ct=V.metadata.subset.encode(V.metadata.glyIdsUsed,1),we="",Lt=0;Lt<ct.length;Lt++)we+=String.fromCharCode(ct[Lt]);var wt=_e();We({data:we,addLength1:!0,objectId:wt}),ie("endobj");var kt=_e();We({data:v(V.metadata.toUnicode),addLength1:!0,objectId:kt}),ie("endobj");var ht=_e();ie("<<"),ie("/Type /FontDescriptor"),ie("/FontName /"+Hi(V.fontName)),ie("/FontFile2 "+wt+" 0 R"),ie("/FontBBox "+c.API.PDFObject.convert(V.metadata.bbox)),ie("/Flags "+V.metadata.flags),ie("/StemV "+V.metadata.stemV),ie("/ItalicAngle "+V.metadata.italicAngle),ie("/Ascent "+V.metadata.ascender),ie("/Descent "+V.metadata.decender),ie("/CapHeight "+V.metadata.capHeight),ie(">>"),ie("endobj");var Pt=_e();ie("<<"),ie("/Type /Font"),ie("/BaseFont /"+Hi(V.fontName)),ie("/FontDescriptor "+ht+" 0 R"),ie("/W "+c.API.PDFObject.convert(Ve)),ie("/CIDToGIDMap /Identity"),ie("/DW 1000"),ie("/Subtype /CIDFontType2"),ie("/CIDSystemInfo"),ie("<<"),ie("/Supplement 0"),ie("/Registry (Adobe)"),ie("/Ordering ("+V.encoding+")"),ie(">>"),ie(">>"),ie("endobj"),V.objectNumber=_e(),ie("<<"),ie("/Type /Font"),ie("/Subtype /Type0"),ie("/ToUnicode "+kt+" 0 R"),ie("/BaseFont /"+Hi(V.fontName)),ie("/Encoding /"+V.encoding),ie("/DescendantFonts ["+Pt+" 0 R]"),ie(">>"),ie("endobj"),V.isAlreadyPutted=!0}})(C)}]),a.events.push(["putFont",function(C){(function(O){var V=O.font,ie=O.out,_e=O.newObject,We=O.putStream;if(V.metadata instanceof c.API.TTFFont&&V.encoding==="WinAnsiEncoding"){for(var Ve=V.metadata.rawData,ct="",we=0;we<Ve.length;we++)ct+=String.fromCharCode(Ve[we]);var Lt=_e();We({data:ct,addLength1:!0,objectId:Lt}),ie("endobj");var wt=_e();We({data:v(V.metadata.toUnicode),addLength1:!0,objectId:wt}),ie("endobj");var kt=_e();ie("<<"),ie("/Descent "+V.metadata.decender),ie("/CapHeight "+V.metadata.capHeight),ie("/StemV "+V.metadata.stemV),ie("/Type /FontDescriptor"),ie("/FontFile2 "+Lt+" 0 R"),ie("/Flags 96"),ie("/FontBBox "+c.API.PDFObject.convert(V.metadata.bbox)),ie("/FontName /"+Hi(V.fontName)),ie("/ItalicAngle "+V.metadata.italicAngle),ie("/Ascent "+V.metadata.ascender),ie(">>"),ie("endobj"),V.objectNumber=_e();for(var ht=0;ht<V.metadata.hmtx.widths.length;ht++)V.metadata.hmtx.widths[ht]=parseInt(V.metadata.hmtx.widths[ht]*(1e3/V.metadata.head.unitsPerEm));ie("<</Subtype/TrueType/Type/Font/ToUnicode "+wt+" 0 R/BaseFont/"+Hi(V.fontName)+"/FontDescriptor "+kt+" 0 R/Encoding/"+V.encoding+" /FirstChar 29 /LastChar 255 /Widths "+c.API.PDFObject.convert(V.metadata.hmtx.widths)+">>"),ie("endobj"),V.isAlreadyPutted=!0}})(C)}]);var F=function(C){var O,V=C.text||"",ie=C.x,_e=C.y,We=C.options||{},Ve=C.mutex||{},ct=Ve.pdfEscape,we=Ve.activeFontKey,Lt=Ve.fonts,wt=we,kt="",ht=0,Pt="",ar=Lt[wt].encoding;if(Lt[wt].encoding!=="Identity-H")return{text:V,x:ie,y:_e,options:We,mutex:Ve};for(Pt=V,wt=we,Array.isArray(V)&&(Pt=V[0]),ht=0;ht<Pt.length;ht+=1)Lt[wt].metadata.hasOwnProperty("cmap")&&(O=Lt[wt].metadata.cmap.unicode.codeMap[Pt[ht].charCodeAt(0)]),O||Pt[ht].charCodeAt(0)<256&&Lt[wt].metadata.hasOwnProperty("Unicode")?kt+=Pt[ht]:kt+="";var gr="";return parseInt(wt.slice(1))<14||ar==="WinAnsiEncoding"?gr=ct(kt,wt).split("").map(function(Kr){return Kr.charCodeAt(0).toString(16)}).join(""):ar==="Identity-H"&&(gr=l(kt,Lt[wt])),Ve.isHex=!0,{text:gr,x:ie,y:_e,options:We,mutex:Ve}};a.events.push(["postProcessText",function(C){var O=C.text||"",V=[],ie={text:O,x:C.x,y:C.y,options:C.options,mutex:C.mutex};if(Array.isArray(O)){var _e=0;for(_e=0;_e<O.length;_e+=1)Array.isArray(O[_e])&&O[_e].length===3?V.push([F(Object.assign({},ie,{text:O[_e][0]})).text,O[_e][1],O[_e][2]]):V.push(F(Object.assign({},ie,{text:O[_e]})).text);C.text=V}else C.text=F(Object.assign({},ie,{text:O})).text}])}(mi),function(c){var a=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};c.existsFileInVFS=function(l){return a.call(this),this.internal.vFS[l]!==void 0},c.addFileToVFS=function(l,v){return a.call(this),this.internal.vFS[l]=v,this},c.getFileFromVFS=function(l){return a.call(this),this.internal.vFS[l]!==void 0?this.internal.vFS[l]:null}}(mi.API),function(c){c.__bidiEngine__=c.prototype.__bidiEngine__=function(v){var F,C,O,V,ie,_e,We,Ve=a,ct=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],we=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Lt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},wt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},kt=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],ht=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Pt=!1,ar=0;this.__bidiEngine__={};var gr=function(bt){var Bt=bt.charCodeAt(),U=Bt>>8,H=wt[U];return H!==void 0?Ve[256*H+(255&Bt)]:U===252||U===253?"AL":ht.test(U)?"L":U===8?"R":"N"},Kr=function(bt){for(var Bt,U=0;U<bt.length;U++){if((Bt=gr(bt.charAt(U)))==="L")return!1;if(Bt==="R")return!0}return!1},yn=function(bt,Bt,U,H){var Se,De,Ye,He,dt=Bt[H];switch(dt){case"L":case"R":Pt=!1;break;case"N":case"AN":break;case"EN":Pt&&(dt="AN");break;case"AL":Pt=!0,dt="R";break;case"WS":dt="N";break;case"CS":H<1||H+1>=Bt.length||(Se=U[H-1])!=="EN"&&Se!=="AN"||(De=Bt[H+1])!=="EN"&&De!=="AN"?dt="N":Pt&&(De="AN"),dt=De===Se?De:"N";break;case"ES":dt=(Se=H>0?U[H-1]:"B")==="EN"&&H+1<Bt.length&&Bt[H+1]==="EN"?"EN":"N";break;case"ET":if(H>0&&U[H-1]==="EN"){dt="EN";break}if(Pt){dt="N";break}for(Ye=H+1,He=Bt.length;Ye<He&&Bt[Ye]==="ET";)Ye++;dt=Ye<He&&Bt[Ye]==="EN"?"EN":"N";break;case"NSM":if(O&&!V){for(He=Bt.length,Ye=H+1;Ye<He&&Bt[Ye]==="NSM";)Ye++;if(Ye<He){var pt=bt[H],Et=pt>=1425&&pt<=2303||pt===64286;if(Se=Bt[Ye],Et&&(Se==="R"||Se==="AL")){dt="R";break}}}dt=H<1||(Se=Bt[H-1])==="B"?"N":U[H-1];break;case"B":Pt=!1,F=!0,dt=ar;break;case"S":C=!0,dt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Pt=!1;break;case"BN":dt="N"}return dt},_r=function(bt,Bt,U){var H=bt.split("");return U&&Gt(H,U,{hiLevel:ar}),H.reverse(),Bt&&Bt.reverse(),H.join("")},Gt=function(bt,Bt,U){var H,Se,De,Ye,He,dt=-1,pt=bt.length,Et=0,de=[],Ze=ar?we:ct,Je=[];for(Pt=!1,F=!1,C=!1,Se=0;Se<pt;Se++)Je[Se]=gr(bt[Se]);for(De=0;De<pt;De++){if(He=Et,de[De]=yn(bt,Je,de,De),H=240&(Et=Ze[He][Lt[de[De]]]),Et&=15,Bt[De]=Ye=Ze[Et][5],H>0)if(H===16){for(Se=dt;Se<De;Se++)Bt[Se]=1;dt=-1}else dt=-1;if(Ze[Et][6])dt===-1&&(dt=De);else if(dt>-1){for(Se=dt;Se<De;Se++)Bt[Se]=Ye;dt=-1}Je[De]==="B"&&(Bt[De]=0),U.hiLevel|=Ye}C&&function(mt,yt,It){for(var Kt=0;Kt<It;Kt++)if(mt[Kt]==="S"){yt[Kt]=ar;for(var Tt=Kt-1;Tt>=0&&mt[Tt]==="WS";Tt--)yt[Tt]=ar}}(Je,Bt,pt)},Dr=function(bt,Bt,U,H,Se){if(!(Se.hiLevel<bt)){if(bt===1&&ar===1&&!F)return Bt.reverse(),void(U&&U.reverse());for(var De,Ye,He,dt,pt=Bt.length,Et=0;Et<pt;){if(H[Et]>=bt){for(He=Et+1;He<pt&&H[He]>=bt;)He++;for(dt=Et,Ye=He-1;dt<Ye;dt++,Ye--)De=Bt[dt],Bt[dt]=Bt[Ye],Bt[Ye]=De,U&&(De=U[dt],U[dt]=U[Ye],U[Ye]=De);Et=He}Et++}}},Vr=function(bt,Bt,U){var H=bt.split(""),Se={hiLevel:ar};return U||(U=[]),Gt(H,U,Se),function(De,Ye,He){if(He.hiLevel!==0&&We)for(var dt,pt=0;pt<De.length;pt++)Ye[pt]===1&&(dt=kt.indexOf(De[pt]))>=0&&(De[pt]=kt[dt+1])}(H,U,Se),Dr(2,H,Bt,U,Se),Dr(1,H,Bt,U,Se),H.join("")};return this.__bidiEngine__.doBidiReorder=function(bt,Bt,U){if(function(Se,De){if(De)for(var Ye=0;Ye<Se.length;Ye++)De[Ye]=Ye;V===void 0&&(V=Kr(Se)),_e===void 0&&(_e=Kr(Se))}(bt,Bt),O||!ie||_e)if(O&&ie&&V^_e)ar=V?1:0,bt=_r(bt,Bt,U);else if(!O&&ie&&_e)ar=V?1:0,bt=Vr(bt,Bt,U),bt=_r(bt,Bt);else if(!O||V||ie||_e){if(O&&!ie&&V^_e)bt=_r(bt,Bt),V?(ar=0,bt=Vr(bt,Bt,U)):(ar=1,bt=Vr(bt,Bt,U),bt=_r(bt,Bt));else if(O&&V&&!ie&&_e)ar=1,bt=Vr(bt,Bt,U),bt=_r(bt,Bt);else if(!O&&!ie&&V^_e){var H=We;V?(ar=1,bt=Vr(bt,Bt,U),ar=0,We=!1,bt=Vr(bt,Bt,U),We=H):(ar=0,bt=Vr(bt,Bt,U),bt=_r(bt,Bt),ar=1,We=!1,bt=Vr(bt,Bt,U),We=H,bt=_r(bt,Bt))}}else ar=0,bt=Vr(bt,Bt,U);else ar=V?1:0,bt=Vr(bt,Bt,U);return bt},this.__bidiEngine__.setOptions=function(bt){bt&&(O=bt.isInputVisual,ie=bt.isOutputVisual,V=bt.isInputRtl,_e=bt.isOutputRtl,We=bt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(v),this.__bidiEngine__};var a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],l=new c.__bidiEngine__({isInputVisual:!0});c.API.events.push(["postProcessText",function(v){var F=v.text,C=(v.x,v.y,v.options||{}),O=(v.mutex,C.lang,[]);if(C.isInputVisual=typeof C.isInputVisual!="boolean"||C.isInputVisual,l.setOptions(C),Object.prototype.toString.call(F)==="[object Array]"){var V=0;for(O=[],V=0;V<F.length;V+=1)Object.prototype.toString.call(F[V])==="[object Array]"?O.push([l.doBidiReorder(F[V][0]),F[V][1],F[V][2]]):O.push([l.doBidiReorder(F[V])]);v.text=O}else v.text=l.doBidiReorder(F);l.setOptions({isInputVisual:!0})}])}(mi),mi.API.TTFFont=function(){function c(a){var l;if(this.rawData=a,l=this.contents=new Pa(a),this.contents.pos=4,l.readString(4)==="ttcf")throw new Error("TTCF not supported.");l.pos=0,this.parse(),this.subset=new su(this),this.registerTTF()}return c.open=function(a){return new c(a)},c.prototype.parse=function(){return this.directory=new yo(this.contents),this.head=new ks(this),this.name=new pc(this),this.cmap=new Cl(this),this.toUnicode={},this.hhea=new jc(this),this.maxp=new Du(this),this.hmtx=new KA(this),this.post=new wA(this),this.os2=new bA(this),this.loca=new Pu(this),this.glyf=new od(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},c.prototype.registerTTF=function(){var a,l,v,F,C;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var O,V,ie,_e;for(_e=[],O=0,V=(ie=this.bbox).length;O<V;O++)a=ie[O],_e.push(Math.round(a*this.scaleFactor));return _e}.call(this),this.stemV=0,this.post.exists?(v=255&(F=this.post.italic_angle),32768&(l=F>>16)&&(l=-(1+(65535^l))),this.italicAngle=+(l+"."+v)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(C=this.familyClass)===1||C===2||C===3||C===4||C===5||C===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},c.prototype.characterToGlyph=function(a){var l;return((l=this.cmap.unicode)!=null?l.codeMap[a]:void 0)||0},c.prototype.widthOfGlyph=function(a){var l;return l=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(a).advance*l},c.prototype.widthOfString=function(a,l,v){var F,C,O,V;for(O=0,C=0,V=(a=""+a).length;0<=V?C<V:C>V;C=0<=V?++C:--C)F=a.charCodeAt(C),O+=this.widthOfGlyph(this.characterToGlyph(F))+v*(1e3/l)||0;return O*(l/1e3)},c.prototype.lineHeight=function(a,l){var v;return l==null&&(l=!1),v=l?this.lineGap:0,(this.ascender+v-this.decender)/1e3*a},c}();var nl,Pa=function(){function c(a){this.data=a!=null?a:[],this.pos=0,this.length=this.data.length}return c.prototype.readByte=function(){return this.data[this.pos++]},c.prototype.writeByte=function(a){return this.data[this.pos++]=a},c.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},c.prototype.writeUInt32=function(a){return this.writeByte(a>>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},c.prototype.readInt32=function(){var a;return(a=this.readUInt32())>=2147483648?a-4294967296:a},c.prototype.writeInt32=function(a){return a<0&&(a+=4294967296),this.writeUInt32(a)},c.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},c.prototype.writeUInt16=function(a){return this.writeByte(a>>8&255),this.writeByte(255&a)},c.prototype.readInt16=function(){var a;return(a=this.readUInt16())>=32768?a-65536:a},c.prototype.writeInt16=function(a){return a<0&&(a+=65536),this.writeUInt16(a)},c.prototype.readString=function(a){var l,v;for(v=[],l=0;0<=a?l<a:l>a;l=0<=a?++l:--l)v[l]=String.fromCharCode(this.readByte());return v.join("")},c.prototype.writeString=function(a){var l,v,F;for(F=[],l=0,v=a.length;0<=v?l<v:l>v;l=0<=v?++l:--l)F.push(this.writeByte(a.charCodeAt(l)));return F},c.prototype.readShort=function(){return this.readInt16()},c.prototype.writeShort=function(a){return this.writeInt16(a)},c.prototype.readLongLong=function(){var a,l,v,F,C,O,V,ie;return a=this.readByte(),l=this.readByte(),v=this.readByte(),F=this.readByte(),C=this.readByte(),O=this.readByte(),V=this.readByte(),ie=this.readByte(),128&a?-1*(72057594037927940*(255^a)+281474976710656*(255^l)+1099511627776*(255^v)+4294967296*(255^F)+16777216*(255^C)+65536*(255^O)+256*(255^V)+(255^ie)+1):72057594037927940*a+281474976710656*l+1099511627776*v+4294967296*F+16777216*C+65536*O+256*V+ie},c.prototype.writeLongLong=function(a){var l,v;return l=Math.floor(a/4294967296),v=4294967295&a,this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l),this.writeByte(v>>24&255),this.writeByte(v>>16&255),this.writeByte(v>>8&255),this.writeByte(255&v)},c.prototype.readInt=function(){return this.readInt32()},c.prototype.writeInt=function(a){return this.writeInt32(a)},c.prototype.read=function(a){var l,v;for(l=[],v=0;0<=a?v<a:v>a;v=0<=a?++v:--v)l.push(this.readByte());return l},c.prototype.write=function(a){var l,v,F,C;for(C=[],v=0,F=a.length;v<F;v++)l=a[v],C.push(this.writeByte(l));return C},c}(),yo=function(){var c;function a(l){var v,F,C;for(this.scalarType=l.readInt(),this.tableCount=l.readShort(),this.searchRange=l.readShort(),this.entrySelector=l.readShort(),this.rangeShift=l.readShort(),this.tables={},F=0,C=this.tableCount;0<=C?F<C:F>C;F=0<=C?++F:--F)v={tag:l.readString(4),checksum:l.readInt(),offset:l.readInt(),length:l.readInt()},this.tables[v.tag]=v}return a.prototype.encode=function(l){var v,F,C,O,V,ie,_e,We,Ve,ct,we,Lt,wt;for(wt in we=Object.keys(l).length,ie=Math.log(2),Ve=16*Math.floor(Math.log(we)/ie),O=Math.floor(Ve/ie),We=16*we-Ve,(F=new Pa).writeInt(this.scalarType),F.writeShort(we),F.writeShort(Ve),F.writeShort(O),F.writeShort(We),C=16*we,_e=F.pos+C,V=null,Lt=[],l)for(ct=l[wt],F.writeString(wt),F.writeInt(c(ct)),F.writeInt(_e),F.writeInt(ct.length),Lt=Lt.concat(ct),wt==="head"&&(V=_e),_e+=ct.length;_e%4;)Lt.push(0),_e++;return F.write(Lt),v=2981146554-c(F.data),F.pos=V+8,F.writeUInt32(v),F.data},c=function(l){var v,F,C,O;for(l=ad.call(l);l.length%4;)l.push(0);for(C=new Pa(l),F=0,v=0,O=l.length;v<O;v=v+=4)F+=C.readUInt32();return 4294967295&F},a}(),bo={}.hasOwnProperty,Yo=function(c,a){for(var l in a)bo.call(a,l)&&(c[l]=a[l]);function v(){this.constructor=c}return v.prototype=a.prototype,c.prototype=new v,c.__super__=a.prototype,c};nl=function(){function c(a){var l;this.file=a,l=this.file.directory.tables[this.tag],this.exists=!!l,l&&(this.offset=l.offset,this.length=l.length,this.parse(this.file.contents))}return c.prototype.parse=function(){},c.prototype.encode=function(){},c.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},c}();var ks=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="head",a.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.revision=l.readInt(),this.checkSumAdjustment=l.readInt(),this.magicNumber=l.readInt(),this.flags=l.readShort(),this.unitsPerEm=l.readShort(),this.created=l.readLongLong(),this.modified=l.readLongLong(),this.xMin=l.readShort(),this.yMin=l.readShort(),this.xMax=l.readShort(),this.yMax=l.readShort(),this.macStyle=l.readShort(),this.lowestRecPPEM=l.readShort(),this.fontDirectionHint=l.readShort(),this.indexToLocFormat=l.readShort(),this.glyphDataFormat=l.readShort()},a.prototype.encode=function(l){var v;return(v=new Pa).writeInt(this.version),v.writeInt(this.revision),v.writeInt(this.checkSumAdjustment),v.writeInt(this.magicNumber),v.writeShort(this.flags),v.writeShort(this.unitsPerEm),v.writeLongLong(this.created),v.writeLongLong(this.modified),v.writeShort(this.xMin),v.writeShort(this.yMin),v.writeShort(this.xMax),v.writeShort(this.yMax),v.writeShort(this.macStyle),v.writeShort(this.lowestRecPPEM),v.writeShort(this.fontDirectionHint),v.writeShort(l),v.writeShort(this.glyphDataFormat),v.data},a}(),Mc=function(){function c(a,l){var v,F,C,O,V,ie,_e,We,Ve,ct,we,Lt,wt,kt,ht,Pt,ar;switch(this.platformID=a.readUInt16(),this.encodingID=a.readShort(),this.offset=l+a.readInt(),Ve=a.pos,a.pos=this.offset,this.format=a.readUInt16(),this.length=a.readUInt16(),this.language=a.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ie=0;ie<256;++ie)this.codeMap[ie]=a.readByte();break;case 4:for(we=a.readUInt16(),ct=we/2,a.pos+=6,C=function(){var gr,Kr;for(Kr=[],ie=gr=0;0<=ct?gr<ct:gr>ct;ie=0<=ct?++gr:--gr)Kr.push(a.readUInt16());return Kr}(),a.pos+=2,wt=function(){var gr,Kr;for(Kr=[],ie=gr=0;0<=ct?gr<ct:gr>ct;ie=0<=ct?++gr:--gr)Kr.push(a.readUInt16());return Kr}(),_e=function(){var gr,Kr;for(Kr=[],ie=gr=0;0<=ct?gr<ct:gr>ct;ie=0<=ct?++gr:--gr)Kr.push(a.readUInt16());return Kr}(),We=function(){var gr,Kr;for(Kr=[],ie=gr=0;0<=ct?gr<ct:gr>ct;ie=0<=ct?++gr:--gr)Kr.push(a.readUInt16());return Kr}(),F=(this.length-a.pos+this.offset)/2,V=function(){var gr,Kr;for(Kr=[],ie=gr=0;0<=F?gr<F:gr>F;ie=0<=F?++gr:--gr)Kr.push(a.readUInt16());return Kr}(),ie=ht=0,ar=C.length;ht<ar;ie=++ht)for(kt=C[ie],v=Pt=Lt=wt[ie];Lt<=kt?Pt<=kt:Pt>=kt;v=Lt<=kt?++Pt:--Pt)We[ie]===0?O=v+_e[ie]:(O=V[We[ie]/2+(v-Lt)-(ct-ie)]||0)!==0&&(O+=_e[ie]),this.codeMap[v]=65535&O}a.pos=Ve}return c.encode=function(a,l){var v,F,C,O,V,ie,_e,We,Ve,ct,we,Lt,wt,kt,ht,Pt,ar,gr,Kr,yn,_r,Gt,Dr,Vr,bt,Bt,U,H,Se,De,Ye,He,dt,pt,Et,de,Ze,Je,mt,yt,It,Kt,Tt,pr,sr,Fr;switch(H=new Pa,O=Object.keys(a).sort(function(Hr,hn){return Hr-hn}),l){case"macroman":for(wt=0,kt=function(){var Hr=[];for(Lt=0;Lt<256;++Lt)Hr.push(0);return Hr}(),Pt={0:0},C={},Se=0,dt=O.length;Se<dt;Se++)Pt[Tt=a[F=O[Se]]]==null&&(Pt[Tt]=++wt),C[F]={old:a[F],new:Pt[a[F]]},kt[F]=Pt[a[F]];return H.writeUInt16(1),H.writeUInt16(0),H.writeUInt32(12),H.writeUInt16(0),H.writeUInt16(262),H.writeUInt16(0),H.write(kt),{charMap:C,subtable:H.data,maxGlyphID:wt+1};case"unicode":for(Bt=[],Ve=[],ar=0,Pt={},v={},ht=_e=null,De=0,pt=O.length;De<pt;De++)Pt[Kr=a[F=O[De]]]==null&&(Pt[Kr]=++ar),v[F]={old:Kr,new:Pt[Kr]},V=Pt[Kr]-F,ht!=null&&V===_e||(ht&&Ve.push(ht),Bt.push(F),_e=V),ht=F;for(ht&&Ve.push(ht),Ve.push(65535),Bt.push(65535),Vr=2*(Dr=Bt.length),Gt=2*Math.pow(Math.log(Dr)/Math.LN2,2),ct=Math.log(Gt/2)/Math.LN2,_r=2*Dr-Gt,ie=[],yn=[],we=[],Lt=Ye=0,Et=Bt.length;Ye<Et;Lt=++Ye){if(bt=Bt[Lt],We=Ve[Lt],bt===65535){ie.push(0),yn.push(0);break}if(bt-(U=v[bt].new)>=32768)for(ie.push(0),yn.push(2*(we.length+Dr-Lt)),F=He=bt;bt<=We?He<=We:He>=We;F=bt<=We?++He:--He)we.push(v[F].new);else ie.push(U-bt),yn.push(0)}for(H.writeUInt16(3),H.writeUInt16(1),H.writeUInt32(12),H.writeUInt16(4),H.writeUInt16(16+8*Dr+2*we.length),H.writeUInt16(0),H.writeUInt16(Vr),H.writeUInt16(Gt),H.writeUInt16(ct),H.writeUInt16(_r),It=0,de=Ve.length;It<de;It++)F=Ve[It],H.writeUInt16(F);for(H.writeUInt16(0),Kt=0,Ze=Bt.length;Kt<Ze;Kt++)F=Bt[Kt],H.writeUInt16(F);for(pr=0,Je=ie.length;pr<Je;pr++)V=ie[pr],H.writeUInt16(V);for(sr=0,mt=yn.length;sr<mt;sr++)gr=yn[sr],H.writeUInt16(gr);for(Fr=0,yt=we.length;Fr<yt;Fr++)wt=we[Fr],H.writeUInt16(wt);return{charMap:v,subtable:H.data,maxGlyphID:ar+1}}},c}(),Cl=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="cmap",a.prototype.parse=function(l){var v,F,C;for(l.pos=this.offset,this.version=l.readUInt16(),C=l.readUInt16(),this.tables=[],this.unicode=null,F=0;0<=C?F<C:F>C;F=0<=C?++F:--F)v=new Mc(l,this.offset),this.tables.push(v),v.isUnicode&&this.unicode==null&&(this.unicode=v);return!0},a.encode=function(l,v){var F,C;return v==null&&(v="macroman"),F=Mc.encode(l,v),(C=new Pa).writeUInt16(0),C.writeUInt16(1),F.table=C.data.concat(F.subtable),F},a}(),jc=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="hhea",a.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.ascender=l.readShort(),this.decender=l.readShort(),this.lineGap=l.readShort(),this.advanceWidthMax=l.readShort(),this.minLeftSideBearing=l.readShort(),this.minRightSideBearing=l.readShort(),this.xMaxExtent=l.readShort(),this.caretSlopeRise=l.readShort(),this.caretSlopeRun=l.readShort(),this.caretOffset=l.readShort(),l.pos+=8,this.metricDataFormat=l.readShort(),this.numberOfMetrics=l.readUInt16()},a}(),bA=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="OS/2",a.prototype.parse=function(l){if(l.pos=this.offset,this.version=l.readUInt16(),this.averageCharWidth=l.readShort(),this.weightClass=l.readUInt16(),this.widthClass=l.readUInt16(),this.type=l.readShort(),this.ySubscriptXSize=l.readShort(),this.ySubscriptYSize=l.readShort(),this.ySubscriptXOffset=l.readShort(),this.ySubscriptYOffset=l.readShort(),this.ySuperscriptXSize=l.readShort(),this.ySuperscriptYSize=l.readShort(),this.ySuperscriptXOffset=l.readShort(),this.ySuperscriptYOffset=l.readShort(),this.yStrikeoutSize=l.readShort(),this.yStrikeoutPosition=l.readShort(),this.familyClass=l.readShort(),this.panose=function(){var v,F;for(F=[],v=0;v<10;++v)F.push(l.readByte());return F}(),this.charRange=function(){var v,F;for(F=[],v=0;v<4;++v)F.push(l.readInt());return F}(),this.vendorID=l.readString(4),this.selection=l.readShort(),this.firstCharIndex=l.readShort(),this.lastCharIndex=l.readShort(),this.version>0&&(this.ascent=l.readShort(),this.descent=l.readShort(),this.lineGap=l.readShort(),this.winAscent=l.readShort(),this.winDescent=l.readShort(),this.codePageRange=function(){var v,F;for(F=[],v=0;v<2;v=++v)F.push(l.readInt());return F}(),this.version>1))return this.xHeight=l.readShort(),this.capHeight=l.readShort(),this.defaultChar=l.readShort(),this.breakChar=l.readShort(),this.maxContext=l.readShort()},a}(),wA=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="post",a.prototype.parse=function(l){var v,F,C;switch(l.pos=this.offset,this.format=l.readInt(),this.italicAngle=l.readInt(),this.underlinePosition=l.readShort(),this.underlineThickness=l.readShort(),this.isFixedPitch=l.readInt(),this.minMemType42=l.readInt(),this.maxMemType42=l.readInt(),this.minMemType1=l.readInt(),this.maxMemType1=l.readInt(),this.format){case 65536:break;case 131072:var O;for(F=l.readUInt16(),this.glyphNameIndex=[],O=0;0<=F?O<F:O>F;O=0<=F?++O:--O)this.glyphNameIndex.push(l.readUInt16());for(this.names=[],C=[];l.pos<this.offset+this.length;)v=l.readByte(),C.push(this.names.push(l.readString(v)));return C;case 151552:return F=l.readUInt16(),this.offsets=l.read(F);case 196608:break;case 262144:return this.map=function(){var V,ie,_e;for(_e=[],O=V=0,ie=this.file.maxp.numGlyphs;0<=ie?V<ie:V>ie;O=0<=ie?++V:--V)_e.push(l.readUInt32());return _e}.call(this)}},a}(),hc=function(c,a){this.raw=c,this.length=c.length,this.platformID=a.platformID,this.encodingID=a.encodingID,this.languageID=a.languageID},pc=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="name",a.prototype.parse=function(l){var v,F,C,O,V,ie,_e,We,Ve,ct,we;for(l.pos=this.offset,l.readShort(),v=l.readShort(),ie=l.readShort(),F=[],O=0;0<=v?O<v:O>v;O=0<=v?++O:--O)F.push({platformID:l.readShort(),encodingID:l.readShort(),languageID:l.readShort(),nameID:l.readShort(),length:l.readShort(),offset:this.offset+ie+l.readShort()});for(_e={},O=Ve=0,ct=F.length;Ve<ct;O=++Ve)C=F[O],l.pos=C.offset,We=l.readString(C.length),V=new hc(We,C),_e[we=C.nameID]==null&&(_e[we]=[]),_e[C.nameID].push(V);this.strings=_e,this.copyright=_e[0],this.fontFamily=_e[1],this.fontSubfamily=_e[2],this.uniqueSubfamily=_e[3],this.fontName=_e[4],this.version=_e[5];try{this.postscriptName=_e[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Lt){this.postscriptName=_e[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=_e[7],this.manufacturer=_e[8],this.designer=_e[9],this.description=_e[10],this.vendorUrl=_e[11],this.designerUrl=_e[12],this.license=_e[13],this.licenseUrl=_e[14],this.preferredFamily=_e[15],this.preferredSubfamily=_e[17],this.compatibleFull=_e[18],this.sampleText=_e[19]},a}(),Du=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="maxp",a.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.numGlyphs=l.readUInt16(),this.maxPoints=l.readUInt16(),this.maxContours=l.readUInt16(),this.maxCompositePoints=l.readUInt16(),this.maxComponentContours=l.readUInt16(),this.maxZones=l.readUInt16(),this.maxTwilightPoints=l.readUInt16(),this.maxStorage=l.readUInt16(),this.maxFunctionDefs=l.readUInt16(),this.maxInstructionDefs=l.readUInt16(),this.maxStackElements=l.readUInt16(),this.maxSizeOfInstructions=l.readUInt16(),this.maxComponentElements=l.readUInt16(),this.maxComponentDepth=l.readUInt16()},a}(),KA=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="hmtx",a.prototype.parse=function(l){var v,F,C,O,V,ie,_e;for(l.pos=this.offset,this.metrics=[],v=0,ie=this.file.hhea.numberOfMetrics;0<=ie?v<ie:v>ie;v=0<=ie?++v:--v)this.metrics.push({advance:l.readUInt16(),lsb:l.readInt16()});for(C=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var We,Ve;for(Ve=[],v=We=0;0<=C?We<C:We>C;v=0<=C?++We:--We)Ve.push(l.readInt16());return Ve}(),this.widths=function(){var We,Ve,ct,we;for(we=[],We=0,Ve=(ct=this.metrics).length;We<Ve;We++)O=ct[We],we.push(O.advance);return we}.call(this),F=this.widths[this.widths.length-1],_e=[],v=V=0;0<=C?V<C:V>C;v=0<=C?++V:--V)_e.push(this.widths.push(F));return _e},a.prototype.forGlyph=function(l){return l in this.metrics?this.metrics[l]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[l-this.metrics.length]}},a}(),ad=[].slice,od=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="glyf",a.prototype.parse=function(){return this.cache={}},a.prototype.glyphFor=function(l){var v,F,C,O,V,ie,_e,We,Ve,ct;return l in this.cache?this.cache[l]:(O=this.file.loca,v=this.file.contents,F=O.indexOf(l),(C=O.lengthOf(l))===0?this.cache[l]=null:(v.pos=this.offset+F,V=(ie=new Pa(v.read(C))).readShort(),We=ie.readShort(),ct=ie.readShort(),_e=ie.readShort(),Ve=ie.readShort(),this.cache[l]=V===-1?new Sd(ie,We,ct,_e,Ve):new ou(ie,V,We,ct,_e,Ve),this.cache[l]))},a.prototype.encode=function(l,v,F){var C,O,V,ie,_e;for(V=[],O=[],ie=0,_e=v.length;ie<_e;ie++)C=l[v[ie]],O.push(V.length),C&&(V=V.concat(C.encode(F)));return O.push(V.length),{table:V,offsets:O}},a}(),ou=function(){function c(a,l,v,F,C,O){this.raw=a,this.numberOfContours=l,this.xMin=v,this.yMin=F,this.xMax=C,this.yMax=O,this.compound=!1}return c.prototype.encode=function(){return this.raw.data},c}(),Sd=function(){function c(a,l,v,F,C){var O,V;for(this.raw=a,this.xMin=l,this.yMin=v,this.xMax=F,this.yMax=C,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],O=this.raw;V=O.readShort(),this.glyphOffsets.push(O.pos),this.glyphIDs.push(O.readUInt16()),32&V;)O.pos+=1&V?4:2,128&V?O.pos+=8:64&V?O.pos+=4:8&V&&(O.pos+=2)}return c.prototype.encode=function(){var a,l,v;for(l=new Pa(ad.call(this.raw.data)),a=0,v=this.glyphIDs.length;a<v;++a)l.pos=this.glyphOffsets[a];return l.data},c}(),Pu=function(c){function a(){return a.__super__.constructor.apply(this,arguments)}return Yo(a,nl),a.prototype.tag="loca",a.prototype.parse=function(l){var v,F;return l.pos=this.offset,v=this.file.head.indexToLocFormat,this.offsets=v===0?function(){var C,O;for(O=[],F=0,C=this.length;F<C;F+=2)O.push(2*l.readUInt16());return O}.call(this):function(){var C,O;for(O=[],F=0,C=this.length;F<C;F+=4)O.push(l.readUInt32());return O}.call(this)},a.prototype.indexOf=function(l){return this.offsets[l]},a.prototype.lengthOf=function(l){return this.offsets[l+1]-this.offsets[l]},a.prototype.encode=function(l,v){for(var F=new Uint32Array(this.offsets.length),C=0,O=0,V=0;V<F.length;++V)if(F[V]=C,O<v.length&&v[O]==V){++O,F[V]=C;var ie=this.offsets[V],_e=this.offsets[V+1]-ie;_e>0&&(C+=_e)}for(var We=new Array(4*F.length),Ve=0;Ve<F.length;++Ve)We[4*Ve+3]=255&F[Ve],We[4*Ve+2]=(65280&F[Ve])>>8,We[4*Ve+1]=(16711680&F[Ve])>>16,We[4*Ve]=(4278190080&F[Ve])>>24;return We},a}(),su=function(){function c(a){this.font=a,this.subset={},this.unicodes={},this.next=33}return c.prototype.generateCmap=function(){var a,l,v,F,C;for(l in F=this.font.cmap.tables[0].codeMap,a={},C=this.subset)v=C[l],a[l]=F[v];return a},c.prototype.glyphsFor=function(a){var l,v,F,C,O,V,ie;for(F={},O=0,V=a.length;O<V;O++)F[C=a[O]]=this.font.glyf.glyphFor(C);for(C in l=[],F)(v=F[C])!=null&&v.compound&&l.push.apply(l,v.glyphIDs);if(l.length>0)for(C in ie=this.glyphsFor(l))v=ie[C],F[C]=v;return F},c.prototype.encode=function(a,l){var v,F,C,O,V,ie,_e,We,Ve,ct,we,Lt,wt,kt,ht;for(F in v=Cl.encode(this.generateCmap(),"unicode"),O=this.glyphsFor(a),we={0:0},ht=v.charMap)we[(ie=ht[F]).old]=ie.new;for(Lt in ct=v.maxGlyphID,O)Lt in we||(we[Lt]=ct++);return We=function(Pt){var ar,gr;for(ar in gr={},Pt)gr[Pt[ar]]=ar;return gr}(we),Ve=Object.keys(We).sort(function(Pt,ar){return Pt-ar}),wt=function(){var Pt,ar,gr;for(gr=[],Pt=0,ar=Ve.length;Pt<ar;Pt++)V=Ve[Pt],gr.push(We[V]);return gr}(),C=this.font.glyf.encode(O,wt,we),_e=this.font.loca.encode(C.offsets,wt),kt={cmap:this.font.cmap.raw(),glyf:C.table,loca:_e,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(l)},this.font.os2.exists&&(kt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(kt)},c}();mi.API.PDFObject=function(){var c;function a(){}return c=function(l,v){return(Array(v+1).join("0")+l).slice(-v)},a.convert=function(l){var v,F,C,O;if(Array.isArray(l))return"["+function(){var V,ie,_e;for(_e=[],V=0,ie=l.length;V<ie;V++)v=l[V],_e.push(a.convert(v));return _e}().join(" ")+"]";if(typeof l=="string")return"/"+l;if(l!=null&&l.isString)return"("+l+")";if(l instanceof Date)return"(D:"+c(l.getUTCFullYear(),4)+c(l.getUTCMonth(),2)+c(l.getUTCDate(),2)+c(l.getUTCHours(),2)+c(l.getUTCMinutes(),2)+c(l.getUTCSeconds(),2)+"Z)";if({}.toString.call(l)==="[object Object]"){for(F in C=["<<"],l)O=l[F],C.push("/"+F+" "+a.convert(O));return C.push(">>"),C.join(`
`)}return""+l},a}();var sd=mi},86129:function(xn,er,x){var ge=x(19208).lW,ue=x(97671);(function(Q){xn.exports=Q()})(function(){return function Q(Te,ne,G){function B(h,Z){if(!ne[h]){if(!Te[h]){var S=void 0;if(!Z&&S)return require(h,!0);if(f)return f(h,!0);var _=new Error("Cannot find module '"+h+"'");throw _.code="MODULE_NOT_FOUND",_}var N=ne[h]={exports:{}};Te[h][0].call(N.exports,function(R){var I=Te[h][1][R];return B(I||R)},N,N.exports,Q,Te,ne,G)}return ne[h].exports}for(var f=void 0,E=0;E<G.length;E++)B(G[E]);return B}({1:[function(Q,Te,ne){"use strict";var G=Q("./utils"),B=Q("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ne.encode=function(E){for(var h,Z,S,_,N,R,I,Y=[],K=0,se=E.length,te=se,X=G.getTypeOf(E)!=="string";K<E.length;)te=se-K,S=X?(h=E[K++],Z=K<se?E[K++]:0,K<se?E[K++]:0):(h=E.charCodeAt(K++),Z=K<se?E.charCodeAt(K++):0,K<se?E.charCodeAt(K++):0),_=h>>2,N=(3&h)<<4|Z>>4,R=1<te?(15&Z)<<2|S>>6:64,I=2<te?63&S:64,Y.push(f.charAt(_)+f.charAt(N)+f.charAt(R)+f.charAt(I));return Y.join("")},ne.decode=function(E){var h,Z,S,_,N,R,I=0,Y=0,K="data:";if(E.substr(0,K.length)===K)throw new Error("Invalid base64 input, it looks like a data url.");var se,te=3*(E=E.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(E.charAt(E.length-1)===f.charAt(64)&&te--,E.charAt(E.length-2)===f.charAt(64)&&te--,te%1!=0)throw new Error("Invalid base64 input, bad content length.");for(se=B.uint8array?new Uint8Array(0|te):new Array(0|te);I<E.length;)h=f.indexOf(E.charAt(I++))<<2|(_=f.indexOf(E.charAt(I++)))>>4,Z=(15&_)<<4|(N=f.indexOf(E.charAt(I++)))>>2,S=(3&N)<<6|(R=f.indexOf(E.charAt(I++))),se[Y++]=h,N!==64&&(se[Y++]=Z),R!==64&&(se[Y++]=S);return se}},{"./support":30,"./utils":32}],2:[function(Q,Te,ne){"use strict";var G=Q("./external"),B=Q("./stream/DataWorker"),f=Q("./stream/Crc32Probe"),E=Q("./stream/DataLengthProbe");function h(Z,S,_,N,R){this.compressedSize=Z,this.uncompressedSize=S,this.crc32=_,this.compression=N,this.compressedContent=R}h.prototype={getContentWorker:function(){var Z=new B(G.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new E("data_length")),S=this;return Z.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Z},getCompressedWorker:function(){return new B(G.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(Z,S,_){return Z.pipe(new f).pipe(new E("uncompressedSize")).pipe(S.compressWorker(_)).pipe(new E("compressedSize")).withStreamInfo("compression",S)},Te.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Q,Te,ne){"use strict";var G=Q("./stream/GenericWorker");ne.STORE={magic:"\0\0",compressWorker:function(){return new G("STORE compression")},uncompressWorker:function(){return new G("STORE decompression")}},ne.DEFLATE=Q("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Q,Te,ne){"use strict";var G=Q("./utils"),B=function(){for(var f,E=[],h=0;h<256;h++){f=h;for(var Z=0;Z<8;Z++)f=1&f?3988292384^f>>>1:f>>>1;E[h]=f}return E}();Te.exports=function(f,E){return f!==void 0&&f.length?G.getTypeOf(f)!=="string"?function(h,Z,S,_){var N=B,R=_+S;h^=-1;for(var I=_;I<R;I++)h=h>>>8^N[255&(h^Z[I])];return-1^h}(0|E,f,f.length,0):function(h,Z,S,_){var N=B,R=_+S;h^=-1;for(var I=_;I<R;I++)h=h>>>8^N[255&(h^Z.charCodeAt(I))];return-1^h}(0|E,f,f.length,0):0}},{"./utils":32}],5:[function(Q,Te,ne){"use strict";ne.base64=!1,ne.binary=!1,ne.dir=!1,ne.createFolders=!0,ne.date=null,ne.compression=null,ne.compressionOptions=null,ne.comment=null,ne.unixPermissions=null,ne.dosPermissions=null},{}],6:[function(Q,Te,ne){"use strict";var G=null;G=typeof Promise!="undefined"?Promise:Q("lie"),Te.exports={Promise:G}},{lie:37}],7:[function(Q,Te,ne){"use strict";var G=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",B=Q("pako"),f=Q("./utils"),E=Q("./stream/GenericWorker"),h=G?"uint8array":"array";function Z(S,_){E.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=_,this.meta={}}ne.magic="\b\0",f.inherits(Z,E),Z.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(h,S.data),!1)},Z.prototype.flush=function(){E.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Z.prototype.cleanUp=function(){E.prototype.cleanUp.call(this),this._pako=null},Z.prototype._createPako=function(){this._pako=new B[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(_){S.push({data:_,meta:S.meta})}},ne.compressWorker=function(S){return new Z("Deflate",S)},ne.uncompressWorker=function(){return new Z("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Q,Te,ne){"use strict";function G(N,R){var I,Y="";for(I=0;I<R;I++)Y+=String.fromCharCode(255&N),N>>>=8;return Y}function B(N,R,I,Y,K,se){var te,X,W=N.file,j=N.compression,le=se!==h.utf8encode,he=f.transformTo("string",se(W.name)),Ne=f.transformTo("string",h.utf8encode(W.name)),Ce=W.comment,je=f.transformTo("string",se(Ce)),q=f.transformTo("string",h.utf8encode(Ce)),ce=Ne.length!==W.name.length,k=q.length!==Ce.length,ot="",Le="",xe="",Re=W.dir,ve=W.date,ke={crc32:0,compressedSize:0,uncompressedSize:0};R&&!I||(ke.crc32=N.crc32,ke.compressedSize=N.compressedSize,ke.uncompressedSize=N.uncompressedSize);var fe=0;R&&(fe|=8),le||!ce&&!k||(fe|=2048);var ye=0,at=0;Re&&(ye|=16),K==="UNIX"?(at=798,ye|=function(nt,ut){var Nt=nt;return nt||(Nt=ut?16893:33204),(65535&Nt)<<16}(W.unixPermissions,Re)):(at=20,ye|=function(nt){return 63&(nt||0)}(W.dosPermissions)),te=ve.getUTCHours(),te<<=6,te|=ve.getUTCMinutes(),te<<=5,te|=ve.getUTCSeconds()/2,X=ve.getUTCFullYear()-1980,X<<=4,X|=ve.getUTCMonth()+1,X<<=5,X|=ve.getUTCDate(),ce&&(Le=G(1,1)+G(Z(he),4)+Ne,ot+="up"+G(Le.length,2)+Le),k&&(xe=G(1,1)+G(Z(je),4)+q,ot+="uc"+G(xe.length,2)+xe);var rt="";return rt+=`
\0`,rt+=G(fe,2),rt+=j.magic,rt+=G(te,2),rt+=G(X,2),rt+=G(ke.crc32,4),rt+=G(ke.compressedSize,4),rt+=G(ke.uncompressedSize,4),rt+=G(he.length,2),rt+=G(ot.length,2),{fileRecord:S.LOCAL_FILE_HEADER+rt+he+ot,dirRecord:S.CENTRAL_FILE_HEADER+G(at,2)+rt+G(je.length,2)+"\0\0\0\0"+G(ye,4)+G(Y,4)+he+ot+je}}var f=Q("../utils"),E=Q("../stream/GenericWorker"),h=Q("../utf8"),Z=Q("../crc32"),S=Q("../signature");function _(N,R,I,Y){E.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=R,this.zipPlatform=I,this.encodeFileName=Y,this.streamFiles=N,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(_,E),_.prototype.push=function(N){var R=N.meta.percent||0,I=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(N):(this.bytesWritten+=N.data.length,E.prototype.push.call(this,{data:N.data,meta:{currentFile:this.currentFile,percent:I?(R+100*(I-Y-1))/I:100}}))},_.prototype.openedSource=function(N){this.currentSourceOffset=this.bytesWritten,this.currentFile=N.file.name;var R=this.streamFiles&&!N.file.dir;if(R){var I=B(N,R,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(N){this.accumulate=!1;var R=this.streamFiles&&!N.file.dir,I=B(N,R,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(I.dirRecord),R)this.push({data:function(Y){return S.DATA_DESCRIPTOR+G(Y.crc32,4)+G(Y.compressedSize,4)+G(Y.uncompressedSize,4)}(N),meta:{percent:100}});else for(this.push({data:I.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var N=this.bytesWritten,R=0;R<this.dirRecords.length;R++)this.push({data:this.dirRecords[R],meta:{percent:100}});var I=this.bytesWritten-N,Y=function(K,se,te,X,W){var j=f.transformTo("string",W(X));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+G(K,2)+G(K,2)+G(se,4)+G(te,4)+G(j.length,2)+j}(this.dirRecords.length,I,N,this.zipComment,this.encodeFileName);this.push({data:Y,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(N){this._sources.push(N);var R=this;return N.on("data",function(I){R.processChunk(I)}),N.on("end",function(){R.closedSource(R.previous.streamInfo),R._sources.length?R.prepareNextSource():R.end()}),N.on("error",function(I){R.error(I)}),this},_.prototype.resume=function(){return!!E.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(N){var R=this._sources;if(!E.prototype.error.call(this,N))return!1;for(var I=0;I<R.length;I++)try{R[I].error(N)}catch(Y){}return!0},_.prototype.lock=function(){E.prototype.lock.call(this);for(var N=this._sources,R=0;R<N.length;R++)N[R].lock()},Te.exports=_},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Q,Te,ne){"use strict";var G=Q("../compressions"),B=Q("./ZipFileWorker");ne.generateWorker=function(f,E,h){var Z=new B(E.streamFiles,h,E.platform,E.encodeFileName),S=0;try{f.forEach(function(_,N){S++;var R=function(se,te){var X=se||te,W=G[X];if(!W)throw new Error(X+" is not a valid compression method !");return W}(N.options.compression,E.compression),I=N.options.compressionOptions||E.compressionOptions||{},Y=N.dir,K=N.date;N._compressWorker(R,I).withStreamInfo("file",{name:_,dir:Y,date:K,comment:N.comment||"",unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions}).pipe(Z)}),Z.entriesCount=S}catch(_){Z.error(_)}return Z}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Q,Te,ne){"use strict";function G(){if(!(this instanceof G))return new G;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var B=new G;for(var f in this)typeof this[f]!="function"&&(B[f]=this[f]);return B}}(G.prototype=Q("./object")).loadAsync=Q("./load"),G.support=Q("./support"),G.defaults=Q("./defaults"),G.version="3.10.1",G.loadAsync=function(B,f){return new G().loadAsync(B,f)},G.external=Q("./external"),Te.exports=G},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Q,Te,ne){"use strict";var G=Q("./utils"),B=Q("./external"),f=Q("./utf8"),E=Q("./zipEntries"),h=Q("./stream/Crc32Probe"),Z=Q("./nodejsUtils");function S(_){return new B.Promise(function(N,R){var I=_.decompressed.getContentWorker().pipe(new h);I.on("error",function(Y){R(Y)}).on("end",function(){I.streamInfo.crc32!==_.decompressed.crc32?R(new Error("Corrupted zip : CRC32 mismatch")):N()}).resume()})}Te.exports=function(_,N){var R=this;return N=G.extend(N||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),Z.isNode&&Z.isStream(_)?B.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):G.prepareContent("the loaded zip file",_,!0,N.optimizedBinaryString,N.base64).then(function(I){var Y=new E(N);return Y.load(I),Y}).then(function(I){var Y=[B.Promise.resolve(I)],K=I.files;if(N.checkCRC32)for(var se=0;se<K.length;se++)Y.push(S(K[se]));return B.Promise.all(Y)}).then(function(I){for(var Y=I.shift(),K=Y.files,se=0;se<K.length;se++){var te=K[se],X=te.fileNameStr,W=G.resolve(te.fileNameStr);R.file(W,te.decompressed,{binary:!0,optimizedBinaryString:!0,date:te.date,dir:te.dir,comment:te.fileCommentStr.length?te.fileCommentStr:null,unixPermissions:te.unixPermissions,dosPermissions:te.dosPermissions,createFolders:N.createFolders}),te.dir||(R.file(W).unsafeOriginalName=X)}return Y.zipComment.length&&(R.comment=Y.zipComment),R})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Q,Te,ne){"use strict";var G=Q("../utils"),B=Q("../stream/GenericWorker");function f(E,h){B.call(this,"Nodejs stream input adapter for "+E),this._upstreamEnded=!1,this._bindStream(h)}G.inherits(f,B),f.prototype._bindStream=function(E){var h=this;(this._stream=E).pause(),E.on("data",function(Z){h.push({data:Z,meta:{percent:0}})}).on("error",function(Z){h.isPaused?this.generatedError=Z:h.error(Z)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},f.prototype.pause=function(){return!!B.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Te.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Q,Te,ne){"use strict";var G=Q("readable-stream").Readable;function B(f,E,h){G.call(this,E),this._helper=f;var Z=this;f.on("data",function(S,_){Z.push(S)||Z._helper.pause(),h&&h(_)}).on("error",function(S){Z.emit("error",S)}).on("end",function(){Z.push(null)})}Q("../utils").inherits(B,G),B.prototype._read=function(){this._helper.resume()},Te.exports=B},{"../utils":32,"readable-stream":16}],14:[function(Q,Te,ne){"use strict";Te.exports={isNode:typeof ge!="undefined",newBufferFrom:function(G,B){if(ge.from&&ge.from!==Uint8Array.from)return ge.from(G,B);if(typeof G=="number")throw new Error('The "data" argument must not be a number');return new ge(G,B)},allocBuffer:function(G){if(ge.alloc)return ge.alloc(G);var B=new ge(G);return B.fill(0),B},isBuffer:function(G){return ge.isBuffer(G)},isStream:function(G){return G&&typeof G.on=="function"&&typeof G.pause=="function"&&typeof G.resume=="function"}}},{}],15:[function(Q,Te,ne){"use strict";function G(W,j,le){var he,Ne=f.getTypeOf(j),Ce=f.extend(le||{},Z);Ce.date=Ce.date||new Date,Ce.compression!==null&&(Ce.compression=Ce.compression.toUpperCase()),typeof Ce.unixPermissions=="string"&&(Ce.unixPermissions=parseInt(Ce.unixPermissions,8)),Ce.unixPermissions&&16384&Ce.unixPermissions&&(Ce.dir=!0),Ce.dosPermissions&&16&Ce.dosPermissions&&(Ce.dir=!0),Ce.dir&&(W=K(W)),Ce.createFolders&&(he=Y(W))&&se.call(this,he,!0);var je=Ne==="string"&&Ce.binary===!1&&Ce.base64===!1;le&&le.binary!==void 0||(Ce.binary=!je),(j instanceof S&&j.uncompressedSize===0||Ce.dir||!j||j.length===0)&&(Ce.base64=!1,Ce.binary=!0,j="",Ce.compression="STORE",Ne="string");var q=null;q=j instanceof S||j instanceof E?j:R.isNode&&R.isStream(j)?new I(W,j):f.prepareContent(W,j,Ce.binary,Ce.optimizedBinaryString,Ce.base64);var ce=new _(W,q,Ce);this.files[W]=ce}var B=Q("./utf8"),f=Q("./utils"),E=Q("./stream/GenericWorker"),h=Q("./stream/StreamHelper"),Z=Q("./defaults"),S=Q("./compressedObject"),_=Q("./zipObject"),N=Q("./generate"),R=Q("./nodejsUtils"),I=Q("./nodejs/NodejsStreamInputAdapter"),Y=function(W){W.slice(-1)==="/"&&(W=W.substring(0,W.length-1));var j=W.lastIndexOf("/");return 0<j?W.substring(0,j):""},K=function(W){return W.slice(-1)!=="/"&&(W+="/"),W},se=function(W,j){return j=j!==void 0?j:Z.createFolders,W=K(W),this.files[W]||G.call(this,W,null,{dir:!0,createFolders:j}),this.files[W]};function te(W){return Object.prototype.toString.call(W)==="[object RegExp]"}var X={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(W){var j,le,he;for(j in this.files)he=this.files[j],(le=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&W(le,he)},filter:function(W){var j=[];return this.forEach(function(le,he){W(le,he)&&j.push(he)}),j},file:function(W,j,le){if(arguments.length!==1)return W=this.root+W,G.call(this,W,j,le),this;if(te(W)){var he=W;return this.filter(function(Ce,je){return!je.dir&&he.test(Ce)})}var Ne=this.files[this.root+W];return Ne&&!Ne.dir?Ne:null},folder:function(W){if(!W)return this;if(te(W))return this.filter(function(Ne,Ce){return Ce.dir&&W.test(Ne)});var j=this.root+W,le=se.call(this,j),he=this.clone();return he.root=le.name,he},remove:function(W){W=this.root+W;var j=this.files[W];if(j||(W.slice(-1)!=="/"&&(W+="/"),j=this.files[W]),j&&!j.dir)delete this.files[W];else for(var le=this.filter(function(Ne,Ce){return Ce.name.slice(0,W.length)===W}),he=0;he<le.length;he++)delete this.files[le[he].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(W){var j,le={};try{if((le=f.extend(W||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:B.utf8encode})).type=le.type.toLowerCase(),le.compression=le.compression.toUpperCase(),le.type==="binarystring"&&(le.type="string"),!le.type)throw new Error("No output type specified.");f.checkSupport(le.type),le.platform!=="darwin"&&le.platform!=="freebsd"&&le.platform!=="linux"&&le.platform!=="sunos"||(le.platform="UNIX"),le.platform==="win32"&&(le.platform="DOS");var he=le.comment||this.comment||"";j=N.generateWorker(this,le,he)}catch(Ne){(j=new E("error")).error(Ne)}return new h(j,le.type||"string",le.mimeType)},generateAsync:function(W,j){return this.generateInternalStream(W).accumulate(j)},generateNodeStream:function(W,j){return(W=W||{}).type||(W.type="nodebuffer"),this.generateInternalStream(W).toNodejsStream(j)}};Te.exports=X},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(Q,Te,ne){"use strict";Te.exports=Q("stream")},{stream:void 0}],17:[function(Q,Te,ne){"use strict";var G=Q("./DataReader");function B(f){G.call(this,f);for(var E=0;E<this.data.length;E++)f[E]=255&f[E]}Q("../utils").inherits(B,G),B.prototype.byteAt=function(f){return this.data[this.zero+f]},B.prototype.lastIndexOfSignature=function(f){for(var E=f.charCodeAt(0),h=f.charCodeAt(1),Z=f.charCodeAt(2),S=f.charCodeAt(3),_=this.length-4;0<=_;--_)if(this.data[_]===E&&this.data[_+1]===h&&this.data[_+2]===Z&&this.data[_+3]===S)return _-this.zero;return-1},B.prototype.readAndCheckSignature=function(f){var E=f.charCodeAt(0),h=f.charCodeAt(1),Z=f.charCodeAt(2),S=f.charCodeAt(3),_=this.readData(4);return E===_[0]&&h===_[1]&&Z===_[2]&&S===_[3]},B.prototype.readData=function(f){if(this.checkOffset(f),f===0)return[];var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Te.exports=B},{"../utils":32,"./DataReader":18}],18:[function(Q,Te,ne){"use strict";var G=Q("../utils");function B(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}B.prototype={checkOffset:function(f){this.checkIndex(this.index+f)},checkIndex:function(f){if(this.length<this.zero+f||f<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+f+"). Corrupted zip ?")},setIndex:function(f){this.checkIndex(f),this.index=f},skip:function(f){this.setIndex(this.index+f)},byteAt:function(){},readInt:function(f){var E,h=0;for(this.checkOffset(f),E=this.index+f-1;E>=this.index;E--)h=(h<<8)+this.byteAt(E);return this.index+=f,h},readString:function(f){return G.transformTo("string",this.readData(f))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var f=this.readInt(4);return new Date(Date.UTC(1980+(f>>25&127),(f>>21&15)-1,f>>16&31,f>>11&31,f>>5&63,(31&f)<<1))}},Te.exports=B},{"../utils":32}],19:[function(Q,Te,ne){"use strict";var G=Q("./Uint8ArrayReader");function B(f){G.call(this,f)}Q("../utils").inherits(B,G),B.prototype.readData=function(f){this.checkOffset(f);var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Te.exports=B},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Q,Te,ne){"use strict";var G=Q("./DataReader");function B(f){G.call(this,f)}Q("../utils").inherits(B,G),B.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},B.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},B.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},B.prototype.readData=function(f){this.checkOffset(f);var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Te.exports=B},{"../utils":32,"./DataReader":18}],21:[function(Q,Te,ne){"use strict";var G=Q("./ArrayReader");function B(f){G.call(this,f)}Q("../utils").inherits(B,G),B.prototype.readData=function(f){if(this.checkOffset(f),f===0)return new Uint8Array(0);var E=this.data.subarray(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Te.exports=B},{"../utils":32,"./ArrayReader":17}],22:[function(Q,Te,ne){"use strict";var G=Q("../utils"),B=Q("../support"),f=Q("./ArrayReader"),E=Q("./StringReader"),h=Q("./NodeBufferReader"),Z=Q("./Uint8ArrayReader");Te.exports=function(S){var _=G.getTypeOf(S);return G.checkSupport(_),_!=="string"||B.uint8array?_==="nodebuffer"?new h(S):B.uint8array?new Z(G.transformTo("uint8array",S)):new f(G.transformTo("array",S)):new E(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Q,Te,ne){"use strict";ne.LOCAL_FILE_HEADER="PK",ne.CENTRAL_FILE_HEADER="PK",ne.CENTRAL_DIRECTORY_END="PK",ne.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ne.ZIP64_CENTRAL_DIRECTORY_END="PK",ne.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Q,Te,ne){"use strict";var G=Q("./GenericWorker"),B=Q("../utils");function f(E){G.call(this,"ConvertWorker to "+E),this.destType=E}B.inherits(f,G),f.prototype.processChunk=function(E){this.push({data:B.transformTo(this.destType,E.data),meta:E.meta})},Te.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(Q,Te,ne){"use strict";var G=Q("./GenericWorker"),B=Q("../crc32");function f(){G.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Q("../utils").inherits(f,G),f.prototype.processChunk=function(E){this.streamInfo.crc32=B(E.data,this.streamInfo.crc32||0),this.push(E)},Te.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Q,Te,ne){"use strict";var G=Q("../utils"),B=Q("./GenericWorker");function f(E){B.call(this,"DataLengthProbe for "+E),this.propName=E,this.withStreamInfo(E,0)}G.inherits(f,B),f.prototype.processChunk=function(E){if(E){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+E.data.length}B.prototype.processChunk.call(this,E)},Te.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(Q,Te,ne){"use strict";var G=Q("../utils"),B=Q("./GenericWorker");function f(E){B.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,E.then(function(Z){h.dataIsReady=!0,h.data=Z,h.max=Z&&Z.length||0,h.type=G.getTypeOf(Z),h.isPaused||h._tickAndRepeat()},function(Z){h.error(Z)})}G.inherits(f,B),f.prototype.cleanUp=function(){B.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,G.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(G.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var E=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":E=this.data.substring(this.index,h);break;case"uint8array":E=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":E=this.data.slice(this.index,h)}return this.index=h,this.push({data:E,meta:{percent:this.max?this.index/this.max*100:0}})},Te.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(Q,Te,ne){"use strict";function G(B){this.name=B||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}G.prototype={push:function(B){this.emit("data",B)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(B){this.emit("error",B)}return!0},error:function(B){return!this.isFinished&&(this.isPaused?this.generatedError=B:(this.isFinished=!0,this.emit("error",B),this.previous&&this.previous.error(B),this.cleanUp()),!0)},on:function(B,f){return this._listeners[B].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(B,f){if(this._listeners[B])for(var E=0;E<this._listeners[B].length;E++)this._listeners[B][E].call(this,f)},pipe:function(B){return B.registerPrevious(this)},registerPrevious:function(B){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=B.streamInfo,this.mergeStreamInfo(),this.previous=B;var f=this;return B.on("data",function(E){f.processChunk(E)}),B.on("end",function(){f.end()}),B.on("error",function(E){f.error(E)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var B=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),B=!0),this.previous&&this.previous.resume(),!B},flush:function(){},processChunk:function(B){this.push(B)},withStreamInfo:function(B,f){return this.extraStreamInfo[B]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var B in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,B)&&(this.streamInfo[B]=this.extraStreamInfo[B])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var B="Worker "+this.name;return this.previous?this.previous+" -> "+B:B}},Te.exports=G},{}],29:[function(Q,Te,ne){"use strict";var G=Q("../utils"),B=Q("./ConvertWorker"),f=Q("./GenericWorker"),E=Q("../base64"),h=Q("../support"),Z=Q("../external"),S=null;if(h.nodestream)try{S=Q("../nodejs/NodejsStreamOutputAdapter")}catch(R){}function _(R,I){return new Z.Promise(function(Y,K){var se=[],te=R._internalType,X=R._outputType,W=R._mimeType;R.on("data",function(j,le){se.push(j),I&&I(le)}).on("error",function(j){se=[],K(j)}).on("end",function(){try{var j=function(le,he,Ne){switch(le){case"blob":return G.newBlob(G.transformTo("arraybuffer",he),Ne);case"base64":return E.encode(he);default:return G.transformTo(le,he)}}(X,function(le,he){var Ne,Ce=0,je=null,q=0;for(Ne=0;Ne<he.length;Ne++)q+=he[Ne].length;switch(le){case"string":return he.join("");case"array":return Array.prototype.concat.apply([],he);case"uint8array":for(je=new Uint8Array(q),Ne=0;Ne<he.length;Ne++)je.set(he[Ne],Ce),Ce+=he[Ne].length;return je;case"nodebuffer":return ge.concat(he);default:throw new Error("concat : unsupported type '"+le+"'")}}(te,se),W);Y(j)}catch(le){K(le)}se=[]}).resume()})}function N(R,I,Y){var K=I;switch(I){case"blob":case"arraybuffer":K="uint8array";break;case"base64":K="string"}try{this._internalType=K,this._outputType=I,this._mimeType=Y,G.checkSupport(K),this._worker=R.pipe(new B(K)),R.lock()}catch(se){this._worker=new f("error"),this._worker.error(se)}}N.prototype={accumulate:function(R){return _(this,R)},on:function(R,I){var Y=this;return R==="data"?this._worker.on(R,function(K){I.call(Y,K.data,K.meta)}):this._worker.on(R,function(){G.delay(I,arguments,Y)}),this},resume:function(){return G.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(R){if(G.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},R)}},Te.exports=N},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Q,Te,ne){"use strict";if(ne.base64=!0,ne.array=!0,ne.string=!0,ne.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ne.nodebuffer=typeof ge!="undefined",ne.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ne.blob=!1;else{var G=new ArrayBuffer(0);try{ne.blob=new Blob([G],{type:"application/zip"}).size===0}catch(f){try{var B=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);B.append(G),ne.blob=B.getBlob("application/zip").size===0}catch(E){ne.blob=!1}}}try{ne.nodestream=!!Q("readable-stream").Readable}catch(f){ne.nodestream=!1}},{"readable-stream":16}],31:[function(Q,Te,ne){"use strict";for(var G=Q("./utils"),B=Q("./support"),f=Q("./nodejsUtils"),E=Q("./stream/GenericWorker"),h=new Array(256),Z=0;Z<256;Z++)h[Z]=252<=Z?6:248<=Z?5:240<=Z?4:224<=Z?3:192<=Z?2:1;h[254]=h[254]=1;function S(){E.call(this,"utf-8 decode"),this.leftOver=null}function _(){E.call(this,"utf-8 encode")}ne.utf8encode=function(N){return B.nodebuffer?f.newBufferFrom(N,"utf-8"):function(R){var I,Y,K,se,te,X=R.length,W=0;for(se=0;se<X;se++)(64512&(Y=R.charCodeAt(se)))==55296&&se+1<X&&(64512&(K=R.charCodeAt(se+1)))==56320&&(Y=65536+(Y-55296<<10)+(K-56320),se++),W+=Y<128?1:Y<2048?2:Y<65536?3:4;for(I=B.uint8array?new Uint8Array(W):new Array(W),se=te=0;te<W;se++)(64512&(Y=R.charCodeAt(se)))==55296&&se+1<X&&(64512&(K=R.charCodeAt(se+1)))==56320&&(Y=65536+(Y-55296<<10)+(K-56320),se++),Y<128?I[te++]=Y:(Y<2048?I[te++]=192|Y>>>6:(Y<65536?I[te++]=224|Y>>>12:(I[te++]=240|Y>>>18,I[te++]=128|Y>>>12&63),I[te++]=128|Y>>>6&63),I[te++]=128|63&Y);return I}(N)},ne.utf8decode=function(N){return B.nodebuffer?G.transformTo("nodebuffer",N).toString("utf-8"):function(R){var I,Y,K,se,te=R.length,X=new Array(2*te);for(I=Y=0;I<te;)if((K=R[I++])<128)X[Y++]=K;else if(4<(se=h[K]))X[Y++]=65533,I+=se-1;else{for(K&=se===2?31:se===3?15:7;1<se&&I<te;)K=K<<6|63&R[I++],se--;1<se?X[Y++]=65533:K<65536?X[Y++]=K:(K-=65536,X[Y++]=55296|K>>10&1023,X[Y++]=56320|1023&K)}return X.length!==Y&&(X.subarray?X=X.subarray(0,Y):X.length=Y),G.applyFromCharCode(X)}(N=G.transformTo(B.uint8array?"uint8array":"array",N))},G.inherits(S,E),S.prototype.processChunk=function(N){var R=G.transformTo(B.uint8array?"uint8array":"array",N.data);if(this.leftOver&&this.leftOver.length){if(B.uint8array){var I=R;(R=new Uint8Array(I.length+this.leftOver.length)).set(this.leftOver,0),R.set(I,this.leftOver.length)}else R=this.leftOver.concat(R);this.leftOver=null}var Y=function(se,te){var X;for((te=te||se.length)>se.length&&(te=se.length),X=te-1;0<=X&&(192&se[X])==128;)X--;return X<0||X===0?te:X+h[se[X]]>te?X:te}(R),K=R;Y!==R.length&&(B.uint8array?(K=R.subarray(0,Y),this.leftOver=R.subarray(Y,R.length)):(K=R.slice(0,Y),this.leftOver=R.slice(Y,R.length))),this.push({data:ne.utf8decode(K),meta:N.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ne.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ne.Utf8DecodeWorker=S,G.inherits(_,E),_.prototype.processChunk=function(N){this.push({data:ne.utf8encode(N.data),meta:N.meta})},ne.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Q,Te,ne){"use strict";var G=Q("./support"),B=Q("./base64"),f=Q("./nodejsUtils"),E=Q("./external");function h(I){return I}function Z(I,Y){for(var K=0;K<I.length;++K)Y[K]=255&I.charCodeAt(K);return Y}Q("setimmediate"),ne.newBlob=function(I,Y){ne.checkSupport("blob");try{return new Blob([I],{type:Y})}catch(se){try{var K=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return K.append(I),K.getBlob(Y)}catch(te){throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(I,Y,K){var se=[],te=0,X=I.length;if(X<=K)return String.fromCharCode.apply(null,I);for(;te<X;)Y==="array"||Y==="nodebuffer"?se.push(String.fromCharCode.apply(null,I.slice(te,Math.min(te+K,X)))):se.push(String.fromCharCode.apply(null,I.subarray(te,Math.min(te+K,X)))),te+=K;return se.join("")},stringifyByChar:function(I){for(var Y="",K=0;K<I.length;K++)Y+=String.fromCharCode(I[K]);return Y},applyCanBeUsed:{uint8array:function(){try{return G.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(I){return!1}}(),nodebuffer:function(){try{return G.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch(I){return!1}}()}};function _(I){var Y=65536,K=ne.getTypeOf(I),se=!0;if(K==="uint8array"?se=S.applyCanBeUsed.uint8array:K==="nodebuffer"&&(se=S.applyCanBeUsed.nodebuffer),se)for(;1<Y;)try{return S.stringifyByChunk(I,K,Y)}catch(te){Y=Math.floor(Y/2)}return S.stringifyByChar(I)}function N(I,Y){for(var K=0;K<I.length;K++)Y[K]=I[K];return Y}ne.applyFromCharCode=_;var R={};R.string={string:h,array:function(I){return Z(I,new Array(I.length))},arraybuffer:function(I){return R.string.uint8array(I).buffer},uint8array:function(I){return Z(I,new Uint8Array(I.length))},nodebuffer:function(I){return Z(I,f.allocBuffer(I.length))}},R.array={string:_,array:h,arraybuffer:function(I){return new Uint8Array(I).buffer},uint8array:function(I){return new Uint8Array(I)},nodebuffer:function(I){return f.newBufferFrom(I)}},R.arraybuffer={string:function(I){return _(new Uint8Array(I))},array:function(I){return N(new Uint8Array(I),new Array(I.byteLength))},arraybuffer:h,uint8array:function(I){return new Uint8Array(I)},nodebuffer:function(I){return f.newBufferFrom(new Uint8Array(I))}},R.uint8array={string:_,array:function(I){return N(I,new Array(I.length))},arraybuffer:function(I){return I.buffer},uint8array:h,nodebuffer:function(I){return f.newBufferFrom(I)}},R.nodebuffer={string:_,array:function(I){return N(I,new Array(I.length))},arraybuffer:function(I){return R.nodebuffer.uint8array(I).buffer},uint8array:function(I){return N(I,new Uint8Array(I.length))},nodebuffer:h},ne.transformTo=function(I,Y){if(Y=Y||"",!I)return Y;ne.checkSupport(I);var K=ne.getTypeOf(Y);return R[K][I](Y)},ne.resolve=function(I){for(var Y=I.split("/"),K=[],se=0;se<Y.length;se++){var te=Y[se];te==="."||te===""&&se!==0&&se!==Y.length-1||(te===".."?K.pop():K.push(te))}return K.join("/")},ne.getTypeOf=function(I){return typeof I=="string"?"string":Object.prototype.toString.call(I)==="[object Array]"?"array":G.nodebuffer&&f.isBuffer(I)?"nodebuffer":G.uint8array&&I instanceof Uint8Array?"uint8array":G.arraybuffer&&I instanceof ArrayBuffer?"arraybuffer":void 0},ne.checkSupport=function(I){if(!G[I.toLowerCase()])throw new Error(I+" is not supported by this platform")},ne.MAX_VALUE_16BITS=65535,ne.MAX_VALUE_32BITS=-1,ne.pretty=function(I){var Y,K,se="";for(K=0;K<(I||"").length;K++)se+="\\x"+((Y=I.charCodeAt(K))<16?"0":"")+Y.toString(16).toUpperCase();return se},ne.delay=function(I,Y,K){setImmediate(function(){I.apply(K||null,Y||[])})},ne.inherits=function(I,Y){function K(){}K.prototype=Y.prototype,I.prototype=new K},ne.extend=function(){var I,Y,K={};for(I=0;I<arguments.length;I++)for(Y in arguments[I])Object.prototype.hasOwnProperty.call(arguments[I],Y)&&K[Y]===void 0&&(K[Y]=arguments[I][Y]);return K},ne.prepareContent=function(I,Y,K,se,te){return E.Promise.resolve(Y).then(function(X){return G.blob&&(X instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(X))!==-1)&&typeof FileReader!="undefined"?new E.Promise(function(W,j){var le=new FileReader;le.onload=function(he){W(he.target.result)},le.onerror=function(he){j(he.target.error)},le.readAsArrayBuffer(X)}):X}).then(function(X){var W=ne.getTypeOf(X);return W?(W==="arraybuffer"?X=ne.transformTo("uint8array",X):W==="string"&&(te?X=B.decode(X):K&&se!==!0&&(X=function(j){return Z(j,G.uint8array?new Uint8Array(j.length):new Array(j.length))}(X))),X):E.Promise.reject(new Error("Can't read the data of '"+I+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Q,Te,ne){"use strict";var G=Q("./reader/readerFor"),B=Q("./utils"),f=Q("./signature"),E=Q("./zipEntry"),h=Q("./support");function Z(S){this.files=[],this.loadOptions=S}Z.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var _=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+B.pretty(_)+", expected "+B.pretty(S)+")")}},isSignature:function(S,_){var N=this.reader.index;this.reader.setIndex(S);var R=this.reader.readString(4)===_;return this.reader.setIndex(N),R},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var S=this.reader.readData(this.zipCommentLength),_=h.uint8array?"uint8array":"array",N=B.transformTo(_,S);this.zipComment=this.loadOptions.decodeFileName(N)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,_,N,R=this.zip64EndOfCentralSize-44;0<R;)S=this.reader.readInt(2),_=this.reader.readInt(4),N=this.reader.readData(_),this.zip64ExtensibleData[S]={id:S,length:_,value:N}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var S,_;for(S=0;S<this.files.length;S++)_=this.files[S],this.reader.setIndex(_.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),_.readLocalPart(this.reader),_.handleUTF8(),_.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(S=new E({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var S=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(S);var _=S;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===B.MAX_VALUE_16BITS||this.diskWithCentralDirStart===B.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===B.MAX_VALUE_16BITS||this.centralDirRecords===B.MAX_VALUE_16BITS||this.centralDirSize===B.MAX_VALUE_32BITS||this.centralDirOffset===B.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var N=this.centralDirOffset+this.centralDirSize;this.zip64&&(N+=20,N+=12+this.zip64EndOfCentralSize);var R=_-N;if(0<R)this.isSignature(_,f.CENTRAL_FILE_HEADER)||(this.reader.zero=R);else if(R<0)throw new Error("Corrupted zip: missing "+Math.abs(R)+" bytes.")},prepareReader:function(S){this.reader=G(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Te.exports=Z},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Q,Te,ne){"use strict";var G=Q("./reader/readerFor"),B=Q("./utils"),f=Q("./compressedObject"),E=Q("./crc32"),h=Q("./utf8"),Z=Q("./compressions"),S=Q("./support");function _(N,R){this.options=N,this.loadOptions=R}_.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(N){var R,I;if(N.skip(22),this.fileNameLength=N.readInt(2),I=N.readInt(2),this.fileName=N.readData(this.fileNameLength),N.skip(I),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((R=function(Y){for(var K in Z)if(Object.prototype.hasOwnProperty.call(Z,K)&&Z[K].magic===Y)return Z[K];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+B.pretty(this.compressionMethod)+" unknown (inner file : "+B.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,R,N.readData(this.compressedSize))},readCentralPart:function(N){this.versionMadeBy=N.readInt(2),N.skip(2),this.bitFlag=N.readInt(2),this.compressionMethod=N.readString(2),this.date=N.readDate(),this.crc32=N.readInt(4),this.compressedSize=N.readInt(4),this.uncompressedSize=N.readInt(4);var R=N.readInt(2);if(this.extraFieldsLength=N.readInt(2),this.fileCommentLength=N.readInt(2),this.diskNumberStart=N.readInt(2),this.internalFileAttributes=N.readInt(2),this.externalFileAttributes=N.readInt(4),this.localHeaderOffset=N.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");N.skip(R),this.readExtraFields(N),this.parseZIP64ExtraField(N),this.fileComment=N.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var N=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),N==0&&(this.dosPermissions=63&this.externalFileAttributes),N==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var N=G(this.extraFields[1].value);this.uncompressedSize===B.MAX_VALUE_32BITS&&(this.uncompressedSize=N.readInt(8)),this.compressedSize===B.MAX_VALUE_32BITS&&(this.compressedSize=N.readInt(8)),this.localHeaderOffset===B.MAX_VALUE_32BITS&&(this.localHeaderOffset=N.readInt(8)),this.diskNumberStart===B.MAX_VALUE_32BITS&&(this.diskNumberStart=N.readInt(4))}},readExtraFields:function(N){var R,I,Y,K=N.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});N.index+4<K;)R=N.readInt(2),I=N.readInt(2),Y=N.readData(I),this.extraFields[R]={id:R,length:I,value:Y};N.setIndex(K)},handleUTF8:function(){var N=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var R=this.findExtraFieldUnicodePath();if(R!==null)this.fileNameStr=R;else{var I=B.transformTo(N,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(I)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var K=B.transformTo(N,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var N=this.extraFields[28789];if(N){var R=G(N.value);return R.readInt(1)!==1||E(this.fileName)!==R.readInt(4)?null:h.utf8decode(R.readData(N.length-5))}return null},findExtraFieldUnicodeComment:function(){var N=this.extraFields[25461];if(N){var R=G(N.value);return R.readInt(1)!==1||E(this.fileComment)!==R.readInt(4)?null:h.utf8decode(R.readData(N.length-5))}return null}},Te.exports=_},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Q,Te,ne){"use strict";function G(R,I,Y){this.name=R,this.dir=Y.dir,this.date=Y.date,this.comment=Y.comment,this.unixPermissions=Y.unixPermissions,this.dosPermissions=Y.dosPermissions,this._data=I,this._dataBinary=Y.binary,this.options={compression:Y.compression,compressionOptions:Y.compressionOptions}}var B=Q("./stream/StreamHelper"),f=Q("./stream/DataWorker"),E=Q("./utf8"),h=Q("./compressedObject"),Z=Q("./stream/GenericWorker");G.prototype={internalStream:function(R){var I=null,Y="string";try{if(!R)throw new Error("No output type specified.");var K=(Y=R.toLowerCase())==="string"||Y==="text";Y!=="binarystring"&&Y!=="text"||(Y="string"),I=this._decompressWorker();var se=!this._dataBinary;se&&!K&&(I=I.pipe(new E.Utf8EncodeWorker)),!se&&K&&(I=I.pipe(new E.Utf8DecodeWorker))}catch(te){(I=new Z("error")).error(te)}return new B(I,Y,"")},async:function(R,I){return this.internalStream(R).accumulate(I)},nodeStream:function(R,I){return this.internalStream(R||"nodebuffer").toNodejsStream(I)},_compressWorker:function(R,I){if(this._data instanceof h&&this._data.compression.magic===R.magic)return this._data.getCompressedWorker();var Y=this._decompressWorker();return this._dataBinary||(Y=Y.pipe(new E.Utf8EncodeWorker)),h.createWorkerFrom(Y,R,I)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof Z?this._data:new f(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],_=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},N=0;N<S.length;N++)G.prototype[S[N]]=_;Te.exports=G},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Q,Te,ne){(function(G){"use strict";var B,f,E=G.MutationObserver||G.WebKitMutationObserver;if(E){var h=0,Z=new E(R),S=G.document.createTextNode("");Z.observe(S,{characterData:!0}),B=function(){S.data=h=++h%2}}else if(G.setImmediate||G.MessageChannel===void 0)B="document"in G&&"onreadystatechange"in G.document.createElement("script")?function(){var I=G.document.createElement("script");I.onreadystatechange=function(){R(),I.onreadystatechange=null,I.parentNode.removeChild(I),I=null},G.document.documentElement.appendChild(I)}:function(){setTimeout(R,0)};else{var _=new G.MessageChannel;_.port1.onmessage=R,B=function(){_.port2.postMessage(0)}}var N=[];function R(){var I,Y;f=!0;for(var K=N.length;K;){for(Y=N,N=[],I=-1;++I<K;)Y[I]();K=N.length}f=!1}Te.exports=function(I){N.push(I)!==1||f||B()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(Q,Te,ne){"use strict";var G=Q("immediate");function B(){}var f={},E=["REJECTED"],h=["FULFILLED"],Z=["PENDING"];function S(K){if(typeof K!="function")throw new TypeError("resolver must be a function");this.state=Z,this.queue=[],this.outcome=void 0,K!==B&&I(this,K)}function _(K,se,te){this.promise=K,typeof se=="function"&&(this.onFulfilled=se,this.callFulfilled=this.otherCallFulfilled),typeof te=="function"&&(this.onRejected=te,this.callRejected=this.otherCallRejected)}function N(K,se,te){G(function(){var X;try{X=se(te)}catch(W){return f.reject(K,W)}X===K?f.reject(K,new TypeError("Cannot resolve promise with itself")):f.resolve(K,X)})}function R(K){var se=K&&K.then;if(K&&(typeof K=="object"||typeof K=="function")&&typeof se=="function")return function(){se.apply(K,arguments)}}function I(K,se){var te=!1;function X(le){te||(te=!0,f.reject(K,le))}function W(le){te||(te=!0,f.resolve(K,le))}var j=Y(function(){se(W,X)});j.status==="error"&&X(j.value)}function Y(K,se){var te={};try{te.value=K(se),te.status="success"}catch(X){te.status="error",te.value=X}return te}(Te.exports=S).prototype.finally=function(K){if(typeof K!="function")return this;var se=this.constructor;return this.then(function(te){return se.resolve(K()).then(function(){return te})},function(te){return se.resolve(K()).then(function(){throw te})})},S.prototype.catch=function(K){return this.then(null,K)},S.prototype.then=function(K,se){if(typeof K!="function"&&this.state===h||typeof se!="function"&&this.state===E)return this;var te=new this.constructor(B);return this.state!==Z?N(te,this.state===h?K:se,this.outcome):this.queue.push(new _(te,K,se)),te},_.prototype.callFulfilled=function(K){f.resolve(this.promise,K)},_.prototype.otherCallFulfilled=function(K){N(this.promise,this.onFulfilled,K)},_.prototype.callRejected=function(K){f.reject(this.promise,K)},_.prototype.otherCallRejected=function(K){N(this.promise,this.onRejected,K)},f.resolve=function(K,se){var te=Y(R,se);if(te.status==="error")return f.reject(K,te.value);var X=te.value;if(X)I(K,X);else{K.state=h,K.outcome=se;for(var W=-1,j=K.queue.length;++W<j;)K.queue[W].callFulfilled(se)}return K},f.reject=function(K,se){K.state=E,K.outcome=se;for(var te=-1,X=K.queue.length;++te<X;)K.queue[te].callRejected(se);return K},S.resolve=function(K){return K instanceof this?K:f.resolve(new this(B),K)},S.reject=function(K){var se=new this(B);return f.reject(se,K)},S.all=function(K){var se=this;if(Object.prototype.toString.call(K)!=="[object Array]")return this.reject(new TypeError("must be an array"));var te=K.length,X=!1;if(!te)return this.resolve([]);for(var W=new Array(te),j=0,le=-1,he=new this(B);++le<te;)Ne(K[le],le);return he;function Ne(Ce,je){se.resolve(Ce).then(function(q){W[je]=q,++j!==te||X||(X=!0,f.resolve(he,W))},function(q){X||(X=!0,f.reject(he,q))})}},S.race=function(K){var se=this;if(Object.prototype.toString.call(K)!=="[object Array]")return this.reject(new TypeError("must be an array"));var te=K.length,X=!1;if(!te)return this.resolve([]);for(var W=-1,j=new this(B);++W<te;)le=K[W],se.resolve(le).then(function(he){X||(X=!0,f.resolve(j,he))},function(he){X||(X=!0,f.reject(j,he))});var le;return j}},{immediate:36}],38:[function(Q,Te,ne){"use strict";var G={};(0,Q("./lib/utils/common").assign)(G,Q("./lib/deflate"),Q("./lib/inflate"),Q("./lib/zlib/constants")),Te.exports=G},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Q,Te,ne){"use strict";var G=Q("./zlib/deflate"),B=Q("./utils/common"),f=Q("./utils/strings"),E=Q("./zlib/messages"),h=Q("./zlib/zstream"),Z=Object.prototype.toString,S=0,_=-1,N=0,R=8;function I(K){if(!(this instanceof I))return new I(K);this.options=B.assign({level:_,method:R,chunkSize:16384,windowBits:15,memLevel:8,strategy:N,to:""},K||{});var se=this.options;se.raw&&0<se.windowBits?se.windowBits=-se.windowBits:se.gzip&&0<se.windowBits&&se.windowBits<16&&(se.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var te=G.deflateInit2(this.strm,se.level,se.method,se.windowBits,se.memLevel,se.strategy);if(te!==S)throw new Error(E[te]);if(se.header&&G.deflateSetHeader(this.strm,se.header),se.dictionary){var X;if(X=typeof se.dictionary=="string"?f.string2buf(se.dictionary):Z.call(se.dictionary)==="[object ArrayBuffer]"?new Uint8Array(se.dictionary):se.dictionary,(te=G.deflateSetDictionary(this.strm,X))!==S)throw new Error(E[te]);this._dict_set=!0}}function Y(K,se){var te=new I(se);if(te.push(K,!0),te.err)throw te.msg||E[te.err];return te.result}I.prototype.push=function(K,se){var te,X,W=this.strm,j=this.options.chunkSize;if(this.ended)return!1;X=se===~~se?se:se===!0?4:0,typeof K=="string"?W.input=f.string2buf(K):Z.call(K)==="[object ArrayBuffer]"?W.input=new Uint8Array(K):W.input=K,W.next_in=0,W.avail_in=W.input.length;do{if(W.avail_out===0&&(W.output=new B.Buf8(j),W.next_out=0,W.avail_out=j),(te=G.deflate(W,X))!==1&&te!==S)return this.onEnd(te),!(this.ended=!0);W.avail_out!==0&&(W.avail_in!==0||X!==4&&X!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(B.shrinkBuf(W.output,W.next_out))):this.onData(B.shrinkBuf(W.output,W.next_out)))}while((0<W.avail_in||W.avail_out===0)&&te!==1);return X===4?(te=G.deflateEnd(this.strm),this.onEnd(te),this.ended=!0,te===S):X!==2||(this.onEnd(S),!(W.avail_out=0))},I.prototype.onData=function(K){this.chunks.push(K)},I.prototype.onEnd=function(K){K===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=K,this.msg=this.strm.msg},ne.Deflate=I,ne.deflate=Y,ne.deflateRaw=function(K,se){return(se=se||{}).raw=!0,Y(K,se)},ne.gzip=function(K,se){return(se=se||{}).gzip=!0,Y(K,se)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Q,Te,ne){"use strict";var G=Q("./zlib/inflate"),B=Q("./utils/common"),f=Q("./utils/strings"),E=Q("./zlib/constants"),h=Q("./zlib/messages"),Z=Q("./zlib/zstream"),S=Q("./zlib/gzheader"),_=Object.prototype.toString;function N(I){if(!(this instanceof N))return new N(I);this.options=B.assign({chunkSize:16384,windowBits:0,to:""},I||{});var Y=this.options;Y.raw&&0<=Y.windowBits&&Y.windowBits<16&&(Y.windowBits=-Y.windowBits,Y.windowBits===0&&(Y.windowBits=-15)),!(0<=Y.windowBits&&Y.windowBits<16)||I&&I.windowBits||(Y.windowBits+=32),15<Y.windowBits&&Y.windowBits<48&&!(15&Y.windowBits)&&(Y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Z,this.strm.avail_out=0;var K=G.inflateInit2(this.strm,Y.windowBits);if(K!==E.Z_OK)throw new Error(h[K]);this.header=new S,G.inflateGetHeader(this.strm,this.header)}function R(I,Y){var K=new N(Y);if(K.push(I,!0),K.err)throw K.msg||h[K.err];return K.result}N.prototype.push=function(I,Y){var K,se,te,X,W,j,le=this.strm,he=this.options.chunkSize,Ne=this.options.dictionary,Ce=!1;if(this.ended)return!1;se=Y===~~Y?Y:Y===!0?E.Z_FINISH:E.Z_NO_FLUSH,typeof I=="string"?le.input=f.binstring2buf(I):_.call(I)==="[object ArrayBuffer]"?le.input=new Uint8Array(I):le.input=I,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new B.Buf8(he),le.next_out=0,le.avail_out=he),(K=G.inflate(le,E.Z_NO_FLUSH))===E.Z_NEED_DICT&&Ne&&(j=typeof Ne=="string"?f.string2buf(Ne):_.call(Ne)==="[object ArrayBuffer]"?new Uint8Array(Ne):Ne,K=G.inflateSetDictionary(this.strm,j)),K===E.Z_BUF_ERROR&&Ce===!0&&(K=E.Z_OK,Ce=!1),K!==E.Z_STREAM_END&&K!==E.Z_OK)return this.onEnd(K),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&K!==E.Z_STREAM_END&&(le.avail_in!==0||se!==E.Z_FINISH&&se!==E.Z_SYNC_FLUSH)||(this.options.to==="string"?(te=f.utf8border(le.output,le.next_out),X=le.next_out-te,W=f.buf2string(le.output,te),le.next_out=X,le.avail_out=he-X,X&&B.arraySet(le.output,le.output,te,X,0),this.onData(W)):this.onData(B.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Ce=!0)}while((0<le.avail_in||le.avail_out===0)&&K!==E.Z_STREAM_END);return K===E.Z_STREAM_END&&(se=E.Z_FINISH),se===E.Z_FINISH?(K=G.inflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E.Z_OK):se!==E.Z_SYNC_FLUSH||(this.onEnd(E.Z_OK),!(le.avail_out=0))},N.prototype.onData=function(I){this.chunks.push(I)},N.prototype.onEnd=function(I){I===E.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=I,this.msg=this.strm.msg},ne.Inflate=N,ne.inflate=R,ne.inflateRaw=function(I,Y){return(Y=Y||{}).raw=!0,R(I,Y)},ne.ungzip=R},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Q,Te,ne){"use strict";var G=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ne.assign=function(E){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var Z=h.shift();if(Z){if(typeof Z!="object")throw new TypeError(Z+"must be non-object");for(var S in Z)Z.hasOwnProperty(S)&&(E[S]=Z[S])}}return E},ne.shrinkBuf=function(E,h){return E.length===h?E:E.subarray?E.subarray(0,h):(E.length=h,E)};var B={arraySet:function(E,h,Z,S,_){if(h.subarray&&E.subarray)E.set(h.subarray(Z,Z+S),_);else for(var N=0;N<S;N++)E[_+N]=h[Z+N]},flattenChunks:function(E){var h,Z,S,_,N,R;for(h=S=0,Z=E.length;h<Z;h++)S+=E[h].length;for(R=new Uint8Array(S),h=_=0,Z=E.length;h<Z;h++)N=E[h],R.set(N,_),_+=N.length;return R}},f={arraySet:function(E,h,Z,S,_){for(var N=0;N<S;N++)E[_+N]=h[Z+N]},flattenChunks:function(E){return[].concat.apply([],E)}};ne.setTyped=function(E){E?(ne.Buf8=Uint8Array,ne.Buf16=Uint16Array,ne.Buf32=Int32Array,ne.assign(ne,B)):(ne.Buf8=Array,ne.Buf16=Array,ne.Buf32=Array,ne.assign(ne,f))},ne.setTyped(G)},{}],42:[function(Q,Te,ne){"use strict";var G=Q("./common"),B=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(S){B=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(S){f=!1}for(var E=new G.Buf8(256),h=0;h<256;h++)E[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function Z(S,_){if(_<65537&&(S.subarray&&f||!S.subarray&&B))return String.fromCharCode.apply(null,G.shrinkBuf(S,_));for(var N="",R=0;R<_;R++)N+=String.fromCharCode(S[R]);return N}E[254]=E[254]=1,ne.string2buf=function(S){var _,N,R,I,Y,K=S.length,se=0;for(I=0;I<K;I++)(64512&(N=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(R=S.charCodeAt(I+1)))==56320&&(N=65536+(N-55296<<10)+(R-56320),I++),se+=N<128?1:N<2048?2:N<65536?3:4;for(_=new G.Buf8(se),I=Y=0;Y<se;I++)(64512&(N=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(R=S.charCodeAt(I+1)))==56320&&(N=65536+(N-55296<<10)+(R-56320),I++),N<128?_[Y++]=N:(N<2048?_[Y++]=192|N>>>6:(N<65536?_[Y++]=224|N>>>12:(_[Y++]=240|N>>>18,_[Y++]=128|N>>>12&63),_[Y++]=128|N>>>6&63),_[Y++]=128|63&N);return _},ne.buf2binstring=function(S){return Z(S,S.length)},ne.binstring2buf=function(S){for(var _=new G.Buf8(S.length),N=0,R=_.length;N<R;N++)_[N]=S.charCodeAt(N);return _},ne.buf2string=function(S,_){var N,R,I,Y,K=_||S.length,se=new Array(2*K);for(N=R=0;N<K;)if((I=S[N++])<128)se[R++]=I;else if(4<(Y=E[I]))se[R++]=65533,N+=Y-1;else{for(I&=Y===2?31:Y===3?15:7;1<Y&&N<K;)I=I<<6|63&S[N++],Y--;1<Y?se[R++]=65533:I<65536?se[R++]=I:(I-=65536,se[R++]=55296|I>>10&1023,se[R++]=56320|1023&I)}return Z(se,R)},ne.utf8border=function(S,_){var N;for((_=_||S.length)>S.length&&(_=S.length),N=_-1;0<=N&&(192&S[N])==128;)N--;return N<0||N===0?_:N+E[S[N]]>_?N:_}},{"./common":41}],43:[function(Q,Te,ne){"use strict";Te.exports=function(G,B,f,E){for(var h=65535&G|0,Z=G>>>16&65535|0,S=0;f!==0;){for(f-=S=2e3<f?2e3:f;Z=Z+(h=h+B[E++]|0)|0,--S;);h%=65521,Z%=65521}return h|Z<<16|0}},{}],44:[function(Q,Te,ne){"use strict";Te.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(Q,Te,ne){"use strict";var G=function(){for(var B,f=[],E=0;E<256;E++){B=E;for(var h=0;h<8;h++)B=1&B?3988292384^B>>>1:B>>>1;f[E]=B}return f}();Te.exports=function(B,f,E,h){var Z=G,S=h+E;B^=-1;for(var _=h;_<S;_++)B=B>>>8^Z[255&(B^f[_])];return-1^B}},{}],46:[function(Q,Te,ne){"use strict";var G,B=Q("../utils/common"),f=Q("./trees"),E=Q("./adler32"),h=Q("./crc32"),Z=Q("./messages"),S=0,_=4,N=0,R=-2,I=-1,Y=4,K=2,se=8,te=9,X=286,W=30,j=19,le=2*X+1,he=15,Ne=3,Ce=258,je=Ce+Ne+1,q=42,ce=113,k=1,ot=2,Le=3,xe=4;function Re($,Xe){return $.msg=Z[Xe],Xe}function ve($){return($<<1)-(4<$?9:0)}function ke($){for(var Xe=$.length;0<=--Xe;)$[Xe]=0}function fe($){var Xe=$.state,L=Xe.pending;L>$.avail_out&&(L=$.avail_out),L!==0&&(B.arraySet($.output,Xe.pending_buf,Xe.pending_out,L,$.next_out),$.next_out+=L,Xe.pending_out+=L,$.total_out+=L,$.avail_out-=L,Xe.pending-=L,Xe.pending===0&&(Xe.pending_out=0))}function ye($,Xe){f._tr_flush_block($,0<=$.block_start?$.block_start:-1,$.strstart-$.block_start,Xe),$.block_start=$.strstart,fe($.strm)}function at($,Xe){$.pending_buf[$.pending++]=Xe}function rt($,Xe){$.pending_buf[$.pending++]=Xe>>>8&255,$.pending_buf[$.pending++]=255&Xe}function nt($,Xe){var L,p,u=$.max_chain_length,w=$.strstart,ee=$.prev_length,Be=$.nice_match,T=$.strstart>$.w_size-je?$.strstart-($.w_size-je):0,ae=$.window,Ge=$.w_mask,Ee=$.prev,me=$.strstart+Ce,qe=ae[w+ee-1],_t=ae[w+ee];$.prev_length>=$.good_match&&(u>>=2),Be>$.lookahead&&(Be=$.lookahead);do if(ae[(L=Xe)+ee]===_t&&ae[L+ee-1]===qe&&ae[L]===ae[w]&&ae[++L]===ae[w+1]){w+=2,L++;do;while(ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&ae[++w]===ae[++L]&&w<me);if(p=Ce-(me-w),w=me-Ce,ee<p){if($.match_start=Xe,Be<=(ee=p))break;qe=ae[w+ee-1],_t=ae[w+ee]}}while((Xe=Ee[Xe&Ge])>T&&--u!=0);return ee<=$.lookahead?ee:$.lookahead}function ut($){var Xe,L,p,u,w,ee,Be,T,ae,Ge,Ee=$.w_size;do{if(u=$.window_size-$.lookahead-$.strstart,$.strstart>=Ee+(Ee-je)){for(B.arraySet($.window,$.window,Ee,Ee,0),$.match_start-=Ee,$.strstart-=Ee,$.block_start-=Ee,Xe=L=$.hash_size;p=$.head[--Xe],$.head[Xe]=Ee<=p?p-Ee:0,--L;);for(Xe=L=Ee;p=$.prev[--Xe],$.prev[Xe]=Ee<=p?p-Ee:0,--L;);u+=Ee}if($.strm.avail_in===0)break;if(ee=$.strm,Be=$.window,T=$.strstart+$.lookahead,ae=u,Ge=void 0,Ge=ee.avail_in,ae<Ge&&(Ge=ae),L=Ge===0?0:(ee.avail_in-=Ge,B.arraySet(Be,ee.input,ee.next_in,Ge,T),ee.state.wrap===1?ee.adler=E(ee.adler,Be,Ge,T):ee.state.wrap===2&&(ee.adler=h(ee.adler,Be,Ge,T)),ee.next_in+=Ge,ee.total_in+=Ge,Ge),$.lookahead+=L,$.lookahead+$.insert>=Ne)for(w=$.strstart-$.insert,$.ins_h=$.window[w],$.ins_h=($.ins_h<<$.hash_shift^$.window[w+1])&$.hash_mask;$.insert&&($.ins_h=($.ins_h<<$.hash_shift^$.window[w+Ne-1])&$.hash_mask,$.prev[w&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=w,w++,$.insert--,!($.lookahead+$.insert<Ne)););}while($.lookahead<je&&$.strm.avail_in!==0)}function Nt($,Xe){for(var L,p;;){if($.lookahead<je){if(ut($),$.lookahead<je&&Xe===S)return k;if($.lookahead===0)break}if(L=0,$.lookahead>=Ne&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+Ne-1])&$.hash_mask,L=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),L!==0&&$.strstart-L<=$.w_size-je&&($.match_length=nt($,L)),$.match_length>=Ne)if(p=f._tr_tally($,$.strstart-$.match_start,$.match_length-Ne),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=Ne){for($.match_length--;$.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+Ne-1])&$.hash_mask,L=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart,--$.match_length!=0;);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else p=f._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(p&&(ye($,!1),$.strm.avail_out===0))return k}return $.insert=$.strstart<Ne-1?$.strstart:Ne-1,Xe===_?(ye($,!0),$.strm.avail_out===0?Le:xe):$.last_lit&&(ye($,!1),$.strm.avail_out===0)?k:ot}function zt($,Xe){for(var L,p,u;;){if($.lookahead<je){if(ut($),$.lookahead<je&&Xe===S)return k;if($.lookahead===0)break}if(L=0,$.lookahead>=Ne&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+Ne-1])&$.hash_mask,L=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),$.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=Ne-1,L!==0&&$.prev_length<$.max_lazy_match&&$.strstart-L<=$.w_size-je&&($.match_length=nt($,L),$.match_length<=5&&($.strategy===1||$.match_length===Ne&&4096<$.strstart-$.match_start)&&($.match_length=Ne-1)),$.prev_length>=Ne&&$.match_length<=$.prev_length){for(u=$.strstart+$.lookahead-Ne,p=f._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-Ne),$.lookahead-=$.prev_length-1,$.prev_length-=2;++$.strstart<=u&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+Ne-1])&$.hash_mask,L=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),--$.prev_length!=0;);if($.match_available=0,$.match_length=Ne-1,$.strstart++,p&&(ye($,!1),$.strm.avail_out===0))return k}else if($.match_available){if((p=f._tr_tally($,0,$.window[$.strstart-1]))&&ye($,!1),$.strstart++,$.lookahead--,$.strm.avail_out===0)return k}else $.match_available=1,$.strstart++,$.lookahead--}return $.match_available&&(p=f._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0),$.insert=$.strstart<Ne-1?$.strstart:Ne-1,Xe===_?(ye($,!0),$.strm.avail_out===0?Le:xe):$.last_lit&&(ye($,!1),$.strm.avail_out===0)?k:ot}function Ht($,Xe,L,p,u){this.good_length=$,this.max_lazy=Xe,this.nice_length=L,this.max_chain=p,this.func=u}function cr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=se,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new B.Buf16(2*le),this.dyn_dtree=new B.Buf16(2*(2*W+1)),this.bl_tree=new B.Buf16(2*(2*j+1)),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new B.Buf16(he+1),this.heap=new B.Buf16(2*X+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new B.Buf16(2*X+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function or($){var Xe;return $&&$.state?($.total_in=$.total_out=0,$.data_type=K,(Xe=$.state).pending=0,Xe.pending_out=0,Xe.wrap<0&&(Xe.wrap=-Xe.wrap),Xe.status=Xe.wrap?q:ce,$.adler=Xe.wrap===2?0:1,Xe.last_flush=S,f._tr_init(Xe),N):Re($,R)}function yr($){var Xe=or($);return Xe===N&&function(L){L.window_size=2*L.w_size,ke(L.head),L.max_lazy_match=G[L.level].max_lazy,L.good_match=G[L.level].good_length,L.nice_match=G[L.level].nice_length,L.max_chain_length=G[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=Ne-1,L.match_available=0,L.ins_h=0}($.state),Xe}function dr($,Xe,L,p,u,w){if(!$)return R;var ee=1;if(Xe===I&&(Xe=6),p<0?(ee=0,p=-p):15<p&&(ee=2,p-=16),u<1||te<u||L!==se||p<8||15<p||Xe<0||9<Xe||w<0||Y<w)return Re($,R);p===8&&(p=9);var Be=new cr;return($.state=Be).strm=$,Be.wrap=ee,Be.gzhead=null,Be.w_bits=p,Be.w_size=1<<Be.w_bits,Be.w_mask=Be.w_size-1,Be.hash_bits=u+7,Be.hash_size=1<<Be.hash_bits,Be.hash_mask=Be.hash_size-1,Be.hash_shift=~~((Be.hash_bits+Ne-1)/Ne),Be.window=new B.Buf8(2*Be.w_size),Be.head=new B.Buf16(Be.hash_size),Be.prev=new B.Buf16(Be.w_size),Be.lit_bufsize=1<<u+6,Be.pending_buf_size=4*Be.lit_bufsize,Be.pending_buf=new B.Buf8(Be.pending_buf_size),Be.d_buf=1*Be.lit_bufsize,Be.l_buf=3*Be.lit_bufsize,Be.level=Xe,Be.strategy=w,Be.method=L,yr($)}G=[new Ht(0,0,0,0,function($,Xe){var L=65535;for(L>$.pending_buf_size-5&&(L=$.pending_buf_size-5);;){if($.lookahead<=1){if(ut($),$.lookahead===0&&Xe===S)return k;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var p=$.block_start+L;if(($.strstart===0||$.strstart>=p)&&($.lookahead=$.strstart-p,$.strstart=p,ye($,!1),$.strm.avail_out===0)||$.strstart-$.block_start>=$.w_size-je&&(ye($,!1),$.strm.avail_out===0))return k}return $.insert=0,Xe===_?(ye($,!0),$.strm.avail_out===0?Le:xe):($.strstart>$.block_start&&(ye($,!1),$.strm.avail_out),k)}),new Ht(4,4,8,4,Nt),new Ht(4,5,16,8,Nt),new Ht(4,6,32,32,Nt),new Ht(4,4,16,16,zt),new Ht(8,16,32,32,zt),new Ht(8,16,128,128,zt),new Ht(8,32,128,256,zt),new Ht(32,128,258,1024,zt),new Ht(32,258,258,4096,zt)],ne.deflateInit=function($,Xe){return dr($,Xe,se,15,8,0)},ne.deflateInit2=dr,ne.deflateReset=yr,ne.deflateResetKeep=or,ne.deflateSetHeader=function($,Xe){return $&&$.state?$.state.wrap!==2?R:($.state.gzhead=Xe,N):R},ne.deflate=function($,Xe){var L,p,u,w;if(!$||!$.state||5<Xe||Xe<0)return $?Re($,R):R;if(p=$.state,!$.output||!$.input&&$.avail_in!==0||p.status===666&&Xe!==_)return Re($,$.avail_out===0?-5:R);if(p.strm=$,L=p.last_flush,p.last_flush=Xe,p.status===q)if(p.wrap===2)$.adler=0,at(p,31),at(p,139),at(p,8),p.gzhead?(at(p,(p.gzhead.text?1:0)+(p.gzhead.hcrc?2:0)+(p.gzhead.extra?4:0)+(p.gzhead.name?8:0)+(p.gzhead.comment?16:0)),at(p,255&p.gzhead.time),at(p,p.gzhead.time>>8&255),at(p,p.gzhead.time>>16&255),at(p,p.gzhead.time>>24&255),at(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),at(p,255&p.gzhead.os),p.gzhead.extra&&p.gzhead.extra.length&&(at(p,255&p.gzhead.extra.length),at(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&($.adler=h($.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=69):(at(p,0),at(p,0),at(p,0),at(p,0),at(p,0),at(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),at(p,3),p.status=ce);else{var ee=se+(p.w_bits-8<<4)<<8;ee|=(2<=p.strategy||p.level<2?0:p.level<6?1:p.level===6?2:3)<<6,p.strstart!==0&&(ee|=32),ee+=31-ee%31,p.status=ce,rt(p,ee),p.strstart!==0&&(rt(p,$.adler>>>16),rt(p,65535&$.adler)),$.adler=1}if(p.status===69)if(p.gzhead.extra){for(u=p.pending;p.gzindex<(65535&p.gzhead.extra.length)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>u&&($.adler=h($.adler,p.pending_buf,p.pending-u,u)),fe($),u=p.pending,p.pending!==p.pending_buf_size));)at(p,255&p.gzhead.extra[p.gzindex]),p.gzindex++;p.gzhead.hcrc&&p.pending>u&&($.adler=h($.adler,p.pending_buf,p.pending-u,u)),p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=73)}else p.status=73;if(p.status===73)if(p.gzhead.name){u=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>u&&($.adler=h($.adler,p.pending_buf,p.pending-u,u)),fe($),u=p.pending,p.pending===p.pending_buf_size)){w=1;break}w=p.gzindex<p.gzhead.name.length?255&p.gzhead.name.charCodeAt(p.gzindex++):0,at(p,w)}while(w!==0);p.gzhead.hcrc&&p.pending>u&&($.adler=h($.adler,p.pending_buf,p.pending-u,u)),w===0&&(p.gzindex=0,p.status=91)}else p.status=91;if(p.status===91)if(p.gzhead.comment){u=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>u&&($.adler=h($.adler,p.pending_buf,p.pending-u,u)),fe($),u=p.pending,p.pending===p.pending_buf_size)){w=1;break}w=p.gzindex<p.gzhead.comment.length?255&p.gzhead.comment.charCodeAt(p.gzindex++):0,at(p,w)}while(w!==0);p.gzhead.hcrc&&p.pending>u&&($.adler=h($.adler,p.pending_buf,p.pending-u,u)),w===0&&(p.status=103)}else p.status=103;if(p.status===103&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&fe($),p.pending+2<=p.pending_buf_size&&(at(p,255&$.adler),at(p,$.adler>>8&255),$.adler=0,p.status=ce)):p.status=ce),p.pending!==0){if(fe($),$.avail_out===0)return p.last_flush=-1,N}else if($.avail_in===0&&ve(Xe)<=ve(L)&&Xe!==_)return Re($,-5);if(p.status===666&&$.avail_in!==0)return Re($,-5);if($.avail_in!==0||p.lookahead!==0||Xe!==S&&p.status!==666){var Be=p.strategy===2?function(T,ae){for(var Ge;;){if(T.lookahead===0&&(ut(T),T.lookahead===0)){if(ae===S)return k;break}if(T.match_length=0,Ge=f._tr_tally(T,0,T.window[T.strstart]),T.lookahead--,T.strstart++,Ge&&(ye(T,!1),T.strm.avail_out===0))return k}return T.insert=0,ae===_?(ye(T,!0),T.strm.avail_out===0?Le:xe):T.last_lit&&(ye(T,!1),T.strm.avail_out===0)?k:ot}(p,Xe):p.strategy===3?function(T,ae){for(var Ge,Ee,me,qe,_t=T.window;;){if(T.lookahead<=Ce){if(ut(T),T.lookahead<=Ce&&ae===S)return k;if(T.lookahead===0)break}if(T.match_length=0,T.lookahead>=Ne&&0<T.strstart&&(Ee=_t[me=T.strstart-1])===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]){qe=T.strstart+Ce;do;while(Ee===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]&&Ee===_t[++me]&&me<qe);T.match_length=Ce-(qe-me),T.match_length>T.lookahead&&(T.match_length=T.lookahead)}if(T.match_length>=Ne?(Ge=f._tr_tally(T,1,T.match_length-Ne),T.lookahead-=T.match_length,T.strstart+=T.match_length,T.match_length=0):(Ge=f._tr_tally(T,0,T.window[T.strstart]),T.lookahead--,T.strstart++),Ge&&(ye(T,!1),T.strm.avail_out===0))return k}return T.insert=0,ae===_?(ye(T,!0),T.strm.avail_out===0?Le:xe):T.last_lit&&(ye(T,!1),T.strm.avail_out===0)?k:ot}(p,Xe):G[p.level].func(p,Xe);if(Be!==Le&&Be!==xe||(p.status=666),Be===k||Be===Le)return $.avail_out===0&&(p.last_flush=-1),N;if(Be===ot&&(Xe===1?f._tr_align(p):Xe!==5&&(f._tr_stored_block(p,0,0,!1),Xe===3&&(ke(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),fe($),$.avail_out===0))return p.last_flush=-1,N}return Xe!==_?N:p.wrap<=0?1:(p.wrap===2?(at(p,255&$.adler),at(p,$.adler>>8&255),at(p,$.adler>>16&255),at(p,$.adler>>24&255),at(p,255&$.total_in),at(p,$.total_in>>8&255),at(p,$.total_in>>16&255),at(p,$.total_in>>24&255)):(rt(p,$.adler>>>16),rt(p,65535&$.adler)),fe($),0<p.wrap&&(p.wrap=-p.wrap),p.pending!==0?N:1)},ne.deflateEnd=function($){var Xe;return $&&$.state?(Xe=$.state.status)!==q&&Xe!==69&&Xe!==73&&Xe!==91&&Xe!==103&&Xe!==ce&&Xe!==666?Re($,R):($.state=null,Xe===ce?Re($,-3):N):R},ne.deflateSetDictionary=function($,Xe){var L,p,u,w,ee,Be,T,ae,Ge=Xe.length;if(!$||!$.state||(w=(L=$.state).wrap)===2||w===1&&L.status!==q||L.lookahead)return R;for(w===1&&($.adler=E($.adler,Xe,Ge,0)),L.wrap=0,Ge>=L.w_size&&(w===0&&(ke(L.head),L.strstart=0,L.block_start=0,L.insert=0),ae=new B.Buf8(L.w_size),B.arraySet(ae,Xe,Ge-L.w_size,L.w_size,0),Xe=ae,Ge=L.w_size),ee=$.avail_in,Be=$.next_in,T=$.input,$.avail_in=Ge,$.next_in=0,$.input=Xe,ut(L);L.lookahead>=Ne;){for(p=L.strstart,u=L.lookahead-(Ne-1);L.ins_h=(L.ins_h<<L.hash_shift^L.window[p+Ne-1])&L.hash_mask,L.prev[p&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=p,p++,--u;);L.strstart=p,L.lookahead=Ne-1,ut(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=Ne-1,L.match_available=0,$.next_in=Be,$.input=T,$.avail_in=ee,L.wrap=w,N},ne.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Q,Te,ne){"use strict";Te.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(Q,Te,ne){"use strict";Te.exports=function(G,B){var f,E,h,Z,S,_,N,R,I,Y,K,se,te,X,W,j,le,he,Ne,Ce,je,q,ce,k,ot;f=G.state,E=G.next_in,k=G.input,h=E+(G.avail_in-5),Z=G.next_out,ot=G.output,S=Z-(B-G.avail_out),_=Z+(G.avail_out-257),N=f.dmax,R=f.wsize,I=f.whave,Y=f.wnext,K=f.window,se=f.hold,te=f.bits,X=f.lencode,W=f.distcode,j=(1<<f.lenbits)-1,le=(1<<f.distbits)-1;e:do{te<15&&(se+=k[E++]<<te,te+=8,se+=k[E++]<<te,te+=8),he=X[se&j];t:for(;;){if(se>>>=Ne=he>>>24,te-=Ne,(Ne=he>>>16&255)===0)ot[Z++]=65535&he;else{if(!(16&Ne)){if(!(64&Ne)){he=X[(65535&he)+(se&(1<<Ne)-1)];continue t}if(32&Ne){f.mode=12;break e}G.msg="invalid literal/length code",f.mode=30;break e}Ce=65535&he,(Ne&=15)&&(te<Ne&&(se+=k[E++]<<te,te+=8),Ce+=se&(1<<Ne)-1,se>>>=Ne,te-=Ne),te<15&&(se+=k[E++]<<te,te+=8,se+=k[E++]<<te,te+=8),he=W[se&le];r:for(;;){if(se>>>=Ne=he>>>24,te-=Ne,!(16&(Ne=he>>>16&255))){if(!(64&Ne)){he=W[(65535&he)+(se&(1<<Ne)-1)];continue r}G.msg="invalid distance code",f.mode=30;break e}if(je=65535&he,te<(Ne&=15)&&(se+=k[E++]<<te,(te+=8)<Ne&&(se+=k[E++]<<te,te+=8)),N<(je+=se&(1<<Ne)-1)){G.msg="invalid distance too far back",f.mode=30;break e}if(se>>>=Ne,te-=Ne,(Ne=Z-S)<je){if(I<(Ne=je-Ne)&&f.sane){G.msg="invalid distance too far back",f.mode=30;break e}if(ce=K,(q=0)===Y){if(q+=R-Ne,Ne<Ce){for(Ce-=Ne;ot[Z++]=K[q++],--Ne;);q=Z-je,ce=ot}}else if(Y<Ne){if(q+=R+Y-Ne,(Ne-=Y)<Ce){for(Ce-=Ne;ot[Z++]=K[q++],--Ne;);if(q=0,Y<Ce){for(Ce-=Ne=Y;ot[Z++]=K[q++],--Ne;);q=Z-je,ce=ot}}}else if(q+=Y-Ne,Ne<Ce){for(Ce-=Ne;ot[Z++]=K[q++],--Ne;);q=Z-je,ce=ot}for(;2<Ce;)ot[Z++]=ce[q++],ot[Z++]=ce[q++],ot[Z++]=ce[q++],Ce-=3;Ce&&(ot[Z++]=ce[q++],1<Ce&&(ot[Z++]=ce[q++]))}else{for(q=Z-je;ot[Z++]=ot[q++],ot[Z++]=ot[q++],ot[Z++]=ot[q++],2<(Ce-=3););Ce&&(ot[Z++]=ot[q++],1<Ce&&(ot[Z++]=ot[q++]))}break}}break}}while(E<h&&Z<_);E-=Ce=te>>3,se&=(1<<(te-=Ce<<3))-1,G.next_in=E,G.next_out=Z,G.avail_in=E<h?h-E+5:5-(E-h),G.avail_out=Z<_?_-Z+257:257-(Z-_),f.hold=se,f.bits=te}},{}],49:[function(Q,Te,ne){"use strict";var G=Q("../utils/common"),B=Q("./adler32"),f=Q("./crc32"),E=Q("./inffast"),h=Q("./inftrees"),Z=1,S=2,_=0,N=-2,R=1,I=852,Y=592;function K(q){return(q>>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function se(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new G.Buf16(320),this.work=new G.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function te(q){var ce;return q&&q.state?(ce=q.state,q.total_in=q.total_out=ce.total=0,q.msg="",ce.wrap&&(q.adler=1&ce.wrap),ce.mode=R,ce.last=0,ce.havedict=0,ce.dmax=32768,ce.head=null,ce.hold=0,ce.bits=0,ce.lencode=ce.lendyn=new G.Buf32(I),ce.distcode=ce.distdyn=new G.Buf32(Y),ce.sane=1,ce.back=-1,_):N}function X(q){var ce;return q&&q.state?((ce=q.state).wsize=0,ce.whave=0,ce.wnext=0,te(q)):N}function W(q,ce){var k,ot;return q&&q.state?(ot=q.state,ce<0?(k=0,ce=-ce):(k=1+(ce>>4),ce<48&&(ce&=15)),ce&&(ce<8||15<ce)?N:(ot.window!==null&&ot.wbits!==ce&&(ot.window=null),ot.wrap=k,ot.wbits=ce,X(q))):N}function j(q,ce){var k,ot;return q?(ot=new se,(q.state=ot).window=null,(k=W(q,ce))!==_&&(q.state=null),k):N}var le,he,Ne=!0;function Ce(q){if(Ne){var ce;for(le=new G.Buf32(512),he=new G.Buf32(32),ce=0;ce<144;)q.lens[ce++]=8;for(;ce<256;)q.lens[ce++]=9;for(;ce<280;)q.lens[ce++]=7;for(;ce<288;)q.lens[ce++]=8;for(h(Z,q.lens,0,288,le,0,q.work,{bits:9}),ce=0;ce<32;)q.lens[ce++]=5;h(S,q.lens,0,32,he,0,q.work,{bits:5}),Ne=!1}q.lencode=le,q.lenbits=9,q.distcode=he,q.distbits=5}function je(q,ce,k,ot){var Le,xe=q.state;return xe.window===null&&(xe.wsize=1<<xe.wbits,xe.wnext=0,xe.whave=0,xe.window=new G.Buf8(xe.wsize)),ot>=xe.wsize?(G.arraySet(xe.window,ce,k-xe.wsize,xe.wsize,0),xe.wnext=0,xe.whave=xe.wsize):(ot<(Le=xe.wsize-xe.wnext)&&(Le=ot),G.arraySet(xe.window,ce,k-ot,Le,xe.wnext),(ot-=Le)?(G.arraySet(xe.window,ce,k-ot,ot,0),xe.wnext=ot,xe.whave=xe.wsize):(xe.wnext+=Le,xe.wnext===xe.wsize&&(xe.wnext=0),xe.whave<xe.wsize&&(xe.whave+=Le))),0}ne.inflateReset=X,ne.inflateReset2=W,ne.inflateResetKeep=te,ne.inflateInit=function(q){return j(q,15)},ne.inflateInit2=j,ne.inflate=function(q,ce){var k,ot,Le,xe,Re,ve,ke,fe,ye,at,rt,nt,ut,Nt,zt,Ht,cr,or,yr,dr,$,Xe,L,p,u=0,w=new G.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!q||!q.state||!q.output||!q.input&&q.avail_in!==0)return N;(k=q.state).mode===12&&(k.mode=13),Re=q.next_out,Le=q.output,ke=q.avail_out,xe=q.next_in,ot=q.input,ve=q.avail_in,fe=k.hold,ye=k.bits,at=ve,rt=ke,Xe=_;e:for(;;)switch(k.mode){case R:if(k.wrap===0){k.mode=13;break}for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(2&k.wrap&&fe===35615){w[k.check=0]=255&fe,w[1]=fe>>>8&255,k.check=f(k.check,w,2,0),ye=fe=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&fe)<<8)+(fe>>8))%31){q.msg="incorrect header check",k.mode=30;break}if((15&fe)!=8){q.msg="unknown compression method",k.mode=30;break}if(ye-=4,$=8+(15&(fe>>>=4)),k.wbits===0)k.wbits=$;else if($>k.wbits){q.msg="invalid window size",k.mode=30;break}k.dmax=1<<$,q.adler=k.check=1,k.mode=512&fe?10:12,ye=fe=0;break;case 2:for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(k.flags=fe,(255&k.flags)!=8){q.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){q.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=fe>>8&1),512&k.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,k.check=f(k.check,w,2,0)),ye=fe=0,k.mode=3;case 3:for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}k.head&&(k.head.time=fe),512&k.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,w[2]=fe>>>16&255,w[3]=fe>>>24&255,k.check=f(k.check,w,4,0)),ye=fe=0,k.mode=4;case 4:for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}k.head&&(k.head.xflags=255&fe,k.head.os=fe>>8),512&k.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,k.check=f(k.check,w,2,0)),ye=fe=0,k.mode=5;case 5:if(1024&k.flags){for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}k.length=fe,k.head&&(k.head.extra_len=fe),512&k.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,k.check=f(k.check,w,2,0)),ye=fe=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(ve<(nt=k.length)&&(nt=ve),nt&&(k.head&&($=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),G.arraySet(k.head.extra,ot,xe,nt,$)),512&k.flags&&(k.check=f(k.check,ot,nt,xe)),ve-=nt,xe+=nt,k.length-=nt),k.length))break e;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(ve===0)break e;for(nt=0;$=ot[xe+nt++],k.head&&$&&k.length<65536&&(k.head.name+=String.fromCharCode($)),$&&nt<ve;);if(512&k.flags&&(k.check=f(k.check,ot,nt,xe)),ve-=nt,xe+=nt,$)break e}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(ve===0)break e;for(nt=0;$=ot[xe+nt++],k.head&&$&&k.length<65536&&(k.head.comment+=String.fromCharCode($)),$&&nt<ve;);if(512&k.flags&&(k.check=f(k.check,ot,nt,xe)),ve-=nt,xe+=nt,$)break e}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(fe!==(65535&k.check)){q.msg="header crc mismatch",k.mode=30;break}ye=fe=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),q.adler=k.check=0,k.mode=12;break;case 10:for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}q.adler=k.check=K(fe),ye=fe=0,k.mode=11;case 11:if(k.havedict===0)return q.next_out=Re,q.avail_out=ke,q.next_in=xe,q.avail_in=ve,k.hold=fe,k.bits=ye,2;q.adler=k.check=1,k.mode=12;case 12:if(ce===5||ce===6)break e;case 13:if(k.last){fe>>>=7&ye,ye-=7&ye,k.mode=27;break}for(;ye<3;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}switch(k.last=1&fe,ye-=1,3&(fe>>>=1)){case 0:k.mode=14;break;case 1:if(Ce(k),k.mode=20,ce!==6)break;fe>>>=2,ye-=2;break e;case 2:k.mode=17;break;case 3:q.msg="invalid block type",k.mode=30}fe>>>=2,ye-=2;break;case 14:for(fe>>>=7&ye,ye-=7&ye;ye<32;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if((65535&fe)!=(fe>>>16^65535)){q.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&fe,ye=fe=0,k.mode=15,ce===6)break e;case 15:k.mode=16;case 16:if(nt=k.length){if(ve<nt&&(nt=ve),ke<nt&&(nt=ke),nt===0)break e;G.arraySet(Le,ot,xe,nt,Re),ve-=nt,xe+=nt,ke-=nt,Re+=nt,k.length-=nt;break}k.mode=12;break;case 17:for(;ye<14;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(k.nlen=257+(31&fe),fe>>>=5,ye-=5,k.ndist=1+(31&fe),fe>>>=5,ye-=5,k.ncode=4+(15&fe),fe>>>=4,ye-=4,286<k.nlen||30<k.ndist){q.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;ye<3;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}k.lens[ee[k.have++]]=7&fe,fe>>>=3,ye-=3}for(;k.have<19;)k.lens[ee[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,L={bits:k.lenbits},Xe=h(0,k.lens,0,19,k.lencode,0,k.work,L),k.lenbits=L.bits,Xe){q.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;Ht=(u=k.lencode[fe&(1<<k.lenbits)-1])>>>16&255,cr=65535&u,!((zt=u>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(cr<16)fe>>>=zt,ye-=zt,k.lens[k.have++]=cr;else{if(cr===16){for(p=zt+2;ye<p;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(fe>>>=zt,ye-=zt,k.have===0){q.msg="invalid bit length repeat",k.mode=30;break}$=k.lens[k.have-1],nt=3+(3&fe),fe>>>=2,ye-=2}else if(cr===17){for(p=zt+3;ye<p;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}ye-=zt,$=0,nt=3+(7&(fe>>>=zt)),fe>>>=3,ye-=3}else{for(p=zt+7;ye<p;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}ye-=zt,$=0,nt=11+(127&(fe>>>=zt)),fe>>>=7,ye-=7}if(k.have+nt>k.nlen+k.ndist){q.msg="invalid bit length repeat",k.mode=30;break}for(;nt--;)k.lens[k.have++]=$}}if(k.mode===30)break;if(k.lens[256]===0){q.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,L={bits:k.lenbits},Xe=h(Z,k.lens,0,k.nlen,k.lencode,0,k.work,L),k.lenbits=L.bits,Xe){q.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,L={bits:k.distbits},Xe=h(S,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,L),k.distbits=L.bits,Xe){q.msg="invalid distances set",k.mode=30;break}if(k.mode=20,ce===6)break e;case 20:k.mode=21;case 21:if(6<=ve&&258<=ke){q.next_out=Re,q.avail_out=ke,q.next_in=xe,q.avail_in=ve,k.hold=fe,k.bits=ye,E(q,rt),Re=q.next_out,Le=q.output,ke=q.avail_out,xe=q.next_in,ot=q.input,ve=q.avail_in,fe=k.hold,ye=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;Ht=(u=k.lencode[fe&(1<<k.lenbits)-1])>>>16&255,cr=65535&u,!((zt=u>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(Ht&&!(240&Ht)){for(or=zt,yr=Ht,dr=cr;Ht=(u=k.lencode[dr+((fe&(1<<or+yr)-1)>>or)])>>>16&255,cr=65535&u,!(or+(zt=u>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}fe>>>=or,ye-=or,k.back+=or}if(fe>>>=zt,ye-=zt,k.back+=zt,k.length=cr,Ht===0){k.mode=26;break}if(32&Ht){k.back=-1,k.mode=12;break}if(64&Ht){q.msg="invalid literal/length code",k.mode=30;break}k.extra=15&Ht,k.mode=22;case 22:if(k.extra){for(p=k.extra;ye<p;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}k.length+=fe&(1<<k.extra)-1,fe>>>=k.extra,ye-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;Ht=(u=k.distcode[fe&(1<<k.distbits)-1])>>>16&255,cr=65535&u,!((zt=u>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(!(240&Ht)){for(or=zt,yr=Ht,dr=cr;Ht=(u=k.distcode[dr+((fe&(1<<or+yr)-1)>>or)])>>>16&255,cr=65535&u,!(or+(zt=u>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}fe>>>=or,ye-=or,k.back+=or}if(fe>>>=zt,ye-=zt,k.back+=zt,64&Ht){q.msg="invalid distance code",k.mode=30;break}k.offset=cr,k.extra=15&Ht,k.mode=24;case 24:if(k.extra){for(p=k.extra;ye<p;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}k.offset+=fe&(1<<k.extra)-1,fe>>>=k.extra,ye-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){q.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(ke===0)break e;if(nt=rt-ke,k.offset>nt){if((nt=k.offset-nt)>k.whave&&k.sane){q.msg="invalid distance too far back",k.mode=30;break}ut=nt>k.wnext?(nt-=k.wnext,k.wsize-nt):k.wnext-nt,nt>k.length&&(nt=k.length),Nt=k.window}else Nt=Le,ut=Re-k.offset,nt=k.length;for(ke<nt&&(nt=ke),ke-=nt,k.length-=nt;Le[Re++]=Nt[ut++],--nt;);k.length===0&&(k.mode=21);break;case 26:if(ke===0)break e;Le[Re++]=k.length,ke--,k.mode=21;break;case 27:if(k.wrap){for(;ye<32;){if(ve===0)break e;ve--,fe|=ot[xe++]<<ye,ye+=8}if(rt-=ke,q.total_out+=rt,k.total+=rt,rt&&(q.adler=k.check=k.flags?f(k.check,Le,rt,Re-rt):B(k.check,Le,rt,Re-rt)),rt=ke,(k.flags?fe:K(fe))!==k.check){q.msg="incorrect data check",k.mode=30;break}ye=fe=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[xe++]<<ye,ye+=8}if(fe!==(4294967295&k.total)){q.msg="incorrect length check",k.mode=30;break}ye=fe=0}k.mode=29;case 29:Xe=1;break e;case 30:Xe=-3;break e;case 31:return-4;case 32:default:return N}return q.next_out=Re,q.avail_out=ke,q.next_in=xe,q.avail_in=ve,k.hold=fe,k.bits=ye,(k.wsize||rt!==q.avail_out&&k.mode<30&&(k.mode<27||ce!==4))&&je(q,q.output,q.next_out,rt-q.avail_out)?(k.mode=31,-4):(at-=q.avail_in,rt-=q.avail_out,q.total_in+=at,q.total_out+=rt,k.total+=rt,k.wrap&&rt&&(q.adler=k.check=k.flags?f(k.check,Le,rt,q.next_out-rt):B(k.check,Le,rt,q.next_out-rt)),q.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(at==0&&rt===0||ce===4)&&Xe===_&&(Xe=-5),Xe)},ne.inflateEnd=function(q){if(!q||!q.state)return N;var ce=q.state;return ce.window&&(ce.window=null),q.state=null,_},ne.inflateGetHeader=function(q,ce){var k;return q&&q.state&&2&(k=q.state).wrap?((k.head=ce).done=!1,_):N},ne.inflateSetDictionary=function(q,ce){var k,ot=ce.length;return q&&q.state?(k=q.state).wrap!==0&&k.mode!==11?N:k.mode===11&&B(1,ce,ot,0)!==k.check?-3:je(q,ce,ot,ot)?(k.mode=31,-4):(k.havedict=1,_):N},ne.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Q,Te,ne){"use strict";var G=Q("../utils/common"),B=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Te.exports=function(Z,S,_,N,R,I,Y,K){var se,te,X,W,j,le,he,Ne,Ce,je=K.bits,q=0,ce=0,k=0,ot=0,Le=0,xe=0,Re=0,ve=0,ke=0,fe=0,ye=null,at=0,rt=new G.Buf16(16),nt=new G.Buf16(16),ut=null,Nt=0;for(q=0;q<=15;q++)rt[q]=0;for(ce=0;ce<N;ce++)rt[S[_+ce]]++;for(Le=je,ot=15;1<=ot&&rt[ot]===0;ot--);if(ot<Le&&(Le=ot),ot===0)return R[I++]=20971520,R[I++]=20971520,K.bits=1,0;for(k=1;k<ot&&rt[k]===0;k++);for(Le<k&&(Le=k),q=ve=1;q<=15;q++)if(ve<<=1,(ve-=rt[q])<0)return-1;if(0<ve&&(Z===0||ot!==1))return-1;for(nt[1]=0,q=1;q<15;q++)nt[q+1]=nt[q]+rt[q];for(ce=0;ce<N;ce++)S[_+ce]!==0&&(Y[nt[S[_+ce]]++]=ce);if(le=Z===0?(ye=ut=Y,19):Z===1?(ye=B,at-=257,ut=f,Nt-=257,256):(ye=E,ut=h,-1),q=k,j=I,Re=ce=fe=0,X=-1,W=(ke=1<<(xe=Le))-1,Z===1&&852<ke||Z===2&&592<ke)return 1;for(;;){for(he=q-Re,Ce=Y[ce]<le?(Ne=0,Y[ce]):Y[ce]>le?(Ne=ut[Nt+Y[ce]],ye[at+Y[ce]]):(Ne=96,0),se=1<<q-Re,k=te=1<<xe;R[j+(fe>>Re)+(te-=se)]=he<<24|Ne<<16|Ce|0,te!==0;);for(se=1<<q-1;fe&se;)se>>=1;if(se!==0?(fe&=se-1,fe+=se):fe=0,ce++,--rt[q]==0){if(q===ot)break;q=S[_+Y[ce]]}if(Le<q&&(fe&W)!==X){for(Re===0&&(Re=Le),j+=k,ve=1<<(xe=q-Re);xe+Re<ot&&!((ve-=rt[xe+Re])<=0);)xe++,ve<<=1;if(ke+=1<<xe,Z===1&&852<ke||Z===2&&592<ke)return 1;R[X=fe&W]=Le<<24|xe<<16|j-I|0}}return fe!==0&&(R[j+fe]=q-Re<<24|64<<16|0),K.bits=Le,0}},{"../utils/common":41}],51:[function(Q,Te,ne){"use strict";Te.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(Q,Te,ne){"use strict";var G=Q("../utils/common"),B=0,f=1;function E(u){for(var w=u.length;0<=--w;)u[w]=0}var h=0,Z=29,S=256,_=S+1+Z,N=30,R=19,I=2*_+1,Y=15,K=16,se=7,te=256,X=16,W=17,j=18,le=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],je=new Array(2*(_+2));E(je);var q=new Array(2*N);E(q);var ce=new Array(512);E(ce);var k=new Array(256);E(k);var ot=new Array(Z);E(ot);var Le,xe,Re,ve=new Array(N);function ke(u,w,ee,Be,T){this.static_tree=u,this.extra_bits=w,this.extra_base=ee,this.elems=Be,this.max_length=T,this.has_stree=u&&u.length}function fe(u,w){this.dyn_tree=u,this.max_code=0,this.stat_desc=w}function ye(u){return u<256?ce[u]:ce[256+(u>>>7)]}function at(u,w){u.pending_buf[u.pending++]=255&w,u.pending_buf[u.pending++]=w>>>8&255}function rt(u,w,ee){u.bi_valid>K-ee?(u.bi_buf|=w<<u.bi_valid&65535,at(u,u.bi_buf),u.bi_buf=w>>K-u.bi_valid,u.bi_valid+=ee-K):(u.bi_buf|=w<<u.bi_valid&65535,u.bi_valid+=ee)}function nt(u,w,ee){rt(u,ee[2*w],ee[2*w+1])}function ut(u,w){for(var ee=0;ee|=1&u,u>>>=1,ee<<=1,0<--w;);return ee>>>1}function Nt(u,w,ee){var Be,T,ae=new Array(Y+1),Ge=0;for(Be=1;Be<=Y;Be++)ae[Be]=Ge=Ge+ee[Be-1]<<1;for(T=0;T<=w;T++){var Ee=u[2*T+1];Ee!==0&&(u[2*T]=ut(ae[Ee]++,Ee))}}function zt(u){var w;for(w=0;w<_;w++)u.dyn_ltree[2*w]=0;for(w=0;w<N;w++)u.dyn_dtree[2*w]=0;for(w=0;w<R;w++)u.bl_tree[2*w]=0;u.dyn_ltree[2*te]=1,u.opt_len=u.static_len=0,u.last_lit=u.matches=0}function Ht(u){8<u.bi_valid?at(u,u.bi_buf):0<u.bi_valid&&(u.pending_buf[u.pending++]=u.bi_buf),u.bi_buf=0,u.bi_valid=0}function cr(u,w,ee,Be){var T=2*w,ae=2*ee;return u[T]<u[ae]||u[T]===u[ae]&&Be[w]<=Be[ee]}function or(u,w,ee){for(var Be=u.heap[ee],T=ee<<1;T<=u.heap_len&&(T<u.heap_len&&cr(w,u.heap[T+1],u.heap[T],u.depth)&&T++,!cr(w,Be,u.heap[T],u.depth));)u.heap[ee]=u.heap[T],ee=T,T<<=1;u.heap[ee]=Be}function yr(u,w,ee){var Be,T,ae,Ge,Ee=0;if(u.last_lit!==0)for(;Be=u.pending_buf[u.d_buf+2*Ee]<<8|u.pending_buf[u.d_buf+2*Ee+1],T=u.pending_buf[u.l_buf+Ee],Ee++,Be===0?nt(u,T,w):(nt(u,(ae=k[T])+S+1,w),(Ge=le[ae])!==0&&rt(u,T-=ot[ae],Ge),nt(u,ae=ye(--Be),ee),(Ge=he[ae])!==0&&rt(u,Be-=ve[ae],Ge)),Ee<u.last_lit;);nt(u,te,w)}function dr(u,w){var ee,Be,T,ae=w.dyn_tree,Ge=w.stat_desc.static_tree,Ee=w.stat_desc.has_stree,me=w.stat_desc.elems,qe=-1;for(u.heap_len=0,u.heap_max=I,ee=0;ee<me;ee++)ae[2*ee]!==0?(u.heap[++u.heap_len]=qe=ee,u.depth[ee]=0):ae[2*ee+1]=0;for(;u.heap_len<2;)ae[2*(T=u.heap[++u.heap_len]=qe<2?++qe:0)]=1,u.depth[T]=0,u.opt_len--,Ee&&(u.static_len-=Ge[2*T+1]);for(w.max_code=qe,ee=u.heap_len>>1;1<=ee;ee--)or(u,ae,ee);for(T=me;ee=u.heap[1],u.heap[1]=u.heap[u.heap_len--],or(u,ae,1),Be=u.heap[1],u.heap[--u.heap_max]=ee,u.heap[--u.heap_max]=Be,ae[2*T]=ae[2*ee]+ae[2*Be],u.depth[T]=(u.depth[ee]>=u.depth[Be]?u.depth[ee]:u.depth[Be])+1,ae[2*ee+1]=ae[2*Be+1]=T,u.heap[1]=T++,or(u,ae,1),2<=u.heap_len;);u.heap[--u.heap_max]=u.heap[1],function(_t,pe){var st,At,Pe,Ie,vt,Ut,Rt=pe.dyn_tree,hr=pe.max_code,br=pe.stat_desc.static_tree,Mr=pe.stat_desc.has_stree,Ur=pe.stat_desc.extra_bits,Qr=pe.stat_desc.extra_base,rr=pe.stat_desc.max_length,Ar=0;for(Ie=0;Ie<=Y;Ie++)_t.bl_count[Ie]=0;for(Rt[2*_t.heap[_t.heap_max]+1]=0,st=_t.heap_max+1;st<I;st++)rr<(Ie=Rt[2*Rt[2*(At=_t.heap[st])+1]+1]+1)&&(Ie=rr,Ar++),Rt[2*At+1]=Ie,hr<At||(_t.bl_count[Ie]++,vt=0,Qr<=At&&(vt=Ur[At-Qr]),Ut=Rt[2*At],_t.opt_len+=Ut*(Ie+vt),Mr&&(_t.static_len+=Ut*(br[2*At+1]+vt)));if(Ar!==0){do{for(Ie=rr-1;_t.bl_count[Ie]===0;)Ie--;_t.bl_count[Ie]--,_t.bl_count[Ie+1]+=2,_t.bl_count[rr]--,Ar-=2}while(0<Ar);for(Ie=rr;Ie!==0;Ie--)for(At=_t.bl_count[Ie];At!==0;)hr<(Pe=_t.heap[--st])||(Rt[2*Pe+1]!==Ie&&(_t.opt_len+=(Ie-Rt[2*Pe+1])*Rt[2*Pe],Rt[2*Pe+1]=Ie),At--)}}(u,w),Nt(ae,qe,u.bl_count)}function $(u,w,ee){var Be,T,ae=-1,Ge=w[1],Ee=0,me=7,qe=4;for(Ge===0&&(me=138,qe=3),w[2*(ee+1)+1]=65535,Be=0;Be<=ee;Be++)T=Ge,Ge=w[2*(Be+1)+1],++Ee<me&&T===Ge||(Ee<qe?u.bl_tree[2*T]+=Ee:T!==0?(T!==ae&&u.bl_tree[2*T]++,u.bl_tree[2*X]++):Ee<=10?u.bl_tree[2*W]++:u.bl_tree[2*j]++,ae=T,qe=(Ee=0)===Ge?(me=138,3):T===Ge?(me=6,3):(me=7,4))}function Xe(u,w,ee){var Be,T,ae=-1,Ge=w[1],Ee=0,me=7,qe=4;for(Ge===0&&(me=138,qe=3),Be=0;Be<=ee;Be++)if(T=Ge,Ge=w[2*(Be+1)+1],!(++Ee<me&&T===Ge)){if(Ee<qe)for(;nt(u,T,u.bl_tree),--Ee!=0;);else T!==0?(T!==ae&&(nt(u,T,u.bl_tree),Ee--),nt(u,X,u.bl_tree),rt(u,Ee-3,2)):Ee<=10?(nt(u,W,u.bl_tree),rt(u,Ee-3,3)):(nt(u,j,u.bl_tree),rt(u,Ee-11,7));ae=T,qe=(Ee=0)===Ge?(me=138,3):T===Ge?(me=6,3):(me=7,4)}}E(ve);var L=!1;function p(u,w,ee,Be){rt(u,(h<<1)+(Be?1:0),3),function(T,ae,Ge,Ee){Ht(T),Ee&&(at(T,Ge),at(T,~Ge)),G.arraySet(T.pending_buf,T.window,ae,Ge,T.pending),T.pending+=Ge}(u,w,ee,!0)}ne._tr_init=function(u){L||(function(){var w,ee,Be,T,ae,Ge=new Array(Y+1);for(T=Be=0;T<Z-1;T++)for(ot[T]=Be,w=0;w<1<<le[T];w++)k[Be++]=T;for(k[Be-1]=T,T=ae=0;T<16;T++)for(ve[T]=ae,w=0;w<1<<he[T];w++)ce[ae++]=T;for(ae>>=7;T<N;T++)for(ve[T]=ae<<7,w=0;w<1<<he[T]-7;w++)ce[256+ae++]=T;for(ee=0;ee<=Y;ee++)Ge[ee]=0;for(w=0;w<=143;)je[2*w+1]=8,w++,Ge[8]++;for(;w<=255;)je[2*w+1]=9,w++,Ge[9]++;for(;w<=279;)je[2*w+1]=7,w++,Ge[7]++;for(;w<=287;)je[2*w+1]=8,w++,Ge[8]++;for(Nt(je,_+1,Ge),w=0;w<N;w++)q[2*w+1]=5,q[2*w]=ut(w,5);Le=new ke(je,le,S+1,_,Y),xe=new ke(q,he,0,N,Y),Re=new ke(new Array(0),Ne,0,R,se)}(),L=!0),u.l_desc=new fe(u.dyn_ltree,Le),u.d_desc=new fe(u.dyn_dtree,xe),u.bl_desc=new fe(u.bl_tree,Re),u.bi_buf=0,u.bi_valid=0,zt(u)},ne._tr_stored_block=p,ne._tr_flush_block=function(u,w,ee,Be){var T,ae,Ge=0;0<u.level?(u.strm.data_type===2&&(u.strm.data_type=function(Ee){var me,qe=4093624447;for(me=0;me<=31;me++,qe>>>=1)if(1&qe&&Ee.dyn_ltree[2*me]!==0)return B;if(Ee.dyn_ltree[18]!==0||Ee.dyn_ltree[20]!==0||Ee.dyn_ltree[26]!==0)return f;for(me=32;me<S;me++)if(Ee.dyn_ltree[2*me]!==0)return f;return B}(u)),dr(u,u.l_desc),dr(u,u.d_desc),Ge=function(Ee){var me;for($(Ee,Ee.dyn_ltree,Ee.l_desc.max_code),$(Ee,Ee.dyn_dtree,Ee.d_desc.max_code),dr(Ee,Ee.bl_desc),me=R-1;3<=me&&Ee.bl_tree[2*Ce[me]+1]===0;me--);return Ee.opt_len+=3*(me+1)+5+5+4,me}(u),T=u.opt_len+3+7>>>3,(ae=u.static_len+3+7>>>3)<=T&&(T=ae)):T=ae=ee+5,ee+4<=T&&w!==-1?p(u,w,ee,Be):u.strategy===4||ae===T?(rt(u,2+(Be?1:0),3),yr(u,je,q)):(rt(u,4+(Be?1:0),3),function(Ee,me,qe,_t){var pe;for(rt(Ee,me-257,5),rt(Ee,qe-1,5),rt(Ee,_t-4,4),pe=0;pe<_t;pe++)rt(Ee,Ee.bl_tree[2*Ce[pe]+1],3);Xe(Ee,Ee.dyn_ltree,me-1),Xe(Ee,Ee.dyn_dtree,qe-1)}(u,u.l_desc.max_code+1,u.d_desc.max_code+1,Ge+1),yr(u,u.dyn_ltree,u.dyn_dtree)),zt(u),Be&&Ht(u)},ne._tr_tally=function(u,w,ee){return u.pending_buf[u.d_buf+2*u.last_lit]=w>>>8&255,u.pending_buf[u.d_buf+2*u.last_lit+1]=255&w,u.pending_buf[u.l_buf+u.last_lit]=255&ee,u.last_lit++,w===0?u.dyn_ltree[2*ee]++:(u.matches++,w--,u.dyn_ltree[2*(k[ee]+S+1)]++,u.dyn_dtree[2*ye(w)]++),u.last_lit===u.lit_bufsize-1},ne._tr_align=function(u){rt(u,2,3),nt(u,te,je),function(w){w.bi_valid===16?(at(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):8<=w.bi_valid&&(w.pending_buf[w.pending++]=255&w.bi_buf,w.bi_buf>>=8,w.bi_valid-=8)}(u)}},{"../utils/common":41}],53:[function(Q,Te,ne){"use strict";Te.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(Q,Te,ne){(function(G){(function(B,f){"use strict";if(!B.setImmediate){var E,h,Z,S,_=1,N={},R=!1,I=B.document,Y=Object.getPrototypeOf&&Object.getPrototypeOf(B);Y=Y&&Y.setTimeout?Y:B,E={}.toString.call(B.process)==="[object process]"?function(X){ue.nextTick(function(){se(X)})}:function(){if(B.postMessage&&!B.importScripts){var X=!0,W=B.onmessage;return B.onmessage=function(){X=!1},B.postMessage("","*"),B.onmessage=W,X}}()?(S="setImmediate$"+Math.random()+"$",B.addEventListener?B.addEventListener("message",te,!1):B.attachEvent("onmessage",te),function(X){B.postMessage(S+X,"*")}):B.MessageChannel?((Z=new MessageChannel).port1.onmessage=function(X){se(X.data)},function(X){Z.port2.postMessage(X)}):I&&"onreadystatechange"in I.createElement("script")?(h=I.documentElement,function(X){var W=I.createElement("script");W.onreadystatechange=function(){se(X),W.onreadystatechange=null,h.removeChild(W),W=null},h.appendChild(W)}):function(X){setTimeout(se,0,X)},Y.setImmediate=function(X){typeof X!="function"&&(X=new Function(""+X));for(var W=new Array(arguments.length-1),j=0;j<W.length;j++)W[j]=arguments[j+1];var le={callback:X,args:W};return N[_]=le,E(_),_++},Y.clearImmediate=K}function K(X){delete N[X]}function se(X){if(R)setTimeout(se,0,X);else{var W=N[X];if(W){R=!0;try{(function(j){var le=j.callback,he=j.args;switch(he.length){case 0:le();break;case 1:le(he[0]);break;case 2:le(he[0],he[1]);break;case 3:le(he[0],he[1],he[2]);break;default:le.apply(f,he)}})(W)}finally{K(X),R=!1}}}}function te(X){X.source===B&&typeof X.data=="string"&&X.data.indexOf(S)===0&&se(+X.data.slice(S.length))}})(typeof self=="undefined"?G===void 0?this:G:self)}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(xn,er,x){"use strict";var ge=x(92413),ue=x(33708),Q=x(400),Te=x(33606),ne=x(37061),G=x(92310),B=x.n(G),f=x(18929),E=x(59301),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Z=(0,E.forwardRef)(function(S,_){var N,R=S.prefixCls,I=R===void 0?"rc-checkbox":R,Y=S.className,K=S.style,se=S.checked,te=S.disabled,X=S.defaultChecked,W=X===void 0?!1:X,j=S.type,le=j===void 0?"checkbox":j,he=S.title,Ne=S.onChange,Ce=(0,ne.Z)(S,h),je=(0,E.useRef)(null),q=(0,f.Z)(W,{value:se}),ce=(0,Te.Z)(q,2),k=ce[0],ot=ce[1];(0,E.useImperativeHandle)(_,function(){return{focus:function(){var ve;(ve=je.current)===null||ve===void 0||ve.focus()},blur:function(){var ve;(ve=je.current)===null||ve===void 0||ve.blur()},input:je.current}});var Le=B()(I,Y,(N={},(0,Q.Z)(N,"".concat(I,"-checked"),k),(0,Q.Z)(N,"".concat(I,"-disabled"),te),N)),xe=function(ve){te||("checked"in S||ot(ve.target.checked),Ne==null||Ne({target:(0,ue.Z)((0,ue.Z)({},S),{},{type:le,checked:ve.target.checked}),stopPropagation:function(){ve.stopPropagation()},preventDefault:function(){ve.preventDefault()},nativeEvent:ve.nativeEvent}))};return E.createElement("span",{className:Le,title:he,style:K},E.createElement("input",(0,ge.Z)({},Ce,{className:"".concat(I,"-input"),ref:je,onChange:xe,disabled:te,checked:!!k,type:le})),E.createElement("span",{className:"".concat(I,"-inner")}))});er.Z=Z},31561:function(xn,er,x){"use strict";x.d(er,{Z:function(){return le}});var ge=x(92413),ue=x(400),Q=x(33606),Te=x(37061),ne=x(35593),G=x(92310),B=x.n(G),f=x(8654),E=x(59301),h=x(10228),Z=x(16089),S=h.Z.ESC,_=h.Z.TAB;function N(he){var Ne=he.visible,Ce=he.triggerRef,je=he.onVisibleChange,q=he.autoFocus,ce=he.overlayRef,k=E.useRef(!1),ot=function(){if(Ne){var ve,ke;(ve=Ce.current)===null||ve===void 0||(ke=ve.focus)===null||ke===void 0||ke.call(ve),je==null||je(!1)}},Le=function(){var ve;return(ve=ce.current)!==null&&ve!==void 0&&ve.focus?(ce.current.focus(),k.current=!0,!0):!1},xe=function(ve){switch(ve.keyCode){case S:ot();break;case _:{var ke=!1;k.current||(ke=Le()),ke?ve.preventDefault():ot();break}}};E.useEffect(function(){return Ne?(window.addEventListener("keydown",xe),q&&(0,Z.Z)(Le,3),function(){window.removeEventListener("keydown",xe),k.current=!1}):function(){k.current=!1}},[Ne])}var R=(0,E.forwardRef)(function(he,Ne){var Ce=he.overlay,je=he.arrow,q=he.prefixCls,ce=(0,E.useMemo)(function(){var ot;return typeof Ce=="function"?ot=Ce():ot=Ce,ot},[Ce]),k=(0,f.sQ)(Ne,ce==null?void 0:ce.ref);return E.createElement(E.Fragment,null,je&&E.createElement("div",{className:"".concat(q,"-arrow")}),E.cloneElement(ce,{ref:(0,f.Yr)(ce)?k:void 0}))}),I=R,Y={adjustX:1,adjustY:1},K=[0,0],se={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:K}},te=se,X=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function W(he,Ne){var Ce,je=he.arrow,q=je===void 0?!1:je,ce=he.prefixCls,k=ce===void 0?"rc-dropdown":ce,ot=he.transitionName,Le=he.animation,xe=he.align,Re=he.placement,ve=Re===void 0?"bottomLeft":Re,ke=he.placements,fe=ke===void 0?te:ke,ye=he.getPopupContainer,at=he.showAction,rt=he.hideAction,nt=he.overlayClassName,ut=he.overlayStyle,Nt=he.visible,zt=he.trigger,Ht=zt===void 0?["hover"]:zt,cr=he.autoFocus,or=he.overlay,yr=he.children,dr=he.onVisibleChange,$=(0,Te.Z)(he,X),Xe=E.useState(),L=(0,Q.Z)(Xe,2),p=L[0],u=L[1],w="visible"in he?Nt:p,ee=E.useRef(null),Be=E.useRef(null),T=E.useRef(null);E.useImperativeHandle(Ne,function(){return ee.current});var ae=function(Pe){u(Pe),dr==null||dr(Pe)};N({visible:w,triggerRef:T,onVisibleChange:ae,autoFocus:cr,overlayRef:Be});var Ge=function(Pe){var Ie=he.onOverlayClick;u(!1),Ie&&Ie(Pe)},Ee=function(){return E.createElement(I,{ref:Be,overlay:or,prefixCls:k,arrow:q})},me=function(){return typeof or=="function"?Ee:Ee()},qe=function(){var Pe=he.minOverlayWidthMatchTrigger,Ie=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Pe:!Ie},_t=function(){var Pe=he.openClassName;return Pe!==void 0?Pe:"".concat(k,"-open")},pe=E.cloneElement(yr,{className:B()((Ce=yr.props)===null||Ce===void 0?void 0:Ce.className,w&&_t()),ref:(0,f.Yr)(yr)?(0,f.sQ)(T,yr.ref):void 0}),st=rt;return!st&&Ht.indexOf("contextMenu")!==-1&&(st=["click"]),E.createElement(ne.Z,(0,ge.Z)({builtinPlacements:fe},$,{prefixCls:k,ref:ee,popupClassName:B()(nt,(0,ue.Z)({},"".concat(k,"-show-arrow"),q)),popupStyle:ut,action:Ht,showAction:at,hideAction:st,popupPlacement:ve,popupAlign:xe,popupTransitionName:ot,popupAnimation:Le,popupVisible:w,stretch:qe()?"minWidth":"",popup:me(),onPopupVisibleChange:ae,onPopupClick:Ge,getPopupContainer:ye}),pe)}var j=E.forwardRef(W),le=j},93681:function(xn,er,x){"use strict";x.r(er),x.d(er,{BaseInput:function(){return h},default:function(){return se}});var ge=x(92413),ue=x(33708),Q=x(400),Te=x(39559),ne=x(92310),G=x.n(ne),B=x(59301),f=x(5643),E=function(X){var W,j,le=X.inputElement,he=X.prefixCls,Ne=X.prefix,Ce=X.suffix,je=X.addonBefore,q=X.addonAfter,ce=X.className,k=X.style,ot=X.disabled,Le=X.readOnly,xe=X.focused,Re=X.triggerFocus,ve=X.allowClear,ke=X.value,fe=X.handleReset,ye=X.hidden,at=X.classes,rt=X.classNames,nt=X.dataAttrs,ut=X.styles,Nt=X.components,zt=(Nt==null?void 0:Nt.affixWrapper)||"span",Ht=(Nt==null?void 0:Nt.groupWrapper)||"span",cr=(Nt==null?void 0:Nt.wrapper)||"span",or=(Nt==null?void 0:Nt.groupAddon)||"span",yr=(0,B.useRef)(null),dr=function(Ee){var me;(me=yr.current)!==null&&me!==void 0&&me.contains(Ee.target)&&(Re==null||Re())},$=function(){var Ee;if(!ve)return null;var me=!ot&&!Le&&ke,qe="".concat(he,"-clear-icon"),_t=(0,Te.Z)(ve)==="object"&&ve!==null&&ve!==void 0&&ve.clearIcon?ve.clearIcon:"\u2716";return B.createElement("span",{onClick:fe,onMouseDown:function(st){return st.preventDefault()},className:G()(qe,(Ee={},(0,Q.Z)(Ee,"".concat(qe,"-hidden"),!me),(0,Q.Z)(Ee,"".concat(qe,"-has-suffix"),!!Ce),Ee)),role:"button",tabIndex:-1},_t)},Xe=(0,B.cloneElement)(le,{value:ke,hidden:ye,className:G()((W=le.props)===null||W===void 0?void 0:W.className,!(0,f.X3)(X)&&!(0,f.He)(X)&&ce)||null,style:(0,ue.Z)((0,ue.Z)({},(j=le.props)===null||j===void 0?void 0:j.style),!(0,f.X3)(X)&&!(0,f.He)(X)?k:{})});if((0,f.X3)(X)){var L,p="".concat(he,"-affix-wrapper"),u=G()(p,(L={},(0,Q.Z)(L,"".concat(p,"-disabled"),ot),(0,Q.Z)(L,"".concat(p,"-focused"),xe),(0,Q.Z)(L,"".concat(p,"-readonly"),Le),(0,Q.Z)(L,"".concat(p,"-input-with-clear-btn"),Ce&&ve&&ke),L),!(0,f.He)(X)&&ce,at==null?void 0:at.affixWrapper,rt==null?void 0:rt.affixWrapper),w=(Ce||ve)&&B.createElement("span",{className:G()("".concat(he,"-suffix"),rt==null?void 0:rt.suffix),style:ut==null?void 0:ut.suffix},$(),Ce);Xe=B.createElement(zt,(0,ge.Z)({className:u,style:(0,ue.Z)((0,ue.Z)({},(0,f.He)(X)?void 0:k),ut==null?void 0:ut.affixWrapper),hidden:!(0,f.He)(X)&&ye,onClick:dr},nt==null?void 0:nt.affixWrapper,{ref:yr}),Ne&&B.createElement("span",{className:G()("".concat(he,"-prefix"),rt==null?void 0:rt.prefix),style:ut==null?void 0:ut.prefix},Ne),(0,B.cloneElement)(le,{value:ke,hidden:null}),w)}if((0,f.He)(X)){var ee="".concat(he,"-group"),Be="".concat(ee,"-addon"),T=G()("".concat(he,"-wrapper"),ee,at==null?void 0:at.wrapper),ae=G()("".concat(he,"-group-wrapper"),ce,at==null?void 0:at.group);return B.createElement(Ht,{className:ae,style:k,hidden:ye},B.createElement(cr,{className:T},je&&B.createElement(or,{className:Be},je),(0,B.cloneElement)(Xe,{hidden:null}),q&&B.createElement(or,{className:Be},q)))}return Xe},h=E,Z=x(26407),S=x(33606),_=x(37061),N=x(18929),R=x(2738),I=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Y=(0,B.forwardRef)(function(te,X){var W=te.autoComplete,j=te.onChange,le=te.onFocus,he=te.onBlur,Ne=te.onPressEnter,Ce=te.onKeyDown,je=te.prefixCls,q=je===void 0?"rc-input":je,ce=te.disabled,k=te.htmlSize,ot=te.className,Le=te.maxLength,xe=te.suffix,Re=te.showCount,ve=te.type,ke=ve===void 0?"text":ve,fe=te.classes,ye=te.classNames,at=te.styles,rt=(0,_.Z)(te,I),nt=(0,N.Z)(te.defaultValue,{value:te.value}),ut=(0,S.Z)(nt,2),Nt=ut[0],zt=ut[1],Ht=(0,B.useState)(!1),cr=(0,S.Z)(Ht,2),or=cr[0],yr=cr[1],dr=(0,B.useRef)(null),$=function(ae){dr.current&&(0,f.nH)(dr.current,ae)};(0,B.useImperativeHandle)(X,function(){return{focus:$,blur:function(){var ae;(ae=dr.current)===null||ae===void 0||ae.blur()},setSelectionRange:function(ae,Ge,Ee){var me;(me=dr.current)===null||me===void 0||me.setSelectionRange(ae,Ge,Ee)},select:function(){var ae;(ae=dr.current)===null||ae===void 0||ae.select()},input:dr.current}}),(0,B.useEffect)(function(){yr(function(T){return T&&ce?!1:T})},[ce]);var Xe=function(ae){te.value===void 0&&zt(ae.target.value),dr.current&&(0,f.rJ)(dr.current,ae,j)},L=function(ae){Ne&&ae.key==="Enter"&&Ne(ae),Ce==null||Ce(ae)},p=function(ae){yr(!0),le==null||le(ae)},u=function(ae){yr(!1),he==null||he(ae)},w=function(ae){zt(""),$(),dr.current&&(0,f.rJ)(dr.current,ae,j)},ee=function(){var ae=(0,R.Z)(te,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return B.createElement("input",(0,ge.Z)({autoComplete:W},ae,{onChange:Xe,onFocus:p,onBlur:u,onKeyDown:L,className:G()(q,(0,Q.Z)({},"".concat(q,"-disabled"),ce),ye==null?void 0:ye.input),style:at==null?void 0:at.input,ref:dr,size:k,type:ke}))},Be=function(){var ae=Number(Le)>0;if(xe||Re){var Ge=(0,f.D7)(Nt),Ee=(0,Z.Z)(Ge).length,me=(0,Te.Z)(Re)==="object"?Re.formatter({value:Ge,count:Ee,maxLength:Le}):"".concat(Ee).concat(ae?" / ".concat(Le):"");return B.createElement(B.Fragment,null,!!Re&&B.createElement("span",{className:G()("".concat(q,"-show-count-suffix"),(0,Q.Z)({},"".concat(q,"-show-count-has-suffix"),!!xe),ye==null?void 0:ye.count),style:(0,ue.Z)({},at==null?void 0:at.count)},me),xe)}return null};return B.createElement(h,(0,ge.Z)({},rt,{prefixCls:q,className:ot,inputElement:ee(),handleReset:w,value:(0,f.D7)(Nt),focused:or,triggerFocus:$,suffix:Be(),disabled:ce,classes:fe,classNames:ye,styles:at}))}),K=Y,se=K},5643:function(xn,er,x){"use strict";x.d(er,{D7:function(){return ne},He:function(){return ge},X3:function(){return ue},nH:function(){return Te},rJ:function(){return Q}});function ge(G){return!!(G.addonBefore||G.addonAfter)}function ue(G){return!!(G.prefix||G.suffix||G.allowClear)}function Q(G,B,f,E){if(f){var h=B;if(B.type==="click"){var Z=G.cloneNode(!0);h=Object.create(B,{target:{value:Z},currentTarget:{value:Z}}),Z.value="",f(h);return}if(E!==void 0){h=Object.create(B,{target:{value:G},currentTarget:{value:G}}),G.value=E,f(h);return}f(h)}}function Te(G,B){if(G){G.focus(B);var f=B||{},E=f.cursor;if(E){var h=G.value.length;switch(E){case"start":G.setSelectionRange(0,0);break;case"end":G.setSelectionRange(h,h);break;default:G.setSelectionRange(0,h)}}}}function ne(G){return typeof G=="undefined"||G===null?"":String(G)}},15285:function(xn,er,x){"use strict";x.d(er,{iz:function(){return $r},ck:function(){return en},BW:function(){return An},sN:function(){return en},Wd:function(){return Qt},ZP:function(){return an},Xl:function(){return Ce}});var ge=x(92413),ue=x(400),Q=x(33708),Te=x(26407),ne=x(33606),G=x(37061),B=x(92310),f=x.n(B),E=x(11780),h=x(18929),Z=x(13697),S=x(48736),_=x(59301),N=x(4676),R=_.createContext(null);function I(jt,Wt){return jt===void 0?null:"".concat(jt,"-").concat(Wt)}function Y(jt){var Wt=_.useContext(R);return I(Wt,jt)}var K=x(80547),se=["children","locked"],te=_.createContext(null);function X(jt,Wt){var nr=(0,Q.Z)({},jt);return Object.keys(Wt).forEach(function(qt){var Xt=Wt[qt];Xt!==void 0&&(nr[qt]=Xt)}),nr}function W(jt){var Wt=jt.children,nr=jt.locked,qt=(0,G.Z)(jt,se),Xt=_.useContext(te),Nr=(0,K.Z)(function(){return X(Xt,qt)},[Xt,qt],function(Lr,Jr){return!nr&&(Lr[0]!==Jr[0]||!(0,Z.Z)(Lr[1],Jr[1],!0))});return _.createElement(te.Provider,{value:Nr},Wt)}var j=[],le=_.createContext(null);function he(){return _.useContext(le)}var Ne=_.createContext(j);function Ce(jt){var Wt=_.useContext(Ne);return _.useMemo(function(){return jt!==void 0?[].concat((0,Te.Z)(Wt),[jt]):Wt},[Wt,jt])}var je=_.createContext(null),q=_.createContext({}),ce=q,k=x(29194);function ot(jt){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,k.Z)(jt)){var nr=jt.nodeName.toLowerCase(),qt=["input","select","textarea","button"].includes(nr)||jt.isContentEditable||nr==="a"&&!!jt.getAttribute("href"),Xt=jt.getAttribute("tabindex"),Nr=Number(Xt),Lr=null;return Xt&&!Number.isNaN(Nr)?Lr=Nr:qt&&Lr===null&&(Lr=0),qt&&jt.disabled&&(Lr=null),Lr!==null&&(Lr>=0||Wt&&Lr<0)}return!1}function Le(jt){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nr=(0,Te.Z)(jt.querySelectorAll("*")).filter(function(qt){return ot(qt,Wt)});return ot(jt,Wt)&&nr.unshift(jt),nr}var xe=null;function Re(){xe=document.activeElement}function ve(){xe=null}function ke(){if(xe)try{xe.focus()}catch(jt){}}function fe(jt,Wt){if(Wt.keyCode===9){var nr=Le(jt),qt=nr[Wt.shiftKey?0:nr.length-1],Xt=qt===document.activeElement||jt===document.activeElement;if(Xt){var Nr=nr[Wt.shiftKey?nr.length-1:0];Nr.focus(),Wt.preventDefault()}}}var ye=x(10228),at=x(16089),rt=ye.Z.LEFT,nt=ye.Z.RIGHT,ut=ye.Z.UP,Nt=ye.Z.DOWN,zt=ye.Z.ENTER,Ht=ye.Z.ESC,cr=ye.Z.HOME,or=ye.Z.END,yr=[ut,Nt,rt,nt];function dr(jt,Wt,nr,qt){var Xt,Nr,Lr,Jr,_n="prev",Dn="next",Ai="children",Yn="parent";if(jt==="inline"&&qt===zt)return{inlineTrigger:!0};var ki=(Xt={},(0,ue.Z)(Xt,ut,_n),(0,ue.Z)(Xt,Nt,Dn),Xt),qn=(Nr={},(0,ue.Z)(Nr,rt,nr?Dn:_n),(0,ue.Z)(Nr,nt,nr?_n:Dn),(0,ue.Z)(Nr,Nt,Ai),(0,ue.Z)(Nr,zt,Ai),Nr),Nn=(Lr={},(0,ue.Z)(Lr,ut,_n),(0,ue.Z)(Lr,Nt,Dn),(0,ue.Z)(Lr,zt,Ai),(0,ue.Z)(Lr,Ht,Yn),(0,ue.Z)(Lr,rt,nr?Ai:Yn),(0,ue.Z)(Lr,nt,nr?Yn:Ai),Lr),ln={inline:ki,horizontal:qn,vertical:Nn,inlineSub:ki,horizontalSub:Nn,verticalSub:Nn},wi=(Jr=ln["".concat(jt).concat(Wt?"":"Sub")])===null||Jr===void 0?void 0:Jr[qt];switch(wi){case _n:return{offset:-1,sibling:!0};case Dn:return{offset:1,sibling:!0};case Yn:return{offset:-1,sibling:!1};case Ai:return{offset:1,sibling:!1};default:return null}}function $(jt){for(var Wt=jt;Wt;){if(Wt.getAttribute("data-menu-list"))return Wt;Wt=Wt.parentElement}return null}function Xe(jt,Wt){for(var nr=jt||document.activeElement;nr;){if(Wt.has(nr))return nr;nr=nr.parentElement}return null}function L(jt,Wt){var nr=Le(jt,!0);return nr.filter(function(qt){return Wt.has(qt)})}function p(jt,Wt,nr){var qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!jt)return null;var Xt=L(jt,Wt),Nr=Xt.length,Lr=Xt.findIndex(function(Jr){return nr===Jr});return qt<0?Lr===-1?Lr=Nr-1:Lr-=1:qt>0&&(Lr+=1),Lr=(Lr+Nr)%Nr,Xt[Lr]}var u=function(Wt,nr){var qt=new Set,Xt=new Map,Nr=new Map;return Wt.forEach(function(Lr){var Jr=document.querySelector("[data-menu-id='".concat(I(nr,Lr),"']"));Jr&&(qt.add(Jr),Nr.set(Jr,Lr),Xt.set(Lr,Jr))}),{elements:qt,key2element:Xt,element2key:Nr}};function w(jt,Wt,nr,qt,Xt,Nr,Lr,Jr,_n,Dn){var Ai=_.useRef(),Yn=_.useRef();Yn.current=Wt;var ki=function(){at.Z.cancel(Ai.current)};return _.useEffect(function(){return function(){ki()}},[]),function(qn){var Nn=qn.which;if([].concat(yr,[zt,Ht,cr,or]).includes(Nn)){var ln=Nr(),wi=u(ln,qt),Mn=wi,ni=Mn.elements,Si=Mn.key2element,Mi=Mn.element2key,Wn=Si.get(Wt),Pi=Xe(Wn,ni),Ji=Mi.get(Pi),si=dr(jt,Lr(Ji,!0).length===1,nr,Nn);if(!si&&Nn!==cr&&Nn!==or)return;(yr.includes(Nn)||[cr,or].includes(Nn))&&qn.preventDefault();var dn=function(ta){if(ta){var ja=ta,io=ta.querySelector("a");io!=null&&io.getAttribute("href")&&(ja=io);var jn=Mi.get(ta);Jr(jn),ki(),Ai.current=(0,at.Z)(function(){Yn.current===jn&&ja.focus()})}};if([cr,or].includes(Nn)||si.sibling||!Pi){var rn;!Pi||jt==="inline"?rn=Xt.current:rn=$(Pi);var Ln,wn=L(rn,ni);Nn===cr?Ln=wn[0]:Nn===or?Ln=wn[wn.length-1]:Ln=p(rn,ni,Pi,si.offset),dn(Ln)}else if(si.inlineTrigger)_n(Ji);else if(si.offset>0)_n(Ji,!0),ki(),Ai.current=(0,at.Z)(function(){wi=u(ln,qt);var la=Pi.getAttribute("aria-controls"),ta=document.getElementById(la),ja=p(ta,wi.elements);dn(ja)},5);else if(si.offset<0){var Kn=Lr(Ji,!0),ui=Kn[Kn.length-2],Fi=Si.get(ui);_n(ui,!1),dn(Fi)}}Dn==null||Dn(qn)}}function ee(jt){Promise.resolve().then(jt)}var Be="__RC_UTIL_PATH_SPLIT__",T=function(Wt){return Wt.join(Be)},ae=function(Wt){return Wt.split(Be)},Ge="rc-menu-more";function Ee(){var jt=_.useState({}),Wt=(0,ne.Z)(jt,2),nr=Wt[1],qt=(0,_.useRef)(new Map),Xt=(0,_.useRef)(new Map),Nr=_.useState([]),Lr=(0,ne.Z)(Nr,2),Jr=Lr[0],_n=Lr[1],Dn=(0,_.useRef)(0),Ai=(0,_.useRef)(!1),Yn=function(){Ai.current||nr({})},ki=(0,_.useCallback)(function(Si,Mi){var Wn=T(Mi);Xt.current.set(Wn,Si),qt.current.set(Si,Wn),Dn.current+=1;var Pi=Dn.current;ee(function(){Pi===Dn.current&&Yn()})},[]),qn=(0,_.useCallback)(function(Si,Mi){var Wn=T(Mi);Xt.current.delete(Wn),qt.current.delete(Si)},[]),Nn=(0,_.useCallback)(function(Si){_n(Si)},[]),ln=(0,_.useCallback)(function(Si,Mi){var Wn=qt.current.get(Si)||"",Pi=ae(Wn);return Mi&&Jr.includes(Pi[0])&&Pi.unshift(Ge),Pi},[Jr]),wi=(0,_.useCallback)(function(Si,Mi){return Si.some(function(Wn){var Pi=ln(Wn,!0);return Pi.includes(Mi)})},[ln]),Mn=function(){var Mi=(0,Te.Z)(qt.current.keys());return Jr.length&&Mi.push(Ge),Mi},ni=(0,_.useCallback)(function(Si){var Mi="".concat(qt.current.get(Si)).concat(Be),Wn=new Set;return(0,Te.Z)(Xt.current.keys()).forEach(function(Pi){Pi.startsWith(Mi)&&Wn.add(Xt.current.get(Pi))}),Wn},[]);return _.useEffect(function(){return function(){Ai.current=!0}},[]),{registerPath:ki,unregisterPath:qn,refreshOverflowKeys:Nn,isSubPathKey:wi,getKeyPath:ln,getKeys:Mn,getSubPathKeys:ni}}function me(jt){var Wt=_.useRef(jt);Wt.current=jt;var nr=_.useCallback(function(){for(var qt,Xt=arguments.length,Nr=new Array(Xt),Lr=0;Lr<Xt;Lr++)Nr[Lr]=arguments[Lr];return(qt=Wt.current)===null||qt===void 0?void 0:qt.call.apply(qt,[Wt].concat(Nr))},[]);return jt?nr:void 0}var qe=Math.random().toFixed(5).toString().slice(2),_t=0;function pe(jt){var Wt=(0,h.Z)(jt,{value:jt}),nr=(0,ne.Z)(Wt,2),qt=nr[0],Xt=nr[1];return _.useEffect(function(){_t+=1;var Nr="".concat(qe,"-").concat(_t);Xt("rc-menu-uuid-".concat(Nr))},[]),qt}var st=x(6909),At=x(4771),Pe=x(9427),Ie=x(25440),vt=x(2738),Ut=x(8654);function Rt(jt,Wt,nr,qt){var Xt=_.useContext(te),Nr=Xt.activeKey,Lr=Xt.onActive,Jr=Xt.onInactive,_n={active:Nr===jt};return Wt||(_n.onMouseEnter=function(Dn){nr==null||nr({key:jt,domEvent:Dn}),Lr(jt)},_n.onMouseLeave=function(Dn){qt==null||qt({key:jt,domEvent:Dn}),Jr(jt)}),_n}function hr(jt){var Wt=_.useContext(te),nr=Wt.mode,qt=Wt.rtl,Xt=Wt.inlineIndent;if(nr!=="inline")return null;var Nr=jt;return qt?{paddingRight:Nr*Xt}:{paddingLeft:Nr*Xt}}function br(jt){var Wt=jt.icon,nr=jt.props,qt=jt.children,Xt;return Wt===null||Wt===!1?null:(typeof Wt=="function"?Xt=_.createElement(Wt,(0,Q.Z)({},nr)):typeof Wt!="boolean"&&(Xt=Wt),Xt||qt||null)}var Mr=["item"];function Ur(jt){var Wt=jt.item,nr=(0,G.Z)(jt,Mr);return Object.defineProperty(nr,"item",{get:function(){return(0,S.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Wt}}),nr}var Qr=["title","attribute","elementRef"],rr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ar=["active"],jr=function(jt){(0,Pe.Z)(nr,jt);var Wt=(0,Ie.Z)(nr);function nr(){return(0,st.Z)(this,nr),Wt.apply(this,arguments)}return(0,At.Z)(nr,[{key:"render",value:function(){var Xt=this.props,Nr=Xt.title,Lr=Xt.attribute,Jr=Xt.elementRef,_n=(0,G.Z)(Xt,Qr),Dn=(0,vt.Z)(_n,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,S.ZP)(!Lr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(E.Z.Item,(0,ge.Z)({},Lr,{title:typeof Nr=="string"?Nr:void 0},Dn,{ref:Jr}))}}]),nr}(_.Component),cn=_.forwardRef(function(jt,Wt){var nr,qt=jt.style,Xt=jt.className,Nr=jt.eventKey,Lr=jt.warnKey,Jr=jt.disabled,_n=jt.itemIcon,Dn=jt.children,Ai=jt.role,Yn=jt.onMouseEnter,ki=jt.onMouseLeave,qn=jt.onClick,Nn=jt.onKeyDown,ln=jt.onFocus,wi=(0,G.Z)(jt,rr),Mn=Y(Nr),ni=_.useContext(te),Si=ni.prefixCls,Mi=ni.onItemClick,Wn=ni.disabled,Pi=ni.overflowDisabled,Ji=ni.itemIcon,si=ni.selectedKeys,dn=ni.onActive,rn=_.useContext(ce),Ln=rn._internalRenderMenuItem,wn="".concat(Si,"-item"),Kn=_.useRef(),ui=_.useRef(),Fi=Wn||Jr,la=(0,Ut.x1)(Wt,ui),ta=Ce(Nr),ja=function(Ca){return{key:Nr,keyPath:(0,Te.Z)(ta).reverse(),item:Kn.current,domEvent:Ca}},io=_n||Ji,jn=Rt(Nr,Fi,Yn,ki),Zn=jn.active,ri=(0,G.Z)(jn,Ar),ra=si.includes(Nr),La=hr(ta.length),ca=function(Ca){if(!Fi){var mi=ja(Ca);qn==null||qn(Ur(mi)),Mi(mi)}},Hi=function(Ca){if(Nn==null||Nn(Ca),Ca.which===ye.Z.ENTER){var mi=ja(Ca);qn==null||qn(Ur(mi)),Mi(mi)}},za=function(Ca){dn(Nr),ln==null||ln(Ca)},ka={};jt.role==="option"&&(ka["aria-selected"]=ra);var co=_.createElement(jr,(0,ge.Z)({ref:Kn,elementRef:la,role:Ai===null?"none":Ai||"menuitem",tabIndex:Jr?null:-1,"data-menu-id":Pi&&Mn?null:Mn},wi,ri,ka,{component:"li","aria-disabled":Jr,style:(0,Q.Z)((0,Q.Z)({},La),qt),className:f()(wn,(nr={},(0,ue.Z)(nr,"".concat(wn,"-active"),Zn),(0,ue.Z)(nr,"".concat(wn,"-selected"),ra),(0,ue.Z)(nr,"".concat(wn,"-disabled"),Fi),nr),Xt),onClick:ca,onKeyDown:Hi,onFocus:za}),Dn,_.createElement(br,{props:(0,Q.Z)((0,Q.Z)({},jt),{},{isSelected:ra}),icon:io}));return Ln&&(co=Ln(co,jt,{selected:ra})),co});function Tn(jt,Wt){var nr=jt.eventKey,qt=he(),Xt=Ce(nr);return _.useEffect(function(){if(qt)return qt.registerPath(nr,Xt),function(){qt.unregisterPath(nr,Xt)}},[Xt]),qt?null:_.createElement(cn,(0,ge.Z)({},jt,{ref:Wt}))}var en=_.forwardRef(Tn),Qn=["className","children"],li=function(Wt,nr){var qt=Wt.className,Xt=Wt.children,Nr=(0,G.Z)(Wt,Qn),Lr=_.useContext(te),Jr=Lr.prefixCls,_n=Lr.mode,Dn=Lr.rtl;return _.createElement("ul",(0,ge.Z)({className:f()(Jr,Dn&&"".concat(Jr,"-rtl"),"".concat(Jr,"-sub"),"".concat(Jr,"-").concat(_n==="inline"?"inline":"vertical"),qt),role:"menu"},Nr,{"data-menu-list":!0,ref:nr}),Xt)},Pr=_.forwardRef(li);Pr.displayName="SubMenuList";var ti=Pr,yi=x(11592);function ci(jt,Wt){return(0,yi.Z)(jt).map(function(nr,qt){if(_.isValidElement(nr)){var Xt,Nr,Lr=nr.key,Jr=(Xt=(Nr=nr.props)===null||Nr===void 0?void 0:Nr.eventKey)!==null&&Xt!==void 0?Xt:Lr,_n=Jr==null;_n&&(Jr="tmp_key-".concat([].concat((0,Te.Z)(Wt),[qt]).join("-")));var Dn={key:Jr,eventKey:Jr};return _.cloneElement(nr,Dn)}return nr})}var Ci=x(35593),hi={adjustX:1,adjustY:1},Ri={topLeft:{points:["bl","tl"],overflow:hi},topRight:{points:["br","tr"],overflow:hi},bottomLeft:{points:["tl","bl"],overflow:hi},bottomRight:{points:["tr","br"],overflow:hi},leftTop:{points:["tr","tl"],overflow:hi},leftBottom:{points:["br","bl"],overflow:hi},rightTop:{points:["tl","tr"],overflow:hi},rightBottom:{points:["bl","br"],overflow:hi}},ba={topLeft:{points:["bl","tl"],overflow:hi},topRight:{points:["br","tr"],overflow:hi},bottomLeft:{points:["tl","bl"],overflow:hi},bottomRight:{points:["tr","br"],overflow:hi},rightTop:{points:["tr","tl"],overflow:hi},rightBottom:{points:["br","bl"],overflow:hi},leftTop:{points:["tl","tr"],overflow:hi},leftBottom:{points:["bl","br"],overflow:hi}},Xi=null;function _i(jt,Wt,nr){if(Wt)return Wt;if(nr)return nr[jt]||nr.other}var oi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Qi(jt){var Wt=jt.prefixCls,nr=jt.visible,qt=jt.children,Xt=jt.popup,Nr=jt.popupStyle,Lr=jt.popupClassName,Jr=jt.popupOffset,_n=jt.disabled,Dn=jt.mode,Ai=jt.onVisibleChange,Yn=_.useContext(te),ki=Yn.getPopupContainer,qn=Yn.rtl,Nn=Yn.subMenuOpenDelay,ln=Yn.subMenuCloseDelay,wi=Yn.builtinPlacements,Mn=Yn.triggerSubMenuAction,ni=Yn.forceSubMenuRender,Si=Yn.rootClassName,Mi=Yn.motion,Wn=Yn.defaultMotions,Pi=_.useState(!1),Ji=(0,ne.Z)(Pi,2),si=Ji[0],dn=Ji[1],rn=qn?(0,Q.Z)((0,Q.Z)({},ba),wi):(0,Q.Z)((0,Q.Z)({},Ri),wi),Ln=oi[Dn],wn=_i(Dn,Mi,Wn),Kn=_.useRef(wn);Dn!=="inline"&&(Kn.current=wn);var ui=(0,Q.Z)((0,Q.Z)({},Kn.current),{},{leavedClassName:"".concat(Wt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Fi=_.useRef();return _.useEffect(function(){return Fi.current=(0,at.Z)(function(){dn(nr)}),function(){at.Z.cancel(Fi.current)}},[nr]),_.createElement(Ci.Z,{prefixCls:Wt,popupClassName:f()("".concat(Wt,"-popup"),(0,ue.Z)({},"".concat(Wt,"-rtl"),qn),Lr,Si),stretch:Dn==="horizontal"?"minWidth":null,getPopupContainer:ki,builtinPlacements:rn,popupPlacement:Ln,popupVisible:si,popup:Xt,popupStyle:Nr,popupAlign:Jr&&{offset:Jr},action:_n?[]:[Mn],mouseEnterDelay:Nn,mouseLeaveDelay:ln,onPopupVisibleChange:Ai,forceRender:ni,popupMotion:ui,fresh:!0},qt)}var be=x(77900);function Ue(jt){var Wt=jt.id,nr=jt.open,qt=jt.keyPath,Xt=jt.children,Nr="inline",Lr=_.useContext(te),Jr=Lr.prefixCls,_n=Lr.forceSubMenuRender,Dn=Lr.motion,Ai=Lr.defaultMotions,Yn=Lr.mode,ki=_.useRef(!1);ki.current=Yn===Nr;var qn=_.useState(!ki.current),Nn=(0,ne.Z)(qn,2),ln=Nn[0],wi=Nn[1],Mn=ki.current?nr:!1;_.useEffect(function(){ki.current&&wi(!1)},[Yn]);var ni=(0,Q.Z)({},_i(Nr,Dn,Ai));qt.length>1&&(ni.motionAppear=!1);var Si=ni.onVisibleChanged;return ni.onVisibleChanged=function(Mi){return!ki.current&&!Mi&&wi(!0),Si==null?void 0:Si(Mi)},ln?null:_.createElement(W,{mode:Nr,locked:!ki.current},_.createElement(be.default,(0,ge.Z)({visible:Mn},ni,{forceRender:_n,removeOnLeave:!1,leavedClassName:"".concat(Jr,"-hidden")}),function(Mi){var Wn=Mi.className,Pi=Mi.style;return _.createElement(ti,{id:Wt,className:Wn,style:Pi},Xt)}))}var Me=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lt=["active"],Zt=function(Wt){var nr,qt=Wt.style,Xt=Wt.className,Nr=Wt.title,Lr=Wt.eventKey,Jr=Wt.warnKey,_n=Wt.disabled,Dn=Wt.internalPopupClose,Ai=Wt.children,Yn=Wt.itemIcon,ki=Wt.expandIcon,qn=Wt.popupClassName,Nn=Wt.popupOffset,ln=Wt.popupStyle,wi=Wt.onClick,Mn=Wt.onMouseEnter,ni=Wt.onMouseLeave,Si=Wt.onTitleClick,Mi=Wt.onTitleMouseEnter,Wn=Wt.onTitleMouseLeave,Pi=(0,G.Z)(Wt,Me),Ji=Y(Lr),si=_.useContext(te),dn=si.prefixCls,rn=si.mode,Ln=si.openKeys,wn=si.disabled,Kn=si.overflowDisabled,ui=si.activeKey,Fi=si.selectedKeys,la=si.itemIcon,ta=si.expandIcon,ja=si.onItemClick,io=si.onOpenChange,jn=si.onActive,Zn=_.useContext(ce),ri=Zn._internalRenderSubMenuItem,ra=_.useContext(je),La=ra.isSubPathKey,ca=Ce(),Hi="".concat(dn,"-submenu"),za=wn||_n,ka=_.useRef(),co=_.useRef(),Ya=Yn!=null?Yn:la,Ca=ki!=null?ki:ta,mi=Ln.includes(Lr),Aa=!Kn&&mi,Oo=La(Fi,Lr),mo=Rt(Lr,za,Mi,Wn),qa=mo.active,Ni=(0,G.Z)(mo,lt),To=_.useState(!1),go=(0,ne.Z)(To,2),el=go[0],Wo=go[1],Rs=function(_o){za||Wo(_o)},Go=function(_o){Rs(!0),Mn==null||Mn({key:Lr,domEvent:_o})},xl=function(_o){Rs(!1),ni==null||ni({key:Lr,domEvent:_o})},$a=_.useMemo(function(){return qa||(rn!=="inline"?el||La([ui],Lr):!1)},[rn,qa,ui,el,Lr,La]),Qa=hr(ca.length),Sa=function(_o){za||(Si==null||Si({key:Lr,domEvent:_o}),rn==="inline"&&io(Lr,!mi))},Qs=me(function(Io){wi==null||wi(Ur(Io)),ja(Io)}),Bi=function(_o){rn!=="inline"&&io(Lr,_o)},Vi=function(){jn(Lr)},Oi=Ji&&"".concat(Ji,"-popup"),Wi=_.createElement("div",(0,ge.Z)({role:"menuitem",style:Qa,className:"".concat(Hi,"-title"),tabIndex:za?null:-1,ref:ka,title:typeof Nr=="string"?Nr:null,"data-menu-id":Kn&&Ji?null:Ji,"aria-expanded":Aa,"aria-haspopup":!0,"aria-controls":Oi,"aria-disabled":za,onClick:Sa,onFocus:Vi},Ni),Nr,_.createElement(br,{icon:rn!=="horizontal"?Ca:void 0,props:(0,Q.Z)((0,Q.Z)({},Wt),{},{isOpen:Aa,isSubMenu:!0})},_.createElement("i",{className:"".concat(Hi,"-arrow")}))),ua=_.useRef(rn);if(rn!=="inline"&&ca.length>1?ua.current="vertical":ua.current=rn,!Kn){var _a=ua.current;Wi=_.createElement(Qi,{mode:_a,prefixCls:Hi,visible:!Dn&&Aa&&rn!=="inline",popupClassName:qn,popupOffset:Nn,popupStyle:ln,popup:_.createElement(W,{mode:_a==="horizontal"?"vertical":_a},_.createElement(ti,{id:Oi,ref:co},Ai)),disabled:za,onVisibleChange:Bi},Wi)}var Xo=_.createElement(E.Z.Item,(0,ge.Z)({role:"none"},Pi,{component:"li",style:qt,className:f()(Hi,"".concat(Hi,"-").concat(rn),Xt,(nr={},(0,ue.Z)(nr,"".concat(Hi,"-open"),Aa),(0,ue.Z)(nr,"".concat(Hi,"-active"),$a),(0,ue.Z)(nr,"".concat(Hi,"-selected"),Oo),(0,ue.Z)(nr,"".concat(Hi,"-disabled"),za),nr)),onMouseEnter:Go,onMouseLeave:xl}),Wi,!Kn&&_.createElement(Ue,{id:Oi,open:Aa,keyPath:ca},Ai));return ri&&(Xo=ri(Xo,Wt,{selected:Oo,active:$a,open:Aa,disabled:za})),_.createElement(W,{onItemClick:Qs,mode:rn==="horizontal"?"vertical":rn,itemIcon:Ya,expandIcon:Ca},Xo)};function Qt(jt){var Wt=jt.eventKey,nr=jt.children,qt=Ce(Wt),Xt=ci(nr,qt),Nr=he();_.useEffect(function(){if(Nr)return Nr.registerPath(Wt,qt),function(){Nr.unregisterPath(Wt,qt)}},[qt]);var Lr;return Nr?Lr=Xt:Lr=_.createElement(Zt,jt,Xt),_.createElement(Ne.Provider,{value:qt},Lr)}var Sr=x(39559),fr=["className","title","eventKey","children"],Tr=["children"],Wr=function(Wt){var nr=Wt.className,qt=Wt.title,Xt=Wt.eventKey,Nr=Wt.children,Lr=(0,G.Z)(Wt,fr),Jr=_.useContext(te),_n=Jr.prefixCls,Dn="".concat(_n,"-item-group");return _.createElement("li",(0,ge.Z)({role:"presentation"},Lr,{onClick:function(Yn){return Yn.stopPropagation()},className:f()(Dn,nr)}),_.createElement("div",{role:"presentation",className:"".concat(Dn,"-title"),title:typeof qt=="string"?qt:void 0},qt),_.createElement("ul",{role:"group",className:"".concat(Dn,"-list")},Nr))};function An(jt){var Wt=jt.children,nr=(0,G.Z)(jt,Tr),qt=Ce(nr.eventKey),Xt=ci(Wt,qt),Nr=he();return Nr?Xt:_.createElement(Wr,(0,vt.Z)(nr,["warnKey"]),Xt)}function $r(jt){var Wt=jt.className,nr=jt.style,qt=_.useContext(te),Xt=qt.prefixCls,Nr=he();return Nr?null:_.createElement("li",{role:"separator",className:f()("".concat(Xt,"-item-divider"),Wt),style:nr})}var Rr=["label","children","key","type"];function qr(jt){return(jt||[]).map(function(Wt,nr){if(Wt&&(0,Sr.Z)(Wt)==="object"){var qt=Wt,Xt=qt.label,Nr=qt.children,Lr=qt.key,Jr=qt.type,_n=(0,G.Z)(qt,Rr),Dn=Lr!=null?Lr:"tmp-".concat(nr);return Nr||Jr==="group"?Jr==="group"?_.createElement(An,(0,ge.Z)({key:Dn},_n,{title:Xt}),qr(Nr)):_.createElement(Qt,(0,ge.Z)({key:Dn},_n,{title:Xt}),qr(Nr)):Jr==="divider"?_.createElement($r,(0,ge.Z)({key:Dn},_n)):_.createElement(en,(0,ge.Z)({key:Dn},_n),Xt)}return null}).filter(function(Wt){return Wt})}function mn(jt,Wt,nr){var qt=jt;return Wt&&(qt=qr(Wt)),ci(qt,nr)}var sn=["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"],Sn=[],Hn=_.forwardRef(function(jt,Wt){var nr,qt,Xt=jt,Nr=Xt.prefixCls,Lr=Nr===void 0?"rc-menu":Nr,Jr=Xt.rootClassName,_n=Xt.style,Dn=Xt.className,Ai=Xt.tabIndex,Yn=Ai===void 0?0:Ai,ki=Xt.items,qn=Xt.children,Nn=Xt.direction,ln=Xt.id,wi=Xt.mode,Mn=wi===void 0?"vertical":wi,ni=Xt.inlineCollapsed,Si=Xt.disabled,Mi=Xt.disabledOverflow,Wn=Xt.subMenuOpenDelay,Pi=Wn===void 0?.1:Wn,Ji=Xt.subMenuCloseDelay,si=Ji===void 0?.1:Ji,dn=Xt.forceSubMenuRender,rn=Xt.defaultOpenKeys,Ln=Xt.openKeys,wn=Xt.activeKey,Kn=Xt.defaultActiveFirst,ui=Xt.selectable,Fi=ui===void 0?!0:ui,la=Xt.multiple,ta=la===void 0?!1:la,ja=Xt.defaultSelectedKeys,io=Xt.selectedKeys,jn=Xt.onSelect,Zn=Xt.onDeselect,ri=Xt.inlineIndent,ra=ri===void 0?24:ri,La=Xt.motion,ca=Xt.defaultMotions,Hi=Xt.triggerSubMenuAction,za=Hi===void 0?"hover":Hi,ka=Xt.builtinPlacements,co=Xt.itemIcon,Ya=Xt.expandIcon,Ca=Xt.overflowedIndicator,mi=Ca===void 0?"...":Ca,Aa=Xt.overflowedIndicatorPopupClassName,Oo=Xt.getPopupContainer,mo=Xt.onClick,qa=Xt.onOpenChange,Ni=Xt.onKeyDown,To=Xt.openAnimation,go=Xt.openTransitionName,el=Xt._internalRenderMenuItem,Wo=Xt._internalRenderSubMenuItem,Rs=(0,G.Z)(Xt,sn),Go=_.useMemo(function(){return mn(qn,ki,Sn)},[qn,ki]),xl=_.useState(!1),$a=(0,ne.Z)(xl,2),Qa=$a[0],Sa=$a[1],Qs=_.useRef(),Bi=pe(ln),Vi=Nn==="rtl",Oi=(0,h.Z)(rn,{value:Ln,postState:function(yo){return yo||Sn}}),Wi=(0,ne.Z)(Oi,2),ua=Wi[0],_a=Wi[1],Xo=function(yo){var bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Yo(){_a(yo),qa==null||qa(yo)}bo?(0,N.flushSync)(Yo):Yo()},Io=_.useState(ua),_o=(0,ne.Z)(Io,2),Za=_o[0],Ba=_o[1],da=_.useRef(!1),Da=_.useMemo(function(){return(Mn==="inline"||Mn==="vertical")&&ni?["vertical",ni]:[Mn,!1]},[Mn,ni]),eo=(0,ne.Z)(Da,2),Ao=eo[0],Oa=eo[1],Fa=Ao==="inline",Mo=_.useState(Ao),kl=(0,ne.Z)(Mo,2),ds=kl[0],ll=kl[1],Uo=_.useState(Oa),Ms=(0,ne.Z)(Uo,2),Lo=Ms[0],Un=Ms[1];_.useEffect(function(){ll(Ao),Un(Oa),da.current&&(Fa?_a(Za):Xo(Sn))},[Ao,Oa]);var Dl=_.useState(0),Ro=(0,ne.Z)(Dl,2),Vl=Ro[0],Ks=Ro[1],bs=Vl>=Go.length-1||ds!=="horizontal"||Mi;_.useEffect(function(){Fa&&Ba(ua)},[ua]),_.useEffect(function(){return da.current=!0,function(){da.current=!1}},[]);var Ia=Ee(),Qo=Ia.registerPath,Wl=Ia.unregisterPath,ac=Ia.refreshOverflowKeys,cl=Ia.isSubPathKey,fa=Ia.getKeyPath,ia=Ia.getKeys,vo=Ia.getSubPathKeys,Va=_.useMemo(function(){return{registerPath:Qo,unregisterPath:Wl}},[Qo,Wl]),ao=_.useMemo(function(){return{isSubPathKey:cl}},[cl]);_.useEffect(function(){ac(bs?Sn:Go.slice(Vl+1).map(function(Pa){return Pa.key}))},[Vl,bs]);var Ko=(0,h.Z)(wn||Kn&&((nr=Go[0])===null||nr===void 0?void 0:nr.key),{value:wn}),to=(0,ne.Z)(Ko,2),Jo=to[0],Ls=to[1],Al=me(function(Pa){Ls(Pa)}),Vs=me(function(){Ls(void 0)});(0,_.useImperativeHandle)(Wt,function(){return{list:Qs.current,focus:function(yo){var bo,Yo=ia(),ks=u(Yo,Bi),Mc=ks.elements,Cl=ks.key2element,jc=ks.element2key,bA=L(Qs.current,Mc),wA=Jo!=null?Jo:bA[0]?jc.get(bA[0]):(bo=Go.find(function(Du){return!Du.props.disabled}))===null||bo===void 0?void 0:bo.key,hc=Cl.get(wA);if(wA&&hc){var pc;hc==null||(pc=hc.focus)===null||pc===void 0||pc.call(hc,yo)}}}});var tl=(0,h.Z)(ja||[],{value:io,postState:function(yo){return Array.isArray(yo)?yo:yo==null?Sn:[yo]}}),Hc=(0,ne.Z)(tl,2),Pl=Hc[0],Ws=Hc[1],tA=function(yo){if(Fi){var bo=yo.key,Yo=Pl.includes(bo),ks;ta?Yo?ks=Pl.filter(function(Cl){return Cl!==bo}):ks=[].concat((0,Te.Z)(Pl),[bo]):ks=[bo],Ws(ks);var Mc=(0,Q.Z)((0,Q.Z)({},yo),{},{selectedKeys:ks});Yo?Zn==null||Zn(Mc):jn==null||jn(Mc)}!ta&&ua.length&&ds!=="inline"&&Xo(Sn)},rA=me(function(Pa){mo==null||mo(Ur(Pa)),tA(Pa)}),fc=me(function(Pa,yo){var bo=ua.filter(function(ks){return ks!==Pa});if(yo)bo.push(Pa);else if(ds!=="inline"){var Yo=vo(Pa);bo=bo.filter(function(ks){return!Yo.has(ks)})}(0,Z.Z)(ua,bo,!0)||Xo(bo,!0)}),yA=function(yo,bo){var Yo=bo!=null?bo:!ua.includes(yo);fc(yo,Yo)},Nl=w(ds,Jo,Vi,Bi,Qs,ia,fa,Ls,yA,Ni);_.useEffect(function(){Sa(!0)},[]);var Gs=_.useMemo(function(){return{_internalRenderMenuItem:el,_internalRenderSubMenuItem:Wo}},[el,Wo]),rl=ds!=="horizontal"||Mi?Go:Go.map(function(Pa,yo){return _.createElement(W,{key:Pa.key,overflowDisabled:yo>Vl},Pa)}),nl=_.createElement(E.Z,(0,ge.Z)({id:ln,ref:Qs,prefixCls:"".concat(Lr,"-overflow"),component:"ul",itemComponent:en,className:f()(Lr,"".concat(Lr,"-root"),"".concat(Lr,"-").concat(ds),Dn,(qt={},(0,ue.Z)(qt,"".concat(Lr,"-inline-collapsed"),Lo),(0,ue.Z)(qt,"".concat(Lr,"-rtl"),Vi),qt),Jr),dir:Nn,style:_n,role:"menu",tabIndex:Yn,data:rl,renderRawItem:function(yo){return yo},renderRawRest:function(yo){var bo=yo.length,Yo=bo?Go.slice(-bo):null;return _.createElement(Qt,{eventKey:Ge,title:mi,disabled:bs,internalPopupClose:bo===0,popupClassName:Aa},Yo)},maxCount:ds!=="horizontal"||Mi?E.Z.INVALIDATE:E.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(yo){Ks(yo)},onKeyDown:Nl},Rs));return _.createElement(ce.Provider,{value:Gs},_.createElement(R.Provider,{value:Bi},_.createElement(W,{prefixCls:Lr,rootClassName:Jr,mode:ds,openKeys:ua,rtl:Vi,disabled:Si,motion:Qa?La:null,defaultMotions:Qa?ca:null,activeKey:Jo,onActive:Al,onInactive:Vs,selectedKeys:Pl,inlineIndent:ra,subMenuOpenDelay:Pi,subMenuCloseDelay:si,forceSubMenuRender:dn,builtinPlacements:ka,triggerSubMenuAction:za,getPopupContainer:Oo,itemIcon:co,expandIcon:Ya,onItemClick:rA,onOpenChange:fc},_.createElement(je.Provider,{value:ao},nl),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(le.Provider,{value:Va},Go)))))}),pi=Hn,In=pi;In.Item=en,In.SubMenu=Qt,In.ItemGroup=An,In.Divider=$r;var an=In},11780:function(xn,er,x){"use strict";x.d(er,{Z:function(){return Re}});var ge=x(92413),ue=x(33708),Q=x(33606),Te=x(37061),ne=x(59301),G=x(92310),B=x.n(G),f=x(29301),E=x(34280),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Z=void 0;function S(ve,ke){var fe=ve.prefixCls,ye=ve.invalidate,at=ve.item,rt=ve.renderItem,nt=ve.responsive,ut=ve.responsiveDisabled,Nt=ve.registerSize,zt=ve.itemKey,Ht=ve.className,cr=ve.style,or=ve.children,yr=ve.display,dr=ve.order,$=ve.component,Xe=$===void 0?"div":$,L=(0,Te.Z)(ve,h),p=nt&&!yr;function u(ae){Nt(zt,ae)}ne.useEffect(function(){return function(){u(null)}},[]);var w=rt&&at!==Z?rt(at,{index:dr}):or,ee;ye||(ee={opacity:p?0:1,height:p?0:Z,overflowY:p?"hidden":Z,order:nt?dr:Z,pointerEvents:p?"none":Z,position:p?"absolute":Z});var Be={};p&&(Be["aria-hidden"]=!0);var T=ne.createElement(Xe,(0,ge.Z)({className:B()(!ye&&fe,Ht),style:(0,ue.Z)((0,ue.Z)({},ee),cr)},Be,L,{ref:ke}),w);return nt&&(T=ne.createElement(f.Z,{onResize:function(Ge){var Ee=Ge.offsetWidth;u(Ee)},disabled:ut},T)),T}var _=ne.forwardRef(S);_.displayName="Item";var N=_,R=x(6089),I=x(4676),Y=x(16089);function K(ve){if(typeof MessageChannel=="undefined")(0,Y.Z)(ve);else{var ke=new MessageChannel;ke.port1.onmessage=function(){return ve()},ke.port2.postMessage(void 0)}}function se(){var ve=ne.useRef(null),ke=function(ye){ve.current||(ve.current=[],K(function(){(0,I.unstable_batchedUpdates)(function(){ve.current.forEach(function(at){at()}),ve.current=null})})),ve.current.push(ye)};return ke}function te(ve,ke){var fe=ne.useState(ke),ye=(0,Q.Z)(fe,2),at=ye[0],rt=ye[1],nt=(0,R.Z)(function(ut){ve(function(){rt(ut)})});return[at,nt]}var X=ne.createContext(null),W=["component"],j=["className"],le=["className"],he=function(ke,fe){var ye=ne.useContext(X);if(!ye){var at=ke.component,rt=at===void 0?"div":at,nt=(0,Te.Z)(ke,W);return ne.createElement(rt,(0,ge.Z)({},nt,{ref:fe}))}var ut=ye.className,Nt=(0,Te.Z)(ye,j),zt=ke.className,Ht=(0,Te.Z)(ke,le);return ne.createElement(X.Provider,{value:null},ne.createElement(N,(0,ge.Z)({ref:fe,className:B()(ut,zt)},Nt,Ht)))},Ne=ne.forwardRef(he);Ne.displayName="RawItem";var Ce=Ne,je=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],q="responsive",ce="invalidate";function k(ve){return"+ ".concat(ve.length," ...")}function ot(ve,ke){var fe=ve.prefixCls,ye=fe===void 0?"rc-overflow":fe,at=ve.data,rt=at===void 0?[]:at,nt=ve.renderItem,ut=ve.renderRawItem,Nt=ve.itemKey,zt=ve.itemWidth,Ht=zt===void 0?10:zt,cr=ve.ssr,or=ve.style,yr=ve.className,dr=ve.maxCount,$=ve.renderRest,Xe=ve.renderRawRest,L=ve.suffix,p=ve.component,u=p===void 0?"div":p,w=ve.itemComponent,ee=ve.onVisibleChange,Be=(0,Te.Z)(ve,je),T=cr==="full",ae=se(),Ge=te(ae,null),Ee=(0,Q.Z)(Ge,2),me=Ee[0],qe=Ee[1],_t=me||0,pe=te(ae,new Map),st=(0,Q.Z)(pe,2),At=st[0],Pe=st[1],Ie=te(ae,0),vt=(0,Q.Z)(Ie,2),Ut=vt[0],Rt=vt[1],hr=te(ae,0),br=(0,Q.Z)(hr,2),Mr=br[0],Ur=br[1],Qr=te(ae,0),rr=(0,Q.Z)(Qr,2),Ar=rr[0],jr=rr[1],cn=(0,ne.useState)(null),Tn=(0,Q.Z)(cn,2),en=Tn[0],Qn=Tn[1],li=(0,ne.useState)(null),Pr=(0,Q.Z)(li,2),ti=Pr[0],yi=Pr[1],ci=ne.useMemo(function(){return ti===null&&T?Number.MAX_SAFE_INTEGER:ti||0},[ti,me]),Ci=(0,ne.useState)(!1),hi=(0,Q.Z)(Ci,2),Ri=hi[0],ba=hi[1],Xi="".concat(ye,"-item"),_i=Math.max(Ut,Mr),oi=dr===q,Qi=rt.length&&oi,be=dr===ce,Ue=Qi||typeof dr=="number"&&rt.length>dr,Me=(0,ne.useMemo)(function(){var an=rt;return Qi?me===null&&T?an=rt:an=rt.slice(0,Math.min(rt.length,_t/Ht)):typeof dr=="number"&&(an=rt.slice(0,dr)),an},[rt,Ht,me,dr,Qi]),lt=(0,ne.useMemo)(function(){return Qi?rt.slice(ci+1):rt.slice(Me.length)},[rt,Me,Qi,ci]),Zt=(0,ne.useCallback)(function(an,jt){var Wt;return typeof Nt=="function"?Nt(an):(Wt=Nt&&(an==null?void 0:an[Nt]))!==null&&Wt!==void 0?Wt:jt},[Nt]),Qt=(0,ne.useCallback)(nt||function(an){return an},[nt]);function Sr(an,jt,Wt){ti===an&&(jt===void 0||jt===en)||(yi(an),Wt||(ba(an<rt.length-1),ee==null||ee(an)),jt!==void 0&&Qn(jt))}function fr(an,jt){qe(jt.clientWidth)}function Tr(an,jt){Pe(function(Wt){var nr=new Map(Wt);return jt===null?nr.delete(an):nr.set(an,jt),nr})}function Wr(an,jt){Ur(jt),Rt(Mr)}function An(an,jt){jr(jt)}function $r(an){return At.get(Zt(Me[an],an))}(0,E.Z)(function(){if(_t&&typeof _i=="number"&&Me){var an=Ar,jt=Me.length,Wt=jt-1;if(!jt){Sr(0,null);return}for(var nr=0;nr<jt;nr+=1){var qt=$r(nr);if(T&&(qt=qt||0),qt===void 0){Sr(nr-1,void 0,!0);break}if(an+=qt,Wt===0&&an<=_t||nr===Wt-1&&an+$r(Wt)<=_t){Sr(Wt,null);break}else if(an+_i>_t){Sr(nr-1,an-qt-Ar+Mr);break}}L&&$r(0)+Ar>_t&&Qn(null)}},[_t,At,Mr,Ar,Zt,Me]);var Rr=Ri&&!!lt.length,qr={};en!==null&&Qi&&(qr={position:"absolute",left:en,top:0});var mn={prefixCls:Xi,responsive:Qi,component:w,invalidate:be},sn=ut?function(an,jt){var Wt=Zt(an,jt);return ne.createElement(X.Provider,{key:Wt,value:(0,ue.Z)((0,ue.Z)({},mn),{},{order:jt,item:an,itemKey:Wt,registerSize:Tr,display:jt<=ci})},ut(an,jt))}:function(an,jt){var Wt=Zt(an,jt);return ne.createElement(N,(0,ge.Z)({},mn,{order:jt,key:Wt,item:an,renderItem:Qt,itemKey:Wt,registerSize:Tr,display:jt<=ci}))},Sn={order:Rr?ci:Number.MAX_SAFE_INTEGER,className:"".concat(Xi,"-rest"),registerSize:Wr,display:Rr},Hn=$||k,pi=Xe?ne.createElement(X.Provider,{value:(0,ue.Z)((0,ue.Z)({},mn),Sn)},Xe(lt)):ne.createElement(N,(0,ge.Z)({},mn,Sn),typeof Hn=="function"?Hn(lt):Hn),In=ne.createElement(u,(0,ge.Z)({className:B()(!be&&ye,yr),style:or,ref:ke},Be),Me.map(sn),Ue?pi:null,L&&ne.createElement(N,(0,ge.Z)({},mn,{responsive:oi,responsiveDisabled:!Qi,order:ci,className:"".concat(Xi,"-suffix"),registerSize:An,display:!0,style:qr}),L));return oi?ne.createElement(f.Z,{onResize:fr,disabled:!Qi},In):In}var Le=ne.forwardRef(ot);Le.displayName="Overflow",Le.Item=Ce,Le.RESPONSIVE=q,Le.INVALIDATE=ce;var xe=Le,Re=xe},17115:function(xn,er,x){"use strict";x.d(er,{ZP:function(){return B}});var ge=x(33606),ue=x(59301),Q=x(47273),Te=0,ne=(0,Q.Z)();function G(){var f;return ne?(f=Te,Te+=1):f="TEST_OR_SSR",f}function B(f){var E=ue.useState(),h=(0,ge.Z)(E,2),Z=h[0],S=h[1];return ue.useEffect(function(){S("rc_select_".concat(G()))},[]),f||Z}},77861:function(xn,er,x){"use strict";x.d(er,{Ac:function(){return qe},Xo:function(){return Ur},Wx:function(){return rr},ZP:function(){return Ue},lk:function(){return X}});var ge=x(92413),ue=x(26407),Q=x(400),Te=x(33708),ne=x(33606),G=x(37061),B=x(39559),f=x(18929),E=x(48736),h=x(59301),Z=x(92310),S=x.n(Z),_=x(34280),N=x(49658),R=x(10228),I=x(8654),Y=function(lt){var Zt=lt.className,Qt=lt.customizeIcon,Sr=lt.customizeIconProps,fr=lt.onMouseDown,Tr=lt.onClick,Wr=lt.children,An;return typeof Qt=="function"?An=Qt(Sr):An=Qt,h.createElement("span",{className:Zt,onMouseDown:function(Rr){Rr.preventDefault(),fr&&fr(Rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Tr,"aria-hidden":!0},An!==void 0?An:h.createElement("span",{className:S()(Zt.split(/\s+/).map(function($r){return"".concat($r,"-icon")}))},Wr))},K=Y;function se(Me,lt,Zt,Qt,Sr){var fr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Tr=arguments.length>6?arguments[6]:void 0,Wr=arguments.length>7?arguments[7]:void 0,An=h.useMemo(function(){if((0,B.Z)(Qt)==="object")return Qt.clearIcon;if(Sr)return Sr},[Qt,Sr]),$r=h.useMemo(function(){return!!(!fr&&Qt&&(Zt.length||Tr)&&!(Wr==="combobox"&&Tr===""))},[Qt,fr,Zt.length,Tr,Wr]);return{allowClear:$r,clearIcon:h.createElement(K,{className:"".concat(Me,"-clear"),onMouseDown:lt,customizeIcon:An},"\xD7")}}var te=h.createContext(null);function X(){return h.useContext(te)}function W(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,lt=h.useState(!1),Zt=(0,ne.Z)(lt,2),Qt=Zt[0],Sr=Zt[1],fr=h.useRef(null),Tr=function(){window.clearTimeout(fr.current)};h.useEffect(function(){return Tr},[]);var Wr=function($r,Rr){Tr(),fr.current=window.setTimeout(function(){Sr($r),Rr&&Rr()},Me)};return[Qt,Wr,Tr]}function j(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,lt=h.useRef(null),Zt=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout(Zt.current)}},[]);function Qt(Sr){(Sr||lt.current===null)&&(lt.current=Sr),window.clearTimeout(Zt.current),Zt.current=window.setTimeout(function(){lt.current=null},Me)}return[function(){return lt.current},Qt]}function le(Me,lt,Zt,Qt){var Sr=h.useRef(null);Sr.current={open:lt,triggerOpen:Zt,customizedTrigger:Qt},h.useEffect(function(){function fr(Tr){var Wr;if(!((Wr=Sr.current)!==null&&Wr!==void 0&&Wr.customizedTrigger)){var An=Tr.target;An.shadowRoot&&Tr.composed&&(An=Tr.composedPath()[0]||An),Sr.current.open&&Me().filter(function($r){return $r}).every(function($r){return!$r.contains(An)&&$r!==An})&&Sr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",fr),function(){return window.removeEventListener("mousedown",fr)}},[])}var he=x(26112),Ne=x(11780),Ce=function(lt,Zt){var Qt,Sr,fr=lt.prefixCls,Tr=lt.id,Wr=lt.inputElement,An=lt.disabled,$r=lt.tabIndex,Rr=lt.autoFocus,qr=lt.autoComplete,mn=lt.editable,sn=lt.activeDescendantId,Sn=lt.value,Hn=lt.maxLength,pi=lt.onKeyDown,In=lt.onMouseDown,an=lt.onChange,jt=lt.onPaste,Wt=lt.onCompositionStart,nr=lt.onCompositionEnd,qt=lt.open,Xt=lt.attrs,Nr=Wr||h.createElement("input",null),Lr=Nr,Jr=Lr.ref,_n=Lr.props,Dn=_n.onKeyDown,Ai=_n.onChange,Yn=_n.onMouseDown,ki=_n.onCompositionStart,qn=_n.onCompositionEnd,Nn=_n.style;return(0,E.Kp)(!("maxLength"in Nr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Nr=h.cloneElement(Nr,(0,Te.Z)((0,Te.Z)((0,Te.Z)({type:"search"},_n),{},{id:Tr,ref:(0,I.sQ)(Zt,Jr),disabled:An,tabIndex:$r,autoComplete:qr||"off",autoFocus:Rr,className:S()("".concat(fr,"-selection-search-input"),(Qt=Nr)===null||Qt===void 0||(Sr=Qt.props)===null||Sr===void 0?void 0:Sr.className),role:"combobox","aria-label":"Search","aria-expanded":qt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Tr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Tr,"_list"),"aria-activedescendant":qt?sn:void 0},Xt),{},{value:mn?Sn:"",maxLength:Hn,readOnly:!mn,unselectable:mn?null:"on",style:(0,Te.Z)((0,Te.Z)({},Nn),{},{opacity:mn?null:0}),onKeyDown:function(wi){pi(wi),Dn&&Dn(wi)},onMouseDown:function(wi){In(wi),Yn&&Yn(wi)},onChange:function(wi){an(wi),Ai&&Ai(wi)},onCompositionStart:function(wi){Wt(wi),ki&&ki(wi)},onCompositionEnd:function(wi){nr(wi),qn&&qn(wi)},onPaste:jt})),Nr},je=h.forwardRef(Ce);je.displayName="Input";var q=je;function ce(Me){return Array.isArray(Me)?Me:Me!==void 0?[Me]:[]}var k=typeof window!="undefined"&&window.document&&window.document.documentElement,ot=k;function Le(Me){return Me!=null}function xe(Me){return!Me&&Me!==0}function Re(Me){return["string","number"].includes((0,B.Z)(Me))}function ve(Me){var lt=void 0;return Me&&(Re(Me.title)?lt=Me.title.toString():Re(Me.label)&&(lt=Me.label.toString())),lt}function ke(Me,lt){ot?h.useLayoutEffect(Me,lt):h.useEffect(Me,lt)}function fe(Me){var lt;return(lt=Me.key)!==null&&lt!==void 0?lt:Me.value}var ye=function(lt){lt.preventDefault(),lt.stopPropagation()},at=function(lt){var Zt=lt.id,Qt=lt.prefixCls,Sr=lt.values,fr=lt.open,Tr=lt.searchValue,Wr=lt.autoClearSearchValue,An=lt.inputRef,$r=lt.placeholder,Rr=lt.disabled,qr=lt.mode,mn=lt.showSearch,sn=lt.autoFocus,Sn=lt.autoComplete,Hn=lt.activeDescendantId,pi=lt.tabIndex,In=lt.removeIcon,an=lt.maxTagCount,jt=lt.maxTagTextLength,Wt=lt.maxTagPlaceholder,nr=Wt===void 0?function(ui){return"+ ".concat(ui.length," ...")}:Wt,qt=lt.tagRender,Xt=lt.onToggleOpen,Nr=lt.onRemove,Lr=lt.onInputChange,Jr=lt.onInputPaste,_n=lt.onInputKeyDown,Dn=lt.onInputMouseDown,Ai=lt.onInputCompositionStart,Yn=lt.onInputCompositionEnd,ki=h.useRef(null),qn=(0,h.useState)(0),Nn=(0,ne.Z)(qn,2),ln=Nn[0],wi=Nn[1],Mn=(0,h.useState)(!1),ni=(0,ne.Z)(Mn,2),Si=ni[0],Mi=ni[1],Wn="".concat(Qt,"-selection"),Pi=fr||qr==="multiple"&&Wr===!1||qr==="tags"?Tr:"",Ji=qr==="tags"||qr==="multiple"&&Wr===!1||mn&&(fr||Si);ke(function(){wi(ki.current.scrollWidth)},[Pi]);function si(ui,Fi,la,ta,ja){return h.createElement("span",{className:S()("".concat(Wn,"-item"),(0,Q.Z)({},"".concat(Wn,"-item-disabled"),la)),title:ve(ui)},h.createElement("span",{className:"".concat(Wn,"-item-content")},Fi),ta&&h.createElement(K,{className:"".concat(Wn,"-item-remove"),onMouseDown:ye,onClick:ja,customizeIcon:In},"\xD7"))}function dn(ui,Fi,la,ta,ja){var io=function(Zn){ye(Zn),Xt(!fr)};return h.createElement("span",{onMouseDown:io},qt({label:Fi,value:ui,disabled:la,closable:ta,onClose:ja}))}function rn(ui){var Fi=ui.disabled,la=ui.label,ta=ui.value,ja=!Rr&&!Fi,io=la;if(typeof jt=="number"&&(typeof la=="string"||typeof la=="number")){var jn=String(io);jn.length>jt&&(io="".concat(jn.slice(0,jt),"..."))}var Zn=function(ra){ra&&ra.stopPropagation(),Nr(ui)};return typeof qt=="function"?dn(ta,io,Fi,ja,Zn):si(ui,io,Fi,ja,Zn)}function Ln(ui){var Fi=typeof nr=="function"?nr(ui):nr;return si({title:Fi},Fi,!1)}var wn=h.createElement("div",{className:"".concat(Wn,"-search"),style:{width:ln},onFocus:function(){Mi(!0)},onBlur:function(){Mi(!1)}},h.createElement(q,{ref:An,open:fr,prefixCls:Qt,id:Zt,inputElement:null,disabled:Rr,autoFocus:sn,autoComplete:Sn,editable:Ji,activeDescendantId:Hn,value:Pi,onKeyDown:_n,onMouseDown:Dn,onChange:Lr,onPaste:Jr,onCompositionStart:Ai,onCompositionEnd:Yn,tabIndex:pi,attrs:(0,he.Z)(lt,!0)}),h.createElement("span",{ref:ki,className:"".concat(Wn,"-search-mirror"),"aria-hidden":!0},Pi,"\xA0")),Kn=h.createElement(Ne.Z,{prefixCls:"".concat(Wn,"-overflow"),data:Sr,renderItem:rn,renderRest:Ln,suffix:wn,itemKey:fe,maxCount:an});return h.createElement(h.Fragment,null,Kn,!Sr.length&&!Pi&&h.createElement("span",{className:"".concat(Wn,"-placeholder")},$r))},rt=at,nt=function(lt){var Zt=lt.inputElement,Qt=lt.prefixCls,Sr=lt.id,fr=lt.inputRef,Tr=lt.disabled,Wr=lt.autoFocus,An=lt.autoComplete,$r=lt.activeDescendantId,Rr=lt.mode,qr=lt.open,mn=lt.values,sn=lt.placeholder,Sn=lt.tabIndex,Hn=lt.showSearch,pi=lt.searchValue,In=lt.activeValue,an=lt.maxLength,jt=lt.onInputKeyDown,Wt=lt.onInputMouseDown,nr=lt.onInputChange,qt=lt.onInputPaste,Xt=lt.onInputCompositionStart,Nr=lt.onInputCompositionEnd,Lr=lt.title,Jr=h.useState(!1),_n=(0,ne.Z)(Jr,2),Dn=_n[0],Ai=_n[1],Yn=Rr==="combobox",ki=Yn||Hn,qn=mn[0],Nn=pi||"";Yn&&In&&!Dn&&(Nn=In),h.useEffect(function(){Yn&&Ai(!1)},[Yn,In]);var ln=Rr!=="combobox"&&!qr&&!Hn?!1:!!Nn,wi=Lr===void 0?ve(qn):Lr,Mn=function(){if(qn)return null;var Si=ln?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:Si},sn)};return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(Qt,"-selection-search")},h.createElement(q,{ref:fr,prefixCls:Qt,id:Sr,open:qr,inputElement:Zt,disabled:Tr,autoFocus:Wr,autoComplete:An,editable:ki,activeDescendantId:$r,value:Nn,onKeyDown:jt,onMouseDown:Wt,onChange:function(Si){Ai(!0),nr(Si)},onPaste:qt,onCompositionStart:Xt,onCompositionEnd:Nr,tabIndex:Sn,attrs:(0,he.Z)(lt,!0),maxLength:Yn?an:void 0})),!Yn&&qn?h.createElement("span",{className:"".concat(Qt,"-selection-item"),title:wi,style:ln?{visibility:"hidden"}:void 0},qn.label):null,Mn())},ut=nt;function Nt(Me){return![R.Z.ESC,R.Z.SHIFT,R.Z.BACKSPACE,R.Z.TAB,R.Z.WIN_KEY,R.Z.ALT,R.Z.META,R.Z.WIN_KEY_RIGHT,R.Z.CTRL,R.Z.SEMICOLON,R.Z.EQUALS,R.Z.CAPS_LOCK,R.Z.CONTEXT_MENU,R.Z.F1,R.Z.F2,R.Z.F3,R.Z.F4,R.Z.F5,R.Z.F6,R.Z.F7,R.Z.F8,R.Z.F9,R.Z.F10,R.Z.F11,R.Z.F12].includes(Me)}var zt=function(lt,Zt){var Qt=(0,h.useRef)(null),Sr=(0,h.useRef)(!1),fr=lt.prefixCls,Tr=lt.open,Wr=lt.mode,An=lt.showSearch,$r=lt.tokenWithEnter,Rr=lt.autoClearSearchValue,qr=lt.onSearch,mn=lt.onSearchSubmit,sn=lt.onToggleOpen,Sn=lt.onInputKeyDown,Hn=lt.domRef;h.useImperativeHandle(Zt,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var pi=j(0),In=(0,ne.Z)(pi,2),an=In[0],jt=In[1],Wt=function(Nn){var ln=Nn.which;(ln===R.Z.UP||ln===R.Z.DOWN)&&Nn.preventDefault(),Sn&&Sn(Nn),ln===R.Z.ENTER&&Wr==="tags"&&!Sr.current&&!Tr&&(mn==null||mn(Nn.target.value)),Nt(ln)&&sn(!0)},nr=function(){jt(!0)},qt=(0,h.useRef)(null),Xt=function(Nn){qr(Nn,!0,Sr.current)!==!1&&sn(!0)},Nr=function(){Sr.current=!0},Lr=function(Nn){Sr.current=!1,Wr!=="combobox"&&Xt(Nn.target.value)},Jr=function(Nn){var ln=Nn.target.value;if($r&&qt.current&&/[\r\n]/.test(qt.current)){var wi=qt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ln=ln.replace(wi,qt.current)}qt.current=null,Xt(ln)},_n=function(Nn){var ln=Nn.clipboardData,wi=ln.getData("text");qt.current=wi},Dn=function(Nn){var ln=Nn.target;if(ln!==Qt.current){var wi=document.body.style.msTouchAction!==void 0;wi?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},Ai=function(Nn){var ln=an();Nn.target!==Qt.current&&!ln&&Wr!=="combobox"&&Nn.preventDefault(),(Wr!=="combobox"&&(!An||!ln)||!Tr)&&(Tr&&Rr!==!1&&qr("",!0,!1),sn())},Yn={inputRef:Qt,onInputKeyDown:Wt,onInputMouseDown:nr,onInputChange:Jr,onInputPaste:_n,onInputCompositionStart:Nr,onInputCompositionEnd:Lr},ki=Wr==="multiple"||Wr==="tags"?h.createElement(rt,(0,ge.Z)({},lt,Yn)):h.createElement(ut,(0,ge.Z)({},lt,Yn));return h.createElement("div",{ref:Hn,className:"".concat(fr,"-selector"),onClick:Dn,onMouseDown:Ai},ki)},Ht=h.forwardRef(zt);Ht.displayName="Selector";var cr=Ht,or=x(35593),yr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],dr=function(lt){var Zt=lt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"}}},$=function(lt,Zt){var Qt=lt.prefixCls,Sr=lt.disabled,fr=lt.visible,Tr=lt.children,Wr=lt.popupElement,An=lt.animation,$r=lt.transitionName,Rr=lt.dropdownStyle,qr=lt.dropdownClassName,mn=lt.direction,sn=mn===void 0?"ltr":mn,Sn=lt.placement,Hn=lt.builtinPlacements,pi=lt.dropdownMatchSelectWidth,In=lt.dropdownRender,an=lt.dropdownAlign,jt=lt.getPopupContainer,Wt=lt.empty,nr=lt.getTriggerDOMNode,qt=lt.onPopupVisibleChange,Xt=lt.onPopupMouseEnter,Nr=(0,G.Z)(lt,yr),Lr="".concat(Qt,"-dropdown"),Jr=Wr;In&&(Jr=In(Wr));var _n=h.useMemo(function(){return Hn||dr(pi)},[Hn,pi]),Dn=An?"".concat(Lr,"-").concat(An):$r,Ai=typeof pi=="number",Yn=h.useMemo(function(){return Ai?null:pi===!1?"minWidth":"width"},[pi,Ai]),ki=Rr;Ai&&(ki=(0,Te.Z)((0,Te.Z)({},ki),{},{width:pi}));var qn=h.useRef(null);return h.useImperativeHandle(Zt,function(){return{getPopupElement:function(){return qn.current}}}),h.createElement(or.Z,(0,ge.Z)({},Nr,{showAction:qt?["click"]:[],hideAction:qt?["click"]:[],popupPlacement:Sn||(sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_n,prefixCls:Lr,popupTransitionName:Dn,popup:h.createElement("div",{ref:qn,onMouseEnter:Xt},Jr),stretch:Yn,popupAlign:an,popupVisible:fr,getPopupContainer:jt,popupClassName:S()(qr,(0,Q.Z)({},"".concat(Lr,"-empty"),Wt)),popupStyle:ki,getTriggerDOMNode:nr,onPopupVisibleChange:qt}),Tr)},Xe=h.forwardRef($);Xe.displayName="SelectTrigger";var L=Xe,p=x(34589);function u(Me,lt){var Zt=Me.key,Qt;return"value"in Me&&(Qt=Me.value),Zt!=null?Zt:Qt!==void 0?Qt:"rc-index-key-".concat(lt)}function w(Me,lt){var Zt=Me||{},Qt=Zt.label,Sr=Zt.value,fr=Zt.options,Tr=Zt.groupLabel,Wr=Qt||(lt?"children":"label");return{label:Wr,value:Sr||"value",options:fr||"options",groupLabel:Tr||Wr}}function ee(Me){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zt=lt.fieldNames,Qt=lt.childrenAsData,Sr=[],fr=w(Zt,!1),Tr=fr.label,Wr=fr.value,An=fr.options,$r=fr.groupLabel;function Rr(qr,mn){qr.forEach(function(sn){if(mn||!(An in sn)){var Sn=sn[Wr];Sr.push({key:u(sn,Sr.length),groupOption:mn,data:sn,label:sn[Tr],value:Sn})}else{var Hn=sn[$r];Hn===void 0&&Qt&&(Hn=sn.label),Sr.push({key:u(sn,Sr.length),group:!0,data:sn,label:Hn}),Rr(sn[An],!0)}})}return Rr(Me,!1),Sr}function Be(Me){var lt=(0,Te.Z)({},Me);return"props"in lt||Object.defineProperty(lt,"props",{get:function(){return(0,E.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),lt}}),lt}function T(Me,lt){if(!lt||!lt.length)return null;var Zt=!1;function Qt(fr,Tr){var Wr=(0,p.Z)(Tr),An=Wr[0],$r=Wr.slice(1);if(!An)return[fr];var Rr=fr.split(An);return Zt=Zt||Rr.length>1,Rr.reduce(function(qr,mn){return[].concat((0,ue.Z)(qr),(0,ue.Z)(Qt(mn,$r)))},[]).filter(function(qr){return qr})}var Sr=Qt(Me,lt);return Zt?Sr:null}var ae=["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"],Ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ee(Me){return Me==="tags"||Me==="multiple"}var me=h.forwardRef(function(Me,lt){var Zt,Qt,Sr=Me.id,fr=Me.prefixCls,Tr=Me.className,Wr=Me.showSearch,An=Me.tagRender,$r=Me.direction,Rr=Me.omitDomProps,qr=Me.displayValues,mn=Me.onDisplayValuesChange,sn=Me.emptyOptions,Sn=Me.notFoundContent,Hn=Sn===void 0?"Not Found":Sn,pi=Me.onClear,In=Me.mode,an=Me.disabled,jt=Me.loading,Wt=Me.getInputElement,nr=Me.getRawInputElement,qt=Me.open,Xt=Me.defaultOpen,Nr=Me.onDropdownVisibleChange,Lr=Me.activeValue,Jr=Me.onActiveValueChange,_n=Me.activeDescendantId,Dn=Me.searchValue,Ai=Me.autoClearSearchValue,Yn=Me.onSearch,ki=Me.onSearchSplit,qn=Me.tokenSeparators,Nn=Me.allowClear,ln=Me.suffixIcon,wi=Me.clearIcon,Mn=Me.OptionList,ni=Me.animation,Si=Me.transitionName,Mi=Me.dropdownStyle,Wn=Me.dropdownClassName,Pi=Me.dropdownMatchSelectWidth,Ji=Me.dropdownRender,si=Me.dropdownAlign,dn=Me.placement,rn=Me.builtinPlacements,Ln=Me.getPopupContainer,wn=Me.showAction,Kn=wn===void 0?[]:wn,ui=Me.onFocus,Fi=Me.onBlur,la=Me.onKeyUp,ta=Me.onKeyDown,ja=Me.onMouseDown,io=(0,G.Z)(Me,ae),jn=Ee(In),Zn=(Wr!==void 0?Wr:jn)||In==="combobox",ri=(0,Te.Z)({},io);Ge.forEach(function(fa){delete ri[fa]}),Rr==null||Rr.forEach(function(fa){delete ri[fa]});var ra=h.useState(!1),La=(0,ne.Z)(ra,2),ca=La[0],Hi=La[1];h.useEffect(function(){Hi((0,N.Z)())},[]);var za=h.useRef(null),ka=h.useRef(null),co=h.useRef(null),Ya=h.useRef(null),Ca=h.useRef(null),mi=W(),Aa=(0,ne.Z)(mi,3),Oo=Aa[0],mo=Aa[1],qa=Aa[2];h.useImperativeHandle(lt,function(){var fa,ia;return{focus:(fa=Ya.current)===null||fa===void 0?void 0:fa.focus,blur:(ia=Ya.current)===null||ia===void 0?void 0:ia.blur,scrollTo:function(Va){var ao;return(ao=Ca.current)===null||ao===void 0?void 0:ao.scrollTo(Va)}}});var Ni=h.useMemo(function(){var fa;if(In!=="combobox")return Dn;var ia=(fa=qr[0])===null||fa===void 0?void 0:fa.value;return typeof ia=="string"||typeof ia=="number"?String(ia):""},[Dn,In,qr]),To=In==="combobox"&&typeof Wt=="function"&&Wt()||null,go=typeof nr=="function"&&nr(),el=(0,I.x1)(ka,go==null||(Zt=go.props)===null||Zt===void 0?void 0:Zt.ref),Wo=h.useState(!1),Rs=(0,ne.Z)(Wo,2),Go=Rs[0],xl=Rs[1];(0,_.Z)(function(){xl(!0)},[]);var $a=(0,f.Z)(!1,{defaultValue:Xt,value:qt}),Qa=(0,ne.Z)($a,2),Sa=Qa[0],Qs=Qa[1],Bi=Go?Sa:!1,Vi=!Hn&&sn;(an||Vi&&Bi&&In==="combobox")&&(Bi=!1);var Oi=Vi?!1:Bi,Wi=h.useCallback(function(fa){var ia=fa!==void 0?fa:!Bi;an||(Qs(ia),Bi!==ia&&(Nr==null||Nr(ia)))},[an,Bi,Qs,Nr]),ua=h.useMemo(function(){return(qn||[]).some(function(fa){return[`
`,`\r
`].includes(fa)})},[qn]),_a=function(ia,vo,Va){var ao=!0,Ko=ia;Jr==null||Jr(null);var to=Va?null:T(ia,qn);return In!=="combobox"&&to&&(Ko="",ki==null||ki(to),Wi(!1),ao=!1),Yn&&Ni!==Ko&&Yn(Ko,{source:vo?"typing":"effect"}),ao},Xo=function(ia){!ia||!ia.trim()||Yn(ia,{source:"submit"})};h.useEffect(function(){!Bi&&!jn&&In!=="combobox"&&_a("",!1,!1)},[Bi]),h.useEffect(function(){Sa&&an&&Qs(!1),an&&mo(!1)},[an]);var Io=j(),_o=(0,ne.Z)(Io,2),Za=_o[0],Ba=_o[1],da=function(ia){var vo=Za(),Va=ia.which;if(Va===R.Z.ENTER&&(In!=="combobox"&&ia.preventDefault(),Bi||Wi(!0)),Ba(!!Ni),Va===R.Z.BACKSPACE&&!vo&&jn&&!Ni&&qr.length){for(var ao=(0,ue.Z)(qr),Ko=null,to=ao.length-1;to>=0;to-=1){var Jo=ao[to];if(!Jo.disabled){ao.splice(to,1),Ko=Jo;break}}Ko&&mn(ao,{type:"remove",values:[Ko]})}for(var Ls=arguments.length,Al=new Array(Ls>1?Ls-1:0),Vs=1;Vs<Ls;Vs++)Al[Vs-1]=arguments[Vs];if(Bi&&Ca.current){var tl;(tl=Ca.current).onKeyDown.apply(tl,[ia].concat(Al))}ta==null||ta.apply(void 0,[ia].concat(Al))},Da=function(ia){for(var vo=arguments.length,Va=new Array(vo>1?vo-1:0),ao=1;ao<vo;ao++)Va[ao-1]=arguments[ao];if(Bi&&Ca.current){var Ko;(Ko=Ca.current).onKeyUp.apply(Ko,[ia].concat(Va))}la==null||la.apply(void 0,[ia].concat(Va))},eo=function(ia){var vo=qr.filter(function(Va){return Va!==ia});mn(vo,{type:"remove",values:[ia]})},Ao=h.useRef(!1),Oa=function(){mo(!0),an||(ui&&!Ao.current&&ui.apply(void 0,arguments),Kn.includes("focus")&&Wi(!0)),Ao.current=!0},Fa=function(){mo(!1,function(){Ao.current=!1,Wi(!1)}),!an&&(Ni&&(In==="tags"?Yn(Ni,{source:"submit"}):In==="multiple"&&Yn("",{source:"blur"})),Fi&&Fi.apply(void 0,arguments))},Mo=[];h.useEffect(function(){return function(){Mo.forEach(function(fa){return clearTimeout(fa)}),Mo.splice(0,Mo.length)}},[]);var kl=function(ia){var vo,Va=ia.target,ao=(vo=co.current)===null||vo===void 0?void 0:vo.getPopupElement();if(ao&&ao.contains(Va)){var Ko=setTimeout(function(){var Al=Mo.indexOf(Ko);if(Al!==-1&&Mo.splice(Al,1),qa(),!ca&&!ao.contains(document.activeElement)){var Vs;(Vs=Ya.current)===null||Vs===void 0||Vs.focus()}});Mo.push(Ko)}for(var to=arguments.length,Jo=new Array(to>1?to-1:0),Ls=1;Ls<to;Ls++)Jo[Ls-1]=arguments[Ls];ja==null||ja.apply(void 0,[ia].concat(Jo))},ds=h.useState({}),ll=(0,ne.Z)(ds,2),Uo=ll[1];function Ms(){Uo({})}var Lo;go&&(Lo=function(ia){Wi(ia)}),le(function(){var fa;return[za.current,(fa=co.current)===null||fa===void 0?void 0:fa.getPopupElement()]},Oi,Wi,!!go);var Un=h.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},Me),{},{notFoundContent:Hn,open:Bi,triggerOpen:Oi,id:Sr,showSearch:Zn,multiple:jn,toggleOpen:Wi})},[Me,Hn,Oi,Bi,Sr,Zn,jn,Wi]),Dl=!!ln||jt,Ro;Dl&&(Ro=h.createElement(K,{className:S()("".concat(fr,"-arrow"),(0,Q.Z)({},"".concat(fr,"-arrow-loading"),jt)),customizeIcon:ln,customizeIconProps:{loading:jt,searchValue:Ni,open:Bi,focused:Oo,showSearch:Zn}}));var Vl=function(){var ia;pi==null||pi(),(ia=Ya.current)===null||ia===void 0||ia.focus(),mn([],{type:"clear",values:qr}),_a("",!1,!1)},Ks=se(fr,Vl,qr,Nn,wi,an,Ni,In),bs=Ks.allowClear,Ia=Ks.clearIcon,Qo=h.createElement(Mn,{ref:Ca}),Wl=S()(fr,Tr,(Qt={},(0,Q.Z)(Qt,"".concat(fr,"-focused"),Oo),(0,Q.Z)(Qt,"".concat(fr,"-multiple"),jn),(0,Q.Z)(Qt,"".concat(fr,"-single"),!jn),(0,Q.Z)(Qt,"".concat(fr,"-allow-clear"),Nn),(0,Q.Z)(Qt,"".concat(fr,"-show-arrow"),Dl),(0,Q.Z)(Qt,"".concat(fr,"-disabled"),an),(0,Q.Z)(Qt,"".concat(fr,"-loading"),jt),(0,Q.Z)(Qt,"".concat(fr,"-open"),Bi),(0,Q.Z)(Qt,"".concat(fr,"-customize-input"),To),(0,Q.Z)(Qt,"".concat(fr,"-show-search"),Zn),Qt)),ac=h.createElement(L,{ref:co,disabled:an,prefixCls:fr,visible:Oi,popupElement:Qo,animation:ni,transitionName:Si,dropdownStyle:Mi,dropdownClassName:Wn,direction:$r,dropdownMatchSelectWidth:Pi,dropdownRender:Ji,dropdownAlign:si,placement:dn,builtinPlacements:rn,getPopupContainer:Ln,empty:sn,getTriggerDOMNode:function(){return ka.current},onPopupVisibleChange:Lo,onPopupMouseEnter:Ms},go?h.cloneElement(go,{ref:el}):h.createElement(cr,(0,ge.Z)({},Me,{domRef:ka,prefixCls:fr,inputElement:To,ref:Ya,id:Sr,showSearch:Zn,autoClearSearchValue:Ai,mode:In,activeDescendantId:_n,tagRender:An,values:qr,open:Bi,onToggleOpen:Wi,activeValue:Lr,searchValue:Ni,onSearch:_a,onSearchSubmit:Xo,onRemove:eo,tokenWithEnter:ua}))),cl;return go?cl=ac:cl=h.createElement("div",(0,ge.Z)({className:Wl},ri,{ref:za,onMouseDown:kl,onKeyDown:da,onKeyUp:Da,onFocus:Oa,onBlur:Fa}),Oo&&!Bi&&h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(qr.map(function(fa){var ia=fa.label,vo=fa.value;return["number","string"].includes((0,B.Z)(ia))?ia:vo}).join(", "))),ac,Ro,bs&&Ia),h.createElement(te.Provider,{value:Un},cl)}),qe=me,_t=function(Me,lt){var Zt=h.useRef({values:new Map,options:new Map}),Qt=h.useMemo(function(){var fr=Zt.current,Tr=fr.values,Wr=fr.options,An=Me.map(function(qr){if(qr.label===void 0){var mn;return(0,Te.Z)((0,Te.Z)({},qr),{},{label:(mn=Tr.get(qr.value))===null||mn===void 0?void 0:mn.label})}return qr}),$r=new Map,Rr=new Map;return An.forEach(function(qr){$r.set(qr.value,qr),Rr.set(qr.value,lt.get(qr.value)||Wr.get(qr.value))}),Zt.current.values=$r,Zt.current.options=Rr,An},[Me,lt]),Sr=h.useCallback(function(fr){return lt.get(fr)||Zt.current.options.get(fr)},[lt]);return[Qt,Sr]};function pe(Me,lt){return ce(Me).join("").toUpperCase().includes(lt)}var st=function(Me,lt,Zt,Qt,Sr){return h.useMemo(function(){if(!Zt||Qt===!1)return Me;var fr=lt.options,Tr=lt.label,Wr=lt.value,An=[],$r=typeof Qt=="function",Rr=Zt.toUpperCase(),qr=$r?Qt:function(sn,Sn){return Sr?pe(Sn[Sr],Rr):Sn[fr]?pe(Sn[Tr!=="children"?Tr:"label"],Rr):pe(Sn[Wr],Rr)},mn=$r?function(sn){return Be(sn)}:function(sn){return sn};return Me.forEach(function(sn){if(sn[fr]){var Sn=qr(Zt,mn(sn));if(Sn)An.push(sn);else{var Hn=sn[fr].filter(function(pi){return qr(Zt,mn(pi))});Hn.length&&An.push((0,Te.Z)((0,Te.Z)({},sn),{},(0,Q.Z)({},fr,Hn)))}return}qr(Zt,mn(sn))&&An.push(sn)}),An},[Me,Qt,Sr,Zt,lt])},At=x(17115),Pe=x(11592),Ie=["children","value"],vt=["children"];function Ut(Me){var lt=Me,Zt=lt.key,Qt=lt.props,Sr=Qt.children,fr=Qt.value,Tr=(0,G.Z)(Qt,Ie);return(0,Te.Z)({key:Zt,value:fr!==void 0?fr:Zt,children:Sr},Tr)}function Rt(Me){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Pe.Z)(Me).map(function(Zt,Qt){if(!h.isValidElement(Zt)||!Zt.type)return null;var Sr=Zt,fr=Sr.type.isSelectOptGroup,Tr=Sr.key,Wr=Sr.props,An=Wr.children,$r=(0,G.Z)(Wr,vt);return lt||!fr?Ut(Zt):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(Tr===null?Qt:Tr,"__"),label:Tr},$r),{},{options:Rt(An)})}).filter(function(Zt){return Zt})}function hr(Me,lt,Zt,Qt,Sr){return h.useMemo(function(){var fr=Me,Tr=!Me;Tr&&(fr=Rt(lt));var Wr=new Map,An=new Map,$r=function(mn,sn,Sn){Sn&&typeof Sn=="string"&&mn.set(sn[Sn],sn)};function Rr(qr){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn<qr.length;sn+=1){var Sn=qr[sn];!Sn[Zt.options]||mn?(Wr.set(Sn[Zt.value],Sn),$r(An,Sn,Zt.label),$r(An,Sn,Qt),$r(An,Sn,Sr)):Rr(Sn[Zt.options],!0)}}return Rr(fr),{options:fr,valueOptions:Wr,labelOptions:An}},[Me,lt,Zt,Qt,Sr])}function br(Me){var lt=h.useRef();lt.current=Me;var Zt=h.useCallback(function(){return lt.current.apply(lt,arguments)},[]);return Zt}var Mr=function(){return null};Mr.isSelectOptGroup=!0;var Ur=Mr,Qr=function(){return null};Qr.isSelectOption=!0;var rr=Qr,Ar=x(80547),jr=x(2738),cn=x(4409),Tn=h.createContext(null),en=Tn;function Qn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var li=["disabled","title","children","style","className"];function Pr(Me){return typeof Me=="string"||typeof Me=="number"}var ti=function(lt,Zt){var Qt=X(),Sr=Qt.prefixCls,fr=Qt.id,Tr=Qt.open,Wr=Qt.multiple,An=Qt.mode,$r=Qt.searchValue,Rr=Qt.toggleOpen,qr=Qt.notFoundContent,mn=Qt.onPopupScroll,sn=h.useContext(en),Sn=sn.flattenOptions,Hn=sn.onActiveValue,pi=sn.defaultActiveFirstOption,In=sn.onSelect,an=sn.menuItemSelectedIcon,jt=sn.rawValues,Wt=sn.fieldNames,nr=sn.virtual,qt=sn.direction,Xt=sn.listHeight,Nr=sn.listItemHeight,Lr="".concat(Sr,"-item"),Jr=(0,Ar.Z)(function(){return Sn},[Tr,Sn],function(si,dn){return dn[0]&&si[1]!==dn[1]}),_n=h.useRef(null),Dn=function(dn){dn.preventDefault()},Ai=function(dn){_n.current&&_n.current.scrollTo(typeof dn=="number"?{index:dn}:dn)},Yn=function(dn){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ln=Jr.length,wn=0;wn<Ln;wn+=1){var Kn=(dn+wn*rn+Ln)%Ln,ui=Jr[Kn],Fi=ui.group,la=ui.data;if(!Fi&&!la.disabled)return Kn}return-1},ki=h.useState(function(){return Yn(0)}),qn=(0,ne.Z)(ki,2),Nn=qn[0],ln=qn[1],wi=function(dn){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ln(dn);var Ln={source:rn?"keyboard":"mouse"},wn=Jr[dn];if(!wn){Hn(null,-1,Ln);return}Hn(wn.value,dn,Ln)};(0,h.useEffect)(function(){wi(pi!==!1?Yn(0):-1)},[Jr.length,$r]);var Mn=h.useCallback(function(si){return jt.has(si)&&An!=="combobox"},[An,(0,ue.Z)(jt).toString(),jt.size]);(0,h.useEffect)(function(){var si=setTimeout(function(){if(!Wr&&Tr&&jt.size===1){var rn=Array.from(jt)[0],Ln=Jr.findIndex(function(wn){var Kn=wn.data;return Kn.value===rn});Ln!==-1&&(wi(Ln),Ai(Ln))}});if(Tr){var dn;(dn=_n.current)===null||dn===void 0||dn.scrollTo(void 0)}return function(){return clearTimeout(si)}},[Tr,$r,Sn.length]);var ni=function(dn){dn!==void 0&&In(dn,{selected:!jt.has(dn)}),Wr||Rr(!1)};if(h.useImperativeHandle(Zt,function(){return{onKeyDown:function(dn){var rn=dn.which,Ln=dn.ctrlKey;switch(rn){case R.Z.N:case R.Z.P:case R.Z.UP:case R.Z.DOWN:{var wn=0;if(rn===R.Z.UP?wn=-1:rn===R.Z.DOWN?wn=1:Qn()&&Ln&&(rn===R.Z.N?wn=1:rn===R.Z.P&&(wn=-1)),wn!==0){var Kn=Yn(Nn+wn,wn);Ai(Kn),wi(Kn,!0)}break}case R.Z.ENTER:{var ui=Jr[Nn];ui&&!ui.data.disabled?ni(ui.value):ni(void 0),Tr&&dn.preventDefault();break}case R.Z.ESC:Rr(!1),Tr&&dn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(dn){Ai(dn)}}}),Jr.length===0)return h.createElement("div",{role:"listbox",id:"".concat(fr,"_list"),className:"".concat(Lr,"-empty"),onMouseDown:Dn},qr);var Si=Object.keys(Wt).map(function(si){return Wt[si]}),Mi=function(dn){return dn.label};function Wn(si,dn){var rn=si.group;return{role:rn?"presentation":"option",id:"".concat(fr,"_list_").concat(dn)}}var Pi=function(dn){var rn=Jr[dn];if(!rn)return null;var Ln=rn.data||{},wn=Ln.value,Kn=rn.group,ui=(0,he.Z)(Ln,!0),Fi=Mi(rn);return rn?h.createElement("div",(0,ge.Z)({"aria-label":typeof Fi=="string"&&!Kn?Fi:null},ui,{key:dn},Wn(rn,dn),{"aria-selected":Mn(wn)}),wn):null},Ji={role:"listbox",id:"".concat(fr,"_list")};return h.createElement(h.Fragment,null,nr&&h.createElement("div",(0,ge.Z)({},Ji,{style:{height:0,width:0,overflow:"hidden"}}),Pi(Nn-1),Pi(Nn),Pi(Nn+1)),h.createElement(cn.Z,{itemKey:"key",ref:_n,data:Jr,height:Xt,itemHeight:Nr,fullHeight:!1,onMouseDown:Dn,onScroll:mn,virtual:nr,direction:qt,innerProps:nr?null:Ji},function(si,dn){var rn,Ln=si.group,wn=si.groupOption,Kn=si.data,ui=si.label,Fi=si.value,la=Kn.key;if(Ln){var ta,ja=(ta=Kn.title)!==null&&ta!==void 0?ta:Pr(ui)?ui.toString():void 0;return h.createElement("div",{className:S()(Lr,"".concat(Lr,"-group")),title:ja},ui!==void 0?ui:la)}var io=Kn.disabled,jn=Kn.title,Zn=Kn.children,ri=Kn.style,ra=Kn.className,La=(0,G.Z)(Kn,li),ca=(0,jr.Z)(La,Si),Hi=Mn(Fi),za="".concat(Lr,"-option"),ka=S()(Lr,za,ra,(rn={},(0,Q.Z)(rn,"".concat(za,"-grouped"),wn),(0,Q.Z)(rn,"".concat(za,"-active"),Nn===dn&&!io),(0,Q.Z)(rn,"".concat(za,"-disabled"),io),(0,Q.Z)(rn,"".concat(za,"-selected"),Hi),rn)),co=Mi(si),Ya=!an||typeof an=="function"||Hi,Ca=typeof co=="number"?co:co||Fi,mi=Pr(Ca)?Ca.toString():void 0;return jn!==void 0&&(mi=jn),h.createElement("div",(0,ge.Z)({},(0,he.Z)(ca),nr?{}:Wn(si,dn),{"aria-selected":Hi,className:ka,title:mi,onMouseMove:function(){Nn===dn||io||wi(dn)},onClick:function(){io||ni(Fi)},style:ri}),h.createElement("div",{className:"".concat(za,"-content")},Ca),h.isValidElement(an)||Hi,Ya&&h.createElement(K,{className:"".concat(Lr,"-option-state"),customizeIcon:an,customizeIconProps:{isSelected:Hi}},Hi?"\u2713":null))}))},yi=h.forwardRef(ti);yi.displayName="OptionList";var ci=yi;function Ci(Me){var lt=Me.mode,Zt=Me.options,Qt=Me.children,Sr=Me.backfill,fr=Me.allowClear,Tr=Me.placeholder,Wr=Me.getInputElement,An=Me.showSearch,$r=Me.onSearch,Rr=Me.defaultOpen,qr=Me.autoFocus,mn=Me.labelInValue,sn=Me.value,Sn=Me.inputValue,Hn=Me.optionLabelProp,pi=isMultiple(lt),In=An!==void 0?An:pi||lt==="combobox",an=Zt||convertChildrenToData(Qt);if(warning(lt!=="tags"||an.every(function(qt){return!qt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),lt==="tags"||lt==="combobox"){var jt=an.some(function(qt){return qt.options?qt.options.some(function(Xt){return typeof("value"in Xt?Xt.value:Xt.key)=="number"}):typeof("value"in qt?qt.value:qt.key)=="number"});warning(!jt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(lt!=="combobox"||!Hn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(lt==="combobox"||!Sr,"`backfill` only works with `combobox` mode."),warning(lt==="combobox"||!Wr,"`getInputElement` only work with `combobox` mode."),noteOnce(lt!=="combobox"||!Wr||!fr||!Tr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$r&&!In&&lt!=="combobox"&&lt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rr||qr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),sn!=null){var Wt=toArray(sn);warning(!mn||Wt.every(function(qt){return _typeof(qt)==="object"&&("key"in qt||"value"in qt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pi||Array.isArray(sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var nr=null;toNodeArray(Qt).some(function(qt){if(!React.isValidElement(qt)||!qt.type)return!1;var Xt=qt,Nr=Xt.type;if(Nr.isSelectOption)return!1;if(Nr.isSelectOptGroup){var Lr=toNodeArray(qt.props.children).every(function(Jr){return!React.isValidElement(Jr)||!qt.type||Jr.type.isSelectOption?!0:(nr=Jr.type,!1)});return!Lr}return nr=Nr,!0}),nr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(nr.displayName||nr.name||nr,"`.")),warning(Sn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function hi(Me,lt){if(Me){var Zt=function Qt(Sr){for(var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tr=0;Tr<Sr.length;Tr++){var Wr=Sr[Tr];if(Wr[lt==null?void 0:lt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!fr&&Array.isArray(Wr[lt==null?void 0:lt.options])&&Qt(Wr[lt==null?void 0:lt.options],!0))break}};Zt(Me)}}var Ri=null,ba=["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"],Xi=["inputValue"];function _i(Me){return!Me||(0,B.Z)(Me)!=="object"}var oi=h.forwardRef(function(Me,lt){var Zt=Me.id,Qt=Me.mode,Sr=Me.prefixCls,fr=Sr===void 0?"rc-select":Sr,Tr=Me.backfill,Wr=Me.fieldNames,An=Me.inputValue,$r=Me.searchValue,Rr=Me.onSearch,qr=Me.autoClearSearchValue,mn=qr===void 0?!0:qr,sn=Me.onSelect,Sn=Me.onDeselect,Hn=Me.dropdownMatchSelectWidth,pi=Hn===void 0?!0:Hn,In=Me.filterOption,an=Me.filterSort,jt=Me.optionFilterProp,Wt=Me.optionLabelProp,nr=Me.options,qt=Me.children,Xt=Me.defaultActiveFirstOption,Nr=Me.menuItemSelectedIcon,Lr=Me.virtual,Jr=Me.direction,_n=Me.listHeight,Dn=_n===void 0?200:_n,Ai=Me.listItemHeight,Yn=Ai===void 0?20:Ai,ki=Me.value,qn=Me.defaultValue,Nn=Me.labelInValue,ln=Me.onChange,wi=(0,G.Z)(Me,ba),Mn=(0,At.ZP)(Zt),ni=Ee(Qt),Si=!!(!nr&&qt),Mi=h.useMemo(function(){return In===void 0&&Qt==="combobox"?!1:In},[In,Qt]),Wn=h.useMemo(function(){return w(Wr,Si)},[JSON.stringify(Wr),Si]),Pi=(0,f.Z)("",{value:$r!==void 0?$r:An,postState:function(Vi){return Vi||""}}),Ji=(0,ne.Z)(Pi,2),si=Ji[0],dn=Ji[1],rn=hr(nr,qt,Wn,jt,Wt),Ln=rn.valueOptions,wn=rn.labelOptions,Kn=rn.options,ui=h.useCallback(function(Bi){var Vi=ce(Bi);return Vi.map(function(Oi){var Wi,ua,_a,Xo,Io;if(_i(Oi))Wi=Oi;else{var _o;_a=Oi.key,ua=Oi.label,Wi=(_o=Oi.value)!==null&&_o!==void 0?_o:_a}var Za=Ln.get(Wi);if(Za){var Ba;if(ua===void 0&&(ua=Za==null?void 0:Za[Wt||Wn.label]),_a===void 0&&(_a=(Ba=Za==null?void 0:Za.key)!==null&&Ba!==void 0?Ba:Wi),Xo=Za==null?void 0:Za.disabled,Io=Za==null?void 0:Za.title,0)var da}return{label:ua,value:Wi,key:_a,disabled:Xo,title:Io}})},[Wn,Wt,Ln]),Fi=(0,f.Z)(qn,{value:ki}),la=(0,ne.Z)(Fi,2),ta=la[0],ja=la[1],io=h.useMemo(function(){var Bi,Vi=ui(ta);return Qt==="combobox"&&xe((Bi=Vi[0])===null||Bi===void 0?void 0:Bi.value)?[]:Vi},[ta,ui,Qt]),jn=_t(io,Ln),Zn=(0,ne.Z)(jn,2),ri=Zn[0],ra=Zn[1],La=h.useMemo(function(){if(!Qt&&ri.length===1){var Bi=ri[0];if(Bi.value===null&&(Bi.label===null||Bi.label===void 0))return[]}return ri.map(function(Vi){var Oi;return(0,Te.Z)((0,Te.Z)({},Vi),{},{label:(Oi=Vi.label)!==null&&Oi!==void 0?Oi:Vi.value})})},[Qt,ri]),ca=h.useMemo(function(){return new Set(ri.map(function(Bi){return Bi.value}))},[ri]);h.useEffect(function(){if(Qt==="combobox"){var Bi,Vi=(Bi=ri[0])===null||Bi===void 0?void 0:Bi.value;dn(Le(Vi)?String(Vi):"")}},[ri]);var Hi=br(function(Bi,Vi){var Oi,Wi=Vi!=null?Vi:Bi;return Oi={},(0,Q.Z)(Oi,Wn.value,Bi),(0,Q.Z)(Oi,Wn.label,Wi),Oi}),za=h.useMemo(function(){if(Qt!=="tags")return Kn;var Bi=(0,ue.Z)(Kn),Vi=function(Wi){return Ln.has(Wi)};return(0,ue.Z)(ri).sort(function(Oi,Wi){return Oi.value<Wi.value?-1:1}).forEach(function(Oi){var Wi=Oi.value;Vi(Wi)||Bi.push(Hi(Wi,Oi.label))}),Bi},[Hi,Kn,Ln,ri,Qt]),ka=st(za,Wn,si,Mi,jt),co=h.useMemo(function(){return Qt!=="tags"||!si||ka.some(function(Bi){return Bi[jt||"value"]===si})||ka.some(function(Bi){return Bi[Wn.value]===si})?ka:[Hi(si)].concat((0,ue.Z)(ka))},[Hi,jt,Qt,ka,si,Wn]),Ya=h.useMemo(function(){return an?(0,ue.Z)(co).sort(function(Bi,Vi){return an(Bi,Vi)}):co},[co,an]),Ca=h.useMemo(function(){return ee(Ya,{fieldNames:Wn,childrenAsData:Si})},[Ya,Wn,Si]),mi=function(Vi){var Oi=ui(Vi);if(ja(Oi),ln&&(Oi.length!==ri.length||Oi.some(function(_a,Xo){var Io;return((Io=ri[Xo])===null||Io===void 0?void 0:Io.value)!==(_a==null?void 0:_a.value)}))){var Wi=Nn?Oi:Oi.map(function(_a){return _a.value}),ua=Oi.map(function(_a){return Be(ra(_a.value))});ln(ni?Wi:Wi[0],ni?ua:ua[0])}},Aa=h.useState(null),Oo=(0,ne.Z)(Aa,2),mo=Oo[0],qa=Oo[1],Ni=h.useState(0),To=(0,ne.Z)(Ni,2),go=To[0],el=To[1],Wo=Xt!==void 0?Xt:Qt!=="combobox",Rs=h.useCallback(function(Bi,Vi){var Oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=Oi.source,ua=Wi===void 0?"keyboard":Wi;el(Vi),Tr&&Qt==="combobox"&&Bi!==null&&ua==="keyboard"&&qa(String(Bi))},[Tr,Qt]),Go=function(Vi,Oi,Wi){var ua=function(){var Ao,Oa=ra(Vi);return[Nn?{label:Oa==null?void 0:Oa[Wn.label],value:Vi,key:(Ao=Oa==null?void 0:Oa.key)!==null&&Ao!==void 0?Ao:Vi}:Vi,Be(Oa)]};if(Oi&&sn){var _a=ua(),Xo=(0,ne.Z)(_a,2),Io=Xo[0],_o=Xo[1];sn(Io,_o)}else if(!Oi&&Sn&&Wi!=="clear"){var Za=ua(),Ba=(0,ne.Z)(Za,2),da=Ba[0],Da=Ba[1];Sn(da,Da)}},xl=br(function(Bi,Vi){var Oi,Wi=ni?Vi.selected:!0;Wi?Oi=ni?[].concat((0,ue.Z)(ri),[Bi]):[Bi]:Oi=ri.filter(function(ua){return ua.value!==Bi}),mi(Oi),Go(Bi,Wi),Qt==="combobox"?qa(""):(!Ee||mn)&&(dn(""),qa(""))}),$a=function(Vi,Oi){mi(Vi);var Wi=Oi.type,ua=Oi.values;(Wi==="remove"||Wi==="clear")&&ua.forEach(function(_a){Go(_a.value,!1,Wi)})},Qa=function(Vi,Oi){if(dn(Vi),qa(null),Oi.source==="submit"){var Wi=(Vi||"").trim();if(Wi){var ua=Array.from(new Set([].concat((0,ue.Z)(ca),[Wi])));mi(ua),Go(Wi,!0),dn("")}return}Oi.source!=="blur"&&(Qt==="combobox"&&mi(Vi),Rr==null||Rr(Vi))},Sa=function(Vi){var Oi=Vi;Qt!=="tags"&&(Oi=Vi.map(function(ua){var _a=wn.get(ua);return _a==null?void 0:_a.value}).filter(function(ua){return ua!==void 0}));var Wi=Array.from(new Set([].concat((0,ue.Z)(ca),(0,ue.Z)(Oi))));mi(Wi),Wi.forEach(function(ua){Go(ua,!0)})},Qs=h.useMemo(function(){var Bi=Lr!==!1&&pi!==!1;return(0,Te.Z)((0,Te.Z)({},rn),{},{flattenOptions:Ca,onActiveValue:Rs,defaultActiveFirstOption:Wo,onSelect:xl,menuItemSelectedIcon:Nr,rawValues:ca,fieldNames:Wn,virtual:Bi,direction:Jr,listHeight:Dn,listItemHeight:Yn,childrenAsData:Si})},[rn,Ca,Rs,Wo,xl,Nr,ca,Wn,Lr,pi,Dn,Yn,Si]);return h.createElement(en.Provider,{value:Qs},h.createElement(qe,(0,ge.Z)({},wi,{id:Mn,prefixCls:fr,ref:lt,omitDomProps:Xi,mode:Qt,displayValues:La,onDisplayValuesChange:$a,direction:Jr,searchValue:si,onSearch:Qa,autoClearSearchValue:mn,onSearchSplit:Sa,dropdownMatchSelectWidth:pi,OptionList:ci,emptyOptions:!Ca.length,activeValue:mo,activeDescendantId:"".concat(Mn,"_list_").concat(go)})))}),Qi=oi;Qi.Option=rr,Qi.OptGroup=Ur;var be=Qi,Ue=be},9296:function(xn,er,x){"use strict";x.r(er),x.d(er,{ResizableTextArea:function(){return je},default:function(){return xe}});var ge=x(92413),ue=x(33708),Q=x(400),Te=x(39559),ne=x(33606),G=x(37061),B=x(26407),f=x(92310),E=x.n(f),h=x(93681),Z=x(5643),S=x(18929),_=x(59301),N=x(29301),R=x(34280),I=x(16089),Y=`
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;
`,K=["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"],se={},te;function X(Re){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=Re.getAttribute("id")||Re.getAttribute("data-reactid")||Re.getAttribute("name");if(ve&&se[ke])return se[ke];var fe=window.getComputedStyle(Re),ye=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),at=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),rt=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),nt=K.map(function(Nt){return"".concat(Nt,":").concat(fe.getPropertyValue(Nt))}).join(";"),ut={sizingStyle:nt,paddingSize:at,borderSize:rt,boxSizing:ye};return ve&&ke&&(se[ke]=ut),ut}function W(Re){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;te||(te=document.createElement("textarea"),te.setAttribute("tab-index","-1"),te.setAttribute("aria-hidden","true"),document.body.appendChild(te)),Re.getAttribute("wrap")?te.setAttribute("wrap",Re.getAttribute("wrap")):te.removeAttribute("wrap");var ye=X(Re,ve),at=ye.paddingSize,rt=ye.borderSize,nt=ye.boxSizing,ut=ye.sizingStyle;te.setAttribute("style","".concat(ut,";").concat(Y)),te.value=Re.value||Re.placeholder||"";var Nt=void 0,zt=void 0,Ht,cr=te.scrollHeight;if(nt==="border-box"?cr+=rt:nt==="content-box"&&(cr-=at),ke!==null||fe!==null){te.value=" ";var or=te.scrollHeight-at;ke!==null&&(Nt=or*ke,nt==="border-box"&&(Nt=Nt+at+rt),cr=Math.max(Nt,cr)),fe!==null&&(zt=or*fe,nt==="border-box"&&(zt=zt+at+rt),Ht=cr>zt?"":"hidden",cr=Math.min(zt,cr))}var yr={height:cr,overflowY:Ht,resize:"none"};return Nt&&(yr.minHeight=Nt),zt&&(yr.maxHeight=zt),yr}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,he=1,Ne=2,Ce=_.forwardRef(function(Re,ve){var ke=Re,fe=ke.prefixCls,ye=ke.onPressEnter,at=ke.defaultValue,rt=ke.value,nt=ke.autoSize,ut=ke.onResize,Nt=ke.className,zt=ke.style,Ht=ke.disabled,cr=ke.onChange,or=ke.onInternalAutoSize,yr=(0,G.Z)(ke,j),dr=(0,S.Z)(at,{value:rt,postState:function(Ur){return Ur!=null?Ur:""}}),$=(0,ne.Z)(dr,2),Xe=$[0],L=$[1],p=function(Ur){L(Ur.target.value),cr==null||cr(Ur)},u=_.useRef();_.useImperativeHandle(ve,function(){return{textArea:u.current}});var w=_.useMemo(function(){return nt&&(0,Te.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),ee=(0,ne.Z)(w,2),Be=ee[0],T=ee[1],ae=!!nt,Ge=function(){try{if(document.activeElement===u.current){var Ur=u.current,Qr=Ur.selectionStart,rr=Ur.selectionEnd,Ar=Ur.scrollTop;u.current.setSelectionRange(Qr,rr),u.current.scrollTop=Ar}}catch(jr){}},Ee=_.useState(Ne),me=(0,ne.Z)(Ee,2),qe=me[0],_t=me[1],pe=_.useState(),st=(0,ne.Z)(pe,2),At=st[0],Pe=st[1],Ie=function(){_t(le)};(0,R.Z)(function(){ae&&Ie()},[rt,Be,T,ae]),(0,R.Z)(function(){if(qe===le)_t(he);else if(qe===he){var Mr=W(u.current,!1,Be,T);_t(Ne),Pe(Mr)}else Ge()},[qe]);var vt=_.useRef(),Ut=function(){I.Z.cancel(vt.current)},Rt=function(Ur){qe===Ne&&(ut==null||ut(Ur),nt&&(Ut(),vt.current=(0,I.Z)(function(){Ie()})))};_.useEffect(function(){return Ut},[]);var hr=ae?At:null,br=(0,ue.Z)((0,ue.Z)({},zt),hr);return(qe===le||qe===he)&&(br.overflowY="hidden",br.overflowX="hidden"),_.createElement(N.Z,{onResize:Rt,disabled:!(nt||ut)},_.createElement("textarea",(0,ge.Z)({},yr,{ref:u,style:br,className:E()(fe,Nt,(0,Q.Z)({},"".concat(fe,"-disabled"),Ht)),disabled:Ht,value:Xe,onChange:p})))}),je=Ce,q=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ce(Re,ve){return(0,B.Z)(Re||"").slice(0,ve).join("")}function k(Re,ve,ke,fe){var ye=ke;return Re?ye=ce(ke,fe):(0,B.Z)(ve||"").length<ke.length&&(0,B.Z)(ke||"").length>fe&&(ye=ve),ye}var ot=_.forwardRef(function(Re,ve){var ke,fe=Re.defaultValue,ye=Re.value,at=Re.onFocus,rt=Re.onBlur,nt=Re.onChange,ut=Re.allowClear,Nt=Re.maxLength,zt=Re.onCompositionStart,Ht=Re.onCompositionEnd,cr=Re.suffix,or=Re.prefixCls,yr=or===void 0?"rc-textarea":or,dr=Re.classes,$=Re.showCount,Xe=Re.className,L=Re.style,p=Re.disabled,u=Re.hidden,w=Re.classNames,ee=Re.styles,Be=Re.onResize,T=(0,G.Z)(Re,q),ae=(0,S.Z)(fe,{value:ye,defaultValue:fe}),Ge=(0,ne.Z)(ae,2),Ee=Ge[0],me=Ge[1],qe=(0,_.useRef)(null),_t=_.useState(!1),pe=(0,ne.Z)(_t,2),st=pe[0],At=pe[1],Pe=_.useState(!1),Ie=(0,ne.Z)(Pe,2),vt=Ie[0],Ut=Ie[1],Rt=_.useRef(),hr=_.useRef(0),br=_.useState(null),Mr=(0,ne.Z)(br,2),Ur=Mr[0],Qr=Mr[1],rr=function(){var _i;(_i=qe.current)===null||_i===void 0||_i.textArea.focus()};(0,_.useImperativeHandle)(ve,function(){return{resizableTextArea:qe.current,focus:rr,blur:function(){var _i;(_i=qe.current)===null||_i===void 0||_i.textArea.blur()}}}),(0,_.useEffect)(function(){At(function(Xi){return!p&&Xi})},[p]);var Ar=Number(Nt)>0,jr=function(_i){Ut(!0),Rt.current=Ee,hr.current=_i.currentTarget.selectionStart,zt==null||zt(_i)},cn=function(_i){Ut(!1);var oi=_i.currentTarget.value;if(Ar){var Qi,be=hr.current>=Nt+1||hr.current===((Qi=Rt.current)===null||Qi===void 0?void 0:Qi.length);oi=k(be,Rt.current,oi,Nt)}oi!==Ee&&(me(oi),(0,Z.rJ)(_i.currentTarget,_i,nt,oi)),Ht==null||Ht(_i)},Tn=function(_i){var oi=_i.target.value;if(!vt&&Ar){var Qi=_i.target.selectionStart>=Nt+1||_i.target.selectionStart===oi.length||!_i.target.selectionStart;oi=k(Qi,Ee,oi,Nt)}me(oi),(0,Z.rJ)(_i.currentTarget,_i,nt,oi)},en=function(_i){var oi=T.onPressEnter,Qi=T.onKeyDown;_i.key==="Enter"&&oi&&oi(_i),Qi==null||Qi(_i)},Qn=function(_i){At(!0),at==null||at(_i)},li=function(_i){At(!1),rt==null||rt(_i)},Pr=function(_i){var oi;me(""),rr(),(0,Z.rJ)((oi=qe.current)===null||oi===void 0?void 0:oi.textArea,_i,nt)},ti=(0,Z.D7)(Ee);!vt&&Ar&&ye==null&&(ti=ce(ti,Nt));var yi=cr,ci;if($){var Ci=(0,B.Z)(ti).length;(0,Te.Z)($)==="object"?ci=$.formatter({value:ti,count:Ci,maxLength:Nt}):ci="".concat(Ci).concat(Ar?" / ".concat(Nt):""),yi=_.createElement(_.Fragment,null,yi,_.createElement("span",{className:E()("".concat(yr,"-data-count"),w==null?void 0:w.count),style:ee==null?void 0:ee.count},ci))}var hi=function(_i){var oi;Be==null||Be(_i),(oi=qe.current)!==null&&oi!==void 0&&oi.textArea.style.height&&Qr(!0)},Ri=!T.autoSize&&!$&&!ut,ba=_.createElement(h.BaseInput,{value:ti,allowClear:ut,handleReset:Pr,suffix:yi,prefixCls:yr,classes:{affixWrapper:E()(dr==null?void 0:dr.affixWrapper,(ke={},(0,Q.Z)(ke,"".concat(yr,"-show-count"),$),(0,Q.Z)(ke,"".concat(yr,"-textarea-allow-clear"),ut),ke))},disabled:p,focused:st,className:Xe,style:(0,ue.Z)((0,ue.Z)({},L),Ur&&!Ri?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ci=="string"?ci:void 0}},hidden:u,inputElement:_.createElement(je,(0,ge.Z)({},T,{onKeyDown:en,onChange:Tn,onFocus:Qn,onBlur:li,onCompositionStart:jr,onCompositionEnd:cn,className:w==null?void 0:w.textarea,style:(0,ue.Z)((0,ue.Z)({},ee==null?void 0:ee.textarea),{},{resize:L==null?void 0:L.resize}),disabled:p,prefixCls:yr,onResize:hi,ref:qe}))});return ba}),Le=ot,xe=Le},39417:function(xn,er,x){"use strict";x.d(er,{Z:function(){return he}});var ge=x(92413),ue=x(400),Q=x(37061),Te=x(33708),ne=x(6909),G=x(4771),B=x(25314),f=x(9427),E=x(25440),h=x(92310),Z=x.n(h),S=x(26112),_=x(59301),N=x(39378),R=function(Ce){for(var je=Ce.prefixCls,q=Ce.level,ce=Ce.isStart,k=Ce.isEnd,ot="".concat(je,"-indent-unit"),Le=[],xe=0;xe<q;xe+=1){var Re;Le.push(_.createElement("span",{key:xe,className:Z()(ot,(Re={},(0,ue.Z)(Re,"".concat(ot,"-start"),ce[xe]),(0,ue.Z)(Re,"".concat(ot,"-end"),k[xe]),Re))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},Le)},I=_.memo(R),Y=x(67841),K=x(71430),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",X="close",W="---",j=function(Ne){(0,f.Z)(je,Ne);var Ce=(0,E.Z)(je);function je(){var q;(0,ne.Z)(this,je);for(var ce=arguments.length,k=new Array(ce),ot=0;ot<ce;ot++)k[ot]=arguments[ot];return q=Ce.call.apply(Ce,[this].concat(k)),q.state={dragNodeHighlight:!1},q.selectHandle=void 0,q.cacheIndent=void 0,q.onSelectorClick=function(Le){var xe=q.props.context.onNodeClick;xe(Le,(0,K.F)(q.props)),q.isSelectable()?q.onSelect(Le):q.onCheck(Le)},q.onSelectorDoubleClick=function(Le){var xe=q.props.context.onNodeDoubleClick;xe(Le,(0,K.F)(q.props))},q.onSelect=function(Le){if(!q.isDisabled()){var xe=q.props.context.onNodeSelect;xe(Le,(0,K.F)(q.props))}},q.onCheck=function(Le){if(!q.isDisabled()){var xe=q.props,Re=xe.disableCheckbox,ve=xe.checked,ke=q.props.context.onNodeCheck;if(!(!q.isCheckable()||Re)){var fe=!ve;ke(Le,(0,K.F)(q.props),fe)}}},q.onMouseEnter=function(Le){var xe=q.props.context.onNodeMouseEnter;xe(Le,(0,K.F)(q.props))},q.onMouseLeave=function(Le){var xe=q.props.context.onNodeMouseLeave;xe(Le,(0,K.F)(q.props))},q.onContextMenu=function(Le){var xe=q.props.context.onNodeContextMenu;xe(Le,(0,K.F)(q.props))},q.onDragStart=function(Le){var xe=q.props.context.onNodeDragStart;Le.stopPropagation(),q.setState({dragNodeHighlight:!0}),xe(Le,(0,B.Z)(q));try{Le.dataTransfer.setData("text/plain","")}catch(Re){}},q.onDragEnter=function(Le){var xe=q.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),xe(Le,(0,B.Z)(q))},q.onDragOver=function(Le){var xe=q.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),xe(Le,(0,B.Z)(q))},q.onDragLeave=function(Le){var xe=q.props.context.onNodeDragLeave;Le.stopPropagation(),xe(Le,(0,B.Z)(q))},q.onDragEnd=function(Le){var xe=q.props.context.onNodeDragEnd;Le.stopPropagation(),q.setState({dragNodeHighlight:!1}),xe(Le,(0,B.Z)(q))},q.onDrop=function(Le){var xe=q.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),q.setState({dragNodeHighlight:!1}),xe(Le,(0,B.Z)(q))},q.onExpand=function(Le){var xe=q.props,Re=xe.loading,ve=xe.context.onNodeExpand;Re||ve(Le,(0,K.F)(q.props))},q.setSelectHandle=function(Le){q.selectHandle=Le},q.getNodeState=function(){var Le=q.props.expanded;return q.isLeaf()?null:Le?te:X},q.hasChildren=function(){var Le=q.props.eventKey,xe=q.props.context.keyEntities,Re=(0,Y.Z)(xe,Le)||{},ve=Re.children;return!!(ve||[]).length},q.isLeaf=function(){var Le=q.props,xe=Le.isLeaf,Re=Le.loaded,ve=q.props.context.loadData,ke=q.hasChildren();return xe===!1?!1:xe||!ve&&!ke||ve&&Re&&!ke},q.isDisabled=function(){var Le=q.props.disabled,xe=q.props.context.disabled;return!!(xe||Le)},q.isCheckable=function(){var Le=q.props.checkable,xe=q.props.context.checkable;return!xe||Le===!1?!1:xe},q.syncLoadData=function(Le){var xe=Le.expanded,Re=Le.loading,ve=Le.loaded,ke=q.props.context,fe=ke.loadData,ye=ke.onNodeLoad;Re||fe&&xe&&!q.isLeaf()&&!q.hasChildren()&&!ve&&ye((0,K.F)(q.props))},q.isDraggable=function(){var Le=q.props,xe=Le.data,Re=Le.context.draggable;return!!(Re&&(!Re.nodeDraggable||Re.nodeDraggable(xe)))},q.renderDragHandler=function(){var Le=q.props.context,xe=Le.draggable,Re=Le.prefixCls;return xe!=null&&xe.icon?_.createElement("span",{className:"".concat(Re,"-draggable-icon")},xe.icon):null},q.renderSwitcherIconDom=function(Le){var xe=q.props.switcherIcon,Re=q.props.context.switcherIcon,ve=xe||Re;return typeof ve=="function"?ve((0,Te.Z)((0,Te.Z)({},q.props),{},{isLeaf:Le})):ve},q.renderSwitcher=function(){var Le=q.props.expanded,xe=q.props.context.prefixCls;if(q.isLeaf()){var Re=q.renderSwitcherIconDom(!0);return Re!==!1?_.createElement("span",{className:Z()("".concat(xe,"-switcher"),"".concat(xe,"-switcher-noop"))},Re):null}var ve=Z()("".concat(xe,"-switcher"),"".concat(xe,"-switcher_").concat(Le?te:X)),ke=q.renderSwitcherIconDom(!1);return ke!==!1?_.createElement("span",{onClick:q.onExpand,className:ve},ke):null},q.renderCheckbox=function(){var Le=q.props,xe=Le.checked,Re=Le.halfChecked,ve=Le.disableCheckbox,ke=q.props.context.prefixCls,fe=q.isDisabled(),ye=q.isCheckable();if(!ye)return null;var at=typeof ye!="boolean"?ye:null;return _.createElement("span",{className:Z()("".concat(ke,"-checkbox"),xe&&"".concat(ke,"-checkbox-checked"),!xe&&Re&&"".concat(ke,"-checkbox-indeterminate"),(fe||ve)&&"".concat(ke,"-checkbox-disabled")),onClick:q.onCheck},at)},q.renderIcon=function(){var Le=q.props.loading,xe=q.props.context.prefixCls;return _.createElement("span",{className:Z()("".concat(xe,"-iconEle"),"".concat(xe,"-icon__").concat(q.getNodeState()||"docu"),Le&&"".concat(xe,"-icon_loading"))})},q.renderSelector=function(){var Le=q.state.dragNodeHighlight,xe=q.props,Re=xe.title,ve=Re===void 0?W:Re,ke=xe.selected,fe=xe.icon,ye=xe.loading,at=xe.data,rt=q.props.context,nt=rt.prefixCls,ut=rt.showIcon,Nt=rt.icon,zt=rt.loadData,Ht=rt.titleRender,cr=q.isDisabled(),or="".concat(nt,"-node-content-wrapper"),yr;if(ut){var dr=fe||Nt;yr=dr?_.createElement("span",{className:Z()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof dr=="function"?dr(q.props):dr):q.renderIcon()}else zt&&ye&&(yr=q.renderIcon());var $;typeof ve=="function"?$=ve(at):Ht?$=Ht(at):$=ve;var Xe=_.createElement("span",{className:"".concat(nt,"-title")},$);return _.createElement("span",{ref:q.setSelectHandle,title:typeof ve=="string"?ve:"",className:Z()("".concat(or),"".concat(or,"-").concat(q.getNodeState()||"normal"),!cr&&(ke||Le)&&"".concat(nt,"-node-selected")),onMouseEnter:q.onMouseEnter,onMouseLeave:q.onMouseLeave,onContextMenu:q.onContextMenu,onClick:q.onSelectorClick,onDoubleClick:q.onSelectorDoubleClick},yr,Xe,q.renderDropIndicator())},q.renderDropIndicator=function(){var Le=q.props,xe=Le.disabled,Re=Le.eventKey,ve=q.props.context,ke=ve.draggable,fe=ve.dropLevelOffset,ye=ve.dropPosition,at=ve.prefixCls,rt=ve.indent,nt=ve.dropIndicatorRender,ut=ve.dragOverNodeKey,Nt=ve.direction,zt=!!ke,Ht=!xe&&zt&&ut===Re,cr=rt!=null?rt:q.cacheIndent;return q.cacheIndent=rt,Ht?nt({dropPosition:ye,dropLevelOffset:fe,indent:cr,prefixCls:at,direction:Nt}):null},q}return(0,G.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ce=this.props.selectable,k=this.props.context.selectable;return typeof ce=="boolean"?ce:k}},{key:"render",value:function(){var ce,k=this.props,ot=k.eventKey,Le=k.className,xe=k.style,Re=k.dragOver,ve=k.dragOverGapTop,ke=k.dragOverGapBottom,fe=k.isLeaf,ye=k.isStart,at=k.isEnd,rt=k.expanded,nt=k.selected,ut=k.checked,Nt=k.halfChecked,zt=k.loading,Ht=k.domRef,cr=k.active,or=k.data,yr=k.onMouseMove,dr=k.selectable,$=(0,Q.Z)(k,se),Xe=this.props.context,L=Xe.prefixCls,p=Xe.filterTreeNode,u=Xe.keyEntities,w=Xe.dropContainerKey,ee=Xe.dropTargetKey,Be=Xe.draggingNodeKey,T=this.isDisabled(),ae=(0,S.Z)($,{aria:!0,data:!0}),Ge=(0,Y.Z)(u,ot)||{},Ee=Ge.level,me=at[at.length-1],qe=this.isDraggable(),_t=!T&&qe,pe=Be===ot,st=dr!==void 0?{"aria-selected":!!dr}:void 0;return _.createElement("div",(0,ge.Z)({ref:Ht,className:Z()(Le,"".concat(L,"-treenode"),(ce={},(0,ue.Z)(ce,"".concat(L,"-treenode-disabled"),T),(0,ue.Z)(ce,"".concat(L,"-treenode-switcher-").concat(rt?"open":"close"),!fe),(0,ue.Z)(ce,"".concat(L,"-treenode-checkbox-checked"),ut),(0,ue.Z)(ce,"".concat(L,"-treenode-checkbox-indeterminate"),Nt),(0,ue.Z)(ce,"".concat(L,"-treenode-selected"),nt),(0,ue.Z)(ce,"".concat(L,"-treenode-loading"),zt),(0,ue.Z)(ce,"".concat(L,"-treenode-active"),cr),(0,ue.Z)(ce,"".concat(L,"-treenode-leaf-last"),me),(0,ue.Z)(ce,"".concat(L,"-treenode-draggable"),qe),(0,ue.Z)(ce,"dragging",pe),(0,ue.Z)(ce,"drop-target",ee===ot),(0,ue.Z)(ce,"drop-container",w===ot),(0,ue.Z)(ce,"drag-over",!T&&Re),(0,ue.Z)(ce,"drag-over-gap-top",!T&&ve),(0,ue.Z)(ce,"drag-over-gap-bottom",!T&&ke),(0,ue.Z)(ce,"filter-node",p&&p((0,K.F)(this.props))),ce)),style:xe,draggable:_t,"aria-grabbed":pe,onDragStart:_t?this.onDragStart:void 0,onDragEnter:qe?this.onDragEnter:void 0,onDragOver:qe?this.onDragOver:void 0,onDragLeave:qe?this.onDragLeave:void 0,onDrop:qe?this.onDrop:void 0,onDragEnd:qe?this.onDragEnd:void 0,onMouseMove:yr},st,ae),_.createElement(I,{prefixCls:L,level:Ee,isStart:ye,isEnd:at}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(_.Component),le=function(Ce){return _.createElement(N.k.Consumer,null,function(je){return _.createElement(j,(0,ge.Z)({},Ce,{context:je}))})};le.displayName="TreeNode",le.isTreeNode=1;var he=le},39378:function(xn,er,x){"use strict";x.d(er,{k:function(){return ue}});var ge=x(59301),ue=ge.createContext(null)},23130:function(xn,er,x){"use strict";x.d(er,{O:function(){return he.Z},Z:function(){return Xe}});var ge=x(92413),ue=x(400),Q=x(39559),Te=x(33708),ne=x(26407),G=x(6909),B=x(4771),f=x(25314),E=x(9427),h=x(25440),Z=x(92310),S=x.n(Z),_=x(10228),N=x(26112),R=x(48736),I=x(59301),Y=x(39378);function K(L){var p=L.dropPosition,u=L.dropLevelOffset,w=L.indent,ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(p){case-1:ee.top=0,ee.left=-u*w;break;case 1:ee.bottom=0,ee.left=-u*w;break;case 0:ee.bottom=0,ee.left=w;break}return I.createElement("div",{style:ee})}function se(L){if(L==null)throw new TypeError("Cannot destructure "+L)}var te=x(33606),X=x(37061),W=x(34280),j=x(4409),le=x(77900),he=x(39417);function Ne(L,p){var u=I.useState(!1),w=(0,te.Z)(u,2),ee=w[0],Be=w[1];I.useLayoutEffect(function(){if(ee)return L(),function(){p()}},[ee]),I.useLayoutEffect(function(){return Be(!0),function(){Be(!1)}},[])}var Ce=x(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],q=function(p,u){var w=p.className,ee=p.style,Be=p.motion,T=p.motionNodes,ae=p.motionType,Ge=p.onMotionStart,Ee=p.onMotionEnd,me=p.active,qe=p.treeNodeRequiredProps,_t=(0,X.Z)(p,je),pe=I.useState(!0),st=(0,te.Z)(pe,2),At=st[0],Pe=st[1],Ie=I.useContext(Y.k),vt=Ie.prefixCls,Ut=T&&ae!=="hide";(0,W.Z)(function(){T&&Ut!==At&&Pe(Ut)},[T]);var Rt=function(){T&&Ge()},hr=I.useRef(!1),br=function(){T&&!hr.current&&(hr.current=!0,Ee())};Ne(Rt,br);var Mr=function(Qr){Ut===Qr&&br()};return T?I.createElement(le.default,(0,ge.Z)({ref:u,visible:At},Be,{motionAppear:ae==="show",onVisibleChanged:Mr}),function(Ur,Qr){var rr=Ur.className,Ar=Ur.style;return I.createElement("div",{ref:Qr,className:S()("".concat(vt,"-treenode-motion"),rr),style:Ar},T.map(function(jr){var cn=(0,ge.Z)({},(se(jr.data),jr.data)),Tn=jr.title,en=jr.key,Qn=jr.isStart,li=jr.isEnd;delete cn.children;var Pr=(0,Ce.H8)(en,qe);return I.createElement(he.Z,(0,ge.Z)({},cn,Pr,{title:Tn,active:me,data:jr.data,key:en,isStart:Qn,isEnd:li}))}))}):I.createElement(he.Z,(0,ge.Z)({domRef:u,className:w,style:ee},_t,{active:me}))};q.displayName="MotionTreeNode";var ce=I.forwardRef(q),k=ce;function ot(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=L.length,w=p.length;if(Math.abs(u-w)!==1)return{add:!1,key:null};function ee(Be,T){var ae=new Map;Be.forEach(function(Ee){ae.set(Ee,!0)});var Ge=T.filter(function(Ee){return!ae.has(Ee)});return Ge.length===1?Ge[0]:null}return u<w?{add:!0,key:ee(L,p)}:{add:!1,key:ee(p,L)}}function Le(L,p,u){var w=L.findIndex(function(ae){return ae.key===u}),ee=L[w+1],Be=p.findIndex(function(ae){return ae.key===u});if(ee){var T=p.findIndex(function(ae){return ae.key===ee.key});return p.slice(Be+1,T)}return p.slice(Be+1)}var xe=["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"],Re={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ve=function(){},ke="RC_TREE_MOTION_".concat(Math.random()),fe={key:ke},ye={key:ke,level:0,index:0,pos:"0",node:fe,nodes:[fe]},at={parent:null,children:[],pos:ye.pos,data:fe,title:null,key:ke,isStart:[],isEnd:[]};function rt(L,p,u,w){return p===!1||!u?L:L.slice(0,Math.ceil(u/w)+1)}function nt(L){var p=L.key,u=L.pos;return(0,Ce.km)(p,u)}function ut(L){for(var p=String(L.data.key),u=L;u.parent;)u=u.parent,p="".concat(u.data.key," > ").concat(p);return p}var Nt=I.forwardRef(function(L,p){var u=L.prefixCls,w=L.data,ee=L.selectable,Be=L.checkable,T=L.expandedKeys,ae=L.selectedKeys,Ge=L.checkedKeys,Ee=L.loadedKeys,me=L.loadingKeys,qe=L.halfCheckedKeys,_t=L.keyEntities,pe=L.disabled,st=L.dragging,At=L.dragOverNodeKey,Pe=L.dropPosition,Ie=L.motion,vt=L.height,Ut=L.itemHeight,Rt=L.virtual,hr=L.focusable,br=L.activeItem,Mr=L.focused,Ur=L.tabIndex,Qr=L.onKeyDown,rr=L.onFocus,Ar=L.onBlur,jr=L.onActiveChange,cn=L.onListChangeStart,Tn=L.onListChangeEnd,en=(0,X.Z)(L,xe),Qn=I.useRef(null),li=I.useRef(null);I.useImperativeHandle(p,function(){return{scrollTo:function(qr){Qn.current.scrollTo(qr)},getIndentWidth:function(){return li.current.offsetWidth}}});var Pr=I.useState(T),ti=(0,te.Z)(Pr,2),yi=ti[0],ci=ti[1],Ci=I.useState(w),hi=(0,te.Z)(Ci,2),Ri=hi[0],ba=hi[1],Xi=I.useState(w),_i=(0,te.Z)(Xi,2),oi=_i[0],Qi=_i[1],be=I.useState([]),Ue=(0,te.Z)(be,2),Me=Ue[0],lt=Ue[1],Zt=I.useState(null),Qt=(0,te.Z)(Zt,2),Sr=Qt[0],fr=Qt[1],Tr=I.useRef(w);Tr.current=w;function Wr(){var Rr=Tr.current;ba(Rr),Qi(Rr),lt([]),fr(null),Tn()}(0,W.Z)(function(){ci(T);var Rr=ot(yi,T);if(Rr.key!==null)if(Rr.add){var qr=Ri.findIndex(function(In){var an=In.key;return an===Rr.key}),mn=rt(Le(Ri,w,Rr.key),Rt,vt,Ut),sn=Ri.slice();sn.splice(qr+1,0,at),Qi(sn),lt(mn),fr("show")}else{var Sn=w.findIndex(function(In){var an=In.key;return an===Rr.key}),Hn=rt(Le(w,Ri,Rr.key),Rt,vt,Ut),pi=w.slice();pi.splice(Sn+1,0,at),Qi(pi),lt(Hn),fr("hide")}else Ri!==w&&(ba(w),Qi(w))},[T,w]),I.useEffect(function(){st||Wr()},[st]);var An=Ie?oi:w,$r={expandedKeys:T,selectedKeys:ae,loadedKeys:Ee,loadingKeys:me,checkedKeys:Ge,halfCheckedKeys:qe,dragOverNodeKey:At,dropPosition:Pe,keyEntities:_t};return I.createElement(I.Fragment,null,Mr&&br&&I.createElement("span",{style:Re,"aria-live":"assertive"},ut(br)),I.createElement("div",null,I.createElement("input",{style:Re,disabled:hr===!1||pe,tabIndex:hr!==!1?Ur:null,onKeyDown:Qr,onFocus:rr,onBlur:Ar,value:"",onChange:ve,"aria-label":"for screen reader"})),I.createElement("div",{className:"".concat(u,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},I.createElement("div",{className:"".concat(u,"-indent")},I.createElement("div",{ref:li,className:"".concat(u,"-indent-unit")}))),I.createElement(j.Z,(0,ge.Z)({},en,{data:An,itemKey:nt,height:vt,fullHeight:!1,virtual:Rt,itemHeight:Ut,prefixCls:"".concat(u,"-list"),ref:Qn,onVisibleChange:function(qr,mn){var sn=new Set(qr),Sn=mn.filter(function(Hn){return!sn.has(Hn)});Sn.some(function(Hn){return nt(Hn)===ke})&&Wr()}}),function(Rr){var qr=Rr.pos,mn=(0,ge.Z)({},(se(Rr.data),Rr.data)),sn=Rr.title,Sn=Rr.key,Hn=Rr.isStart,pi=Rr.isEnd,In=(0,Ce.km)(Sn,qr);delete mn.key,delete mn.children;var an=(0,Ce.H8)(In,$r);return I.createElement(k,(0,ge.Z)({},mn,an,{title:sn,active:!!br&&Sn===br.key,pos:qr,data:Rr.data,isStart:Hn,isEnd:pi,motion:Ie,motionNodes:Sn===ke?Me:null,motionType:Sr,onMotionStart:cn,onMotionEnd:Wr,treeNodeRequiredProps:$r,onMouseMove:function(){jr(null)}}))}))});Nt.displayName="NodeList";var zt=Nt,Ht=x(35654),cr=x(90782),or=x(67841),yr=10,dr=function(L){(0,E.Z)(u,L);var p=(0,h.Z)(u);function u(){var w;(0,G.Z)(this,u);for(var ee=arguments.length,Be=new Array(ee),T=0;T<ee;T++)Be[T]=arguments[T];return w=p.call.apply(p,[this].concat(Be)),w.destroyed=!1,w.delayedDragEnterLogic=void 0,w.loadingRetryTimes={},w.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,Ce.w$)()},w.dragStartMousePosition=null,w.dragNode=void 0,w.currentMouseOverDroppableNodeKey=null,w.listRef=I.createRef(),w.onNodeDragStart=function(ae,Ge){var Ee=w.state,me=Ee.expandedKeys,qe=Ee.keyEntities,_t=w.props.onDragStart,pe=Ge.props.eventKey;w.dragNode=Ge,w.dragStartMousePosition={x:ae.clientX,y:ae.clientY};var st=(0,Ht._5)(me,pe);w.setState({draggingNodeKey:pe,dragChildrenKeys:(0,Ht.wA)(pe,qe),indent:w.listRef.current.getIndentWidth()}),w.setExpandedKeys(st),window.addEventListener("dragend",w.onWindowDragEnd),_t==null||_t({event:ae,node:(0,Ce.F)(Ge.props)})},w.onNodeDragEnter=function(ae,Ge){var Ee=w.state,me=Ee.expandedKeys,qe=Ee.keyEntities,_t=Ee.dragChildrenKeys,pe=Ee.flattenNodes,st=Ee.indent,At=w.props,Pe=At.onDragEnter,Ie=At.onExpand,vt=At.allowDrop,Ut=At.direction,Rt=Ge.props,hr=Rt.pos,br=Rt.eventKey,Mr=(0,f.Z)(w),Ur=Mr.dragNode;if(w.currentMouseOverDroppableNodeKey!==br&&(w.currentMouseOverDroppableNodeKey=br),!Ur){w.resetDragState();return}var Qr=(0,Ht.OM)(ae,Ur,Ge,st,w.dragStartMousePosition,vt,pe,qe,me,Ut),rr=Qr.dropPosition,Ar=Qr.dropLevelOffset,jr=Qr.dropTargetKey,cn=Qr.dropContainerKey,Tn=Qr.dropTargetPos,en=Qr.dropAllowed,Qn=Qr.dragOverNodeKey;if(_t.indexOf(jr)!==-1||!en){w.resetDragState();return}if(w.delayedDragEnterLogic||(w.delayedDragEnterLogic={}),Object.keys(w.delayedDragEnterLogic).forEach(function(li){clearTimeout(w.delayedDragEnterLogic[li])}),Ur.props.eventKey!==Ge.props.eventKey&&(ae.persist(),w.delayedDragEnterLogic[hr]=window.setTimeout(function(){if(w.state.draggingNodeKey!==null){var li=(0,ne.Z)(me),Pr=(0,or.Z)(qe,Ge.props.eventKey);Pr&&(Pr.children||[]).length&&(li=(0,Ht.L0)(me,Ge.props.eventKey)),"expandedKeys"in w.props||w.setExpandedKeys(li),Ie==null||Ie(li,{node:(0,Ce.F)(Ge.props),expanded:!0,nativeEvent:ae.nativeEvent})}},800)),Ur.props.eventKey===jr&&Ar===0){w.resetDragState();return}w.setState({dragOverNodeKey:Qn,dropPosition:rr,dropLevelOffset:Ar,dropTargetKey:jr,dropContainerKey:cn,dropTargetPos:Tn,dropAllowed:en}),Pe==null||Pe({event:ae,node:(0,Ce.F)(Ge.props),expandedKeys:me})},w.onNodeDragOver=function(ae,Ge){var Ee=w.state,me=Ee.dragChildrenKeys,qe=Ee.flattenNodes,_t=Ee.keyEntities,pe=Ee.expandedKeys,st=Ee.indent,At=w.props,Pe=At.onDragOver,Ie=At.allowDrop,vt=At.direction,Ut=(0,f.Z)(w),Rt=Ut.dragNode;if(Rt){var hr=(0,Ht.OM)(ae,Rt,Ge,st,w.dragStartMousePosition,Ie,qe,_t,pe,vt),br=hr.dropPosition,Mr=hr.dropLevelOffset,Ur=hr.dropTargetKey,Qr=hr.dropContainerKey,rr=hr.dropAllowed,Ar=hr.dropTargetPos,jr=hr.dragOverNodeKey;me.indexOf(Ur)!==-1||!rr||(Rt.props.eventKey===Ur&&Mr===0?w.state.dropPosition===null&&w.state.dropLevelOffset===null&&w.state.dropTargetKey===null&&w.state.dropContainerKey===null&&w.state.dropTargetPos===null&&w.state.dropAllowed===!1&&w.state.dragOverNodeKey===null||w.resetDragState():br===w.state.dropPosition&&Mr===w.state.dropLevelOffset&&Ur===w.state.dropTargetKey&&Qr===w.state.dropContainerKey&&Ar===w.state.dropTargetPos&&rr===w.state.dropAllowed&&jr===w.state.dragOverNodeKey||w.setState({dropPosition:br,dropLevelOffset:Mr,dropTargetKey:Ur,dropContainerKey:Qr,dropTargetPos:Ar,dropAllowed:rr,dragOverNodeKey:jr}),Pe==null||Pe({event:ae,node:(0,Ce.F)(Ge.props)}))}},w.onNodeDragLeave=function(ae,Ge){w.currentMouseOverDroppableNodeKey===Ge.props.eventKey&&!ae.currentTarget.contains(ae.relatedTarget)&&(w.resetDragState(),w.currentMouseOverDroppableNodeKey=null);var Ee=w.props.onDragLeave;Ee==null||Ee({event:ae,node:(0,Ce.F)(Ge.props)})},w.onWindowDragEnd=function(ae){w.onNodeDragEnd(ae,null,!0),window.removeEventListener("dragend",w.onWindowDragEnd)},w.onNodeDragEnd=function(ae,Ge){var Ee=w.props.onDragEnd;w.setState({dragOverNodeKey:null}),w.cleanDragState(),Ee==null||Ee({event:ae,node:(0,Ce.F)(Ge.props)}),w.dragNode=null,window.removeEventListener("dragend",w.onWindowDragEnd)},w.onNodeDrop=function(ae,Ge){var Ee,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qe=w.state,_t=qe.dragChildrenKeys,pe=qe.dropPosition,st=qe.dropTargetKey,At=qe.dropTargetPos,Pe=qe.dropAllowed;if(Pe){var Ie=w.props.onDrop;if(w.setState({dragOverNodeKey:null}),w.cleanDragState(),st!==null){var vt=(0,Te.Z)((0,Te.Z)({},(0,Ce.H8)(st,w.getTreeNodeRequiredProps())),{},{active:((Ee=w.getActiveItem())===null||Ee===void 0?void 0:Ee.key)===st,data:(0,or.Z)(w.state.keyEntities,st).node}),Ut=_t.indexOf(st)!==-1;(0,R.ZP)(!Ut,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Rt=(0,Ht.yx)(At),hr={event:ae,node:(0,Ce.F)(vt),dragNode:w.dragNode?(0,Ce.F)(w.dragNode.props):null,dragNodesKeys:[w.dragNode.props.eventKey].concat(_t),dropToGap:pe!==0,dropPosition:pe+Number(Rt[Rt.length-1])};me||Ie==null||Ie(hr),w.dragNode=null}}},w.cleanDragState=function(){var ae=w.state.draggingNodeKey;ae!==null&&w.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w.dragStartMousePosition=null,w.currentMouseOverDroppableNodeKey=null},w.triggerExpandActionExpand=function(ae,Ge){var Ee=w.state,me=Ee.expandedKeys,qe=Ee.flattenNodes,_t=Ge.expanded,pe=Ge.key,st=Ge.isLeaf;if(!(st||ae.shiftKey||ae.metaKey||ae.ctrlKey)){var At=qe.filter(function(Ie){return Ie.key===pe})[0],Pe=(0,Ce.F)((0,Te.Z)((0,Te.Z)({},(0,Ce.H8)(pe,w.getTreeNodeRequiredProps())),{},{data:At.data}));w.setExpandedKeys(_t?(0,Ht._5)(me,pe):(0,Ht.L0)(me,pe)),w.onNodeExpand(ae,Pe)}},w.onNodeClick=function(ae,Ge){var Ee=w.props,me=Ee.onClick,qe=Ee.expandAction;qe==="click"&&w.triggerExpandActionExpand(ae,Ge),me==null||me(ae,Ge)},w.onNodeDoubleClick=function(ae,Ge){var Ee=w.props,me=Ee.onDoubleClick,qe=Ee.expandAction;qe==="doubleClick"&&w.triggerExpandActionExpand(ae,Ge),me==null||me(ae,Ge)},w.onNodeSelect=function(ae,Ge){var Ee=w.state.selectedKeys,me=w.state,qe=me.keyEntities,_t=me.fieldNames,pe=w.props,st=pe.onSelect,At=pe.multiple,Pe=Ge.selected,Ie=Ge[_t.key],vt=!Pe;vt?At?Ee=(0,Ht.L0)(Ee,Ie):Ee=[Ie]:Ee=(0,Ht._5)(Ee,Ie);var Ut=Ee.map(function(Rt){var hr=(0,or.Z)(qe,Rt);return hr?hr.node:null}).filter(function(Rt){return Rt});w.setUncontrolledState({selectedKeys:Ee}),st==null||st(Ee,{event:"select",selected:vt,node:Ge,selectedNodes:Ut,nativeEvent:ae.nativeEvent})},w.onNodeCheck=function(ae,Ge,Ee){var me=w.state,qe=me.keyEntities,_t=me.checkedKeys,pe=me.halfCheckedKeys,st=w.props,At=st.checkStrictly,Pe=st.onCheck,Ie=Ge.key,vt,Ut={event:"check",node:Ge,checked:Ee,nativeEvent:ae.nativeEvent};if(At){var Rt=Ee?(0,Ht.L0)(_t,Ie):(0,Ht._5)(_t,Ie),hr=(0,Ht._5)(pe,Ie);vt={checked:Rt,halfChecked:hr},Ut.checkedNodes=Rt.map(function(Ar){return(0,or.Z)(qe,Ar)}).filter(function(Ar){return Ar}).map(function(Ar){return Ar.node}),w.setUncontrolledState({checkedKeys:Rt})}else{var br=(0,cr.S)([].concat((0,ne.Z)(_t),[Ie]),!0,qe),Mr=br.checkedKeys,Ur=br.halfCheckedKeys;if(!Ee){var Qr=new Set(Mr);Qr.delete(Ie);var rr=(0,cr.S)(Array.from(Qr),{checked:!1,halfCheckedKeys:Ur},qe);Mr=rr.checkedKeys,Ur=rr.halfCheckedKeys}vt=Mr,Ut.checkedNodes=[],Ut.checkedNodesPositions=[],Ut.halfCheckedKeys=Ur,Mr.forEach(function(Ar){var jr=(0,or.Z)(qe,Ar);if(jr){var cn=jr.node,Tn=jr.pos;Ut.checkedNodes.push(cn),Ut.checkedNodesPositions.push({node:cn,pos:Tn})}}),w.setUncontrolledState({checkedKeys:Mr},!1,{halfCheckedKeys:Ur})}Pe==null||Pe(vt,Ut)},w.onNodeLoad=function(ae){var Ge=ae.key,Ee=new Promise(function(me,qe){w.setState(function(_t){var pe=_t.loadedKeys,st=pe===void 0?[]:pe,At=_t.loadingKeys,Pe=At===void 0?[]:At,Ie=w.props,vt=Ie.loadData,Ut=Ie.onLoad;if(!vt||st.indexOf(Ge)!==-1||Pe.indexOf(Ge)!==-1)return null;var Rt=vt(ae);return Rt.then(function(){var hr=w.state.loadedKeys,br=(0,Ht.L0)(hr,Ge);Ut==null||Ut(br,{event:"load",node:ae}),w.setUncontrolledState({loadedKeys:br}),w.setState(function(Mr){return{loadingKeys:(0,Ht._5)(Mr.loadingKeys,Ge)}}),me()}).catch(function(hr){if(w.setState(function(Mr){return{loadingKeys:(0,Ht._5)(Mr.loadingKeys,Ge)}}),w.loadingRetryTimes[Ge]=(w.loadingRetryTimes[Ge]||0)+1,w.loadingRetryTimes[Ge]>=yr){var br=w.state.loadedKeys;(0,R.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),w.setUncontrolledState({loadedKeys:(0,Ht.L0)(br,Ge)}),me()}qe(hr)}),{loadingKeys:(0,Ht.L0)(Pe,Ge)}})});return Ee.catch(function(){}),Ee},w.onNodeMouseEnter=function(ae,Ge){var Ee=w.props.onMouseEnter;Ee==null||Ee({event:ae,node:Ge})},w.onNodeMouseLeave=function(ae,Ge){var Ee=w.props.onMouseLeave;Ee==null||Ee({event:ae,node:Ge})},w.onNodeContextMenu=function(ae,Ge){var Ee=w.props.onRightClick;Ee&&(ae.preventDefault(),Ee({event:ae,node:Ge}))},w.onFocus=function(){var ae=w.props.onFocus;w.setState({focused:!0});for(var Ge=arguments.length,Ee=new Array(Ge),me=0;me<Ge;me++)Ee[me]=arguments[me];ae==null||ae.apply(void 0,Ee)},w.onBlur=function(){var ae=w.props.onBlur;w.setState({focused:!1}),w.onActiveChange(null);for(var Ge=arguments.length,Ee=new Array(Ge),me=0;me<Ge;me++)Ee[me]=arguments[me];ae==null||ae.apply(void 0,Ee)},w.getTreeNodeRequiredProps=function(){var ae=w.state,Ge=ae.expandedKeys,Ee=ae.selectedKeys,me=ae.loadedKeys,qe=ae.loadingKeys,_t=ae.checkedKeys,pe=ae.halfCheckedKeys,st=ae.dragOverNodeKey,At=ae.dropPosition,Pe=ae.keyEntities;return{expandedKeys:Ge||[],selectedKeys:Ee||[],loadedKeys:me||[],loadingKeys:qe||[],checkedKeys:_t||[],halfCheckedKeys:pe||[],dragOverNodeKey:st,dropPosition:At,keyEntities:Pe}},w.setExpandedKeys=function(ae){var Ge=w.state,Ee=Ge.treeData,me=Ge.fieldNames,qe=(0,Ce.oH)(Ee,ae,me);w.setUncontrolledState({expandedKeys:ae,flattenNodes:qe},!0)},w.onNodeExpand=function(ae,Ge){var Ee=w.state.expandedKeys,me=w.state,qe=me.listChanging,_t=me.fieldNames,pe=w.props,st=pe.onExpand,At=pe.loadData,Pe=Ge.expanded,Ie=Ge[_t.key];if(!qe){var vt=Ee.indexOf(Ie),Ut=!Pe;if((0,R.ZP)(Pe&&vt!==-1||!Pe&&vt===-1,"Expand state not sync with index check"),Ut?Ee=(0,Ht.L0)(Ee,Ie):Ee=(0,Ht._5)(Ee,Ie),w.setExpandedKeys(Ee),st==null||st(Ee,{node:Ge,expanded:Ut,nativeEvent:ae.nativeEvent}),Ut&&At){var Rt=w.onNodeLoad(Ge);Rt&&Rt.then(function(){var hr=(0,Ce.oH)(w.state.treeData,Ee,_t);w.setUncontrolledState({flattenNodes:hr})}).catch(function(){var hr=w.state.expandedKeys,br=(0,Ht._5)(hr,Ie);w.setExpandedKeys(br)})}}},w.onListChangeStart=function(){w.setUncontrolledState({listChanging:!0})},w.onListChangeEnd=function(){setTimeout(function(){w.setUncontrolledState({listChanging:!1})})},w.onActiveChange=function(ae){var Ge=w.state.activeKey,Ee=w.props.onActiveChange;Ge!==ae&&(w.setState({activeKey:ae}),ae!==null&&w.scrollTo({key:ae}),Ee==null||Ee(ae))},w.getActiveItem=function(){var ae=w.state,Ge=ae.activeKey,Ee=ae.flattenNodes;return Ge===null?null:Ee.find(function(me){var qe=me.key;return qe===Ge})||null},w.offsetActiveKey=function(ae){var Ge=w.state,Ee=Ge.flattenNodes,me=Ge.activeKey,qe=Ee.findIndex(function(st){var At=st.key;return At===me});qe===-1&&ae<0&&(qe=Ee.length),qe=(qe+ae+Ee.length)%Ee.length;var _t=Ee[qe];if(_t){var pe=_t.key;w.onActiveChange(pe)}else w.onActiveChange(null)},w.onKeyDown=function(ae){var Ge=w.state,Ee=Ge.activeKey,me=Ge.expandedKeys,qe=Ge.checkedKeys,_t=Ge.fieldNames,pe=w.props,st=pe.onKeyDown,At=pe.checkable,Pe=pe.selectable;switch(ae.which){case _.Z.UP:{w.offsetActiveKey(-1),ae.preventDefault();break}case _.Z.DOWN:{w.offsetActiveKey(1),ae.preventDefault();break}}var Ie=w.getActiveItem();if(Ie&&Ie.data){var vt=w.getTreeNodeRequiredProps(),Ut=Ie.data.isLeaf===!1||!!(Ie.data[_t.children]||[]).length,Rt=(0,Ce.F)((0,Te.Z)((0,Te.Z)({},(0,Ce.H8)(Ee,vt)),{},{data:Ie.data,active:!0}));switch(ae.which){case _.Z.LEFT:{Ut&&me.includes(Ee)?w.onNodeExpand({},Rt):Ie.parent&&w.onActiveChange(Ie.parent.key),ae.preventDefault();break}case _.Z.RIGHT:{Ut&&!me.includes(Ee)?w.onNodeExpand({},Rt):Ie.children&&Ie.children.length&&w.onActiveChange(Ie.children[0].key),ae.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{At&&!Rt.disabled&&Rt.checkable!==!1&&!Rt.disableCheckbox?w.onNodeCheck({},Rt,!qe.includes(Ee)):!At&&Pe&&!Rt.disabled&&Rt.selectable!==!1&&w.onNodeSelect({},Rt);break}}}st==null||st(ae)},w.setUncontrolledState=function(ae){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!w.destroyed){var me=!1,qe=!0,_t={};Object.keys(ae).forEach(function(pe){if(pe in w.props){qe=!1;return}me=!0,_t[pe]=ae[pe]}),me&&(!Ge||qe)&&w.setState((0,Te.Z)((0,Te.Z)({},_t),Ee))}},w.scrollTo=function(ae){w.listRef.current.scrollTo(ae)},w}return(0,B.Z)(u,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ee=this.props.activeKey;ee!==void 0&&ee!==this.state.activeKey&&(this.setState({activeKey:ee}),ee!==null&&this.scrollTo({key:ee}))}},{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 ee,Be=this.state,T=Be.focused,ae=Be.flattenNodes,Ge=Be.keyEntities,Ee=Be.draggingNodeKey,me=Be.activeKey,qe=Be.dropLevelOffset,_t=Be.dropContainerKey,pe=Be.dropTargetKey,st=Be.dropPosition,At=Be.dragOverNodeKey,Pe=Be.indent,Ie=this.props,vt=Ie.prefixCls,Ut=Ie.className,Rt=Ie.style,hr=Ie.showLine,br=Ie.focusable,Mr=Ie.tabIndex,Ur=Mr===void 0?0:Mr,Qr=Ie.selectable,rr=Ie.showIcon,Ar=Ie.icon,jr=Ie.switcherIcon,cn=Ie.draggable,Tn=Ie.checkable,en=Ie.checkStrictly,Qn=Ie.disabled,li=Ie.motion,Pr=Ie.loadData,ti=Ie.filterTreeNode,yi=Ie.height,ci=Ie.itemHeight,Ci=Ie.virtual,hi=Ie.titleRender,Ri=Ie.dropIndicatorRender,ba=Ie.onContextMenu,Xi=Ie.onScroll,_i=Ie.direction,oi=Ie.rootClassName,Qi=Ie.rootStyle,be=(0,N.Z)(this.props,{aria:!0,data:!0}),Ue;return cn&&((0,Q.Z)(cn)==="object"?Ue=cn:typeof cn=="function"?Ue={nodeDraggable:cn}:Ue={}),I.createElement(Y.k.Provider,{value:{prefixCls:vt,selectable:Qr,showIcon:rr,icon:Ar,switcherIcon:jr,draggable:Ue,draggingNodeKey:Ee,checkable:Tn,checkStrictly:en,disabled:Qn,keyEntities:Ge,dropLevelOffset:qe,dropContainerKey:_t,dropTargetKey:pe,dropPosition:st,dragOverNodeKey:At,indent:Pe,direction:_i,dropIndicatorRender:Ri,loadData:Pr,filterTreeNode:ti,titleRender:hi,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}},I.createElement("div",{role:"tree",className:S()(vt,Ut,oi,(ee={},(0,ue.Z)(ee,"".concat(vt,"-show-line"),hr),(0,ue.Z)(ee,"".concat(vt,"-focused"),T),(0,ue.Z)(ee,"".concat(vt,"-active-focused"),me!==null),ee)),style:Qi},I.createElement(zt,(0,ge.Z)({ref:this.listRef,prefixCls:vt,style:Rt,data:ae,disabled:Qn,selectable:Qr,checkable:!!Tn,motion:li,dragging:Ee!==null,height:yi,itemHeight:ci,virtual:Ci,focusable:br,focused:T,tabIndex:Ur,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ba,onScroll:Xi},this.getTreeNodeRequiredProps(),be))))}}],[{key:"getDerivedStateFromProps",value:function(ee,Be){var T=Be.prevProps,ae={prevProps:ee};function Ge(br){return!T&&br in ee||T&&T[br]!==ee[br]}var Ee,me=Be.fieldNames;if(Ge("fieldNames")&&(me=(0,Ce.w$)(ee.fieldNames),ae.fieldNames=me),Ge("treeData")?Ee=ee.treeData:Ge("children")&&((0,R.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ee=(0,Ce.zn)(ee.children)),Ee){ae.treeData=Ee;var qe=(0,Ce.I8)(Ee,{fieldNames:me});ae.keyEntities=(0,Te.Z)((0,ue.Z)({},ke,ye),qe.keyEntities)}var _t=ae.keyEntities||Be.keyEntities;if(Ge("expandedKeys")||T&&Ge("autoExpandParent"))ae.expandedKeys=ee.autoExpandParent||!T&&ee.defaultExpandParent?(0,Ht.r7)(ee.expandedKeys,_t):ee.expandedKeys;else if(!T&&ee.defaultExpandAll){var pe=(0,Te.Z)({},_t);delete pe[ke],ae.expandedKeys=Object.keys(pe).map(function(br){return pe[br].key})}else!T&&ee.defaultExpandedKeys&&(ae.expandedKeys=ee.autoExpandParent||ee.defaultExpandParent?(0,Ht.r7)(ee.defaultExpandedKeys,_t):ee.defaultExpandedKeys);if(ae.expandedKeys||delete ae.expandedKeys,Ee||ae.expandedKeys){var st=(0,Ce.oH)(Ee||Be.treeData,ae.expandedKeys||Be.expandedKeys,me);ae.flattenNodes=st}if(ee.selectable&&(Ge("selectedKeys")?ae.selectedKeys=(0,Ht.BT)(ee.selectedKeys,ee):!T&&ee.defaultSelectedKeys&&(ae.selectedKeys=(0,Ht.BT)(ee.defaultSelectedKeys,ee))),ee.checkable){var At;if(Ge("checkedKeys")?At=(0,Ht.E6)(ee.checkedKeys)||{}:!T&&ee.defaultCheckedKeys?At=(0,Ht.E6)(ee.defaultCheckedKeys)||{}:Ee&&(At=(0,Ht.E6)(ee.checkedKeys)||{checkedKeys:Be.checkedKeys,halfCheckedKeys:Be.halfCheckedKeys}),At){var Pe=At,Ie=Pe.checkedKeys,vt=Ie===void 0?[]:Ie,Ut=Pe.halfCheckedKeys,Rt=Ut===void 0?[]:Ut;if(!ee.checkStrictly){var hr=(0,cr.S)(vt,!0,_t);vt=hr.checkedKeys,Rt=hr.halfCheckedKeys}ae.checkedKeys=vt,ae.halfCheckedKeys=Rt}}return Ge("loadedKeys")&&(ae.loadedKeys=ee.loadedKeys),ae}}]),u}(I.Component);dr.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:K,allowDrop:function(){return!0},expandAction:!1},dr.TreeNode=he.Z;var $=dr,Xe=$},35654:function(xn,er,x){"use strict";x.d(er,{BT:function(){return I},E6:function(){return se},L0:function(){return h},OM:function(){return R},_5:function(){return E},r7:function(){return te},wA:function(){return S},yx:function(){return Z}});var ge=x(26407),ue=x(39559),Q=x(48736),Te=x(59301),ne=x(39417),G=x(67841),B=x(71430),f=null;function E(X,W){if(!X)return[];var j=X.slice(),le=j.indexOf(W);return le>=0&&j.splice(le,1),j}function h(X,W){var j=(X||[]).slice();return j.indexOf(W)===-1&&j.push(W),j}function Z(X){return X.split("-")}function S(X,W){var j=[],le=(0,G.Z)(W,X);function he(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne.forEach(function(Ce){var je=Ce.key,q=Ce.children;j.push(je),he(q)})}return he(le.children),j}function _(X){if(X.parent){var W=Z(X.pos);return Number(W[W.length-1])===X.parent.children.length-1}return!1}function N(X){var W=Z(X.pos);return Number(W[W.length-1])===0}function R(X,W,j,le,he,Ne,Ce,je,q,ce){var k,ot=X.clientX,Le=X.clientY,xe=X.target.getBoundingClientRect(),Re=xe.top,ve=xe.height,ke=(ce==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-ot),fe=(ke-12)/le,ye=(0,G.Z)(je,j.props.eventKey);if(Le<Re+ve/2){var at=Ce.findIndex(function(Xe){return Xe.key===ye.key}),rt=at<=0?0:at-1,nt=Ce[rt].key;ye=(0,G.Z)(je,nt)}var ut=ye.key,Nt=ye,zt=ye.key,Ht=0,cr=0;if(!q.includes(ut))for(var or=0;or<fe&&_(ye);or+=1)ye=ye.parent,cr+=1;var yr=W.props.data,dr=ye.node,$=!0;return N(ye)&&ye.level===0&&Le<Re+ve/2&&Ne({dragNode:yr,dropNode:dr,dropPosition:-1})&&ye.key===j.props.eventKey?Ht=-1:(Nt.children||[]).length&&q.includes(zt)?Ne({dragNode:yr,dropNode:dr,dropPosition:0})?Ht=0:$=!1:cr===0?fe>-1.5?Ne({dragNode:yr,dropNode:dr,dropPosition:1})?Ht=1:$=!1:Ne({dragNode:yr,dropNode:dr,dropPosition:0})?Ht=0:Ne({dragNode:yr,dropNode:dr,dropPosition:1})?Ht=1:$=!1:Ne({dragNode:yr,dropNode:dr,dropPosition:1})?Ht=1:$=!1,{dropPosition:Ht,dropLevelOffset:cr,dropTargetKey:ye.key,dropTargetPos:ye.pos,dragOverNodeKey:zt,dropContainerKey:Ht===0?null:((k=ye.parent)===null||k===void 0?void 0:k.key)||null,dropAllowed:$}}function I(X,W){if(X){var j=W.multiple;return j?X.slice():X.length?[X[0]]:X}}var Y=function(W){return W};function K(X,W){if(!X)return[];var j=W||{},le=j.processProps,he=le===void 0?Y:le,Ne=Array.isArray(X)?X:[X];return Ne.map(function(Ce){var je=Ce.children,q=_objectWithoutProperties(Ce,f),ce=K(je,W);return React.createElement(TreeNode,_extends({key:q.key},he(q)),ce)})}function se(X){if(!X)return null;var W;if(Array.isArray(X))W={checkedKeys:X,halfCheckedKeys:void 0};else if((0,ue.Z)(X)==="object")W={checkedKeys:X.checked||void 0,halfCheckedKeys:X.halfChecked||void 0};else return(0,Q.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return W}function te(X,W){var j=new Set;function le(he){if(!j.has(he)){var Ne=(0,G.Z)(W,he);if(Ne){j.add(he);var Ce=Ne.parent,je=Ne.node;je.disabled||Ce&&le(Ce.key)}}}return(X||[]).forEach(function(he){le(he)}),(0,ge.Z)(j)}},90782:function(xn,er,x){"use strict";x.d(er,{S:function(){return B}});var ge=x(48736),ue=x(67841);function Q(f,E){var h=new Set;return f.forEach(function(Z){E.has(Z)||h.add(Z)}),h}function Te(f){var E=f||{},h=E.disabled,Z=E.disableCheckbox,S=E.checkable;return!!(h||Z)||S===!1}function ne(f,E,h,Z){for(var S=new Set(f),_=new Set,N=0;N<=h;N+=1){var R=E.get(N)||new Set;R.forEach(function(se){var te=se.key,X=se.node,W=se.children,j=W===void 0?[]:W;S.has(te)&&!Z(X)&&j.filter(function(le){return!Z(le.node)}).forEach(function(le){S.add(le.key)})})}for(var I=new Set,Y=h;Y>=0;Y-=1){var K=E.get(Y)||new Set;K.forEach(function(se){var te=se.parent,X=se.node;if(!(Z(X)||!se.parent||I.has(se.parent.key))){if(Z(se.parent.node)){I.add(te.key);return}var W=!0,j=!1;(te.children||[]).filter(function(le){return!Z(le.node)}).forEach(function(le){var he=le.key,Ne=S.has(he);W&&!Ne&&(W=!1),!j&&(Ne||_.has(he))&&(j=!0)}),W&&S.add(te.key),j&&_.add(te.key),I.add(te.key)}})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(Q(_,S))}}function G(f,E,h,Z,S){for(var _=new Set(f),N=new Set(E),R=0;R<=Z;R+=1){var I=h.get(R)||new Set;I.forEach(function(te){var X=te.key,W=te.node,j=te.children,le=j===void 0?[]:j;!_.has(X)&&!N.has(X)&&!S(W)&&le.filter(function(he){return!S(he.node)}).forEach(function(he){_.delete(he.key)})})}N=new Set;for(var Y=new Set,K=Z;K>=0;K-=1){var se=h.get(K)||new Set;se.forEach(function(te){var X=te.parent,W=te.node;if(!(S(W)||!te.parent||Y.has(te.parent.key))){if(S(te.parent.node)){Y.add(X.key);return}var j=!0,le=!1;(X.children||[]).filter(function(he){return!S(he.node)}).forEach(function(he){var Ne=he.key,Ce=_.has(Ne);j&&!Ce&&(j=!1),!le&&(Ce||N.has(Ne))&&(le=!0)}),j||_.delete(X.key),le&&N.add(X.key),Y.add(X.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(Q(N,_))}}function B(f,E,h,Z){var S=[],_;Z?_=Z:_=Te;var N=new Set(f.filter(function(K){var se=!!(0,ue.Z)(h,K);return se||S.push(K),se})),R=new Map,I=0;Object.keys(h).forEach(function(K){var se=h[K],te=se.level,X=R.get(te);X||(X=new Set,R.set(te,X)),X.add(se),I=Math.max(I,te)}),(0,ge.ZP)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(K){return"'".concat(K,"'")}).join(", ")));var Y;return E===!0?Y=ne(N,R,I,_):Y=G(N,E.halfCheckedKeys,R,I,_),Y}},67841:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ge}});function ge(ue,Q){return ue[Q]}},71430:function(xn,er,x){"use strict";x.d(er,{F:function(){return te},H8:function(){return se},I8:function(){return K},km:function(){return S},oH:function(){return I},w$:function(){return _},zn:function(){return R}});var ge=x(39559),ue=x(26407),Q=x(33708),Te=x(37061),ne=x(11592),G=x(2738),B=x(48736),f=x(67841),E=["children"];function h(X,W){return"".concat(X,"-").concat(W)}function Z(X){return X&&X.type&&X.type.isTreeNode}function S(X,W){return X!=null?X:W}function _(X){var W=X||{},j=W.title,le=W._title,he=W.key,Ne=W.children,Ce=j||"title";return{title:Ce,_title:le||[Ce],key:he||"key",children:Ne||"children"}}function N(X,W){var j=new Map;function le(he){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(Ce){var je=Ce[W.key],q=Ce[W.children];warning(je!=null,"Tree node must have a certain key: [".concat(Ne).concat(je,"]"));var ce=String(je);warning(!j.has(ce)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(ce)),j.set(ce,!0),le(q,"".concat(Ne).concat(ce," > "))})}le(X)}function R(X){function W(j){var le=(0,ne.Z)(j);return le.map(function(he){if(!Z(he))return(0,B.ZP)(!he,"Tree/TreeNode can only accept TreeNode as children."),null;var Ne=he.key,Ce=he.props,je=Ce.children,q=(0,Te.Z)(Ce,E),ce=(0,Q.Z)({key:Ne},q),k=W(je);return k.length&&(ce.children=k),ce}).filter(function(he){return he})}return W(X)}function I(X,W,j){var le=_(j),he=le._title,Ne=le.key,Ce=le.children,je=new Set(W===!0?[]:W),q=[];function ce(k){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(Le,xe){for(var Re=h(ot?ot.pos:"0",xe),ve=S(Le[Ne],Re),ke,fe=0;fe<he.length;fe+=1){var ye=he[fe];if(Le[ye]!==void 0){ke=Le[ye];break}}var at=(0,Q.Z)((0,Q.Z)({},(0,G.Z)(Le,[].concat((0,ue.Z)(he),[Ne,Ce]))),{},{title:ke,key:ve,parent:ot,pos:Re,children:null,data:Le,isStart:[].concat((0,ue.Z)(ot?ot.isStart:[]),[xe===0]),isEnd:[].concat((0,ue.Z)(ot?ot.isEnd:[]),[xe===k.length-1])});return q.push(at),W===!0||je.has(ve)?at.children=ce(Le[Ce]||[],at):at.children=[],at})}return ce(X),q}function Y(X,W,j){var le={};(0,ge.Z)(j)==="object"?le=j:le={externalGetKey:j},le=le||{};var he=le,Ne=he.childrenPropName,Ce=he.externalGetKey,je=he.fieldNames,q=_(je),ce=q.key,k=q.children,ot=Ne||k,Le;Ce?typeof Ce=="string"?Le=function(ve){return ve[Ce]}:typeof Ce=="function"&&(Le=function(ve){return Ce(ve)}):Le=function(ve,ke){return S(ve[ce],ke)};function xe(Re,ve,ke,fe){var ye=Re?Re[ot]:X,at=Re?h(ke.pos,ve):"0",rt=Re?[].concat((0,ue.Z)(fe),[Re]):[];if(Re){var nt=Le(Re,at),ut={node:Re,index:ve,pos:at,key:nt,parentPos:ke.node?ke.pos:null,level:ke.level+1,nodes:rt};W(ut)}ye&&ye.forEach(function(Nt,zt){xe(Nt,zt,{node:Re,pos:at,level:ke?ke.level+1:-1},rt)})}xe(null)}function K(X){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=W.initWrapper,le=W.processEntity,he=W.onProcessFinished,Ne=W.externalGetKey,Ce=W.childrenPropName,je=W.fieldNames,q=arguments.length>2?arguments[2]:void 0,ce=Ne||q,k={},ot={},Le={posEntities:k,keyEntities:ot};return j&&(Le=j(Le)||Le),Y(X,function(xe){var Re=xe.node,ve=xe.index,ke=xe.pos,fe=xe.key,ye=xe.parentPos,at=xe.level,rt=xe.nodes,nt={node:Re,nodes:rt,index:ve,key:fe,pos:ke,level:at},ut=S(fe,ke);k[ke]=nt,ot[ut]=nt,nt.parent=k[ye],nt.parent&&(nt.parent.children=nt.parent.children||[],nt.parent.children.push(nt)),le&&le(nt,Le)},{externalGetKey:ce,childrenPropName:Ce,fieldNames:je}),he&&he(Le),Le}function se(X,W){var j=W.expandedKeys,le=W.selectedKeys,he=W.loadedKeys,Ne=W.loadingKeys,Ce=W.checkedKeys,je=W.halfCheckedKeys,q=W.dragOverNodeKey,ce=W.dropPosition,k=W.keyEntities,ot=(0,f.Z)(k,X),Le={eventKey:X,expanded:j.indexOf(X)!==-1,selected:le.indexOf(X)!==-1,loaded:he.indexOf(X)!==-1,loading:Ne.indexOf(X)!==-1,checked:Ce.indexOf(X)!==-1,halfChecked:je.indexOf(X)!==-1,pos:String(ot?ot.pos:""),dragOver:q===X&&ce===0,dragOverGapTop:q===X&&ce===-1,dragOverGapBottom:q===X&&ce===1};return Le}function te(X){var W=X.data,j=X.expanded,le=X.selected,he=X.checked,Ne=X.loaded,Ce=X.loading,je=X.halfChecked,q=X.dragOver,ce=X.dragOverGapTop,k=X.dragOverGapBottom,ot=X.pos,Le=X.active,xe=X.eventKey,Re=(0,Q.Z)((0,Q.Z)({},W),{},{expanded:j,selected:le,checked:he,loaded:Ne,loading:Ce,halfChecked:je,dragOver:q,dragOverGapTop:ce,dragOverGapBottom:k,pos:ot,active:Le,key:xe});return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return(0,B.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),X}}),Re}},8224:function(xn,er,x){"use strict";x.d(er,{Z:function(){return ue}});var ge=x(4676);function ue(Q,Te,ne,G){var B=ge.unstable_batchedUpdates?function(E){ge.unstable_batchedUpdates(ne,E)}:ne;return Q!=null&&Q.addEventListener&&Q.addEventListener(Te,B,G),{remove:function(){Q!=null&&Q.removeEventListener&&Q.removeEventListener(Te,B,G)}}}},55468:function(xn,er,x){"use strict";x.d(er,{g1:function(){return Z},os:function(){return _}});var ge=/margin|padding|width|height|max|min|offset/,ue={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function Te(N){return N.nodeType===1?N.ownerDocument.defaultView.getComputedStyle(N,null):{}}function ne(N,R,I){if(R=R.toLowerCase(),I==="auto"){if(R==="height")return N.offsetHeight;if(R==="width")return N.offsetWidth}return R in ue||(ue[R]=ge.test(R)),ue[R]?parseFloat(I)||0:I}function G(N,R){var I=arguments.length,Y=Te(N);return R=Q[R]?"cssFloat"in N.style?"cssFloat":"styleFloat":R,I===1?Y:ne(N,R,Y[R]||N.style[R])}function B(N,R,I){var Y=arguments.length;if(R=Q[R]?"cssFloat"in N.style?"cssFloat":"styleFloat":R,Y===3)return typeof I=="number"&&ge.test(R)&&(I="".concat(I,"px")),N.style[R]=I,I;for(var K in R)R.hasOwnProperty(K)&&B(N,K,R[K]);return Te(N)}function f(N){return N===document.body?document.documentElement.clientWidth:N.offsetWidth}function E(N){return N===document.body?window.innerHeight||document.documentElement.clientHeight:N.offsetHeight}function h(){var N=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:N,height:R}}function Z(){var N=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:N,height:R}}function S(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(N){var R=N.getBoundingClientRect(),I=document.documentElement;return{left:R.left+(window.pageXOffset||I.scrollLeft)-(I.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||I.scrollTop)-(I.clientTop||document.body.clientTop||0)}}},24514:function(xn,er,x){"use strict";x.d(er,{G:function(){return Te}});var ge=x(47273),ue=function(G){if((0,ge.Z)()&&window.document.documentElement){var B=Array.isArray(G)?G:[G],f=window.document.documentElement;return B.some(function(E){return E in f.style})}return!1},Q=function(G,B){if(!ue(G))return!1;var f=document.createElement("div"),E=f.style[G];return f.style[G]=B,f.style[G]!==E};function Te(ne,G){return!Array.isArray(ne)&&G!==void 0?Q(ne,G):ue(ne)}},4409:function(xn,er,x){"use strict";x.d(er,{Z:function(){return $}});var ge=x(92413),ue=x(39559),Q=x(33708),Te=x(400),ne=x(33606),G=x(37061),B=x(92310),f=x.n(B),E=x(29301),h=x(70425),Z=x(34280),S=x(59301),_=x(4676),N=S.forwardRef(function(Xe,L){var p=Xe.height,u=Xe.offsetY,w=Xe.offsetX,ee=Xe.children,Be=Xe.prefixCls,T=Xe.onInnerResize,ae=Xe.innerProps,Ge=Xe.rtl,Ee=Xe.extra,me={},qe={display:"flex",flexDirection:"column"};return u!==void 0&&(me={height:p,position:"relative",overflow:"hidden"},qe=(0,Q.Z)((0,Q.Z)({},qe),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(u,"px)")},Ge?"marginRight":"marginLeft",-w),"position","absolute"),"left",0),"right",0),"top",0))),S.createElement("div",{style:me},S.createElement(E.Z,{onResize:function(pe){var st=pe.offsetHeight;st&&T&&T()}},S.createElement("div",(0,ge.Z)({style:qe,className:f()((0,Te.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:L},ae),ee,Ee)))});N.displayName="Filler";var R=N;function I(Xe){var L=Xe.children,p=Xe.setRef,u=S.useCallback(function(w){p(w)},[]);return S.cloneElement(L,{ref:u})}function Y(Xe,L,p,u,w,ee,Be,T){var ae=T.getKey;return Xe.slice(L,p+1).map(function(Ge,Ee){var me=L+Ee,qe=Be(Ge,me,{style:{width:u},offsetX:w}),_t=ae(Ge);return S.createElement(I,{key:_t,setRef:function(st){return ee(Ge,st)}},qe)})}function K(Xe,L,p,u){var w=p-Xe,ee=L-p,Be=Math.min(w,ee)*2;if(u<=Be){var T=Math.floor(u/2);return u%2?p+T+1:p-T}return w>ee?p-(u-ee):p+(u-w)}function se(Xe,L,p){var u=Xe.length,w=L.length,ee,Be;if(u===0&&w===0)return null;u<w?(ee=Xe,Be=L):(ee=L,Be=Xe);var T={__EMPTY_ITEM__:!0};function ae(pe){return pe!==void 0?p(pe):T}for(var Ge=null,Ee=Math.abs(u-w)!==1,me=0;me<Be.length;me+=1){var qe=ae(ee[me]),_t=ae(Be[me]);if(qe!==_t){Ge=me,Ee=Ee||qe!==ae(Be[me+1]);break}}return Ge===null?null:{index:Ge,multiple:Ee}}function te(Xe,L,p){var u=S.useState(Xe),w=(0,ne.Z)(u,2),ee=w[0],Be=w[1],T=S.useState(null),ae=(0,ne.Z)(T,2),Ge=ae[0],Ee=ae[1];return S.useEffect(function(){var me=se(ee||[],Xe||[],L);(me==null?void 0:me.index)!==void 0&&(p==null||p(me.index),Ee(Xe[me.index])),Be(Xe)},[Xe]),[Ge]}var X=x(16089),W=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),j=W,le=function(Xe,L,p,u){var w=(0,S.useRef)(!1),ee=(0,S.useRef)(null);function Be(){clearTimeout(ee.current),w.current=!0,ee.current=setTimeout(function(){w.current=!1},50)}var T=(0,S.useRef)({top:Xe,bottom:L,left:p,right:u});return T.current.top=Xe,T.current.bottom=L,T.current.left=p,T.current.right=u,function(ae,Ge){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,me=ae?Ge<0&&T.current.left||Ge>0&&T.current.right:Ge<0&&T.current.top||Ge>0&&T.current.bottom;return Ee&&me?(clearTimeout(ee.current),w.current=!1):(!me||w.current)&&Be(),!w.current&&me}};function he(Xe,L,p,u,w,ee,Be){var T=(0,S.useRef)(0),ae=(0,S.useRef)(null),Ge=(0,S.useRef)(null),Ee=(0,S.useRef)(!1),me=le(L,p,u,w);function qe(Ie,vt){if(X.Z.cancel(ae.current),!me(!1,vt)){var Ut=Ie;if(!Ut._virtualHandled)Ut._virtualHandled=!0;else return;T.current+=vt,Ge.current=vt,j||Ut.preventDefault(),ae.current=(0,X.Z)(function(){var Rt=Ee.current?10:1;Be(T.current*Rt,!1),T.current=0})}}function _t(Ie,vt){Be(vt,!0),j||Ie.preventDefault()}var pe=(0,S.useRef)(null),st=(0,S.useRef)(null);function At(Ie){if(Xe){X.Z.cancel(st.current),st.current=(0,X.Z)(function(){pe.current=null},2);var vt=Ie.deltaX,Ut=Ie.deltaY,Rt=Ie.shiftKey,hr=vt,br=Ut;(pe.current==="sx"||!pe.current&&Rt&&Ut&&!vt)&&(hr=Ut,br=0,pe.current="sx");var Mr=Math.abs(hr),Ur=Math.abs(br);pe.current===null&&(pe.current=ee&&Mr>Ur?"x":"y"),pe.current==="y"?qe(Ie,br):_t(Ie,hr)}}function Pe(Ie){Xe&&(Ee.current=Ie.detail===Ge.current)}return[At,Pe]}function Ne(Xe,L,p,u){var w=S.useMemo(function(){return[new Map,[]]},[Xe,p.id,u]),ee=(0,ne.Z)(w,2),Be=ee[0],T=ee[1],ae=function(Ee){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee,qe=Be.get(Ee),_t=Be.get(me);if(qe===void 0||_t===void 0)for(var pe=Xe.length,st=T.length;st<pe;st+=1){var At,Pe=Xe[st],Ie=L(Pe);Be.set(Ie,st);var vt=(At=p.get(Ie))!==null&&At!==void 0?At:u;if(T[st]=(T[st-1]||0)+vt,Ie===Ee&&(qe=st),Ie===me&&(_t=st),qe!==void 0&&_t!==void 0)break}return{top:T[qe-1]||0,bottom:T[_t]}};return ae}var Ce=x(76846),je=x(6909),q=x(4771),ce=function(){function Xe(){(0,je.Z)(this,Xe),(0,Te.Z)(this,"maps",void 0),(0,Te.Z)(this,"id",0),(0,Te.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,q.Z)(Xe,[{key:"set",value:function(p,u){this.maps[p]=u,this.id+=1,this.diffKeys.add(p)}},{key:"get",value:function(p){return this.maps[p]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Xe}(),k=ce;function ot(Xe){var L=parseFloat(Xe);return isNaN(L)?0:L}function Le(Xe,L,p){var u=S.useState(0),w=(0,ne.Z)(u,2),ee=w[0],Be=w[1],T=(0,S.useRef)(new Map),ae=(0,S.useRef)(new k),Ge=(0,S.useRef)(0);function Ee(){Ge.current+=1}function me(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ee();var pe=function(){var Pe=!1;T.current.forEach(function(Ie,vt){if(Ie&&Ie.offsetParent){var Ut=(0,Ce.ZP)(Ie),Rt=Ut.offsetHeight,hr=getComputedStyle(Ut),br=hr.marginTop,Mr=hr.marginBottom,Ur=ot(br),Qr=ot(Mr),rr=Rt+Ur+Qr;ae.current.get(vt)!==rr&&(ae.current.set(vt,rr),Pe=!0)}}),Pe&&Be(function(Ie){return Ie+1})};if(_t)pe();else{Ge.current+=1;var st=Ge.current;Promise.resolve().then(function(){st===Ge.current&&pe()})}}function qe(_t,pe){var st=Xe(_t),At=T.current.get(st);pe?(T.current.set(st,pe),me()):T.current.delete(st),!At!=!pe&&(pe?L==null||L(_t):p==null||p(_t))}return(0,S.useEffect)(function(){return Ee},[]),[qe,me,ae.current,ee]}var xe=14/15;function Re(Xe,L,p){var u=(0,S.useRef)(!1),w=(0,S.useRef)(0),ee=(0,S.useRef)(0),Be=(0,S.useRef)(null),T=(0,S.useRef)(null),ae,Ge=function(_t){if(u.current){var pe=Math.ceil(_t.touches[0].pageX),st=Math.ceil(_t.touches[0].pageY),At=w.current-pe,Pe=ee.current-st,Ie=Math.abs(At)>Math.abs(Pe);Ie?w.current=pe:ee.current=st;var vt=p(Ie,Ie?At:Pe,!1,_t);vt&&_t.preventDefault(),clearInterval(T.current),vt&&(T.current=setInterval(function(){Ie?At*=xe:Pe*=xe;var Ut=Math.floor(Ie?At:Pe);(!p(Ie,Ut,!0)||Math.abs(Ut)<=.1)&&clearInterval(T.current)},16))}},Ee=function(){u.current=!1,ae()},me=function(_t){ae(),_t.touches.length===1&&!u.current&&(u.current=!0,w.current=Math.ceil(_t.touches[0].pageX),ee.current=Math.ceil(_t.touches[0].pageY),Be.current=_t.target,Be.current.addEventListener("touchmove",Ge,{passive:!1}),Be.current.addEventListener("touchend",Ee,{passive:!0}))};ae=function(){Be.current&&(Be.current.removeEventListener("touchmove",Ge),Be.current.removeEventListener("touchend",Ee))},(0,Z.Z)(function(){return Xe&&L.current.addEventListener("touchstart",me,{passive:!0}),function(){var qe;(qe=L.current)===null||qe===void 0||qe.removeEventListener("touchstart",me),ae(),clearInterval(T.current)}},[Xe])}function ve(Xe){return Math.floor(Math.pow(Xe,.5))}function ke(Xe,L){var p="touches"in Xe?Xe.touches[0]:Xe;return p[L?"pageX":"pageY"]-window[L?"scrollX":"scrollY"]}function fe(Xe,L,p){S.useEffect(function(){var u=L.current;if(Xe&&u){var w=!1,ee,Be,T=function(){X.Z.cancel(ee)},ae=function qe(){T(),ee=(0,X.Z)(function(){p(Be),qe()})},Ge=function(_t){if(!_t.target.draggable){var pe=_t;pe._virtualHandled||(pe._virtualHandled=!0,w=!0)}},Ee=function(){w=!1,T()},me=function(_t){if(w){var pe=ke(_t,!1),st=u.getBoundingClientRect(),At=st.top,Pe=st.bottom;if(pe<=At){var Ie=At-pe;Be=-ve(Ie),ae()}else if(pe>=Pe){var vt=pe-Pe;Be=ve(vt),ae()}else T()}};return u.addEventListener("mousedown",Ge),u.ownerDocument.addEventListener("mouseup",Ee),u.ownerDocument.addEventListener("mousemove",me),function(){u.removeEventListener("mousedown",Ge),u.ownerDocument.removeEventListener("mouseup",Ee),u.ownerDocument.removeEventListener("mousemove",me),T()}}},[Xe])}var ye=10;function at(Xe,L,p,u,w,ee,Be,T){var ae=S.useRef(),Ge=S.useState(null),Ee=(0,ne.Z)(Ge,2),me=Ee[0],qe=Ee[1];return(0,Z.Z)(function(){if(me&&me.times<ye){if(!Xe.current){qe(function(Pr){return(0,Q.Z)({},Pr)});return}ee();var _t=me.targetAlign,pe=me.originAlign,st=me.index,At=me.offset,Pe=Xe.current.clientHeight,Ie=!1,vt=_t,Ut=null;if(Pe){for(var Rt=_t||pe,hr=0,br=0,Mr=0,Ur=Math.min(L.length-1,st),Qr=0;Qr<=Ur;Qr+=1){var rr=w(L[Qr]);br=hr;var Ar=p.get(rr);Mr=br+(Ar===void 0?u:Ar),hr=Mr}for(var jr=Rt==="top"?At:Pe-At,cn=Ur;cn>=0;cn-=1){var Tn=w(L[cn]),en=p.get(Tn);if(en===void 0){Ie=!0;break}if(jr-=en,jr<=0)break}switch(Rt){case"top":Ut=br-At;break;case"bottom":Ut=Mr-Pe+At;break;default:{var Qn=Xe.current.scrollTop,li=Qn+Pe;br<Qn?vt="top":Mr>li&&(vt="bottom")}}Ut!==null&&Be(Ut),Ut!==me.lastTop&&(Ie=!0)}Ie&&qe((0,Q.Z)((0,Q.Z)({},me),{},{times:me.times+1,targetAlign:vt,lastTop:Ut}))}},[me,Xe.current]),function(_t){if(_t==null){T();return}if(X.Z.cancel(ae.current),typeof _t=="number")Be(_t);else if(_t&&(0,ue.Z)(_t)==="object"){var pe,st=_t.align;"index"in _t?pe=_t.index:pe=L.findIndex(function(Ie){return w(Ie)===_t.key});var At=_t.offset,Pe=At===void 0?0:At;qe({times:0,index:pe,offset:Pe,originAlign:st})}}}var rt=S.forwardRef(function(Xe,L){var p=Xe.prefixCls,u=Xe.rtl,w=Xe.scrollOffset,ee=Xe.scrollRange,Be=Xe.onStartMove,T=Xe.onStopMove,ae=Xe.onScroll,Ge=Xe.horizontal,Ee=Xe.spinSize,me=Xe.containerSize,qe=Xe.style,_t=Xe.thumbStyle,pe=Xe.showScrollBar,st=S.useState(!1),At=(0,ne.Z)(st,2),Pe=At[0],Ie=At[1],vt=S.useState(null),Ut=(0,ne.Z)(vt,2),Rt=Ut[0],hr=Ut[1],br=S.useState(null),Mr=(0,ne.Z)(br,2),Ur=Mr[0],Qr=Mr[1],rr=!u,Ar=S.useRef(),jr=S.useRef(),cn=S.useState(pe),Tn=(0,ne.Z)(cn,2),en=Tn[0],Qn=Tn[1],li=S.useRef(),Pr=function(){pe===!0||pe===!1||(clearTimeout(li.current),Qn(!0),li.current=setTimeout(function(){Qn(!1)},3e3))},ti=ee-me||0,yi=me-Ee||0,ci=S.useMemo(function(){if(w===0||ti===0)return 0;var be=w/ti;return be*yi},[w,ti,yi]),Ci=function(Ue){Ue.stopPropagation(),Ue.preventDefault()},hi=S.useRef({top:ci,dragging:Pe,pageY:Rt,startTop:Ur});hi.current={top:ci,dragging:Pe,pageY:Rt,startTop:Ur};var Ri=function(Ue){Ie(!0),hr(ke(Ue,Ge)),Qr(hi.current.top),Be(),Ue.stopPropagation(),Ue.preventDefault()};S.useEffect(function(){var be=function(Zt){Zt.preventDefault()},Ue=Ar.current,Me=jr.current;return Ue.addEventListener("touchstart",be,{passive:!1}),Me.addEventListener("touchstart",Ri,{passive:!1}),function(){Ue.removeEventListener("touchstart",be),Me.removeEventListener("touchstart",Ri)}},[]);var ba=S.useRef();ba.current=ti;var Xi=S.useRef();Xi.current=yi,S.useEffect(function(){if(Pe){var be,Ue=function(Zt){var Qt=hi.current,Sr=Qt.dragging,fr=Qt.pageY,Tr=Qt.startTop;X.Z.cancel(be);var Wr=Ar.current.getBoundingClientRect(),An=me/(Ge?Wr.width:Wr.height);if(Sr){var $r=(ke(Zt,Ge)-fr)*An,Rr=Tr;!rr&&Ge?Rr-=$r:Rr+=$r;var qr=ba.current,mn=Xi.current,sn=mn?Rr/mn:0,Sn=Math.ceil(sn*qr);Sn=Math.max(Sn,0),Sn=Math.min(Sn,qr),be=(0,X.Z)(function(){ae(Sn,Ge)})}},Me=function(){Ie(!1),T()};return window.addEventListener("mousemove",Ue,{passive:!0}),window.addEventListener("touchmove",Ue,{passive:!0}),window.addEventListener("mouseup",Me,{passive:!0}),window.addEventListener("touchend",Me,{passive:!0}),function(){window.removeEventListener("mousemove",Ue),window.removeEventListener("touchmove",Ue),window.removeEventListener("mouseup",Me),window.removeEventListener("touchend",Me),X.Z.cancel(be)}}},[Pe]),S.useEffect(function(){return Pr(),function(){clearTimeout(li.current)}},[w]),S.useImperativeHandle(L,function(){return{delayHidden:Pr}});var _i="".concat(p,"-scrollbar"),oi={position:"absolute",visibility:en?null:"hidden"},Qi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ge?(oi.height=8,oi.left=0,oi.right=0,oi.bottom=0,Qi.height="100%",Qi.width=Ee,rr?Qi.left=ci:Qi.right=ci):(oi.width=8,oi.top=0,oi.bottom=0,rr?oi.right=0:oi.left=0,Qi.width="100%",Qi.height=Ee,Qi.top=ci),S.createElement("div",{ref:Ar,className:f()(_i,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(_i,"-horizontal"),Ge),"".concat(_i,"-vertical"),!Ge),"".concat(_i,"-visible"),en)),style:(0,Q.Z)((0,Q.Z)({},oi),qe),onMouseDown:Ci,onMouseMove:Pr},S.createElement("div",{ref:jr,className:f()("".concat(_i,"-thumb"),(0,Te.Z)({},"".concat(_i,"-thumb-moving"),Pe)),style:(0,Q.Z)((0,Q.Z)({},Qi),_t),onMouseDown:Ri}))}),nt=rt,ut=20;function Nt(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p=Xe/L*Xe;return isNaN(p)&&(p=0),p=Math.max(p,ut),Math.floor(p)}var zt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ht=[],cr={overflowY:"auto",overflowAnchor:"none"};function or(Xe,L){var p=Xe.prefixCls,u=p===void 0?"rc-virtual-list":p,w=Xe.className,ee=Xe.height,Be=Xe.itemHeight,T=Xe.fullHeight,ae=T===void 0?!0:T,Ge=Xe.style,Ee=Xe.data,me=Xe.children,qe=Xe.itemKey,_t=Xe.virtual,pe=Xe.direction,st=Xe.scrollWidth,At=Xe.component,Pe=At===void 0?"div":At,Ie=Xe.onScroll,vt=Xe.onVirtualScroll,Ut=Xe.onVisibleChange,Rt=Xe.innerProps,hr=Xe.extraRender,br=Xe.styles,Mr=Xe.showScrollBar,Ur=Mr===void 0?"optional":Mr,Qr=(0,G.Z)(Xe,zt),rr=S.useCallback(function(jn){return typeof qe=="function"?qe(jn):jn==null?void 0:jn[qe]},[qe]),Ar=Le(rr,null,null),jr=(0,ne.Z)(Ar,4),cn=jr[0],Tn=jr[1],en=jr[2],Qn=jr[3],li=!!(_t!==!1&&ee&&Be),Pr=S.useMemo(function(){return Object.values(en.maps).reduce(function(jn,Zn){return jn+Zn},0)},[en.id,en.maps]),ti=li&&Ee&&(Math.max(Be*Ee.length,Pr)>ee||!!st),yi=pe==="rtl",ci=f()(u,(0,Te.Z)({},"".concat(u,"-rtl"),yi),w),Ci=Ee||Ht,hi=(0,S.useRef)(),Ri=(0,S.useRef)(),ba=(0,S.useRef)(),Xi=(0,S.useState)(0),_i=(0,ne.Z)(Xi,2),oi=_i[0],Qi=_i[1],be=(0,S.useState)(0),Ue=(0,ne.Z)(be,2),Me=Ue[0],lt=Ue[1],Zt=(0,S.useState)(!1),Qt=(0,ne.Z)(Zt,2),Sr=Qt[0],fr=Qt[1],Tr=function(){fr(!0)},Wr=function(){fr(!1)},An={getKey:rr};function $r(jn){Qi(function(Zn){var ri;typeof jn=="function"?ri=jn(Zn):ri=jn;var ra=ki(ri);return hi.current.scrollTop=ra,ra})}var Rr=(0,S.useRef)({start:0,end:Ci.length}),qr=(0,S.useRef)(),mn=te(Ci,rr),sn=(0,ne.Z)(mn,1),Sn=sn[0];qr.current=Sn;var Hn=S.useMemo(function(){if(!li)return{scrollHeight:void 0,start:0,end:Ci.length-1,offset:void 0};if(!ti){var jn;return{scrollHeight:((jn=Ri.current)===null||jn===void 0?void 0:jn.offsetHeight)||0,start:0,end:Ci.length-1,offset:void 0}}for(var Zn=0,ri,ra,La,ca=Ci.length,Hi=0;Hi<ca;Hi+=1){var za=Ci[Hi],ka=rr(za),co=en.get(ka),Ya=Zn+(co===void 0?Be:co);Ya>=oi&&ri===void 0&&(ri=Hi,ra=Zn),Ya>oi+ee&&La===void 0&&(La=Hi),Zn=Ya}return ri===void 0&&(ri=0,ra=0,La=Math.ceil(ee/Be)),La===void 0&&(La=Ci.length-1),La=Math.min(La+1,Ci.length-1),{scrollHeight:Zn,start:ri,end:La,offset:ra}},[ti,li,oi,Ci,Qn,ee]),pi=Hn.scrollHeight,In=Hn.start,an=Hn.end,jt=Hn.offset;Rr.current.start=In,Rr.current.end=an,S.useLayoutEffect(function(){var jn=en.getRecord();if(jn.size===1){var Zn=Array.from(jn)[0],ri=rr(Ci[In]);if(ri===Zn){var ra=en.get(Zn),La=ra-Be;$r(function(ca){return ca+La})}}en.resetRecord()},[pi]);var Wt=S.useState({width:0,height:ee}),nr=(0,ne.Z)(Wt,2),qt=nr[0],Xt=nr[1],Nr=function(Zn){Xt({width:Zn.offsetWidth,height:Zn.offsetHeight})},Lr=(0,S.useRef)(),Jr=(0,S.useRef)(),_n=S.useMemo(function(){return Nt(qt.width,st)},[qt.width,st]),Dn=S.useMemo(function(){return Nt(qt.height,pi)},[qt.height,pi]),Ai=pi-ee,Yn=(0,S.useRef)(Ai);Yn.current=Ai;function ki(jn){var Zn=jn;return Number.isNaN(Yn.current)||(Zn=Math.min(Zn,Yn.current)),Zn=Math.max(Zn,0),Zn}var qn=oi<=0,Nn=oi>=Ai,ln=Me<=0,wi=Me>=st,Mn=le(qn,Nn,ln,wi),ni=function(){return{x:yi?-Me:Me,y:oi}},Si=(0,S.useRef)(ni()),Mi=(0,h.useEvent)(function(jn){if(vt){var Zn=(0,Q.Z)((0,Q.Z)({},ni()),jn);(Si.current.x!==Zn.x||Si.current.y!==Zn.y)&&(vt(Zn),Si.current=Zn)}});function Wn(jn,Zn){var ri=jn;Zn?((0,_.flushSync)(function(){lt(ri)}),Mi()):$r(ri)}function Pi(jn){var Zn=jn.currentTarget.scrollTop;Zn!==oi&&$r(Zn),Ie==null||Ie(jn),Mi()}var Ji=function(Zn){var ri=Zn,ra=st?st-qt.width:0;return ri=Math.max(ri,0),ri=Math.min(ri,ra),ri},si=(0,h.useEvent)(function(jn,Zn){Zn?((0,_.flushSync)(function(){lt(function(ri){var ra=ri+(yi?-jn:jn);return Ji(ra)})}),Mi()):$r(function(ri){var ra=ri+jn;return ra})}),dn=he(li,qn,Nn,ln,wi,!!st,si),rn=(0,ne.Z)(dn,2),Ln=rn[0],wn=rn[1];Re(li,hi,function(jn,Zn,ri,ra){var La=ra;return Mn(jn,Zn,ri)?!1:!La||!La._virtualHandled?(La&&(La._virtualHandled=!0),Ln({preventDefault:function(){},deltaX:jn?Zn:0,deltaY:jn?0:Zn}),!0):!1}),fe(ti,hi,function(jn){$r(function(Zn){return Zn+jn})}),(0,Z.Z)(function(){function jn(ri){var ra=qn&&ri.detail<0,La=Nn&&ri.detail>0;li&&!ra&&!La&&ri.preventDefault()}var Zn=hi.current;return Zn.addEventListener("wheel",Ln,{passive:!1}),Zn.addEventListener("DOMMouseScroll",wn,{passive:!0}),Zn.addEventListener("MozMousePixelScroll",jn,{passive:!1}),function(){Zn.removeEventListener("wheel",Ln),Zn.removeEventListener("DOMMouseScroll",wn),Zn.removeEventListener("MozMousePixelScroll",jn)}},[li,qn,Nn]),(0,Z.Z)(function(){if(st){var jn=Ji(Me);lt(jn),Mi({x:jn})}},[qt.width,st]);var Kn=function(){var Zn,ri;(Zn=Lr.current)===null||Zn===void 0||Zn.delayHidden(),(ri=Jr.current)===null||ri===void 0||ri.delayHidden()},ui=at(hi,Ci,en,Be,rr,function(){return Tn(!0)},$r,Kn);S.useImperativeHandle(L,function(){return{nativeElement:ba.current,getScrollInfo:ni,scrollTo:function(Zn){function ri(ra){return ra&&(0,ue.Z)(ra)==="object"&&("left"in ra||"top"in ra)}ri(Zn)?(Zn.left!==void 0&&lt(Ji(Zn.left)),ui(Zn.top)):ui(Zn)}}}),(0,Z.Z)(function(){if(Ut){var jn=Ci.slice(In,an+1);Ut(jn,Ci)}},[In,an,Ci]);var Fi=Ne(Ci,rr,en,Be),la=hr==null?void 0:hr({start:In,end:an,virtual:ti,offsetX:Me,offsetY:jt,rtl:yi,getSize:Fi}),ta=Y(Ci,In,an,st,Me,cn,me,An),ja=null;ee&&(ja=(0,Q.Z)((0,Te.Z)({},ae?"height":"maxHeight",ee),cr),li&&(ja.overflowY="hidden",st&&(ja.overflowX="hidden"),Sr&&(ja.pointerEvents="none")));var io={};return yi&&(io.dir="rtl"),S.createElement("div",(0,ge.Z)({ref:ba,style:(0,Q.Z)((0,Q.Z)({},Ge),{},{position:"relative"}),className:ci},io,Qr),S.createElement(E.Z,{onResize:Nr},S.createElement(Pe,{className:"".concat(u,"-holder"),style:ja,ref:hi,onScroll:Pi,onMouseEnter:Kn},S.createElement(R,{prefixCls:u,height:pi,offsetX:Me,offsetY:jt,scrollWidth:st,onInnerResize:Tn,ref:Ri,innerProps:Rt,rtl:yi,extra:la},ta))),ti&&pi>ee&&S.createElement(nt,{ref:Lr,prefixCls:u,scrollOffset:oi,scrollRange:pi,rtl:yi,onScroll:Wn,onStartMove:Tr,onStopMove:Wr,spinSize:Dn,containerSize:qt.height,style:br==null?void 0:br.verticalScrollBar,thumbStyle:br==null?void 0:br.verticalScrollBarThumb,showScrollBar:Ur}),ti&&st>qt.width&&S.createElement(nt,{ref:Jr,prefixCls:u,scrollOffset:Me,scrollRange:st,rtl:yi,onScroll:Wn,onStartMove:Tr,onStopMove:Wr,spinSize:_n,containerSize:qt.width,horizontal:!0,style:br==null?void 0:br.horizontalScrollBar,thumbStyle:br==null?void 0:br.horizontalScrollBarThumb,showScrollBar:Ur}))}var yr=S.forwardRef(or);yr.displayName="List";var dr=yr,$=dr},45614:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAAB9AAAAAB3bs6AAAA90UlEQVR4Ae3dB5xU5b3/8d+ACAgKCKIg3YqoIKJiA1FUjCUaY4yxkehVo9FrTPzHkhtJYqJpNz3mplyNV2NsicaoiCgiKIoiFhArxYJ0BKQI7s7/97AB2d2Z2ZnZ55zzlM95vTbuzjnnKe/fhu+emVNywlJUIH/AiAHSaqv9pLa2v+Ra9Je89JJ8vovu0EVyuXZFd2QFAgiEIfDZY6bLVd8cksvlasOYELMIWWCrkCdX6dzy+xzWSdq1PVVDe5TuO1xDu4ts/L9xC9Ewr1tyuUqbZXsEEPBVoFfP/eS3N83K5/N7aqhv+lfA19kw7sAFok+n/L7HtJM2+ZNEas+QFi2O1XpvHXjNmR4CCJQrcOl5Ih22E5k79w1Zsqh/bswYjtTLtWO71AX00DPOJS/7t8oPPeZc2ab2GWkhf9UwP1ElCPM4fx2YNQKlBfr02V26dJ2VHzMm2n8zSwOx1gWBKH8584ccM0wO6vicvo9+i0hubxcKwRgQQMBxAULd8QIxvKgCPb/vET3yB428R2rzE/Ukt4GUHwEEEKhIgFCviIuN0xWIJtDzAw7eXrZpdaee6HZqusT0hgACQQkQ6kGVM6TJRBHo+SEj9pDt2k/Twh0SUvGYCwIIZCRAqGcET7elBIIP9PzgEftLi5aT9LKzPqUgWIcAAghUJECoV8TFxskLBB3o+YOPGiWtWj4pLXI7JE9JDwggEJ0AoR5dyV2ecLCBnh967Eipyd2nn5lv43IBGBsCCHguQKh7XsBwhh9koG8M89qaf+mReetwSsVMEEDAWQFC3dnSxDSw4AI9f/BpbSVX+0fCPKZfY+aKgAMChLoDRYh7CMEFuuQ/vIkT4OL+pWb2CGQmQKhnRk/Hojc9DWjJDz7qcJ3OuQFNiakggIBvAoS6bxULZrzBBLq5N7u0yv05mMowEQQQ8FeAUPe3dh6PPJhAl0M6X6tntO/mcS0YOgIIhCRAqIdUTS/mEkSg5/sc0UafYX6BF+IMEgEE4hEg1OOptQMzDSLQZcetLtIT4bo54MkQEEAAgfoChHp9D35KTCCMQG8hFyUmRMMIIIBAcwUI9eYKsn8ZAt4Hen7QEYMkn9ujjLmyCQIIIJCdAKGenX0kPXsf6NK21ehIasU0EUDAdwFC3fcKOj1+/wO9Nn+y08IMDgEEENhSgFDfUoPvLQp4Hej5oaP66KVqvS160BQCCCCQvAChnrxxhD14HegiNUdEWDOmjAACIQgQ6iFU0ak5+B3oORnklCaDQQABBCoRINQr0WLbJgT8DnSRPZuYH6sRQAABtwUIdbfr49Ho/A702jxH6B79sjFUBBAoIkCoF4Hh5UoE/A70vHSsZLJsiwACCDgrQKg7WxpfBuZtoG+8f3uLXGtfoBknAggg0KQAod4kERsUF/A20GUHjs6Ll5U1CCDgrQCh7m3psh64v4FeuzVvt2f920P/CCCQjAChnoxr4K36G+itWqwLvDZMDwEEYhYg1GOuflVz9zfQq5ouOyGAAAIeCRDqHhUr+6ES6NnXgBEggAACxQUI9eI2rKknQKDX4+AHBBBAwEEBQt3Borg3JALdvZowIgQQQKCxAKHe2IRX6gkQ6PU4+AEBBBBwWIBQd7g42Q+NQM++BowAAQQQKF+AUC/fKrItCfTICs50EUAgAAFCPYAi2p8CgW7flBYRQACB5AUI9eSNPeuBQPesYAwXAQQQ2CxAqG+m4BsRAp3fAgQQQMBnAULd5+pZHTuBbpWTxhBAAIEMBAj1DNDd65JAd68mjAgBBBCoXIBQr9wssD0I9MAKynQQQCBiAUI94uLzGXrUxWfyCCAQoAChHmBRy5sSR+jlObEVAggg4I8Aoe5PrSyOlEC3iElTCCCAgDMChLozpUhrIAR6WtL0gwACCKQtQKinLZ5pfwR6pvx0jgACCCQsQKgnDOxO8wS6O7VgJAgggEAyAoR6Mq6OtUqgO1YQhoMAAggkIkCoJ8LqUqMEukvVYCwIIIBAkgKEepK6mbdNoGdeAgaAAAIIpChAqKeInW5XBHq63vSGAAIIZC9AqGdfgwRGQKAngEqTCCCAgPMChLrzJap0gAR6pWJsjwACCIQiQKiHUsmN8yDQgyonk0EAAQQqFCDUKwRzd3MC3d3aMDIEEEAgHQFCPR3nhHsh0BMGpnkEEEDACwFC3YsylRokgV5Kh3UIIIBATAKEutfVJtC9Lh+DRwABBCwLEOqWQdNrjkBPz5qeEEAAAT8ECHU/6tRglAR6AxB+RAABBBBQAULdu18DAt27kjFgBBBAICUBQj0laDvdEOh2HGkFAQQQCFOAUPemrgS6N6VioAgggEBGAoR6RvCVdUugV+bF1ggggECcAoS683Un0J0vEQNEAAEEHBEg1B0pROFhEOiFXXgVAQQQQKCQAKFeSMWJ1wh0J8rAIBBAAAGPBAh1J4tFoDtZFgaFAAIIOC5AqDtXIALduZIwIAQQQMATAULdqUIR6E6Vg8EggAACngkQ6s4UjEB3phQMBAEEEPBUgFB3onAEuhNlYBAIIICA5wKEeuYFJNAzLwEDQAABBAIRINQzLSSBnik/nSOAAAKBCRDqmRWUQM+Mno4RQACBQAUI9UwKS6Bnwk6nCCCAQOAChHrqBSbQUyenQwQQQCASAUI91UIT6Kly0xkCCCAQmQChnlrBCfTUqOkIAQQQiFSAUE+l8AR6Ksx0ggACCEQuQKgn/gtAoCdOTAcIIIAAAhsFCPVEfxEI9ER5aRwBBBBAoJ4AoV6Pw+YPBLpNTdpCAAEEEGhagFBv2qiKLQj0KtDYBQEEEECgmQKEejMBG+9OoDc24RUEEEAAgTQECHWrygS6VU4aQwABBBCoSIBQr4ir1MYEeikd1iGAAAIIJC9AqFsxJtCtMNIIAggggECzBAj1ZvGZnQn0ZhPSAAIIIICAFQFCvVmMBHqz+NgZAQSCFqipCXp6Tk6OUK+6LAR61XTsiAACwQusXx/8FJ2cIKFeVVkI9KrY2AkBBKIQ2LAhimk6OUlCveKyEOgVk7EDAghEI7ByVTRTdXKihHpFZSHQK+JiYwQQiEpg6bKopuvkZAn1sstCoJdNxYYIIBCdwNLl0U3ZyQkT6mWVhUAvi4mNEEAgSoEFi6KctpOTJtSbLAuB3iQRGyCAQLQCS1eIrFgZ7fSdmzihXrIkBHpJHlYigED0Au+9Hz2BUwCEetFyEOhFaViBAAIIqMAbb8PgmgChXrAiBHpBFl5EAAEE/i3wmgb6mjVwuCZAqDeqCIHeiIQXEEAAgS0EampF3uQofQsRd74l1OvVgkCvx8EPCCCAQAGBF2eI5PMFVvBS5gKE+uYSEOibKfgGAQQQKCLw7gKR2XOKrOTlzAUI9Y0lINAz/01kAAgg4IXA0895McxoB7kp1EVysRoQ6LFWnnkjgEBlAvPmi8ycVdk+bJ2ugAn13/zutfyYMVFmW5STTvc3jN4QQCAYgXFPiKxbF8x0gpzIpiP1CEOdQA/yN5pJIYBAIgKrNcwnPJlI0zRqUWBTqEf29juBbvF3iKYQQCACgWkzeevdhzJH+PY7ge7DLyZjRAABtwQeflzkQ73PO4vbApEdqRPobv86MjoEEHBRYN16kTvu5cEtLtam4ZgiOlIn0BsWn58RQACBcgTMk9j+eg9H6uVYZb1NJEfq3l6vlx86qo9IDXd6yPr/KPSPQOwC7duKnPE5kR27xi7h/vznzn1DlizqnxszRu/nG97CEXp4NWVGCCCQpsBHa0X+cqfI3Hlp9kpf1QgEfqTOEXo1vxTsgwACCDQUaKH/nB5/lMjAfRqu4WfXBAI9UucI3bVfNMaDAAJ+CtTqw1seGC/y2EQ/xx/TqAM9UucIPaZfYuaKAALpCOzQSeTIw0R22zWd/uilOoHAjtS3qk6BvRBAAAEEigosXi5y5wMiu/QUGTpEpG+fopuyIkMBc6QuMkvfW9lTj271P34vHKH7XT9GjwACPgjs1FnkoP1Fdtcj9tatfRhxXGOc984bcslF3oc6gR7Xry2zRQCBrAX20lDfrZ9Izx4iHTtkPRr63yQQQKgT6JuKyX8RQACBtAU6thfZuZtI1y4i2+vn7h23E2m7jX614Ug+7VqY/jwPdQI9i18a+kQAAQQQcFSgZd/cM2PnOjq4ksPisrWSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKTAViXXshIBBNwQ2KGTSBf96tBBJJcTWbtWZOFikQ+WuDE+RoEAApkLEOiZl4ABINBAoLOG9vBDRAb0F9l1F5Hdd2uwQYMflyzVcF8oMm26yLjHRd5+t8EG/IgAAjEIEOgxVJk5+iEw/CCRM08X2WfvysbbpbMevevXgL1EzjlTZMZMkbvuFXl0cmXtsDUCCHgtQKB7XT4GH4TAAD0Cv/RCkYH72pnO3gNEzNf574j85XaRhybYaZdWEEDAaQEC3enyMLigBcxb65ddIHLM0clMs1cvkf+6WuSE40SuvV5k+cpk+qFVBBBwQoCz3J0oA4OITqDPziJ/+GVyYb4l6H6DRG65SWTPvlu+yvcIIBCYAIEeWEGZjgcC/ftpmP9apHv39AbbdQeRm/QPiIMHp9cnPSGAQKoCBHqq3HQWvYC5/OxnN4ps2z59ijZtRH70fZH+euY8CwIIBCdAoAdXUibktMAvbhDp1DG7IbZqJXLDd/V69nbZjYGeEUAgEQECPRFWGkWggMBF54j007fbs1527Cpy9RVZj4L+EUDAsgCBbhmU5hAoKNBbPy8/96yCqzJ5cfjhevMave6dBQEEghEg0IMpJRNxWuB8PTp3bbnsq66NiPEggEAzBAj0ZuCxKwJlCfTcSfIjhpe1aaobmbPsTxyZapd0hgACyQkQ6MnZ0jICdQJnny65li3d1DC3mmVBAIEgBAj0IMrIJJwVMHeDO/F4Z4cnvXvrLWf3dHd8jAwBBMoWINDLpmJDBKoQGHZwFTulvMuRw1LukO4QQCAJAQI9CVXaRGCTwCFDN33n7n+H6RnvLAgg4L0Age59CZmAswJb67OPDtjf2eFtHthOO4rs0nPzj3yDAAJ+ChDoftaNUfsgcKA+FKV1ax9GKnIg93j3o1CMEoHiAjw+tbgNaxBonkBfPeHM5jJnjshTz4jk83WtHjhEZI/d7fQwaKDIHffbaYtWEEAgEwECPRN2Oo1CoIc+ItXWsuojkS9dWL+1xUvsBfqu/eq3zU8IIOCdAG+5e1cyBuyNQM8e9oY6e3bjtqa92Pi1al8xN5kxn/mzIICAtwIEurelY+DOC/SwGOhvvd14urPfE1m2vPHr1b6yB0fp1dKxHwIuCBDoLlSBMYQpsEMXe/N6q8ARuml9usWj9B56lM6CAALeChDo3paOgUclMGde4ekWOnIvvGXTr3bevult2AIBBJwVINCdLQ0D81qgQzu7w1+6rHB7b+uZ77aWLp1ttUQ7CCCQgQCBngE6XUYg0LaN3UkuXFq4vTcKfLZeeMumX92+U9PbsAUCCDgrQKA7WxoG5rVAG4uBbi5Z21BTmGOhHrmvXl14XaWvtmtf6R5sjwACDgkQ6A4Vg6EEJLB+vb3JNBXYCxfa6av11nbaoRUEEMhEgEDPhJ1OgxdYZemo2UDlcqW5ln9Yen25a325TW2582E7BCITINAjKzjTTUlg1ZqUOtJulhU5Ya7SEWzNEXqlZGyPgEsCBLpL1WAsYQmsXZvOfGzdXKYl/xykUzB6QSAZAf4fnIwrrSIg8pGlt91btiytue7j0uvLXbvhk3K3ZDsEEHBQgEB3sCgMKRCBRYvsTKTDdqXb2WDpBLyaImfSl+6dtQgg4IgAge5IIRhGgAILLQV6q1YipW5UY+vImkAP8JeQKcUkQKDHVG3mmq7ABwvs9delxG1ZP7H0VrnNS+3szZyWEECgTAECvUwoNkOgYgFbR+im4647FO/e1uVmtj7zLz5S1iCAQIICBHqCuDQducD8D+wB9C7xKNZttrHTz6pVdtqhFQQQyESAQM+EnU6jEJj5ur1p9uldvK12lgKdI/TixqxBwAMBAt2DIjFETwU+1HuwLynyUJVKp9S7V/E9bAX6ypXF+2ANAgg4L0CgO18iBui1wJtv2Rl+v37F29m+xAlzxfdqvMbWDWoat8wrCCCQggCBngIyXUQs8PZsO5PfbluRXYscpXfvZqePRUvstEMrCCCQiQCBngk7nUYjYOsI3YANGVSYrXv3wq9X+uoCS9fNV9ov2yOAgBUBAt0KI40gUERg2stFVlTx8r77NN6pX4mz3xtvXfqVdy2elV+6J9YigEACAgR6Aqg0icBmgaUrRObN2/xjs74ZNLDx7rv1a/xaNa98qOOsqa1mT/ZBAAFHBAh0RwrBMAIWeHmGncl16igycM/6bQ3oX//nan/6gKPzaunYDwFXBAh0VyrBOMIVsBXoRmjYofWd9rIU6O+9V79dfkIAAe8ECHTvSsaAvROYOt3ekA8dWr+t3Xat/3O1P73PEXq1dOyHgCsCBLorlWAc4QosWiYy29Lla731jnG79KyzOnBfka23tuP2zrt22qEVBBDITIBAz4yejqMSmPq8vel+/rN1bR04xF6b77xvry1aQgCBTAQI9EzY6TQ6gSlT7U35mJEi7drodemDrbSZr9Wz29+w9A6ClRHRCAIIVCNAoFejxj4IVCowVa9HX7Om0r0Kb2+ernbG50T22L3w+gpfzZkT4jbUVLgXmyOAgGsCBLprFWE84QrYfNv9vNH2nOZYuk7e3ohoCQEEqhAg0KtAYxcEqhKY9FRVuyW+05y5iXdBBwggkLwAgZ68MT0gUCcw4Wl9a3uDexq2HiDj3swYEQJRCRDoUZWbyWYqsPZjkedfyHQIBTt/7c2CL/MiAgj4JUCg+1UvRuu7gGtvu69YKfIeT1nz/deK8SNgBAh0fg8QSFPgCX3b3aXl9dddGg1jQQCBZggQ6M3AY1cEKhZYrkfEU56teLfEdnjtjcSapmEEEEhXgEBP15veEBAZN94dBQLdnVowEgSaKUCgNxOQ3RGoWGDsRJG1ayveLZEdZryWSLM0igAC6QsQ6Omb0yMCIhM01LNezB3iFi/PehT0jwAClgQIdEuQNINARQJjH61o80Q2fumVRJqlUQQQyEaAQM/GnV5jF3hOw9QcIWe5EOhZ6tM3AtYFCHTrpDSIQJkC/3q4zA0T2myqgze5SWiqNItADAIEegxVZo5uCtz3kMgnn2QztvnzRRYuy6ZvekUAgUQECPREWGkUgTIEVqwWyerOcS/q41xZEEAgKAECPahyMhnvBO57IJshT38pm37pFQEEEhMg0BOjpWEEyhCYqkfK8zJ4Hvlkh+5WVwYTmyCAQNMCBHrTRmyBQLIC//hnsu03bH3OHJEPP2r4Kj8jgIDnAgS65wVk+AEI/HOcyJo16U3khRfT64ueEEAgNQECPTVqOkKgiIB5TvrDjxRZmcDLz3G5WgKqNIlA5gIEeuYlYAAIqMDd96fHMJUj9PSw6QmB9AQI9PSs6QmB4gLz9LrwySk8K/2VGfpgGH1HgAUBBIITINCDKykT8lbgnn8kP/Rp05Pvgx4QQCATAQI9E3Y6RaCAwLN6bfgbbxZYYfGl5/n83KImTSHglACB7lQ5GEz0An+9MzmCdetEps1Mrn1aRgCBTAUI9Ez56RyBBgKPPJncU9i4XK0BNj8iEJYAgR5WPZlNCAJ33J3MLKbxdnsysLSKgBsCBLobdWAUCHwq8Hd9rOrCRZ/+bOu7j9fbaol2EEDAQQEC3cGiMCQE5LY77COMPlukzdb226VFBBBwQoBAd6IMDAKBBgL3PCiy/MMGLzbzxy6dRc76fDMbYXcEEHBVgEB3tTKMK26B9m1Ftm1v3+DML4p02s5+u7SIAAKZCxDomZeAASBQQOCow0W22qrAima+1KaNyEWjm9kIuyOAgIsCBLqLVWFMCBwxLDGD/PHHiezSM7H2aRgBBLIRINCzcadXBIoLmLfbhwwuvr6Za3ItW4pcckEzW2F3BBBwTYBAd60ijAeBkXp0nsTb7VvKHnyQyGFDtnyF7xFAwHMBAt3zAjL8AAWOHJ7OpK64VGTrBD6nT2f09IIAAg0ECPQGIPyIQKYCHdtLfvB+6QyhWzeR889Kpy96QQCBxAUI9MSJ6QCBCgSOGiYbP+OuYJdmbXrGF0R6d29WE+yMAAJuCBDobtSBUSBQJzAiubPbCxKbz+qvvqLgKl5EAAG/BAh0v+rFaEMWMDd82T+5s9uL0g3cV+Sko4uuZgUCCPghQKD7USdGGYPAqBHZzfLiC0X083sWBBDwV4BA97d2jDw0gaMyDPQO+u7AFReHJsp8EIhKgECPqtxM1lmB7juIDNgr2+EdPVJkuF6fzoIAAl4KEOhelo1BBydwwrFuTOlb3+DhLW5UglEgULEAgV4xGTsgkIDAKEdOSuvUUeRaDXUWBBDwToBA965kDDg4gX12FzE3eXFlOfRgkZMdecfAFRPGgYAHAgS6B0ViiIELHHuUexO89KsiO3V2b1yMCAEEigoQ6EVpWIFASgIjjkipowq62WYbkeuuqmAHNkUAgawFCPSsK0D/cQscur/I9p3cNBg0UOS8L7o5NkaFAAKNBAj0RiS8gECKAsccmWJnVXR1/ldEBvWvYkd2QQCBtAUI9LTF6Q+BTQLt2ogMO3zTT+7+97prRMxYWRBAwGkBAt3p8jC4oAVG6dF5Gw+CcqcdRa7hAS5B/y4yuSAECPQgysgkvBQ4fpQ/wz7yCC5l86dajDRSAQI90sIz7YwFdukp0n/PjAdRYff/eYlIL4eul69w+GyOQOgCBHroFWZ+bgqccoKb4yo1KvPxwI1jRNq2LrUV6xBAICMBAj0jeLqNWKBVS5GRDt5MppyS9O0r8r2ry9mSbRBAIGUBAj1lcLpDQI46TMQ8rtTX5bBDRM49zdfRM24EghUg0IMtLRNzVsCnk+GKIOYvOE/kwH2LrOVlBBDIQoBAz0KdPuMVMM89H6J3h0tiee+9JFot2Gauhf7Tcf0YTpIrqMOLCGQjQKBn406vsQqcdFwyM//t70V++FORBx5Mpv1CrW7bXuSG6zhJrpANryGQgQCBngE6XUYscHwCgf7BByK3/V1k+qsiv/wfEfNzWku/fiLf5SEuaXHTDwKlBAj0UjqsQ8CmwNF6MlyXBB5J+uDDn45y9ToN2BskX1v76WtJf3f4oSJXX5Z0L7SPAAJNCBDoTQCxGgFrAp+1f+15vqZG5L4tAt0M9qXXJHf3vdaGXVZDJ+ncLjy7rE3ZCAEEkhEg0JNxpVUE6gv06Cr5wfvVf83CT7lJT4ksXdG4pd/dLPLOO41fT/KV0Rrop34myR5oGwEESggQ6CVwWIWANYEvnCK5XM5ac5sb+udDm7+t9836T/St9xtl4xF8vRXJ/pC/Qt96P0qvU2dBAIHUBQj01MnpMDqBrbcSOfYY+9OeP19kygvF2331Lcn95bbi6xNYs/FytuuuFTlgnwRap0kEECglQKCX0mEdAjYEjjtSZLttbbRUv41/lnGJ2h9vF3l1Vv39kv6pVSuRH/9AZKBnD59J2oX2EUhYgEBPGJjmEZCTjrePsGGDyN/LCHTT81VjRJZ/aH8MpVo0D3L52Q0iu/cutRXrEEDAogCBbhGTphBoJLBHH5G9+jd6udkvPDlZZNWa8ppZvFzk2jGpf54u7drpdfF6s5t+PcobJ1shgECzBAj0ZvGxMwJNCHz+5CY2qHL1fQ9UtqPedCb3hz9Xto+NrTt2EPn1z7hFrA1L2kCgCQECvQkgViNQtUCn7fRkuKOr3r3ojuZytOdnFF1ddMWt94hMfrro6sRWbN9JQ12P1HdK4KY6iQ2ahhHwT4BA969mjNgXgVP1ZivmBDHby11/r77FMTemf326GW1XfSjNbzTUd9BwZ0EAgUQECPREWGk0eoEWes25uXua7WXlKn0Ay7jqWzW3hr1KH6iydm31bVS75847i/zhVxypV+vHfgg0IaAXyLIggIB1gVFH6NFoF+vNysNjRcxNY5qzzHlfn5L2E5Hvfac5rVS37047aqj/WuTSb4rM0+vok17athbp3lXvob993bsEnfW/5n76nfXLfL7fWtdvre+ibKX/FJp3U7bSr43/1Z/N62a9WcwfQGv1j6G1eiLiGv1+jf53mZ5suGSJyOJ/f81fIPLy63Xb878IZCBAoGeATpcRCJxyUjKTvPt+O+0+OlkvKbtD5Kwz7LRXSSvmD53f/Vzkim+JvD63kj0Lb9urm0ifnnrinZ5N3918r5fKbQrtbbYpvE+lr7Ztq4+J1S8p4yODOXNE5up5Dub6//ETRRYsrbQ3tkegKoEE7kVZ1Tgq3ik/dFQfkRr9fw4LAo4J7LuHyP/oUajtxZzQduUYu63+WN9+N09Ly2IxHx9ccZXIzDeb7r29hulufetCu6cGt/nqtpO+tmvT+2a9xUsvizz2hMgE/SNqScr3A8h67l7237Jv7pmxc30cOoHuY9UYs9sC39eQGnmk/TGa8Ct1q9dqejRvSf/+v/Vofbdq9m7+Puat6/93rci0mXVtmWvWe+6s1673Edm5u0gP/b6nHn2bM+VDWGboPM0fZg8+Srg7W08CPfXScISeOjkdliNgLs36h76VbXuZN0/ki/9hu9W69syY//ibZJ7VXs6I160TWbRIj757lbN1GNuYP2TuvEfk/+7Wz+U/DmNOwczC30DnLPdgfgmZiBMCpyb02XmlN5KpBMN8xnuVniC3fn0le9nb1twmNqYwN3Lms/0vnyNy1y08nc7eb1L0LRHo0f8KAGBNwLx9/dkTrTW3uSFzNHf/I5t/TOQb8zn2929IpGkaLSFgTt67fozIj/QPqo7tS2zIKgSaFiDQmzZiCwTKEzhVH8KybQL/KD80Np23Zcc/pZeUZXB72PJ0w95q2GF6IuUv9LyBrmHPk9klKkCgJ8pL41EJnH5aMtP9WzPuDFfpiG6+U2ScnrDFkr6A+djBXKPPw2zStw+kRwI9kEIyjYwFThmVzEllTzwp8r6eMJbm8j19mMqzU9Pskb42CZiz+X/+I26Ru8mD/1YkQKBXxMXGCBQROPP0Iiua+fIdehZ02ktNrcjl3xZ58aW0e6Y/I2Due//T67FAoGIBAr1iMnZAoIHAscP0s0+9Xtr2Yq5ZzvJWoldoqM981fasaK8cAXNfgMsTukyxnP7ZxksBAt3LsjFopwTO/GIyw7nr3mTaLbdVc3305VeLzJ5d7h5sZ1Egf9qpInv2s9giTYUuQKCHXmHml6zAYUOSuf3ofH1wibnfetbLR/ogksv0nuvmGewsqQrkWug/zxefn2qfdOa3AIHud/0YfdYCSX12fu99Wc/s0/6XrhD52pUiH3zw6Wt8l47AAfoHYw8uZUsH2/9eCHT/a8gMshIwD2EZNNB+7+ahJf942H67zWlxsT4q9D/1SH2J3lWOJV2BUSPT7Y/evBUg0L0tHQPPXOC8c5IZwr8eSudGMpWMvp3envWir4h8rPddZ0lX4KAD0u2P3rwV2MrbkTNwBLIUMEfnByb0D+3djrzdfuC+IoMHieyn70Lsu0+W2nH3vfcAfRZ7a/f+yIu7Kk7OnkB3siwMynmBpI7OzV3azMNSslj220tkiAb4QA3yffYW2XrrLEaRfp9r9cS/j1aLrP5IZJV+5fP1x9BWn8Xevp0+UEW/OmxXf11aP/XVR8i++lZavdGPpwIEuqeFY9gZCgzcM7mj81v/lt7EzLsMg/Xo2xyFmwA3Tz0LcXlTg3DuXL38Tr/e0kvwVqwUWanBbULcnPBX6dJeA75TB32Yioa7ebjK7ruK7LqL/jE0ODnDbnpiHIFeaaWi255Aj67kTLjZAuee2ewmCjbw5GSRt98tuMrKi3v0Edlfw3vwfnVvoSfxIBkrA7XYiDn6fvkVfUzpfXrp3Qd2GjaX8pmvdxfUtTdhSt1/zdvinzlKxFz50K2bnb42tWIet8qCQBMCBHoTQKxGoJ6AOao9+KB6L1n74dY7rDW1saE+eve6AzS899cv8zZ6Rz2qjG0xb5efekrd15Rn9eqBf4pMei4ZBXMjnnv1hEbz9e2vixx/nL1+WusfCywINCFAoDcBxGoE6gmMPqvej9Z+eO55vc3qm81v7mB923fYIfpHx1CRHfVtWpZPBcwfYuZr0WINdX03ZNLT+hCalz5db/O7638usks/vdOb/gFoY2kdyfkMNqwiboNAj7j4TL1CgX12T/Do/K8VDmaLzQ/dX0P8UJEjhotst+0WK/i2oIB5+Mmmo/YPV4hM1ufAv/CiyCz9g2ru+wV3qerFqfpHmq1AX6dH/ywINCFAoDcBxGoENgskdXRuPuN9fsbmbsr6xtxy9ojDRQ4/jBAvC6zIRuZjiBM+U/dlNlmtJ8q9OkvkdQ13cyS/cJHeTGeZ/le/L3UCXYd2enmfXto3oP+/v/SKAZtXCXykJ/GxINCEAIHeBBCrEdgoMEj/oT5E38ZOYrn9zvJaHXagyMgjRIbqOHw6oe3tt/XjBA3JF18Wma5/vIzUdxIuuai8Oae9VTsNZnO7VfPVcFm/Xk+E05MWV6+pv8b8UdCrV/3XbP9kzshnQaAJAQK9CSBWI7BR4KvnJwNhLql6cmrxtk2ID9ej8OF6NG7CxofFPPb1JQ3ul2dogOvXqgYBeNvf646Av39ddtd1V+Nojrh30cvTslgW6DsFLAg0IUCgNwHEagTEhGpSd0q7vcB154cf8Onb6T4cib+ioW0+g542XeQ5DfJyFrPd6AtFbhhj73Pmcvr1cZs1+gdRkpcz+mjCmAsKEOgFWXgRgS0ELtR7mCexmM9rjz1a5JEnRTZ9Jj5Mj8RdD3HzFroJ8Oc1wKfp2+irq7y/u7kj3pcvFbn6MpGTTkhCOIw2X3s9jHkwi8QFCPTEienAa4ET9EYh/fTyoyQW8xa6uYxqnL4F7XKIL1io4T2tLsSnaoiXOjmsGqcbflV3dP91DfYYr5VvymzGq01twXoENgoQ6PwiIFBMoFVLkfNGF1tr73XXwtw8vvUlPfJ+QcP7GQ1ym5dyFVMbN6nuaP/rF4scNaLYVnG+/tCjcc6bWVcsQKBXTMYO0Qh84SSRnXYMf7rm7O2ZehRo3kZ/7gWRV/Qt3toGDyhJQ8Ec+X/7BpFHHxe5Uu+01nn7NHp1uw9z0uS8+W6PkdE5I0CgO1MKBuKUgHkAx1lfcmpIVgez6YYq5m5pz+nd0sxtS11ZJj6rl7idJ3KxfsX+2fpDY12pCuPwQIBA96BIDDEDgbO/EN7nuYuX1N0VbeJkDXF9Sz2Lo/ByS7lCTxg0n63f9Q+RizTYD9Pb2ca2mJMP7/5XbLNmvs0QINCbgceuAQqYO359Ts+4Pv3zYUxuvr5dO1mPwp/QEJ/u4clV5nKtK8foXdj0zmuXXKB3YdP/xrL86OciNbWxzJZ5WhAg0C0g0kQAAjt11rfY9ajcPCHL9+eCz5tX9+CRCZPCeYa2+WPk/Mv1hDk9Uv/KOcldeeDKr/JNf9BzGd5wZTSMwxMBAt2TQjHMhAT26CPypdNEjtHrwX1ezMlTT00RGf9E2DcheUzfbTBf5uY753xJZO8BPlet8Ngn6cNibr2n8DpeRaCEAIFeAodVAQuYu7+ddoo+K3ywSC7n30Tzehb6rNf0SFz/8X9Mb0zz7gL/5tCcEZtnmpuv/TXQzz2z8L3Xm9N+Vvs++LDIT3+bVe/067kAge55ARl+hQKfP17k8yeL9O5d4Y6ObP7++yIPP6Jfj4nMX+zIoDIcxrSZev36NSL99eY/x+m7LCOOEOmiH5/4tqzTu+39RD8zf2iCbyNnvA4JeHhoUqeXHzqqj54xMschS4biqsC22+hJbhrin9OvTh1dHWXxcZl7eU+YKPKgBrmPJ7YVn1kya8xR+4hh+kAb/fIh3M1NfMbo9ffmVrgsDgi07Jt7ZuxcBwZS8RAI9IrJ2MEbgR066efjp9Zdy7yNhrpvi3lO+kMa4uM0zF26TtwnxwP20cfe6u11Dxzi3ol05t2WP95cdy9/n0yDH6u/gc5b7sH/ckY4QRPk550l8tkT/Zv8wkV6pzR9O/0BvaHIOx/4N37XRmye6rbxCXB/Eum6vciheu6Eea79/vuJtNWbB6W9mNvqTn1OZKJegTBez39gQcCiAIFuEZOmMhYwQT76DJETPiNinl3t0/KEntj2oIb45Od9GrVfY120TOQfamy+zNKvh371FumjX730+5496763edmiua3uW3qDGPNo2SlT+cikTp7/TUiAQE8IlmZTFDBBbu7sZo7IfQry19/Qt1v1wRsPjRcxd0ZjSVdg9nsi5ksaHCl30fMsuus9/HfqKrKjfpnP4bt1E+mwXfHxrV6jT6HTz8CXLdcv/cNhqX69N1/ktTnF92ENApYFCHTLoDSXooC5Gcw5X6y7GYwvQb5ipcjjE/Qtdb08adbsFLHoqmyBJR+KmK+XXy97FzZEwAUBAt2FKjCGygTMEdSFo+veWq9sz+y2Ns8TN2+pj9UT3FgQQACBBAQI9ARQaTIhAfN88rP0Hutn6efkPpy1/oGe1PaIvp1uTnDjmvGEfiloFgEENgkQ6Jsk+K/bAiMOrns4x847uz1OcxKUeRiKudzsKT0qZ0EAAQRSEiDQU4KmmyoFzB3ALr1In7Y1qMoGUtrNHI3fcbe+pf64yCo9QYoFAQQQSFmAQE8ZnO7KFDDXDF/8FZFjjylzh4w3u/a7nOSWcQnoHoHYBQj02H8DXJt/C7154ZdOEfnyOX58Tm78HniQMHft94jxIBChAIEeYdGdnfKQvUW+cZne3KOPs0NsNLDVev34TTc3epkXEEAAgbQFCPS0xemvsUD3HUS+doE+UGN443Wuv3LL/4ks12vLWRBAAIGMBQj0jAsQffdfPVdvDqPPs/Zxefddkdv+7uPIGTMCCAQoQKAHWFQvptS7u8gP/ktkl128GG7BQf5Yn1/NggACCDgiQKA7UoiohnHaCfoWu16K5svtWgsV56kpIs/PKLSG1xBAAIFMBAj0TNgj7dQ8RGXMVSKD9/MbYMMGkV/81u85MHoEEAhOgEAPrqSOTmjkoSL/7xsi27Z3dIAVDOu2O/RJWvrcchYEEEDAIQEC3aFiBDkUc//1yy8U+dzJYUzP3BHuZg10FgQQQMAxAQLdsYIENZx+PUSu1xPf+vYNZ1o//oXIhppw5sNMEEAgGAECPZhSOjaRU0bpW+xXODaoZg7HnAj3zPRmNsLuCCCAQDICBHoyrnG3euHZIqP1K6RljT5w5ae/CmlGzAUBBAITINADK2jm07lab916kl6WFtry65tEFiwNbVbMBwEEAhIg0AMqZqZTaddG5IbviBwwJNNhJNL5lGdF7tPnm7MggAACDgu0cHhsDM0XgfZt9brsG7IN89mzk9EyD1+5kTvCJYNLqwggYFOAQLepGWNbbVvXhfneA9Kf/fIPRczDUU7Ve8G3S+j69h//t8iiZenPjR4RQACBCgV4y71CMDZvIHCjvs0+YK8GLyb84wp9utmtt4n89b66jr71NZEdu9rvdMJEkXGT7LdLiwgggEACAgR6AqjRNHmjXmN+4AHpTXf9epG79elmf/mbyCo969wsBw0UOfmkuu9t/u+y5SI/+bXNFmkLAQQQSFSAQE+UN+DGL/myyPDD05vgK/oglO//WOTdBZ/2ae4Nf921n/5s87sf/YznnNv0pC0EEEhcgEBPnDjADobsLXLWGelMbN06kT/+76dvr2/Z6w/17f5OHbd8xc734x8XeXKqnbZoBQEEEEhJgEBPCTqYbjrqyWdJHRU3RHr3XZFrvivy1jsN14j8l96FLokT8cxb7T/lrfbG4LyCAAKuCxDorlfItfF97xqRLp2TH9VEPRnt+p+KfLS2cV+X/4fIZ/TWskks5qz2FXqpGgsCCCDgmQCB7lnBMh3uiIPTudb8T/oW+5/1xLdCy5dPFzn9tEJrmv/a7drnRL2JDAsCCCDgoQCB7mHRMhlyi5zIxXpknORi7pd+3fUik58v3MvZp4pccF7hdc191Zx097ubm9sK+yOAAAKZCRDomdF71vHhB4r00MehJrWsXCXyn98UeW1O4R7O1aPyixL6g2KJ3qP9av2svjZfuG9eRQABBDwQINA9KJITQzzxM8kNw1xffqV+Nl8szM1n5km9zW5m9Z3viyxdkdz8aBkBBBBIQYBATwHZ+y46tJP8IUNF33S3v2zYIPItvUHNy683bnsnPfnuh9eJ9N+z8Tpbr5jrzae/aqs12kEAAQQyEyDQM6P3qONDDpBcLpE418DWm8U8M70xhjkB71vfEOmwXeN1tl554EGeombLknYQQCBzAQI98xJ4MIB+fZMZ5B/+LDJ2Yv22zZPbvnmJyLHH1H/d9k/mJLgf/tJ2q7SHAAIIZCZAoGdG71HH3bvZH+xDY0VuvrN+uycfK3LuWSI77Vj/dds/LVqsN6z5nu1WaQ8BBBDIVIBAz5Tfk87bt7M70Fdn6X3Z9QYum5aTjtYg10egdu++6ZXk/mtuJXu1fi6/RB+9yoIAAggEJECgB1TMxKYyS09Ys/VUtVUfiXxbzyrvp5fAfe5EkZFHJfs5eUOU790g8upbDV/lZwQQQMB7AQLd+xKmMIEVFi/pev99kV/cKNKrVwoDb9DF7/5HZMKUBi/yIwIIIBCGAIEeRh2TncWKlfba33MPe21V0tK/HhL5v3sr2YNtEUAAAa8EWng1WgabjcDsudn0a6vXp58R+cEvbLVGOwgggICTAgS6k2VxbFBvzBX5+GPHBlXmcF7Qa9yv5oz2MrXYDAEEPBYg0D0uXmpDN/c4nzEzte6sdfTSy3pN+3dE1n9irUkaQgABBFwVINBdrYxr43pikmsjKj0ec2ncN/WWsms9fWeh9OxYiwACCDQSINAbkfBCQYHHPAr05/Txq5d9S+SjtQWnwosIIIBAiAIEeohVTWJOy/VM9/sfSKJlu20+/oTI178tslpvIMOCAAIIRCRAoEdU7GZP9Za/6ufR+qhTV5fb/yZy7Q9FampdHSHjQgABBBITINATow2w4QVLRW69zbmJ5Wtq6p7a9pv/dW5sDAgBBBBIS4BAT0s6lH5uuUvktdfdmY3e9CZ3+ZUiD4x3Z0yMBAEEEMhAgEDPAN3rLs3b2d/VW7euXJX9NN7Ue7JfcKnI8/ooVBYEEEAgcgECPfJfgKqmP1fvx/6Nq0TMk8uyWGr1jwrzefl5GubvfJDFCOgTAQQQcE6AQHeuJJ4MaMabIldeI7J4SboDnj9fL0n7hoj5vHyDfnbOggACCCCwUYBA5xehegHzVvfZ/6FPMJtYfRvl7mkeEPPr34mcOlpkmod3rSt3nmyHAAIIVCnA09aqhGO3fwusWC1yzQ9EDh+n139/TaRbN7s05m39e+8T+Yu+xb5qjd22aQ0BBBAISIBAD6iYmU5l0nMik84VOf9L+tn26OYPZdVHInffI3LX/SLmjwYWBBBAAIGSAgR6SR5WVizwJ735zMN6Cdm5Z+hR+2EiHTuU38RqDe6nntY/DPRr/FPl78eWCCCAAAJCoPNLYF/g/UV6o5dfarv6NWRvkQH9RXbfTaRL57q+zFnq5rK35ctFlujNaubOE5ltvt6zPxZaRAABBCIRINAjKXRm0zQnznGdeGb8dIwAAvEIcJZ7PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQj4G+g16xbF0+ZmCkCCCCAQCoCHmeLv4G+WD5Mpbh0ggACCCAQj4DH2eJtoOfmPsERejz/F2OmCCCAQPICtfmPfc4WbwN9Y2Xz+XnJV5geEEAAAQSiEMjJAp/n6Xegt8i95jM+Y0cAAQQQcEjA80zxO9BFCHSH/r/AUBBAAAHPBbzOFL8DPS8vev7Lw/ARQAABBFwR8DxT/A50afmEK78HjAMBBBBAwHcBvzMl5zt//qCRcyWX6+37PBg/AggggECGArn867kp4/fMcATN7trzI3Sdf4vcfc1WoAEEEEAAgcgFcmN9B/A/0NduuMX3IjB+BBBAAIGMBQLIEu8DPffiEy+KvlWS8a8C3SOAAAII+Cpg3m43WeL54n2gb/Svld97XgeGjwACCCCQlUAgGRJGoC/85PeSk/lZ/S7QLwIIIICApwI5+UBMhgSwBBHoG++9m6/5VQD1YAoIIIAAAmkK1OR/4vP927ekCiLQN06oZ+ef81n6lqXlewQQQACBkgL5/JsydflvSm7j0cpgAj13993rRXIXemTPUBFAAAEEshTYkD8vJ9M2ZDkEm30HE+gGJTfl0YmSz/+vTSDaQgABBBAIUKC29k+5Fx6bFNLMggr0jYX5pO2lIvkZIRWJuSCAAAIIWBTIy0xpuf1lFlt0oinvb/1aSDF/4IiBkmv5jN4Stk2h9byGAAIIIBCpQD6/TvI1Q3NTJ7wUmkB4R+haoY2F2lBzsr79vi60gjEfBBBAAIEqBWrzH+vB3okhhrkRCTLQzcRyL0x4ROpCfY35mQUBBBBAIGKBfH6N5FqcmHvmkfGhKgT5lvuWxcoPHrG/bNXyYX2Iyw5bvs73CCCAAAKRCNTmF8snNcfpgd60kGccfKCb4uX3PnIXadfiUf1MvW/IxWRuCCCAAAINBPL5ObK69ujcjMffbrAmuB+jCHRTtfyAg7eXbds/oN8eElwVmRACCCCAQCGBp2XVRyfmZk5ZVmhlaK9FE+ibCpc/6Ji/6B3lztn0M/9FAAEEEAhQIJ+7NffsuHMDnFnRKQV7UlyxGW8scIvccMnXBnfJQrE58zoCCCAQjYD5t13/jY8tzE19oztC3/KXOn/Q0Wfref5XSV722vJ1vkcAAQQQ8EwgJ69KPvfD3DPjbvds5NaGG3Wgb1LMHzTys3rN+nnSosWJm17jvwgggAACPgjk/6UHZX/KPTv+fh9Gm+QYCfQtdPP7HNZJ2rU9VcN9lL48XM+K77LFar5FAAEEEMhaIJ9fokOYqP8+j5XVa+/NvTJ5edZDcqV/Ar1EJfIHjBggrbbaT2pr++sNCfrrX4G9NOxNyHfRX6Z2JXZlFQIIIIBAtQL5/GrddYn+O6tf8o6e8zRL30GdJRs+mZ57bsLMapsNfb//DwIfBeAbAeL/AAAAAElFTkSuQmCC"},38347:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAyKADAAQAAAABAAAAyAAAAACbWz2VAAAW0ElEQVR4Ae1d7W8cSV6u7hnHsRM7cV42TmLHduJ4Yjvju9N+OFg4dBJIdyuxfNg77x0SCHaFhBAfkE4n8QHB3v4DK4EAsbCX5VjQanMHQsDpPh4IEKDdbF7tvDkvTrJ7Sey8J+t47enm9xu7vONO93RVd3XPdM9Tkt3T1VXVVU/101W/l6q2BELTILB98gd7O2wxIdxK2RbuRMWyywXXnYhSwWtHX7Oi5EOe9QgU15/iLBUEJt/sGHS2TiwXRdkmAriuXbYsJkJlm3BlDSxB5JAnODYIARAkYeAPTL47/Kn9dKLNFUSEAhGBRgghhp2CEHb1+bcEkSPhWqD4qAiAIFGR8+Trm3yb3v40ChSKZT4SEcr03I8uiaXuNpfYQIHiEDKGAAgSocP6vvE3E6LYRkRwJgquKLuWGKViBgUTQE6LMChEQLb5soAgdfrEKzSTfDBGE6ISEaKTyFHNSb8RcowACMKd6xGaaWo05lpWiYTmvlqhmUcIDAw5ZoNP01qOILVCsxCFsQoRgbRFJRKa26XQjFHB50lp0ajcEqRWaC467mF66EuucEskNPdKoZn7HKrUFn3yFZudC4KsCc3CPVxwHSKCVSIJoWSTKYGFZmdNTlj7oQgPkrU6ApkiiBSaHbF8uE3YJZemRnaVDO7ONaG5qkoiG0Or9yzabwSB5iRIjdBMAnOJ3vv059LIUBlhKZlIQYcVcdmB2GzkQUAh/gg0nCCfC80FIoAgzdEKIUho7lkRmlcqTtMm/xYgFggkiEBqBJFCs10gIlRHBVajVoXmA1JoBgUS7GkUHQmBRAjCQrNdsA/x1IhHBde1SuRmMUKDQDfPiFaIsDJFilRrZAICKSEQiyAsNLdbldG2qnzAQjNpjvi3JQa4/pIC8EFKqTdxG+MIqBGEhOY99tbRDa5N6tNKVWhmA5vtVlhm6FyRD+g/DQ2SFMZrigKBQAMQeIYguyb/bqhDfLZiRyBVqmO5RAKLtUd9jmD/I9YgSVftBtQYtwQCKSJg7Zt85zfJmlai1Ws0PXKqxKD7b0ixDrhVIghU3kik2BiF2m7BqVgOvWULZLut8HvWcVzLKVj05iW9/TI9gAU6p5kInbsuX7NW45YsWk3D52T3dWyL3tV03XacIsVRSZRn5bpjV6jMoiPo3HKdavqK3eYUnSXXonyLlJ7W5lSv08W5bmfx6tQPf/9xULOsfa8cwawoCB3EtwYCrnuZ5IOpoiX++vL7r/1bbaNhcK5FA79bEwHL2k8Nf2nZFf9KA8a/1IIAgtSigd9AgIgy8Mr3z0sgQBCJBI5AYBUB0seO9E8e+RafQgbBYwEE/BF41GaLcYwg/uAgFgh0kUzyu8/YQYBLPhD4zje/lI+GpNCKN3903PcupCjeDoL4QpP9yD+Y/GL2G5FSC4IIQn4h2zHFSqkTcJtMItADgmSy31DpNBAg10KS0xGAABDwRYDdb0EQX2gQCQQIAZc8FAEEEAACAQiQdyMIEoANooEADSEgCB4DIBCEALnbgyBB4CAeCNA6FRAEjwEQqIcAZJB66OBaSyNAyw4xgrT0E4DG10fAgpBeHyBcbWkEiB8YQVr6CUDjQxDACBICEC63MgK0EaIFd/ecPgH/N30zpy3zb9aXx3r9L8SIpe/LgCAx8GvqrK+88ZOmrp/Jyh19/UWTxa2VRfthQQZZQwM/gIAHAdqkDgTxYIJTILCGAG3CDoKsoYEfQMCDAKZYHkBwCgTWIUC7NsDVZB0iOAECnyNQsGAo/BwN/AICPghgBPEBBVFAgBGg7zRgioVHAQgEIcBaLFjSg9DJeHxSxrOMw6JVfbaDgCBakGUncRKuF9lpvbGaYoplDEoUlDsE6DtxIEjuehUNMoZAAa4mxrBEQblEAIbCXHYrGmUGAawoNIMjSskpApBBctqxaJYxBCCkG4MSBeUPATgr5q9P0SJzCJCrIkYQc3CipLwh4NLm1bCk561XV9uDTRvMdCwIYgbHpisFmzbE7xKH1oOAIBFw/Ep5j+jq2CA2d7atHbvpvKuT44qrcXTe0baaho8bxMt/9GNxbOZ2hDsiSyMQsEhIB0EiIP/Sz+8X3/rlg1o5z1+7J6av3dXKg8SNRYA+4pldgnS2F8UvjO+uvpm7q2/uNiHf4l38Zqe4lb+V3/y253Rf++4/i3PX78VCfqC3Szv/OSLIwmfL2vmQoaEIZJcgY/t6xNt/+Cva6I30bY1FkLZiQUQliHZlkaGhCBgdQb7zzS+Jzo1tomNjUWxq52Nh9cjnxWp8Z038d//yv8Q//udMZABK+7ZFyjvS3yPE/1yJlJcz7e/tFru3b9LOf4FGEIRsIcDb/hiTQT44d0v8/R9/TRmB/bu7ldP6JSzRCBIlHKQRJE4YjDC9mn/wVJyF/BEH9gblNbiryYcX9LQzgw0iyEj/VvpuEA2eEcPAri3aOaeu3hEf33minQ8ZGo2AQXd3XQE0zgiyu6dTlHiqFCHs37NFjEWcnvHtoowgrMFCyCQC5qZY3PyTM3PiC8M7lZAYohFkR/dGMf/wqVL62kQ8verpaq+N0vrNgvrU7B2tPDJxFAH9wmz6BJl9/1VZZRwjImB88+oPzqlPszpIoB/pizYKHIoof0iceJoVJfDUbIhGIN1wFiOILmRNkb5iek36hySo64QoDxuXX+qPpsGSdRuOKKgPkQZr7w49DdZ5Gj0goEvks3WkXRXNevOevDSvhUBUOeTQvmgjgKwcjyA2fT5IN0SRP05dviMq9C0vhAwiYHo9yCd39TQ1UQgysnerKA3EG0EGaSQY37ddu8cGI2iw2IKOkFEEaEptfG/eSx8/UEYjiqqXBfRChLe/t1JR5JAoAvp52D+80Gfp3OwUi1uuI6hLTZYOYociqne994hCEN0p1pOFJcgfXuCzdZ4EQdS/rspaIV1N1khMDZbsH1b16oZDmvaT4xfnIqmxdeuF9EkhYNCSLqt4VlPnr/OgdpBP12hM+UPW8yCNRIWC+gxz33Ndond7p8yudDxBdiGE7CJg0ZJb9SdEsZ26BrhhDZvEGKl3+5/brFiT+sm4nHGNEWFwVzQX9/q1wNVmRiCxbxTevPupcrsPaBjeojooBlVmVGO6NtirbyCEi0kQ8pmJN+tqIpvNnr0vvTAkT+seWVBXDSoEYc/ZHVs2KhXJ0yzVoKvBmr35UFz4+L5q8cbTYdMGI5AmQ5CTF+eVCcJrK1R9slRcTM7N3hW/OLFHCR0dTdZBjakg35wF9EYGbNpgBH3zMghXa1rTEVBFk9W7tVMcUhDQdZQEvDakqCioj2rIK4zBCXpJIGQegaQIorc5gYomi6dXWzdvCEX8LI0gqmEP+VWND4Rb1HmUe66nQ7XYajpeA4KQbQScJLRYDMm9x4vi8aefKaOjoslStUHounaMDYTLIUO71OUkbnSl4gjdeiiDhYSpIWDT0jrjal5Zex2LusoIoiJ/LNKuIaxmfvBkSVYj9Fhdox6Sin23dMLxmXnxcEH9BaFTNtKmh4Dx9SC1VdeZYgwrrAsZVXjTT19dcQzU8X9SEdQP7NVT8Z5osIBe2w/4HR0B/gx0YiPI2avqssD27naxrStYNXtwD3vwhk+Fzq1a8XXkEBbUeSufekFl9KrN32gNVm1d8DsOAgl488rqTGkIy5znQB17CAvotsJGC3JhkiSKrEu9465tnSSo13efV9Ge1d7j1GVosGrxyO7vBLcevUKGMpcWCqnuILJ/9xbxQcDOKKpv8LOr6mW2heiEMSLIiUv+doudWzqUDY98z1vkRXDt9iOd2yeS9oWx3YmU22KFJmMolCB+dGFePF9S3MShjsvJIYXpFd9zanWKdfLKvHhKAvvGDWrbftWz0PMyW53QLNOr917/uk61kdYHAVpzmpwMwvfTeZMHuZzwQ65ipJu5cV88ebqivao4Lt1b3c2jnqCuu6gLHrw+T1pGoxJzVpR4TGsI6kHLb0dp/XmfggfvtGdapUPOg6RF29DmL6irkFO2l4/NMoLU1gm/IyOQ7Aiio00a2uM/lRlVXDvuJaPOVjs7t24MtKjrrj85BhVv5KexCTMmS5DTGj5ZrGr1U/WquqR7yXia5BCdEGRRV1Evy/ucuXJHLC1X5CmOOUAgMTsIY/PZUkXobOLAnzTwBtUdTLyqXd5uxyFZRDX4TaV6NrN9Rn0HxxMX/DVhqnVAuuZDIFGCcHOnNZz2vG4fu0jFemggfO04q1Zv3l+/SIvf5DrTLL+17rqLpI4FqKmbr9tRI1UEEifI6cvqNolBsoXUBp7ebNkU/gb3Tq9kGbyroWpgf7AOj1pYdXon7wGCSCTyc0ycIGc0ZIH9HkE9qoAuu4dlAtXQQ+4uXn+vevYRb7lz9xfEbBMYCL31wnk8BBInyJSGqtdrC1HVIHk1WBISHXJynjGPxkz1/pz3I8gfDEPuQuIEuf9kUfD6bJXQt3P9jiWjCvIHlxvk98WCuk7wjiAq8o8sHwK6RCJfRzVfjJhtPk0P6oCiywZ/mfYRLbYaJnlE5TuEC2Q9v/yzB7415I/6sIVddTf3Wo3ZZvrGuYr8I2987ILezvYyX1LHP/3hiaSKbrpyf268V3x5rDeReqVCEJYFflVxl5NxUvX+L+2KwtMbBQfeNf+rIHSm6N6qBBnp3yL489KfLi7Tjo/h2jN5T16o9cFF9W+jyHxJHt/80fEki2+qso+Ov5hYfRKfYnHNz2hMdUZX14irOigGyR8SsTNX1LVoPGJIucMrj8jy/I68UEvH5uJXBuKaE4FUCKKzP5R8QP0Md34Qhi3M0hfUV9aGeOURv3vLuOPYYlRCkbtjKgS5dY/WSNxSWyPB+0+x46DqCBKmymX5RydIgtbKI2H5P4KBMAyizF5PhSCMTtiDLBFkVS9vxbPXo9GS12uPy7R7yKkQO8sjEuIvkqCuGiQxdTRYIIgqutlLlxpBphTf5Pz12iDHQS+8qlb64xo2ihFyr99EHxjt6gjfg4vrc5G2F8U30L09k5/z1Ahy/rq624eq/HEqYJmst3t01mgwMfycJr1lyvMwGUimwzGbCKRGkAs3/G0VfrCpupifpP2nVIKuj5TUpKmUfXJGT8ZRKRNpmgeB1Agye/uhuDH3WKnlUg4IS3xK8au652/cE480NnLT0WDpki+sTbjeXAikYiiUTWZ7iNedRF6rPXaTNT0ssHPgxU/Uhe8TtIHEV76gtuu76jY/t+4tiOMzzWUglLjNvv+q/IljDARSG0G4jt514zHqLXQ/TqOjaVL9DvtZjbUucdqKvI1DIFWCXNJQt4ZBomvfUJ2O8X07SYulEsKs+CplIE1zI5AqQS5qfEM9DDadB57L0lldGHZveV23DjIfjtlBIFWCsMvJJ/NPjKBzXFHFK2/28Z3HWgZDmS/ouEAOjR/Cgh4ET27iUyUIb0WqalGvh/DF6/fFz+7oE03HYFjv/nyNHRTnHiyEJcP1jCOQKkEYK16fETecu6buoVt7LxPklOXpfmZO5sMxWwikTxADckhUeSIqsfy6FBZ0P1TyF9cAgsQfQaYV/bq83cWfRdMxGHrz155DQK9FI7+/UycIC+o376zfw0oH3ge0xv24ogXdW+4DWsrLBsO4gb2DT8MGEhfGTORPnSCs/bmg4bjoRfH8tfuCN4KIGkzYLkyUEbX+yJcuAqm6msimsT3kl764V55qHXU2g/MrWMer2C8/x8lvIQZdb4Z4bNpgphcaQpBLNM2KGuRn1qLmN/F55umr8adpUeuvmg+bNqgiVT9d6lMsrk4cVW98gtyNZTC8SfsA6+63Vb8LcLWZEWgIQVhQn3/wVBuX2ZuPxGmN7UT9blAhY6Wuo2NtOazejSMD1ZaF382PQEMIcu/xIn0W4b6YpoedN3O492hR8PrysMB2jKXl8HRh5cSRQyCgh6Gbr+sNkUEYwlfe+MkzSHbTcteuzjaxmY6b6dhFuxvyEljebZF3OuQ/EyHOCGLSZd9EW1BGsgg0jCB+zXpIq/74Twh9Pyu/8oLiWFA/dv624A0iero2Vo9BaWvjT126I6Zg/6iFJPe/m4ogaaHNnyl4+U9+vO52A7u6xQB9LLSfjru2dqy7dvryvDhPDpLX5tT29lqXGSeZRqAlCeLXY7O3Hgr+E6c/8buMuBZFoCFCeotijWZnEAGMIBnsNJUqY9MGFZTC02AECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cABAnHCClaGAEQpIU7H00PRwAECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cAribhGGUyBTZtMNNtIIgZHJuuFGzaYKZLMMUygyNKySkCIEhOOxbNMoMACGIGR5SSUwRAkJx2LJplBgEQxAyOKCWnCIAgOe1YNMsMAiCIGRxRSk4RgB0kpx37wtjunLYs3WaBIOnindrd3nv966ndK883whQrz72LtsVGAASJDSEKyDMCIEieexdti40ACBIbQhSQZwRAkDz3LtoWGwEQJDaEKCDPCIAgee5dtC02AiBIbAhRQJ4RAEHy3LtoW1wEHBAkLoTIn2cEFkCQPHcv2hYXARAkLoLIn2sEQJBcdy8aFwsB2xVPMcWKBSEy5xmBinAxguS5g9G2eAjYwgJB4kGI3HlGwAFB8ty9aFtsBCz3MlYUxkaxOQtopb15E+sBV4AgiYHb4IJbaW/eBKGegRYrQXRRdKYRmG+vbPhvECTTfYjKJ4WAK+y/nfmn37gBgiSFMMrNMgLLwlr+ATcABMlyN6LuSSBwybHE711//3fOcOHQYiUBMcrMGgK3LOH+1BH2f1w/+upf1Va+6Frizy1hjTjCLZHvyUDtRfzOLgKua/17dmtvvuYFSyxVLHfOcq3brhBzNDLMLfOxYF++8t5vnQq6o7V24bff2Ti04JQqwh5x3UrJEnZJEHGIWSUqcMtaOvzIBALXjr72ed9mosbNWclQEAcn/6K3YrWPFEWhtExkoQyrpLFGmrNJqBUjAIKYeQ5CCRJ0mz2T75baRaW0RH8Fy6JRx6mOOjRley4oD+LTQwAEMYN1ZIL43f75l97qvLWprey6bqlI0zPXtUu2cEoOjTqUvt0vD+KSQQAEMYOrUYIEVWnHt9/bs9l5VF622kaEK4g0VbmGpmpiX1AexMdDAASJh5/MnQpB5M28x32TR8aEZR+2aJpGioCqUoDS0FF0e9PiXA8BEEQPr6DUDSWIX6VKv/b9rqedVtmuiMOsehaiQCMNTdMscdAvPeL8EQBB/HHRjW06ggQ14MC3j/QvOlZZCPfwilLAZdmGpmtiZ1CeVo4HQcz0fmYIEtTcvsl3ygUhysJyxsnBjEYch/5sUgq4G4LytEI8CGKmlzNPED8Ynp98a8s9USw/td2JNtcaZ8WAS6poStvvlz6PcSCImV7NJUGCoBl6+R8GrLbF8rIrymSvOVwh9XORyEPpu4LyZDUeBDHTcy1FEF/Ivvc9e+hsf7nikmKApmqusGiqxsoBMeybPiORIIiZjgJBAnDsm3x7G8ky5TYizZItyjZP1VaIsyMgS1NFgyBmugME0cRx5BtH9i8USSngOmXygi6Td+g4TddYviEuNU8AQcz0BQhiAMevfvWnxSu918qWU5kguYbIQ8Sx3DEqus9A8ZGKAEEiwfZMJhDkGUjMRXT9+ls7tlWKLNeUC647UbGIPMJi4mw2dxf/kkAQf1x0Y0EQXcQMpD8w+e7wonDKtu3SaCNoqlaZIBLxNM1YAEHMQAmCmMExdinDL/5Zu9O5qbxUJG+BKml4tKn+7YpSOAgSBbVn8/w/X3ocIiWuzzoAAAAASUVORK5CYII="},48136:function(xn,er,x){"use strict";var ge=Object.defineProperty,ue=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))ne.call(t,r)&&B(e,r,t[r]);if(Te)for(var r of Te(t))G.call(t,r)&&B(e,r,t[r]);return e},E=(e,t)=>ue(e,Q(t)),h=e=>typeof e=="symbol"?e:e+"",Z=(e,t)=>{var r={};for(var n in e)ne.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Te)for(var n of Te(e))t.indexOf(n)<0&&G.call(e,n)&&(r[n]=e[n]);return r};function S(e){return Array.isArray(e)}var _={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function N(){return"window"in globalThis&&"document"in globalThis}function R(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function I(){return typeof navigator.vibrate=="function"}function Y(){var e,t;if(!N())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function K(){if(!N())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function se(){return HTMLElement.prototype.hasOwnProperty("popover")}var te={strings:_,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return te._locale||(te._locale=N()?navigator.language.slice(0,5):"en-US"),te._locale},set locale(e){te._locale=e,te._numberFormatter=void 0,te.dirty=!0},get numberFormatter(){return te._numberFormatter||(te._numberFormatter=new Intl.NumberFormat(te.locale)),te._numberFormatter},merge(e,t){if(typeof e=="string"&&t)te.strings[e]=f(f({},te.strings[e]),t),te.dirty=!0;else for(const r of Object.keys(e))te.merge(r,e[r])},get dirty(){return te._dirty},set dirty(e){te._dirty||te._dirty===e||(te._dirty=!0,setTimeout(()=>{te._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return te._subscribers.push(e),te._subscribers.length-1},unsubscribe(e){e<0||e>=te._subscribers.length||(te._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const n=r.getAttribute("data-l10n-tooltip");if(n){const i=X(n);i&&r.setAttribute("data-tooltip",i)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const n=r.getAttribute("data-l10n-arial-label");if(n){const i=X(n);i&&r.setAttribute("aria-label",i)}}}};function X(e,...t){if(e===void 0)return;let r="";const n=te.locale;te.strings[n]&&(r=te.strings[n][e]);const i=n.slice(0,2);if(!r&&te.strings[i]&&(r=te.strings[i][e]),r||(r=te.strings.en[e]),!r)return;const s=/(%@|%([0-9]+)\$@)/g;let A=s.exec(r),M=0;for(;A;){if(t[M++]){const J=A[2]?parseInt(A[2],10)-1:M-1;let Ae=t[J];typeof Ae=="number"&&(Ae=te.numberFormatter.format(Ae)),r=r.replace(A[1],Ae)}A=s.exec(r)}return r=r.replace(/%%/g,"%"),r}var W={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},j={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},le={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},he={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Ne={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Ce={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function je(e){var t,r,n,i,s,A;const M=e.split("!");let z,J,Ae,Qe=255,ft=255,Ft=255,Ot=-1;const Er=M.length>0&&M[0].startsWith("-");Er&&(M[0]=M[0].slice(1));for(let En=0;En<M.length;En++){z=Qe,J=ft,Ae=Ft;const Cr=(t=M[En].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=Cr==null?void 0:Cr.toLowerCase(),Pn=Cr&&(A=(s=(i=(n=(r=he[nn])!=null?r:he[Ne[Cr]])!=null?n:j[Cr])!=null?i:Ce[Cr])!=null?s:W[Cr])!=null?A:M[En].trim();let pn=Pn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(pn!=null&&pn[1]&&pn[2]&&pn[3])Qe=Math.max(0,Math.min(255,Number.parseInt(pn[1],16))),ft=Math.max(0,Math.min(255,Number.parseInt(pn[2],16))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3],16)));else if(pn=Pn.match(/^#([\da-f]{3})$/i),pn!=null&&pn[1]){const Ii=Number.parseInt(pn[1][0],16),$i=Number.parseInt(pn[1][1],16),Ui=Number.parseInt(pn[1][2],16);Qe=Math.max(0,Math.min(255,Ii*16+Ii)),ft=Math.max(0,Math.min(255,$i*16+$i)),Ft=Math.max(0,Math.min(255,Ui*16+Ui))}else if(pn=Pn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),pn!=null&&pn[1]&&pn[2]&&pn[3])Qe=Math.max(0,Math.min(255,Number.parseInt(pn[1]))),ft=Math.max(0,Math.min(255,Number.parseInt(pn[2]))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3])));else return;Ot>=0&&(Qe=(1-Ot)*Qe+Ot*z,ft=(1-Ot)*ft+Ot*J,Ft=(1-Ot)*Ft+Ot*Ae,Ot=-1),En+1<M.length&&(Ot=Math.max(0,Math.min(100,Number.parseInt(M[++En])))/100)}return Ot>=0&&(Qe=Ot*Qe+(1-Ot)*z,ft=Ot*ft+(1-Ot)*J,Ft=Ot*Ft+(1-Ot)*Ae),Er&&(Qe=255-Qe,ft=255-ft,Ft=255-Ft),"#"+("00"+Math.round(Qe).toString(16)).slice(-2)+("00"+Math.round(ft).toString(16)).slice(-2)+("00"+Math.round(Ft).toString(16)).slice(-2)}function q(e){var t,r;return e=e.trim(),(r=(t=le[e.toLowerCase()])!=null?t:le[Ne[e]])!=null?r:je(e)}function ce(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&t.a===void 0&&(t.a=1),t}function k(e,t,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e}function ot(e){let[t,r,n]=[e.h,e.s,e.l];t=(t+360)%360/60,n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1));const i=n<=.5?n*(r+1):n+r-n*r,s=n*2-i;return{r:Math.round(255*k(s,i,t+2)),g:Math.round(255*k(s,i,t)),b:Math.round(255*k(s,i,t-2))}}function Le(e){return e<0?0:e>255?255:Math.round(e)}function xe(e){const{r:t,g:r,b:n}=e;let i=((1<<24)+(Le(t)<<16)+(Le(r)<<8)+Le(n)).toString(16).slice(1);return i[0]===i[1]&&i[2]===i[3]&&i[4]===i[5]&&i[6]===i[7]&&(i=i[0]+i[2]+i[4]),"#"+i}function Re(e){let{r:t,g:r,b:n}=e;t=t/255,r=r/255,n=n/255;const i=Math.min(t,r,n),s=Math.max(t,r,n),A=s-i;let M,z;s===i?M=0:t===s?M=(r-n)/A:r===s?M=2+(n-t)/A:n===s&&(M=4+(t-r)/A),M=Math.min(M*60,360),M<0&&(M+=360);const J=(i+s)/2;return s===i?z=0:J<=.5?z=A/(s+i):z=A/(2-s-i),{h:M,s:z,l:J}}function ve(e){let t=ce(e);if(!t)return e;let{h:r,s:n,l:i}=Re(t);return n+=.1,i-=.1,xe(ot({h:r,s:n,l:i}))}var ke={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},fe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},ye=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function at(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const n=e.codePointAt(0);if(n===void 0)return e;for(const i of ye)if((!t||i.variant===t)&&(!r||i.style===r)&&n>=i.offset&&n<i.offset+i.len){const s=i.start+n-i.offset;return String.fromCodePoint(fe[s]||s)}return e}function rt(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in fe)if(fe[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of ye)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function nt(e){var t;let r="";for(const n of e){if("{}<>[]$&#^_%:'\u02DC".includes(n)){r+=n;continue}const i=(t=n.codePointAt(0))!=null?t:0;let s=ke[i];if(s)s.startsWith("\\")?r+=s+" ":r+=s;else{const{char:A,variant:M,style:z}=rt(i);switch(s=A,M){case"double-struck":s=`\\mathbb{${s}}`;break;case"fraktur":s=`\\mathfrak{${s}}`;break;case"script":s=`\\mathscr{${s}}`;break;case"sans-serif":s=`\\mathsf{${s}}`;break;case"monospace":s=`\\mathtt{${s}}`;break;case"calligraphic":s=`\\mathcal{${s}}`;break}switch(z){case"bold":s=`\\mathbf{${s}}`;break;case"italic":s=`\\mathit{${s}}`;break;case"bolditalic":s=`\\mathbfit{${s}}`;break}r+=s}}return r}function ut(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var Nt={},zt=f({},ke),Ht={},cr={},or={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},yr={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},dr={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},$={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:dr},"amsmath.sty":{package:yr,primitive:!0},"texvc.sty":{package:or,primitive:!1}},Xe={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},L=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,p,u;K()?(p=new RegExp("\\p{Letter}","u"),u=new RegExp("[0-9\\p{Letter}]","u")):(p=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,u=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function w(e,t,r="mord",n){t!==void 0&&(Nt[e]={definitionType:"symbol",type:r,variant:n,codepoint:t},zt[t]||(zt[t]=e))}function ee(e,t,r){if(typeof e=="string"){for(let n=0;n<e.length;n++){const i=e.charAt(n);w(i,i.codePointAt(0))}return}for(const[n,i,s,A]of e)w(n,i,s!=null?s:t,A!=null?A:r)}function Be(e,t){for(let r=e;r<=t;r++)w(String.fromCodePoint(r),r)}function T(e){var t;return(t=cr[e])!=null?t:null}function ae(e,t){var r,n;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const i=[];for(const A in Ht)A.startsWith(t)&&!Ht[A].infix&&i.push({match:A,frequency:(r=Ht[A].frequency)!=null?r:0});for(const A in Nt)A.startsWith(t)&&i.push({match:A,frequency:(n=Nt[A].frequency)!=null?n:0});const s=t.substring(1);for(const A of Object.keys(e.options.macros))A.startsWith(s)&&i.push({match:"\\"+A,frequency:0});return i.sort((A,M)=>{var z,J;return A.frequency===M.frequency?A.match.length===M.match.length?A.match<M.match?-1:1:A.match.length-M.match.length:((z=M.frequency)!=null?z:0)-((J=A.frequency)!=null?J:0)}),i.map(A=>A.match)}function Ge(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function Ee(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Ge(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...Ee(r[n]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Ge(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...Ee(r[n]))}return t}function me(e){if(!e)return"";let t="",r=!0;for(const n of e)typeof n.value=="string"?t+=n.value:r=!1;return r?t:""}function qe(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const n of e)cr[n]=r}function _t(e,t,r){typeof e=="string"&&(e=[e]);const i={tabular:!0,params:Ee(t),createAtom:r};for(const s of e)cr[s]=i}function pe(e,t,r){var n,i;r||(r={});const s={definitionType:"function",params:Ee(t),ifMode:r.ifMode,isFunction:(n=r.isFunction)!=null?n:!1,applyMode:r.applyMode,infix:(i=r.infix)!=null?i:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Ht["\\"+e]=s;else for(const A of e)Ht["\\"+A]=s}var st;function At(e){return st||(st=Ie($)),e?Ie(f(f({},st),e)):st}function Pe(e,t){var r,n,i,s;if(typeof e=="string"){let A=0;const M=e;return/(^|[^\\])#1/.test(M)&&(A=1),/(^|[^\\])#2/.test(M)&&(A=2),/(^|[^\\])#3/.test(M)&&(A=3),/(^|[^\\])#4/.test(M)&&(A=4),/(^|[^\\])#5/.test(M)&&(A=5),/(^|[^\\])#6/.test(M)&&(A=6),/(^|[^\\])#7/.test(M)&&(A=7),/(^|[^\\])#8/.test(M)&&(A=8),/(^|[^\\])#9/.test(M)&&(A=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(n=t==null?void 0:t.captureSelection)!=null?n:!0,args:A,def:M}}return f({expand:(i=t==null?void 0:t.expand)!=null?i:!0,captureSelection:(s=t==null?void 0:t.captureSelection)!=null?s:!0,args:0},e)}function Ie(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const n=e[r];if(n==null)delete t[r];else if(typeof n=="object"&&"package"in n)for(const i of Object.keys(n.package))t[i]=Pe(n.package[i],{expand:!n.primitive,captureSelection:n.captureSelection});else t[r]=Pe(n)}return t}function vt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Ht[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=Nt[e]:Xe[e]&&(r={definitionType:"symbol",type:"mord",codepoint:Xe[e]})}else if(t==="math"){if(r=Nt[e],!r&&e.length===1){const n=Rt("math",e.codePointAt(0));return n.startsWith("\\")?E(f({},vt(n,"math")),{command:n}):null}}else Xe[e]?r={definitionType:"symbol",type:"mord",codepoint:Xe[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function Ut(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Rt(e,t){if(t===void 0)return"";if(e==="math"&&zt[t])return zt[t];if(e==="text"){const r=Object.keys(Xe).find(n=>Xe[n]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var hr=[0,.68889,0,0,.72222],br=[0,.68889,0,0,.66667],Mr=[0,.68889,0,0,.77778],Ur=[0,.68889,0,0,.61111],Qr=[.16667,.68889,0,0,.77778],rr=[0,.68889,0,0,.55556],Ar=[0,0,0,0,.25],jr=[0,.825,0,0,2.33334],cn=[0,.9,0,0,2.33334],Tn=[0,.68889,0,0,.54028],en=[-.03598,.46402,0,0,.5],Qn=[-.13313,.36687,0,0,1],li=[.01354,.52239,0,0,1],Pr=[.01354,.52239,0,0,1.11111],ti=[0,.54986,0,0,1],yi=[0,.69224,0,0,.5],ci=[0,.43056,0,0,1],Ci=[.08198,.58198,0,0,.77778],hi=[.19444,.69224,0,0,.41667],Ri=[.1808,.675,0,0,1],ba=[.19444,.69224,0,0,.83334],Xi=[.13667,.63667,0,0,1],_i=[-.064,.437,0,0,1.334],oi=[.08167,.58167,0,0,.77778],Qi=[0,.69224,0,0,.72222],be=[0,.69224,0,0,.66667],Ue=[-.13313,.36687,0,0,.77778],Me=[.06062,.54986,0,0,.77778],lt=[0,.69224,0,0,.77778],Zt=[.25583,.75583,0,0,.77778],Qt=[.25142,.75726,0,0,.77778],Sr=[.20576,.70576,0,0,.77778],fr=[.30274,.79383,0,0,.77778],Tr=[.22958,.72958,0,0,.77778],Wr=[.1808,.675,0,0,.77778],An=[.13667,.63667,0,0,.77778],$r=[.13597,.63597,0,0,.77778],Rr=[.03517,.54986,0,0,.77778],qr=[0,.675,0,0,.77778],mn=[.19444,.69224,0,0,.61111],sn=[0,.54986,0,0,.76042],Sn=[0,.54986,0,0,.66667],Hn=[.0391,.5391,0,0,.77778],pi=[.03517,.54986,0,0,1.33334],In=[.38569,.88569,0,0,.77778],an=[.23222,.74111,0,0,.77778],jt=[.19444,.69224,0,0,.77778],Wt=[0,.37788,0,0,.5],nr=[0,.54986,0,0,.72222],qt=[0,.69224,0,0,.83334],Xt=[.11111,.69224,0,0,.66667],Nr=[.26167,.75726,0,0,.77778],Lr=[.48256,.98256,0,0,.77778],Jr=[.28481,.79383,0,0,.77778],_n=[.08167,.58167,0,0,.22222],Dn=[.08167,.58167,0,0,.38889],Ai=[0,.43056,.04028,0,.66667],Yn=[.41951,.91951,0,0,.77778],ki=[.24982,.74947,0,0,.38865],qn=[.08319,.58283,0,0,.75623],Nn=[0,.10803,0,0,.27764],ln=[0,.47534,0,0,.50181],wi=[.18906,.47534,0,0,.50181],Mn=[0,.69141,0,0,.50181],ni=[.24982,.74947,0,0,.27764],Si=[0,.69141,0,0,.21471],Mi=[.25,.75,0,0,.44722],Wn=[0,.64444,0,0,.575],Pi=[.08556,.58556,0,0,.89444],Ji=[0,.69444,0,0,.89444],si=[0,.68611,0,0,.9],dn=[0,.68611,0,0,.86944],rn=[.25,.75,0,0,.575],Ln=[.25,.75,0,0,.31944],wn=[0,.69444,0,0,.63889],Kn=[0,.69444,0,0,.31944],ui=[0,.44444,0,0,.63889],Fi=[0,.44444,0,0,.51111],la=[0,.69444,0,0,.575],ta=[.13333,.63333,0,0,.89444],ja=[0,.44444,0,0,.31944],io=[0,.69444,0,0,.86944],jn=[0,.68611,0,0,.69166],Zn=[0,.68611,0,0,.83055],ri=[0,.68611,0,0,.89444],ra=[0,.69444,0,0,.60278],La=[.19444,.69444,0,0,.51111],ca=[0,.69444,0,0,.83055],Hi=[-.10889,.39111,0,0,1.14999],za=[.19444,.69444,0,0,.575],ka=[.19444,.69444,0,0,1.14999],co=[.19444,.69444,0,0,.70277],Ya=[.05556,.75,0,0,.575],Ca=[0,.68611,0,0,.95833],mi=[.08556,.58556,0,0,.76666],Aa=[-.02639,.47361,0,0,.575],Oo=[0,.44444,0,0,.89444],mo=[0,.55556,0,0,.76666],qa=[-.10889,.39111,0,0,.89444],Ni=[.00222,.50222,0,0,.89444],To=[.19667,.69667,0,0,.89444],go=[.08556,.58556,0,0,1.14999],el=[0,.69444,0,0,.70277],Wo=[-.02778,.47222,0,0,.575],Rs=[.25,.75,0,0,.51111],Go=[-.13889,.36111,0,0,1.14999],xl=[.19444,.69444,0,0,1.02222],$a=[.12963,.69444,0,0,.89444],Qa=[.19444,.69444,0,0,.44722],Sa=[0,.64444,.13167,0,.59111],Qs=[.19444,.64444,.13167,0,.59111],Bi=[0,.68611,.17208,0,.8961],Vi=[.19444,.44444,.105,0,.53222],Oi=[0,.44444,.085,0,.82666],Wi=[0,.69444,.06709,0,.59111],ua=[0,.69444,.12945,0,.35555],_a=[0,.69444,0,0,.94888],Xo=[0,.69444,.11472,0,.59111],Io=[0,.68611,.10778,0,.88555],_o=[0,.69444,.07939,0,.62055],Za=[0,.69444,.12417,0,.30667],Ba=[0,.64444,.13556,0,.51111],da=[.19444,.64444,.13556,0,.51111],Da=[0,.68333,.16389,0,.74333],eo=[.19444,.43056,.08847,0,.46],Ao=[0,.43056,.07514,0,.71555],Oa=[0,.69444,.06646,0,.51111],Fa=[0,.69444,0,0,.83129],Mo=[0,.69444,.1225,0,.51111],kl=[0,.68333,.09403,0,.76666],ds=[0,.68333,.11111,0,.76666],ll=[0,.69444,.06961,0,.51444],Uo=[0,.69444,0,0,.27778],Ms=[.25,.75,0,0,.38889],Lo=[0,.64444,0,0,.5],Un=[0,.69444,0,0,.77778],Dl=[0,.68333,0,0,.75],Ro=[0,.68333,0,0,.77778],Vl=[0,.68333,0,0,.68056],Ks=[0,.68333,0,0,.72222],bs=[.25,.75,0,0,.5],Ia=[.25,.75,0,0,.27778],Qo=[0,.69444,0,0,.5],Wl=[0,.69444,0,0,.55556],ac=[0,.43056,0,0,.44445],cl=[0,.43056,0,0,.5],fa=[.19444,.43056,0,0,.55556],ia=[0,.43056,0,0,.55556],vo=[.08333,.58333,0,0,.77778],Va=[0,.43056,0,0,.27778],ao=[0,.66786,0,0,.27778],Ko=[0,.69444,0,0,.75],to=[0,.66786,0,0,.5],Jo=[0,.68333,0,0,.625],Ls=[.19444,.69444,0,0,.44445],Al=[0,.69444,0,0,.72222],Vs=[.19444,.69444,0,0,.5],tl=[.19444,.69444,0,0,1],Hc=[.011,.511,0,0,1.126],Pl=[.19444,.69444,0,0,.61111],Ws=[.05556,.75,0,0,.5],tA=[0,.68333,0,0,.83334],rA=[.0391,.5391,0,0,.66667],fc=[-.05555,.44445,0,0,.5],yA=[0,.43056,0,0,.77778],Nl=[0,.55556,0,0,.66667],Gs=[-.03625,.46375,0,0,.77778],rl=[-.01688,.48312,0,0,.77778],nl=[.0391,.5391,0,0,1],Pa=[0,.69444,0,0,.61111],yo=[-.03472,.46528,0,0,.5],bo=[.25,.75,0,0,.44445],Yo=[-.14236,.35764,0,0,1],ks=[.244,.744,0,0,.412],Mc=[.19444,.69444,0,0,.88889],Cl=[.12963,.69444,0,0,.77778],jc=[.19444,.69444,0,0,.38889],bA=[.011,.511,0,0,1.638],wA=[.19444,.69444,0,0,0],hc=[0,.44444,0,0,.575],pc=[.19444,.44444,0,0,.575],Du=[0,.68611,0,0,.75555],KA=[0,.69444,0,0,.66759],ad=[0,.68611,0,0,.80555],od=[0,.68611,.08229,0,.98229],ou=[0,.68611,0,0,.76666],Sd=[0,.44444,0,0,.58472],Pu=[.19444,.44444,0,0,.6118],su=[.19444,.43056,0,0,.5],sd=[0,.68333,.02778,.08334,.76278],c=[0,.68333,.08125,.05556,.83125],a=[0,.43056,0,.05556,.48472],l=[.19444,.43056,0,.08334,.51702],v=[.25,.75,0,0,.42778],F=[0,.69444,0,0,.55],C=[0,.69444,0,0,.73334],O=[0,.69444,0,0,.79445],V=[0,.69444,0,0,.51945],ie=[0,.69444,0,0,.70278],_e=[0,.69444,0,0,.76389],We=[.25,.75,0,0,.34306],Ve=[0,.69444,0,0,.56111],ct=[0,.69444,0,0,.25556],we=[.19444,.45833,0,0,.56111],Lt=[0,.45833,0,0,.56111],wt=[0,.69444,0,0,.30556],kt=[0,.69444,0,0,.58056],ht=[0,.69444,0,0,.67223],Pt=[0,.69444,0,0,.85556],ar=[0,.69444,0,0,.55834],gr=[0,.65556,.11156,0,.5],Kr=[0,.69444,.08094,0,.70834],yn=[.17014,0,0,0,.44445],_r=[0,.69444,.0799,0,.5],Gt=[0,.69444,0,0,.73752],Dr=[0,.69444,.09205,0,.5],Vr=[0,.69444,.09031,0,.77778],bt=[0,.69444,.07816,0,.27778],Bt=[0,.69444,.00316,0,.5],U=[.19444,.69444,0,0,.83334],H=[.05556,.75,0,0,.83334],Se=[0,.75,0,0,.5],De=[.125,.08333,0,0,.27778],Ye=[0,.08333,0,0,.27778],He=[0,.65556,0,0,.5],dt=[0,.69444,0,0,.47222],pt=[0,.69444,0,0,.66667],Et=[0,.69444,0,0,.59722],de=[0,.69444,0,0,.54167],Ze=[0,.69444,0,0,.70834],Je=[.25,.75,0,0,.28889],mt=[0,.69444,0,0,.51667],yt=[0,.44444,0,0,.44445],It=[.19444,.44444,0,0,.51667],Kt=[0,.44444,0,0,.38333],Tt=[0,.44444,0,0,.51667],pr=[0,.69444,0,0,.83334],sr=[.35001,.85,0,0,.45834],Fr=[.35001,.85,0,0,.57778],Hr=[.35001,.85,0,0,.41667],hn=[.35001,.85,0,0,.58334],tr=[0,.72222,0,0,.55556],St=[1e-5,.6,0,0,.66667],On=[1e-5,.6,0,0,.77778],zr=[.25001,.75,0,0,.94445],wr=[.306,.805,.19445,0,.47222],Ir=[.30612,.805,.19445,0,.47222],xr=[.25001,.75,0,0,.83334],kr=[.35001,.85,0,0,.47222],fn=[.25001,.75,0,0,1.11111],zn=[.65002,1.15,0,0,.59722],Rn=[.65002,1.15,0,0,.81111],Bn=[.65002,1.15,0,0,.47222],ii=[.65002,1.15,0,0,.66667],Ei=[0,.75,0,0,1],gi=[.55001,1.05,0,0,1.27778],xi=[.862,1.36,.44445,0,.55556],kn=[.86225,1.36,.44445,0,.55556],ha=[.55001,1.05,0,0,1.11111],ei=[.65002,1.15,0,0,.52778],uo=[.65002,1.15,0,0,.61111],Ti=[.55001,1.05,0,0,1.51112],na=[.95003,1.45,0,0,.73611],Ta=[.95003,1.45,0,0,1.04445],ma=[.95003,1.45,0,0,.52778],Vn=[.95003,1.45,0,0,.75],Gn=[0,.75,0,0,1.44445],bi=[.95003,1.45,0,0,.58334],vi=[1.25003,1.75,0,0,.79167],Zi=[1.25003,1.75,0,0,1.27778],gn=[1.25003,1.75,0,0,.58334],Xn=[1.25003,1.75,0,0,.80556],aa=[0,.825,0,0,1.8889],ji=[1.25003,1.75,0,0,.63889],ko=[.64502,1.155,0,0,.875],Do=[1e-5,.6,0,0,.875],Ki=[-99e-5,.601,0,0,.66667],ro=[.64502,1.155,0,0,.66667],as=[1e-5,.9,0,0,.88889],Cn=[.65002,1.15,0,0,.88889],fo=[.90001,0,0,0,.88889],Ho=[-.00499,.605,0,0,1.05556],Yi=[0,.12,0,0,.45],on=[0,.61111,0,0,.525],ga=[.08333,.69444,0,0,.525],ho=[-.08056,.53055,0,0,.525],Wa=[-.05556,.55556,0,0,.525],Li=[0,.43056,0,0,.525],Po=[.22222,.43056,0,0,.525],No=[0,0,0,0,.525],os={"AMS-Regular":{32:Ar,65:hr,66:br,67:hr,68:hr,69:br,70:Ur,71:Mr,72:Mr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Mr,76:br,77:[0,.68889,0,0,.94445],78:hr,79:Qr,80:Ur,81:Qr,82:hr,83:rr,84:br,85:hr,86:hr,87:[0,.68889,0,0,1],88:hr,89:hr,90:br,107:rr,160:Ar,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:rr,295:Tn,710:jr,732:cn,770:jr,771:cn,989:oi,1008:Ai,8245:[0,.54986,0,0,.275],8463:Tn,8487:hr,8498:rr,8502:br,8503:[0,.68889,0,0,.44445],8504:br,8513:[0,.68889,0,0,.63889],8592:en,8594:en,8602:Qn,8603:Qn,8606:li,8608:li,8610:Pr,8611:Pr,8619:ti,8620:ti,8621:[-.13313,.37788,0,0,1.38889],8622:Qn,8624:yi,8625:yi,8630:ci,8631:ci,8634:Ci,8635:Ci,8638:hi,8639:hi,8642:hi,8643:hi,8644:Ri,8646:Ri,8647:Ri,8648:ba,8649:Ri,8650:ba,8651:li,8652:li,8653:Qn,8654:Qn,8655:Qn,8666:Xi,8667:Xi,8669:[-.13313,.37788,0,0,1],8672:_i,8674:_i,8705:[0,.825,0,0,.5],8708:rr,8709:oi,8717:[0,.43056,0,0,.42917],8722:en,8724:[.08198,.69224,0,0,.77778],8726:oi,8733:lt,8736:Qi,8737:Qi,8738:[.03517,.52239,0,0,.72222],8739:_n,8740:[.25142,.74111,0,0,.27778],8741:Dn,8742:[.25142,.74111,0,0,.5],8756:be,8757:be,8764:Ue,8765:[-.13313,.37788,0,0,.77778],8769:Ue,8770:Gs,8774:fr,8776:rl,8778:oi,8782:Me,8783:Me,8785:Ci,8786:Ci,8787:Ci,8790:lt,8791:Tr,8796:[.08198,.91667,0,0,.77778],8806:Zt,8807:Zt,8808:Qt,8809:Qt,8812:[.25583,.75583,0,0,.5],8814:Sr,8815:Sr,8816:fr,8817:fr,8818:Tr,8819:Tr,8822:Wr,8823:Wr,8828:An,8829:An,8830:Tr,8831:Tr,8832:Sr,8833:Sr,8840:fr,8841:fr,8842:$r,8843:$r,8847:Rr,8848:Rr,8858:Ci,8859:Ci,8861:Ci,8862:qr,8863:qr,8864:qr,8865:qr,8872:[0,.69224,0,0,.61111],8873:Qi,8874:[0,.69224,0,0,.88889],8876:Ur,8877:Ur,8878:hr,8879:hr,8882:Rr,8883:Rr,8884:An,8885:An,8888:[0,.54986,0,0,1.11111],8890:fa,8891:mn,8892:mn,8901:[0,.54986,0,0,.27778],8903:oi,8905:oi,8906:oi,8907:lt,8908:lt,8909:[-.03598,.46402,0,0,.77778],8910:sn,8911:sn,8912:Rr,8913:Rr,8914:Sn,8915:Sn,8916:be,8918:Hn,8919:Hn,8920:pi,8921:pi,8922:In,8923:In,8926:An,8927:An,8928:fr,8929:fr,8934:an,8935:an,8936:an,8937:an,8938:Sr,8939:Sr,8940:fr,8941:fr,8994:jt,8995:jt,9416:[.15559,.69224,0,0,.90222],9484:yi,9488:yi,9492:Wt,9496:Wt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:qr,9633:qr,9650:nr,9651:nr,9654:Rr,9660:nr,9661:nr,9664:Rr,9674:Xt,9733:[.19444,.69224,0,0,.94445],10003:qt,10016:qt,10731:Xt,10846:[.19444,.75583,0,0,.61111],10877:An,10878:An,10885:Zt,10886:Zt,10887:$r,10888:$r,10889:Nr,10890:Nr,10891:Lr,10892:Lr,10901:An,10902:An,10933:Qt,10934:Qt,10935:Nr,10936:Nr,10937:Nr,10938:Nr,10949:Zt,10950:Zt,10955:Jr,10956:Jr,57350:_n,57351:Dn,57352:oi,57353:Ai,57356:Qt,57357:Qt,57358:Yn,57359:fr,57360:fr,57361:Yn,57366:Qt,57367:Qt,57368:Qt,57369:Qt,57370:$r,57371:$r},"Caligraphic-Regular":{32:Ar,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],160:Ar},"Fraktur-Regular":{32:Ar,33:[0,.69141,0,0,.29574],34:Si,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:ki,41:ki,42:[0,.62119,0,0,.27764],43:qn,44:Nn,45:qn,46:Nn,47:[.24982,.74947,0,0,.50181],48:ln,49:ln,50:ln,51:wi,52:wi,53:wi,54:Mn,55:wi,56:Mn,57:wi,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:ni,93:ni,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],160:Ar,8216:Si,8217:Si,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":{32:Ar,33:[0,.69444,0,0,.35],34:ra,35:[.19444,.69444,0,0,.95833],36:Ya,37:[.05556,.75,0,0,.95833],38:Ji,39:Kn,40:Mi,41:Mi,42:[0,.75,0,0,.575],43:ta,44:[.19444,.15556,0,0,.31944],45:Kt,46:[0,.15556,0,0,.31944],47:rn,48:Wn,49:Wn,50:Wn,51:Wn,52:Wn,53:Wn,54:Wn,55:Wn,56:Wn,57:Wn,58:ja,59:[.19444,.44444,0,0,.31944],60:Pi,61:qa,62:Pi,63:[0,.69444,0,0,.54305],64:Ji,65:dn,66:[0,.68611,0,0,.81805],67:Zn,68:[0,.68611,0,0,.88194],69:Du,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:si,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:jn,77:[0,.68611,0,0,1.09166],78:si,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:dn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Ln,92:rn,93:Ln,94:la,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:wn,99:Fi,100:wn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:wn,105:Kn,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Kn,109:[0,.44444,0,0,.95833],110:ui,111:hc,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:ui,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:Fi,123:rn,124:Ln,125:rn,126:[.35,.34444,0,0,.575],160:Ar,163:[0,.69444,0,0,.86853],168:la,172:[0,.44444,0,0,.76666],176:io,177:ta,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:ta,216:[.04861,.73472,0,0,.89444],223:Et,230:[0,.44444,0,0,.83055],247:ta,248:[.09722,.54167,0,0,.575],305:ja,338:[0,.68611,0,0,1.16944],339:Oo,567:[.19444,.44444,0,0,.35139],710:la,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:la,715:la,728:la,729:Kn,730:io,732:la,733:la,915:jn,916:Ca,920:ri,923:ad,926:ou,928:si,931:Zn,933:ri,934:Zn,936:ri,937:Zn,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Kn,8217:Kn,8220:ra,8221:ra,8224:La,8225:La,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:KA,8465:ca,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:ca,8501:el,8592:Hi,8593:za,8594:Hi,8595:za,8596:Hi,8597:rn,8598:ka,8599:ka,8600:ka,8601:ka,8636:Hi,8637:Hi,8640:Hi,8641:Hi,8656:Hi,8657:co,8658:Hi,8659:co,8660:Hi,8661:[.25,.75,0,0,.70277],8704:wn,8706:[0,.69444,.06389,0,.62847],8707:wn,8709:Ya,8711:Ca,8712:mi,8715:mi,8722:ta,8723:ta,8725:rn,8726:rn,8727:Wo,8728:Aa,8729:Aa,8730:[.18,.82,0,0,.95833],8733:Oo,8734:[0,.44444,0,0,1.14999],8736:Qi,8739:Ln,8741:rn,8743:mo,8744:mo,8745:mo,8746:mo,8747:[.19444,.69444,.12778,0,.56875],8764:qa,8768:[.19444,.69444,0,0,.31944],8771:Ni,8776:[.02444,.52444,0,0,.89444],8781:Ni,8801:Ni,8804:To,8805:To,8810:go,8811:go,8826:Pi,8827:Pi,8834:Pi,8835:Pi,8838:To,8839:To,8846:mo,8849:To,8850:To,8851:mo,8852:mo,8853:ta,8854:ta,8855:ta,8856:ta,8857:ta,8866:el,8867:el,8868:Ji,8869:Ji,8900:Aa,8901:[-.02639,.47361,0,0,.31944],8902:Wo,8968:Rs,8969:Rs,8970:Rs,8971:Rs,8994:Go,8995:Go,9651:xl,9657:Wo,9661:xl,9667:Wo,9711:ka,9824:$a,9825:$a,9826:$a,9827:$a,9837:[0,.75,0,0,.44722],9838:Qa,9839:Qa,10216:Mi,10217:Mi,10815:si,10927:To,10928:To,57376:wA},"Main-BoldItalic":{32:Ar,33:[0,.69444,.11417,0,.38611],34:_o,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:ua,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:Sa,49:Sa,50:Sa,51:Sa,52:Qs,53:Sa,54:Sa,55:Qs,56:Sa,57:Sa,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Xo,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:Bi,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:Bi,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:Wi,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:Vi,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:Vi,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],160:Ar,168:[0,.69444,.11473,0,.59111],176:_a,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:Oi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Oi,567:[.19444,.44444,.04611,0,.385],710:Wi,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:ua,730:_a,732:Xo,733:Xo,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:Bi,931:[0,.68611,.11431,0,.82666],933:Io,934:[0,.68611,.05632,0,.82666],936:Io,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:ua,8217:ua,8220:[0,.69444,.16772,0,.62055],8221:_o},"Main-Italic":{32:Ar,33:Za,34:ll,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Za,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:Ba,49:Ba,50:Ba,51:Ba,52:da,53:Ba,54:Ba,55:da,56:Ba,57:Ba,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Mo,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:Da,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:Da,79:kl,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:Da,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:Oa,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:eo,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:eo,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],160:Ar,168:[0,.66786,.10474,0,.51111],176:Fa,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:Ao,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ao,710:Oa,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:Fa,732:[0,.66786,.11585,0,.51111],733:Mo,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:kl,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Da,931:[0,.68333,.12028,0,.71555],933:ds,934:[0,.68333,.05986,0,.71555],936:ds,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Za,8217:Za,8220:[0,.69444,.1685,0,.51444],8221:ll,8463:Tn},"Main-Regular":{32:Ar,33:Uo,34:Qo,35:U,36:Ws,37:H,38:Un,39:Uo,40:Ms,41:Ms,42:Se,43:vo,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:bs,48:Lo,49:Lo,50:Lo,51:Lo,52:Lo,53:Lo,54:Lo,55:Lo,56:Lo,57:Lo,58:Va,59:[.19444,.43056,0,0,.27778],60:Hn,61:Ue,62:Hn,63:dt,64:Un,65:Dl,66:[0,.68333,0,0,.70834],67:Ks,68:[0,.68333,0,0,.76389],69:Vl,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Dl,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ro,76:Jo,77:[0,.68333,0,0,.91667],78:Dl,79:Ro,80:Vl,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ks,85:Dl,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Dl,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Ia,92:bs,93:Ia,94:Qo,95:[.31,.12056,.02778,0,.5],97:cl,98:Wl,99:ac,100:Wl,101:ac,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Wl,105:ao,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Uo,109:[0,.43056,0,0,.83334],110:ia,111:cl,112:fa,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:ia,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:ac,123:bs,124:Ia,125:bs,126:[.35,.31786,0,0,.5],160:Ar,163:[0,.69444,0,0,.76909],167:Ls,168:to,172:[0,.43056,0,0,.66667],176:Ko,177:vo,182:Pl,184:yn,198:[0,.68333,0,0,.90278],215:vo,216:[.04861,.73194,0,0,.77778],223:Qo,230:[0,.43056,0,0,.72222],247:vo,248:[.09722,.52778,0,0,.5],305:Va,338:[0,.68333,0,0,1.01389],339:yA,567:[.19444,.43056,0,0,.30556],710:Qo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Qo,715:Qo,728:Qo,729:ao,730:Ko,732:to,733:Qo,915:Jo,916:tA,920:Ro,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Dl,931:Ks,933:Ro,934:Ks,936:Ro,937:Ks,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Uo,8217:Uo,8220:Qo,8221:Qo,8224:Ls,8225:Ls,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Tn,8465:Al,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Al,8501:Pa,8592:Qn,8593:Vs,8594:Qn,8595:Vs,8596:Qn,8597:bs,8598:tl,8599:tl,8600:tl,8601:tl,8614:[.011,.511,0,0,1],8617:Hc,8618:Hc,8636:Qn,8637:Qn,8640:Qn,8641:Qn,8652:[.011,.671,0,0,1],8656:Qn,8657:Pl,8658:Qn,8659:Pl,8660:Qn,8661:[.25,.75,0,0,.61111],8704:Wl,8706:[0,.69444,.05556,.08334,.5309],8707:Wl,8709:Ws,8711:tA,8712:rA,8715:rA,8722:vo,8723:vo,8725:bs,8726:bs,8727:yo,8728:fc,8729:fc,8730:[.2,.8,0,0,.83334],8733:yA,8734:ci,8736:Qi,8739:Ia,8741:bs,8743:Nl,8744:Nl,8745:Nl,8746:Nl,8747:[.19444,.69444,.11111,0,.41667],8764:Ue,8768:[.19444,.69444,0,0,.27778],8771:Gs,8773:[-.022,.589,0,0,1],8776:rl,8781:Gs,8784:[-.133,.67,0,0,.778],8801:Gs,8804:$r,8805:$r,8810:nl,8811:nl,8826:Hn,8827:Hn,8834:Hn,8835:Hn,8838:$r,8839:$r,8846:Nl,8849:$r,8850:$r,8851:Nl,8852:Nl,8853:vo,8854:vo,8855:vo,8856:vo,8857:vo,8866:Pa,8867:Pa,8868:Un,8869:Un,8872:[.249,.75,0,0,.867],8900:fc,8901:[-.05555,.44445,0,0,.27778],8902:yo,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:bo,8969:bo,8970:bo,8971:bo,8994:Yo,8995:Yo,9136:ks,9137:ks,9651:Mc,9657:yo,9661:Mc,9667:yo,9711:tl,9824:Cl,9825:Cl,9826:Cl,9827:Cl,9837:[0,.75,0,0,.38889],9838:jc,9839:jc,10216:Ms,10217:Ms,10222:ks,10223:ks,10229:[.011,.511,0,0,1.609],10230:bA,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:bA,10815:Dl,10927:$r,10928:$r,57376:wA},"Math-BoldItalic":{32:Ar,48:hc,49:hc,50:hc,51:pc,52:pc,53:pc,54:Wn,55:pc,56:Wn,57:pc,65:dn,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:od,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Du,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:KA,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:Sd,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],160:Ar,915:[0,.68611,.15972,0,.65694],916:Ca,920:[0,.68611,.03194,0,.86722],923:ad,926:[0,.68611,.07458,0,.84125],928:od,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:ou,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:Sd,960:[0,.44444,.03704,0,.68241],961:Pu,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:Pu,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Ar,48:cl,49:cl,50:cl,51:su,52:su,53:su,54:Lo,55:su,56:Lo,57:su,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:c,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:sd,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:a,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],160:Ar,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:sd,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:c,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:a,960:[0,.43056,.03588,0,.57003],961:l,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:l,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Ar,33:[0,.69444,0,0,.36667],34:ar,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:wt,40:v,41:v,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:F,49:F,50:F,51:F,52:F,53:F,54:F,55:F,56:F,57:F,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:V,64:C,65:C,66:C,67:ie,68:O,69:[0,.69444,0,0,.64167],70:Pa,71:C,72:O,73:[0,.69444,0,0,.33056],74:V,75:_e,76:kt,77:[0,.69444,0,0,.97778],78:O,79:O,80:ie,81:[.10556,.69444,0,0,.79445],82:ie,83:Pa,84:C,85:_e,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:C,89:[0,.69444,.0275,0,.73334],90:ht,91:We,93:We,94:F,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Ve,99:[0,.45833,0,0,.48889],100:Ve,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Ve,105:ct,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:ct,109:[0,.45833,0,0,.86667],110:Lt,111:[0,.45833,0,0,.55],112:we,113:we,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Lt,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],160:Ar,168:F,176:C,180:F,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:F,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:F,729:wt,730:C,732:F,733:F,915:kt,916:[0,.69444,0,0,.91667],920:Pt,923:ht,926:C,928:O,931:O,933:Pt,934:O,936:Pt,937:O,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:wt,8217:wt,8220:ar,8221:ar},"SansSerif-Italic":{32:Ar,33:[0,.69444,.05733,0,.31945],34:Bt,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:bt,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:De,45:[0,.44444,.01946,0,.33333],46:Ye,47:[.25,.75,.13164,0,.5],48:gr,49:gr,50:gr,51:gr,52:gr,53:gr,54:gr,55:gr,56:gr,57:gr,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:pt,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:Kr,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:de,77:[0,.69444,.08094,0,.875],78:Kr,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:_r,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],160:Ar,168:[0,.67937,.06385,0,.5],176:Gt,184:yn,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:_r,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Dr,715:Qo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Gt,732:[0,.67659,.08826,0,.5],733:Dr,915:[0,.69444,.13372,0,.54167],916:pr,920:[0,.69444,.07555,0,.77778],923:Pa,926:[0,.69444,.12816,0,.66667],928:Kr,931:[0,.69444,.11983,0,.72222],933:Vr,934:[0,.69444,.04603,0,.72222],936:Vr,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:bt,8217:bt,8220:[0,.69444,.14205,0,.5],8221:Bt},"SansSerif-Regular":{32:Ar,33:[0,.69444,0,0,.31945],34:Qo,35:U,36:Ws,37:H,38:[0,.69444,0,0,.75834],39:Uo,40:Ms,41:Ms,42:Se,43:vo,44:De,45:[0,.44444,0,0,.33333],46:Ye,47:bs,48:He,49:He,50:He,51:He,52:He,53:He,54:He,55:He,56:He,57:He,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:dt,64:pt,65:pt,66:pt,67:wn,68:[0,.69444,0,0,.72223],69:Et,70:[0,.69444,0,0,.56945],71:pt,72:Ze,73:Uo,74:dt,75:[0,.69444,0,0,.69445],76:de,77:[0,.69444,0,0,.875],78:Ze,79:[0,.69444,0,0,.73611],80:wn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Wl,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:pt,89:[0,.69444,.025,0,.66667],90:Pa,91:Je,93:Je,94:Qo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:mt,99:yt,100:mt,101:yt,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:mt,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:Tt,111:[0,.44444,0,0,.5],112:It,113:It,114:[0,.44444,.01389,0,.34167],115:Kt,116:[0,.57143,0,0,.36111],117:Tt,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],160:Ar,168:[0,.67937,0,0,.5],176:pt,184:yn,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Qo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Qo,715:Qo,728:Qo,729:[0,.67937,0,0,.27778],730:pt,732:[0,.67659,0,0,.5],733:Qo,915:de,916:pr,920:Un,923:Pa,926:pt,928:Ze,931:Al,933:Un,934:Al,936:Un,937:Al,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Uo,8217:Uo,8220:Qo,8221:Qo},"Script-Regular":{32:Ar,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],160:Ar},"Size1-Regular":{32:Ar,40:sr,41:sr,47:Fr,91:Hr,92:Fr,93:Hr,123:hn,125:hn,160:Ar,710:tr,732:tr,770:tr,771:tr,8214:[-99e-5,.601,0,0,.77778],8593:St,8595:St,8657:On,8659:On,8719:zr,8720:zr,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:Ir,8748:wr,8749:wr,8750:Ir,8896:xr,8897:xr,8898:xr,8899:xr,8968:kr,8969:kr,8970:kr,8971:kr,9168:Ki,10216:kr,10217:kr,10752:fn,10753:fn,10754:fn,10756:xr,10758:xr},"Size2-Regular":{32:Ar,40:zn,41:zn,47:Rn,91:Bn,92:Rn,93:Bn,123:ii,125:ii,160:Ar,710:Ei,732:Ei,770:Ei,771:Ei,8719:gi,8720:gi,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:kn,8748:xi,8749:xi,8750:kn,8896:ha,8897:ha,8898:ha,8899:ha,8968:ei,8969:ei,8970:ei,8971:ei,10216:uo,10217:uo,10752:Ti,10753:Ti,10754:Ti,10756:ha,10758:ha},"Size3-Regular":{32:Ar,40:na,41:na,47:Ta,91:ma,92:Ta,93:ma,123:Vn,125:Vn,160:Ar,710:Gn,732:Gn,770:Gn,771:Gn,8730:[.95003,1.45,0,0,1],8968:bi,8969:bi,8970:bi,8971:bi,10216:Vn,10217:Vn},"Size4-Regular":{32:Ar,40:vi,41:vi,47:Zi,91:gn,92:Zi,93:gn,123:Xn,125:Xn,160:Ar,710:aa,732:aa,770:aa,771:aa,8730:[1.25003,1.75,0,0,1],8968:ji,8969:ji,8970:ji,8971:ji,9115:ko,9116:Do,9117:ko,9118:ko,9119:Do,9120:ko,9121:ro,9122:Ki,9123:ro,9124:ro,9125:Ki,9126:ro,9127:as,9128:Cn,9129:fo,9130:[0,.3,0,0,.88889],9131:as,9132:Cn,9133:fo,9143:[.88502,.915,0,0,1.05556],10216:Xn,10217:Xn,57344:Ho,57345:Ho,57680:Yi,57681:Yi,57682:Yi,57683:Yi},"Typewriter-Regular":{32:No,33:on,34:on,35:on,36:ga,37:ga,38:on,39:on,40:ga,41:ga,42:[0,.52083,0,0,.525],43:ho,44:[.13889,.125,0,0,.525],45:ho,46:[0,.125,0,0,.525],47:ga,48:on,49:on,50:on,51:on,52:on,53:on,54:on,55:on,56:on,57:on,58:Li,59:[.13889,.43056,0,0,.525],60:Wa,61:[-.19549,.41562,0,0,.525],62:Wa,63:on,64:on,65:on,66:on,67:on,68:on,69:on,70:on,71:on,72:on,73:on,74:on,75:on,76:on,77:on,78:on,79:on,80:on,81:[.13889,.61111,0,0,.525],82:on,83:on,84:on,85:on,86:on,87:on,88:on,89:on,90:on,91:ga,92:ga,93:ga,94:on,95:[.09514,0,0,0,.525],96:on,97:Li,98:on,99:Li,100:on,101:Li,102:on,103:Po,104:on,105:on,106:[.22222,.61111,0,0,.525],107:on,108:on,109:Li,110:Li,111:Li,112:Po,113:Po,114:Li,115:Li,116:[0,.55358,0,0,.525],117:Li,118:Li,119:Li,120:Li,121:Po,122:Li,123:ga,124:ga,125:ga,126:on,127:on,160:No,176:on,184:[.19445,0,0,0,.525],305:Li,567:Po,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:on,715:on,728:on,730:on,770:on,771:on,776:on,915:on,916:on,920:on,923:on,926:on,928:on,931:on,933:on,934:on,936:on,937:on,8216:on,8217:on,8242:on,9251:[.11111,.21944,0,0,.525]}},fs=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,ss=10,hs=.25,Bl=1.2,qo=.431,Ds={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[qo,qo,qo],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],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:[hs,hs,hs],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]},ps=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],jo=5,wo={"\xA0":" ","\u200B":" ",\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 Hs(e,t){e===void 0&&(e=77);const r=os[t][e];if(r)return{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]};if(e===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const n=String.fromCodePoint(e);if(n in wo)e=wo[n].codePointAt(0);else if(fs.test(n))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var oc={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"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["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],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["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],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Sl={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Ol={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`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
c -179 0 -524 -115 -524 -115
c -5 -1 -9 -5 -9 -10
c 0 -1 1 -2 1 -3
l 4 -22
c 1 -5 5 -9 11 -9
h 2
s 338 93 512 92
c 174 0 513 -92 513 -92
h 2
c 5 0 9 4 11 9
l 5 22
c 1 6 -2 12 -8 13
c 0 0 -342 115 -520 115
z
`,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`,widetilde1:`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`,widetilde2:`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`,widetilde3:`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`,widetilde4:`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`};function nA(e){if(Sl[e]){const[J,Ae,Qe]=Sl[e],ft=`<span class="stretchy" style="height:${Qe}em"><svg width="100%" height="${Qe}em" viewBox="0 0 ${J} ${Ae}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Ol[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Qe/2)/100}em;min-width:0">${ft}</span>`}const[t,r,n,i]=oc[e];let s,A;const M=n/1e3;t.length===3?(s=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],A=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(s=["slice-1-of-2","slice-2-of-2"],A=["xMinYMin","xMaxYMin"]):(s=["slice-1-of-1"],A=[i]);const z=t.map((J,Ae)=>`<span class="${s[Ae]}" style=height:${M}em><svg width=400em height=${M}em viewBox="0 0 400000 ${n}" preserveAspectRatio="${A[Ae]} slice"><path fill="currentcolor" d="${Ol[J]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${M}em;min-width:${r}em;">${z}</span>`}function HA(e){return oc[e]?oc[e][2]/1e3:Sl[e][2]}function pa(e){const t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n===13&&e.charCodeAt(r+1)===10&&(n=10,r++),(n===13||n===12)&&(n=10),n===0&&(n=65533),n>=55296&&n<=56319){const i=e.charCodeAt(r+1);if(i>=56320&&i<=57343){const s=n-55296,A=i-56320;n=ku(2,16)+s*ku(2,10)+A,r++}}t.push(n)}return t}var oo=8205,Ka=[[oo,1],[65038,2],[127995,5],[129456,4],[917536,96]],xo,ms=[127462,127487];function Ps(e){var t;if(xo===void 0){xo={};for(const r of Ka)for(let n=r[0];n<=r[0]+r[1]-1;n++)xo[n]=!0}return(t=xo[e])!=null?t:!1}function gs(e){return e>=ms[0]&&e<=ms[1]}function Gl(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=pa(e);let n=0;for(;n<r.length;){const i=r[n++],s=r[n];if(s===oo){const A=n-1;for(n+=2;r[n]===oo;)n+=2;t.push(String.fromCodePoint(...r.slice(A,n-A+1)))}else if(Ps(s)){const A=n-1;for(;Ps(r[n]);)n+=r[n]===oo?2:1;t.push(String.fromCodePoint(...r.slice(A,2*n-A-1)))}else gs(i)?(n+=1,t.push(String.fromCodePoint(...r.slice(n-2,2)))):t.push(String.fromCodePoint(i))}return t}var El=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=Gl(e)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(e){const t=typeof this.s=="string"?e.exec(this.s.slice(this.pos)):e.exec(this.s.slice(this.pos).join(""));return t!=null&&t[0]?(this.pos+=t[0].length,t[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const e=this.get();if(e==="\\"){if(!this.end()){let t=this.match(/^[a-zA-Z\*]+/);return t?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):t=this.get(),"\\"+t}}else{if(e==="{")return"<{>";if(e==="}")return"<}>";if(e==="^"){if(this.peek()==="^"){this.get();const t=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(t)return String.fromCodePoint(Number.parseInt(t.slice(t.lastIndexOf("^")+1),16))}return e}else if(e==="#"){if(!this.end()){let t=!1;if(/[\d?@]/.test(this.peek())&&(t=!0,this.pos+1<this.s.length)){const r=this.s[this.pos+1];t=/[^\dA-Za-z]/.test(r)}return t?"#"+this.get():"#"}}else if(e==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return e}};function zc(e,t){var r,n,i,s;const A=[];let M=e.next();if(M&&M!=="\\relax"){if(M==="\\noexpand")M=e.next(),M&&A.push(M);else if(M==="\\obeyspaces")e.obeyspaces=!0;else if(M==="\\bgroup")A.push("<{>");else if(M==="\\egroup")A.push("<}>");else if(M==="\\string"){if(M=e.next(),M)if(M.startsWith("\\"))for(const z of M)A.push(z==="\\"?"\\backslash":z);else M==="<{>"?A.push("\\{"):M==="<space>"?A.push("~"):M==="<}>"&&A.push("\\}")}else if(M==="\\csname"){for(;e.peek()==="<space>";)e.next();let z="",J=!1,Ae=[];do{if(Ae.length===0)if(/^#[\d?@]$/.test(e.peek())){const Qe=e.get().slice(1);Ae=Ns((n=(r=t==null?void 0:t(Qe))!=null?r:t==null?void 0:t("?"))!=null?n:"\\placeholder{}",t),M=Ae[0]}else M=e.next(),Ae=M?[M]:[];J=Ae.length===0,!J&&M==="\\endcsname"&&(J=!0,Ae.shift()),J||(J=M==="<$>"||M==="<$$>"||M==="<{>"||M==="<}>"||typeof M=="string"&&M.length>1&&M.startsWith("\\")),J||(z+=Ae.shift())}while(!J);z&&A.push("\\"+z),A.push(...Ae)}else if(M!=="\\endcsname")if(M.length>1&&M.startsWith("#")){const z=M.slice(1);A.push(...Ns((s=(i=t==null?void 0:t(z))!=null?i:t==null?void 0:t("?"))!=null?s:"\\placeholder{}",t))}else A.push(M)}return A}function Ns(e,t=null){const r=[];let n="";for(const A of e.toString().split(/\r?\n/)){n&&r.push(n),n=" ";const M=A.match(/((?:\\%)|[^%])*/);M!==null&&r.push(M[0])}const i=new El(nt(r.join(""))),s=[];do s.push(...zc(i,t));while(!i.end());return s}function wa(e){let t="";const r=[];for(const n of e)n&&(t&&/^[a-zA-Z\*]/.test(n)&&r.push(t),r.push(n),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(n)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(n)?" ":"");return r.join("")}function So(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:wa([e,...t.map(r=>`{${r}}`)])}function Tl(e){return wa(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var Xl=class Uf{constructor(t){Uf._registry[t]=this}static createAtom(t,r,n){return Uf._registry[t].createAtom(r,vt(r,t),n)}static serialize(t,r){var n;if(!t||t.length===0)return"";if((n=r.skipStyles)!=null&&n){const i=[];for(const s of xA(t)){const A=Uf._registry[s[0].mode];i.push(...A.serialize(s,r))}return wa(i)}return wa($c(t,r))}static getFont(t,r,n){return Uf._registry[t].getFont(r,n)}};Xl._registry={};var js=Xl;function xA(e){const t=[];let r=[],n="NONE";for(const i of e)i.type!=="first"&&(i.mode!==n?(r.length>0&&t.push(r),r=[i],n=i.mode):r.push(i));return r.length>0&&t.push(r),t}function Jl(e,t){const r=[];let n=[],i;for(const s of e)if(s.type!=="first"&&s.style){let A;t==="variant"?(A=s.style.variant,s.style.variantStyle&&s.style.variantStyle!=="up"&&(A+="-"+s.style.variantStyle)):A=s.style[t],A===i?n.push(s):(n.length>0&&r.push(n),n=[s],i=A)}return n.length>0&&r.push(n),r}function iA(e,t){var r;const{parent:n}=e[0],i=n==null?void 0:n.computedStyle.color,s=[];for(const A of xA(e)){const M=t.defaultMode;for(const z of Jl(A,"color")){const J=z[0].computedStyle,Ae=js._registry[z[0].mode].serialize(z,E(f({},t),{defaultMode:M==="text"?"text":"math"}));!t.skipStyles&&J.color&&J.color!=="none"&&(!n||i!==J.color)?s.push(So("\\textcolor",(r=J.verbatimColor)!=null?r:J.color,wa(Ae))):s.push(wa(Ae))}}return s}function jA(e,t){const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.backgroundColor;return Jl(e,"backgroundColor").map(i=>{var s;if(i.length>0||i[0].type!=="box"){const A=i[0].computedStyle;if(A.backgroundColor&&A.backgroundColor!=="none"&&(!r||n!==A.backgroundColor))return So("\\colorbox",(s=A.verbatimBackgroundColor)!=null?s:A.backgroundColor,wa(iA(i,E(f({},t),{defaultMode:"text"}))))}return wa(iA(i,t))})}function $c(e,t){if(e.length===0)return[];const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.fontSize,i=[];for(const s of Jl(e,"fontSize")){const A=s[0].computedStyle.fontSize,M=jA(s,t);M&&(A&&A!=="auto"&&(!r||n!==A)?i.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][A],...M):i.push(...M))}return i}function CA(e){return e?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]:void 0}function Ul(e){if(e.length===0)return"ord";const t=CA(e[0].type),r=CA(e[e.length-1].type);return t&&t===r?t:"ord"}function sc(e,t){if(typeof e=="string")return e;if(typeof e=="number"){console.assert(Number.isFinite(e));const r=Math.ceil(100*e)/100;return r===0?"0":r.toString()+(t!=null?t:"")}return""}var un=class Xh{constructor(t,r){var n,i,s,A,M;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:S(t)?this.children=t.filter(J=>J!==null):t&&t instanceof Xh&&(this.children=[t]),this.children)for(const J of this.children)J.parent=this;this.type=(n=r==null?void 0:r.type)!=null?n:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(i=r==null?void 0:r.classes)!=null?i:"",this.isTight=(s=r==null?void 0:r.isTight)!=null?s:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let z=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(z=(M=js.getFont((A=r.mode)!=null?A:"math",this,E(f({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?M:void 0),z||(z="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(r==null?void 0:r.maxFontSize)!==void 0&&(this.maxFontSize=r.maxFontSize),sa(this,z)}set atomID(t){t===void 0||t.length===0||(this.id=t)}selected(t){if(this.isSelected!==t&&(this.isSelected=t,this.children))for(const r of this.children)r.selected(t)}setStyle(t,r,n){if(r===void 0)return;const i=sc(r,n);i.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=i)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=sc(t,"em"),this.height-=t,this.depth+=t)}get left(){var t;return(t=this.cssProperties)!=null&&t["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=sc(t,"em")))}set right(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=sc(t,"em")))}set bottom(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=sc(t,"em")))}get width(){return this._width*this.scale}set width(t){this._width=t,this.hasExplicitWidth=!0}set softWidth(t){}get height(){return this._height*this.scale}set height(t){this._height=t}get depth(){return this._depth*this.scale}set depth(t){this._depth=t}wrap(t){const r=t.parent;if(!r)return this;t.isPhantom&&this.setStyle("opacity",0);const n=t.color;n&&n!==r.color&&this.setStyle("color",n);let i=t.backgroundColor;this.isSelected&&(i=ve(i)),i&&i!==r.backgroundColor&&(this.setStyle("background-color",i),this.setStyle("display","inline-block"));const s=t.scalingFactor;return this.scale=s,this.skew*=s,this.italic*=s,this}toMarkup(){var t,r,n,i;let s=(t=this.value)!=null?t:"";if(this.children)for(const Ft of this.children)s+=Ft.toMarkup();let A="";if(this.svgBody)A=nA(this.svgBody);else if(this.svgOverlay){A='<span style="',A+="display: inline-block;",A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,A+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,A+='">',A+=s,A+="</span>",A+='<svg style="position:absolute;overflow:visible;',A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Ft=(r=this.cssProperties)==null?void 0:r.padding;Ft?(A+=`top:${Ft};`,A+=`left:${Ft};`,A+=`width:calc(100% - 2 * ${Ft} );`):A+="top:0;left:0;width:100%;",A+="z-index:2;",A+='"',this.svgStyle&&(A+=this.svgStyle),A+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,A+=`>${this.svgOverlay}</svg>`}let M="";const z=this.classes.split(" ");z.push((n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?n:""),this.caret==="latex"&&z.push("ML__latex-caret"),this.isSelected&&z.push("ML__selected");const J=z.length===1?z[0]:z.filter((Ft,Ot,Er)=>Ft.length>0&&Er.indexOf(Ft)===Ot).join(" ");if(J.length>0&&(M+=` class="${J}"`),this.id&&(M+=` data-atom-id=${this.id}`),this.cssId&&(M+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(M+=" "+Object.keys(this.attributes).map(Ft=>`${Ft}="${this.attributes[Ft]}"`).join(" ")),this.htmlData){const Ft=this.htmlData.split(",");for(const Ot of Ft){const Er=Ot.match(/([^=]+)=(.+$)/);if(Er){const En=Er[1].trim().replace(/ /g,"-");En&&(M+=` data-${En}="${Er[2]}" `)}else{const En=Ot.trim().replace(/ /g,"-");En&&(M+=` data-${En} `)}}}const Ae=(i=this.cssProperties)!=null?i:{};this.hasExplicitWidth&&Ae.width===void 0&&(Ae.width=`${Math.ceil(this._width*100)/100}em`);const Qe=Object.keys(Ae).map(Ft=>`${Ft}:${Ae[Ft]}`);if(this.scale!==void 0&&this.scale!==1&&(s.length>0||A.length>0)&&Qe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Ft=this.htmlStyle.split(";");let Ot="";for(const Er of Ft){const En=Er.match(/([^=]+):(.+$)/);if(En){const Cr=En[1].trim().replace(/ /g,"-");Cr&&(Ot+=`${Cr}:${En[2]};`)}}Ot&&(M+=` style="${Ot}"`)}Qe.length>0&&(M+=` style="${Qe.join(";")}"`);let ft="";return M.length>0||A.length>0?ft=`<span${M}>${s}${A}</span>`:ft=s,this.caret==="text"?ft+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ft+='<span class="ML__caret"></span>'),ft}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,n=t.children&&t.children.length>0;if(r||n)return!1;if(t.cssProperties||this.cssProperties){for(const z of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&z in t.cssProperties||this.cssProperties&&z in this.cssProperties)return!1}const i=this.cssProperties?Object.keys(this.cssProperties).length:0,s=t.cssProperties?Object.keys(t.cssProperties).length:0;if(i!==s)return!1;if(i>0){for(const z of Object.keys(this.cssProperties))if(this.cssProperties[z]!==t.cssProperties[z])return!1}const A=this.classes.trim().replace(/\s+/g," ").split(" "),M=t.classes.trim().replace(/\s+/g," ").split(" ");if(A.length!==M.length)return!1;A.sort(),M.sort();for(const[z,J]of A.entries())if(J==="vertical-separator"||J!==M[z])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this._width=this._width+t._width,this.maxFontSize=Math.max(this.maxFontSize,t.maxFontSize),this.italic=t.italic,!0}};function Zc(e){if(!e||e.length===0)return[];e[0].children=Zc(e[0].children);const t=[e[0]];for(let r=1;r<e.length;r++)t[t.length-1].tryCoalesceWith(e[r])||(e[r].children=Zc(e[r].children),t.push(e[r]));return t}function Os(e){return e.children&&(e.children=Zc(e.children)),e}function BA(e,t){if(!e)return new un(null,t);const r=new un(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const n=[r];if(e.depth!==0){const i=new un(null,{classes:"ML__strut--bottom",type:"ignore"});i.setStyle("height",e.height+e.depth,"em"),i.setStyle("vertical-align",-e.depth,"em"),n.push(i)}return n.push(e),new un(n,E(f({},t),{type:"lift"}))}function Vc(e){const t=HA(e)/2,r=new un(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function sa(e,t){var r;if(e.type==="latex"){e.height=.9,e.depth=.2,e._width=1;return}if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let n=0;n<e.value.length;n++){const i=Hs(e.value.codePointAt(n),t);e.height=Math.max(e.height,i.height),e.depth=Math.max(e.depth,i.depth),e._width+=i.width,e.skew=i.skew,e.italic=i.italic}return}if(e.children&&e.children.length>0){let n=-1/0,i=-1/0,s=0;for(const A of e.children)A.height>n&&(n=A.height),A.depth>i&&(i=A.depth),s=Math.max(s,(r=A.maxFontSize)!=null?r:0);e.height=n,e.depth=i,e._width=e.children.reduce((A,M)=>A+M.width,0),e.maxFontSize=s}}function zA(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const n=[r],i=-r.shift-r.box.depth;let s=i;for(let A=1;A<t.length;A++){const M=t[A],z=-M.shift-s-M.box.depth,J=z-(r.box.height+r.box.depth);s=s+z,n.push(J),n.push(M),r=M}return[n,i]}if("top"in e){let t=e.top;for(const r of e.children)t-=typeof r=="number"?r:r.box.height+r.box.depth;return[e.children,t]}else{if("bottom"in e)return[e.children,-e.bottom];if("firstBaseline"in e){const t=e.firstBaseline[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.firstBaseline,-t.box.depth]}else if("shift"in e){const t=e.children[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.children,-t.box.depth-e.shift]}}return[null,0]}function $A(e){var t;const[r,n]=zA(e);if(!r)return[[],0,0];const i=new un(null,{classes:"pstrut"});let s=0;for(const Ot of r)if(typeof Ot!="number"){const Er=Ot.box;s=Math.max(s,Er.maxFontSize,Er.height)}s+=2,i.height=s,i.setStyle("height",s,"em");const A=[];let M=n,z=n,J=n,Ae=0;for(const Ot of r){if(typeof Ot=="number")J+=Ot;else{const Er=Ot.box,En=(t=Ot.classes)!=null?t:[],Cr=new un([i,Er],{classes:En.join(" "),style:Ot.style});Er.setStyle("height",Er.height+Er.depth,"em"),Er.setStyle("display","inline-block"),Cr.setStyle("top",-s-J-Er.depth,"em"),Ot.marginLeft&&Cr.setStyle("margin-left",Ot.marginLeft,"em"),Ot.marginRight&&Cr.setStyle("margin-right",Ot.marginRight,"em"),A.push(Cr),J+=Er.height+Er.depth,Ae=Math.max(Ae,Cr.width)}M=Math.min(M,J),z=Math.max(z,J)}A.forEach(Ot=>{Ot.softWidth=Ae});const Qe=new un(A,{classes:"vlist"});if(Qe.softWidth=Ae,Qe.height=z,Qe.setStyle("height",z,"em"),M>=0)return[[new un(Qe,{classes:"vlist-r"})],z,-M];const ft=new un(new un(null),{classes:"vlist"});ft.height=-M,ft.setStyle("height",-M,"em");const Ft=new un(8203,{classes:"vlist-s",maxFontSize:0});return Ft.softWidth=0,Ft.height=0,Ft.depth=0,[[new un([Qe,Ft],{classes:"vlist-r"}),new un(ft,{classes:"vlist-r"})],z,-M]}var Eo=class extends un{constructor(e,t){var r;const[n,i,s]=$A(e);super(n.length===1?n[0]:n,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(n.length===2?" vlist-t2":"")}),this.height=i,this.depth=s,this.softWidth=n.reduce((A,M)=>Math.max(A,M.width),0)}};function ZA(e,t){var r,n,i,s,A;const M=e.metrics,z=new un(t.base),J=(r=t.baseShift)!=null?r:0,Ae=(n=t.slant)!=null?n:0;let Qe=0,ft=0;t.above&&(Qe=(i=t.aboveShift)!=null?i:Math.max(M.bigOpSpacing1,M.bigOpSpacing3-t.above.depth)),t.below&&(ft=(s=t.belowShift)!=null?s:Math.max(M.bigOpSpacing2,M.bigOpSpacing4-t.below.height));let Ft=null;if(t.below&&t.above){const Ot=M.bigOpSpacing5+t.below.height+t.below.depth+ft+z.depth+J;Ft=new Eo({bottom:Ot,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},ft,{box:z,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)Ft=new Eo({top:z.height-J,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},ft,{box:z,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Ot=z.depth+J;Ft=new Eo({bottom:Ot,children:[{box:z,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else{const Ot=z.depth+J;Ft=new Eo({bottom:Ot,children:[{box:z},M.bigOpSpacing5]}).wrap(e)}return new un(Ft,{type:(A=t.type)!=null?A:"op"})}var aA=7,lc=6,Wc=5,Yl=4,cc=3,Co=2,Xs=1,ls=0,ul=class{constructor(e,t,r){this.id=e,this.sizeDelta=t,this.cramped=r;const n={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys(Ds).reduce((i,s)=>E(f({},i),{[s]:Ds[s][n]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return va[[ls,Xs,ls,Xs,Co,cc,Co,cc][this.id]]}get sub(){return va[[ls,ls,ls,ls,Co,Co,Co,Co][this.id]]}get fracNum(){return va[[ls,Xs,ls,Xs,Co,cc,Yl,Wc][this.id]]}get fracDen(){return va[[ls,ls,ls,ls,Co,Co,Yl,Yl][this.id]]}get cramp(){return va[[ls,ls,Co,Co,Yl,Yl,lc,lc][this.id]]}get isTight(){return this.sizeDelta<0}},Ea={7:new ul(aA,0,!1),6:new ul(lc,0,!0),5:new ul(Wc,0,!1),4:new ul(Yl,0,!0),3:new ul(cc,-3,!1),2:new ul(Co,-3,!0),1:new ul(Xs,-4,!1),0:new ul(ls,-4,!0)},va=E(f({},Ea),{displaystyle:Ea[aA],textstyle:Ea[Wc],scriptstyle:Ea[cc],scriptscriptstyle:Ea[Xs]});function Js(e,t){var r;if(!e)return 0;const n={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:ss,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(r=e.unit)!=null?r:"pt"];if(Number.isFinite(t)){const i=ku(10,t);return Math.round(e.dimension/ss*n*i)/i}return e.dimension*n}function _l(e,t){if(e===null)return 0;const r=Js(e)/ss;if(Number.isFinite(t)){const n=ku(10,t);return Math.round(r*n)/n}return r}function Rl(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function VA(e){let t=Rl(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${Rl(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${Rl(e.shrink)}`),t}function cs(e){var t,r;if(e==null)return null;let n="";if("dimension"in e&&(n=`${e.dimension}${(t=e.unit)!=null?t:"pt"}`),"glue"in e&&(n=VA(e)),"number"in e)if(!("base"in e)||e.base==="decimal")n=Number(e.number).toString();else if(e.base==="alpha")n=`\`${String.fromCodePoint(e.number)}`;else{const i=Math.round(e.number)>>>0;e.base==="hexadecimal"?(n=Number(i).toString(16).toUpperCase(),i<=255?n=n.padStart(2,"0"):i<=65535?n=n.padStart(4,"0"):i<=16777215?n=n.padStart(6,"0"):n=n.padStart(8,"0"),n=`"${n}`):e.base==="octal"&&(n=Number(i).toString(8),i<=63?n=n.padStart(2,"0"):i<=30583?n=n.padStart(4,"0"):n=n.padStart(8,"0"),n=`'${n}`)}return"register"in e&&("factor"in e&&(e.factor===-1?n="-":e.factor!==1&&(n=Number(e.factor).toString())),"global"in e&&e.global&&(n+="\\global"),n+=`\\${e.register}`),"string"in e&&(n=e.string),(r=e.relax)!=null&&r&&(n+="\\relax"),n}function dl(e,t){return e==null?null:"number"in e?E(f({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?E(f({},e),{factor:e.factor*t}):E(f({},e),{factor:t}):"dimension"in e?E(f({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:dl(e.glue,t),shrink:dl(e.shrink,t),grow:dl(e.grow,t)}:e.shrink?{glue:dl(e.glue,t),shrink:dl(e.shrink,t)}:e.grow?{glue:dl(e.glue,t),grow:dl(e.grow,t)}:{glue:dl(e.glue,t)}:null}var ql={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function ec(){return f({},ql)}function lu(){return{registers:ec(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:te.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:je,backgroundColorMap:q,getMacro:e=>Ut(e,At())}}var ya=class Jh{constructor(t,r){var n,i,s,A,M,z,J,Ae,Qe,ft,Ft,Ot,Er,En,Cr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=f(f({},lu()),(n=t==null?void 0:t.from)!=null?n:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=f({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(A=(s=t==null?void 0:t.isPhantom)!=null?s:(i=this.parent)==null?void 0:i.isPhantom)!=null?A:!1,this.letterShapeStyle=nn.letterShapeStyle,this.minFontScale=nn.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(z=(M=this.parent)==null?void 0:M.color)!=null?z:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(Ae=(J=this.parent)==null?void 0:J.backgroundColor)!=null?Ae:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Qe=this.parent)==null?void 0:Qe.size)?this.size=r.fontSize:this.size=(Ft=(ft=this.parent)==null?void 0:ft.size)!=null?Ft:jo;let Pn=(Er=(Ot=this.parent)==null?void 0:Ot.mathstyle)!=null?Er:va.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof Jh)switch(t.mathstyle){case"cramp":Pn=Pn.cramp;break;case"superscript":Pn=Pn.sup;break;case"subscript":Pn=Pn.sub;break;case"numerator":Pn=Pn.fracNum;break;case"denominator":Pn=Pn.fracDen;break}switch(t.mathstyle){case"textstyle":Pn=va.textstyle;break;case"displaystyle":Pn=va.displaystyle;break;case"scriptstyle":Pn=va.scriptstyle;break;case"scriptscriptstyle":Pn=va.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Pn,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(En=nn.colorMap)!=null?En:pn=>pn,this.backgroundColorMap=(Cr=nn.backgroundColorMap)!=null?Cr:pn=>pn,this.getMacro=nn.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const t=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,t}scale(t){return t*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===aA||this.mathstyle.id===lc}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ps[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(t){var r;if((r=this.registers)!=null&&r[t])return this.registers[t];if(this.parent)return this.parent.getRegister(t)}getRegisterAsNumber(t){const r=this.getRegister(t);if(typeof r=="number")return r;if(typeof r=="string")return Number(r)}getRegisterAsGlue(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n:typeof n=="object"&&"dimension"in n?{glue:{dimension:n.dimension}}:typeof n=="number"?{glue:{dimension:n}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return _l(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n.glue:typeof n=="object"&&"dimension"in n?n:typeof n=="number"?{dimension:n}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(t)}setRegister(t,r){if(r===void 0){delete this.registers[t];return}this.registers[t]=r}evaluate(t){if(!t||!("register"in t))return t;let r=this;if("global"in t&&t.global)for(;r.parent;)r=r.parent;let n=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(n=t.factor);const i=r.getRegister(t.register);if(i===void 0)return;if(typeof i=="string")return{string:Number(i).toString()+i};if(typeof i=="number")return{number:n*i};const s=r.evaluate(i);if(s!==void 0)return"string"in s?{string:Number(i).toString()+s.string}:"number"in s?{number:n*s.number}:"dimension"in s?E(f({},s),{dimension:n*s.dimension}):"glue"in s?E(f({},s),{glue:E(f({},s.glue),{dimension:n*s.glue.dimension}),shrink:s.shrink?E(f({},s.shrink),{dimension:n*s.shrink.dimension}):void 0,grow:s.grow?E(f({},s.grow),{dimension:n*s.grow.dimension}):void 0}):t}toDimension(t){const r=this.evaluate(t);return r===void 0?null:"dimension"in r?r:"glue"in r?r.glue:"number"in r?{dimension:r.number}:null}toEm(t,r){if(t===null)return 0;const n=this.toDimension(t);return n===null?0:Js(n,r)/ss}toNumber(t){if(t===null)return null;const r=this.evaluate(t);return r===void 0?null:"number"in r?r.number:"dimension"in r?r.dimension:"glue"in r?r.glue.dimension:"string"in r?Number(r.string):null}toColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.colorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}toBackgroundColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.backgroundColorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}},fl=["body","above","below","superscript","subscript"];function mc(e){return typeof e=="string"&&fl.includes(e)}function gc(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var Zr=class nd{constructor(t){var r,n,i,s,A,M;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(n=(r=t.command)!=null?r:this.value)!=null?n:"",this.mode=(i=t.mode)!=null?i:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=f({},t.style),this.displayContainsHighlight=(s=t.displayContainsHighlight)!=null?s:!1,this.captureSelection=(A=t.captureSelection)!=null?A:!1,this.skipBoundary=(M=t.skipBoundary)!=null?M:!1,t.verbatimLatex!==void 0&&t.verbatimLatex!==null&&(this.verbatimLatex=t.verbatimLatex),t.args&&(this.args=t.args),t.body&&(this.body=t.body),this._changeCounter=0}static createBox(t,r,n){var i;if(!r)return null;const s=cu(r),A=[];for(const z of s){const J=z[0].style,Ae=Ed(t,z,{style:{color:J.color,backgroundColor:J.backgroundColor,fontSize:J.fontSize}});Ae&&A.push(Ae)}if(A.length===0)return null;const M=((i=n==null?void 0:n.classes)!=null?i:"").trim();return A.length===1&&!M&&!(n!=null&&n.type)?A[0].wrap(t):new un(A,{classes:M,type:n==null?void 0:n.type}).wrap(t)}static serialize(t,r){return js.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const n=new WeakSet;let{parent:i}=t;for(;i;)n.add(i),i=i.parent;for(i=r.parent;i;){if(n.has(i))return i;i=i.parent}console.assert(!!i)}static fromJson(t){return typeof t=="string"?new nd({type:"mord",value:t,mode:"math"}):new nd(t)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const t={};if(this.type&&(t.type=this.type),this.mode!=="math"&&(t.mode=this.mode),this.command&&this.command!==this.value&&(t.command=this.command),this.value!==void 0&&(t.value=this.value),this.style&&Object.keys(this.style).length>0&&(t.style=f({},this.style)),this.verbatimLatex!==void 0&&(t.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(t.explicitSubsupPlacement=!0),this.isFunction&&(t.isFunction=!0),this.displayContainsHighlight&&(t.displayContainsHighlight=!0),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.skipBoundary&&(t.skipBoundary=!0),this.captureSelection&&(t.captureSelection=!0),this.args&&(t.args=SA(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(n=>n.type!=="first").map(n=>n.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?wa([So(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?wa([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return js.serialize(this.body,E(f({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return js.serialize(this.above,t)}belowToLatex(t){return js.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=E(f({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const n=js.serialize(this.subscript,t);n.length===0?r+="_{}":n.length===1?/^[0-9]$/.test(n)?r+=`_${n}`:r+=`_{${n}}`:r+=`_{${n}}`}if(this.branch("superscript")!==void 0){const n=js.serialize(this.superscript,t);n.length===0?r+="^{}":n.length===1?n==="\u2032"?r+="^\\prime ":n==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(n)?r+=`^${n}`:r+=`^{${n}}`:r+=`^{${n}}`}return r}get treeDepth(){let t=1,r=this.parent;for(;r;)r=r.parent,t+=1;return t}get inCaptureSelection(){let t=this;for(;t;){if(t.captureSelection)return!0;t=t.parent}return!1}get parentPrompt(){let t=this.parent;for(;t;){if(t.type==="prompt"&&!t.captureSelection)return t;t=t.parent}return null}branch(t){if(mc(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of fl)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(mc(t)),mc(t)?(this._branches?this._branches[t]||(this._branches[t]=[this.makeFirstAtom(t)]):this._branches={[t]:[this.makeFirstAtom(t)]},this.isDirty=!0,this._branches[t]):[]}get row(){return gc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return gc(this.parentBranch)?this.parentBranch[1]:-1}get body(){var t;return(t=this._branches)==null?void 0:t.body}set body(t){this.setChildren(t,"body")}get superscript(){var t;return(t=this._branches)==null?void 0:t.superscript}set superscript(t){this.setChildren(t,"superscript")}get subscript(){var t;return(t=this._branches)==null?void 0:t.subscript}set subscript(t){this.setChildren(t,"subscript")}get above(){var t;return(t=this._branches)==null?void 0:t.above}set above(t){this.setChildren(t,"above")}get below(){var t;return(t=this._branches)==null?void 0:t.below}set below(t){this.setChildren(t,"below")}get computedStyle(){var t,r;const n=typeof this.style.verbatimColor=="string",i=typeof this.style.verbatimBackgroundColor=="string",s=f(f({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete s.variant,delete s.variantStyle,i||delete s.verbatimBackgroundColor,n||delete s.verbatimColor,s}applyStyle(t){this.isDirty=!0,this.style=f(f({},this.style),t),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const r of this.children)r.applyStyle(t)}getInitialBaseElement(){var t,r,n;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(n=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?n:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(t){const r=this.branch(t);return r?(console.assert(r.length>0),console.assert(r[0].type==="first"),r.length===1):!0}setChildren(t,r){var n;if(!t||(console.assert(mc(r)),!mc(r)))return;console.assert(((n=t[0])==null?void 0:n.type)!=="first");const i=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=i:this._branches={[r]:i};for(const s of t)s.parent=this,s.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new nd({type:"first",mode:this.mode});return r.parent=this,r.parentBranch=t,r}addChild(t,r){console.assert(t.type!=="first"),this.createBranch(r).push(t),this.isDirty=!0,t.parent=this,t.parentBranch=r}addChildBefore(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const n=this.createBranch(r);for(const i of t)i.parent=this,i.parentBranch=r,n.push(i);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,...t),this.isDirty=!0;for(const i of t)i.parent=this,i.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(mc(t)&&(this._branches[t]=void 0),!r)return[];for(const n of r)n.parent=void 0,n.parentBranch=void 0;return console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}removeChild(t){if(console.assert(t.parent===this),t.type==="first")return;const r=this.branch(t.parentBranch),n=r.indexOf(t);console.assert(n>=0),r.splice(n,1),this.isDirty=!0,t.parent=void 0,t.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:t}=this;return t[t.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:t}=this;return t[t.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const t=[];for(const r of fl)if(this._branches[r])for(const n of this._branches[r])t.push(...n.children),t.push(n);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=vt(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const n=new ya({parent:t},this.style);let i=this.createBox(n,{classes:this.parent?"":"ML__base"});return i?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(i=this.attachSupsub(n,{base:i})),i.wrap(n)):null}attachSupsub(t,r){var n;const i=r.base,s=this.superscript,A=this.subscript;if(!s&&!A)return i;let M=null,z=null;const J=(n=r.isCharacterBox)!=null?n:this.isCharacterBox();let Ae=0;if(s){const Er=new ya({parent:t,mathstyle:"superscript"});M=nd.createBox(Er,s),J||(Ae=i.height-t.metrics.supDrop*Er.scalingFactor)}let Qe=0;if(A){const Er=new ya({parent:t,mathstyle:"subscript"});z=nd.createBox(Er,A),J||(Qe=i.depth+t.metrics.subDrop*Er.scalingFactor)}let ft;t.isDisplayStyle?ft=t.metrics.sup1:t.isCramped?ft=t.metrics.sup3:ft=t.metrics.sup2;const Ft=.5/ss/t.scalingFactor;let Ot=null;if(z&&M){Ae=Math.max(Ae,ft,M.depth+.25*t.metrics.xHeight),Qe=Math.max(Qe,t.metrics.sub2);const Er=t.metrics.defaultRuleThickness;if(Ae-M.depth-(z.height-Qe)<4*Er){Qe=4*Er-(Ae-M.depth)+z.height;const Cr=.8*t.metrics.xHeight-(Ae-M.depth);Cr>0&&(Ae+=Cr,Qe-=Cr)}const En=this.isExtensibleSymbol&&i.italic?-i.italic:0;Ot=new Eo({individualShift:[{box:z,shift:Qe,marginLeft:En},{box:M,shift:-Ae}]}).wrap(t)}else z&&!M?(Qe=Math.max(Qe,t.metrics.sub1,z.height-.8*qo),Ot=new Eo({shift:Qe,children:[{box:z,marginRight:Ft,marginLeft:this.isCharacterBox()?-i.italic:0}]})):!z&&M&&(Ae=Math.max(Ae,ft,M.depth+.25*qo),Ot=new Eo({shift:-Ae,children:[{box:M,marginRight:Ft}]}));return new un([i,new un(Ot,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const n=this.superscript?nd.createBox(new ya({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,i=this.subscript?nd.createBox(new ya({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!n&&!i?r.base.wrap(t):ZA(t,E(f({},r),{above:n,below:i}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let n=this.parent;for(;n&&!n.captureSelection;)n=n.parent;return n!=null&&n.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var n,i,s,A;const M=(n=this.value)!=null?n:this.body,z=(i=r==null?void 0:r.boxType)!=null?i:CA(this.type);let J=(s=r==null?void 0:r.classes)!=null?s:"";this.mode==="text"&&(J+=" ML__text");const Ae=typeof M=="string"||M===void 0?new un(M!=null?M:null,{type:z,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:E(f({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:J}):(A=nd.createBox(t,M,{type:z,classes:J}))!=null?A:new un(null);return t.isTight&&(Ae.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ae.italic=0),Ae.right=Ae.italic,this.bind(t,Ae),this.caret&&!this.superscript&&!this.subscript&&(Ae.caret=this.caret),Ae}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function cu(e){let t;const r=[];let n=[];for(const i of e)if(!t&&!i.style)n.push(i);else{const s=i.computedStyle;t&&s.color===t.color&&s.backgroundColor===t.backgroundColor&&s.fontSize===t.fontSize?n.push(i):(n.length>0&&r.push(n),n=[i],t=s)}return n.length>0&&r.push(n),r}function Ed(e,t,r){var n,i,s,A,M;if(!t||t.length===0)return null;const z=new ya({parent:e},r.style),J=!((n=z.atomIdsSettings)!=null&&n.groupNumbers);let Ae=[];if(t.length===1){const ft=t[0],Ft=ft.render(z);Ft&&(J&&ft.isSelected&&Ft.selected(!0),Ae=[Ft])}else{let ft="",Ft=!0;for(const Ot of t){(i=z.atomIdsSettings)!=null&&i.groupNumbers&&ft&&(Ft&&Ot.isDigit()||!Ft&&WA(Ot))&&(z.atomIdsSettings.overrideID=ft);const Er=Ot.render(z);z.atomIdsSettings&&(z.atomIdsSettings.overrideID=void 0),Er&&((s=z.atomIdsSettings)!=null&&s.groupNumbers&&((Ot.isDigit()||WA(Ot))&&(!ft||Ft!==Ot.isDigit())&&(Ft=Ot.isDigit(),ft=(A=Ot.id)!=null?A:""),ft&&(!(Ot.isDigit()||WA(Ot))||!Ot.hasEmptyBranch("superscript")||!Ot.hasEmptyBranch("subscript"))&&(ft="")),J&&Ot.isSelected&&Er.selected(!0),Ae.push(Er))}}if(Ae.length===0)return null;const Qe=new un(Ae,E(f({isTight:z.isTight},r),{type:(M=r.type)!=null?M:"lift"}));return Qe.isSelected=Ae.every(ft=>ft.isSelected),Qe.wrap(z)}function WA(e){return e.mode==="text"}function SA(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof Zr?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var Lc=class Yh extends Zr{constructor(t,r,n){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(n)}static fromJson(t){return new Yh(t.command,t.value,t.style)}render(t){const r=this.createBox(t);return this.caret&&(r.caret=this.caret),r}_serialize(t){var r;return(r=this.verbatimLatex)!=null?r:Rt("text",this.value.codePointAt(0))}};function Au(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let n=0;for(;n<r&&uu(e.ranges[n],t.ranges[n])==="equal";)n++;return n===r?"equal":"different"}}return"different"}function uu(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function ws(e){let t=1/0,r=-1/0;for(const n of e.ranges)t=Math.min(t,n[0],n[1]),r=Math.max(r,n[0],n[1]);return[t,r]}function vc(e){return typeof e=="number"&&!Number.isNaN(e)}function GA(e){return Array.isArray(e)&&e.length===2}function Gc(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function XA(e,t){const r=e.at(t);let n;if(r){n=r.mode;let i=r.parent;for(;!n&&i;)i&&(n=i.mode),i=i.parent}return n}function EA(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,n=!1,i=!1,s=!1,A=!1,M=!1,z=!1,J=!1,Ae=!1,Qe=!1,ft=!1,Ft=!1,Ot=!1,Er=!1,En=!1,Cr=e[0],nn=0;for(;Cr!=null&&Cr.type&&/^(subsup|placeholder)$/.test(Cr.type);)nn+=1,Cr=e[nn];return r=!Cr||Cr.type==="first",Cr&&(Er=Cr.mode==="text",n=!Er&&Cr.type==="mord"&&p.test(Cr.value),i=!Er&&Cr.type==="mord"&&/\d+$/.test(Cr.value),s=!Er&&Cr.isFunction,A=Cr.type==="genfrac",M=Cr.type==="surd",z=Cr.type==="mbin",J=Cr.type==="mrel",Ae=Cr.type==="mop"||Cr.type==="operator"||Cr.type==="extensible-symbol",Qe=Cr.type==="mpunct"||Cr.type==="minner",ft=Cr.type==="array",Ft=Cr.type==="mopen",Ot=Cr.type==="mclose"||Cr.type==="leftright",En=Cr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&n||t.after.includes("digit")&&i||t.after.includes("function")&&s||t.after.includes("frac")&&A||t.after.includes("surd")&&M||t.after.includes("binop")&&z||t.after.includes("relop")&&J||t.after.includes("operator")&&Ae||t.after.includes("punct")&&Qe||t.after.includes("array")&&ft||t.after.includes("openfence")&&Ft||t.after.includes("closefence")&&Ot||t.after.includes("text")&&Er||t.after.includes("space")&&En?t.value:""}function kc(e,t,r){return r?EA(e,r[t]):""}var JA={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function P(e,t){var r;let n=(r=t==null?void 0:t.format)!=null?r:"auto";return n==="auto"&&([n,e]=Fn(e)),n==="ascii-math"?(e=e.replace(/\u2061/gu,""),e=e.replace(/\u3016/gu,"{"),e=e.replace(/\u3017/gu,"}"),e=e.replace(/([^\\])sinx/g,"$1\\sin x"),e=e.replace(/([^\\])cosx/g,"$1\\cos x "),e=e.replace(/\u2013/g,"-"),["ascii-math",$e(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function $e(e,t){var r,n,i;if(!e)return"";let s=!1,A;const M=(r=t.inlineShortcuts)!=null?r:JA;if(!s&&(e.startsWith("^")||e.startsWith("_"))&&(A=Dt(e.slice(1),{inlineShortcuts:M,noWrap:!0}),e=e[0]+"{"+A.match+"}",e+=$e(A.rest,t),s=!0),s||(A=e.match(/^(sqrt|\u221A)(.*)/),A&&(A=Dt(A[2],{inlineShortcuts:M,noWrap:!0}),e="\\sqrt{"+((n=A.match)!=null?n:"\\placeholder{}")+"}",e+=$e(A.rest,t),s=!0)),s||(A=e.match(/^(\\cbrt|\u221B)(.*)/),A&&(A=Dt(A[2],{inlineShortcuts:M,noWrap:!0}),e="\\sqrt[3]{"+((i=A.match)!=null?i:"\\placeholder{}")+"}",e+=$e(A.rest,t),s=!0)),s||(A=e.match(/^abs(.*)/),A&&(A=Dt(A[1],{inlineShortcuts:M,noWrap:!0}),e="\\left|"+A.match+"\\right|",e+=$e(A.rest,t),s=!0)),s||(A=e.match(/^["”“](.*?)["”“](.*)/),A&&(e="\\text{"+A[1]+"}",e+=$e(A[2],t),s=!0)),s||(A=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),A&&(e=Jt(A[1],M),e+=$e(A[2],t),s=!0)),!s&&/^([fgh])[^a-zA-Z]/.test(e)&&(A=Dt(e.slice(1),{inlineShortcuts:M,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+A.match+"\\right)":e[0]+A.match,e+=$e(A.rest,t),s=!0),s||(A=e.match(/^([a-zA-Z]+)(.*)/),A&&(e=Jt(A[1],M),e+=$e(A[2],t),s=!0)),!s)if(A=Dt(e,{inlineShortcuts:M,noWrap:!0}),A.match&&A.rest[0]==="/"){const z=Dt(A.rest.slice(1),{inlineShortcuts:M,noWrap:!0});z.match&&(e="\\frac{"+A.match+"}{"+z.match+"}"+$e(z.rest,t)),s=!0}else A.match&&(e=e.startsWith("(")?"\\left("+A.match+"\\right)"+$e(A.rest,t):A.match+$e(A.rest,t),s=!0);return s||(A=e.match(/^(\s+)(.*)$/),A&&(e=" "+$e(A[2],t),s=!0)),e}function Dt(e,t){let r="";e=e.trim();let n=e,i=e.charAt(0),s={"(":")","{":"}","[":"]"}[i];if(s){let A=1,M=1;for(;M<e.length&&A>0;)e[M]===i&&A++,e[M]===s&&A--,M++;A===0?(t.noWrap&&i==="("?r=$e(e.substring(1,M-1),t):(i==="{"&&s==="}"&&(i="\\{",s="\\}"),r="\\left"+i+$e(e.substring(1,M-1),t)+"\\right"+s),n=e.slice(Math.max(0,M))):(r=e.substring(1,M),n="")}else{let A=e.match(/^([a-zA-Z]+)/);if(A){let M=kc(null,e,t.inlineShortcuts);if(M)return M=M.replace("_{#?}",""),M=M.replace("^{#?}",""),{match:M,rest:e.slice(M.length)}}if(A=e.match(/^([a-zA-Z])/),A)return{match:A[1],rest:e.slice(1)};if(A=e.match(/^(-)?\d+(\.\d*)?/),A)return{match:A[0],rest:e.slice(A[0].length)};/^\\(left|right)/.test(e)||(A=e.match(/^(\\[a-zA-Z]+)/),A&&(n=e.slice(A[1].length),r=A[1]))}return{match:r,rest:n}}function Jt(e,t){let r=kc(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var vr=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Xr(e){const t=e.trim();for(const r of vr)if(t.startsWith(r[0])&&t.endsWith(r[1]))return[!0,t.substring(r[0].length,t.length-r[1].length)];return[!1,e]}function Fn(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=Xr(e),t?["latex",e]:e.startsWith("`")&&e.endsWith("`")?(e=e.substring(1,e.length-1),["ascii-math",e]):e.includes("\\")?["latex",e]:/\$.+\$/.test(e)?["latex",`\\text{${e}}`]:[void 0,e]}var Di="$$",qi="$$",Ma=(e,t,r)=>(vr.some(n=>t.startsWith(n[0])&&t.endsWith(n[1]))||(t=`${Di} ${t} ${qi}`),t),xa=class p0{constructor(t){p0._modes[t]=this}static onPaste(t,r,n){var i;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof n=="string"){const A=new DataTransfer;A.setData("text/plain",n),n=A}const s=new ClipboardEvent("paste",{clipboardData:n,cancelable:!0});return(i=r.host)!=null&&i.dispatchEvent(s)?p0._modes[t].onPaste(r,n):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const n=t.model,i=n.selectionIsCollapsed?[0,n.lastOffset]:ws(n.selection),s=n.getValue(i,r);navigator.clipboard.writeText(s).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var n;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:ws(i.selection);let A=i.getAtoms(s);if(A.every(M=>M.mode==="text"||!M.mode))r.clipboardData.setData("text/plain",A.filter(M=>M instanceof Lc).map(M=>M.value).join(""));else if(A.every(M=>M.mode==="latex"))r.clipboardData.setData("text/plain",i.getAtoms(s,{includeChildren:!0}).map(M=>{var z;return(z=M.value)!=null?z:""}).join(""));else{let M;A.length===1&&A[0].verbatimLatex!==void 0?M=A[0].verbatimLatex:M=i.getValue(s,"latex-expanded"),r.clipboardData.setData("application/x-latex",M);try{r.clipboardData.setData("text/plain",t.options.onExport(t,M,s))}catch(z){}if(A.length===1){const z=A[0];(z.type==="root"||z.type==="group")&&(A=z.body.filter(J=>J.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(A.map(z=>z.toJson())))}catch(z){}if((n=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&n.ComputeEngine){const z=window.MathfieldElement.computeEngine;if(z)try{const J=z.jsonSerializationOptions;z.jsonSerializationOptions={metadata:["latex"]};const Ae=z.parse(i.getValue(s,"latex-unstyled"));z.jsonSerializationOptions=J;const Qe=JSON.stringify(Ae.json);Qe&&r.clipboardData.setData("application/json",Qe)}catch(J){}}}r.preventDefault()}static insert(t,r,n={}){var i;const s=n.mode==="auto"?t.mode:(i=n.mode)!=null?i:t.mode;return p0._modes[s].insert(t,r,n)}onPaste(t,r){return!1}insert(t,r,n){return!1}};xa._modes={};var zi=xa,vs=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],xs={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function zo(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function hl(e){var t,r;return(r=(t=e.querySelector(".ML__caret"))!=null?t:e.querySelector(".ML__text-caret"))!=null?r:e.querySelector(".ML__latex-caret")}function Cs(e){const t=hl(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function Dc(e){var t;if(!e.parent)return"root";let r=(t=e.parent.id)!=null?t:"";return r+=typeof e.parentBranch=="string"?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,r}function pl(e,t,r){if(!t)return null;const n=e.field.getBoundingClientRect(),i=t.right-t.left,s=t.bottom-t.top,A=Math.ceil(t.left-n.left+e.field.scrollLeft*r),M=Math.ceil(t.top-n.top);return{left:A,right:A+i,top:M,bottom:M+s}}function tc(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),n={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+r};if(e.children.length===0||e.tagName.toUpperCase()==="SVG")return n;for(const i of e.children)if(i.nodeType===1&&"atomId"in i.dataset&&!i.classList.contains("pstrut")){const s=tc(i);n.left=Math.min(n.left,s.left),n.right=Math.max(n.right,s.right),n.top=Math.min(n.top,s.top),n.bottom=Math.max(n.bottom,s.bottom)}return n}function oA(e,t){var r,n;if(!t.id)return null;let i=(n=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?n:null;if(i!==null)return i;const s=e.field.querySelector(`[data-atom-id="${t.id}"]`);return i=s?tc(s):null,e.atomBoundsCache&&(i?e.atomBoundsCache.set(t.id,i):e.atomBoundsCache.delete(t.id)),i!=null?i:null}function du(e,t,r){const n=new Map;for(const i of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&i.style.backgroundColor)continue;const s=e.field,A=s.offsetWidth;let z=Math.floor(s.getBoundingClientRect().width)/A;z=isNaN(z)?1:z;const J=pl(e,oA(e,i),z);if(J){const Ae=Dc(i);if(n.has(Ae)){const Qe=n.get(Ae);n.set(Ae,{left:Math.min(Qe.left,J.left),right:Math.max(Qe.right,J.right),top:Math.min(Qe.top,J.top),bottom:Math.max(Qe.bottom,J.bottom)})}else n.set(Ae,J)}}return[...n.values()]}function fu(e,t){return e.model.selection.ranges.reduce((r,n)=>r.concat(...du(e,n,t)),[])}function sA(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function YA(e){let t=0,r=0;const n=e.offsetWidth,i=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,n,i)}var Nu=`@keyframes ML__caret-blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.ML__container {
display: inline-flex;
flex-flow: row;
justify-content: space-between;
align-items: flex-end;
min-height: 39px;
/* Need some room for the virtual keyboard toggle */
width: 100%;
/* Encourage browsers to consider allocating a hardware accelerated
layer for this element. */
isolation: isolate;
/* Prevent the browser from trying to interpret touch gestures in the field */
/* "Disabling double-tap to zoom removes the need for browsers to
delay the generation of click events when the user taps the screen." */
touch-action: none;
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
--_selection-color: var(--selection-color, #000);
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
--_smart-fence-color: var(--smart-fence-color, currentColor);
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
--_correct-color: var(--correct-color, #10a000);
--_incorrect-color: var(--incorrect-color, #a01b00);
--_composition-background-color: var(--composition-background-color, #fff1c2);
--_composition-text-color: var(--composition-text-color, black);
--_composition-underline-color: var(--composition-underline-color, transparent);
}
/* This is the actual field content (formula) */
.ML__content {
display: flex;
align-items: center;
align-self: center;
position: relative;
overflow: hidden;
padding: 2px 3px 2px 1px;
width: 100%;
}
.ML__virtual-keyboard-toggle,
.ML__menu-toggle {
box-sizing: border-box;
display: flex;
align-self: center;
align-items: center;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
margin-right: 4px;
cursor: pointer;
/* Avoid some weird blinking with :hover */
border-radius: 8px;
border: 1px solid transparent;
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
color: hsl(var(--_hue), 40%, 50%);
fill: currentColor;
background: transparent;
}
.ML__virtual-keyboard-toggle:hover,
.ML__menu-toggle:hover {
background: hsla(0, 0%, 70%, 0.3);
color: #333;
fill: currentColor;
}
.ML__virtual-keyboard-toggle > span,
.ML__menu-toggle > span {
display: flex;
align-self: center;
align-items: center;
}
/* The invisible element used to capture keyboard events. We're just trying
really hard to make sure it doesn't show. */
.ML__keyboard-sink {
display: inline-block;
resize: none;
outline: none;
border: none;
/* Need these for Microsoft Edge */
position: fixed;
clip: rect(0 0 0 0);
/* Need this to prevent iOS Safari from auto-zooming */
font-size: 1em;
font-family: KaTeX_Main;
line-height: 0.5;
/* On Chromium, if this is 0, no keyboard events are received */
}
[part="placeholder"] {
color: var(--neutral-400);
}
.ML__composition {
background: var(--_composition-background-color);
color: var(--_composition-text-color);
text-decoration: underline var(--_composition-underline-color);
}
.ML__caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__text-caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__latex-caret::after {
content: '';
visibility: hidden;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_latex-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.019em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__focused .ML__latex-caret::after,
.ML__focused .ML__text-caret::after,
.ML__focused .ML__caret::after {
visibility: visible;
}
.ML__focused .ML__text {
background: var(--_text-highlight-background-color);
}
/* When using smartFence, the anticipated closing fence is displayed
with this style */
.ML__smart-fence__close {
opacity: var(--_smart-fence-opacity);
color: var(--_smart-fence-color);
}
.ML__selected,
.ML__focused .ML__selected .ML__contains-caret,
.ML__focused .ML__selected .ML__smart-fence__close,
.ML__focused .ML__selected .ML__placeholder {
color: var(--_selection-color);
opacity: 1;
}
.ML__selection {
box-sizing: border-box;
background: var(--_selection-background-color) !important;
}
.ML__contains-caret.ML__close,
.ML__contains-caret.ML__open,
.ML__contains-caret > .ML__close,
.ML__contains-caret > .ML__open,
.ML__contains-caret .ML__sqrt-sign,
.ML__contains-caret .ML__sqrt-line {
color: var(--_caret-color);
}
.ML__contains-highlight {
box-sizing: border-box;
background: transparent;
}
.ML__focused .ML__contains-highlight {
background: var(--_contains-highlight-background-color);
}
.ML__raw-latex {
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
font-weight: 400;
font-size: 0.8em;
letter-spacing: -0.05em;
color: var(--_latex-color);
}
.ML__suggestion {
color: var(--neutral-500);
}
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
.ML__virtual-keyboard-toggle:focus {
outline: none;
border-radius: 8px;
border: 2px solid hsl(var(--_hue), 40%, 50%);
}
.ML__virtual-keyboard-toggle.is-pressed,
.ML__virtual-keyboard-toggle.is-active:hover,
.ML__virtual-keyboard-toggle.is-active {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
/* Add an attribute 'data-tooltip' to automatically show a
tooltip over a element on hover.
*/
[data-tooltip] {
position: relative;
}
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
display: block;
z-index: 2;
pointer-events: none;
right: auto;
top: calc(-100% - 4px);
width: max-content;
max-width: 200px;
padding: 8px 8px;
border-radius: 4px;
background: #616161;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
text-align: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 13px;
/* Phone */
opacity: 0;
transform: scale(0.5);
}
@media only screen and (max-width: 767px) {
[data-tooltip]::after {
padding: 8px 16px;
font-size: 16px;
}
}
menu [data-tooltip]::after {
left: 100%;
top: 0%;
}
menu .ML__base {
cursor: default;
}
/** Don't display if we're tracking, i.e. have the pointer down */
.tracking [data-tooltip]:hover::after {
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
visibility: hidden;
}
/** But do display if tracking and inside a menu */
.tracking menu li[data-tooltip]:hover::after,
[data-tooltip]:hover::after {
visibility: visible;
opacity: 1;
transform: scale(1);
transition-property: opacity, scale;
transition-duration: 0.15s;
transition-delay: 1s;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__prompt {
border-radius: 2px;
}
.ML__editablePromptBox {
outline: 1px solid #acacac;
border-radius: 2px;
z-index: -1;
}
.ML__focusedPromptBox {
outline: highlight auto 1px;
}
.ML__lockedPromptBox {
background-color: rgba(142, 142, 141, 0.4);
z-index: -1;
}
.ML__correctPromptBox {
outline: 1px solid var(--_correct-color);
box-shadow: 0 0 5px var(--_correct-color);
}
.ML__incorrectPromptBox {
outline: 1px solid var(--_incorrect-color);
box-shadow: 0 0 5px var(--_incorrect-color);
}
.variant-submenu {
display: flex;
flex-direction: column;
padding: 8px;
}
.variant-submenu [part=menu-item] {
font-size: 2rem;
text-align: center;
margin: 0;
}
.insert-matrix-submenu {
display: grid;
padding: 8px;
align-content: center;
justify-content: center;
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.insert-matrix-submenu [part=menu-item] {
font-size: 21px;
border: none;
border-radius: 0;
line-height: 21px;
text-align: center;
padding: 0;
margin: 0;
}
.border-submenu [part=menu-item] {
font-size: 2rem;
line-height: 1.2;
text-align: center;
}
.swatches-submenu {
--_swatch-size: 2rem;
--_columns: 4;
display: flex;
flex-flow: wrap;
padding: 8px;
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
box-sizing: border-box;
}
.menu-swatch {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: fit-content;
height: fit-content;
margin: 2px;
padding: 0;
background: var(--neutral-200);
}
.menu-swatch > .label {
padding: 0;
margin: 0;
line-height: 0;
}
.menu-swatch > .label > span {
display: inline-block;
margin: 6px;
min-width: var(--_swatch-size);
min-height: var(--_swatch-size);
border-radius: 50%;
}
.menu-swatch.active {
background: var(--neutral-100);
scale: 1.4;
}
.menu-swatch.active > .label > span {
border-radius: 2px;
}
.menu-swatch .ui-checkmark,
.menu-swatch .ui-mixedmark {
position: absolute;
margin: 0;
padding: 0;
color: white;
}
.menu-swatch.dark-contrast .ui-checkmark,
.menu-swatch.dark-contrast .ui-mixedmark {
color: #000;
}
`,hu=`.ML__container {
min-height: auto !important;
--_hue: var(--hue, 212);
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
}
.ML__sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.ML__is-inline {
display: inline-block;
}
.ML__base {
visibility: inherit;
display: inline-block;
position: relative;
cursor: text;
padding: 0;
margin: 0;
box-sizing: content-box;
border: 0;
outline: 0;
vertical-align: baseline;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
text-decoration: none;
width: min-content;
}
.ML__strut,
.ML__strut--bottom {
display: inline-block;
min-height: 0.5em;
}
.ML__small-delim {
font-family: KaTeX_Main;
}
/* Text mode */
.ML__text {
font-family: var(--_text-font-family);
white-space: pre;
}
/* Use cmr for 'math upright' */
.ML__cmr {
font-family: KaTeX_Main;
font-style: normal;
}
.ML__mathit {
font-family: KaTeX_Math;
/* The KaTeX_Math font is italic by default, so the font-style below is only
useful when a fallback font is used
*/
font-style: italic;
}
.ML__mathbf {
font-family: KaTeX_Main;
font-weight: bold;
}
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
to match TeX idiosyncratic behavior */
.lcGreek.ML__mathbf {
font-family: KaTeX_Math;
font-weight: normal;
}
.ML__mathbfit {
font-family: KaTeX_Math;
font-weight: bold;
font-style: italic;
}
.ML__ams {
font-family: KaTeX_AMS;
}
/* Blackboard */
.ML__bb {
font-family: KaTeX_AMS;
}
.ML__cal {
font-family: KaTeX_Caligraphic;
}
.ML__frak {
font-family: KaTeX_Fraktur;
}
.ML__tt {
font-family: KaTeX_Typewriter;
}
.ML__script {
font-family: KaTeX_Script;
}
.ML__sans {
font-family: KaTeX_SansSerif;
}
.ML__series_ul {
font-weight: 100;
}
.ML__series_el {
font-weight: 100;
}
.ML__series_l {
font-weight: 200;
}
.ML__series_sl {
font-weight: 300;
}
.ML__series_sb {
font-weight: 500;
}
.ML__bold,
.ML__boldsymbol {
font-weight: 700;
}
.ML__series_eb {
font-weight: 800;
}
.ML__series_ub {
font-weight: 900;
}
.ML__series_uc {
font-stretch: ultra-condensed;
}
.ML__series_ec {
font-stretch: extra-condensed;
}
.ML__series_c {
font-stretch: condensed;
}
.ML__series_sc {
font-stretch: semi-condensed;
}
.ML__series_sx {
font-stretch: semi-expanded;
}
.ML__series_x {
font-stretch: expanded;
}
.ML__series_ex {
font-stretch: extra-expanded;
}
.ML__series_ux {
font-stretch: ultra-expanded;
}
.ML__it {
font-style: italic;
}
.ML__shape_ol {
-webkit-text-stroke: 1px black;
text-stroke: 1px black;
color: transparent;
}
.ML__shape_sc {
font-variant: small-caps;
}
.ML__shape_sl {
font-style: oblique;
}
/* First level emphasis */
.ML__emph {
color: #bc2612;
}
/* Second level emphasis */
.ML__emph .ML__emph {
color: #0c7f99;
}
.ML__highlight {
color: #007cb2;
background: #edd1b0;
}
.ML__center {
text-align: center;
}
.ML__label_padding {
padding: 0 0.5em;
}
.ML__frac-line {
width: 100%;
min-height: 1px;
}
.ML__frac-line:after {
content: '';
display: block;
margin-top: max(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
/* There's a bug since Chrome 62 where
sub-pixel border lines don't draw at some zoom
levels (110%, 90%).
Setting the min-height used to work around it, but that workaround
broke in Chrome 84 or so.
Setting the background (and the min-height) seems to work for now.
*/
background: currentColor;
box-sizing: content-box;
/* Vuetify sets the box-sizing to inherit
causes the fraction line to not draw at all sizes (see #26) */
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt {
display: inline-block;
}
.ML__sqrt-sign {
display: inline-block;
position: relative;
}
.ML__sqrt-line {
display: inline-block;
height: max(1px, 0.04em);
width: 100%;
}
.ML__sqrt-line:before {
content: '';
display: block;
margin-top: min(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
background: currentColor;
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt-line:after {
border-bottom-width: 1px;
content: ' ';
display: block;
margin-top: -0.1em;
}
.ML__sqrt-index {
margin-left: 0.27777778em;
margin-right: -0.55555556em;
}
.ML__delim-size1 {
font-family: KaTeX_Size1;
}
.ML__delim-size2 {
font-family: KaTeX_Size2;
}
.ML__delim-size3 {
font-family: KaTeX_Size3;
}
.ML__delim-size4 {
font-family: KaTeX_Size4;
}
.ML__delim-mult .delim-size1 > span {
font-family: KaTeX_Size1;
}
.ML__delim-mult .delim-size4 > span {
font-family: KaTeX_Size4;
}
.ML__accent-body > span {
font-family: KaTeX_Main;
width: 0;
}
.ML__accent-vec {
position: relative;
left: 0.24em;
}
/** The markup for a LaTeX formula, either in an editable mathfield or
in a static display.
*/
.ML__latex {
display: inline-block;
direction: ltr;
text-align: left;
text-indent: 0;
text-rendering: auto;
font-family: KaTeX_Main, 'Times New Roman', serif;
font-style: normal;
font-size-adjust: none;
font-stretch: normal;
font-variant-caps: normal;
letter-spacing: normal;
line-height: 1.2;
word-wrap: normal;
word-spacing: normal;
white-space: nowrap;
text-shadow: none;
-webkit-user-select: none;
user-select: none;
width: min-content;
}
.ML__latex .style-wrap {
position: relative;
}
.ML__latex .mfrac {
display: inline-block;
}
.ML__latex .left-right {
display: inline-block;
}
.ML__latex .vlist-t {
display: inline-table;
table-layout: fixed;
border-collapse: collapse;
}
.ML__latex .vlist-r {
display: table-row;
}
.ML__latex .vlist {
display: table-cell;
vertical-align: bottom;
position: relative;
}
.ML__latex .vlist > span {
display: block;
height: 0;
position: relative;
}
.ML__latex .vlist > span > span {
display: inline-block;
}
.ML__latex .vlist > span > .pstrut {
overflow: hidden;
width: 0;
}
.ML__latex .vlist-t2 {
margin-right: -2px;
}
.ML__latex .vlist-s {
display: table-cell;
vertical-align: bottom;
font-size: 1px;
width: 2px;
min-width: 2px;
}
.ML__latex .msubsup {
text-align: left;
}
.ML__latex .negativethinspace {
display: inline-block;
margin-left: -0.16667em;
height: 0.71em;
}
.ML__latex .thinspace {
display: inline-block;
width: 0.16667em;
height: 0.71em;
}
.ML__latex .mediumspace {
display: inline-block;
width: 0.22222em;
height: 0.71em;
}
.ML__latex .thickspace {
display: inline-block;
width: 0.27778em;
height: 0.71em;
}
.ML__latex .enspace {
display: inline-block;
width: 0.5em;
height: 0.71em;
}
.ML__latex .quad {
display: inline-block;
width: 1em;
height: 0.71em;
}
.ML__latex .qquad {
display: inline-block;
width: 2em;
height: 0.71em;
}
.ML__latex .llap,
.ML__latex .rlap {
width: 0;
position: relative;
display: inline-block;
}
.ML__latex .llap > .inner,
.ML__latex .rlap > .inner {
position: absolute;
}
.ML__latex .llap > .fix,
.ML__latex .rlap > .fix {
display: inline-block;
}
.ML__latex .llap > .inner {
right: 0;
}
.ML__latex .rlap > .inner {
left: 0;
}
.ML__latex .rule {
display: inline-block;
border: solid 0;
position: relative;
box-sizing: border-box;
}
.ML__latex .overline .overline-line,
.ML__latex .underline .underline-line {
width: 100%;
}
.ML__latex .overline .overline-line:before,
.ML__latex .underline .underline-line:before {
content: '';
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
display: block;
}
.ML__latex .overline .overline-line:after,
.ML__latex .underline .underline-line:after {
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
content: '';
display: block;
margin-top: -1px;
}
.ML__latex .stretchy {
display: block;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .stretchy:before,
.ML__latex .stretchy:after {
content: '';
}
.ML__latex .stretchy svg {
display: block;
position: absolute;
width: 100%;
height: inherit;
fill: currentColor;
stroke: currentColor;
fill-rule: nonzero;
fill-opacity: 1;
stroke-width: 1;
stroke-linecap: butt;
stroke-linejoin: miter;
stroke-miterlimit: 4;
stroke-dasharray: none;
stroke-dashoffset: 0;
stroke-opacity: 1;
}
.ML__latex .slice-1-of-2 {
display: inline-flex;
position: absolute;
left: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-2-of-2 {
display: inline-flex;
position: absolute;
right: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-1-of-3 {
display: inline-flex;
position: absolute;
left: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-2-of-3 {
display: inline-flex;
position: absolute;
left: 25%;
width: 50%;
overflow: hidden;
}
.ML__latex .slice-3-of-3 {
display: inline-flex;
position: absolute;
right: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-1-of-1 {
display: inline-flex;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .nulldelimiter {
display: inline-block;
}
.ML__latex .op-group {
display: inline-block;
}
.ML__latex .op-symbol {
position: relative;
}
.ML__latex .op-symbol.small-op {
font-family: KaTeX_Size1;
}
.ML__latex .op-symbol.large-op {
font-family: KaTeX_Size2;
}
.ML__latex .mtable .vertical-separator {
display: inline-block;
min-width: 1px;
box-sizing: border-box;
}
.ML__latex .mtable .arraycolsep {
display: inline-block;
}
.ML__latex .mtable .col-align-m > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-c > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-l > .vlist-t {
text-align: left;
}
.ML__latex .mtable .col-align-r > .vlist-t {
text-align: right;
}
.ML__error {
display: inline-block;
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
background-color: hsla(341, 100%, 40%, 0.1);
background-repeat: repeat-x;
background-size: 3px 3px;
padding-bottom: 3px;
background-position: 0 100%;
}
.ML__error > .ML__error {
background: transparent;
padding: 0;
}
.ML__placeholder {
color: var(--_placeholder-color);
opacity: var(--_placeholder-opacity);
padding-left: 0.4ex;
padding-right: 0.4ex;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.ML__notation {
position: absolute;
box-sizing: border-box;
line-height: 0;
}
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
For UI elements, see \`[data-ML__tooltip]\`
*/
.ML__tooltip-container {
position: relative;
transform: scale(0);
}
.ML__tooltip-container .ML__tooltip-content {
position: fixed;
display: inline-table;
visibility: hidden;
z-index: 2;
width: max-content;
max-width: 400px;
padding: 12px 12px;
border-radius: 8px;
background: #616161;
--_selection-color: #fff;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
}
.ML__tooltip-container .ML__tooltip-content .ML__text {
white-space: normal;
}
.ML__tooltip-container .ML__tooltip-content .ML__base {
display: contents;
}
.ML__tooltip-container:hover .ML__tooltip-content {
visibility: visible;
opacity: 1;
font-size: 0.75em;
transform: scale(1) translate(0, 3em);
}
`,_s=`#mathlive-environment-popover.is-visible {
visibility: visible;
}
#mathlive-environment-popover {
--_environment-panel-height: var(--environment-panel-height, 70px);
--_accent-color: var(--accent-color, #aaa);
--_background: var(--environment-panel-background, #fff);
--_button-background: var(--environment-panel-button-background, white);
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
--_button-text: var(--environment-panel-button-text, #e3e4e8);
position: absolute;
width: calc(var(--_environment-panel-height) * 2);
height: var(--_environment-panel-height);
border-radius: 4px;
border: 1.5px solid var(--_accent-color);
background-color: var(--_background);
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
pointer-events: all;
visibility: hidden;
}
#mathlive-environment-popover .MLEP__array-buttons {
height: calc(var(--_environment-panel-height) * 5/4);
width: calc(var(--_environment-panel-height) * 5/4);
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
}
#mathlive-environment-popover .MLEP__array-buttons .font {
fill: white;
}
#mathlive-environment-popover .MLEP__array-buttons circle {
fill: #7f7f7f;
transition: fill 300ms;
}
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
fill-opacity: 1;
fill: var(--_background);
stroke: var(--_accent-color);
stroke-width: 3px;
}
#mathlive-environment-popover .MLEP__array-buttons line {
stroke: var(--_accent-color);
stroke-opacity: 0;
stroke-width: 40;
pointer-events: none;
transition: stroke-opacity 300ms;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
fill: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
stroke-opacity: 1;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
height: 100%;
width: 50%;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
width: var(--_environment-panel-height);
height: var(--_environment-panel-height);
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
pointer-events: all;
margin-top: 2px;
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
height: calc(var(--_environment-panel-height) / 3 - 2px);
border-radius: calc(var(--_environment-panel-height) / 25);
background-color: var(--_button-background);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
background-color: var(--_button-background-hover);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
stroke: var(--_button-text);
stroke-width: 2;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
fill-opacity: 0;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
pointer-events: none;
background-color: var(--_button-background-active);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
stroke: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
fill: var(--_accent-color);
}
`,qA=`/* The element that display info while in latex mode */
#mathlive-suggestion-popover {
background-color: rgba(97, 97, 97);
color: #fff;
text-align: center;
border-radius: 8px;
position: fixed;
z-index: 1;
display: none;
flex-direction: column;
justify-content: center;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#mathlive-suggestion-popover.top-tip::after {
content: '';
position: absolute;
top: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.bottom-tip::after {
content: '';
position: absolute;
bottom: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.is-animated {
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
}
#mathlive-suggestion-popover.is-visible {
display: flex;
}
@keyframes ML__fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* The wrapper class for the entire content of the popover panel */
#mathlive-suggestion-popover ul {
display: flex;
flex-flow: column;
list-style: none;
margin: 0;
padding: 0;
align-items: flex-start;
max-height: 400px;
overflow-y: auto;
}
#mathlive-suggestion-popover li {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 8px;
padding: 8px;
width: calc(100% - 16px - 16px);
column-gap: 1em;
border-radius: 8px;
cursor: pointer;
/* Since the content can be clicked on, provide feedback on hover */
}
#mathlive-suggestion-popover li a {
color: #5ea6fd;
padding-top: 0.3em;
margin-top: 0.4em;
display: block;
}
#mathlive-suggestion-popover li a:hover {
color: #5ea6fd;
text-decoration: underline;
}
#mathlive-suggestion-popover li:hover,
#mathlive-suggestion-popover li.is-pressed,
#mathlive-suggestion-popover li.is-active {
background: rgba(255, 255, 255, 0.1);
}
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
.ML__popover__command {
font-size: 1.6rem;
font-family: KaTeX_Main;
}
.ML__popover__current {
background: #5ea6fd;
color: #fff;
}
.ML__popover__latex {
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
align-self: center;
}
/* The keyboard shortcuts for a symbol as displayed in the popover */
.ML__popover__keybinding {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 0.8em;
opacity: 0.7;
}
/* Style for the character that joins the modifiers of a keyboard shortcut
(usually a "+" sign)*/
.ML__shortcut-join {
opacity: 0.5;
}
`,ns=`/* The element that displays the keys as the user type them */
#mathlive-keystroke-caption-panel {
visibility: hidden;
/*min-width: 160px;*/
/*background-color: rgba(97, 97, 200, .95);*/
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
border-color: var(--secondary-border, hsl(0, 0%, 91%));
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
text-align: center;
border-radius: 6px;
padding: 16px;
position: absolute;
z-index: 1;
display: flex;
flex-direction: row-reverse;
justify-content: center;
--keystroke: white;
--on-keystroke: #555;
--keystroke-border: #f7f7f7;
}
@media (prefers-color-scheme: dark) {
body:not([theme='light']) #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
}
body[theme='dark'] #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
#mathlive-keystroke-caption-panel > span {
min-width: 14px;
/*height: 8px;*/
margin: 0 8px 0 0;
padding: 4px;
background-color: var(--keystroke);
color: var(--on-keystroke);
fill: currentColor;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 1em;
border-radius: 6px;
border: 2px solid var(--keystroke-border);
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
}
`,yc=`.ML__keyboard {
--_keyboard-height: 0;
--_keyboard-zindex: var(--keyboard-zindex, 105);
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
--_padding-top: var(--keyboard-padding-top, 5px);
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_keycap-height: var(--keycap-height, 60px);
/* Keycap width (incl. margin) */
--_keycap-max-width: var(--keycap-max-width, 100px);
--_keycap-gap: var(--keycap-gap, 8px);
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
--_variant-keycap-length: var(--variant-keycap-length, 70px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
}
.is-math-mode .MLK__rows .if-text-mode,
.is-text-mode .MLK__rows .if-math-mode {
display: none;
}
.if-can-undo,
.if-can-redo,
.if-can-copy,
.if-can-cut,
.if-can-paste {
opacity: 0.4;
pointer-events: none;
}
.can-undo .if-can-undo,
.can-redo .if-can-redo,
.can-copy .if-can-copy,
.can-cut .if-can-cut,
.can-paste .if-can-paste {
opacity: 1;
pointer-events: all;
}
body > .ML__keyboard {
position: fixed;
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
}
body > .ML__keyboard.is-visible > .MLK__backdrop {
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
border-top: 1px solid var(--_border);
}
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
box-shadow: none;
border: none;
}
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__keyboard {
position: relative;
overflow: hidden;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: var(--_keyboard-zindex);
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
opacity: 1;
transform: none;
pointer-events: none;
}
.ML__keyboard :where(div) {
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
transform: none;
}
.MLK__backdrop {
position: absolute;
bottom: calc(-1 * var(--_keyboard-height));
width: 100%;
height: var(--_keyboard-height);
box-sizing: border-box;
padding-top: var(--_padding-top);
padding-bottom: var(--_padding-bottom);
padding-left: var(--_padding-horizontal);
padding-right: var(--_padding-horizontal);
opacity: 0;
visibility: hidden;
transform: translate(0, 0);
background: var(--_background);
}
.backdrop-is-transparent .MLK__backdrop {
background: transparent;
}
/* If a custom layout has a custom container/backdrop
(backdrop-is-transparent), make sure to let pointer event go through. */
.backdrop-is-transparent .MLK__plate {
background: transparent;
pointer-events: none;
}
/* If a custom layout has a custom container/backdrop, make sure to
allow pointer events on it. */
.backdrop-is-transparent .MLK__layer > div > div {
pointer-events: all;
}
.ML__keyboard.is-visible > .MLK__backdrop {
transform: translate(0, calc(-1 * var(--_keyboard-height)));
opacity: 1;
visibility: visible;
}
.caps-lock-indicator {
display: none;
width: 8px;
height: 8px;
background: #0cbc0c;
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
border-radius: 8px;
right: 8px;
top: 8px;
position: absolute;
}
.ML__keyboard.is-caps-lock .caps-lock-indicator {
display: block;
}
.ML__keyboard.is-caps-lock .shift {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
}
.MLK__plate {
position: absolute;
top: var(--_padding-top);
left: var(--_padding-horizontal);
width: calc(100% - 2 * var(--_padding-horizontal));
margin: 0;
padding: 0;
box-sizing: border-box;
container-type: inline-size;
touch-action: none;
-webkit-user-select: none;
user-select: none;
pointer-events: all;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
/* Size of toolbar labels */
font-weight: 400;
text-shadow: none;
}
.ML__box-placeholder {
color: var(--_box-placeholder-color);
}
.MLK__tex {
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__tex-math {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
font-style: italic;
}
.MLK__layer {
display: none;
outline: none;
}
.MLK__layer.is-visible {
display: flex;
flex-flow: column;
}
/* Keyboard layouts are made or rows of keys... */
.MLK__rows {
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
display: flex;
flex-flow: column;
align-items: center;
border-collapse: separate;
clear: both;
border: 0;
margin: 0;
margin-bottom: var(--_keycap-gap);
gap: var(--_keycap-gap);
/* If the styling include, e.g., some shadows, they will be
cut off by the overflow. In that case, set the padding to
compensate. */
padding-left: var(--_row-padding-left);
padding-right: var(--_row-padding-right);
overflow: visible;
touch-action: none;
}
.MLK__rows > .MLK__row {
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
gap: var(--_keycap-gap);
margin: 0;
padding: 0;
/* For the alignment of the text on some modifiers (e.g. shift) */
/* Extra spacing between two adjacent keys */
}
.MLK__rows > .MLK__row .tex {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .tex-math {
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .big-op {
font-size: calc(1.25 * var(--_keycap-font-size));
}
.MLK__rows > .MLK__row .small {
font-size: var(--_keycap-small-font-size);
}
.MLK__rows > .MLK__row .bottom {
justify-content: flex-end;
}
.MLK__rows > .MLK__row .left {
align-items: flex-start;
padding-left: 12px;
}
.MLK__rows > .MLK__row .right {
align-items: flex-end;
padding-right: 12px;
}
.MLK__rows > .MLK__row .w0 {
width: 0;
}
.MLK__rows > .MLK__row .w5 {
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w15 {
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w20 {
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w40 {
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w50 {
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .MLK__keycap.w50 {
font-size: 80%;
padding-top: 10px;
font-weight: 100;
}
.MLK__rows > .MLK__row .separator {
background: transparent;
border: none;
pointer-events: none;
}
.MLK__rows > .MLK__row .horizontal-rule {
height: 6px;
margin-top: 3px;
margin-bottom: 0;
width: 100%;
border-radius: 0;
border-top: var(--_horizontal-rule);
}
.MLK__rows > .MLK__row .ghost {
background: var(--_toolbar-background);
border: none;
color: var(--_toolbar-text);
}
.MLK__rows > .MLK__row .ghost:hover {
background: var(--_toolbar-background-hover);
}
.MLK__rows > .MLK__row .bigfnbutton {
font-size: var(--_keycap-extra-small-font-size);
}
.MLK__rows > .MLK__row .shift,
.MLK__rows > .MLK__row .action {
color: var(--_keycap-secondary-text);
background: var(--_keycap-secondary-background);
border-color: var(--_keycap-secondary-border);
border-bottom-color: var(--_keycap-secondary-border-bottom);
line-height: 0.8;
font-size: min(1rem, var(--_keycap-small-font-size));
font-weight: 600;
padding: 8px 12px 8px 12px;
}
.MLK__rows > .MLK__row .shift:hover,
.MLK__rows > .MLK__row .action:hover {
background: var(--_keycap-secondary-background-hover);
}
.MLK__rows > .MLK__row .action.primary {
background: var(--_keycap-primary-background);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .action.primary:hover {
background: var(--_keycap-primary-background-hover);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .shift.selected,
.MLK__rows > .MLK__row .action.selected {
color: var(--_toolbar-text-active);
}
.MLK__rows > .MLK__row .shift.selected.is-pressed,
.MLK__rows > .MLK__row .action.selected.is-pressed,
.MLK__rows > .MLK__row .shift.selected.is-active,
.MLK__rows > .MLK__row .action.selected.is-active {
color: white;
}
.MLK__rows > .MLK__row .warning {
background: #cd0030;
color: white;
}
.MLK__rows > .MLK__row .warning svg.svg-glyph {
width: 24px;
height: 24px;
min-height: 24px;
}
/** A regular keycap
* Use the :where() pseudo-class to give it a very low specifity,
* so that it can be overriden by custom style.
*/
:where(.MLK__rows > .MLK__row div) {
display: flex;
flex-flow: column;
align-items: center;
justify-content: space-evenly;
width: calc(var(--_keycap-width) - var(--_keycap-gap));
height: var(--_keycap-height);
box-sizing: border-box;
padding: 0;
vertical-align: top;
text-align: center;
float: left;
color: var(--_keycap-text);
fill: currentColor;
font-size: var(--_keycap-font-size);
background: var(--_keycap-background);
border: 1px solid var(--_keycap-border);
border-bottom-color: var(--_keycap-border-bottom);
border-radius: 6px;
cursor: pointer;
touch-action: none;
/* Keys with a variants panel */
position: relative;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
:where(.MLK__rows > .MLK__row div):hover {
overflow: visible;
background: var(--_keycap-background-hover);
}
:where(.MLK__rows > .MLK__row div) .ML__latex {
pointer-events: none;
touch-action: none;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
margin: 8px 0;
width: 20px;
height: 20px;
min-height: 20px;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
margin: 8px 0;
width: 24px;
height: 24px;
min-height: 24px;
}
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
font-size: 25px;
}
:where(.MLK__rows > .MLK__row div).is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
z-index: calc(var(--_keyboard-zindex) - 5);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
:where(.MLK__rows > .MLK__row div).action.is-active aside,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
display: none;
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
display: none;
}
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
}
:where(.MLK__rows > .MLK__row div).shift.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div) small {
color: var(--_keycap-secondary-text);
}
:where(.MLK__rows > .MLK__row div) aside {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
line-height: 10px;
color: var(--_keycap-secondary-text);
}
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
Note there are a different set of tooltip rules for the keyboard toggle
(it's in a different CSS tree) */
.ML__keyboard [data-tooltip] {
position: relative;
}
.ML__keyboard [data-tooltip]::after {
position: absolute;
display: inline-table;
content: attr(data-tooltip);
top: inherit;
bottom: 100%;
width: max-content;
max-width: 200px;
padding: 8px 8px;
background: #616161;
color: #fff;
text-align: center;
z-index: 2;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
border-radius: 2px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-weight: 400;
font-size: 12px;
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
opacity: 0;
transform: scale(0.5);
}
.ML__keyboard [data-tooltip]:hover {
position: relative;
}
.ML__keyboard [data-tooltip]:hover::after {
opacity: 1;
transform: scale(1);
}
.MLK__toolbar {
align-self: center;
display: flex;
flex-flow: row;
justify-content: space-between;
width: 100%;
max-width: 996px;
min-height: 32px;
/* Icons for undo/redo, etc. */
}
.MLK__toolbar svg {
height: 20px;
width: 20px;
}
.MLK__toolbar > .left {
position: relative;
display: flex;
justify-content: flex-start;
flex-flow: row;
}
.MLK__toolbar > .right {
display: flex;
justify-content: flex-end;
flex-flow: row;
}
.MLK__toolbar > div > div {
/* "button" in the toolbar */
display: flex;
align-items: center;
justify-content: center;
color: var(--_toolbar-text);
fill: currentColor;
background: var(--_toolbar-background);
font-size: var(--_toolbar-font-size);
padding: 4px 15px;
cursor: pointer;
width: max-content;
min-width: 42px;
min-height: 34px;
border: none;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
padding-top: 8px;
margin-top: 0;
margin-bottom: 4px;
margin-left: 4px;
margin-right: 4px;
border-radius: 8px;
box-shadow: none;
border-bottom: 2px solid transparent;
}
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
background: var(--_toolbar-background-hover);
}
.MLK__toolbar > div > div.disabled svg,
.MLK__toolbar > div > div.disabled:hover svg,
.MLK__toolbar > div > div.disabled.is-pressed svg {
color: var(--_toolbar-text);
opacity: 0.2;
}
.MLK__toolbar > div > div:hover,
.MLK__toolbar > div > div:active,
.MLK__toolbar > div > div.is-pressed,
.MLK__toolbar > div > div.is-active {
color: var(--_toolbar-text-active);
}
.MLK__toolbar > div > div.selected {
color: var(--_toolbar-text-active);
background: var(--_toolbar-background-selected);
border-radius: 0;
border-bottom-color: var(--_toolbar-text-active);
padding-bottom: 4px;
margin-bottom: 8px;
}
/* This is the element that displays variants on press+hold */
.MLK__variant-panel {
visibility: hidden;
position: fixed;
display: flex;
flex-flow: row wrap-reverse;
justify-content: center;
align-content: center;
margin: 0;
padding: 0;
bottom: auto;
top: 0;
box-sizing: content-box;
transform: none;
z-index: calc(var(--_keyboard-zindex) + 1);
touch-action: none;
max-width: 350px;
background: var(--_variant-panel-background);
text-align: center;
border-radius: 6px;
padding: 6px;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
transition: none;
}
.MLK__variant-panel.is-visible {
visibility: visible;
}
.MLK__variant-panel.compact {
--_variant-keycap-length: var(--variant-keycap-length, 50px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
}
.MLK__variant-panel .item {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: var(--_variant-keycap-font-size);
height: var(--_variant-keycap-length);
width: var(--_variant-keycap-length);
margin: 0;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid transparent;
background: transparent;
pointer-events: all;
cursor: pointer;
color: var(--_variant-keycap-text);
fill: currentColor;
}
@media (max-height: 412px) {
.MLK__variant-panel .item {
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
.MLK__variant-panel .item .ML__latex {
pointer-events: none;
}
.MLK__variant-panel .item.is-active {
background: var(--_variant-keycap-background-active);
color: var(--_variant-keycap-text-active);
}
.MLK__variant-panel .item.is-pressed {
background: var(--_variant-keycap-background-pressed);
color: var(--_variant-keycap-text-pressed);
}
.MLK__variant-panel .item.small {
font-size: var(--_keycap-small-font-size);
}
.MLK__variant-panel .item.swatch-button {
box-sizing: border-box;
background: #fbfbfb;
}
.MLK__variant-panel .item.swatch-button > span {
display: inline-block;
margin: 6px;
width: calc(100% - 12px);
height: calc(100% - 12px);
border-radius: 50%;
}
.MLK__variant-panel .item.swatch-button:hover {
background: #f0f0f0;
}
.MLK__variant-panel .item.swatch-button:hover > span {
border-radius: 2px;
}
.MLK__variant-panel .item.box > div,
.MLK__variant-panel .item.box > span {
border: 1px dashed rgba(0, 0, 0, 0.24);
}
.MLK__variant-panel .item .warning {
min-height: 60px;
min-width: 60px;
background: #cd0030;
color: white;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
}
.MLK__variant-panel .item .warning.is-pressed,
.MLK__variant-panel .item .warning.is-active {
background: red;
}
.MLK__variant-panel .item .warning svg.svg-glyph {
width: 50px;
height: 50px;
}
.MLK__variant-panel .item aside {
font-size: var(--_variant-keycap-aside-font-size);
line-height: 12px;
opacity: 0.78;
padding-top: 2px;
}
.MLK__keycap {
position: relative;
}
.MLK__shift {
display: block;
position: absolute;
right: 4px;
top: 4px;
font-size: var(--_keycap-shift-font-size);
color: var(--_keycap-shift-color);
}
.hide-shift .MLK__shift {
display: none;
}
@media (max-width: 414px) {
.MLK__variant-panel {
max-width: 350px;
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
/* @xs breakpoint: iPhone 5 */
@container (max-width: 414px) {
.MLK__rows {
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
--_keycap-height: max(var(--_keycap-height), 42px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
font-size: 100%;
margin-left: 2px;
margin-right: 2px;
}
.MLK__rows .shift,
.MLK__rows .action {
font-size: 65%;
}
.MLK__rows .warning svg.svg-glyph {
width: 14px;
height: 14px;
min-height: 14px;
}
}
@container (max-width: 744px) {
.MLK__rows {
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
--_keycap-height: max(var(--keycap-height, 52px), 52px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
padding-left: 0;
padding-right: 0;
}
.MLK__tooltip::after {
padding: 8px 16px;
font-size: 16px;
}
.MLK__rows > .MLK__row > div.fnbutton {
font-size: 16px;
}
.MLK__rows > .MLK__row > div.bigfnbutton {
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
}
.MLK__rows > .MLK__row > div.small {
font-size: 13px;
}
.MLK__rows > .MLK__row > div > aside {
display: none;
}
.MLK__shift {
display: none;
}
}
/* Medium breakpoint: larger phones */
@container (max-width: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@media (max-height: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@container (max-width: 1444px) {
.MLK__rows .if-wide {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
}
/* Same as the media query, but with a class */
[theme='dark'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
[theme='light'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--_keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
}
`,Xc=`:host {
--primary-color: #5898ff;
--primary-color-dimmed: #c0c0f0;
--primary-color-dark: var(--blue-500);
--primary-color-light: var(--blue-100);
--primary-color-reverse: #ffffff;
--secondary-color: #ff8a65;
--secondary-color-dimmed: #f0d5c5;
--secondary-color-dark: var(--orange-500);
--secondary-color-light: var(--orange-100);
--secondary-color-reverse: #ffffff;
--link-color: #5898ff;
--link-color-dimmed: #c5c5c5;
--link-color-dark: #121212;
--link-color-light: #e2e2e2;
--link-color-reverse: #ffffff;
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--neutral-100: #f5f5f5;
--neutral-200: #eeeeee;
--neutral-300: #e0e0e0;
--neutral-400: #bdbdbd;
--neutral-500: #9e9e9e;
--neutral-600: #757575;
--neutral-700: #616161;
--neutral-800: #424242;
--neutral-900: #212121;
--red-25: #fff8f7;
--red-50: #fff1ef;
--red-100: #ffeae6;
--red-200: #ffcac1;
--red-300: #ffa495;
--red-400: #ff7865;
--red-500: #f21c0d;
--red-600: #e50018;
--red-700: #d30024;
--red-800: #bd002c;
--red-900: #a1002f;
--orange-25: #fffbf8;
--orange-50: #fff7f1;
--orange-100: #fff3ea;
--orange-200: #ffe1c9;
--orange-300: #ffcca2;
--orange-400: #ffb677;
--orange-500: #fe9310;
--orange-600: #f58700;
--orange-700: #ea7c00;
--orange-800: #dc6d00;
--orange-900: #ca5b00;
--brown-25: #fff8ef;
--brown-50: #fff1df;
--brown-100: #ffe9ce;
--brown-200: #ebcca6;
--brown-300: #cdaf8a;
--brown-400: #af936f;
--brown-500: #856a47;
--brown-600: #7f5e34;
--brown-700: #78511f;
--brown-800: #6e4200;
--brown-900: #593200;
--yellow-25: #fffdf9;
--yellow-50: #fffcf2;
--yellow-100: #fffaec;
--yellow-200: #fff2ce;
--yellow-300: #ffe8ab;
--yellow-400: #ffdf85;
--yellow-500: #ffcf33;
--yellow-600: #f1c000;
--yellow-700: #dfb200;
--yellow-800: #c9a000;
--yellow-900: #ad8a00;
--lime-25: #f4ffee;
--lime-50: #e9ffdd;
--lime-100: #ddffca;
--lime-200: #a8fb6f;
--lime-300: #94e659;
--lime-400: #80d142;
--lime-500: #63b215;
--lime-600: #45a000;
--lime-700: #268e00;
--lime-800: #007417;
--lime-900: #005321;
--green-25: #f5fff5;
--green-50: #ebffea;
--green-100: #e0ffdf;
--green-200: #a7ffa7;
--green-300: #5afa65;
--green-400: #45e953;
--green-500: #17cf36;
--green-600: #00b944;
--green-700: #00a34a;
--green-800: #008749;
--green-900: #00653e;
--teal-25: #f3ffff;
--teal-50: #e6fffe;
--teal-100: #d9fffe;
--teal-200: #8dfffe;
--teal-300: #57f4f4;
--teal-400: #43e5e5;
--teal-500: #17cfcf;
--teal-600: #00c2c0;
--teal-700: #00b5b1;
--teal-800: #00a49e;
--teal-900: #009087;
--cyan-25: #f7fcff;
--cyan-50: #eff8ff;
--cyan-100: #e7f5ff;
--cyan-200: #c2e6ff;
--cyan-300: #95d5ff;
--cyan-400: #61c4ff;
--cyan-500: #13a7ec;
--cyan-600: #069eda;
--cyan-700: #0095c9;
--cyan-800: #0088b2;
--cyan-900: #0a7897;
--blue-25: #f7faff;
--blue-50: #eef5ff;
--blue-100: #e5f1ff;
--blue-200: #bfdbff;
--blue-300: #92c2ff;
--blue-400: #63a8ff;
--blue-500: #0d80f2;
--blue-600: #0077db;
--blue-700: #006dc4;
--blue-800: #0060a7;
--blue-900: #005086;
--indigo-25: #f8f7ff;
--indigo-50: #f1efff;
--indigo-100: #eae7ff;
--indigo-200: #ccc3ff;
--indigo-300: #ac99ff;
--indigo-400: #916aff;
--indigo-500: #63c;
--indigo-600: #5a21b2;
--indigo-700: #4e0b99;
--indigo-800: #3b0071;
--indigo-900: #220040;
--purple-25: #fbf7ff;
--purple-50: #f8f0ff;
--purple-100: #f4e8ff;
--purple-200: #e4c4ff;
--purple-300: #d49aff;
--purple-400: #c36aff;
--purple-500: #a219e6;
--purple-600: #9000c4;
--purple-700: #7c009f;
--purple-800: #600073;
--purple-900: #3d0043;
--magenta-25: #fff8fb;
--magenta-50: #fff2f6;
--magenta-100: #ffebf2;
--magenta-200: #ffcddf;
--magenta-300: #ffa8cb;
--magenta-400: #ff7fb7;
--magenta-500: #eb4799;
--magenta-600: #da3689;
--magenta-700: #c82179;
--magenta-800: #b00065;
--magenta-900: #8a004c;
}
@media (prefers-color-scheme: dark) {
:host {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
}
:host([theme='dark']) {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
/* @media (prefers-color-scheme: dark) {
:host {
--label-color: #fff;
--active-label-color: #000;
--menu-bg: #525252;
--active-bg: #5898ff;
--active-bg-dimmed: #5c5c5c;
}
} */
:host {
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ui-font-size: 14px;
--ui-line-height: 1.5;
--ui-letter-spacing: 0.007em;
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
--ui-layer-1: var(--neutral-100);
--ui-layer-2: var(--neutral-200);
--ui-layer-3: var(--neutral-300);
--ui-layer-4: var(--neutral-400);
--ui-layer-5: var(--neutral-500);
--ui-layer-6: var(--neutral-600);
--ui-border-color: var(--primary-color);
--ui-border-radius: 4px;
--ui-text: var(--neutral-900);
--ui-text-secondary: var(--neutral-700);
--ui-text-placeholder: var(--neutral-500);
--ui-text-muted: var(--neutral-300);
/** A field is a UI element in which a user can type data, for
* example an input or textarea element.
*/
--ui-field-bg: var(--neutral-100);
--ui-field-bg-hover: var(--neutral-100);
--ui-field-bg-disabled: var(--neutral-300);
--ui-field-bg-invalid: var(--red-100);
--ui-field-bg-focus: var(--neutral-100);
--ui-field-border: 0.5px solid var(--border-color);
--ui-field-border-hover: 0.5px solid var(--border-color);
--ui-field-border-disabled: 0.5px solid var(--border-color);
--ui-field-border-invalid: 0.5px solid var(--border-color);
--ui-field-border-focus: 0.5px solid var(--border-color);
--ui-menu-bg: var(--neutral-100);
--ui-menu-text: var(--neutral-900);
--ui-menu-bg-hover: var(--neutral-200);
--ui-menu-text-hover: var(--neutral-900);
/** The \`active\` state is used for the state of menu items
* when they are selected.
*/
--ui-menu-bg-active: var(--primary-color);
--ui-menu-text-active: var(--primary-color-reverse);
/** The \`active-muted\` set is used for the state of
* submenus when they are open.
*/
--ui-menu-bg-active-muted: var(--neutral-300);
--ui-menu-text-active-muted: var(--neutral-900);
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
--ui-menu-divider: 0.5px solid #c7c7c7;
/* var(--neutral-300); */
--ui-menu-z-index: 10000;
--page-bg: var(--neutral-100);
--content-bg: var(--neutral-200);
}
@media (prefers-color-scheme: dark) {
:host {
--ui-menu-bg: var(--neutral-200);
}
}
:host([theme='dark']) {
--ui-menu-bg: var(--neutral-200);
}
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
Noto is a Linux/Android font.
*/
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh) {
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
}
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
}
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac) {
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
}
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(ko-kr-apple) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh),
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo),
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac),
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std),
:lang(ko-kr-apple) {
--ui-font-size: 1rem;
--ui-line-height: 1.7;
--ui-letter-spacing: 0;
}
:dir(rtl) {
--ui-line-height: auto;
--ui-letter-spacing: 0;
}
`,Ts=`.ui-menu *,
.ui-menu ::before,
.ui-menu ::after {
box-sizing: border-box;
}
.ui-menu {
display: none;
color-scheme: light dark;
-webkit-user-select: none;
/* Important: Safari iOS doesn't respect user-select */
user-select: none;
cursor: default;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0 0 0 0);
--active-label-color: #fff;
/* ui-menu-text-active */
--label-color: #121212;
/* ui-menu-text */
--menu-bg: #e2e2e2;
/* ui-menu-background */
--active-bg: #5898ff;
/* ui-menu-background-active */
--active-bg-dimmed: #c5c5c5;
/* ui-menu-background-active-muted */
}
/** Use the :where pseudo selector to make the specificity of the
* selector 0, so that it can be overridden by the user.
*/
:where(.ui-menu-container) {
position: absolute;
overflow: visible;
width: auto;
height: auto;
z-index: 10000;
border-radius: 8px;
background: var(--ui-menu-bg);
box-shadow: var(--ui-menu-shadow);
list-style: none;
padding: 6px 0 6px 0;
margin: 0;
user-select: none;
cursor: default;
color: var(--ui-menu-text);
font-weight: normal;
font-style: normal;
text-shadow: none;
text-transform: none;
letter-spacing: 0;
outline: none;
opacity: 1;
/* The [popover] elements have a 1px solid black border. Ugh. */
border: none;
width: fit-content;
height: fit-content;
}
:where(.ui-menu-container > li) {
display: flex;
flex-flow: row;
align-items: center;
padding: 1px 7px 1px 7px;
margin-top: 0;
margin-left: 6px;
margin-right: 6px;
border-radius: 4px;
white-space: nowrap;
position: relative;
outline: none;
fill: currentColor;
user-select: none;
cursor: default;
text-align: left;
color: inherit;
font-family: var(--ui-font-family);
font-size: var(--ui-font-size);
line-height: var(--ui-line-height);
letter-spacing: var(--ui-letter-spacing);
}
:where(.ui-menu-container > li > .label) {
appearance: none;
background: none;
outline: none;
width: 100%;
margin: 0;
padding: 1px 2px 1px 1px;
overflow: visible;
border: 1px solid transparent;
white-space: nowrap;
text-align: start;
}
:where(.ui-menu-container > li:has(.heading)) {
margin-top: 0.5em;
}
:where(.ui-menu-container > li > .label.heading) {
font-weight: bold;
opacity: 0.4;
}
:where(.ui-menu-container > li.indent > .label) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li > .label.indent) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li[role='divider']) {
border-bottom: 1px solid var(--ui-menu-divider);
border-radius: 0;
padding: 0;
margin-left: 15px;
margin-right: 15px;
padding-top: 5px;
margin-bottom: 5px;
width: calc(100% - 30px);
/** 100% - (margin-left + margin-right) */
}
:where(.ui-menu-container > li[aria-disabled='true']) {
opacity: 0.5;
}
:where(.ui-menu-container > li.active) {
background: var(--ui-menu-bg-active);
background: -apple-system-control-accent;
color: var(--ui-menu-text-active);
}
:where(.ui-menu-container > li.active.is-submenu-open) {
background: var(--ui-menu-bg-active-muted);
color: inherit;
}
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
padding-inline-end: 0;
}
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
color: var(--ui-menu-text-active);
}
/** Keyboard shortcut */
:where(.ui-menu-container > li > kbd) {
font-family: var(--ui-font-family);
margin-inline-start: 12px;
opacity: 0.4;
}
:where(.ui-menu-container > li.active > kbd) {
opacity: 0.85;
}
.ui-trailing-chevron {
display: flex;
margin-inline-start: 24px;
width: 10px;
height: 10px;
margin-bottom: 4px;
}
.ui-trailing-chevron:dir(rtl) {
transform: scaleX(-1);
}
.ui-checkmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
.ui-mixedmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
`,ml;function Ql(e){let t="";switch(e){case"mathfield-element":t=`
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
:host([hidden]) { display: none; }
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
:host(:focus), :host(:focus-within) {
outline: Highlight auto 1px; /* For Firefox */
outline: -webkit-focus-ring-color auto 1px;
}
:host([readonly]:focus), :host([readonly]:focus-within),
:host([read-only]:focus), :host([read-only]:focus-within) {
outline: none;
}
@media (hover: none) and (pointer: coarse) {
:host(:not(:focus)) :first-child { pointer-events: none !important; }
}`;break;case"core":t=hu;break;case"mathfield":t=Nu;break;case"environment-popover":t=_s;break;case"suggestion-popover":t=qA;break;case"keystroke-caption":t=ns;break;case"virtual-keyboard":t=yc;break;case"ui":t=Xc;break;case"menu":t=Ts;break;default:debugger}return t}function gl(e){return ml||(ml={}),ml[e]||(ml[e]=new CSSStyleSheet,ml[e].replaceSync(Ql(e))),ml[e]}var Us;function Kl(e){var t;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${e}`))return;const r=window.document.createElement("style");r.id=`mathlive-style-${e}`,r.append(window.document.createTextNode(Ql(e))),window.document.head.appendChild(r);return}if(Us||(Us={}),((t=Us[e])!=null?t:0)!==0)Us[e]+=1;else{const r=gl(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],Us[e]=1}}function bc(e){if("adoptedStyleSheets"in document&&Us!=null&&Us[e]&&(Us[e]-=1,Us[e]<=0)){const t=ml[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var lA=class qh extends Zr{constructor(t){var r;super(E(f({},t),{type:"accent",body:(r=t.body)!=null?r:void 0})),t.accentChar?this.accent=t.accentChar:this.svgAccent=t==null?void 0:t.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new qh(t)}toJson(){return E(f({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const n=new ya({parent:t,mathstyle:"cramp"},this.style),i=(r=Zr.createBox(n,this.body))!=null?r:new un("\u25A2",{style:this.style});let s=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(s=i.skew);let A=Math.min(i.height,qo),M;if(this.svgAccent)M=Vc(this.svgAccent),A=n.metrics.bigOpSpacing1-A;else if(this.accent){const J=new un(this.accent,{fontFamily:"Main-Regular"});J.italic=0;const Ae=this.accent===8407?" ML__accent-vec":"";M=new un(new un(J),{classes:"ML__accent-body"+Ae})}M=new Eo({shift:0,children:[{box:new un(i)},-A,{box:M,marginLeft:i.left+2*s,classes:["ML__center"]}]});const z=new un(M,{type:"lift"});return this.caret&&(z.caret=this.caret),this.bind(n,z.wrap(n)),this.attachSupsub(n,{base:z})}},Hl={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},Pc=Object.fromEntries(Object.entries(Hl).map(([e,t])=>[t,e]));function il(e){var t;return(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])!=null?t:e.codePointAt(0)}function Ys(e,t,r,n){var i;const A=new un(il(e),{fontFamily:"Main-Regular",isSelected:n.isSelected,classes:"ML__small-delim "+((i=n.classes)!=null?i:"")}).wrap(t);return r&&A.setTop((1-t.scalingFactor)*hs),A}function cA(e,t,r,n,i){var s,A;const M=new ya({parent:n,mathstyle:"textstyle"},i==null?void 0:i.style),z=new un(il(e),{fontFamily:`Size${t}-Regular`,isSelected:i.isSelected,classes:((s=i.classes)!=null?s:"")+` ML__delim-size${t}`,type:(A=i.type)!=null?A:"ignore"}).wrap(M);return r&&z.setTop((1-M.scalingFactor)*hs),z}function Jc(e,t,r,n,i){var s;let A,M,z,J;A=z=J=il(e),M=null;let Ae="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?z=A=J=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?z=A=J=8741:e==="\\uparrow"?z=J=9168:e==="\\Uparrow"?z=J=8214:e==="\\downarrow"?A=z=9168:e==="\\Downarrow"?A=z=8214:e==="\\updownarrow"?(A=8593,z=9168,J=8595):e==="\\Updownarrow"?(A=8657,z=8214,J=8659):e==="["||e==="\\lbrack"?(A=9121,z=9122,J=9123,Ae="Size4-Regular"):e==="]"||e==="\\rbrack"?(A=9124,z=9125,J=9126,Ae="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(z=A=9122,J=9123,Ae="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(A=9121,z=J=9122,Ae="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(z=A=9125,J=9126,Ae="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(A=9124,z=J=9125,Ae="Size4-Regular"):e==="("||e==="\\lparen"?(A=9115,z=9116,J=9117,Ae="Size4-Regular"):e===")"||e==="\\rparen"?(A=9118,z=9119,J=9120,Ae="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(A=9127,M=9128,J=9129,z=9130,Ae="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(A=9131,M=9132,J=9133,z=9130,Ae="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(A=9127,J=9129,z=9130,Ae="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(A=9131,J=9133,z=9130,Ae="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(A=9127,J=9133,z=9130,Ae="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(A=9131,J=9129,z=9130,Ae="Size4-Regular"):e==="\\surd"?(A=57345,J=9143,z=57344,Ae="Size4-Regular"):e==="\\ulcorner"?(A=9484,z=J=32):e==="\\urcorner"?(A=9488,z=J=32):e==="\\llcorner"?(J=9492,z=A=32):e==="\\lrcorner"&&(A=9496,z=A=32);const Qe=Hs(A,Ae),ft=Qe.height+Qe.depth,Ft=Hs(z,Ae),Ot=Ft.height+Ft.depth,Er=Hs(J,Ae),En=Er.height+Er.depth;let Cr=0,nn=1;if(M!==null){const Ml=Hs(M,Ae);Cr=Ml.height+Ml.depth,nn=2}const Pn=ft+En+Cr,pn=Math.max(0,Math.ceil((t-Pn)/(nn*Ot))),Ii=Pn+pn*nn*Ot;let $i=hs;r&&($i=$i*n.scalingFactor);const Ui=Ii/2-$i,lo=.008,Vo=[];Vo.push({box:new un(J,{fontFamily:Ae})}),Vo.push(-lo);const $n=new un(z,{fontFamily:Ae});if(M===null)for(let Ml=0;Ml<pn;Ml++)Vo.push({box:$n});else{for(let Ml=0;Ml<pn;Ml++)Vo.push({box:$n});Vo.push(-lo),Vo.push({box:new un(M,{fontFamily:Ae})}),Vo.push(-lo);for(let Ml=0;Ml<pn;Ml++)Vo.push({box:$n})}Vo.push(-lo),Vo.push({box:new un(A,{fontFamily:Ae})});let gA="";Ae==="Size1-Regular"?gA=" delim-size1":Ae==="Size4-Regular"&&(gA=" delim-size4");const _u=new Eo({bottom:Ui,children:Vo},{classes:gA});return new un(_u,E(f({},i!=null?i:{}),{classes:((s=i==null?void 0:i.classes)!=null?s:"")+" ML__delim-mult"}))}var Yc=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),pu=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),qc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Bs=[0,1.2,1.8,2.4,3];function Ou(e,t,r,n){return e===void 0||e==="."?rc(r,n.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Yc.has(e)||qc.has(e)?cA(e,t,!1,r,n):pu.has(e)?Jc(e,Bs[t],!1,r,n):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var jl=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],wc=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],mu=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function ld(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function eu(e,t,r,n){const i={"-4":0,"-3":1,0:2}[n.mathstyle.sizeDelta];for(let s=i;s<r.length&&r[s].type!=="stack";s++){const A=Hs(e,ld(r[s]));if(A.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let M=A.height+A.depth;if(r[s].type==="small"&&(r[s].mathstyle==="scriptscriptstyle"?M*=Math.max(ps[Math.max(1,n.size-2)],n.minFontScale):r[s].mathstyle==="scriptstyle"&&(M*=Math.max(ps[Math.max(1,n.size-1)],n.minFontScale))),M>t)return r[s]}return r[r.length-1]}function xc(e,t,r,n,i,s){if(!t||t.length===0||t===".")return rc(i);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let A;qc.has(t)?A=jl:Yc.has(t)?A=mu:A=wc;const M=eu(il(t),r,A,i),z=new ya({parent:i,mathstyle:M.mathstyle},s==null?void 0:s.style);return M.type==="small"?Ys(t,z,n,E(f({},s),{type:e})):M.type==="large"?cA(t,M.size,n,z,E(f({},s),{type:e})):(console.assert(M.type==="stack"),Jc(t,r,n,z,E(f({},s),{type:e})))}function Cc(e,t,r,n,i,s){if(t===".")return rc(i,s==null?void 0:s.classes);const A=hs*i.scalingFactor,M=901,z=5/ss,J=Math.max(r-A,n+A),Ae=Math.max(J/500*M,2*J-z);return xc(e,t,Ae,!0,i,s)}function rc(e,t){const r=new un(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new ya({parent:e,mathstyle:"textstyle"}))}var zl=class ep extends Zr{constructor(t){var r;super({type:"placeholder",command:"\\placeholder",mode:(r=t==null?void 0:t.mode)!=null?r:"math",style:t==null?void 0:t.style}),this.captureSelection=!0}static fromJson(t){return new ep(t)}toJson(){return super.toJson()}render(t){let r;return this.value=t.placeholderSymbol,typeof t.renderPlaceholder=="function"?r=t.renderPlaceholder(t):r=this.createBox(t),this.caret&&(r.classes+=" ML__placeholder-selected"),r}_serialize(t){return t.skipPlaceholders?"":"\\placeholder{}"}},_A=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],FA=["cases","dcases","rcases"],AA=["align","align*","aligned","gather","gathered","split"],Tu=["array","subequations","eqnarray"];function Bc(e){return Tu.concat(AA).concat(FA).concat(_A).includes(e)}function Ac(e){return _A.includes(e)}function $o(e){return FA.includes(e)}function is(e){return AA.includes(e)}function Ss(e,t,r){let n=0;for(const J of r)"align"in J&&(n+=1);let i=0;const s=[];for(const J of t){let Ae=0;for(i=Math.max(i,Math.min(J.length,n));Ae<J.length;){const Qe=[],ft=Math.min(J.length,Ae+n);for(;Ae<ft;){const Ft=J[Ae];Ft.length===0?Qe.push([new Zr({type:"first",mode:e.mode})]):Ft[0].type!=="first"?Qe.push([new Zr({type:"first",mode:e.mode}),...Ft]):(console.assert(!Ft.slice(1).some(Ot=>Ot.type==="first")),Qe.push(Ft)),Ae+=1}s.push(Qe)}}s.length>0&&s[s.length-1].length===1&&s[s.length-1][0].length===1&&s[s.length-1][0][0].type==="first"&&s.pop();const A=[];for(const J of s){if(J.length!==i)for(let Ae=J.length;Ae<i;Ae++)J.push([new Zr({type:"first",mode:e.mode}),new zl]);A.push(J)}let M=0,z=0;for(const J of A){z=0;for(const Ae of J){for(const Qe of Ae)Qe.parent=e,Qe.parentBranch=[M,z];z+=1}M+=1}return e.isDirty=!0,A}var oa=class tp extends Zr{constructor(t,r,n,i={}){var s;super({type:"array"}),this.environmentName=t,this.rowGaps=n,i.mathstyleName&&(this.mathstyleName=i.mathstyleName),i.columns&&(i.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=i.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Ss(this,r,this.colFormat),i.leftDelim&&(this.leftDelim=i.leftDelim),i.rightDelim&&(this.rightDelim=i.rightDelim),i.arraycolsep!==void 0&&(this.arraycolsep=i.arraycolsep),this.colSeparationType=i.colSeparationType,i.arraystretch!==void 0&&(this.arraystretch=i.arraystretch),this.minColumns=(s=i.minColumns)!=null?s:1}static fromJson(t){return new tp(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=E(f({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(n=>n.map(i=>i.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(t.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(t.arraycolsep=this.arraycolsep),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}branch(t){var r;if(gc(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return gc(t)?(this.isDirty=!0,(r=this.branch(t))!=null?r:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(t=>!!t.align).length}removeBranch(t){if(mc(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(n=>{n.parent=void 0,n.parentBranch=void 0}),console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}get hasChildren(){return this.children.length>0}get children(){const t=[];for(const r of this.array)for(const n of r)if(n)for(const i of n)t.push(...i.children),t.push(i);return[...t,...super.children]}render(t){var r,n,i,s,A,M;const z=new ya({parent:t,mathstyle:this.mathstyleName},this.style),J=z.getRegisterAsEm("arrayrulewidth"),Ae=z.getRegisterAsEm("arraycolsep"),Qe=z.getRegisterAsEm("doublerulesep"),ft=(n=(r=this.arraystretch)!=null?r:z.getRegisterAsNumber("arraystretch"))!=null?n:1;let Ft=typeof this.arraycolsep=="number"?this.arraycolsep:Ae;this.colSeparationType==="small"&&(Ft=.2778*(new ya({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Ot=ft*Bl,Er=.7*Ot,En=.3*Ot;let Cr=0;const nn=[];let Pn=0;const pn=this.array.length;for(let rs=0;rs<pn;++rs){const Zs=this.array[rs];Pn=Math.max(Pn,Zs.length);const Ll=new ya({parent:z,mathstyle:this.mathstyleName},this.style);let Fu=Er/Ll.scalingFactor,Iu=En/Ll.scalingFactor;const Mu={cells:[],height:0,depth:0,pos:0};for(const au of Zs){const Y0=(i=Zr.createBox(Ll,au,{type:"ignore"}))!=null?i:new un(null,{type:"ignore"});Iu=Math.max(Iu,Y0.depth),Fu=Math.max(Fu,Y0.height),Mu.cells.push(Y0)}let Lu=(s=_l(this.rowGaps[rs]))!=null?s:0;Lu>0&&(Lu+=En,Iu=Math.max(Iu,Lu),Lu=0),rs<pn-1&&!Ac(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Iu+=z.getRegisterAsEm("jot")),Mu.height=Fu,Mu.depth=Iu,Cr+=Fu,Mu.pos=Cr,Cr+=Iu+Lu,nn.push(Mu)}const Ii=Cr/2+hs,$i=[];for(let rs=0;rs<Pn;rs++){const Zs=[];for(const Ll of nn){const Fu=Ll.cells[rs];Fu.depth=Ll.depth,Fu.height=Ll.height,Zs.push({box:Fu,shift:Ll.pos-Ii})}Zs.length>0&&$i.push(new Eo({individualShift:Zs}))}const Ui=[];let lo=!1,Vo=!1,$n=0,gA=!this.leftDelim;const{colFormat:_u}=this;for(const rs of _u){if("align"in rs&&$n>=$i.length)break;if("align"in rs)lo?Ui.push(uc(2*Ft)):(Vo||gA)&&Ui.push(uc(Ft)),Ui.push(new un($i[$n],{classes:"col-align-"+rs.align})),$n++,lo=!0,Vo=!1,gA=!1;else if("gap"in rs){if(typeof rs.gap=="number")Ui.push(uc(rs.gap));else{const Zs=uA(t,nn,Ii,rs.gap);Zs&&Ui.push(Zs)}lo=!1,Vo=!1,gA=!1}else if("separator"in rs){const Zs=new un(null,{classes:"vertical-separator"});Zs.height=Cr,Zs.setStyle("height",Cr,"em"),Zs.setStyle("border-right",`${J}em ${rs.separator} currentColor`),Zs.setStyle("vertical-align",-(Cr-Ii),"em");let Ll=0;Vo?Ll=Qe-J:lo&&(Ll=Ft-J),Zs.left=Ll,Ui.push(Zs),lo=!1,Vo=!0,gA=!1}}lo&&!this.rightDelim&&Ui.push(uc(Ft));const RA=new un(Ui,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(RA.caret=this.caret),this.bind(t,RA);const Ml=RA.height,vA=RA.depth,Kc=this.bind(t,new un([this.bind(t,Cc("open",(A=this.leftDelim)!=null?A:".",Ml,vA,z,{isSelected:this.isSelected})),RA,this.bind(t,Cc("close",(M=this.rightDelim)!=null?M:".",Ml,vA,z,{isSelected:this.isSelected}))],{type:"ord"}));return Kc?(Kc.setStyle("display","inline-block"),this.caret&&(Kc.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:Kc}))):null}_serialize(t){var r;const n=[];if(this.environmentName==="lines"?n.push("{\\displaylines"):n.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(n.push("{"),this.colFormat!==void 0)for(const i of this.colFormat)"align"in i&&typeof i.align=="string"?n.push(i.align):"separator"in i&&i.separator==="solid"?n.push("|"):"separator"in i&&i.separator==="dashed"&&n.push(":");n.push("}")}for(let i=0;i<this.array.length;i++){for(let s=0;s<this.array[i].length;s++)s>0&&n.push(" & "),n.push(Zr.serialize(this.array[i][s],t));if(i<this.array.length-1){const s=this.rowGaps[i];s!=null&&s.dimension?n.push(`\\\\[${s.dimension} ${(r=s.unit)!=null?r:"pt"}] `):n.push("\\\\ ")}}return this.environmentName==="lines"?n.push("}"):n.push(`\\end{${this.environmentName}}`),wa(n)}getCell(t,r){return this.array[t][r]}setCell(t,r,n){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const s of this.array[t][r])s.parent=void 0,s.parentBranch=void 0;let i=n;(n.length===0||n[0].type!=="first")&&(i=[new Zr({type:"first",mode:this.mode}),...n]),this.array[t][r]=i;for(const s of i)s.parent=this,s.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(di(this));this.array.splice(t,0,r);for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(di(this));this.array.splice(t+1,0,r);for(let n=t+1;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}removeRow(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>t);const r=this.array.splice(t,1);for(const n of r)for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0;for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,di(this));for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}addColumnAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t+1,0,di(this));for(let r=0;r<this.rowCount;r++)for(let n=t+1;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>t);for(const r of this.array){const n=r.splice(t,1);for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const n of r)n&&t.push(n.filter(i=>i.type!=="first"));return t}};function di(e){const t=new Zr({type:"first",mode:e.mode});t.parent=e;const r=new zl;return r.parent=e,[t,r]}function uc(e){const t=new un(null,{classes:"arraycolsep"});return t.width=e,t}function uA(e,t,r,n){if(!n)return null;const i=[];for(const s of t){const A=Zr.createBox(e,n,{type:"ignore"});A&&(A.depth=s.depth,A.height=s.height,i.push({box:A,shift:s.pos-r}))}return new Eo({individualShift:i}).wrap(e)}var Fs=class rp extends Zr{constructor(t){super({mode:t.mode,command:t.command,style:t.style,body:t.body,type:"box"}),this.framecolor=t.framecolor,this.backgroundcolor=t.backgroundcolor,this.padding=t.padding,this.offset=t.offset,this.border=t.border}static fromJson(t){return new rp(t)}toJson(){return E(f({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,n,i,s;const A=Zr.createBox(t,this.body,{type:"lift"});if(!A)return null;const M=t.toEm((r=this.offset)!=null?r:{dimension:0});A.depth+=M,A.setStyle("display","inline-block"),A.setStyle("position","relative"),A.setStyle("height",Math.floor(100*A.height+A.depth)/100,"em"),A.setStyle("vertical-align",-Math.floor(100*A.height)/100,"em");const z=new ya({parent:t},this.style),J=z.toEm((n=this.padding)!=null?n:{register:"fboxsep"}),Ae=new un(null,{classes:"ML__box"});Ae.height=A.height+J,Ae.depth=A.depth+J,Ae.setStyle("box-sizing","border-box"),Ae.setStyle("position","absolute"),Ae.setStyle("top",-J+.3,"em"),Ae.setStyle("left",0),Ae.setStyle("height",Ae.height+Ae.depth,"em"),Ae.setStyle("width","100%"),this.backgroundcolor&&Ae.setStyle("background-color",(i=z.toColor(this.backgroundcolor))!=null?i:"transparent"),this.framecolor&&Ae.setStyle("border",`${z.getRegisterAsEm("fboxrule",2)}em solid ${(s=z.toColor(this.framecolor))!=null?s:"black"}`),this.border&&Ae.setStyle("border",this.border);const Qe=new un([Ae,A],{type:"lift"});return Qe.setStyle("display","inline-block"),Qe.setStyle("position","relative"),Qe.setStyle("line-height",0),Qe.height=A.height+J+(M>0?M:0),Qe.depth=A.depth+J+(M<0?-M:0),Qe.setStyle("padding-left",J,"em"),Qe.setStyle("padding-right",J,"em"),Qe.setStyle("height",Math.floor(100*(A.height+A.depth+2*J+Math.abs(M)))/100,"em"),Qe.setStyle("margin-top",-J,"em"),Qe.setStyle("top",Math.floor(100*(A.depth-A.height+2*J-M))/100,"em"),Qe.setStyle("vertical-align",Math.floor(100*(A.depth+2*J))/100,"em"),this.caret&&(Qe.caret=this.caret),this.attachSupsub(t,{base:Qe})}_serialize(t){return t.skipStyles?wa([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},cd=class np extends Zr{constructor(t,r){var n;super({type:"composition",mode:(n=r==null?void 0:r.mode)!=null?n:"math",value:t})}static fromJson(t){return new np(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new un(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},Ga=class ip extends Zr{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new ip(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},so=class ap extends Zr{constructor(t,r,n){super({type:"group",mode:r,style:n}),this.body=t,this.boxType=t.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,t&&t.length===1&&t[0].command===","&&(this.captureSelection=!0)}static fromJson(t){return new ap(t.body,t.mode,t.style)}render(t){const r=Zr.createBox(t,this.body,{type:this.boxType});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},Xa=class op extends Zr{constructor(t,r,n){super({type:"leftright",style:n.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=n.leftDelim,this.rightDelim=n.rightDelim}static fromJson(t){var r;return new op((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,n;const i=this.matchingRightDelim();return this.variant==="left...right"?wa(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",i]):this.variant==="mleft...mright"?wa(["\\mleft",(n=this.leftDelim)!=null?n:".",this.bodyToLatex(t),"\\mright",i]):wa([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),i])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const n=(t=this.leftDelim)!=null?t:".";return(r=Hl[n])!=null?r:n}render(t){var r,n;const i=new ya({parent:t},this.style);console.assert(this.body!==void 0);const s=new ya({parent:t,mathstyle:"textstyle"},this.style),A=(r=Zr.createBox(i,this.body,{type:"inner"}))!=null?r:new un(null,{type:"inner"}),M=A.height/s.scalingFactor,z=A.depth/s.scalingFactor,J=[];if(this.leftDelim&&J.push(this.bind(s,Cc("open",this.leftDelim,M,z,s,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),A&&(Uu(A.children,this,i,M,z),J.push(A)),this.rightDelim){let Ft=this.containsCaret?" ML__contains-caret":"",Ot=this.rightDelim;Ot==="?"&&(i.smartFence?(Ot=this.matchingRightDelim(),Ft+=" ML__smart-fence__close"):Ot="."),J.push(this.bind(s,Cc("close",Ot,M,z,s,{isSelected:this.isSelected,classes:Ft+" ML__close",mode:this.mode,style:this.style})))}let Ae=this.variant==="mleft...mright";const Qe=this.leftSibling;Qe&&(!Ae&&Qe.isFunction&&(Ae=!0),!Ae&&Qe.type==="subsup"&&((n=Qe.leftSibling)!=null&&n.isFunction)&&(Ae=!0));const ft=new un(J,{type:Ae?"close":"inner",classes:"left-right"});return ft.setStyle("margin-top",`${-A.depth}em`),ft.setStyle("height",`${A.height+A.depth}em`),this.caret&&(ft.caret=this.caret),this.bind(i,ft.wrap(i))}};function Uu(e,t,r,n,i){if(e)for(let s=0;s<e.length;s++){const A=e[s];A.type==="middle"?(e[s]=t.bind(r,Cc("inner",A.value,n,i,r,{isSelected:t.isSelected})),e[s].caret=A.caret,e[s].isSelected=A.isSelected,e[s].cssId=A.cssId,e[s].htmlData=A.htmlData,e[s].htmlStyle=A.htmlStyle,e[s].attributes=A.attributes,e[s].cssProperties=A.cssProperties):A.children&&Uu(A.children,t,r,n,i)}}var IA=class sp extends Zr{constructor(t,r){var n;super({type:"macro",command:t,style:r.style}),this.body=r.body,r.captureSelection===void 0?r.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=r.captureSelection,this.macroArgs=r.args,this.expand=(n=r.expand)!=null?n:!1}static fromJson(t){return new sp(t.command,t)}toJson(){const t=super.toJson();return this.expand&&(t.expand=!0),this.captureSelection!==void 0&&(t.captureSelection=this.captureSelection),this.macroArgs&&(t.args=this.macroArgs),t}_serialize(t){var r;return t.expandMacro&&this.expand?this.bodyToLatex(t):this.command+((r=this.macroArgs)!=null?r:"")}render(t){const r=Zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},$d=class lp extends Zr{constructor(){super({type:"macro-argument"})}static fromJson(t){return new lp}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},MA=class cp extends Zr{constructor(t,r,n=!1,i,s){var A;super({type:"prompt",mode:(A=s==null?void 0:s.mode)!=null?A:"math",style:s==null?void 0:s.style,command:"\\placeholder"}),this.body=i,this.correctness=r,this.placeholderId=t,this.locked=n,this.captureSelection=this.locked}static fromJson(t){return new cp(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new ya({parent:t}),n=r.getRegisterAsEm("fboxsep"),i=n,s=n,A=Zr.createBox(t,this.body);if(!A)return null;A.height||(A.height=r.metrics.xHeight),A.setStyle("vertical-align",-A.height,"em"),this.correctness==="correct"?A.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&A.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const M=new un(A,{type:"ord"});M.setStyle("display","inline-block"),M.setStyle("height",A.height+A.depth,"em"),M.setStyle("vertical-align",-s,"em");let z="ML__prompt ";this.locked?z+=" ML__lockedPromptBox ":z+=" ML__editablePromptBox ",this.correctness==="correct"?z+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(z+=" ML__incorrectPromptBox "),this.containsCaret&&(z+=" ML__focusedPromptBox ");const J=new un(null,{classes:z,attributes:{part:"prompt"}});J.height=M.height+s,J.depth=M.depth+s,J.width=M.width+2*i,J.setStyle("box-sizing","border-box"),J.setStyle("position","absolute"),J.setStyle("height",M.height+M.depth+2*s,"em"),i===0&&J.setStyle("width","100%"),i!==0&&(J.setStyle("width",`calc(100% + ${2*i}em)`),J.setStyle("top",n,"em"),J.setStyle("left",-i,"em")),(!this.body||this.body.length===1)&&(J.width=3*i,J.setStyle("width",`calc(100% + ${3*i}em)`),J.setStyle("left",-1.5*i,"em"));let Ae="";this.correctness==="incorrect"&&(Ae+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ae&&(J.svgOverlay=Ae);const Qe=new un([J,M],{classes:"ML__prompt-atom"});return Qe.setStyle("position","relative"),Qe.setStyle("display","inline-block"),Qe.setStyle("line-height",0),Qe.height=M.height+s+.2,Qe.depth=M.depth+s,Qe.left=i,Qe.right=i,Qe.setStyle("height",M.height+s,"em"),Qe.setStyle("top",M.depth-M.height,"em"),Qe.setStyle("vertical-align",M.depth+s,"em"),Qe.setStyle("margin-left",.5,"em"),Qe.setStyle("margin-right",.5,"em"),this.caret&&(Qe.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Qe}))}_serialize(t){var r;const n=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return n;let i="\\placeholder";return this.placeholderId&&(i+=`[${this.placeholderId}]`),this.correctness==="correct"?i+="[correct]":this.correctness==="incorrect"&&(i+="[incorrect]"),this.locked&&(i+="[locked]"),So(i,n)}},tu=class Ap extends Zr{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new Ap(t);for(const n of fl)t[n]&&r.setChildren(t[n],n);return r}render(t){var r;const n=new ya({parent:t,isPhantom:!0}),i=this.leftSibling,s=(r=i.render(n))!=null?r:new un(null),A=new un(null);return A.height=s.height,A.depth=s.depth,this.attachSupsub(t,{base:A,isCharacterBox:i.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function LA(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var Ad=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var n,i,s,A;r!=null||(r={}),this.tokens=e,this.context=t instanceof ya&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new ya({from:t,mathstyle:r.mathstyle},r.style),this.args=(n=r.args)!=null?n:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(i=r.style)!=null?i:{},parseMode:(s=r.parseMode)!=null?s:"math",mathstyle:(A=r.mathstyle)!=null?A:"displaystyle",tabular:!1}}beginContext(e){var t,r,n;const i=this.parsingContext,s={parent:i,mathlist:[],style:f({},i.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:i.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:i.mathstyle,tabular:(n=e==null?void 0:e.tabular)!=null?n:!1};this.parsingContext=s}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(f({before:Tl(this.tokens.slice(this.index,this.index+10)),after:Tl(this.tokens.slice(Math.max(0,this.index-10),this.index))},e))}get mathlist(){return this.parsingContext.mathlist}set mathlist(e){this.parsingContext.mathlist=e}get parseMode(){return this.parsingContext.parseMode}set parseMode(e){this.parsingContext.parseMode=e}get tabularMode(){return this.parsingContext.tabular}get style(){let e=this.parsingContext;for(;e;){if(e.style)return f({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(e){return this.tokens[this.index]===e?(this.index++,!0):!1}lastSubsupAtom(){let e;return this.mathlist.length>0&&(e=this.mathlist[this.mathlist.length-1],e.type==="subsup"||e.subsupPlacement!==void 0)||(e=new tu({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=vt(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?al(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new zl({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(e){const t=this.index;let r=this.end(),n="";for(;!r;){const s=this.get();LA(s)?(n+=s,r=this.end()||n.length>=e.length):r=!0}const i=e.toUpperCase()===n.toUpperCase();return i||(this.index=t),i}scanString(){let e="";for(;!this.end();){const t=this.peek();if(t==="]")return e;if(t==="<space>")e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else if(LA(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const n=this.get();n==="<space>"?e+=" ":n==="<{>"?(e+="{",r+=1):n==="<}>"?(r-=1,r>0?e+="}":this.index-=1):n==="<$>"?e+="$":n==="<$$>"?e+="$$":e+=n,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const n=this.get();n==="<}>"?(r-=1,r>0&&(t+="}")):n==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(n)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[n])!=null?e:n)}return t}scanNumber(e=!0){var t,r;let n=!1,i=this.peek();for(;i==="<space>"||i==="+"||i==="-";)this.get(),i==="-"&&(n=!n),i=this.peek();e=!!e;let s=10,A=/\d/;if(this.match("'"))s=8,A=/[0-7]/,e=!0;else if(this.match('"'))s=16,A=/[\dA-F]/,e=!0;else if(this.match("x"))s=16,A=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return i=this.get(),i?i.length===2&&i.startsWith("\\")?{number:(n?-1:1)*((t=i.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(n?-1:1)*((r=i.codePointAt(0))!=null?r:0),base:"alpha"}:null;let M="";for(;this.hasPattern(A);)M+=this.get();if(!e&&(this.match(".")||this.match(",")))for(M+=".";this.hasPattern(A);)M+=this.get();const z=e?Number.parseInt(M,s):Number.parseFloat(M);return Number.isNaN(z)?null:{number:n?-z:z,base:s===16?"hexadecimal":s===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let n=!1;if(r===null)for(;;){const s=this.peek();if(s==="-")n=!n;else if(s!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const s=this.get();return s.startsWith("\\")?r?{register:s,global:!0,factor:(n?-1:1)*r.number}:n?{register:s,global:!0,factor:-1}:{register:s,global:!0}:(this.index=t,null)}let i=this.get();return i!=null&&i.startsWith("\\")?(i=i.substring(1),this.context.registers[i]?!n||r!==null?{register:i,factor:(n?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:i}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,r=this.scanGlueOrDimen();if(r&&("unit"in r||"glue"in r&&"unit"in r.glue))return r;this.index=t;const n=this.scanNumber();if(n)return n;if(this.end()||!LA(this.peek()))return null;const i=this.scanString();return i.length>0?{string:i}:null}scanDimen(){const e=this.scanNumber(!1);if(e===null)return null;const t=e.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let r;return this.matchKeyword("pt")?r="pt":this.matchKeyword("mm")?r="mm":this.matchKeyword("cm")?r="cm":this.matchKeyword("ex")?r="ex":this.matchKeyword("px")?r="px":this.matchKeyword("em")?r="em":this.matchKeyword("bp")?r="bp":this.matchKeyword("dd")?r="dd":this.matchKeyword("pc")?r="pc":this.matchKeyword("in")?r="in":this.matchKeyword("mu")&&(r="mu"),r?{dimension:t,unit:r}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(e===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const r=this.scanDimen();if(r)t.grow=r;else return t}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const r=this.scanDimen();if(r)t.shrink=r;else return t}return!t.grow&&!t.shrink?e:t}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const t=this.get();t==="c"||t==="r"||t==="l"?e.push({align:t}):t==="|"?e.push({separator:"solid"}):t===":"?e.push({separator:"dashed"}):t==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan(r=>r==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan(r=>r===(e==="displaystyle"?"\\]":"\\)"));return this.match(e==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan(r=>r===e);return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=T(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const r=[];if(t.params)for(const M of t.params)if(M.isOptional)r.push(this.scanOptionalArgument(M.type));else{const z=this.scanArgument(M.type);z||this.onError({code:"missing-argument",arg:e}),r.push(z)}this.beginContext({tabular:t.tabular});const n=[],i=[];let s=[],A=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A)if(this.matchColumnSeparator())s.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){s.push(this.mathlist),this.mathlist=[];let M=null;this.skipWhitespace(),this.match("[")&&(M=this.scanDimen(),this.skipWhitespace(),this.match("]")),i.push(M!=null?M:{dimension:0}),n.push(s),s=[]}else this.mathlist.push(...this.scan(M=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(M)));while(!A);return s.push(this.mathlist),s.length>0&&n.push(s),this.endContext(),t.createAtom(e,n,i,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=A=>A==="<}>");let t="",r=null,n=[],i=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=vt(t,"math"),r&&(n=this.scanArguments(r)[1]),i=this.mathlist,this.mathlist=[]):this.parseExpression();let s;return t?(console.assert(!!r),n.unshift(this.mathlist),i&&n.unshift(i),s=[r.createAtom({command:t,args:n,style:this.style,mode:this.parseMode})]):s=this.mathlist,this.endContext(),s}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(n=>n==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new so(t,this.parseMode,this.style);return r.verbatimLatex=Tl(this.tokens.slice(e,this.index)),r}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let e=1;for(;!this.end()&&e!==0;)this.match("(")&&(e+=1),this.match(")")&&(e-=1),e!==0&&this.parseExpression();const t=new Xa("",this.mathlist,{leftDelim:"(",rightDelim:e===0?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!LA(e)&&!e.startsWith("\\"))return null;this.next();const t=vt(e,"math");return t?t.definitionType==="function"&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):t.definitionType==="symbol"&&(t.type==="mopen"||t.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Ga("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Ga("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const r=this.scanDelim();if(!r)return this.onError({code:"unexpected-delimiter"}),new Ga(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const n=this.mathlist;this.endContext();const i=(e=this.scanDelim())!=null?e:".";return new Xa(t==="\\right"?"left...right":"mleft...mright",n,{leftDelim:r,rightDelim:i,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let e=this.peek();if(e!=="^"&&e!=="_"&&e!=="'")return!1;const t=this.lastSubsupAtom();for(;e==="^"||e==="_"||e==="'";)this.match("'")?this.match("'")?t.addChild(new Zr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new Zr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(ut(this.scanArgument("expression")),e==="_"?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),r=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!r)return!1;const n=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return n===null?!1:(n.explicitSubsupPlacement=!0,e&&(n.subsupPlacement="over-under"),t&&(n.subsupPlacement="adjacent"),r&&(n.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let n=e.infix?2:0;for(;n<e.params.length;){const i=e.params[n];i.type==="rest"?r.push(this.scan(s=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(s))):i.isOptional?r.push(this.scanOptionalArgument(i.type)):i.type.endsWith("*")?t=i.type.slice(0,-1):r.push(this.scanArgument(i.type)),n+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(LA(e)){const r=js.createAtom(this.parseMode,e,f({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=vt(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new Ga(e)];if(r.definitionType==="symbol"){const n=f({},this.style);r.variant&&(n.variant=r.variant),t=new Zr({type:r.type,command:e,style:n,value:String.fromCodePoint(r.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(r.applyMode||r.applyStyle||r.infix)return this.onError({code:"invalid-command",arg:e}),[new Ga(e)];r.createAtom&&(t=r.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const r=this.parseMode;if(e==="auto"&&(e=r),!this.match("<{>")){if(e==="string")return this.scanString();if(e==="value")return this.scanValue();if(e==="delim")return(t=this.scanDelim())!=null?t:".";if(e==="expression")return this.scanExpression();if(e==="math"){e!==r&&this.beginContext({mode:"math"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}return e==="balanced-string"||console.assert(!1),null}if(e==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}let n=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}return e==="string"?n=this.scanString():e==="balanced-string"?n=this.scanBalancedString():e==="colspec"?n=this.scanColspec():e==="value"&&(n=this.scanValue()),this.skipUntilToken("<}>"),n}scanOptionalArgument(e){if(e=e==="auto"?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if(e==="string")t=this.scanString();else if(e==="value")t=this.scanValue();else if(e==="colspec")t=this.scanColspec();else if(e==="bbox"){const r={},n=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const i of n){const s=i.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(s)r.padding={dimension:parseInt(s[1]),unit:s[2]};else{const A=i.match(/^\s*border\s*:\s*(.*)/);A?r.border=A[1]:r.backgroundcolor={string:i}}}t=r}else e==="math"&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan(r=>r==="]")),this.endContext());return t}scanSymbolOrCommand(e){var t,r,n;if(e==="\\placeholder"){const M=this.scanOptionalArgument("string"),z=this.scanOptionalArgument("math"),J=Zr.serialize(z,{defaultMode:"math"});let Ae=[],Qe;!Qe&&J==="correct"?Qe="correct":!Qe&&J==="incorrect"?Qe="incorrect":J!==""&&(Ae=z);const ft=this.scanOptionalArgument("string")==="locked",Ft=this.scanArgument("auto");let Ot;return Ft&&Array.isArray(Ft)&&Ft.length>0?Ot=Ft:Ft&&typeof Ft=="object"&&"group"in Ft?Ot=Ft.group:Ot=Ae,M?[new MA(M,Qe,ft,Ot!=null?Ot:Ae,{mode:this.parseMode,style:this.style})]:[new zl({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const M=this.index,z=this.scanLiteralGroup()||this.next();if(!z)return null;if(this.context.registers[z.substring(1)]){const J=this.scanArgument("string");J!==null&&(this.context.registers[z.substring(1)]=J);const Ae=wa([e,Tl(this.tokens.slice(M,this.index))]);return[new Zr({type:"text",value:"",verbatimLatex:Ae})]}}let i=this.scanMacro(e);if(i)return[i];const s=vt(e,this.parseMode);if(!s)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(M=>new Zr({type:"text",value:M,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Ga(e)]);const A=this.index;if(s.definitionType==="symbol"){const M=f({},this.style);s.variant&&(M.variant=s.variant),i=new Zr({type:s.type,command:e,style:M,value:String.fromCodePoint(s.codepoint),mode:this.parseMode})}else{if(s.ifMode&&!s.ifMode.includes(this.parseMode))return[];const M=this.parseMode;s.applyMode&&(this.parseMode=s.applyMode);let z,J=[];if(s.parse?J=s.parse(this):[z,J]=this.scanArguments(s),this.parseMode=M,s.applyMode&&!s.applyStyle&&!s.createAtom)return ut(J[0]);if(s.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof s.createAtom=="function")i=s.createAtom({command:e,args:J,style:this.style,mode:this.parseMode}),z&&(i.body=ut(this.scanArgument(z)));else if(typeof s.applyStyle=="function"){const Ae=f(f({},this.style),s.applyStyle(e,J,this.context)),Qe=this.parseMode;if(s.applyMode&&(this.parseMode=s.applyMode),z){const ft=this.style;this.style=Ae;const Ft=this.scanArgument(z);return this.style=ft,this.parseMode=Qe,ut(Ft)}this.style=Ae}else i=new Zr({type:"mord",command:(r=s.command)!=null?r:e,style:f({},this.style),value:e,mode:(n=s.applyMode)!=null?n:this.parseMode})}if(!i)return null;if(i instanceof Zr&&i.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const M=wa([e,Tl(this.tokens.slice(A,this.index))]);M&&(i.verbatimLatex=M)}if(i.verbatimLatex===null&&(i.verbatimLatex=void 0),i.isFunction&&this.smartFence){const M=this.scanSmartFence();if(M)return[i,M]}return[i]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(LA(e)){const t=js.createAtom(this.parseMode,e,f({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const r=this.scanSmartFence();if(r)return[t,r]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):e==="<space>"?this.parseMode==="text"?[new Lc(" "," ",this.style)]:null:(e==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const r=this.context.getMacro(e);if(!r)return null;const n=this.index,i=r.args,s={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let A=1;A<=i;A++){let M=this.scanLiteralGroup();if(!M){const z=this.index;this.scanExpression(),M=Tl(this.tokens.slice(z,this.index))}s[A]=M}return new IA(e,{expand:r.expand,captureSelection:r.captureSelection,args:n===this.index?null:Tl(this.tokens.slice(n,this.index)),style:this.parsingContext.style,body:al(r.def,{context:this.context,parseMode:this.parseMode,args:A=>s[A],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,n;let i=(n=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?n:this.scanLeftRight();if(i===null){if(this.parseSupSub()||this.parseLimits())return!0;i=this.scanSymbolCommandOrLiteral()}return i?(Array.isArray(i)?this.mathlist.push(...i):this.mathlist.push(i),!0):!1}};function al(e,t){var r,n,i,s;const A=(r=t==null?void 0:t.args)!=null?r:void 0,M=new Ad(Ns(e,A),t==null?void 0:t.context,{args:A,mathstyle:(n=t==null?void 0:t.mathstyle)!=null?n:"displaystyle",parseMode:(i=t==null?void 0:t.parseMode)!=null?i:"math",style:(s=t==null?void 0:t.style)!=null?s:{}}),z=[];for(;!M.end();)z.push(...M.scan(()=>!1));return z}function Ru(e,t){var r;const n=new Ad(Ns(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!n.end();)n.scan();return n.errors}var Qu=class up extends Zr{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const n=Zo.go(vn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=al(n),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new up(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return E(f({},super.toJson()),{arg:this.arg})}render(t){const r=Zr.createBox(t,this.body,{type:"inner"});return this.caret&&(r.caret=this.caret),this.bind(t,r)}_serialize(t){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};pe(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new Qu(e.command,(t=e.args[0])!=null?t:"")}});var vn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var i,s=10,A=[];;){i!==e?(s=10,i=e):s--;var M=vn.stateMachines[t],z=M.transitions[r]||M.transitions["*"];e:for(var J=0;J<z.length;J++){var Ae=vn.patterns.match_(z[J].pattern,e);if(Ae){for(var Qe=z[J].task,ft=0;ft<Qe.action_.length;ft++){var Ft;if(M.actions[Qe.action_[ft].type_])Ft=M.actions[Qe.action_[ft].type_](n,Ae.match_,Qe.action_[ft].option);else if(vn.actions[Qe.action_[ft].type_])Ft=vn.actions[Qe.action_[ft].type_](n,Ae.match_,Qe.action_[ft].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Qe.action_[ft].type_+")"];vn.concatArray(A,Ft)}if(r=Qe.nextState||r,e.length>0){if(Qe.revisit||(e=Ae.remainder),!Qe.toContinue)break e}else return A}}if(s<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Object.prototype.toString.call(t)==="[object Array]")for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=vn.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return vn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return vn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return vn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return vn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return vn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return vn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return vn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return vn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return vn.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return vn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return vn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=vn.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,i,s,A,M,z,J){var Ae=function(Cr,nn){if(typeof nn=="string")return Cr.indexOf(nn)!==0?null:nn;var Pn=Cr.match(nn);return Pn?Pn[0]:null},Qe=function(Cr,nn,Pn){for(var pn=0;nn<Cr.length;){var Ii=Cr.charAt(nn),$i=Ae(Cr.substr(nn),Pn);if($i!==null&&pn===0)return{endMatchBegin:nn,endMatchEnd:nn+$i.length};if(Ii==="{")pn++;else if(Ii==="}"){if(pn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];pn--}nn++}return pn>0,null},ft=Ae(e,t);if(ft===null||(e=e.substr(ft.length),ft=Ae(e,r),ft===null))return null;var Ft=Qe(e,ft.length,n||i);if(Ft===null)return null;var Ot=e.substring(0,n?Ft.endMatchEnd:Ft.endMatchBegin);if(s||A){var Er=this.findObserveGroups(e.substr(Ft.endMatchEnd),s,A,M,z);if(Er===null)return null;var En=[Ot,Er.match_];return{match_:J?En.join(""):En,remainder:Er.remainder}}else return{match_:Ot,remainder:e.substr(Ft.endMatchEnd)}},match_:function(e,t){var r=vn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return vn.patterns.patterns[e](t);var n=t.match(r);if(n){var i;return n[2]?i=[n[1],n[2]]:n[1]?i=n[1]:i=n[0],{match_:i,remainder:t.substr(n[0].length)}}return null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return vn.go(t,"text")},"{text}":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return vn.go(t,"tex-math")},"tex-math tight":function(e,t){return vn.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return vn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return vn.go(t,"9,9")}},createTransitions:function(e){var t,r,n,i,s={};for(t in e)for(r in e[t])for(n=r.split("|"),e[t][r].stateArray=n,i=0;i<n.length;i++)s[n[i]]=[];for(t in e)for(r in e[t])for(n=e[t][r].stateArray||[],i=0;i<n.length;i++){var A=e[t][r];if(A.action_){A.action_=[].concat(A.action_);for(var M=0;M<A.action_.length;M++)typeof A.action_[M]=="string"&&(A.action_[M]={type_:A.action_[M]})}else A.action_=[];for(var z=t.split("|"),J=0;J<z.length;J++)if(n[i]==="*")for(var Ae in s)s[Ae].push({pattern:z[J],task:A});else s[n[i]].push({pattern:z[J],task:A})}return s},stateMachines:{}};vn.stateMachines={ce:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var n=e.d;e.d=void 0,r=this.output(e),e.b=n}else r=this.output(e);return vn.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return vn.concatArray(r,this.output(e)),vn.concatArray(r,vn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var n=vn.patterns.match_("orbital",e.o||""),i=vn.patterns.match_("one lowercase greek letter $",e.o||""),s=vn.patterns.match_("one lowercase latin letter $",e.o||""),A=vn.patterns.match_("$one lowercase latin letter$ $",e.o||""),M=t==="-"&&(n&&n.remainder===""||i||s||A);M&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!n&&s&&(e.o="$"+e.o+"$");var z=[];return M?(vn.concatArray(z,this.output(e)),z.push({type_:"hyphen"})):(n=vn.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(vn.concatArray(z,vn.actions["d="](e,t)),vn.concatArray(z,this.output(e))):(vn.concatArray(z,this.output(e)),vn.concatArray(z,vn.actions.bond(e,t,"-")))),z},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:vn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),n=r!==t;return n&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(!e.r)n=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&n.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&vn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),n.push({type_:"chemfive",a:vn.go(e.a,"a"),b:vn.go(e.b,"bd"),p:vn.go(e.p,"pq"),o:vn.go(e.o,"o"),q:vn.go(e.q,"pq"),d:vn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var i;e.rdt==="M"?i=vn.go(e.rd,"tex-math"):e.rdt==="T"?i=[{type_:"text",p1:e.rd||""}]:i=vn.go(e.rd);var s;e.rqt==="M"?s=vn.go(e.rq,"tex-math"):e.rqt==="T"?s=[{type_:"text",p1:e.rq||""}]:s=vn.go(e.rq),n={type_:"arrow",r:e.r,rd:i,rq:s}}for(var A in e)A!=="parenthesisLevel"&&A!=="beginsWithBond"&&delete e[A];return n},"oxidation-output":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:vn.go(t[0]),p2:vn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:vn.go(t[0]),p2:vn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:vn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:vn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:vn.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:vn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"pq")}}}},bd:{transitions:vn.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"bd")}}}},oxidation:{transitions:vn.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:vn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(vn.concatArray(r,vn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?vn.concatArray(r,vn.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),vn.concatArray(r,vn.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=vn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var n=vn.patterns.match_("{(...)}",e.q||"");if(n&&n.remainder===""&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var i={d:vn.go(e.d,"pu"),q:vn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:i.d,p2:i.q}:(t=i.d,i.d.length>1||i.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),vn.concatArray(t,i.q))}else t=vn.go(e.d,"pu-2");for(var s in e)delete e[s];return t}}},"pu-2":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=vn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=vn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:vn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var i in e)delete e[i];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var i in e)delete e[i];return t}}}};var Zo={go:function(e,t){if(!e)return"";for(var r="",n=!1,i=0;i<e.length;i++){var s=e[i];typeof s=="string"?r+=s:(r+=Zo._go2(s),s.type_==="1st-level escape"&&(n=!0))}return!t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&Zo.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:Zo._goInner(e.a),b:Zo._goInner(e.b),p:Zo._goInner(e.p),o:Zo._goInner(e.o),q:Zo._goInner(e.q),d:Zo._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+Zo._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+Zo._goInner(e.p1);break;case"bond":if(t=Zo._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var i="\\frac{"+Zo._goInner(e.p1)+"}{"+Zo._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+Zo._goInner(e.p1)+"}{"+Zo._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+Zo._goInner(e.p1)+"}{"+Zo._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+Zo._goInner(e.p1)+"}{"+Zo._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+Zo._goInner(e.p1)+"}_{"+Zo._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+Zo._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var s={rd:Zo._goInner(e.rd),rq:Zo._goInner(e.rq)},A=Zo._getArrow(e.r);s.rd||s.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(A="\\long"+A,s.rd&&(A="\\overset{"+s.rd+"}{"+A+"}"),s.rq&&(e.r==="<-->"?A="\\underset{\\lower2mu{"+s.rq+"}}{"+A+"}":A="\\underset{\\lower6mu{"+s.rq+"}}{"+A+"}"),A=" {}\\mathrel{"+A+"}{} "):(s.rq&&(A+="[{"+s.rq+"}]"),A+="{"+s.rd+"}",A=" {}\\mathrel{\\x"+A+"}{} "):A=" {}\\mathrel{\\long"+A+"}{} ",t=A;break;case"operator":t=Zo._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function Zd(e){}function Vd(e){}var Wd=class dp extends Zr{constructor(t){super(E(f({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new dp(t)}toJson(){return E(f({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new un(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},_d=class fp extends Zr{constructor(t){super(E(f({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new fp(t)}toJson(){return E(f({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=Ou(this.value,this.size,t,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return r?(r=this.bind(t,r),this.caret&&(r.caret=this.caret),r):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},Ku=class hp extends Zr{constructor(t,r,n,i){var s,A;super({type:"enclose",command:t,style:i.style}),this.body=r,this.backgroundcolor=i.backgroundcolor,n.updiagonalarrow&&(n.updiagonalstrike=!1),n.box&&(n.left=!1,n.right=!1,n.bottom=!1,n.top=!1),this.notation=n,this.shadow=(s=i.shadow)!=null?s:"none",this.strokeWidth=(A=i.strokeWidth)!=null?A:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=i.strokeStyle,this.svgStrokeStyle=i.svgStrokeStyle,this.strokeColor=i.strokeColor,this.borderStyle=i.borderStyle,this.padding=i.padding,this.captureSelection=!1}static fromJson(t){return new hp(t.command,t.body,t.notation,t)}toJson(){return E(f({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=vt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);let i=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){i+="{"+Object.keys(this.notation).join(" ")+"}";let s="",A="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(s+=A+'mathbackground="'+this.backgroundcolor+'"',A=","),this.shadow&&this.shadow!=="auto"&&(s+=A+'shadow="'+this.shadow+'"',A=","),this.strokeWidth||this.strokeStyle!=="solid"?(s+=A+this.borderStyle,A=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(s+=A+'mathcolor="'+this.strokeColor+'"',A=","),s&&(i+=`[${s}]`)}return So(i,this.bodyToLatex(t))}render(t){const r=new ya({parent:t},this.style),n=Zr.createBox(r,this.body);if(!n)return null;const i=vf(this.borderStyle),s=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});n.setStyle("position","relative"),n.setStyle("display","inline-block"),n.setStyle("top",s,"em"),n.setStyle("height",n.height+n.depth,"em"),n.setStyle("width",n.width,"em");const A=new un(null,{classes:"ML__notation"});let M=n.height+n.depth+2*s;const z=n.width+2*s;let J="";if(this.notation.horizontalstrike&&(J+=this.line(3,50,97,50)),this.notation.verticalstrike&&(J+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(J+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(J+=this.line(3,3,97,97)),this.notation.updiagonalarrow){J+=this.line(s.toString(),(s+n.depth+n.height).toString(),(s+n.width).toString(),s.toString());const Ot=.03*Math.sqrt(z*z+M*M)*1,Er=n.width*Ot,En=(n.depth+n.height)*Ot,Cr=s+n.width;let nn=s;nn+En-.4*Er<0&&(nn=.4*Er-En),J+='<polygon points="',J+=`${Cr},${nn} ${Cr-Er-.4*En},${nn+En-.4*Er} `,J+=`${Cr-.7*Er},${nn+.7*En} ${Cr-Er+.4*En},${nn+En+.4*Er} `,J+=`${Cr},${nn}`,J+=`" stroke='none' fill="${this.strokeColor}"`,J+="/>"}let Ae=0;if(this.notation.phasorangle){const ft=$l(r),Ft=(n.height+n.depth+2*ft+s).toString(),Ot=(n.height+n.depth)/2;J+=this.line(s.toString(),Ft,(s+Ot+n.width).toString(),Ft),J+=this.line(s.toString(),Ft,(s+Ot).toString(),(s-ft).toString()),M+=ft,Ae=Ot,n.left+=M/2-s}if(this.notation.longdiv){const ft=$l(r);M+=ft,J+=this.line(s.toString(),s.toString(),(s+n.width).toString(),s.toString());const Ft=.3;Ae=Ft+ft,n.left+=Ft+ft,n.setTop(s+ft),J+='<path d="',J+=`M ${s} ${s} a${Ft} ${(n.depth+n.height+2*ft)/2}, 0, 1, 1, 0 ${n.depth+n.height+2*ft} "`,J+=` stroke-width="${gu(r)}" stroke="${this.strokeColor}" fill="none"`,J+="/>"}if(A.width=n.width+2*s+Ae,A.height=n.height+s,A.depth=n.depth+s,A.setStyle("box-sizing","border-box"),A.setStyle("left",`calc(-${i} / 2 )`),A.setStyle("height",`${Math.floor(100*M)/100}em`),A.setStyle("top",`calc(${i} / 2 )`),this.backgroundcolor&&A.setStyle("background-color",this.backgroundcolor),this.notation.box&&A.setStyle("border","1px solid red"),this.notation.actuarial&&(A.setStyle("border-top",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(A.setStyle("border-bottom",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(A.setStyle("border-radius","8px"),A.setStyle("border",this.borderStyle)),this.notation.circle&&(A.setStyle("border-radius","50%"),A.setStyle("border",this.borderStyle)),this.notation.top&&A.setStyle("border-top",this.borderStyle),this.notation.left&&A.setStyle("border-left",this.borderStyle),this.notation.right&&A.setStyle("border-right",this.borderStyle),this.notation.bottom&&A.setStyle("border-bottom",this.borderStyle),J){let ft="";this.shadow==="auto"&&(ft+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ft+=`filter: drop-shadow(${this.shadow})`),ft+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ft+=' stroke-linecap="round"',this.svgStrokeStyle&&(ft+=` stroke-dasharray="${this.svgStrokeStyle}"`),A.svgStyle=ft,A.svgOverlay=J}const Qe=new un([A,n]);return Qe.setStyle("position","relative"),Qe.setStyle("vertical-align",s,"em"),Qe.setStyle("height",`${Math.floor(100*(n.height+n.depth+2*s))/100}em`),Qe.setStyle("display","inline-block"),Qe.height=A.height,Qe.depth=A.depth,Qe.width=A.width-2*s,Qe.left=s,Qe.right=s,this.caret&&(Qe.caret=this.caret),Qe.wrap(r)}line(t,r,n,i){return`<line x1="${ud(t)}" y1="${ud(r)}" x2="${ud(n)}" y2="${ud(i)}" vector-effect="non-scaling-stroke"></line>`}};function ud(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function vf(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function gu(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function $l(e){const t=e.isDisplayStyle?qo:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var Nc=class pp extends Zr{constructor(t,r,n){var i,s;super(E(f({},n),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(i=n==null?void 0:n.hasBarLine)!=null?i:!0,this.continuousFraction=(s=n==null?void 0:n.continuousFraction)!=null?s:!1,this.numerPrefix=n==null?void 0:n.numerPrefix,this.denomPrefix=n==null?void 0:n.denomPrefix,this.mathstyleName=n==null?void 0:n.mathstyleName,this.leftDelim=n==null?void 0:n.leftDelim,this.rightDelim=n==null?void 0:n.rightDelim,this.fractionNavigationOrder=n==null?void 0:n.fractionNavigationOrder}static fromJson(t){return new pp(t.above,t.below,t)}toJson(){const t={};return this.continuousFraction&&(t.continuousFraction=!0),this.numerPrefix&&(t.numerPrefix=this.numerPrefix),this.denomPrefix&&(t.denomPrefix=this.denomPrefix),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),this.hasBarLine||(t.hasBarLine=!1),this.mathstyleName&&(t.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(t.fractionNavigationOrder=this.fractionNavigationOrder),f(f({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,n;const i=new ya({parent:t,mathstyle:this.mathstyleName},this.style),s=i.metrics,A=new ya({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),M=this.numerPrefix?new un([new un(this.numerPrefix),Zr.createBox(A,this.above)],{isTight:A.isTight,type:"ignore"}):(r=Zr.createBox(A,this.above,{type:"ignore"}))!=null?r:new un(null,{type:"ignore"}),z=new ya({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),J=this.denomPrefix?new un([new un(this.denomPrefix),Zr.createBox(z,this.below,{type:"ignore"})]):(n=Zr.createBox(z,this.below,{type:"ignore"}))!=null?n:new un(null,{type:"ignore"}),Ae=this.hasBarLine?s.defaultRuleThickness:0;let Qe,ft=0,Ft;i.isDisplayStyle?(Qe=A.metrics.num1,ft=Ae>0?3*Ae:7*Ae,Ft=z.metrics.denom1):(Ae>0?(Qe=A.metrics.num2,ft=Ae):(Qe=A.metrics.num3,ft=3*s.defaultRuleThickness),Ft=z.metrics.denom2);const Ot=[];this.isSelected&&Ot.push("ML__selected");const Er=M.depth,En=J.height;let Cr;if(Ae<=0){const Ui=Qe-Er-(En-Ft);Ui<ft&&(Qe+=(ft-Ui)/2,Ft+=(ft-Ui)/2),Cr=new Eo({individualShift:[{box:M,shift:-Qe,classes:[...Ot,"ML__center"]},{box:J,shift:Ft,classes:[...Ot,"ML__center"]}]}).wrap(i)}else{const Ui=new un(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ui.softWidth=Math.max(M.width,J.width),Ui.height=Ae/2,Ui.depth=Ae/2;const lo=hs+Ae/2;Qe<ft+Er+lo&&(Qe=ft+Er+lo);const Vo=hs-Ae/2;Ft<ft+En-Vo&&(Ft=ft+En-Vo),Cr=new Eo({individualShift:[{box:J,shift:Ft,classes:[...Ot,"ML__center"]},{box:Ui,shift:-Vo,classes:Ot},{box:M,shift:-Qe,classes:[...Ot,"ML__center"]}]}).wrap(i)}const nn=i.isDisplayStyle?s.delim1:s.delim2,Pn=this.leftDelim?this.bind(t,xc("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):rc(i,"open");let pn=null;this.continuousFraction?pn=new un(null,{type:"close"}):this.rightDelim?pn=this.bind(t,xc("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):pn=rc(i,"close");const Ii=new un([Pn,Cr,pn],{isTight:i.isTight,type:"inner",classes:"mfrac"}),$i=this.bind(t,Ii);return this.caret&&($i.caret=this.caret),this.attachSupsub(t,{base:$i})}},Is=class mp extends Zr{constructor(t,r){var n;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(n=r==null?void 0:r.isSuggestion)!=null?n:!1,this.isError=!1}static fromJson(t){const r=new mp(t.value);return t.isSuggestion&&(r.isSuggestion=!0),t.isError&&(r.isError=!0),r}toJson(){const t={};return this.isSuggestion&&(t.isSuggestion=!0),this.isError&&(t.isError=!0),f({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new un(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},Hu=class gp extends Zr{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Is(r)),this.skipBoundary=!1}static fromJson(t){return new gp("")}toJson(){return super.toJson()}render(t){const r=Zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,n;return(n=(r=this.body)==null?void 0:r.map(i=>i.value).join(""))!=null?n:""}},dd=class vp extends Zr{constructor(t,r){super(E(f({},r),{type:"extensible-symbol",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new vp(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.value&&(t.symbol=this.value),t}render(t){var r;const n=t.isDisplayStyle&&this.value!=="\\smallint",i=new un(this.value,{fontFamily:n?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(n?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!i)return null;i.right=i.italic;const s=(i.height-i.depth)/2-hs*t.scalingFactor,A=i.italic;i.setTop(s);let M=i;if(this.superscript||this.subscript){const z=(r=this.subsupPlacement)!=null?r:"auto";M=z==="over-under"||z==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i,baseShift:s,slant:A}):this.attachSupsub(t,{base:i})}return new un(this.bind(t,M),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[];return n.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),wa(n)}},dA=class yp extends Zr{constructor(t){const r=t.body;super(E(f({},t),{type:"overlap",body:typeof r=="string"?[new Zr({value:r})]:r,style:t==null?void 0:t.style})),this.skipBoundary=!0,this.align=t==null?void 0:t.align,this.boxType=t==null?void 0:t.boxType}static fromJson(t){return new yp(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),f(f({},super.toJson()),t)}render(t){const r=Zr.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new un([r,new un(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},vl=class bp extends Zr{constructor(t){var r,n,i,s;super({type:"overunder",command:t.command,style:t.style,mode:t.mode,body:t.body,skipBoundary:(r=t.skipBoundary)!=null?r:!0}),this.subsupPlacement=t.supsubPlacement,this.svgAbove=t.svgAbove,this.svgBelow=t.svgBelow,this.svgBody=t.svgBody,this.above=t.above,this.below=t.below,this.boxType=(n=t.boxType)!=null?n:"ord",this.paddedBody=(i=t.paddedBody)!=null?i:!1,this.paddedLabels=(s=t.paddedLabels)!=null?s:!1}static fromJson(t){return new bp(t)}toJson(){const t=super.toJson();return this.skipBoundary||(t.skipBoundary=!1),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.svgAbove&&(t.svgAbove=this.svgAbove),this.svgBelow&&(t.svgBelow=this.svgBelow),this.svgBody&&(t.svgBody=this.svgBody),this.boxType!=="ord"&&(t.boxType=this.boxType),this.paddedBody&&(t.paddedBody=!0),this.paddedLabels&&(t.paddedLabels=!0),t}render(t){let r=this.svgBody?Vc(this.svgBody):Zr.createBox(t,this.body,{type:"ignore"});const n=new ya({parent:t,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=Vc(this.svgAbove):this.above&&(i=Zr.createBox(n,this.above,{type:"ignore"}));let s=null;this.svgBelow?s=Vc(this.svgBelow):this.below&&(s=Zr.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(r=new un([rc(t,"open"),r,rc(t,"close")],{type:"ignore"}));let A=fd(t,{base:r,above:i,below:s,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return A?(this.subsupPlacement==="over-under"?A=this.attachLimits(t,{base:A,type:A.type}):A=this.attachSupsub(t,{base:A}),this.caret&&(A.caret=this.caret),this.bind(t,A)):null}};function fd(e,t){if(!t.base)return null;if(!t.above&&!t.below){const M=new un(t.base,{type:t.type});return M.setStyle("position","relative"),M}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let n=null;const i=t.base,s=0,A=["ML__center"];if(t.paddedAboveBelow&&A.push("ML__label_padding"),t.below&&t.above){const M=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+i.depth+s;n=new Eo({bottom:M,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]})}else t.below?n=new Eo({top:i.height-s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]}]}):t.above&&(n=new Eo({bottom:i.depth+s,children:[{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]}));return new un(n,{type:t.type})}var ju=class wp extends Zr{constructor(t){var r,n,i,s;super(E(f({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(n=t.smashDepth)!=null?n:!1,this.smashHeight=(i=t.smashHeight)!=null?i:!1,this.smashWidth=(s=t.smashWidth)!=null?s:!1}static fromJson(t){return new wp(t)}toJson(){const t={};return this.isInvisible&&(t.isInvisible=!0),this.smashDepth&&(t.smashDepth=!0),this.smashHeight&&(t.smashHeight=!0),this.smashWidth&&(t.smashWidth=!0),f(f({},super.toJson()),t)}render(t){const r=new ya({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Zr.createBox(r,this.body,{classes:"inner"});const n=Zr.createBox(this.isInvisible?r:t,this.body);if(!n)return null;if(this.smashWidth){const i=new un(null,{classes:"fix"});return new un([n,i],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return n;if(this.smashHeight&&(n.height=0),this.smashDepth&&(n.depth=0),n.children)for(const i of n.children)this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0);return new Eo({firstBaseline:[{box:n}]},{type:n.type}).wrap(t)}},yl=class xp extends Zr{constructor(t){var r;super(f({type:"spacing"},t)),this.width=t==null?void 0:t.width,this._braced=(r=t==null?void 0:t.braced)!=null?r:!1}static fromJson(t){return new xp(t)}toJson(){const t=super.toJson();return this.width!==void 0&&(t.width=this.width),this._braced&&(t.braced=!0),t}render(t){var r;if(this.command==="space")return new un(this.mode==="math"?null:" ");let n;if(this.width!==void 0)n=new un(null,{classes:"mspace"}),n.left=t.toEm(this.width);else{const i=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";n=new un(null,{classes:i})}return n=this.bind(t,n),this.caret&&(n.caret=this.caret),n}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=vt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);const i=(r=this.command)!=null?r:"";return this.width===void 0?i:this._braced&&!("register"in this.width)?`${i}{${cs(this.width)}}`:`${i}${cs(this.width)}`}},Sc=class Cp extends Zr{constructor(t){var r;super(E(f({},t),{type:"surd",mode:(r=t.mode)!=null?r:"math",style:t.style,displayContainsHighlight:!0,body:t.body})),this.above=t.index}static fromJson(t){return new Cp(E(f({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=this.command,i=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?So(`${n}[${this.aboveToLatex(t)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:So(n,i)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const n=new ya({parent:t,mathstyle:"cramp"},this.style),i=(r=Zr.createBox(n,this.body,{type:"inner"}))!=null?r:new un(null),s=n.scalingFactor,A=n.metrics.defaultRuleThickness/s,M=t.isDisplayStyle?qo:A,z=new un(null,{classes:"ML__sqrt-line",style:this.style});z.height=A,z.softWidth=i.width;let J=s*(A+M/4);const Qe=Math.max(s*2*M,i.height+i.depth)+J+A,ft=new ya({parent:t},this.style),Ft=this.bind(ft,new un(xc("inner","\\surd",Qe,!1,ft,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Ft)return null;const Ot=Ft.height+Ft.depth-A;Ot>i.height+i.depth+J&&(J=(J+Ot-(i.height+i.depth))/2),Ft.setTop(Ft.height-i.height-J);const Er=this.bind(t,new Eo({firstBaseline:[{box:new un(i)},J-2*A,{box:z},A]})),En=Zr.createBox(new ya({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!En){const Pn=new un([Ft,Er],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Pn.setStyle("display","inline-block"),Pn.setStyle("height",Pn.height+Pn.depth,"em"),this.caret&&(Pn.caret=this.caret),this.bind(t,Pn)}const Cr=new Eo({shift:-.6*(Math.max(Ft.height,Er.height)-Math.max(Ft.depth,Er.depth)),children:[{box:En}]}),nn=new un([new un(Cr,{classes:"ML__sqrt-index",type:"ignore"}),Ft,Er],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return nn.height=Ft.height,nn.depth=Ft.depth,this.caret&&(nn.caret=this.caret),this.bind(t,nn)}},fA=class extends un{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function zu(e,t){if(!e.parent)return;const r=e.parent.children,n=r.indexOf(e);let i=n-1;for(;i>=0&&r[i].type==="ignore";)i-=1;if(i<0&&e.parent.parent&&e.parent.type==="lift"){zu(e.parent,t);return}n>0&&r[n-1].type==="skip"?r[n-1].width+=t:r.splice(n,0,new fA(t))}var Gd={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},hA={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function Ec(e){Zu(e,(t,r)=>{r.type==="bin"&&(!t||/^(middle|bin|op|rel|open|punct)$/.test(t.type))&&(r.type="ord"),(t==null?void 0:t.type)==="bin"&&/^(rel|close|punct)$/.test(r.type)&&(t.type="ord"),r.type!=="ignore"&&(t=r)})}function $u(e,t){if(!e.children)return e;const r=e.children;Ec(r);const n=t.getRegisterAsEm("thinmuskip"),i=t.getRegisterAsEm("medmuskip"),s=t.getRegisterAsEm("thickmuskip");return Zu(r,(A,M)=>{var z,J,Ae;if(!A)return;const Qe=A.type,ft=M.isTight?(z=hA[Qe])!=null?z:null:(J=Gd[Qe])!=null?J:null,Ft=(Ae=ft==null?void 0:ft[M.type])!=null?Ae:null;Ft===3&&zu(M,n),Ft===4&&zu(M,i),Ft===5&&zu(M,s)}),e}function Zu(e,t,r=void 0){if(!e)return r;e=[...e];for(const n of e)n.type==="lift"?r=Zu(n.children,t,r):n.type==="ignore"?Zu(n.children,t):(t(r,n),Zu(n.children,t),r=n);return r}var hd=class Bp extends Zr{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new Zr({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new Bp(E(f({},t),{tooltip:pA(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(n=>n.type!=="first").map(n=>n.toJson());return E(f({},super.toJson()),{tooltip:r})}render(t){const r=Zr.createBox(new ya,this.body);if(!r)return null;const n=new ya({parent:t,mathstyle:"displaystyle"},{fontSize:jo}),i=Os($u(new un(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),s=new un([i,r],{classes:"ML__tooltip-container"});return this.caret&&(s.caret=this.caret),this.bind(t,s)}},kA=class Sp extends Zr{constructor(t,r){super(E(f({},r),{type:"operator",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.variantStyle=r==null?void 0:r.variantStyle,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new Sp(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.variantStyle&&(t.variantStyle=this.variantStyle),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.value&&(t.symbol=this.value),t}render(t){var r;const n=new un(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let i=n;if(this.superscript||this.subscript){const s=(r=this.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:n}):this.attachSupsub(t,{base:n})}return new un(this.bind(t,i),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=vt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),wa(n)}};function pA(e){if(S(e))return e.map(n=>pA(n));if(typeof e=="string")return Zr.fromJson(e);e=f({},e);for(const n of fl)e[n]&&(e[n]=pA(e[n]));e.args&&(e.args=Xd(e.args)),e.array&&(e.array=pA(e.array));const t=e.type;let r;t==="accent"&&(r=lA.fromJson(e)),t==="array"&&(r=oa.fromJson(e)),t==="box"&&(r=Fs.fromJson(e)),t==="chem"&&(r=Qu.fromJson(e)),t==="composition"&&(r=cd.fromJson(e)),t==="delim"&&(r=Wd.fromJson(e)),t==="enclose"&&(r=Ku.fromJson(e)),t==="error"&&(r=Ga.fromJson(e)),t==="extensible-symbol"&&(r=dd.fromJson(e)),t==="genfrac"&&(r=Nc.fromJson(e)),t==="group"&&(r=so.fromJson(e)),t==="latex"&&(r=Is.fromJson(e)),t==="latexgroup"&&(r=Hu.fromJson(e)),t==="leftright"&&(r=Xa.fromJson(e)),t==="macro"&&(r=IA.fromJson(e)),t==="macro-argument"&&(r=$d.fromJson(e)),t==="operator"&&(r=kA.fromJson(e)),t==="overlap"&&(r=dA.fromJson(e)),t==="overunder"&&(r=vl.fromJson(e)),t==="placeholder"&&(r=zl.fromJson(e)),t==="prompt"&&(r=MA.fromJson(e)),t==="phantom"&&(r=ju.fromJson(e)),t==="sizeddelim"&&(r=_d.fromJson(e)),t==="spacing"&&(r=yl.fromJson(e)),t==="subsup"&&(r=tu.fromJson(e)),t==="surd"&&(r=Sc.fromJson(e)),t==="text"&&(r=Lc.fromJson(e)),t==="tooltip"&&(r=hd.fromJson(e)),r||(console.assert(!t||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(t),`MathLive 0.98.5: an unexpected atom type "${t}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),r=Zr.fromJson(e));for(const n of fl)e[n]&&r.setChildren(e[n],n);return e.verbatimLatex!==void 0&&(r.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(r.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(r.explicitSubsupPlacement=!0),e.isFunction&&(r.isFunction=!0),e.isExtensibleSymbol&&(r.isExtensibleSymbol=!0),e.skipBoundary&&(r.skipBoundary=!0),e.captureSelection&&(r.captureSelection=!0),r}function Xd(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>pA(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>pA(r)):t)}var Jd={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},vu={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},Vu=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Wu=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Fd=[/^[a-z]$/,/^[A-Z]$/,Vu,Wu],Yd={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},yf=class extends js{constructor(){super("math")}createAtom(e,t,r){var n,i,s,A;if(t===null)return new Zr({type:"mord",mode:"math",command:e,value:e,style:r});const M=window.MathfieldElement.isFunction((n=t.command)!=null?n:e);if(t.definitionType==="symbol"){const J=new Zr({type:(i=t.type)!=null?i:"mord",mode:"math",command:(s=t.command)!=null?s:e,value:String.fromCodePoint(t.codepoint),style:r});return M&&(J.isFunction=!0),e.startsWith("\\")&&(J.verbatimLatex=e),J}const z=new Zr({type:"mord",mode:"math",command:(A=t.command)!=null?A:e,value:e,style:r});return M&&(z.isFunction=!0),e.startsWith("\\")&&(z.verbatimLatex=e),z}serialize(e,t){const r=m(e,E(f({},t),{defaultMode:"math"}));return r.length===0||t.defaultMode!=="text"?r:["$ ",...r," $"]}getFont(e,t){console.assert(t.variant!==void 0);let{variant:r}=t,{variantStyle:n}=t;r==="normal"&&!n&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",n="italic"),r==="normal"&&!n&&e.value.length===1&&Fd.forEach((M,z)=>{var J;M.test(e.value)&&Yd[(J=t.letterShapeStyle)!=null?J:"tex"][z]==="it"&&(n="italic")}),n==="up"&&(n=void 0);const i=n?r+"-"+n:r;console.assert(Jd[i]!==void 0);const[s,A]=Jd[i];return vu[r]&&!vu[r].test(e.value)?(e.value=at(e.value,r,n),null):(Vu.test(e.value)&&(e.classes+=" lcGreek"),A&&(e.classes+=" "+A),s)}};function m(e,t){const{parent:r}=e[0],n=d(r);return Jl(e,"variant").map(i=>{const s=d(i[0]);let A="";s&&s!==n&&(A={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[s],console.assert(A!==void 0));const M=wa(i.map(z=>z._serialize(t)));return A?So(A,M):M})}function d(e){if(!e)return"";const{style:t}=e;if(t.variant===void 0)return"";let r=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&t.variantStyle!=="up"&&(r+="-"+t.variantStyle),r}new yf;function y(e,t){return e.map(r=>r._serialize(t))}function g(e,t){return Jl(e,"fontShape").map(r=>{const n=y(r,t),{fontShape:i}=r[0].style;let s="";return i==="it"&&(s="\\textit"),i==="sl"&&(s="\\textsl"),i==="sc"&&(s="\\textsc"),i==="n"&&(s="\\textup"),!s&&i?`{${So("\\fontshape",i)}${wa(n)}}`:s?So(s,wa(n)):wa(n)})}function re(e,t){return Jl(e,"fontSeries").map(r=>{const n=g(r,t),{fontSeries:i}=r[0].style;let s="";return i==="b"&&(s="\\textbf"),i==="l"&&(s="\\textlf"),i==="m"&&(s="\\textmd"),i&&!s?`{${So("\\fontseries",i)}${wa(n)}}`:s?So(s,wa(n)):wa(n)})}function Fe(e,t){return Jl(e,"fontSize").map(r=>{var n,i;const s=re(r,t),A=(i=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(n=r[0].style.fontSize)!=null?n:""])!=null?i:"";return A?`${A} ${wa(s)}`:wa(s)})}function tt(e,t,r){return Jl(e,"fontFamily").map(n=>{var i,s;const A=Fe(n,t),M=(s={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(i=n[0].style.fontFamily)!=null?i:""])!=null?s:"";return M?`\\${M}{${wa(A)}}`:n[0].style.fontFamily?`{\\fontfamily{${n[0].style.fontFamily}} ${wa(A)}}`:r?`\\text{${wa(A)}}`:wa(A)})}var Ct={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},xt=class extends js{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new Lc(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return tt(e,E(f({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,n,i,s,A;const{fontFamily:M}=t;if(Ct[M]?e.classes+=" "+Ct[M]:M&&e.setStyle("font-family",M),t.fontShape&&(e.classes+=" ",e.classes+=(r={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])!=null?r:""),t.fontSeries){const z=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);z&&(e.classes+=" ",e.classes+=(i={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(n=z[1])!=null?n:""])!=null?i:"",e.classes+=" ",e.classes+=(A={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(s=z[2])!=null?s:""])!=null?A:"")}return"Main-Regular"}};new xt;var ir=class extends js{constructor(){super("latex")}createAtom(e){return new Is(e)}serialize(e,t){return e.filter(r=>r instanceof Is&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new ir;var mr={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},Br={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},o={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},b={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},D={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},oe={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Oe={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Ke={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},ze={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},et={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},it={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},gt={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Mt={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function ur(e){const t=e.split("+"),r={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(r.shift=!0),t.includes("alt")&&(r.alt=!0),t.includes("ctrl")&&(r.ctrl=!0),t.includes("cmd")&&(r.cmd=!0),t.includes("win")&&(r.win=!0),t.includes("meta")&&(r.meta=!0),r}function lr(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var Vt={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},Gr=[],Or;function Yt(){switch(Y()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function $t(e){(!e.platform||e.platform===Yt())&&Gr.push(e)}function Yr(e,t){var r;const n={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return n;for(const[i,s]of Object.entries(t.mapping)){if(s[0]===e)return n.key=`[${i}]`,n;if(s[1]===e)return n.shift=!0,n.key=`[${i}]`,n;if(s[2]===e)return n.alt=!0,n.key=`[${i}]`,n;if(s[3]===e)return n.shift=!0,n.alt=!0,n.key=`[${i}]`,n}return n.key=(r=Vt[e])!=null?r:"",n}function bn(e){if(e.code)return e;const t=Object.entries(Jn().mapping);let r=!1,n=!1,i="";for(let s=0;s<4;s++){for(const[A,M]of t)if(M[s]===e.key){i=A,s===3?(r=!0,n=!0):s===2?r=!0:s===1&&(n=!0);break}if(i)break}return new KeyboardEvent(e.type,E(f({},e),{altKey:r,shiftKey:n,code:i}))}function tn(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const n=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const i of Gr)((t=i.mapping[e.code])==null?void 0:t[n])===e.key?i.score+=1:(r=i.mapping[e.code])!=null&&r[n]&&(i.score=0);Gr.sort((i,s)=>s.score-i.score)}function fi(e){Or=Gr.find(t=>e.startsWith(t.locale))}function Jn(){return Or!=null?Or:Gr[0]}function Gi(){switch(Yt()){case"apple":return Br;case"windows":return o;case"linux":return b}return Br}switch(Yt()){case"apple":$t(Br),$t(D),$t(it),$t(Ke);break;case"windows":$t(o),$t(oe),$t(gt),$t(ze);break;case"linux":$t(b),$t(Oe),$t(Mt),$t(et);break}$t(mr);function ai(e){var t;const r=/macos|ios/.test(Y()),n=e.split("+");let i="";for(const s of n)i&&(i+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),s.startsWith("[Key")?i+=s.slice(4,5):s.startsWith("Key")?i+=s.slice(3,4):s.startsWith("[Digit")?i+=s.slice(6,7):s.startsWith("Digit")?i+=s.slice(5,6):i+=(t={cmd:"\u2318",meta:r?"\u2318":"Ctrl",shift:r?"\u21E7":"Shift",alt:r?"\u2325":"Alt",ctrl:r?"\u2303":"Ctrl","\n":r?"\u23CE":"Return","[return]":r?"\u23CE":"Return","[enter]":r?"\u2324":"Enter","[tab]":r?"\u21E5":"Tab","[escape]":"Esc","[backspace]":r?"\u232B":"Backspace","[delete]":r?"\u2326":"Del","[pageup]":r?"\u21DE":"Page Up","[pagedown]":r?"\u21DF":"Page Down","[home]":r?"\u2912":"Home","[end]":r?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[s.toLowerCase()])!=null?t:s.toUpperCase();return i}function Ha(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce((n,i)=>({x:n.x+i.clientX,y:n.y+i.clientY}),{x:0,y:0}),r=e.touches.length;return{x:t.x/r,y:t.y/r}}}function Ua(e){const t={alt:!1,control:!1,shift:!1,meta:!1};return(e instanceof MouseEvent||e instanceof PointerEvent||e instanceof TouchEvent||e instanceof KeyboardEvent)&&(e.altKey&&(t.alt=!0),e.ctrlKey&&(t.control=!0),e.metaKey&&(t.meta=!0),e.shiftKey&&(t.shift=!0)),t}function Ra(e,t){return!e&&t||e&&!t?!1:!e||!t?!0:e.alt===t.alt&&e.control===t.control&&e.shift===t.shift&&e.meta===t.meta}var Na=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function no(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:Na.has(e.code)}function po(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var ea=class id{static get scrim(){return id._scrim||(id._scrim=new id),id._scrim}static open(t){id.scrim.open(t)}static close(){id.scrim.close()}static get state(){return id.scrim.state}static get element(){return id.scrim.element}constructor(t){var r,n;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(n=t==null?void 0:t.translucent)!=null?n:!1,this.state="closed"}get element(){if(this._element)return this._element;const t=document.createElement("div");return t.setAttribute("role","presentation"),t.style.position="fixed",t.style.contain="content",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="var(--scrim-zindex, 10099)",t.style.outline="none",this.translucent?(t.style.background="rgba(255, 255, 255, .2)",t.style.backdropFilter="contrast(40%)"):t.style.background="transparent",this._element=t,t}open(t){var r;if(this.state!=="closed")return;this.state="opening",this.onDismiss=t==null?void 0:t.onDismiss,this.savedActiveElement=po();const{element:n}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(n),n.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const i=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const s=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${s+i}px`,t!=null&&t.child&&n.append(t.child),this.state="open"}close(){var t,r,n,i;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:s}=this;s.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),s.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",po()!==this.savedActiveElement&&((i=(n=this.savedActiveElement)==null?void 0:n.focus)==null||i.call(n)),s.innerHTML="",this.state="closed"}handleEvent(t){this.lightDismiss&&(t.target===this._element&&t.type==="click"?(this.close(),t.preventDefault(),t.stopPropagation()):t.target===document&&(t.type==="touchmove"||t.type==="scroll")&&(this.close(),t.preventDefault(),t.stopPropagation()))}};function ol(e,t,r){let n=null,i=null,s=!1,A=!1,M=!1;const z=new AbortController,J=z.signal;return e.addEventListener("keydown",Ae=>{if(s||Ae.key==="Process"||Ae.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ae.code)){n=null;return}n=Ae,i=null,r.onKeystroke(Ae)?e.textContent="":n=null},{capture:!0,signal:J}),e.addEventListener("keypress",Ae=>{s||(n&&i&&r.onKeystroke(n),i=Ae)},{capture:!0,signal:J}),e.addEventListener("compositionstart",Ae=>{e.textContent="",s=!0,r.onCompositionStart(Ae.data)},{capture:!0,signal:J}),e.addEventListener("compositionupdate",Ae=>{s&&r.onCompositionUpdate(Ae.data)},{capture:!0,signal:J}),e.addEventListener("compositionend",Ae=>{e.textContent="",s&&(s=!1,r.onCompositionEnd(Ae.data))},{capture:!0,signal:J}),e.addEventListener("beforeinput",Ae=>Ae.stopImmediatePropagation(),{signal:J}),e.addEventListener("input",Ae=>{var Qe;if(!s&&(e.textContent="",Ae.inputType!=="insertCompositionText")){if(Ae.inputType==="insertFromPaste"){Ae.preventDefault(),Ae.stopPropagation();return}r.onInput((Qe=Ae.data)!=null?Qe:""),Ae.preventDefault(),Ae.stopPropagation()}},{signal:J}),e.addEventListener("paste",Ae=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(Ae)||Ae.preventDefault(),Ae.stopImmediatePropagation()},{signal:J}),e.addEventListener("cut",Ae=>r.onCut(Ae),{capture:!0,signal:J}),e.addEventListener("copy",Ae=>r.onCopy(Ae),{capture:!0,signal:J}),e.addEventListener("blur",Ae=>{var Qe,ft;if(((ft=(Qe=Ae.relatedTarget)==null?void 0:Qe._mathfield)==null?void 0:ft.element)===t){e.focus({preventScroll:!0}),Ae.preventDefault(),Ae.stopPropagation();return}const Ft=ea.state;if(Ft==="open"||Ft==="opening"){Ae.preventDefault(),Ae.stopPropagation();return}if(Ae.relatedTarget===Ae.target.getRootNode().host){Ae.preventDefault(),Ae.stopPropagation();return}M||A||(M=!0,n=null,i=null,r.onBlur(),M=!1)},{capture:!0,signal:J}),e.addEventListener("focus",Ae=>{M||A||(A=!0,r.onFocus(),A=!1)},{capture:!0,signal:J}),{dispose:()=>z.abort(),cancelComposition:()=>{s&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!A&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>po()===e,setAriaLabel:Ae=>e.setAttribute("aria-label",Ae),setValue:Ae=>{var Qe;e.textContent=Ae,e.style.left="-1000px",(Qe=window.getSelection())==null||Qe.selectAllChildren(e)},moveTo:(Ae,Qe)=>{e.style.top=`${Qe}px`,e.style.left=`${Ae}px`}}}function bl(e){var t;if(!e||!no(e))return"";let r;return e.key==="Unidentified"&&e.target&&(r=e.target.value),r=(t=r!=null?r:e.key)!=null?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(r)&&(r=""),r}function qs(e){e=bn(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.length===0?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function _c(e){if(N()){const t=Y(),r=e.startsWith("!"),n=e.endsWith(t);if(r&&!n||!r&&n)return!0}return e==="!other"?!1:e==="other"}function es(e,t,r){if(e.length===0)return"";const n=lr(ur(qs(r))),i=lr({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(Y()),cmd:!1,win:!1});for(let s=e.length-1;s>=0;s--)if((e[s].key===n||e[s].key===i)&&(!e[s].ifMode||e[s].ifMode===t))return e[s].command;return""}function Fc(e){let t=e;return S(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function Oc(e,t){let r=[];if(typeof t=="string"){const s=xs[t];S(s)?r=s.slice():s&&r.push(s)}const n=Fc(t),i=new RegExp("^"+n.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const s of e)i.test(Fc(s.command))&&r.push(s.key);return r.map(ai)}function Fl(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(e.ifLayout!==void 0&&(t.score===0||!e.ifLayout.includes(t.id)))return;const r=ur(e.key);let n=e.ifPlatform;if(r.cmd){if(n&&n!=="macos"&&n!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+n+`"
"cmd" modifier can only be used with macOS or iOS platform.`);n||(n=Y()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(n&&n!=="windows")throw new Error('Unexpected "win" modifier with platform "'+n+`"
"win" modifier can only be used with Windows platform.`);n="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(n&&!_c(n))return;if(/^\[.+\]$/.test(r.key))return E(f({},e),{key:lr(r)});const i=Yr(r.key,t);if(!i)return E(f({},e),{key:lr(r)});if(i.shift&&r.shift||i.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${wl(e.command)}) is conflicting with the key combination ${lr(i)} using the ${t.displayName} keyboard layout`);return i.shift=i.shift||r.shift,i.alt=i.alt||r.alt,i.meta=r.meta,i.ctrl=r.ctrl,E(f({},e),{key:lr(i)})}function wl(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function dc(e,t){const r=[],n=[];for(const i of e)try{const s=Fl(i,t);if(!s)continue;const A=n.find(M=>M.key===s.key&&M.ifMode===s.ifMode);if(A)throw new Error(`Ambiguous key binding ${i.key} (${wl(i.command)}) matches ${A.key} (${wl(A.command)}) with the ${t.displayName} keyboard layout`);n.push(s)}catch(s){s instanceof Error&&r.push(s.message)}return[n,r]}var eA=class extends zi{constructor(){super("latex")}createAtom(e){return new Is(e)}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("application/x-latex")||t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),Es(e)),e.startRecording(),!0):!1}insert(e,t,r){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r||(r={}),r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder");const{silenceNotifications:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(ws(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const s=[];for(const z of t)L.test(z)&&s.push(new Is(z));let A=e.at(e.position);if(A instanceof Hu&&(A=A.lastChild),!(A.parent instanceof Hu)){const z=new Hu("");A.parent.addChildAfter(z,A),A=z.firstChild}const M=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(M)):M&&(e.position=e.offsetOf(M))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function DA(e){return e.atoms.find(t=>t.type==="latexgroup")}function zs(e){var t,r;const n=e.atoms.find(i=>i.type==="latexgroup");return n?(r=(t=n.body)==null?void 0:t.filter(i=>i.type==="latex"))!=null?r:[]:[]}function PA(e,t){var r;let n=0,i=!1;const s=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;n<=s&&!i;){const z=e.at(n);i=z instanceof Is&&z.isSuggestion,i||n++}if(!i)return[void 0,void 0];let A=n,M=!1;for(;A<=s&&!M;){const z=e.at(A);M=!(z instanceof Is&&z.isSuggestion),M||A++}return[n-1,A-1]}new eA;function NA(e){const t=zs(e.model).filter(r=>r.isSuggestion);if(t.length!==0){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const r of t)r.parent.removeChild(r)}}function OA(e,t){var r;const{model:n}=e;NA(e);for(const Ae of zs(n))Ae.isError=!1;if(!n.selectionIsCollapsed||e.options.popoverPolicy==="off"){nc(e);return}const i=[];let s=n.at(n.position);for(;s&&s instanceof Is&&/^[a-zA-Z\*]$/.test(s.value);)s=s.leftSibling;if(s&&s instanceof Is&&s.value==="\\")for(i.push(s),s=s.rightSibling;s&&s instanceof Is&&/^[a-zA-Z\*]$/.test(s.value);)i.push(s),s=s.rightSibling;const A=i.map(Ae=>Ae.value).join(""),M=ae(e,A);if(M.length===0){if(/^\\[a-zA-Z\*]+$/.test(A))for(const Ae of i)Ae.isError=!0;nc(e);return}const z=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=z<0?M.length-1:z%M.length;const J=M[e.suggestionIndex];if(J!==A){const Ae=i[i.length-1];Ae.parent.addChildrenAfter([...J.slice(A.length-J.length)].map(Qe=>new Is(Qe,{isSuggestion:!0})),Ae),bu(e,{interactive:!0})}ef(e,M)}function ru(e){const[t,r]=PA(e,{before:e.position});if(t===void 0||r===void 0)return!1;let n=!1;return e.getAtoms([t,r]).forEach(i=>{i.isSuggestion&&(i.isSuggestion=!1,n=!0)}),n}function As(e,t="accept",r){var n,i;nc(e);const s=DA(e.model);if(!s)return!1;if(t==="accept-suggestion"||t==="accept-all"){const J=zs(e.model).filter(Ae=>Ae.isSuggestion);if(J.length!==0){for(const Ae of J)Ae.isSuggestion=!1;e.model.position=e.model.offsetOf(J[J.length-1])}if(t==="accept-suggestion")return J.length!==0}const M=zs(e.model).filter(J=>!J.isSuggestion).map(J=>J.value).join(""),z=s.leftSibling;return s.parent.removeChild(s),e.model.position=e.model.offsetOf(z),e.switchMode((n=r==null?void 0:r.mode)!=null?n:"math"),t==="reject"||(zi.insert(e.model,M,{selectionMode:(i=r==null?void 0:r.selectItem)!=null&&i?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function pd(e){var t;let r=document.getElementById(e);return r?r.dataset.refcount=Number(Number.parseInt((t=r.dataset.refcount)!=null?t:"0")+1).toString():(r=document.createElement("div"),r.setAttribute("aria-hidden","true"),r.dataset.refcount="1",r.id=e,document.body.append(r)),r}function qd(e){var t;const r=document.getElementById(e);if(!r)return;const n=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");n<=1?r.remove():r.dataset.refcount=Number(n-1).toString()}function Rf(e,t){const r=new ya({from:e.context}),n=new Zr({mode:"math",type:"root",body:al(t,{context:r})}),i=Os($u(new un(n.render(r),{classes:"ML__base"}),r));return BA(i,{classes:"ML__latex"}).toMarkup()}function ef(e,t){var r;if(t.length===0){nc(e);return}let n="";for(const[s,A]of t.entries()){const M=A,z=Rf(e,A),J=Oc(e.keybindings,M).join("<br>");n+=`<li role="button" data-command="${M}" ${s===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${M}</span><span class="ML__popover__command">${z}</span>`,J&&(n+=`<span class="ML__popover__keybinding">${J}</span>`),n+="</li>"}const i=md(e,`<ul>${n}</ul>`);Gu()&&((r=i.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var s;i&&!Gu()&&(i.classList.add("is-visible"),Xu(e),(s=i.querySelector(".ML__popover__current"))==null||s.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function Gu(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Xu(e,t){var r;if(!e.element||e.element.mathfield!==e||!Gu())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){nc(e);return}if(t!=null&&t.deferred){setTimeout(()=>Xu(e),32);return}const n=Cs(e.field);if(!n)return;const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=window.innerWidth-document.documentElement.clientWidth,M=window.innerHeight-document.documentElement.clientHeight,z=window.mathVirtualKeyboard.boundingRect.height,J=document.getElementById("mathlive-suggestion-popover");n.x+J.offsetWidth/2>s-A?J.style.left=`${s-J.offsetWidth-A}px`:n.x-J.offsetWidth/2<0?J.style.left="0":J.style.left=`${n.x-J.offsetWidth/2}px`;const Ae=n.y-n.height;i-M-z-n.y<Ae?(J.classList.add("ML__popover--reverse-direction"),J.classList.remove("top-tip"),J.classList.add("bottom-tip"),J.style.top=`${n.y-n.height-J.offsetHeight-15}px`):(J.classList.remove("ML__popover--reverse-direction"),J.classList.add("top-tip"),J.classList.remove("bottom-tip"),J.style.top=`${n.y+15}px`)}function nc(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function md(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=pd("mathlive-suggestion-popover"),Kl("suggestion-popover"),Kl("core"),r.addEventListener("pointerdown",n=>n.preventDefault()),r.addEventListener("click",n=>{let i=n.target;for(;i&&!i.dataset.command;)i=i.parentElement;i&&(As(e,"reject"),zi.insert(e.model,i.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function gd(){document.getElementById("mathlive-suggestion-popover")&&(qd("mathlive-suggestion-popover"),bc("suggestion-popover"),bc("core"))}function Qf(){const e=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(e.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let t=e[1],r=t.match(/http.*\.ts[\?:]/);return r&&(t=e[2]),r=t.match(/(https?:.*):[0-9]+:[0-9]+/),r||(r=t.match(/at (.*(\.ts))[\?:]/),r||(r=t.match(/at (.*(\.mjs|\.js))[\?:]/))),r?r[1]:(console.error(e),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${t}").`),"")}var Ju=null,bf,Id,Md=((Id=(bf=globalThis==null?void 0:globalThis.document)==null?void 0:bf.currentScript)==null?void 0:Id.src)||Qf();function Ld(e){return Bd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(Ju===null)try{const t=yield fetch(Md,{method:"HEAD"});t.status===200&&(Ju=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${Md}")`)}return new URL(e,Ju!=null?Ju:Md).href})}function kd(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var Tc="not-loaded";function m0(){return Bd(this,null,function*(){return Tc="not-loaded",vd()})}function vd(){return Bd(this,null,function*(){var e;if(Tc!=="not-loaded")return;if(Tc="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){Tc="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const r=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],n=Array.from(document.fonts).map(A=>A.family);if(r.every(A=>n.includes(A))){Tc="ready";return}if(!window.MathfieldElement.fontsDirectory){Tc="not-loaded";return}const i=yield Ld(window.MathfieldElement.fontsDirectory);if(!i){document.body.classList.add("ML__fonts-did-not-load"),Tc="error";return}const s=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(A=>kd(A[0].replace(/-[a-zA-Z]+$/,""),`${i}/${A[0]}`,A[1]));try{(yield Promise.all(s.map(M=>{try{return M.load()}catch(z){}}))).forEach(M=>document.fonts.add(M)),Tc="ready";return}catch(A){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${i}"`,{cause:A}),document.body.classList.add("ML__fonts-did-not-load")}Tc="error"}})}function yu(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r),t=t|0;return Math.abs(t)}function Es(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{zo(e)&&e.dirty&&(e.atomBoundsCache=new Map,bu(e,t),e.atomBoundsCache=void 0)})))}function g0(e,t){var r;t=t!=null?t:{};const n=new ya({from:E(f({},e.context),{atomIdsSettings:{seed:t.forHighlighting?yu(Zr.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:(r=t.forHighlighting)!=null?r:!1},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:e.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),i=e.model.root.render(n);return BA($u(i,n),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Kf(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const i of r.atoms)i.caret=void 0,i.isSelected=!1,i.containsCaret=!1;if(r.selectionIsCollapsed){const i=r.at(r.position);i.caret=e.model.mode;let s=i.parent;for(;s;)s.containsCaret=!0,s=s.parent}else{const i=r.getAtoms(r.selection,{includeChildren:!0});for(const s of i)s.isSelected=!0}return g0(e,t).toMarkup()}function bu(e,t){if(!zo(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const n=e.field;if(!n)return;const i=e.isSelectionEditable&&e.hasFocus(),s=n.classList.contains("ML__focused");s&&!i?n.classList.remove("ML__focused"):!s&&i&&n.classList.add("ML__focused");let A=Kf(e,t);const M=e.element.querySelector("[part=menu-toggle]");if(M&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?M.style.display="none":M.style.display=""),e.model.atoms.length<=1){const z=e.options.contentPlaceholder;z&&(A+=`<span part=placeholder class="ML__content-placeholder">${Il(z)}</span>`)}n.innerHTML=window.MathfieldElement.createHTML(A),Yu(e,t.interactive),e.dirty=!1}function Yu(e,t){const r=e.field;if(!r)return;for(const M of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))M.remove();!(t!=null&&t)&&Tc!=="error"&&Tc!=="ready"&&setTimeout(()=>{Tc==="ready"?Yu(e):setTimeout(()=>Yu(e),128)},32);const n=e.model,i=r.offsetWidth,s=r.getBoundingClientRect().width;let A=Math.floor(s)/i;if(A=isNaN(A)?1:A,n.selectionIsCollapsed){Xu(e,{deferred:!0});let M=n.at(n.position);for(;M&&M.type!=="prompt"&&!(M.containsCaret&&M.displayContainsHighlight);)M=M.parent;if(M!=null&&M.containsCaret&&M.displayContainsHighlight){const z=pl(e,oA(e,M),A);if(z){z.left/=A,z.right/=A,z.top/=A,z.bottom/=A;const J=document.createElement("div");J.classList.add("ML__contains-highlight"),J.style.position="absolute",J.style.left=`${z.left+1}px`,J.style.top=`${Math.ceil(z.top)}px`,J.style.width=`${Math.ceil(z.right-z.left)}px`,J.style.height=`${Math.ceil(z.bottom-z.top)}px`,r.insertBefore(J,r.childNodes[0])}}return}for(const M of Hf(fu(e,{excludeAtomsWithBackground:!0}))){M.left/=A,M.right/=A,M.top/=A,M.bottom/=A;const z=document.createElement("div");z.classList.add("ML__selection"),z.style.position="absolute",z.style.left=`${M.left}px`,z.style.top=`${M.top}px`,z.style.width=`${Math.ceil(M.right-M.left)}px`,z.style.height=`${Math.ceil(M.bottom-M.top-1)}px`,r.insertBefore(z,r.childNodes[0])}}function Hf(e){let t=[];for(const r of e){let n=!1;for(const i of t)if(r.left===i.left&&r.right===i.right&&r.top===i.top&&r.bottom===i.bottom){n=!0;break}n||t.push(r)}e=t,t=[];for(const r of e){let n=0;for(const i of e)if(r.left>=i.left&&r.right<=i.right&&r.top>=i.top&&r.bottom<=i.bottom&&(n+=1,n>1))break;n===1&&t.push(r)}return t}var wf=3,Uc;function ic(e,t){t=f({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),Uc||(Uc={});for(const r of Object.keys(e))console.assert(!Uc[r],"Selector already defined: ",r),Uc[r]=E(f({},t),{fn:e[r]})}function qu(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return qu(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),Uc[t]}function ed(e){var t;return(t=qu(e))==null?void 0:t.target}function v0(e,t){var r;if(!t)return!1;let n,i=[],s=!1,A=!1;S(t)?(n=t[0],i=t.slice(1)):n=t,n=n.replace(/-\w/g,J=>J[1].toUpperCase());const M=Uc[n],z=M==null?void 0:M.target;if(z==="model"){if(!e.isSelectionEditable&&(M!=null&&M.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(n)&&(n!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(n)),/^complete/.test(n)||NA(e),Uc[n].fn(e.model,...i),OA(e),A=!0,s=!0}else if(z==="virtual-keyboard")A=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,s=!0;else if(Uc[n]){if(!e.isSelectionEditable&&(M!=null&&M.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(n)&&e.flushInlineShortcutBuffer(),A=Uc[n].fn(e,...i),s=!0}else throw new Error(`Unknown command "${n}"`);return z!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||M!=null&&M.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),M!=null&&M.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),A&&Es(e),s}function tf(e,t){var r;if(!e)return!1;e.focus(),jh.keypressVibration&&I()&&navigator.vibrate(wf);const n=qu(t);window.MathfieldElement.playSound((r=n==null?void 0:n.audioFeedback)!=null?r:"keypress");const i=e.executeCommand(t);return e.scrollIntoView(),i}ic({performWithFeedback:(e,t)=>tf(e,t)});function jf(e){return OA(e,{atIndex:e.suggestionIndex+1}),!1}function xf(e){return OA(e,{atIndex:e.suggestionIndex-1}),!1}ic({complete:As},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),ic({nextSuggestion:jf,previousSuggestion:xf},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var mA="mathlive#virtual-keyboard-message";function rf(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===mA}var zf=class Ep{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new Ep),this._singleton}set alphabeticLayout(t){this.sendMessage("update-setting",{alphabeticLayout:t})}set layouts(t){this.sendMessage("update-setting",{layouts:t})}get normalizedLayouts(){return[]}set editToolbar(t){this.sendMessage("update-setting",{editToolbar:t})}set actionKeycap(t){this.sendMessage("update-setting",{actionKeycap:t})}set shiftKeycap(t){this.sendMessage("update-setting",{shiftKeycap:t})}set backspaceKeycap(t){this.sendMessage("update-setting",{backspaceKeycap:t})}set tabKeycap(t){this.sendMessage("update-setting",{tabKeycap:t})}set container(t){throw new Error("Container inside an iframe cannot be changed")}show(t){this.sendMessage("show",t)}hide(t){this.sendMessage("hide",t)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(t){t?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(t){return this.sendMessage("execute-command",{command:t}),!0}updateToolbar(t){this.sendMessage("update-toolbar",t)}update(t){this.sendMessage("update-setting",t)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(t,r,n){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,n){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(rf(t)){if(!sA(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");this.handleMessage(t.data)}}handleMessage(t){const{action:r}=t;if(r==="execute-command"){const{command:n}=t;ed(n)==="virtual-keyboard"&&this.executeCommand(n);return}if(r==="synchronize-proxy"){this._boundingRect=t.boundingRect,this._isShifted=t.isShifted;return}if(r==="geometry-changed"){this._boundingRect=t.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(t,r={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(f({type:mA,action:t},r),this.targetOrigin)}},$f={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Dd={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},TA;function Zf(e,t){var r,n,i;const s=bd.singleton;if(!s)return;const A=af(e),M=(n=(r=s.getKeycap(A==null?void 0:A.id))==null?void 0:r.variants)!=null?n:"";if(typeof M=="string"&&!Cf(M)||Array.isArray(M)&&M.length===0){t==null||t();return}const z={};let J="";for(const Er of b0(M)){const En=q0(Er),Cr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);z[Cr]=En;const[nn,Pn]=Wf(En);J+=`<div id=${Cr} class="item ${Pn}">${nn}</div>`}const Ae=document.createElement("div");Ae.setAttribute("aria-hidden","true"),Ae.className="MLK__variant-panel",Ae.style.height="auto";const Qe=Object.keys(z).length;let ft=5;Qe===1?ft=1:Qe===2||Qe===4?ft=2:Qe===3||Qe===5||Qe===6?ft=3:Qe>=7&&Qe<14&&(ft=4),Ae.style.width=`calc(var(--variant-keycap-length) * ${ft} + 12px)`,Ae.innerHTML=jh.createHTML(J),ea.open({root:(i=s==null?void 0:s.container)==null?void 0:i.querySelector(".ML__keyboard"),child:Ae}),TA=new AbortController;const{signal:Ft}=TA,Ot=e==null?void 0:e.getBoundingClientRect();if(Ot){Ot.top-Ae.clientHeight<0&&(Ae.style.width="auto",Qe<=6?Ae.style.height="56px":Qe<=12?Ae.style.height="108px":Qe<=18?Ae.style.height="205px":Ae.classList.add("compact"));const Er=Math.max(0,Math.min(window.innerWidth-Ae.offsetWidth,(Ot.left+Ot.right-Ae.offsetWidth)/2)),En=Ot.top-Ae.clientHeight+5;Ae.style.transform=`translate(${Er}px, ${En}px)`,Ae.classList.add("is-visible"),requestAnimationFrame(()=>{Ae.addEventListener("pointerup",Cr=>{const nn=af(Cr.target);!(nn!=null&&nn.id)||!z[nn.id]||(x0(z[nn.id]),yd(),t==null||t(),Cr.preventDefault())},{capture:!0,passive:!1,signal:Ft}),Ae.addEventListener("pointerenter",Cr=>{const nn=af(Cr.target);!(nn!=null&&nn.id)||!z[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:Ft}),Ae.addEventListener("pointerleave",Cr=>{const nn=af(Cr.target);!(nn!=null&&nn.id)||!z[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:Ft}),window.addEventListener("pointercancel",()=>{yd(),t==null||t()},{signal:Ft}),window.addEventListener("pointerup",()=>{yd(),t==null||t()},{signal:Ft})})}}function yd(){TA==null||TA.abort(),TA=null,ea.state==="open"&&ea.close()}function y0(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(he))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+he[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(le))t.push({class:"swatch-button",label:'<span style="background:'+le[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function Cf(e){return Dd[e]!==void 0}function b0(e){var t;return typeof e!="string"?e:(Dd[e]||(Dd[e]=(t=y0(e))!=null?t:[]),Dd[e])}function Pd(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function Bf(e){return Object.keys(e).map(t=>`${t} {${Pd(e[t])}}`).join("")}function wu(e){if(!e)return"";const t=new ya,r=new Zr({mode:"math",type:"root",body:al(e,{context:t,args:i=>i==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),n=Os($u(new un(r.render(t),{classes:"ML__base"}),t));return BA(n,{classes:"ML__latex"}).toMarkup()}function Rc(e){var t;if(Array.isArray(e))return e.map(n=>Rc(n)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(n=>n.map(i=>q0(i)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function xu(){var e,t;let n=window.mathVirtualKeyboard.alphabeticLayout;if(n==="auto"){const M=Jn();M&&(n=M.virtualLayout),(!n||n==="auto")&&(n=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[te.locale.slice(0,2)])!=null?e:"qwerty")}const i={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},s=(t=i[n])!=null?t:i.qwerty,A=n==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const M of s){const z=[];for(const J of M)/[a-z]/.test(J)?z.push({label:J,class:"hide-shift",shift:{label:J.toUpperCase()},variants:Cf(J)?J:void 0}):J==="~"?n!=="dvorak"?z.push("[backspace]"):z.push({label:"[backspace]",width:1}):J==="^"?z.push("[shift]"):J===" "&&z.push("[separator-5]");A.push(z)}return A.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:Rc({rows:A})}}function nu(e){if(e==="alphabetic")return xu();if(typeof e=="string")return console.assert($f[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),nu($f[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const i=e,{rows:s}=i,A=Z(i,["rows"]);t=E(f({},A),{layers:Rc({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const i=e,{markup:s}=i,A=Z(i,["markup"]);t=E(f({},A),{layers:Rc(e.markup)})}else t=f({},e),"layers"in e?t.layers=Rc(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,n=!1;for(const i of t.layers)if(i.rows)for(const s of i.rows.flat()){of(s)&&(r=!0);const A=s.command;typeof A=="string"&&["undo","redo","cut","copy","paste"].includes(A)&&(n=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!n),t}function nf(e,t){var r,n;let i='<div class="left">';if(e.normalizedLayouts.length>1)for(const[s,A]of e.normalizedLayouts.entries()){const M=A,z=[s===t?"selected":"layer-switch"];M.tooltip&&z.push("MLK__tooltip"),M.labelClass&&z.push(...M.labelClass.split(" ")),i+=`<div class="${z.join(" ")}"`,M.tooltip&&(i+=" data-tooltip='"+((r=X(M.tooltip))!=null?r:M.tooltip)+"' "),s!==t&&(i+=`data-layer="${M.layers[0].id}"`),i+=`>${(n=M.label)!=null?n:"untitled"}</div>`}return i+="</div>",i}function Sf(e,t){let r="";if(e.editToolbar==="none")return"";const i=[];t.selectionIsCollapsed?i.push("undo","redo","pasteFromClipboard"):i.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const s={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${X("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${X("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${X("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${X("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${X("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return r+=i.map(A=>s[A]).join(""),r}function Vf(e){for(const t of e)w0(t)}function w0(e){const t=bd.singleton;if(!t)return;const r={};if(!e.id){if(e.hasAttribute("data-label")&&(r.label=e.dataset.label),e.hasAttribute("data-latex")&&(r.latex=e.dataset.latex),e.hasAttribute("data-key")&&(r.key=e.dataset.key),e.hasAttribute("data-insert")&&(r.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(r.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(r.aside=e.dataset.aside),e.className&&(r.class=e.className),!r.label&&!r.latex&&!r.key&&!r.insert&&(r.latex=e.innerText,r.label=e.innerHTML),e.hasAttribute("data-command"))try{r.command=JSON.parse(e.dataset.command)}catch(n){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[n,i]=Wf(r);e.innerHTML=window.MathfieldElement.createHTML(n)}}function Ef(){Kl("virtual-keyboard"),Kl("core"),vd()}function _f(){bc("core"),bc("virtual-keyboard")}var Mp=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
</symbol>
<symbol id="svg-shift" viewBox="0 0 384 512">
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
</symbol>
<symbol id="svg-commit" viewBox="0 0 512 512">
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
</symbol>
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
<symbol id="svg-command" viewBox="0 0 640 512">
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
</symbol>
<symbol id="svg-undo" viewBox="0 0 512 512">
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
</symbol>
<symbol id="svg-redo" viewBox="0 0 512 512">
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
</symbol>
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
</symbol>
<symbol id="svg-tab" viewBox="0 0 448 512">
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
</symbol>
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
</symbol>
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
</symbol>
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
</symbol>
<symbol id="svg-trash" viewBox="0 0 448 512">
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
</symbol>
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
</svg>`;function Lp(e){e.resetKeycapRegistry(),Ef();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Mp+e.normalizedLayouts.map((A,M)=>kp(e,A,M)).join(""));const n=document.createElement("div");n.className="MLK__backdrop",n.appendChild(r),t.appendChild(n),t.addEventListener("pointerdown",Pp,{passive:!1});const i=t.querySelectorAll(".ML__edit-toolbar");if(i)for(const A of i)A.addEventListener("click",M=>{var z,J;let Ae=M.target,Qe="";for(;Ae&&!Qe;)Qe=(z=Ae==null?void 0:Ae.getAttribute("data-command"))!=null?z:"",Ae=(J=Ae==null?void 0:Ae.parentElement)!=null?J:null;Qe&&e.executeCommand(JSON.parse(Qe))});Vf(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const s=t.querySelectorAll(".MLK__layer");console.assert(s.length>0,"No virtual keyboards available");for(const A of s)A.addEventListener("pointerdown",M=>M.preventDefault());return e.currentLayer=e.latentLayer,t}function kp(e,t,r){const n=[];if(!("layers"in t))return"";for(const i of t.layers)n.push(`<div tabindex="-1" class="MLK__layer" id="${i.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(n.push("<div class='MLK__toolbar' role='toolbar'>"),n.push(nf(e,r)),t.displayEditToolbar&&n.push('<div class="ML__edit-toolbar right"></div>'),n.push("</div>")),n.push(Dp(e,i)),n.push("</div>");return n.join("")}function Dp(e,t){if(typeof t=="string")return t;let r="";if(typeof t.style=="string"?r+=`<style>${t.style}</style>`:typeof t.style=="object"&&(r+=`<style>${Bf(t.style)}</style>`),t.backdrop&&(r+=`<div class='${t.backdrop}'>`),t.container&&(r+=`<div class='${t.container}'>`),t.rows){r+="<div class=MLK__rows>";for(const n of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const i of n)if(i){const s=e.registerKeycap(i),[A,M]=Wf(i);/(^|\s)separator/.test(M)?r+=`<div class="${M}"`:r+=`<div tabindex="-1" id="${s}" class="${M}"`,i.tooltip&&(r+=` data-tooltip="${i.tooltip}"`),r+=`>${A}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Wf(e,t={shifted:!1}){var r,n,i,s,A,M,z;let J="",Ae=(r=e.class)!=null?r:"";if(t.shifted&&of(e)&&(Ae+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?J=wu(e.shift):typeof e.shift=="object"&&(J=e.shift.label?e.shift.label:(n=wu(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?n:""),typeof e.shift=="object"&&(Ae=(s=(i=e.shift.class)!=null?i:e.class)!=null?s:"");else{if(J=e.label?e.label:(A=wu(e.latex||e.insert||"")||e.key)!=null?A:"",e.shift){let Qe;typeof e.shift=="string"?Qe=wu(e.shift):e.shift.label?Qe=e.shift.label:Qe=(M=wu(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?M:"",J+=`<span class="MLK__shift">${Qe}</span>`}e.aside&&(J+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(Ae)&&(Ae+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ae)||(Ae+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ae)&&e.width&&(Ae+=(z={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?z:""),[J,Ae||"MLK__keycap"]}var Nd={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function q0(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!Nd[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&Nd[e.label]&&(r=E(f(f({},Nd[e.label]),e),{label:Nd[e.label].label})),"key"in e&&e.key&&Nd[e.key]&&(r=E(f(f({},Nd[e.key]),e),{key:Nd[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=f(f({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=f(f({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=f(f({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=f(f({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var Ff;function Pp(e){var t;if(e.button!==0)return;const r=bd.singleton;if(!r)return;let n=e.target;for(;n&&!n.getAttribute("data-layer");)n=n.parentElement;if(n){r.currentLayer=(t=n.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const i=af(e.target);if(!(i!=null&&i.id))return;const s=r.getKeycap(i.id);if(!s)return;console.assert(e.type==="pointerdown");const A=new AbortController,M=A.signal;i.classList.add("is-pressed"),i.addEventListener("pointerenter",Gf(A),{capture:!0,signal:M}),i.addEventListener("pointerleave",Gf(A),{capture:!0,signal:M}),i.addEventListener("pointercancel",Gf(A),{signal:M}),i.addEventListener("pointerup",Gf(A),{signal:M}),of(s)&&(i.classList.add("is-active"),r.shiftPressCount++),s.variants&&(Ff&&clearTimeout(Ff),Ff=setTimeout(()=>{i.classList.contains("is-pressed")&&(i.classList.remove("is-pressed"),i.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),Zf(i,()=>{A.abort(),i==null||i.classList.remove("is-active")}))},300)),e.preventDefault()}function Gf(e){return t=>{const r=af(t.target);if(!(r!=null&&r.id))return;const n=bd.singleton;if(!n)return;const i=n.getKeycap(r.id);if(i){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),of(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),of(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted));return}if(t.type==="pointerup"){Ff&&clearTimeout(Ff),of(i)?r.classList.toggle("is-active",n.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),n.isShifted&&i.shift?typeof i.shift=="string"?n.executeCommand(["insert",i.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):x0(i.shift):x0(i),n.shiftPressCount===1&&!t.shiftKey&&(n.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function x0(e){var t;let r=e.command;!r&&e.insert&&(r=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!r&&e.key&&(r=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!r&&e.latex&&(r=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),r||(r=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(t=bd.singleton)==null||t.executeCommand(r)}function Np(e){if(e.nodeType!==1)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function af(e){if(!e)return;let t=e;for(;t&&!Np(t);)t=t.parentElement;return t!=null?t:void 0}function of(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var bd=class _p{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,n;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(r=(t=window.document)==null?void 0:t.body)!=null?r:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(i=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(n=window.top)==null||n.addEventListener("message",this)}catch(i){window.addEventListener("message",this)}document.body.addEventListener("focusin",i=>{const s=i.target;s!=null&&s.isConnected&&setTimeout(()=>{const A=eh();A&&!A.readOnly&&A.mathVirtualKeyboardPolicy==="auto"&&R()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",i=>{i.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{eh()||this.hide()},300)})}get currentLayer(){var t,r,n;return(n=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?n:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let n=t?this._element.querySelector(`#${t}.MLK__layer`):null;n||(n=this._element.querySelector(".MLK__layer")),n&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),n.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(t){var r;this._shiftPressCount=t>2||t<0?0:t,(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(t){const r="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[r]=t,r}getKeycap(t){return t?this.keycapRegistry[t]:void 0}getLayer(t){const r=this.normalizedLayouts;for(const n of r)for(const i of n.layers)if(i.id===t)return i}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(t){this._alphabeticLayout=t,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(t){this._actionKeycap=typeof t=="string"?{label:t}:t}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(t){this._shiftKeycap=typeof t=="string"?{label:t}:t}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(t){this._backspaceKeycap=typeof t=="string"?{label:t}:t}get tabKeycap(){return this._tabKeycap}set tabKeycap(t){this._tabKeycap=typeof t=="string"?{label:t}:t}get layouts(){return this._layouts}set layouts(t){this.updateNormalizedLayouts(t),this.rebuild()}updateNormalizedLayouts(t){const r=Array.isArray(t)?[...t]:[t],n=r.findIndex(i=>i==="default");n>=0&&r.splice(n,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(i=>nu(i))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(t){this._editToolbar=t,this.rebuild()}get container(){return this._container}set container(t){this._container=t,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new _p}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,n){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,n){this.listeners[t]&&this.listeners[t].delete(r)}get element(){return this._element}set element(t){var r;this._element!==t&&((r=this._element)==null||r.remove(),this._element=t)}get visible(){return this._visible}set visible(t){t?this.show():this.hide()}get boundingRect(){var t;if(!this._visible)return new DOMRect;const r=(t=this._element)==null?void 0:t.getElementsByClassName("MLK__plate")[0];return r?r.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var t,r;const n=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${n}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const i=n-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${i}px)`:`${i}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${n}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const t=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=t,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const t=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(t&&(t.backdrop||t.container)));const r=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(r)for(const n of r){const i=this.getKeycap(n.id);if(i){const[s,A]=Wf(i,{shifted:this.isShifted});n.innerHTML=window.MathfieldElement.createHTML(s),n.className=A}}}show(t){var r;if(this._visible)return;const n=this.container;if(n&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const i=this._element.getElementsByClassName("MLK__plate")[0];if(i&&this.observer.observe(i),n===window.document.body){const s=n.style.paddingBottom;this.originalContainerBottomPadding=s;const A=i.offsetHeight-1;n.style.paddingBottom=s?`calc(${s} + ${A}px)`:`${A}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var i;return(i=this._element)==null?void 0:i.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(t){var r;const n=this.container;if(n&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const i=this._element.getElementsByClassName("MLK__plate")[0];i&&this.observer.unobserve(i),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),yd(),_f(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(n.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var t,r;return(r=(t=this.element)==null?void 0:t.offsetHeight)!=null?r:0}buildAndAttachElement(){var t;console.assert(!this.element),this.element=Lp(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&Zf(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(rf(t)){if(!sA(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");t.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:t.data.action!=="update-setting"&&t.data.action!=="proxy-created"&&t.data.action!=="execute-command"&&(console.assert(t.source!==void 0),this.connectedMathfieldWindow=t.source),this.handleMessage(t.data,t.source)}if(this._element)switch(t.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":t.button!==2&&t.preventDefault();break;case"keydown":{t.key==="Shift"&&!t.repeat&&(this.shiftPressCount=1);break}case"keyup":{(t.key==="Shift"||!t.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(t,r){const{action:n}=t;if(n==="execute-command"){const{command:i}=t,s=ed(i);if(window.top!==void 0&&s!=="virtual-keyboard")return;this.executeCommand(i);return}if((n==="connect"||n==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),n!=="disconnect"&&window===window.top){if(n==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(n==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(n==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(n==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,n){if(n||(n=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||n===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:f({type:mA,action:t},r)}));return}if(n)n.postMessage(f({type:mA,action:t},r),{targetOrigin:this.targetOrigin});else if(r.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:r.command})),t==="execute-command"&&Array.isArray(r.command)&&r.command[0]==="insert"){const i=r.command[1].split("");for(const s of i)this.dispatchEvent(new KeyboardEvent("keydown",{key:s,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:s,bubbles:!0}))}}stateWillChange(t){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:t},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(t){const r=this._element;if(!r)return;r.classList.toggle("is-math-mode",t.mode==="math"),r.classList.toggle("is-text-mode",t.mode==="text"),r.classList.toggle("can-undo",t.canUndo),r.classList.toggle("can-redo",t.canRedo),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-paste",!0);const n=r.querySelectorAll(".ML__edit-toolbar");if(n)for(const i of n)i.innerHTML=Sf(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,n=[],i=ed(t);return S(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),i=ed(t)),n=t.slice(1)):r=t,r=r.replace(/-\w/g,s=>s[1].toUpperCase()),i==="virtual-keyboard"?Uc[r].fn(void 0,...n):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function eh(){var e,t;let r=po(),n=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){n=r.host;break}r=r.parentNode}return n}if(N()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=bd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>zf.singleton,configurable:!0});function Xf(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const n=e.scriptDepth;if(S(n))t.scriptDepth=[n[0],n[1]];else if(typeof n=="number")t.scriptDepth=[n,n];else if(typeof n=="string"){const[s,A]=n.split(",").map(M=>parseInt(M.trim()));t.scriptDepth=[s,A]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let i=e.mathVirtualKeyboardPolicy.toLowerCase();if(i==="sandboxed"){if(window!==window.top){const s=bd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>s})}i="manual"}t.mathVirtualKeyboardPolicy=i;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?te.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=Ie(e.macros);break;default:S(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=f({},e[r]):t[r]=e[r]}return t}function Od(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const n={};for(const i of r)e[i]===null?n[i]=null:S(e[i])?n[i]=[...e[i]]:typeof e[i]=="object"&&!(e[i]instanceof Element)&&i!=="computeEngine"?n[i]=f({},e[i]):n[i]=e[i];return typeof t=="string"?n[t]:n}function Jf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:je,backgroundColorMap:q,letterShapeStyle:te.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:vs,inlineShortcuts:JA,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Ma,value:""}}function th(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function wd(e,t){!e||!t||(S(e)?e.forEach(r=>wd(r,t)):typeof e=="object"&&!e.style.color&&!e.style.backgroundColor&&!e.style.fontFamily&&!e.style.fontShape&&!e.style.fontSeries&&!e.style.fontSize&&!e.style.variant&&!e.style.variantStyle&&(e.applyStyle(t),wd(e.body,t),wd(e.above,t),wd(e.below,t),wd(e.subscript,t),wd(e.superscript,t)))}function C0(e,t,r,n){function i(A,M){for(const z of s)if(z.style[A]!==M)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const s=e.getAtoms(t,{includeChildren:!0});n.operation==="toggle"&&(r.color&&i("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&i("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&i("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&i("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&i("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&i("fontSize",r.fontSize)&&(r.fontSize=jo),r.variant&&i("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&i("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const A of s)A.applyStyle(r);return!0}function Op(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:n}=r;r.caret=void 0;const i=new cd(t,{mode:r.mode});i.caret=n,r.parent.addChildAfter(i,r),e.position+=1}}function Tp(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}qe(["math","displaymath"],UA),qe("center",UA),pe("displaylines","",{parse:e=>{const t=[];let r=[];e.beginContext({tabular:!0});do{if(e.end()||e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([r]),r=[]):r.push(...e.scan(n=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(n)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new oa("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),_t("array","{columns:colspec}",(e,t,r,n)=>new oa(e,B0(t),r,{columns:n[0],mathstyleName:"textstyle"})),_t(["equation","equation*","subequations"],"",(e,t,r)=>new oa(e,B0(t),r,{columns:[{align:"c"}]})),_t(["multline","multline*"],"",UA),_t(["align","align*","aligned","eqnarray"],"",UA),_t("split","",UA),_t(["gather","gathered"],"",UA),_t(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",UA),_t(["smallmatrix","smallmatrix*"],"[columns:colspec]",UA),_t(["cases","dcases","rcases"],"",UA);function Up(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function B0(e,t=1){return Up(e)?Array(t).fill([[new Zr({type:"first"}),new zl]]):e.map(r=>r.length===0?[[new Zr({type:"first"})]]:r.map(n=>n.length===0?[new Zr({type:"first"})]:(n[0].type!=="first"&&n.unshift(new Zr({type:"first"})),n)))}function UA(e,t=[[[]]],r=[],n=[]){switch(t=B0(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new oa(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new oa(e,t,r,{mathstyleName:"textstyle"});case"center":return new oa(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new oa(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new oa(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new oa(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new oa(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Td(n[0])});case"bmatrix":case"bmatrix*":return new oa(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Td(n[0])});case"Bmatrix":case"Bmatrix*":return new oa(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Td(n[0])});case"vmatrix":case"vmatrix*":return new oa(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Td(n[0])});case"Vmatrix":case"Vmatrix*":return new oa(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Td(n[0])});case"matrix":case"matrix*":return new oa(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Td(n==null?void 0:n[0])});case"smallmatrix":case"smallmatrix*":return new oa(e,t,r,{mathstyleName:"scriptstyle",columns:Td(n==null?void 0:n[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new oa(e,t,r,{mathstyleName:e==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new oa(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new oa(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let i=0;for(const M of t)i=Math.max(i,M.length);const s=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let A=2;for(;A<i;)s.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),A+=2;return s.push({gap:0}),new oa(e,t,r,{arraycolsep:0,columns:s,minColumns:2})}}return new oa(e,t,r,{mathstyleName:"textstyle"})}function Td(e){return e!=null?e:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Rp(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof oa);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof oa)){const n=e.at(e.position);if(r=n,!r.parent.parent){let i=e.extractAtoms([e.position,e.lastOffset]),s=e.extractAtoms([0,e.position]);s.length===0&&(s=e0()),i.length===0&&(i=e0());let A;return t.endsWith("column")?(A=UA("split",[[s,i]]),e.root=A,Ud(A,0,0)?Rd(e,A,0,0):Ud(A,0,1)?Rd(e,A,0,1):e.position=e.offsetOf(n)):(A=UA("lines",[[s],[i]]),e.root=A,Ud(A,0,0)?Rd(e,A,0,0):Ud(A,1,0)?Rd(e,A,1,0):e.position=e.offsetOf(n)),[void 0,[0,0]]}if(r.parent instanceof Xa){const i=r.parent;let s=e.extractAtoms([e.position,e.offsetOf(i.lastChild)]),A=e.extractAtoms([e.offsetOf(i.firstChild),e.position]);A.length===0&&(A=e0()),s.length===0&&(s=e0());let M="pmatrix";const z=i.leftDelim,J=i.rightDelim;z==="("&&(J===")"||J==="?")?M="pmatrix":(z==="["||z==="\\lbrack")&&(J==="]"||J==="\\rbrack"||J==="?")?M="bmatrix":z==="\\vert"&&J==="\\vert"?M="vmatrix":z==="\\Vert"&&J==="\\Vert"?M="Vmatrix":(z==="{"||z==="\\lbrace")&&(J==="."||J==="?")&&(M="cases");const Ae=UA(M,t.endsWith("column")?[[A,s]]:[[A],[s]]);return i.parent.addChildBefore(Ae,i),i.parent.removeChild(i),Ud(Ae,0,0)?Rd(e,Ae,0,0):t.endsWith("column")?Ud(Ae,0,1)?Rd(e,Ae,0,1):e.position=e.offsetOf(r):Ud(Ae,1,0)?Rd(e,Ae,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof oa?[r.parent,r.parentBranch]:[void 0,[0,0]]}function Ud(e,t,r){const n=e.getCell(t,r);return!n||n.length!==2?!1:n[1].type==="placeholder"}function Qp(e,t,r,n){const i=t.getCell(r,n);return i?[e.offsetOf(i[0]),e.offsetOf(i[i.length-1])]:-1}function Rd(e,t,r,n){const i=Qp(e,t,r,n);typeof i!="number"&&e.setSelection(i)}function Yf(e,t,r,n,i){const s=t.getCell(r,n);s&&e.setPositionHandlingPlaceholder(e.offsetOf(s[i==="start"?0:s.length-1]))}function qf(e,t){const[r,[n,i]]=Rp(e,t);if(r)switch(t){case"after row":r.addRowAfter(n),Yf(e,r,n+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(i),Yf(e,r,n,i+1,"end");break;case"before row":r.addRowBefore(n),Yf(e,r,n,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(i),Yf(e,r,n,i,"start");break}}function rh(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Kp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function nh(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Hp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function ih(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",n=".";switch(t){case"pmatrix":case"pmatrix*":r="(",n=")";break;case"bmatrix":case"bmatrix*":r="[",n="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",n="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",n="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",n="\\Vert";break;case"matrix":case"matrix*":r=".",n=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":n="\\rbrace";break}const i=e.at(e.position),s=i.type==="array"?i:e.parentEnvironment;return s.environmentName=t,s.leftDelim=r,s.rightDelim=n,e.contentDidChange({}),!0}function ah(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof oa);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof oa){const n=r.parent,i=r.parentBranch;let s;switch(t){case"row":if(n.rowCount>1){n.removeRow(i[0]);const A=n.getCell(Math.max(0,i[0]-1),i[1]);s=e.offsetOf(A[A.length-1])}break;case"column":if(n.colCount>n.minColumns){n.removeColumn(i[1]);const A=n.getCell(i[0],Math.max(0,i[1]-1));s=e.offsetOf(A[A.length-1])}break}s&&e.setPositionHandlingPlaceholder(s)}}function jp(e){return e.contentWillChange({inputType:"deleteContent"})?(ah(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function zp(e){return e.contentWillChange({inputType:"deleteContent"})?(ah(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}ic({addRowAfter:rh,addColumnAfter:nh,addRowBefore:Kp,addColumnBefore:Hp,removeRow:jp,removeColumn:zp,setEnvironment:ih},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function e0(){return[new zl]}var oh=class Fp{constructor(t){this.recording=!1,this.model=t,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(t){t&&this.index>=0&&(this.stack[this.index].selection=t),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return this.recording?(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>Fp.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};oh.maximumDepth=1e3;var $p=oh;function S0(e,t,r){if(e.at(t).mode!=="text")return t;const n=r==="backward"?-1:1;let i;if(u.test(e.at(t).value)){let s=t,A;do A=e.at(s).mode==="text"&&u.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}else if(/\s/.test(e.at(t).value)){let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&/\s/.test(e.at(s).value);)s+=n;if(!e.at(s))i=s-n;else{let A=!0;do A=e.at(s).mode==="text"&&!/\s/.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}}else{let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&!/\s/.test(e.at(s).value);)s+=n;i=e.at(s)?s:s-n;let A=!0;for(;e.at(s)&&A;)A=e.at(s).mode==="text"&&/\s/.test(e.at(s).value),A&&(i=s),s+=n;i=e.at(s)?s-2*n:s-n}return i-(n>0?0:1)}function sf(e,t,r){var n,i,s,A,M,z,J;const Ae=e.position;(n=r==null?void 0:r.extend)!=null&&n||e.collapseSelection(t);let Qe=e.at(e.position);if(t==="forward"&&(Qe.type==="subsup"?(Qe=Qe.rightSibling,Qe||(Qe=e.at(e.position+1))):Qe=e.at(e.position+1)),!Qe)return e.announce("plonk"),!1;let ft=e.offsetOf(Qe);if(Qe instanceof Lc)ft=S0(e,ft,t);else if(Qe instanceof Is)if(Qe.isSuggestion)for(console.assert(t==="forward");Qe&&Qe instanceof Is;)Qe.isSuggestion=!1,ft=e.offsetOf(Qe),Qe=Qe.rightSibling;else if(t==="forward"){if(Qe=Qe.rightSibling,!Qe||!(Qe instanceof Is))return e.announce("plonk"),!1;for(;Qe&&Qe instanceof Is&&/[a-zA-Z\*]/.test(Qe.value);)ft=e.offsetOf(Qe),Qe=Qe.rightSibling}else{if(Qe=Qe.leftSibling,!Qe||!(Qe instanceof Is))return e.announce("plonk"),!1;for(;Qe&&Qe instanceof Is&&/[a-zA-Z\*]/.test(Qe.value);)ft=e.offsetOf(Qe),Qe=Qe.leftSibling}else if(t==="forward"&&Qe.type==="mopen"){let Ft=0;do Qe.type==="mopen"?Ft+=1:Qe.type==="mclose"&&(Ft-=1),Qe=Qe.rightSibling;while(!Qe.isLastSibling&&Ft!==0);ft=e.offsetOf(Qe.leftSibling)}else if(t==="backward"&&Qe.type==="mclose"){let Ft=0;do Qe.type==="mopen"?Ft+=1:Qe.type==="mclose"&&(Ft-=1),Qe=Qe.leftSibling;while(!Qe.isFirstSibling&&Ft!==0);ft=e.offsetOf(Qe)}else if(t==="backward")if(Qe.type==="first")for(;ft>0&&Qe.type==="first";)ft-=1,Qe=e.at(ft);else{const Ft=Qe.type;Qe.type==="subsup"&&(ft=e.offsetOf(e.at(ft).leftSibling)),ft-=1;let Ot=(i=e.at(ft))==null?void 0:i.type;for(;ft>=0&&Ot===Ft;)((s=e.at(ft))==null?void 0:s.type)==="subsup"?ft=e.offsetOf(e.at(ft).leftSibling):ft-=1,Ot=e.at(ft).type}else{const{type:Ft}=Qe;let Ot=(A=e.at(ft))==null?void 0:A.type;const{lastOffset:Er}=e;for(;ft<=Er&&(Ot===Ft||Ot==="subsup");){for(;((M=e.at(ft).rightSibling)==null?void 0:M.type)==="subsup";)ft=e.offsetOf(e.at(ft).rightSibling);ft+=1,Ot=(z=e.at(ft))==null?void 0:z.type}ft-=1}if((J=r==null?void 0:r.extend)!=null&&J){if(!e.setSelection(e.anchor,ft))return e.announce("plonk"),!1}else{if(ft===e.position)return e.announce("plonk"),!1;e.position=ft}return e.announce("move",Ae),e.mathfield.stopCoalescingUndo(),!0}function Cu(e,t,r){var n,i;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[M,z]=PA(e);M!==void 0&&z!==void 0&&e.deleteAtoms([M,z])}if(t==="upward")return Vp(e,r);if(t==="downward")return Wp(e,r);if(r.extend){let M=t0(e,e.position,t);M<0&&(M=0),M>e.lastOffset&&(M=e.lastOffset);const z=e.setSelection(e.anchor,M);return e.mathfield.stopCoalescingUndo(),z}if(e.selectionIsPlaceholder){e.collapseSelection(t);const M=Cu(e,t);return e.mathfield.stopCoalescingUndo(),M}let s=e.position;const A=s;if(e.collapseSelection(t)?(s=e.position,sh(e,s)||(s=t0(e,s,t))):s=t0(e,s,t),s<0||s>e.lastOffset){let M=!0;return e.silenceNotifications||(M=(i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0),M&&e.announce("plonk"),M}return e.setPositionHandlingPlaceholder(s),e.mathfield.stopCoalescingUndo(),e.announce("move",A),!0}function t0(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||sh(e,t)?t:t0(e,t,r)}function sh(e,t){var r;const n=e.at(t);let i=n.parent;for(;i&&!i.inCaptureSelection;)i=i.parent;return!(i!=null&&i.inCaptureSelection||(r=n.parent)!=null&&r.skipBoundary&&(!n.isFirstSibling&&n.isLastSibling||n.type==="first")||e.mathfield.hasEditablePrompts&&!n.parentPrompt)}function Zp(e,t,r){let n=1/0,i=0;for(;i<t.length;i++){const s=YA(e.getHTMLElement(t[i])).right,A=Math.abs(r-s);if(A<=n)n=A;else break}return t[i-1]}function r0(e,t,r,n,i){const s=e.mathfield.hasEditablePrompts,A=s?r.filter(J=>J.type==="prompt"&&!J.captureSelection):r,M=YA(e.mathfield.getHTMLElement(t)).right,z=e.offsetOf(Zp(e.mathfield,A,M))-(s?1:0);if(n){const[J,Ae]=e.selection.ranges[0];let Qe;z<(i==="up"?J:Ae)?Qe={ranges:[[z,Ae]],direction:"backward"}:Qe={ranges:[[J,z]],direction:"forward"},e.setSelection(Qe)}else e.setPositionHandlingPlaceholder(z);e.announce(`move ${i}`)}function Vp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("backward");const s=()=>{var z,J;let Ae=!0;return e.silenceNotifications||(Ae=(J=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?J:!0),e.announce(Ae?"plonk":"line"),Ae},A=e.at(e.position);let M=A;for(;M&&M.parentBranch!=="below"&&!(Array.isArray(M.parentBranch)&&M.parent instanceof oa);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof oa){const z=M.parent;if(M.parentBranch[0]<1)return s();const J=M.parentBranch[0]-1,Ae=z.array[J][M.parentBranch[1]];if(!Ae.some(ft=>ft.type==="prompt"&&!ft.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,Ae,i,"up")}else if(M){const z=(n=M.parent.branch("above"))!=null?n:M.parent.createBranch("above");if(!z.some(Ae=>Ae.type==="prompt"&&Ae.placeholderId)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,z,i,"up")}else return s();return e.mathfield.stopCoalescingUndo(),!0}function Wp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("forward");const s=()=>{var z,J;let Ae=!0;return e.silenceNotifications||(Ae=(J=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?J:!0),e.announce(Ae?"plonk":"line"),Ae},A=e.at(e.position);let M=A;for(;M&&M.parentBranch!=="above"&&!(Array.isArray(M.parentBranch)&&M.parent instanceof oa);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof oa){const z=M.parent;if(M.parentBranch[0]+1>z.array.length-1)return s();const J=M.parentBranch[0]+1,Ae=z.array[J][M.parentBranch[1]];if(!Ae.some(ft=>ft.type==="prompt"&&!ft.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,Ae,i,"down")}else if(M){const z=(n=M.parent.branch("below"))!=null?n:M.parent.createBranch("below");if(!z.some(Ae=>Ae.type==="prompt")&&e.mathfield.hasEditablePrompts)return s();r0(e,A,z,i,"down")}else return s();return!0}function lh(e){const t=e.position,r=e.at(t).parent;return r!=null&&r.parent?(e.position=e.offsetOf(r),e.mathfield.stopCoalescingUndo(),e.announce("move",t),!0):(e.announce("plonk"),!1)}function Gp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!1):n=!0,r=r.parent;return n?t:0}function Xp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!0):n=!1,r=r.parent;return n?t:0}function ch(e){var t;if(e.collapseSelection(),Gp(e)>=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=r.rightSibling)==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new tu({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function Ah(e){var t;if(e.collapseSelection(),Xp(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=e.at(e.position+1))==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new tu({style:e.at(e.position).computedStyle}),r),r=e.at(e.position+1)),r.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.subscript[0]))),!0}function Jp(){function e(z){const J=[],Ae=[];return[...z.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((ft,Ft)=>{const Ot=n(ft);Ot===0?J.push(ft):Ae.push({documentOrder:Ft,tabIndex:Ot,node:ft})}),Ae.sort((ft,Ft)=>ft.tabIndex===Ft.tabIndex?ft.documentOrder-Ft.documentOrder:ft.tabIndex-Ft.tabIndex).map(ft=>ft.node).concat(J)}function t(z){return!(!r(z)||i(z)||n(z)<0)}function r(z){return!(z.disabled||z.type==="hidden"&&z.tagName.toUpperCase()==="INPUT"||M(z))}function n(z){var J;const Ae=Number.parseInt((J=z.getAttribute("tabindex"))!=null?J:"NaN",10);return Number.isNaN(Ae)?z.contentEditable==="true"||(z.nodeName==="AUDIO"||z.nodeName==="VIDEO")&&z.getAttribute("tabindex")===null?0:z.tabIndex:Ae}function i(z){return z.tagName.toUpperCase()==="INPUT"&&z.type==="radio"&&!A(z)}function s(z,J){for(const Ae of z)if(Ae.checked&&Ae.form===J)return Ae;return null}function A(z){var J;if(!z.name)return!0;const Qe=((J=z.form)!=null?J:z.ownerDocument).querySelectorAll('input[type="radio"][name="'+z.name+'"]'),ft=s(Qe,z.form);return!ft||ft===z}function M(z){if(!N()||z===document.activeElement||z.contains(document.activeElement))return!1;if(getComputedStyle(z).visibility==="hidden")return!0;const J=z.getBoundingClientRect();if(J.width===0||J.height===0)return!0;for(;z;){if(getComputedStyle(z).display==="none")return!0;z=z.parentElement}return!1}return N()?e(document.body):[]}function Ic(e,t,r="forward"){const n=e.position;if(Array.isArray(t)){const i=e.offsetOf(t[0]),s=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(i,s):e.setSelection(s,i),e.announce("move",n),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Ic(e,[t.leftSibling,t]):Ic(e,[t,t.leftSibling])}function iu(e,t){const r=e.position;if(typeof t=="number"&&(t=e.at(t)),t.type==="prompt")e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const n=e.offsetOf(t);t.type==="placeholder"?e.setSelection(n-1,n):e.position=n}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function n0(e,t,r=!0){var n,i;const s=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&Cu(e,t);let A;const M=e.at(e.anchor).parentPrompt;M?t==="forward"?A=e.offsetOf(M)+1:A=e.offsetOf(M.leftSibling):A=Math.max(e.position+s,0);const z=E0(e,A,t);if(!z||t==="forward"&&e.offsetOf(z)<A||t==="backward"&&e.offsetOf(z)>A){if(!r||!((i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||i))return e.announce("plonk"),!1;const Ae=Jp();if(!document.activeElement||Ae.length<=1)return e.announce("plonk"),!1;let Qe=Ae.indexOf(document.activeElement)+s;return Qe<0&&(Qe=Ae.length-1),Qe>=Ae.length&&(Qe=0),Ae[Qe].focus(),e.mathfield.stopCoalescingUndo(),!0}return iu(e,z),!0}function E0(e,t=0,r="forward"){return e.findAtom(n=>n.type==="placeholder"||n.type==="prompt"||!e.mathfield.readOnly&&n.treeDepth>2&&n.isFirstSibling&&n.isLastSibling,t,r)}ic({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:n}=r;if(!n)return e.announce("plonk"),!1;const i=r.parentBranch;let s;if(typeof i=="string"&&(s=t[i]),!s){const M=r.subsupPlacement?Ah(e):ch(e);return e.mathfield.stopCoalescingUndo(),M}n.branch(s)||n.createBranch(s);const A=e.setSelection(e.getBranchRange(e.offsetOf(n),s));return e.mathfield.stopCoalescingUndo(),A},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>lh(e),moveToNextChar:e=>Cu(e,"forward"),moveToPreviousChar:e=>Cu(e,"backward"),moveUp:e=>Cu(e,"upward"),moveDown:e=>Cu(e,"downward"),moveToNextWord:e=>sf(e,"forward"),moveToPreviousWord:e=>sf(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,r,n,i;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return n0(e,"forward");const s=e.at(e.position);if(s.mode==="text"){if(e.selectionIsCollapsed){let ft=s;for(;ft&&ft.mode==="text";)ft=ft.leftSibling;let Ft=s;for(;((t=Ft.rightSibling)==null?void 0:t.mode)==="text";)Ft=Ft.rightSibling;if(ft&&Ft)return Ic(e,[ft,Ft])}if(s.rightSibling.mode==="text"){let ft=s;for(;ft&&ft.mode==="text";)ft=ft.rightSibling;return ft?(iu(e,(r=ft.leftSibling)!=null?r:ft),e.mathfield.switchMode("math"),!0):iu(e,e.lastOffset)}}const M=e.at(e.anchor).parentPrompt,z=M?e.offsetOf(M)+1:Math.max(e.position+1,0),J=E0(e,z,"forward");if(J)return iu(e,J);const Ae=uh(e,s,ft=>ft.type==="leftright"||ft.type==="text","forward");if(Ae){if(Ae.mode==="text"){let ft=Ae;for(;ft&&ft.mode==="text";)ft=ft.rightSibling;return Ic(e,[(n=Ae.leftSibling)!=null?n:Ae,(i=ft.leftSibling)!=null?i:ft])}return Ic(e,Ae)}const Qe=s.parent;if(Qe){if(Qe.type==="leftright"||Qe.type==="surd")return Ic(e,Qe);if(s.parentBranch==="superscript"&&Qe.subscript)return Ic(e,Qe.subscript);if(s.parentBranch==="above"&&Qe.below)return Ic(e,Qe.below);if(s.parentBranch==="superscript"||s.parentBranch==="subscript")return iu(e,Qe);if(s.parentBranch==="above"||s.parentBranch==="below")return Ic(e,Qe)}return iu(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return n0(e,"backward");let r=e.at(e.position);const n=r.mode;if(n==="text"){if(e.selectionIsCollapsed){let M=r;for(;M&&M.mode==="text";)M=M.leftSibling;let z=r;for(;((t=z.rightSibling)==null?void 0:t.mode)==="text";)z=z.rightSibling;if(M&&z)return Ic(e,[M,z])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?iu(e,r):iu(e,0)}const i=e.at(e.anchor).parentPrompt,s=i?e.offsetOf(i.leftSibling):Math.max(e.position-1,0),A=E0(e,s,"backward");if(A)return iu(e,A);if(n==="math"){const M=uh(e,r,J=>J.type==="leftright"||J.type==="text","backward");if(M){if(M.mode==="text"){let J=M;for(;J&&J.mode==="text";)J=J.leftSibling;return Ic(e,[M,J])}return Ic(e,M)}const z=r.parent;if(z){if(z.type==="leftright"||z.type==="surd")return Ic(e,z);if(r.parentBranch==="subscript"&&z.superscript)return Ic(e,z.superscript);if(r.parentBranch==="below"&&z.above)return Ic(e,z.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return iu(e,z);if(r.parentBranch==="above"||r.parentBranch==="below")return Ic(e,z)}return iu(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&e.position===0?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:ch,moveToSubscript:Ah},{target:"model",changeSelection:!0}),ic({moveToNextPlaceholder:e=>n0(e,"forward"),moveToPreviousPlaceholder:e=>n0(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function uh(e,t,r,n){if(n==="forward"){let s=t.rightSibling;for(;s&&!r(s);)s=s.rightSibling;return s}let i=t.leftSibling;for(;i&&!r(i);)i=i.leftSibling;return i}function i0(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1,s="";for(;!i;){const A=e.at(n);i=t===0||A===void 0||A.type==="first"||A.mode!=="math"||!(A.type&&/mord|mpunct|operator/.test(A.type)||A.type==="mop"&&/[a-zA-Z ]+/.test(A.value))||!A.hasEmptyBranch("superscript")||!A.hasEmptyBranch("subscript")||typeof r=="function"&&!r(A),i||(A.mode="text",A.command=A.value,A.verbatimLatex=void 0,s+=A.value),n-=1,t-=1}e.contentDidChange({data:s,inputType:"insertText"})}function Qd(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1;const s=[];for(;!i;){const A=e.at(n);i=t===0||!A||A.type==="first"||A.isFirstSibling||A.mode!=="text"||A.value===" "||typeof r=="function"&&!r(A),i||(s.push(Zr.serialize([A],{defaultMode:"math"})),A.mode="math"),n-=1,t-=1}_0(e),e.contentDidChange({data:wa(s),inputType:"insertText"})}function _0(e){var t;let r=e.position-1;for(;r>=0&&((t=e.at(r))==null?void 0:t.mode)==="math";)r-=1;if(!(r<0)&&e.at(r).mode==="text"&&e.at(r).value===" "&&e.at(r-1).mode==="math"){e.at(r-1).parent.removeChild(e.at(r-1));const n=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=n,e.contentDidChange({inputType:"deleteContent"})}}function Yp(e){let t="",r=e.position,n=!1;for(;!n;){const i=e.at(r);n=!(i&&(i.mode==="text"||i.mode==="math"&&i.type&&/mord|mpunct/.test(i.type))),n||(t=i.value+t),r-=1}return t}function qp(e,t,r){const{model:n}=e;if(n.mode==="latex"||!n.at(n.position).isLastSibling||!r||!no(r))return!1;const i=bl(r);if(!n.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(i));const s=Yp(n)+i;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(i))return!0;if(/[\^_]/.test(i))return/(^|\s)[a-zA-Z][^_]$/.test(s)&&Qd(n,1),!0;const A={")":"(","}":"{","]":"["}[i],{parent:M}=n.at(n.position);if(A&&M instanceof Xa&&M.leftDelim===A)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(s))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(i))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(s))return Qd(n,1),!1;if(/\D\.[^\d\s]$/.test(s)){Qd(n,1);const z=n.at(n.position);return z.value="\u22C5",z.style.variant="normal",z.command="\\cdot",z.verbatimLatex=void 0,n.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(s)||/\.\d$/.test(s)||/\([\d+\-.]$/.test(s))return Qd(n,1),!0;if(/\([a-z][,;]$/.test(s))return Qd(n,2),!0;if(/[\d+\-=><*|]$/.test(i))return _0(n),!0}else{if(t==="[Space]")return i0(n,void 0,A=>/[a-z][:,;.]$/.test(A.value)),!0;if(/[a-zA-Z]{3,}$/.test(s)&&!/(dxd|abc|xyz|uvw)$/.test(s))return i0(n,void 0,A=>/[a-zA-Z]/.test(A.value)),!0;if(/(^|\W)(if)$/i.test(s))return i0(n,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(s)&&!/(αβγ)$/.test(s))return i0(n,void 0,A=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(A.value)),!0;if(i==="?"||i==="."&&!/[\d-+]\.$/.test(s))return!0}return!1}function em(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=dh(),n=e.element.getBoundingClientRect();r.style.left=`${n.left}px`,r.style.top=`${n.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(ai(t)||t)+"</span>"+r.innerHTML),r.style.visibility="visible",setTimeout(()=>{r.childNodes.length>0&&r.childNodes[r.childNodes.length-1].remove(),r.childNodes.length===0&&(r.style.visibility="hidden")},3e3)}function tm(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=dh();t.innerHTML=""}else{const t=pd("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function dh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(Kl("keystroke-caption"),Kl("core"),pd("mathlive-keystroke-caption-panel"))}function rm(){document.getElementById("mathlive-keystroke-caption-panel")&&(qd("mathlive-keystroke-caption-panel"),bc("core"),bc("keystroke-caption"))}function fh(e,t){var r,n,i;const{model:s}=e,A=qs(t);if(t.isTrusted){tn(t);const Ft=Jn();e.keyboardLayout!==Ft.id&&(e.keyboardLayout=Ft.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,em(e,A),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let M,z="",J;const Ae=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(s.mode==="math")if(A==="[Backspace]")Ae.pop();else if(!no(t))e.flushInlineShortcutBuffer();else{const Ft=bl(t),Ot=[...(n=(r=Ae[Ae.length-1])==null?void 0:r.keystrokes)!=null?n:[],Ft];Ae.push({state:s.getState(),keystrokes:Ot,leftSiblings:nm(e)});let Er=0,En="";for(;!M&&Er<Ot.length;)J=Ae.length-(Ot.length-Er),En=Ot.slice(Er).join(""),M=kc(Ae[J].leftSiblings,En,e.options.inlineShortcuts),!M&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(En)&&(M=e.options.onInlineShortcut(e,En)),Er+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(M?e.switchMode("math"):qp(e,A,t)&&(e.switchMode({math:"text",text:"math"}[s.mode]),z=""))}if(!M){if(z||(z=es(e.keybindings,s.mode,t)),!z&&(A==="[Enter]"||A==="[Return]")){let Ft=!1;return s.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(Ft=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Ft||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),s.contentDidChange({inputType:"insertLineBreak"})),Ft}if((!z||A==="[Space]")&&s.mode==="math"){if(A==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return zi.insert(s,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),z="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const Ft=s.at(s.position+1),Ot=s.at(s.position-1);if((Ft==null?void 0:Ft.mode)==="text"||(Ot==null?void 0:Ot.mode)==="text")return zi.insert(s," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(i=s.at(s.position))!=null&&i.isDigit()&&window.MathfieldElement.decimalSeparator===","&&bl(t)===","&&(z="insertDecimalSeparator")}}if(!M&&!z){if(s.mathfield.smartFence){if(I0(s,bl(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:Ft}=s.at(s.position);if(Ft instanceof Xa&&Ft.rightDelim==="?"&&s.at(s.position).isLastSibling&&/^[)}\]|]$/.test(A))return e.snapshot(),Ft.isDirty=!0,Ft.rightDelim=A,s.position+=1,s.selectionDidChange(),s.contentDidChange({data:bl(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!s.selectionIsCollapsed){const Ot=bl(t);if(Ot==="("||Ot==="{"||Ot==="["){const Er={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Ot],En={"(":")","{":"\\rbrace","[":"\\rbrack"}[Ot],[Cr,nn]=ws(s.selection);return e.snapshot(),s.position=nn,zi.insert(s,En,{format:"latex"}),s.position=Cr,zi.insert(s,Er,{format:"latex"}),s.setSelection(Cr+1,nn+1),s.contentDidChange({data:Ot,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Qe=s.at(Math.max(s.position,s.anchor)),{parent:ft}=Qe;if(z==="moveAfterParent"&&(ft==null?void 0:ft.type)==="leftright"&&Qe.isLastSibling&&e.options.smartFence&&I0(s,".",e.defaultStyle)&&(z="",Es(e)),e.keyboardDelegate.cancelComposition(),z)e.executeCommand(z);else if(M){const Ft=e.effectiveStyle;s.setState(Ae[J].state);const Ot=Ae[Ae.length-1].keystrokes;for(const Er of Ot)zi.insert(s,Er,{silenceNotifications:!0,style:Ft});e.snapshot("insert-shortcut"),s.setState(Ae[J].state),s.deferNotifications({content:!0,selection:!0,data:M,type:"insertText"},()=>(zi.insert(s,M,{format:"latex",style:Ft}),_0(e.model),M.endsWith(" ")&&(e.switchMode("text"),zi.insert(s," ",{style:Ft,mode:"text"})),e.snapshot(),s.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,s.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function F0(e,t,r){const{model:n}=e;if(!e.isSelectionEditable){n.announce("plonk");return}r!=null||(r={}),r.focus&&e.focus(),r.feedback&&window.MathfieldElement.playSound("keypress"),typeof r.mode=="string"&&(e.switchMode(r.mode),e.snapshot());let i=Gl(t);const s=window.mathVirtualKeyboard;if(s!=null&&s.isShifted&&(i=typeof i=="string"?i.toUpperCase():i.map(z=>z.toUpperCase())),r.simulateKeystroke){let z=!0;for(const J of i)fh(e,new KeyboardEvent("keypress",{key:J}))&&(z=!1);if(z)return}const A=n.at(n.position),M=f(f({},A.computedStyle),e.defaultStyle);if(n.selectionIsCollapsed||(n.deleteAtoms(ws(n.selection)),e.snapshot("delete")),n.mode==="latex")n.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{NA(e);for(const z of i)zi.insert(n,z);e.snapshot("insert-latex"),OA(e)});else if(n.mode==="text"){for(const z of i)zi.insert(n,z,{style:M});e.snapshot("insert-text")}else if(n.mode==="math")for(const z of i)im(e,z,M,A);e.dirty=!0,e.scrollIntoView()}function nm(e){const t=e.model,r=[];let n=t.at(Math.min(t.position,t.anchor));for(;n.type!=="first";)r.push(n),n=n.leftSibling;return r}function im(e,t,r,n){const i=e.model;let s={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(s=["insert",e.options.mathModeSpace]),s){e.executeCommand(s);return}if(/\d/.test(t)&&e.options.smartSuperscript&&n.parentBranch==="superscript"&&n.parent.type!=="mop"&&n.parent.type!=="operator"&&n.parent.type!=="extensible-symbol"&&n.hasNoSiblings){am(i),zi.insert(i,t,{style:r}),e.snapshot(),lh(i),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const A=e.adoptStyle==="left"?n:n.parent?n.rightSibling:null;(A==null?void 0:A.type)==="mord"&&/[a-zA-Z0-9]/.test(A.value)&&(r=f({},r),A.style.variant&&(r.variant=A.style.variant),A.style.variantStyle&&(r.variantStyle=A.style.variantStyle))}zi.insert(i,t,{style:r}),e.snapshot(`insert-${i.at(i.position).type}`)}function am(e){e.selectionIsCollapsed||(e.deleteAtoms(ws(e.selection)),e.mathfield.snapshot("delete"))}function I0(e,t,r){if(!t||e.mode!=="math")return!1;const n=e.at(e.position),{parent:i}=n,s={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!s)return!1;const A=Pc[s],M=Hl[s];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[z,J]=ws(e.selection),Ae=e.extractAtoms([z,J]),Qe=i.addChildrenAfter([new Xa("left...right",Ae,{leftDelim:s,rightDelim:M})],e.at(z));return e.setSelection(e.offsetOf(Qe.firstChild),e.offsetOf(Qe.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(s==="|"){const z=i instanceof Xa?i.leftDelim+i.rightDelim:"";if(z==="\\lbrace\\rbrace"||z==="\\{\\}"||z==="\\lbrace?")return e.mathfield.snapshot(),zi.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(M){if(i instanceof Xa&&i.firstChild===n&&(i.leftDelim==="?"||i.leftDelim==="."))return i.leftDelim=s,i.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(i instanceof Xa)){let Qe=n;for(;Qe&&!(Qe.type==="mclose"&&Qe.value===M);)Qe=Qe.rightSibling;if(Qe){e.mathfield.snapshot();const ft=e.extractAtoms([e.offsetOf(n),e.offsetOf(Qe)]);return ft.pop(),i.addChildrenAfter([new Xa("left...right",ft,{leftDelim:s,rightDelim:M})],n),e.position=e.offsetOf(i.firstChild)+1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const z=e.offsetOf(n.lastSibling);let J;for(J=e.position;J<=z;J++){const Qe=e.at(J);if(Qe instanceof Xa&&(Qe.leftDelim==="?"||Qe.leftDelim===".")&&hh(s,Qe.rightDelim))break}const Ae=e.at(J);if(J<=z&&Ae instanceof Xa){Ae.leftDelim=s,e.mathfield.snapshot();let Qe=e.extractAtoms([e.position,J-1]);return Qe=Qe.filter(ft=>ft.type!=="first"),Ae.addChildren(Qe,Ae.parentBranch),e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(i instanceof Xa&&(i.leftDelim==="?"||i.leftDelim===".")&&hh(s,i.rightDelim)){i.isDirty=!0,i.leftDelim=s,e.mathfield.snapshot();const Qe=e.extractAtoms([e.offsetOf(n.firstSibling),e.position]);for(const ft of Qe)i.parent.addChildBefore(ft,i);return e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(i instanceof Xa&&i.leftDelim==="|")){if(e.mathfield.snapshot(),zi.insert(e,`\\left${s}\\right?`,{format:"latex",style:r}),n.lastSibling.type!=="first"){const Qe=e.offsetOf(n.lastSibling),ft=e.extractAtoms([e.position,Qe]);e.at(e.position).body=ft,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(A){let z=n;for(;z;){if(z.type==="mopen"&&z.value===A){e.mathfield.snapshot();const Ft=z.leftSibling,Ot=e.extractAtoms([e.offsetOf(z.leftSibling),e.offsetOf(n)]);Ot.shift();const Er=new Xa("left...right",Ot,{leftDelim:A,rightDelim:s});return i.addChildrenAfter([Er],Ft),e.position=e.offsetOf(Er),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}z=z.leftSibling}if(i instanceof Xa&&n.isLastSibling&&M0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const J=e.offsetOf(n.firstSibling);let Ae;for(Ae=e.position;Ae>=J;Ae--){const Ft=e.at(Ae);if(Ft instanceof Xa&&(Ft.rightDelim==="?"||Ft.rightDelim===".")&&M0(Ft.leftDelim,s))break}const Qe=e.at(Ae);if(Ae>=J&&Qe instanceof Xa)return e.mathfield.snapshot(),Qe.rightDelim=s,Qe.addChildren(e.extractAtoms([Ae,e.position]),Qe.parentBranch),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(i instanceof Xa&&(i.rightDelim==="?"||i.rightDelim===".")&&M0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,i.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(n.lastSibling)]),i.parentBranch),e.position=e.offsetOf(i),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const ft=i.parent;return ft instanceof Xa&&(ft.rightDelim==="?"||ft.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(ft),I0(e,s,r)):!1}return!1}function M0(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Hl[e]===t:!0}function hh(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):Pc[t]===e:!0}ic({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:tm,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,n)=>(e.switchMode(t,r,n),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(F0(e,t,r),!0),insertDecimalSeparator:e=>{const t=e.model;return t.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&t.at(Math.max(t.position,t.anchor)).isDigit()?(e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0):(e.insert("."),!0)},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&((t=e.host)==null||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,r)=>{const n=e.getPrompts();let i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s=0;for(;n.includes(i)&&s<100;){if(s===99)return console.error("could not find a unique ID after 100 tries"),!1;i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s++}return e.insert(`\\placeholder[${t!=null?t:i}]{}`,r),!0}}),ic({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),ic({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(OA(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),Es(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function om(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=L0(e,t),{model:n}=e;return n.selectionIsCollapsed?(e.defaultStyle.fontSeries&&r.fontSeries===e.defaultStyle.fontSeries&&(r.fontSeries="auto"),r.fontShape&&r.fontShape===e.defaultStyle.fontShape&&(r.fontShape="auto"),r.color&&r.color===e.defaultStyle.color&&(r.color="none"),r.backgroundColor&&r.backgroundColor===e.defaultStyle.backgroundColor&&(r.backgroundColor="none"),r.fontSize&&r.fontSize===e.defaultStyle.fontSize&&(r.fontSize="auto"),e.defaultStyle=f(f({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{n.selection.ranges.forEach(i=>C0(n,i,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}ic({applyStyle:om},{target:"mathfield",canUndo:!0,changeContent:!0});function L0(e,t){var r,n,i,s,A,M,z,J,Ae,Qe;const ft={};if(typeof t.color=="string"){const Ot=(n=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?n:"none";Ot!==t.color&&(ft.verbatimColor=(i=t.verbatimColor)!=null?i:t.color),ft.color=Ot}if(typeof t.backgroundColor=="string"){const Ot=(A=e.backgroundColorMap((s=t.backgroundColor)!=null?s:t.verbatimBackgroundColor))!=null?A:"none";Ot!==t.backgroundColor&&(ft.verbatimBackgroundColor=(M=t.verbatimBackgroundColor)!=null?M:t.backgroundColor),ft.backgroundColor=Ot}typeof t.fontFamily=="string"&&(ft.fontFamily=t.fontFamily),typeof t.series=="string"&&(ft.fontSeries=t.series),typeof t.fontSeries=="string"&&(ft.fontSeries=t.fontSeries.toLowerCase()),ft.fontSeries&&(ft.fontSeries=(z={bold:"b",medium:"m",normal:"m"}[ft.fontSeries])!=null?z:ft.fontSeries),typeof t.shape=="string"&&(ft.fontShape=t.shape),typeof t.fontShape=="string"&&(ft.fontShape=t.fontShape.toLowerCase()),ft.fontShape&&(ft.fontShape=(J={italic:"it",up:"n",upright:"n",normal:"n"}[ft.fontShape])!=null?J:ft.fontShape),t.variant&&(ft.variant=t.variant.toLowerCase()),t.variantStyle&&(ft.variantStyle=t.variantStyle.toLowerCase());const Ft=(Ae=t.size)!=null?Ae:t.fontSize;return typeof Ft=="number"?ft.fontSize=Math.max(1,Math.min(10,Ft)):typeof Ft=="string"&&(ft.fontSize=(Qe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Ft.toLowerCase()])!=null?Qe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Ft]),ft}function k0(e){let[t,r]=ws(e.selection);if(t=ph(e,t,"backward"),r=ph(e,r,"forward"),t===r){const n=e.at(t);if(n.type==="leftright")return e.setSelection(e.offsetOf(n.firstChild)-1,r);if(n.type==="first"&&(n.parent.type==="leftright"||n.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(n.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function ph(e,t,r){var n,i,s;let A=e.at(t);if(!A)return t;const M=r==="forward"?1:-1;if(A.mode==="text"){for(;A&&!(A.mode!=="text"||!u.test(A.value));)t+=M,A=e.at(t);return r==="backward"?t-1:t}if(A.mode==="latex"){if(/[a-zA-Z\*]/.test(A.value))if(r==="backward")for(;A&&A.mode==="latex"&&A.value!=="\\"&&/[a-zA-Z]/.test(A.value);)t+=M,A=e.at(t);else for(;A&&A.mode==="latex"&&/[a-zA-Z\*]/.test(A.value);)t+=M,A=e.at(t);else if(A.value==="{"){if(r==="forward"){for(;A&&A.mode==="latex"&&A.value!=="}";)t+=M,A=e.at(t);return t}return t-1}else if(A.value==="}"){if(r==="backward"){for(;A&&A.mode==="latex"&&A.value!=="{";)t+=M,A=e.at(t);return t-1}return t}return t-1}if(A.mode==="math"){if(A.isDigit()){for(;(n=e.at(t+M))!=null&&n.isDigit();)t+=M;return r==="backward"?t-1:t}if(A.style.variant||A.style.variantStyle){let z=(i=e.at(t))==null?void 0:i.style;for(;z&&z.variant===A.style.variant&&z.variantStyle===A.style.variantStyle;)z=(s=e.at(t+M))==null?void 0:s.style,t+=M;return r==="backward"?t-1:t}return t}return t}ic({selectGroup:e=>{const t=k0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>Cu(e,"forward",{extend:!0}),extendSelectionBackward:e=>Cu(e,"backward",{extend:!0}),extendToNextWord:e=>sf(e,"forward",{extend:!0}),extendToPreviousWord:e=>sf(e,"backward",{extend:!0}),extendSelectionUpward:e=>Cu(e,"upward",{extend:!0}),extendSelectionDownward:e=>Cu(e,"downward",{extend:!0}),extendToNextBoundary:e=>sf(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>sf(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var Kd=null,If=0,a0=class QA{static start(t,r,n,i){var s;QA.element=t,(s=QA.controller)==null||s.abort(),QA.controller=new AbortController;const A={signal:QA.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",n,A),t.addEventListener("pointerup",i,A),t.addEventListener("pointercancel",i,A),D0(r)&&(QA.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",n,A),window.addEventListener("blur",i,A),window.addEventListener("mouseup",i,A))}static stop(){var t;(t=QA.controller)==null||t.abort(),QA.controller=void 0,typeof QA.pointerId=="number"&&(QA.element.releasePointerCapture(QA.pointerId),QA.pointerId=void 0)}};function D0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function mh(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const n=e;let i,s=!1,A=!1,M="none",z=!1,J=!1;const Ae=t.clientX,Qe=t.clientY,ft=Date.now(),Ft=n.field,Ot=setInterval(()=>{z?Ft.scroll({top:0,left:Ft.scrollLeft-16}):J&&Ft.scroll({top:0,left:Ft.scrollLeft+16})},32);function Er(){a0.stop(),s=!1,clearInterval(Ot),e.element.classList.remove("tracking"),t&&t.preventDefault()}function En(nn){if(!n.hasFocus()){Er();return}const Pn=nn.clientX,pn=nn.clientY,Ii=D0(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<ft+500&&Math.abs(Ae-Pn)<Ii&&Math.abs(Qe-pn)<Ii){nn.preventDefault(),nn.stopPropagation();return}const $i=Ft.getBoundingClientRect();J=Pn>$i.right,z=Pn<$i.left;let Ui=i;D0(nn)&&(nn.isPrimary||(Ui=Mf(n,nn.clientX,nn.clientY,{bias:0})));const lo=Mf(n,Pn,pn,{bias:Pn<=Ae?Pn===Ae?0:-1:1});Ui>=0&&lo>=0&&(n.model.extendSelectionTo(Ui,lo),Es(e)),A&&k0(n.model)}Kd&&Math.abs(Kd.x-Ae)<5&&Math.abs(Kd.y-Qe)<5&&Date.now()<Kd.time+500?(If+=1,Kd.time=ft):(Kd={x:Ae,y:Qe,time:ft},If=1);const Cr=Ft.getBoundingClientRect();if(Ae>=Cr.left&&Ae<=Cr.right&&Qe>=Cr.top&&Qe<=Cr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",i=Mf(e,Ae,Qe,{bias:0}),i>=0){if(e.element.classList.add("tracking"),t.shiftKey){const nn=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,i),ru(e.model)||nn?M="all":M="selection"}else e.model.at(i).type==="placeholder"?(e.model.setSelection(i-1,i),M="selection"):((r=e.model.at(i).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(i,i+1),M="selection"):(e.model.position=i,ru(e.model)?M="all":M="selection");e.defaultStyle={},t.detail===3||If>2?(Er(),(t.detail===3||If===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},M="all")):s||(s=!0,a0.start(Ft,t,En,Er),(t.detail===2||If===2)&&(A=!0,k0(e.model),M="all"))}e.hasFocus()||(M="none",e.focus({preventScroll:!0}))}else Kd=null;e.stopCoalescingUndo(),M!=="none"&&(e.model.selectionIsCollapsed&&(M="all"),Es(e)),t.preventDefault()}function sm(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const n=e-(r.left+r.right)/2,i=t-(r.top+r.bottom)/2;return n*n+i*i}function gh(e,t,r,n,i){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const s=oA(e,r);if(!s)return[1/0,null];let A=[1/0,null];if(r.hasChildren&&!r.captureSelection&&n>=s.left&&n<=s.right)for(const M of r.children){const z=gh(e,t,M,n,i);z[0]<=A[0]&&(A=z)}return A[1]||(A=[sm(n,i,s),r]),t.set(r.id,A),A}function lm(e,t,r){const[,n]=gh(e,new Map,e.model.root,t,r);return n}function Mf(e,t,r,n){var i;const s=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!s)return 0;if(t>s.right||r>s.bottom+8)return e.model.lastOffset;if(t<s.left||r<s.top-8)return 0;n=n!=null?n:{},n.bias=(i=n.bias)!=null?i:0;let A=lm(e,t,r);const M=[];let z=A;for(;z;)M.unshift(z),z=z.parent;for(const Ae of M)if(Ae.captureSelection){A=Ae;break}let J=e.model.offsetOf(A);if(J<0)return-1;if(A.leftSibling)if(n.bias===0&&A.type!=="placeholder"){const Ae=oA(e,A);Ae&&t<(Ae.left+Ae.right)/2&&(J=e.model.offsetOf(A.leftSibling))}else n.bias<0&&(J=e.model.offsetOf(A.leftSibling));return J}var cm=class extends zi{constructor(){super("math")}onPaste(e,t){if(!t||!e.model.contentWillChange({data:typeof t=="string"?t:null,dataTransfer:typeof t=="string"?null:t,inputType:"insertFromPaste"}))return!1;let r="",n="auto",i=typeof t!="string"?t.getData("application/json+mathlive"):"";if(i)try{const s=JSON.parse(i);if(s&&Array.isArray(s)){e.snapshot();const A=pA(s),{model:M}=e;M.selectionIsCollapsed||M.deleteAtoms(ws(M.selection));const z=M.at(M.position);if(z.parent instanceof oa){console.assert(z.parentBranch!==void 0);const J=[];let Ae=[];A[0].type==="first"&&A.shift(),A[A.length-1].type==="first"&&A.pop();for(const Ot of A)Ot.type==="first"&&Ae.length>0?(J.push(Ae),Ae=[Ot]):Ae.push(Ot);Ae.length>0&&J.push(Ae);let Qe=Number(z.parentBranch[0]),ft=Number(z.parentBranch[1]);const Ft=z.parent.maxColumns;for(;z.parent.colCount-ft<J.length&&z.parent.colCount<Ft;)z.parent.addColumn();z.parent.addChildrenAfter(J[0],z);for(let Ot=1;Ot<J.length;Ot++)ft++,ft>=Ft&&(ft=0,z.parent.addRowAfter(Qe),Qe++),z.parent.setCell(Qe,ft,J[Ot])}else z.parent.addChildrenAfter(A.filter(J=>J.type!=="first"),z);return M.position=M.offsetOf(A[A.length-1]),M.contentDidChange({inputType:"insertFromPaste"}),Es(e),!0}}catch(s){}if(i=typeof t!="string"?t.getData("application/json"):"",i&&window.MathfieldElement.computeEngine)try{const s=JSON.parse(i);if(typeof s=="object"&&"latex"in s&&s.latex&&(r=s.latex),!r){const A=window.MathfieldElement.computeEngine.box(s);A&&!A.has("Error")&&(r=A.latex)}r||(n="latex")}catch(s){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(n="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let s;return[s,r]=Xr(r),n==="auto"&&s&&(n="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:n})&&(e.startRecording(),e.snapshot("paste"),Es(e)),e.startRecording(),!0}return!1}insert(e,t,r){var n,i;const s=typeof t=="string"?t:(i=(n=window.MathfieldElement.computeEngine)==null?void 0:n.box(t).latex)!=null?i:"";if(!r.silenceNotifications&&!e.contentWillChange({data:s,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:A}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const M=e.silenceNotifications;e.silenceNotifications=!0;const z={"?":"\\placeholder{}","@":"\\placeholder{}"};z[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(ws(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward"),!e.at(e.position).isLastSibling&&e.at(e.position+1).type==="placeholder"?e.deleteAtoms([e.position,e.position+1]):e.at(e.position).type==="placeholder"&&e.deleteAtoms([e.position-1,e.position]);let J=-1;z[0]?z["@"]=z[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(J=um(e),J>=0&&(z["@"]=e.getValue(J,e.position,"latex"))),z[0]||(z[0]=z["?"]);let Ae=!1;const Qe=Pn=>(Ae=!0,z[Pn]);let[ft,Ft]=vh(e,t,Qe,r);if(!Ft)return!1;const Ot=Ft.length===1&&Ft[0].type==="genfrac";Ot&&J>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(z["@"]=z["?"],Ae=!1,[ft,Ft]=vh(e,t,Qe,r)):J>=0&&e.deleteAtoms([J,e.position]);const{parent:Er}=e.at(e.position),En=Er.hasEmptyBranch("body");if(Ot&&ft!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Er instanceof Xa&&Er.leftDelim==="("&&En){const Pn=Er.parent,pn=Er.parentBranch;Pn.removeChild(Er),Pn.setChildren(Ft,pn)}const Cr=e.at(e.position);Cr.parent.addChildrenAfter(Ft,Cr),ft==="latex"&&typeof t=="string"&&(Er==null?void 0:Er.type)==="root"&&En&&!Ae&&(Er.verbatimLatex=t),e.silenceNotifications=M;const nn=Ft[Ft.length-1];if(r.selectionMode==="placeholder"){const Pn=Ft.flatMap(pn=>[pn,...pn.children]).find(pn=>pn.type==="placeholder");if(Pn){const pn=e.offsetOf(Pn);e.setSelection(pn-1,pn),e.announce("move")}else nn&&(e.position=e.offsetOf(nn))}else r.selectionMode==="before"||(r.selectionMode==="after"?nn&&(e.position=e.offsetOf(nn)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(nn)));return e.contentDidChange({data:s,inputType:"insertText"}),e.silenceNotifications=A,!0}};function vh(e,t,r,n){var i;let s,A=[];if(typeof t!="string"||n.format==="math-json"){const M=window.MathfieldElement.computeEngine;if(!M)return["math-json",[]];[s,t]=["latex",M.box(t).latex],A=al(t,{context:e.mathfield.context})}else typeof t=="string"&&n.format==="ascii-math"?([s,t]=P(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),A=al(t,{context:e.mathfield.context}),s!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A)):(n.format==="auto"||(i=n.format)!=null&&i.startsWith("latex"))&&(n.format==="auto"&&([s,t]=P(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),n.format==="latex"&&([,t]=Xr(t)),A=al(t,{context:e.mathfield.context,args:r}),n.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A));return wd(A,n.style),[s!=null?s:"latex",A]}function Am(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof Xa&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function o0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof Xa&&r.leftDelim==="("){let n=0,i=0,s=0;for(let A=0;r.body[A];A++)r.body[A].type==="genfrac"&&(n++,i=A),s++;s===0&&n===1&&(e[t]=r.body[i])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){o0(t.branch(r));const n=Am(t.branch(r));n&&t.setChildren(n,r)}if(t instanceof oa)for(const r of t.cells)o0(r)}}}function um(e){let t=e.at(e.position);if(t.mode==="text"){for(;!t.isFirstSibling&&t.mode==="text";)t=t.leftSibling;return e.offsetOf(t)}const r=t;let n=!1;if(t.type==="mclose"){const i=Pc[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===i);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),n=!0}else t.type==="leftright"&&(t=t.leftSibling,n=!0);if(n)for(;!t.isFirstSibling&&(t.isFunction||yh(t));)t=t.leftSibling;else{const i=[];for(;!t.isFirstSibling&&(yh(t)||i.length>0);)t.type==="mclose"&&i.unshift(t.value),t.type==="mopen"&&i.length>0&&t.value===Pc[i[0]]&&i.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function yh(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new cm;var dm=class extends zi{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),Es(e)),e.startRecording(),!0):!1}insert(e,t,r={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(ws(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const s=fm(t,e.mathfield.context);if(wd(s,r.style),!s)return!1;const A=e.at(e.position),M=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(M)):M&&(e.position=e.offsetOf(M))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function fm(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),al(e,{context:t,parseMode:"text"})}new dm;function Bu(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var us=4,Qc=20,sl=2*(Qc+us),s0=(e,t)=>`
<line x1="${e+Qc}" y1="${t+Qc}"
x2="${e>t?e+Qc:7*Qc+10*us}"
y2="${e<t?t+Qc:7*Qc+10*us}"/>
<svg id="plus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
</svg>`,bh=(e,t)=>`
<line x1="${e+Qc}" y1="${t+Qc}"
x2="${e>t?e+Qc:7*Qc+10*us}"
y2="${e<t?t+Qc:7*Qc+10*us}"/>
<svg id="minus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
</svg>`,l0=(e,t,r)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${r})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,hm=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*Qc+10*us+5} ${8*Qc+10*us+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${sl+us}"
height="${3*sl}"
width="${sl}"
rx="${sl/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${sl+us}"
y="0"
height="${sl}"
width="${3*sl}"
rx="${sl/2}"/>
<g data-command='"moveDown"'>
${l0(2*(us+sl),2*us+3*sl,0)}
</g>
<g data-command='"moveUp"'>
${l0(2*(us+sl),2*us+sl,180)}
</g>
<g data-command='"moveToNextWord"'>
${l0(2*us+3*sl,2*(us+sl),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${l0(2*us+sl,2*(us+sl),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${s0(2*us+sl,us)}
</g>
<g data-command='"removeColumn"'>
${bh(2*us+2*sl,us)}
</g>
<g data-command='"addColumnAfter"'>
${s0(2*us+3*sl,us)}
</g>
<g data-command='"addRowBefore"'>
${s0(us,2*us+sl)}
</g>
<g data-command='"removeRow"'>
${bh(us,2*us+2*sl)}
</g>
<g data-command='"addRowAfter"'>
${s0(us,2*us+3*sl)}
</g>
</svg>`,pm=e=>`
<svg id="matrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,mm=e=>`
<svg id="pmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,wh=e=>`
<svg id="Bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","Bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,gm=e=>`
<svg id="bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,vm=e=>`
<svg id="vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,ym=e=>`
<svg id="Vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,bm=e=>`
<svg id="cases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,wm=e=>`
<svg id="rcases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,P0={matrix:pm,pmatrix:mm,bmatrix:gm,Bmatrix:wh,vmatrix:vm,Vmatrix:ym},N0={cases:bm,rcases:wm,Bmatrix:wh};function xm(e){var t,r;const n=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!n)return;let i=0;n.forEach(Ot=>{(!i||Ot.length>i)&&(i=Ot.length)});let s=document.getElementById("mathlive-environment-popover");s||(s=pd("mathlive-environment-popover"),Kl("environment-popover"),Kl("core"),s.setAttribute("aria-hidden","true"));let A;const M=s.querySelector(".MLEP__environment-controls");M?A=M:(A=document.createElement("div"),s.innerHTML="",s.appendChild(A)),A.className="MLEP__environment-controls",A.style.display="flex",A.style.width="100%",A.style.height="100%",A.style.boxSizing="border-box",A.innerHTML=hm;let z=[],J="";const Ae=e.model.parentEnvironment.environmentName;if(Ac(Ae)){const Ot=Bm(Ae);J=P0[Ot]("active");const Er=P0,{[Ot]:En}=Er,Cr=Z(Er,[h(Ot)]);z=Object.values(Cr).map(nn=>nn("inactive"))}else if($o(Ae)){const Ot=Sm(Ae);J=N0[Ot]("active");const Er=N0,{[Ot]:En}=Er,Cr=Z(Er,[h(Ot)]);z=Object.values(Cr).map(nn=>nn("inactive"))}else is(Ae)&&(J=P0.matrix("active"),z=Object.values(N0).map(Ot=>Ot("inactive")));const Qe=document.createElement("div");Qe.className="MLEP__environment-delimiter-controls",Qe.style.display="flex",Qe.style.flexDirection="column",Qe.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${J}
${z.join("")}
</div>`,J&&A.appendChild(Qe),A.querySelectorAll("[data-command]").forEach(Ot=>{const Er=Ot.dataset.command;let En=Er;try{En=JSON.parse(Er)}catch(Cr){}Ot.addEventListener("mousedown",Cr=>Cr.preventDefault()),En&&Ot.addEventListener("click",()=>e.executeCommand(En))});const Ft=(r=e.field)==null?void 0:r.getBoundingClientRect();Ft&&(s.style.top=`${window.scrollY+(Ft.top-s.clientHeight-15)}px`,s.style.left=`${Ft.left+20}px`,s.classList.add("is-visible"))}function O0(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function Cm(){document.getElementById("mathlive-environment-popover")&&(qd("mathlive-environment-popover"),bc("environment-popover"),bc("core"))}function c0(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&Bc(r.environmentName)){const n=e.options.environmentPopoverPolicy;t=n==="auto"||n==="on"}}t?xm(e):O0()}function Bm(e){return e.replace("*","")}function Sm(e){return e==="dcases"?"cases":e}function xh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function Ch(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function T0(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="rtl"||r==="end"&&n==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Em(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="ltr"||r==="end"&&n==="rtl"||r==="top"||r==="right"?e:e-t}function _m(e,t){var r,n,i;const s=(r=xh(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const A=e.getBoundingClientRect(),M=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let z=Math.min(M,(n=t.height)!=null?n:A.height),J=T0(t.location.y,z,t.verticalPos,s);J+z>window.innerHeight-8&&(t.alternateLocation?(J=T0(t.alternateLocation.y,z,t.verticalPos,s),J+z>window.innerHeight-8&&(J=void 0)):J=void 0),Number.isFinite(J)||(J=Math.max(8,window.innerHeight-8-z),8+z>window.innerHeight-8&&(e.style.bottom="8px")),z=Math.min(J+z,window.innerHeight-8)-J;const Ae=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Qe=Math.min(Ae,(i=t.width)!=null?i:A.width),ft=T0(t.location.x,Qe,t.horizontalPos,s);ft+Qe>window.innerWidth-8&&(t.alternateLocation?(ft=Em(t.alternateLocation.x,Qe,t.verticalPos,s),ft+Qe>window.innerWidth-8&&(ft=void 0)):ft=void 0),Number.isFinite(ft)||(ft=Math.max(8,window.innerWidth-8-Qe),8+Qe>window.innerWidth-8&&(e.style.right="8px")),Qe=Math.min(ft+Qe,window.innerWidth-8)-ft,s==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-ft-Qe).toString()}px`:e.style.left=`${Math.ceil(ft).toString()}px`,e.style.top=`${Math.ceil(J).toString()}px`,z!==A.height&&(e.style.height=`${Math.ceil(z).toString()}px`),Qe!==A.width&&(e.style.width=`${Math.ceil(Qe).toString()}px`)}function Fm(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function lf(e){return"submenu"in e}function Su(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function U0(e){return"type"in e&&e.type==="divider"}function R0(e){return"type"in e&&e.type==="heading"}var Bh={};function Q0(e){let t=Bh[e];if(!t){let r;switch(e){case"checkmark":r=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
</span>`;break;case"trailing-chevron":r='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":r='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(r){const n=document.createElement("template");n.innerHTML=r,Bh[e]=n,t=n}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var Sh=80,Eh=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,lf(e)?(this.type="submenu",this.submenu=new _h(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=Su(e)&&e.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;(e=this._abortController)==null||e.abort(),this._abortController=void 0,(t=this._element)==null||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return(e=this._label)!=null?e:""}set label(e){e===void 0&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return(t=(e=this.element)==null?void 0:e.classList.contains("active"))!=null?t:!1}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,r,n;const i=this._declaration;if(U0(i)){this.enabled=!1,this.checked=!1;return}R0(i)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Su(i)&&(this.checked=Su(i)&&((t=cf(i.checked,e))!=null?t:!1)),(Su(i)||lf(i))&&(this.enabled=(r=cf(i.enabled,e))!=null?r:!0,this.visible=(n=cf(i.visible,e))!=null?n:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(Su(i)||R0(i)||lf(i))&&(this.label=cf(i.label,e),this.tooltip=cf(i.tooltip,e),this.ariaLabel=cf(i.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(e===!0),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),this.checked===!0?(e.setAttribute("aria-checked","true"),e.append(Q0("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(Q0("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),Su(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=ai(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(Q0("trailing-chevron"))}get element(){if(this._element)return this._element;if(U0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(Su(this._declaration)||R0(this._declaration)||lf(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),this.type==="submenu"&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!Su(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(!(!this.visible||!this.enabled)){if(e.type==="click"){this.rootMenu.state==="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}if(e.type==="pointerenter"){const r=e;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((t=this.parentMenu.activeMenuItem)!=null&&t.movingTowardSubmenu(r))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(e.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(e.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},Sh)},Sh)}openSubmenu(e){var t;if(this.type!=="submenu"||!this.element)return;if((t=e==null?void 0:e.withDelay)!=null&&t){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const r=this.element.getBoundingClientRect(),n=xh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Ch(r,"trailing",n),y:r.top-4},alternateLocation:{x:Ch(r,"leading",n),y:r.top-4}})}movingTowardSubmenu(e){if(!this.element||this.type!=="submenu")return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const r=e.timeStamp-t.timeStamp;if(r>500)return!1;const n=e.clientX-t.clientX;if(Im(n,t.clientY-e.clientY,r)<=.2)return!1;let s="right";if(this.submenu.element){const A=this.submenu.element.getBoundingClientRect(),M=this.element.getBoundingClientRect();A.left<M.left+M.width/2&&(s="left")}return s==="right"?n>0:n<0}};function Im(e,t,r){return Math.hypot(e,t)/r}function cf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var _h=class gf{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var n,i;this.parentMenu=(n=r==null?void 0:r.parentMenu)!=null?n:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(i=r==null?void 0:r.columnCount)!=null?i:1,this.isSubmenuOpen=!1,this.menuItems=t}get children(){return this._menuItems}set menuItems(t){const r=this.parentMenu;this.dispose(),this.parentMenu=r,t=[...t],this._menuItems=t.map(n=>n.onCreate?n.onCreate(n,this):new Eh(n,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var t;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(t=this._menuItems)==null||t.forEach(r=>r.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(t){if(t.type==="wheel"&&this._element){const r=t;this._element.scrollBy(0,r.deltaY),t.stopPropagation()}}dispatchEvent(t){return this.rootMenu.dispatchEvent(t)}get rootMenu(){return this.parentMenu.rootMenu}updateState(t){var r,n,i;this._menuItems.forEach(J=>J.updateState(t));const s=this.hasCheck;this.hasCheck=this._menuItems.some(J=>J.visible&&J.hasCheck),this.hasCheck!==s&&this._menuItems.forEach(J=>J.updateState(t));let A,M=0;for(const J of this._menuItems)J.type==="heading"?(A&&M===0&&(A.visible=!1),A=J,M=0):J.type==="divider"&&A?(A.visible=M>0,A=void 0,M=0):A&&J.visible&&(M+=1);A&&(A.visible=M>0);let z=!0;for(const J of this._menuItems)J.type==="divider"?(J.visible=!z,z=!0):J.visible&&(z=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((n=this.activeMenuItem)!=null&&n.enabled)&&((i=this.activeMenuItem)==null?void 0:i.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible&&t.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible)}set dirty(t){console.assert(t===!0),this._dirty!==t&&t&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var t;if(this._element){this._element.textContent="";for(const{element:r,visible:n}of this._menuItems)r&&n&&this._element.append(r);(t=this._element.querySelector("li:first-of-type"))==null||t.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const t=document.createElement("menu");t.setAttribute("role","menu"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-orientation","vertical"),t.setAttribute("part","ui-menu-container"),this._submenuClass&&t.classList.add(this._submenuClass),t.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const r=this._abortController.signal;return t.addEventListener("focus",this,{signal:r}),t.addEventListener("wheel",this,{passive:!0,signal:r}),this._element=t,this.updateElement(),t}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(t){var r,n,i,s;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const A=this.activeMenuItem;A.active=!1,(r=A.submenu)==null||r.hide()}if(!((n=t==null?void 0:t.visible)==null||n)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(i=t.element)==null||i.focus({preventScroll:!0}):(s=this._element)==null||s.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const n=this._menuItems;for(;!r&&t<=n.length-1;){const i=n[t];r=i.type!=="divider"&&i.visible&&i.enabled,t+=1}return r?n[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,n=!1;for(;!n&&r>=0;){const i=t[r];n=i.type!=="divider"&&i.visible&&i.enabled,r-=1}return n?t[r+1]:null}nextMenuItem(t){if(t===0)return this._activeMenuItem;if(!this._activeMenuItem)return t>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const r=this._menuItems.indexOf(this.firstMenuItem),n=this._menuItems.indexOf(this.lastMenuItem);let i=this._menuItems.indexOf(this._activeMenuItem),s=1;for(;i>=r&&i<=n;){i+=t>0?1:-1;const A=this._menuItems[i];if(!A)break;if(A.visible&&A.enabled){if(s===Math.abs(t))return this._menuItems[i];s+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const n=this._menuItems.filter(i=>i.visible&&i.enabled).indexOf(t);return n<0?-1:n%this.columnCount}static get collator(){return gf._collator||(gf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),gf._collator}findMenuItem(t){var r;this.updateIfDirty();const n=this._menuItems.filter(M=>M.type!=="divider"&&M.visible&&M.enabled);if(n.length===0)return null;const i=Math.max(...n.map(M=>M.label.length))-t.length;if(i<0)return null;let s=null,A=0;for(;A<i&&!s;)s=(r=n.find(M=>gf.collator.compare(t,M.label.substring(A,t.length))===0))!=null?r:null,A++;return s}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),se()&&(this.element.popover="manual",this.element.showPopover()),t.location&&_m(this.element,{location:t.location,alternateLocation:t.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var t,r,n,i,s;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),se()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(n=(r=this.parentMenu)==null?void 0:r.element)==null||n.focus(),(s=(i=this._element)==null?void 0:i.parentNode)==null||s.removeChild(this._element)}set openSubmenu(t){var r,n,i,s;const A=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((n=this.activeMenuItem.element)==null||n.setAttribute("aria-expanded",A.toString())),(s=(i=this.activeMenuItem)==null?void 0:i.element)==null||s.classList.toggle("is-submenu-open",A),this.isSubmenuOpen=A}},Fh=class Ip extends _h{constructor(t,r){var n;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(n=r==null?void 0:r.host)!=null?n:null,this.isDynamic=t.some(Ih),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Ra(this._modifiers,t)||(this._modifiers=t,this.dirty=!0)}get activeSubmenu(){let t=this;for(;t.isSubmenuOpen;)t=t.activeMenuItem.submenu;return t}set dirty(t){this._updating||(console.assert(t===!0),this._dirty!==t&&(this._dirty=!0,t&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(t){this._updating=!0,this.modifiers=t!=null?t:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(t){this.isDynamic&&(this.modifiers=Ua(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,n,i;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Ua(t));let s=!0;const A=this.activeSubmenu,M=A.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":M==null||M.select(Ua(t));break;case"ArrowRight":if((M==null?void 0:M.type)==="submenu")M.select(Ua(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!M)A.activeMenuItem=A.firstMenuItem;else{const z=(r=A.getMenuItemColumn(M))!=null?r:-1;if(z>=0&&z<((n=A.columnCount)!=null?n:1)-1){const J=A.nextMenuItem(1);J&&(A.activeMenuItem=J)}}break;case"ArrowLeft":if(A===this.rootMenu)M||(A.activeMenuItem=A.firstMenuItem);else if((M&&(i=A.getMenuItemColumn(M))!=null?i:-1)<=0||!M){A.hide();const J=A.parentMenu.activeMenuItem;if(J){const{element:Ae}=J;Ae==null||Ae.focus(),Ae==null||Ae.classList.remove("is-submenu-open")}}else{const J=A.nextMenuItem(-1);J&&(A.activeMenuItem=J)}break;case"ArrowDown":A.activeMenuItem=A.nextMenuItem(A.columnCount);break;case"ArrowUp":A.activeMenuItem=A.nextMenuItem(-A.columnCount);break;case"Home":case"PageUp":A.activeMenuItem=A.firstMenuItem;break;case"End":case"PageDown":A.activeMenuItem=A.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const z=A.findMenuItem(this.typingBuffer);z&&(A.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(no(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const z=A.findMenuItem(this.typingBuffer);z&&(A.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else s=!1}s&&(t.preventDefault(),t.stopPropagation())}handleEvent(t){if(t.type==="keydown")this.handleKeydownEvent(t);else if(t.type==="keyup")this.handleKeyupEvent(t);else if(t.type==="pointermove")this.lastMoveEvent=t;else if(t.type==="pointerup"&&t.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(t.type==="contextmenu"){t.preventDefault(),t.stopPropagation();return}super.handleEvent(t)}dispatchEvent(t){return this._host?this._host.dispatchEvent(t):!0}get scrim(){return ea.element}connectScrim(t){const r=this.scrim;r.addEventListener("pointerup",this),r.addEventListener("contextmenu",this),r.addEventListener("keydown",this),r.addEventListener("keyup",this),r.addEventListener("pointermove",this),ea.open({root:t,onDismiss:()=>this.hide()})}disconnectScrim(){const t=this.scrim;t.removeEventListener("pointerup",this),t.removeEventListener("contextmenu",this),t.removeEventListener("keydown",this),t.removeEventListener("keyup",this),t.removeEventListener("pointermove",this),ea.state==="open"&&ea.scrim.close()}get rootMenu(){return this}show(t){return this._onDismiss=t==null?void 0:t.onDismiss,t!=null&&t.modifiers&&(this.modifiers=t.modifiers),this.updateState(),this.connectScrim(t==null?void 0:t.target),super.show(E(f({},t),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,ea.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=Ip.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};Fh.SUBMENU_DELAY=120;var Mm=Fh;function Ih(e){return U0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(Su(e)||lf(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||Su(e)&&typeof e.checked=="function"?!0:lf(e)?e.submenu.some(Ih):!1}var A0=class{};A0.DELAY=300,A0.MAX_DISTANCE=10;function Lm(e){return new Promise((t,r)=>{const n=Ha(e);n||t(!1);let i=n;const s=setTimeout(()=>{A.abort(),t(Fm(i,n)<A0.MAX_DISTANCE)},A0.DELAY),A=new AbortController,M=A.signal;for(const z of["pointermove","pointerup","pointercancel"])window.addEventListener(z,J=>{if(J.type==="pointerup"||J.type==="pointercancel")clearTimeout(s),A.abort(),t(!1);else if(J.type==="pointermove"){const Ae=Ha(J);Ae&&(i=Ae)}},{passive:!0,signal:M})})}function Mh(e,t,r){return Bd(this,null,function*(){if(e.type==="contextmenu"){const n=e;if(r.show({target:t,location:Ha(n),modifiers:Ua(n)}))return e.preventDefault(),e.stopPropagation(),!0}if(e.type==="keydown"){const n=e;if(n.code==="ContextMenu"||n.code==="F10"&&n.shiftKey){const i=t==null?void 0:t.getBoundingClientRect();if(i&&r.show({target:t,location:{x:Math.ceil(i.left+i.width/2),y:Math.ceil(i.top+i.height/2)},modifiers:Ua(n)}))return e.preventDefault(),e.stopPropagation(),!0}}if(e.type==="pointerdown"&&e.pointerType!=="mouse"&&e.button===0){let n=e.target;for(;n&&t!==n;)n=n.parentNode;if(!n||!r.visible)return!1;const i=Ha(e);if(yield Lm(e))return r.state!=="closed"?!1:(r.show({target:t,location:i}),!0)}return!1})}var Lh={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};pe(Object.keys(Lh),"{body:auto}",{createAtom:e=>new lA(E(f({},e),{body:ut(e.args[0]),accentChar:Lh[e.command.slice(1)]}))}),pe(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=me(ut(e.args[0]));return new lA(E(f({},e),{body:ut(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),pe(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new lA(E(f({},e),{body:ut(e.args[0]),svgAccent:"overarc"}))}),pe(["underarc","underparen"],"{body:auto}",{createAtom:e=>new vl(E(f({},e),{body:ut(e.args[0]),svgBelow:"underarc"}))}),pe("utilde","{body:auto}",{createAtom:e=>{const t=ut(e.args[0]),r=me(t),n="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new vl(E(f({},e),{body:t,svgBelow:n,boxType:Ul(t)}))}}),pe("^","{:string}",{createAtom:e=>{var t;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[e.args[0]])!=null?t:"^"}))}}),pe("`","{:string}",{createAtom:e=>{var t;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[e.args[0]])!=null?t:"`"}))}}),pe("'","{:string}",{createAtom:e=>{var t;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[e.args[0]])!=null?t:"'"}))}}),pe('"',"{:string}",{createAtom:e=>{var t,r;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[e.args[0]])!=null?r:'"'+e.args[0]:'"'}))}}),pe(".","{:string}",{createAtom:e=>{var t,r;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[e.args[0]])!=null?r:"."+e.args[0]:"."}))}}),pe("=","{:string}",{createAtom:e=>{var t,r;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[e.args[0]])!=null?r:"="+e.args[0]:"="}))}}),pe("~","{:string}",{createAtom:e=>{var t;return new Zr(E(f({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[e.args[0]])!=null?t:"\xB4"}))}}),pe("c","{:string}",{createAtom:e=>{var t;return new Zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),pe("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const n=e.args,i={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(n[1]){const A=n[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const M of A){const z=M.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(z)i.strokeWidth=z[1],i.strokeStyle=z[2],i.strokeColor=z[3];else{const J=M.match(/\s*([a-z]*)\s*=\s*"(.*)"/);J&&(J[1]==="mathbackground"?i.backgroundcolor=J[2]:J[1]==="mathcolor"?i.strokeColor=J[2]:J[1]==="padding"?i.padding=J[2]:J[1]==="shadow"&&(i.shadow=J[2]))}}i.strokeStyle==="dashed"?i.svgStrokeStyle="5,5":i.strokeStyle==="dotted"&&(i.svgStrokeStyle="1,5")}i.borderStyle=`${i.strokeWidth} ${i.strokeStyle} ${i.strokeColor}`;const s={};return((r=n[0])!=null?r:"").split(/[, ]/).filter(A=>A.length>0).forEach(A=>{s[A.toLowerCase()]=!0}),new Ku(e.command,ut(n[2]),s,i)}}),pe("cancel","{body:auto}",{createAtom:e=>{var t;return new Ku(e.command,ut(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),pe("bcancel","{body:auto}",{createAtom:e=>{var t;return new Ku(e.command,ut(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),pe("xcancel","{body:auto}",{createAtom:e=>{var t;return new Ku(e.command,ut(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),pe(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new vl(E(f({},e),{body:ut((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),pe("overbrace","{:auto}",{createAtom:e=>new vl(E(f({},e),{body:ut(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),pe(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new vl(E(f({},e),{body:ut(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),pe(["underbrace"],"{:auto}",{createAtom:e=>new vl(E(f({},e),{body:ut(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),pe(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,r,n,i,s;return new vl(E(f({},e),{svgBody:e.command.slice(1),above:((r=ut((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:ut((n=e.args)==null?void 0:n[1]),below:(s=ut((i=e.args)==null?void 0:i[0]))!=null?s:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),pe(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new kA(e.command.slice(1),E(f({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),pe(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new kA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],E(f({},e),{limits:"over-under",variant:"main"}))}),pe(["lim","mod"],"",{ifMode:"math",createAtom:e=>new kA(e.command.slice(1),E(f({},e),{limits:"over-under",variant:"main"}))}),pe(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new kA(e.command.slice(1),E(f({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),pe(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),n=r.caret;r.caret=void 0;const i=new un("\xB0",{style:E(f({},e.style),{variant:"normal",variantStyle:"up"})});return new un([r,i],{type:"inner",isSelected:e.isSelected,caret:n})}}),pe("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new Sc(E(f({},e),{body:ut(e.args[1]),index:e.args[0]?ut(e.args[0]):void 0}))}),pe(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=f({},e),r=e.command,n=e.args;switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0;break;default:}switch(r){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle";break;default:}return new Nc(n[0]?ut(n[0]):[new zl],n[1]?ut(n[1]):[new zl],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),n=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(n)?`${e.command}${r}${n}`:So(e.command,r,n)}}),pe(["brace","brack"],"",{infix:!0,createAtom:e=>new Nc(ut(e.args[0]),ut(e.args[1]),E(f({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>wa([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),pe(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const n=e.args;return e.command==="\\choose"&&(t="(",r=")"),new Nc(ut(n[0]),ut(n[1]),E(f({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>wa([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),pe(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const n=e.args;return new Nc(ut(n[0]),ut(n[1]),E(f({},e),{leftDelim:(t=n[2])!=null?t:".",rightDelim:(r=n[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),pe("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new Nc(ut(e.args[0]),ut(e.args[1]),E(f({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),pe(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new dd({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[e.command.slice(1)],E(f({},e),{limits:"auto",variant:"main"}))}),pe("smallint","",{ifMode:"math",createAtom:e=>new kA("\u222B",E(f({},e),{limits:"adjacent",variant:"main"}))});var kh={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};pe(Object.keys(kh),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=kh[t.slice(1)];return new dd(r,E(f({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),pe(["Re","Im"],"",{ifMode:"math",createAtom:e=>new kA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],E(f({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),pe("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Wd(E(f({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),pe("the","{:value}",{createAtom:e=>new Zr(E(f({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const n=new ya({parent:t},e.style);let i="";e.isSelected&&(i+=" ML__selected");const s=n.evaluate(e.args[0]);return new un(((r=cs(s))!=null?r:"").split("").map(A=>new un(A,{type:"ord",classes:i,mode:e.mode,isSelected:e.isSelected,style:f({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:i}).wrap(n)},serialize:e=>{var t;return`\\the${(t=cs(e.args[0]))!=null?t:"\\relax"}`}}),pe("mathtip","{:auto}{:math}",{createAtom:e=>new hd(E(f({},e),{body:ut(e.args[0]),tooltip:ut(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Zr.serialize([e.tooltip],E(f({},t),{defaultMode:"math"}))}}`}),pe("texttip","{:auto}{:text}",{createAtom:e=>new hd(E(f({},e),{body:ut(e.args[0]),tooltip:ut(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Zr.serialize([e.tooltip],E(f({},t),{defaultMode:"text"}))}}`}),pe("error","{:math}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),pe("ensuremath","{:math}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(E(f({},t),{defaultMode:"math"}))}}`}),pe("color","{:value}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=cs(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),pe("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=cs(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),pe("boxed","{content:math}",{createAtom:e=>new Fs(E(f({},e),{body:ut(e.args[0]),framecolor:{string:"black"}}))}),pe("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimBackgroundColor:(n=cs(t[0]))!=null?n:void 0,backgroundColor:r.toBackgroundColor((i=t[0])!=null?i:{string:"yellow"})}}}),pe("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new Fs(E(f({},e),{body:ut(e.args[2]),framecolor:(t=e.args[0])!=null?t:{string:"blue"},backgroundcolor:(r=e.args[1])!=null?r:{string:"yellow"}}))},serialize:(e,t)=>{var r,n;return t.skipStyles?e.bodyToLatex(E(f({},t),{defaultMode:"text"})):So(e.command,(r=cs(e.framecolor))!=null?r:"",(n=cs(e.backgroundcolor))!=null?n:"",e.bodyToLatex(E(f({},t),{defaultMode:"text"})))}}),pe("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],n=ut(e.args[1]);return r?new Fs(E(f({},e),{body:n,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new Fs(E(f({},e),{body:n}))},serialize:(e,t)=>{var r,n;if(t.skipStyles)return e.bodyToLatex(t);let i=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const s=[];e.padding&&s.push((r=cs(e.padding))!=null?r:""),e.border&&s.push(`border: ${e.border}`),e.backgroundcolor&&s.push((n=cs(e.backgroundcolor))!=null?n:""),i+=`[${s.join(",")}]`}return So(i,e.bodyToLatex(t))}}),pe(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),render:(e,t)=>{const r=new ya({parent:t,mathstyle:e.command.slice(1)},e.style),n=Zr.createBox(r,e.body,{type:"lift"});return e.caret&&(n.caret=e.caret),e.bind(t,n)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${wa([e.command,e.bodyToLatex(t)])}}`}),pe(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),pe("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),pe("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),pe("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),pe("selectfont","",{ifMode:"text",applyStyle:()=>({})}),pe("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),pe(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),pe("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),pe("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),pe("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),pe("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),pe("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),pe("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),pe("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),pe("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),pe("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),pe("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),pe("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),pe("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),pe("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),pe("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),pe("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),pe("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),pe("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),pe("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),pe("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),pe("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),pe("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),pe("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),pe("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),pe("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),pe("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),pe("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),pe("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),pe(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),pe(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),pe("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),pe("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),pe("mbox","{:text}",{ifMode:"math",createAtom:e=>new Zr(E(f({},e),{type:"mord",body:ut(e.args[0]),mode:"math"})),serialize:(e,t)=>So("\\mbox",e.bodyToLatex(E(f({},t),{defaultMode:"text"})))}),pe("text","{:text}",{ifMode:"math",applyMode:"text"}),pe(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var r;return e.createBox(t,{classes:(r=e.args[0])!=null?r:""})}}),pe(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.cssId=(r=e.args[0])!=null?r:"",n}}),pe("htmlData","{data:string}{content:auto}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.htmlData=(r=e.args[0])!=null?r:"",n}}),pe(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.htmlStyle=(r=e.args[0])!=null?r:"",n}}),pe("em","{:rest}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),pe("emph","{:auto}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var Dh={"\\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}};pe(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new _d(E(f({},e),{delim:(t=e.args[0])!=null?t:".",size:Dh[e.command].size,delimType:Dh[e.command].mclass}))}}),pe(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new yl(E(f({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),pe(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new yl(E(f({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),pe("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new Zr(e),render:(e,t)=>{let r=0;const n=t.mathstyle.id;(n===Wc||n===Yl)&&(r=1),(n===cc||n===Co)&&(r=2),(n===Xs||n===ls)&&(r=3);const i=ut(e.args[r]);return Zr.createBox(t,i)},serialize:(e,t)=>`\\mathchoice{${Zr.serialize(e.args[0],t)}}{${Zr.serialize(e.args[1],t)}}{${Zr.serialize(e.args[2],t)}}{${Zr.serialize(e.args[3],t)}}`}),pe("mathop","{:auto}",{createAtom:e=>new Zr(E(f({},e),{type:"mop",body:ut(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let n=Zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return new un(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),wa(r)}}),pe(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Zr(E(f({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:ut(e.args[0])}))}),pe(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=ut(e.args[0]).map(r=>{var n;return r.type!=="first"&&(r.type="mord",r.value=(n={"\u2217":"*","\u2212":"-"}[r.value])!=null?n:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new Zr(E(f({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let n=Zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return e.caret&&(n.caret=e.caret),new un(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),wa(r)}}),pe(["char","unicode"],"{charcode:value}",{createAtom:e=>new Zr(E(f({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${cs((t=e.args[0])!=null?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let r=t.evaluate(e.args[0]);return(!r||!("number"in r))&&(r={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(r.number),e.createBox(t)}}),pe("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Zr(e),render:(e,t)=>{var r,n,i;const s=new ya({parent:t,mathstyle:"textstyle"},e.style),A=s.toEm((r=e.args[0])!=null?r:{dimension:0}),M=s.toEm((n=e.args[1])!=null?n:{dimension:10}),z=s.toEm((i=e.args[2])!=null?i:{dimension:10}),J=new un(null,{classes:"rule",type:"ord"});return J.width=M,J.height=z+A,J.depth=-A,J.setStyle("border-right-width",M,"em"),J.setStyle("border-top-width",z,"em"),J.setStyle("border-color",e.style.color),J.setStyle("vertical-align",A,"em"),e.isSelected&&J.setStyle("opacity","50%"),e.bind(s,J),e.caret&&(J.caret=e.caret),J.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${cs(e.args[0])}]`:""}{${cs(e.args[1])}}{${cs(e.args[2])}}`}),pe(["overline","underline"],"{:auto}",{createAtom:e=>new Zr(E(f({},e),{body:ut(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),n=new ya({parent:t,mathstyle:"cramp"},e.style),i=Zr.createBox(n,e.body);if(!i)return null;const s=n.metrics.defaultRuleThickness/n.scalingFactor,A=new un(null,{classes:r+"-line"});A.height=s,A.maxFontSize=s*1.125*n.scalingFactor;let M;return r==="overline"?M=new Eo({shift:0,children:[{box:i},3*s,{box:A},s]}):M=new Eo({top:i.height,children:[s,{box:A},3*s,{box:i}]}),e.caret&&(M.caret=e.caret),new un(M,{classes:r,type:"ignore"})}}),pe("overset","{:auto}{base:auto}",{createAtom:e=>{const t=ut(e.args[1]);return new vl(E(f({},e),{above:ut(e.args[0]),body:t,skipBoundary:!1,boxType:Ul(t)}))},serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),pe("underset","{:auto}{base:auto}",{createAtom:e=>{const t=ut(e.args[1]);return new vl(E(f({},e),{below:ut(e.args[0]),body:t,skipBoundary:!1,boxType:Ul(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),pe("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=ut(e.args[2]);return new vl(E(f({},e),{above:ut(e.args[0]),below:ut(e.args[1]),body:t,skipBoundary:!1,boxType:Ul(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),pe(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new vl(E(f({},e),{body:ut(e.args[2]),above:ut(e.args[1]),below:ut(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),pe("smash","[:string]{:auto}",{createAtom:e=>{var t,r,n,i;return new ju(E(f({},e),{body:ut(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(i=(n=e.args[0])==null?void 0:n.includes("b"))!=null?i:!0}))}}),pe(["vphantom"],"{:auto}",{createAtom:e=>new ju(E(f({},e),{body:ut(e.args[0]),isInvisible:!0,smashWidth:!0}))}),pe(["hphantom"],"{:auto}",{createAtom:e=>new ju(E(f({},e),{body:ut(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),pe(["phantom"],"{:auto}",{createAtom:e=>new ju(E(f({},e),{body:ut(e.args[0]),isInvisible:!0}))}),pe("not","{:math}",{createAtom:e=>{const t=ut(e.args[0]);return t.length===0?new Zr(E(f({},e),{type:"mrel",value:"\uE020"})):new Zr(E(f({},e),{body:[new dA(E(f({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],n=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?n?`\\not{${Zr.serialize(r.group,t)}}`:`\\not${Zr.serialize(r,t)}`:n?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const n=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":Ul(ut(e.args[0])),i=Zr.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),pe(["ne","neq"],"",{createAtom:e=>new Zr(E(f({},e),{type:"mrel",body:[new dA(E(f({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Zr(E(f({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),pe("rlap","{:auto}",{createAtom:e=>new dA(E(f({},e),{body:ut(e.args[0]),align:"right"}))}),pe("llap","{:auto}",{createAtom:e=>new dA(E(f({},e),{body:ut(e.args[0]),align:"left"}))}),pe("mathrlap","{:math}",{createAtom:e=>new dA(E(f({},e),{body:ut(e.args[0]),align:"left"}))}),pe("mathllap","{:math}",{createAtom:e=>new dA(E(f({},e),{body:ut(e.args[0]),align:"left"}))}),pe("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Fs(E(f({},e),{body:ut(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raisebox",(r=cs(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),pe("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Fs(E(f({},e),{body:ut(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raise",(r=cs(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),pe("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Fs(E(f({},e),{body:ut(e.args[1]),padding:{dimension:0},offset:(t=dl(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,n;return So("\\lower",(n=cs(dl((r=e.offset)!=null?r:{dimension:0},-1)))!=null?n:"0pt",e.bodyToLatex(t))}}),ee("0123456789/@.?!"),Be(65,90),Be(97,122),ee([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),ee([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),ee([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),ee([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),ee([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),ee([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),ee([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),ee([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),ee([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),ee([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),ee([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),ee([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),ee([["\\wp",8472],["\\aleph",8501]]),ee([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),ee([["\\ ",160],["~",160]],"space"),pe(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new yl(e)}),pe("space","",{createAtom:e=>new yl(e)}),ee([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),ee([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),ee([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Ph="<mo>&#x2061;</mo>",u0="<mo>&#8290;</mo>";function d0(e){return e.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ts(e,t){return!e||!t.generateID?"":` extid="${e}"`}function km(e,t,r){var n,i,s,A,M,z,J,Ae,Qe,ft,Ft;let Ot=!1;t=t!=null?t:e.atoms.length;let Er="",En="",Cr=e.atoms[e.index];const nn=(i=(n=Cr.style)==null?void 0:n.variant)!=null?i:"",Pn=(A=(s=Cr.style)==null?void 0:s.variantStyle)!=null?A:"";let pn="";if(nn||Pn){const $i=at(Cr.value,(M=Cr.style)==null?void 0:M.variant,(z=Cr.style)==null?void 0:z.variantStyle);if($i!==Cr.value)return e.index+=1,Er=`<mi${ts(Cr.id,r)}>${$i}</mi>`,td(Er,e,r)||(e.mathML+=Er,e.lastType="mi"),!0;pn=(J={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[Pn+nn])!=null?J:"",pn=` mathvariant="${pn}"`}const Ii={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Cr.command==="!")return e.index+=1,Er="<mo>!</mo>",td(Er,e,r)||(e.mathML+=Er,e.lastType="mo"),!0;if(Ii[Cr.command]){e.index+=1;let $i=`<mi${ts(Cr.id,r)}${pn}>${Ii[Cr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&($i=u0+$i),td($i,e,r)||(e.mathML+=$i,e.lastType="mi"),!0}if(Cr.command==="\\operatorname")En=Af(Cr.body),e.index+=1;else if(nn||Pn)for(;e.index<t&&(Cr.type==="mord"||Cr.type==="macro")&&!Cr.isDigit()&&nn===((Qe=(Ae=Cr.style)==null?void 0:Ae.variant)!=null?Qe:"")&&Pn===((Ft=(ft=Cr.style)==null?void 0:ft.variantStyle)!=null?Ft:"");)En+=Af([Cr]),e.index+=1,Cr=e.atoms[e.index];else(Cr.type==="mord"||Cr.type==="macro")&&!Cr.isDigit()&&(En+=Af([Cr]),e.index+=1);if(En.length>0){Ot=!0,Er=`<mi${pn}>${En}</mi>`;const $i=e.lastType;Er.endsWith(">f</mi>")||Er.endsWith(">g</mi>")?(Er+=Ph,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Er)?"mo":"mi",td(Er,e,r)||(($i==="mi"||$i==="mn"||$i==="mtext"||$i==="fence")&&(Er=u0+Er),e.mathML+=Er)}return Ot}function Dm(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function Pm(e){let t=-1,r=e.index,n=!1,i=!1;for(;r<e.atoms.length&&!n&&!i;){const s=e.atoms[r];n=!s.isDigit(),i=!n&&s.superscript!==void 0,r++}return i&&(t=r-1),t}function td(e,t,r){var n;let i=t.atoms[t.index-1];if(!i)return!1;if(!i.superscript&&!i.subscript)if(((n=t.atoms[t.index])==null?void 0:n.type)==="subsup")i=t.atoms[t.index],t.index+=1;else return!1;const s=t.lastType;t.lastType="";const A=Fo(i.superscript,r);t.lastType="";const M=Fo(i.subscript,r);if(t.lastType=s,!A&&!M)return!1;let z="";return A&&M?z=`<msubsup>${e}${M}${A}</msubsup>`:A?z=`<msup>${e}${A}</msup>`:M&&(z=`<msub>${e}${M}</msub>`),t.mathML+=z,t.lastType="",!0}function Nm(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="";for(;e.index<t&&e.atoms[e.index].mode==="text";)i+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return i.length>0?(e.mathML+=`<mtext ${ts(e.atoms[n].id,r)}>${i}</mtext>`,e.lastType="mtext",!0):!1}function Om(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="",s=Pm(e);for(s>=0&&s<t&&(t=s);e.index<t&&e.atoms[e.index].isDigit();)i+=e.atoms[e.index].asDigit(),e.index+=1;return i.length<=0?!1:(i="<mn"+ts(e.atoms[n].id,r)+">"+i+"</mn>",s<0&&Dm(e)&&(s=e.index,e.index+=1),td(i,e,r)||(e.mathML+=i,e.lastType="mn"),!0)}function Tm(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let A=!1,M=0;const z=e.index;let J=-1,Ae=z+1;for(;Ae<t&&!A;)e.atoms[Ae].type==="mopen"?M+=1:e.atoms[Ae].type==="mclose"&&(M-=1),M===-1&&(A=!0,J=Ae),Ae+=1;A&&(i="<mrow>",i+=Hd(e.atoms[z],r),i+=Fo(e.atoms,r,z+1,J),i+=Hd(e.atoms[J],r),i+="</mrow>",e.index=J+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=u0),td(i,e,r)&&(n=!0,e.lastType="",i=""),s="fence")}return i.length>0&&(n=!0,e.mathML+=i,e.lastType=s),n}function Um(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";const A=e.atoms[e.index];if(!A)return!1;const M={"\\ne":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(M[A.command]){e.index+=1;const z=`<mo${ts(A.id,r)}>${M[A.command]}</mo>`;return td(z,e,r)||(e.mathML+=z,e.lastType="mo"),!0}if(e.index<t&&(A.type==="mbin"||A.type==="mrel"))i+=K0(e.atoms[e.index],r),e.index+=1,s="mo";else if(e.index<t&&(A.type==="mop"||A.type==="operator"||A.type==="extensible-symbol")){if(A.subsupPlacement==="over-under"&&(A.superscript||A.subscript)){const z=Hd(A,r);return A.superscript&&A.subscript?(i+="<munderover>"+z,i+=Fo(A.subscript,r),i+=Fo(A.superscript,r),i+="</munderover>"):A.superscript?(i+="<mover>"+z,i+=Fo(A.superscript,r),i+="</mover>"):A.subscript&&(i+="<munder>"+z,i+=Fo(A.subscript,r),i+="</munder>"),e.mathML+=i,e.lastType="mo",e.index+=1,!0}{const z=e.atoms[e.index],J=z.value==="\\operatorname",Ae=J?'<mi class="MathML-Unit"'+ts(z.id,r)+">"+Af(z.value)+"</mi>":Hd(z,r);i+=Ae,!J&&!/^<mo>(.*)<\/mo>$/.test(Ae)?(i+=Ph,s="applyfunction"):s=J?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(i)&&(i=u0+i),e.index+=1}return i.length>0&&(n=!0,td(i,e,r)||(e.mathML+=i,e.lastType=s)),n}function Fo(e,t,r,n){t!=null||(t={});const i={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")i.mathML=e.toString();else if(typeof e=="string")i.mathML=e;else if(e instanceof Zr)i.mathML=K0(e,t);else if(Array.isArray(e)){i.atoms=e;let s=0;for(n=n||(e?e.length:0);i.index<n;)if(Nm(i,n,t)||Om(i,n,t)||km(i,n,t)||Um(i,n,t)||Tm(i,n,t))s+=1;else if(i.index<n){let A=K0(i.atoms[i.index],t);i.lastType==="mn"&&A.length>0&&i.atoms[i.index].type==="genfrac"&&(A="<mo>&#x2064;</mo>"+A),i.atoms[i.index].type==="genfrac"?i.lastType="mfrac":i.lastType="",i.index+=1,td(A,i,t)?s+=1:A.length>0&&(i.mathML+=A,s+=1)}s>1&&(i.mathML="<mrow>"+i.mathML+"</mrow>")}return i.mathML}function Hd(e,t){let r="";const n=Af(e.value);return n&&(r="<mo"+ts(e.id,t)+">"+n+"</mo>"),r}function Af(e){if(!e)return"";if(typeof e=="string")return d0(e);if(!Array.isArray(e)&&typeof e.body=="string")return d0(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return d0(t)}function K0(e,t){var r,n,i,s,A,M,z,J,Ae,Qe,ft,Ft,Ot,Er,En,Cr,nn,Pn,pn,Ii,$i,Ui;if(e.mode==="text")return`<mi${ts(e.id,t)}>${e.value}</mi>`;const lo={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\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",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},Vo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let $n="",gA="",_u,RA,Ml,vA,Kc,rs;const{command:Zs}=e;if(e.command==="\\error")return`<merror${ts(e.id,t)}>${Fo(e.body,t)}</merror>`;const Ll={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Fu={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(e.type){case"first":break;case"group":case"root":$n=Fo(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&($n+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&($n+="<mo>"+(Ll[e.leftDelim]||e.leftDelim)+"</mo>")),$n+="<mtable",e.colFormat){for($n+=' columnalign="',Ml=0;Ml<e.colFormat.length;Ml++)e.colFormat[Ml].align&&($n+={l:"left",c:"center",r:"right"}[e.colFormat[Ml].align]+" ");$n+='"'}for($n+=">",RA=0;RA<e.array.length;RA++){for($n+="<mtr>",_u=0;_u<e.array[RA].length;_u++)$n+="<mtd>"+Fo(e.array[RA][_u],t)+"</mtd>";$n+="</mtr>"}$n+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&($n+="<mo>"+(Ll[e.leftDelim]||e.rightDelim)+"</mo>"),$n+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&($n+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&($n+="<mo"+ts(e.id,t)+">"+(Ll[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?($n+="<mfrac>",$n+=Fo(e.above,t)||"<mi>&nbsp;</mi>",$n+=Fo(e.below,t)||"<mi>&nbsp;</mi>",$n+="</mfrac>"):($n+="<mtable"+ts(e.id,t)+">",$n+="<mtr>"+Fo(e.above,t)+"</mtr>",$n+="<mtr>"+Fo(e.below,t)+"</mtr>",$n+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&($n+="<mo"+ts(e.id,t)+">"+(Ll[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&($n+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?($n+="<msqrt"+ts(e.id,t)+">",$n+=Fo(e.body,t),$n+="</msqrt>"):($n+="<mroot"+ts(e.id,t)+">",$n+=Fo(e.body,t),$n+=Fo(e.above,t),$n+="</mroot>");break;case"leftright":const Iu=e,Mu=Iu.leftDelim;$n="<mrow>",Mu&&Mu!=="."&&($n+=`<mo${ts(e.id,t)}>${(r=Ll[Mu])!=null?r:Mu}</mo>`),e.body&&($n+=Fo(e.body,t));const Lu=Iu.matchingRightDelim();Lu&&Lu!=="."&&($n+=`<mo${ts(e.id,t)}>${(n=Ll[Lu])!=null?n:Lu}</mo>`),$n+="</mrow>";break;case"sizeddelim":case"delim":$n+=`<mo${ts(e.id,t)}>${Ll[e.value]||e.value}</mo>`;break;case"accent":$n+='<mover accent="true"'+ts(e.id,t)+">",$n+=Fo(e.body,t),$n+="<mo>"+(Fu[Zs]||e.accent)+"</mo>",$n+="</mover>";break;case"line":case"overlap":break;case"overunder":Kc=e.above,vA=e.below,(e.svgAbove||Kc)&&(e.svgBelow||vA)?rs=e.body:Kc&&Kc.length>0?(rs=e.body,(s=(i=e.body)==null?void 0:i[0])!=null&&s.below?(vA=e.body[0].below,rs=e.body[0].body):((M=(A=e.body)==null?void 0:A[0])==null?void 0:M.type)==="first"&&((J=(z=e.body)==null?void 0:z[1])!=null&&J.below)&&(vA=e.body[1].below,rs=e.body[1].body)):vA&&vA.length>0&&(rs=e.body,(Qe=(Ae=e.body)==null?void 0:Ae[0])!=null&&Qe.above?(Kc=e.body[0].above,rs=e.body[0].body):((Ft=(ft=e.body)==null?void 0:ft[0])==null?void 0:Ft.type)==="first"&&((Er=(Ot=e.body)==null?void 0:Ot[1])!=null&&Er.above)&&(Kc=e.body[1].overscript,rs=e.body[1].body)),(e.svgAbove||Kc)&&(e.svgBelow||vA)?($n+=`<munderover ${ts(e.id,t)}>`,$n+=(En=lo[e.svgBody])!=null?En:Fo(rs,t),$n+=(Cr=lo[e.svgBelow])!=null?Cr:Fo(vA,t),$n+=(nn=lo[e.svgAbove])!=null?nn:Fo(Kc,t),$n+="</munderover>"):e.svgAbove||Kc?($n+=`<mover ${ts(e.id,t)}>`+((Pn=lo[e.svgBody])!=null?Pn:Fo(rs,t)),$n+=(pn=lo[e.svgAbove])!=null?pn:Fo(Kc,t),$n+="</mover>"):(e.svgBelow||vA)&&($n+=`<munder ${ts(e.id,t)}>`+((Ii=lo[e.svgBody])!=null?Ii:Fo(rs,t)),$n+=($i=lo[e.svgBelow])!=null?$i:Fo(vA,t),$n+="</munder>");break;case"placeholder":$n+="?";break;case"mord":{$n=typeof e.value=="string"?e.value:Zs,Zs==="\\char"?$n="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":$n.length>0&&$n.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?$n="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?$n=e.value.charAt(0):(console.error("Did not expect this"),$n=""));const au=/\d/.test($n)?"mn":"mi";$n=`<${au}${ts(e.id,t)}>${d0($n)}</${au}>`;break}case"mbin":case"mrel":case"minner":$n=Hd(e,t);break;case"mpunct":$n='<mo separator="true"'+ts(e.id,t)+">"+Zs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&($n="<mo"+ts(e.id,t)+">",$n+=Zs==="\\operatorname"?e.body:Zs||e.body,$n+="</mo>");break;case"box":$n='<menclose notation="box"',e.backgroundcolor&&($n+=' mathbackground="'+e.backgroundcolor+'"'),$n+=ts(e.id,t)+">"+Fo(e.body,t)+"</menclose>";break;case"spacing":$n+='<mspace width="'+((Ui=Vo[Zs])!=null?Ui:0)+'em"/>';break;case"enclose":$n='<menclose notation="';for(const au in e.notation)Object.prototype.hasOwnProperty.call(e.notation,au)&&e.notation[au]&&($n+=gA+au,gA=" ");$n+=ts(e.id,t)+'">'+Fo(e.body,t)+"</menclose>";break;case"prompt":$n='<menclose notation="roundexbox""">'+Fo(e.body,t)+"</menclose>";break;case"space":$n+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":$n+=Hd(e,t);break;case"mclose":$n+=Hd(e,t);break;case"macro":{const au=e.command+Af(e.macroArgs);au&&($n+=`<mo ${ts(e.id,t)}>${au}</mo>`)}break;case"latexgroup":$n+=Fo(e.body,t);break;case"latex":$n+="<mtext"+ts(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":$n+=Fo(e.body,t);break;case"text":$n+=`<mtext ${ts(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${ts(e.id,t)} displaystyle="true">${Fo(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${ts(e.id,t)} displaystyle="false">${Fo(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return $n}var uf={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},H0={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Rm(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Lf(e){let t=0;if(S(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function Qm(e){if(S(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function Nh(e){let t="";if(S(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Km(e){return e?e.map(t=>t.value).join(""):""}function Ja(e,t){var r,n,i,s,A;function M(Ae){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ae)?` <say-as interpret-as="character">${Ae}</say-as>`:/[A-Z]/.test(Ae)?`capital <say-as interpret-as="character">${Ae.toLowerCase()}</say-as>`:Ae:/[a-z]/.test(Ae)?" '"+Ae.toUpperCase()+"'":/[A-Z]/.test(Ae)?" 'capital "+Ae.toUpperCase()+"'":Ae}function z(Ae){return"<emphasis>"+Ae+"</emphasis>"}if(!t)return"";let J="";if(S(t)){let Ae=!1,Qe=!1;for(let ft=0;ft<t.length;ft++)t[ft].type!=="first"&&(t[ft].mode!=="text"&&(Qe=!1),ft<t.length-2&&t[ft].type==="mopen"&&t[ft+2].type==="mclose"&&t[ft+1].type==="mord"?(J+=" of ",J+=z(Ja(e,t[ft+1])),ft+=2):t[ft].mode==="text"?Qe?J+=(r=t[ft].value)!=null?r:" ":(Qe=!0,J+=Ja("text",t[ft])):t[ft].isDigit()?Ae?J+=t[ft].asDigit():(Ae=!0,J+=Ja(e,t[ft])):(Ae=!1,J+=Ja(e,t[ft])))}else if(t.mode==="text")t.id&&e==="math"&&(J+='<mark name="'+t.id.toString()+'"/>'),J+=t.value;else{t.id&&e==="math"&&(J+='<mark name="'+t.id.toString()+'"/>');let Ae="",Qe="",ft="",Ft=!1;const{command:Ot}=t;switch(Ot){case"\\vec":return"vector "+Ja(e,t.body);case"\\acute":return Ja(e,t.body)+" acute";case"\\grave":return Ja(e,t.body)+" grave";case"\\dot":return"dot over"+Ja(e,t.body);case"\\ddot":return"double dot over"+Ja(e,t.body);case"\\mathring":return"ring over"+Ja(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ja(e,t.body);case"\\bar":return Ja(e,t.body)+" bar";case"\\breve":return Ja(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ja(e,t.body);case"\\hat":case"\\widehat":return"hat over"+Ja(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ja(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+Ja(e,t.body)}switch(t.type){case"prompt":const Er=t.body.length>1?'start input . <break time="500ms"/> '+Ja(e,t.body)+'. <break time="500ms"/> end input':"blank";J+=' <break time="300ms"/> '+Er+'. <break time="700ms"/>'+((n=t.correctness)!=null?n:"")+' . <break time="700ms"/> ';break;case"array":const En=t.array,Cr=t.environmentName;if(Object.keys(H0).includes(Cr)){J+=` begin ${H0[Cr]} `;for(let pn=0;pn<En.length;pn++){pn>0&&(J+=","),J+=` row ${pn+1} `;for(let Ii=0;Ii<En[pn].length;Ii++)Ii>0&&(J+=","),J+=` column ${Ii+1}: `,J+=Ja("math",En[pn][Ii])}J+=` end ${H0[Cr]} `}break;case"group":Ot==="\\ne"?J+=" not equal ":(Ot==="\\not"&&(J+=" not "),J+=Ja("math",t.body));break;case"root":J+=Ja("math",t.body);break;case"genfrac":if(Ae=Ja("math",t.above),Qe=Ja("math",t.below),Lf(t.above)&&Lf(t.below)){const Ii={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Nh(t.above)+"/"+Nh(t.below)];Ii?J=Ii:J+=Ae+" over "+Qe}else J+=' the fraction <break time="150ms"/>'+Ae+' over <break time="150ms"/>'+Qe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ft=Ja("math",t.body),t.hasEmptyBranch("above"))J+=Lf(t.body)?" the square root of "+ft+" , ":' the square root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End square root';else{let pn=Ja("math",t.above);pn=pn.trim();const Ii=pn.replace(/<mark([^/]*)\/>/g,"");Ii==="3"?J+=' the cube root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End cube root':Ii==="n"?J+=' the nth root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End root':J+=' the root with index: <break time="200ms"/>'+pn+', of <break time="200ms"/>'+ft+'. <break time="200ms"/> End root'}break;case"leftright":{const pn=t;J+=(i=pn.leftDelim?uf[pn.leftDelim]:void 0)!=null?i:pn.leftDelim,J+=Ja("math",t.body),J+=(s=pn.rightDelim?uf[pn.rightDelim]:void 0)!=null?s:pn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=Ot.replace(/^\\/g,""),Pn=At()[nn];Pn&&(Pn!=null&&Pn.expand?J+=Ja("math",t.body):J+=`${nn} `);break;case"placeholder":J+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Ot==="\\mathbin"||Ot==="\\mathrel"||Ot==="\\mathopen"||Ot==="\\mathclose"||Ot==="\\mathpunct"||Ot==="\\mathord"||Ot==="\\mathinner"){J=Ja(e,t.body);break}let pn=t.isDigit()?t.asDigit():t.value,Ii=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Ii=t.value,pn=Ii),e==="text")J+=pn;else{if(t.type==="mbin"&&(J+='<break time="150ms"/>'),pn){const $i=uf[pn]||(Ii?uf[Ii.trim()]:"");if($i)J+=" "+$i;else{const Ui=Ii?Rm(Ii.trim()):"";J+=Ui||M(pn)}}else J+=Ja("math",t.body);t.type==="mbin"&&(J+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const pn=t.command;if(pn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ii=Ja("math",t.superscript);Ii=Ii.trim();let $i=Ja("math",t.subscript);$i=$i.trim(),J+=' the summation from <break time="200ms"/>'+$i+'<break time="200ms"/> to <break time="200ms"/>'+Ii+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))J+=" the summation of";else{let Ii=Ja("math",t.subscript);Ii=Ii.trim(),J+=' the summation from <break time="200ms"/>'+Ii+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ii=Ja("math",t.superscript);Ii=Ii.trim();let $i=Ja("math",t.subscript);$i=$i.trim(),J+=' the product from <break time="200ms"/>'+$i+'<break time="200ms"/> to <break time="200ms"/>'+Ii+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))J+=" the product of ";else{let Ii=Ja("math",t.subscript);Ii=Ii.trim(),J+=' the product from <break time="200ms"/>'+Ii+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ii=Ja("math",t.superscript);Ii=Ii.trim();let $i=Ja("math",t.subscript);$i=$i.trim(),J+=' the integral from <break time="200ms"/>'+z($i)+'<break time="200ms"/> to <break time="200ms"/>'+z(Ii)+' <break time="200ms"/> of ',Ft=!0}else J+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Ii=(A=uf[t.value])!=null?A:t.command?uf[t.command]:void 0;J+=Ii||" "+t.value}else t.command&&(t.command==="\\mathop"?J+=Ja("math",t.body):t.command==="\\operatorname"?J+=Km(t.body):J+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":ft=Ja("math",t.body),J+=" crossed out "+ft+". End crossed out.";break;case"space":case"spacing":break}if(!Ft&&!t.hasEmptyBranch("superscript")){let Er=Ja(e,t.superscript);Er=Er.trim();const En=Er.replace(/<[^>]*>/g,"");if(Lf(t.superscript)){if(e==="math"){const Cr=Qm(t.superscript);Cr&&(J+='<mark name="'+Cr+'"/>')}En==="\u2032"?J+=" prime ":En==="2"?J+=" squared ":En==="3"?J+=" cubed ":Number.isNaN(Number.parseInt(En))?J+=" to the "+Er+"; ":J+=' to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}else Number.isNaN(Number.parseInt(En))?J+=" raised to the "+Er+"; ":J+=' raised to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}if(!Ft&&!t.hasEmptyBranch("subscript")){let Er=Ja("math",t.subscript);Er=Er.trim(),J+=Lf(t.subscript)?" sub "+Er:" subscript "+Er+". End subscript. "}}return J}function df(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const i=Fo(e);if(i){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const s=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&s.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let A="";try{A=s.toSpeech(i)}catch(M){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",M)}return A}return""}let n=Ja("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let i="";window.MathfieldElement.speechEngineRate&&(i='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),n='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+i+"<p><s>"+n+"</s></p>"+(i?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Y()==="macos"?n=n.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):n=n.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return n}var kf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Df={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Hm(e){let t="";for(const r of e){const n=t[t.length-1];n!==void 0&&/\d/.test(n)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function $s(e){var t,r,n,i,s,A,M,z,J,Ae,Qe,ft,Ft;if(!e)return"";if(S(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map($s).join("");if(e[0].mode==="text"){let Pn=0,pn="";for(;((t=e[Pn])==null?void 0:t.mode)==="text";)pn+=e[Pn].body?$s(e[Pn].body):e[Pn].value,Pn++;return`"${pn}" ${$s(e.slice(Pn))}`}let Cr=0;const nn=[];for(;e[Cr]&&e[Cr].mode==="math";){let Pn="";for(;e[Cr]&&e[Cr].type==="mord"&&/\d/.test(e[Cr].value);)Pn+=e[Cr++].value;Pn?nn.push(Pn):nn.push($s(e[Cr++]))}return nn.push($s(e.slice(Cr))),Hm(nn)}if(e.mode==="text")return`"${e.value}"`;let Ot="";const{command:Er}=e;let En;if(Er==="\\placeholder")return`(${$s(e.body)})`;switch(e.type){case"accent":const Cr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Er];Ot=`${Cr!=null?Cr:""} ${$s(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Ui=>Ui.value).join("");case"group":case"root":Ot=(r=kf[Er])!=null?r:$s(e.body);break;case"genfrac":{const Ui=e;(Ui.leftDelim||Ui.rightDelim)&&(Ot=Ui.leftDelim==="."||!Ui.leftDelim?"{:":Ui.leftDelim),Ui.hasBarLine?(Ot+="(",Ot+=$s(Ui.above),Ot+=")/(",Ot+=$s(Ui.below),Ot+=")"):(Ot+="("+$s(Ui.above)+"),",Ot+="("+$s(Ui.below)+")"),(Ui.leftDelim||Ui.rightDelim)&&(Ot+=Ui.rightDelim==="."||!Ui.rightDelim?"{:":Ui.rightDelim)}break;case"surd":Ot+=e.hasEmptyBranch("above")?"sqrt("+$s(e.body)+")":"root("+$s(e.above)+")("+$s(e.body)+")";break;case"latex":Ot=e.value;break;case"leftright":{const Ui=e,lo=Ui.leftDelim;Ot+=lo==="."||!lo?"{:":lo,Ot+=$s(Ui.body);const Vo=Ui.matchingRightDelim();Ot+=Vo==="."||!Vo?":}":Vo}break;case"sizeddelim":case"delim":Ot=e.value;break;case"overlap":break;case"overunder":break;case"mord":Ot=(i=(n=kf[Er])!=null?n:Er)!=null?i:typeof e.value=="string"?e.value:"",Ot.startsWith("\\")&&(Ot+=" "),En=Er?Er.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,En?Ot=String.fromCodePoint(Number.parseInt("0x"+En[1])):Ot.length>0&&Ot.startsWith("\\")&&(Ot=typeof e.value=="string"?e.value.charAt(0):e.command),Ot=jm(Ot,e.style);break;case"mbin":case"mrel":case"minner":Ot=(A=(s=kf[Er])!=null?s:Df[Er])!=null?A:e.value;break;case"mopen":case"mclose":Ot=e.value;break;case"mpunct":Ot=(M=Df[Er])!=null?M:Er;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(Df[Er]?Ot=Df[Er]:Ot=Er==="\\operatorname"?$s(e.body):(z=e.value)!=null?z:Er,Ot+=" ");break;case"array":const nn=e.array,Pn=e.environmentName,pn=(J={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Pn])!=null?J:["(",")"],Ii=[];for(const Ui of nn){const lo=[];for(const Vo of Ui)lo.push(pn[0]+$s(Vo)+pn[1]);Ii.push(lo.join(","))}const $i=(Ae={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Pn])!=null?Ae:["(",")"];Ot=$i[0]+Ii.join(",")+$i[1];break;case"box":break;case"spacing":Ot=(Qe=kf[Er])!=null?Qe:" ";break;case"enclose":Ot="("+$s(e.body)+")";break;case"space":Ot=" ";break;case"subsup":Ot="";break;case"macro":Ot=(Ft=(ft=kf[Er])!=null?ft:Df[Er])!=null?Ft:$s(e.body);break}if(!e.hasEmptyBranch("subscript")){Ot+="_";const Cr=$s(e.subscript);Ot+=Cr.length!==1?`(${Cr})`:Cr}if(!e.hasEmptyBranch("superscript")){Ot+="^";const Cr=$s(e.superscript);Ot+=Cr.length!==1?`(${Cr})`:Cr}return Ot}function jm(e,t){if(!t)return e;let r=e;return t.variant==="double-struck"&&(r=`bbb "${r}"`),t.variant==="script"&&(r=`cc "${r}"`),t.variant==="fraktur"&&(r=`fr "${r}"`),t.variant==="sans-serif"&&(r=`sf "${r}"`),t.variant==="monospace"&&(r=`tt "${r}"`),t.variantStyle==="bold"&&(r=`bb "${r}"`),t.color?`color({${t.color}})(${r})`:r}function Il(e,t){var r,n;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const i=new ya({from:E(f({},lu()),{renderPlaceholder:()=>new un(160,{maxFontSize:1}),letterShapeStyle:(n=t==null?void 0:t.letterShapeStyle)!=null?n:"tex"}),mathstyle:t.mathstyle}),A=new Zr({mode:"math",type:"root",body:al(e,{context:i,parseMode:"math",mathstyle:t.mathstyle})}).render(i);return A?(Os($u(A,i)),BA(A,{classes:"ML__latex"}).toMarkup()):""}function Dg(e){return Ru(e,{context:lu()})}function zm(e,t={}){return Fo(al(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function $m(e){const t=al(e,{parseMode:"math",mathstyle:"displaystyle"});return df(t)}var f0;function Zm(e){var t,r;if(!f0){const n=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;n?f0=new n:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(r=f0==null?void 0:f0.box(e).latex)!=null?r:""}function Pg(e,t="math"){return $s(new Zr({type:"root",body:al(e,{parseMode:t})}))}function Ng(e){return P(e,{format:"ascii-math"})[1]}function j0(e){if(typeof e=="string"){const t=Vm(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Gm(e):"a"in e?Oh(e):e}function ff(e){return e<0?0:e>255?255:Math.round(e)}function Vm(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&typeof t.a=="undefined"&&(t.a=1),t}function z0(e){const[t,r,n]=[e.L,e.C,e.H],i=n*Math.PI/180,s={L:t,a:r*Math.cos(i),b:r*Math.sin(i)};return e.alpha!==void 0&&(s.alpha=e.alpha),s}function Wm(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.sqrt(r*r+n*n),A=Math.atan2(n,r)*180/Math.PI,M={L:t,C:i,H:A};return e.alpha!==void 0&&(M.alpha=e.alpha),M}function $0(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*n,3),s=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*n,3),A=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*n,3),M=4.076741661347994*i-3.307711590408193*s+.230969928729428*A,z=-1.2684380040921763*i+2.6097574006633715*s-.3413193963102197*A,J=-.004196086541837188*i-.7034186144594493*s+1.7076147009309444*A,Ae=Qe=>{const ft=Math.abs(Qe);return ft<=.0031308?Qe*12.92:(Math.sign(Qe)||1)*(1.055*Math.pow(ft,1/2.4)-.055)};return[Ae(M),Ae(z),Ae(J)]}function Z0(e){const[t,r,n]=e;return t>=0&&t<=1&&r>=0&&r<=1&&n>=0&&n<=1}function V0(e,t){let[r,n,i]=e;return r=ff(r*255),n=ff(n*255),i=ff(i*255),t!==void 0?{r,g:n,b:i,alpha:t}:{r,g:n,b:i}}function Oh(e){let[t,r,n]=$0(e);if(Z0([t,r,n]))return V0([t,r,n],e.alpha);const i=Wm(e);if(i.C=0,[t,r,n]=$0(z0(i)),!Z0([t,r,n]))return V0([t,r,n],e.alpha);let s=0,A=e.L,M=(s+A)/2;i.C=M;const z=.36/Math.pow(2,12);for(;A-s>z;)M=(s+A)/2,i.C=M,[t,r,n]=$0(z0(i)),Z0([t,r,n])?s=M:A=M;return V0([t,r,n],e.alpha)}function Gm(e){return Oh(z0(e))}function Th(e,t){const r=j0(e),n=j0(t),i=.56,s=.57,A=.62,M=.65,z=.022,J=1.414,Ae=.1,Qe=5e-4,ft=1.14,Ft=.027,Ot=1.14,Er=.027;function En(Ui){return Ui>=z?Ui:Ui+ku(z-Ui,J)}function Cr(Ui){return(Ui<0?-1:1)*Math.pow(Math.abs(Ui),2.4)}const nn=En(Cr(n.r/255)*.2126729+Cr(n.g/255)*.7151522+Cr(n.b/255)*.072175),Pn=En(Cr(r.r/255)*.2126729+Cr(r.g/255)*.7151522+Cr(r.b/255)*.072175);let pn,Ii,$i;return Math.abs(Pn-nn)<Qe?Ii=0:Pn>nn?(pn=ku(Pn,i)-ku(nn,s),Ii=pn*ft):(pn=ku(Pn,M)-ku(nn,A),Ii=pn*Ot),Math.abs(Ii)<Ae?$i=0:Ii>0?$i=Ii-Er:$i=Ii+Ft,$i*100}function Uh(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const n=Th(e,r),i=Th(e,t);return Math.abs(n)>Math.abs(i)?r:t}function Xm(e){const t=j0(e);let r=((1<<24)+(ff(t.r)<<16)+(ff(t.g)<<8)+ff(t.b)).toString(16).slice(1);return t.alpha!==void 0&&t.alpha<1&&(r+=("00"+Math.round(t.alpha*255).toString(16)).slice(-2)),r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]+(t.alpha!==void 0&&t.alpha<1?r[6]:"")),"#"+r}function ys(e){const t=Rh(e);let r="";for(const n of t){if(typeof n.value!="string")return"";r+=n.value}return r}function Rh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function Jm(e,t){const r=Rh(e);if(r.length!==1)return!1;const n=vu[t];return n?!!n.test(r[0].value):!1}function Ym(e,t){return ys(e).length>0}function qm(e){return[W0(e,"double-struck","mathbb","tooltip.blackboard"),W0(e,"fraktur","mathfrak","tooltip.fraktur"),W0(e,"calligraphic","mathcal","tooltip.caligraphic"),G0(e,"up","mathrm","tooltip.roman-upright"),G0(e,"bold","mathbf","tooltip.bold"),G0(e,"italic","mathit","tooltip.italic")]}function eg(e){return[{label:()=>Il(`\\vec{${ys(e)}}`),visible:()=>ys(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overrightarrow{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overleftarrow{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Il(`\\dot{${ys(e)}}`),visible:()=>ys(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Il(`\\ddot{${ys(e)}}`),visible:()=>ys(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Il(`\\bar{${ys(e)}}`),visible:()=>ys(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overline{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overgroup{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overbrace{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Il(`\\underline{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Il(`\\undergroup{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Il(`\\underbrace{${ys(e)}}`),visible:()=>ys(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function tg(e){return[{label:()=>Il(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Il(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Il(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function rg(e){const t=[];for(const r of Object.keys(le))t.push({class:(Xm(Uh(le[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${le[r]} "></span>`,ariaLabel:()=>{var n;return(n=X(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({backgroundColor:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function ng(e){const t=[];for(const r of Object.keys(he))t.push({class:(Uh(he[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${he[r]} "></span>`,ariaLabel:()=>{var n;return(n=X(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({color:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var ig=class extends Eh{constructor(e,t,r,n){super(e,t),this.row=r,this.col=n}set active(e){const t=this.parentMenu.children;if(e)for(const r of t)r.element.classList.toggle("active",r.row<=this.row&&r.col<=this.col);else for(const r of t)r.element.classList.remove("active")}};function ag(e){const t=[];for(let r=1;r<=5;r++)for(let n=1;n<=5;n++)t.push({onCreate:(i,s)=>new ig(i,s,r,n),label:"\u2610",tooltip:()=>X("tooltip.row-by-col",r,n),data:{row:r,col:n},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(n).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function og(e){return[{label:()=>X("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>jd(e)},{label:()=>X("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>jd(e)},{label:()=>X("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>jd(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,n]=lg(e);return r<t.maxColumns}},{label:()=>X("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>jd(e)},{type:"divider"},{label:()=>X("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>jd(e)},{label:()=>X("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>jd(e)},{type:"divider"},{label:()=>X("menu.borders"),visible:()=>(sg(e)||jd(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Pf(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Pf(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Pf(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Pf(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Pf(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>X("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:ag(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>X("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>X("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{As(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>X("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{As(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>X("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>X("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:qm(e),submenuClass:"variant-submenu"},{label:()=>X("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:ng(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>X("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:rg(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>X("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:eg(e),submenuClass:"variant-submenu"},{label:()=>X("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ys(e).length>0,submenu:tg(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>X("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=cg(e);if(!t){e.model.announce("plonk");return}e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>X("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const n=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!n){e.model.announce("plonk");return}e.insert(`=${n.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!n){e.model.announce("plonk");return}e.insert(n.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(window.MathfieldElement.computeEngine===null)return"";const r=(t=e.expression)==null?void 0:t.unknowns[0];return r?X("menu.solve-for",Il(r)):X("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((t=e.expression)==null?void 0:t.unknowns.length)===1&&e.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var t;const r=e.expression,n=r==null?void 0:r.unknowns[0],i=(t=r.solve(n))==null?void 0:t.map(s=>{var A;return(A=s.simplify().latex)!=null?A:""});if(!i){e.model.announce("plonk");return}e.insert(`${n}=${i.length===1?i[0]:"\\left\\lbrace"+(i==null?void 0:i.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>X("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>X("menu.copy"),id:"copy",submenu:[{label:()=>X("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>zi.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>X("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>zi.copyToClipboard(e,"ascii-math")},{label:()=>X("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>zi.copyToClipboard(e,"math-ml")}]},{label:()=>X("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>X("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function jd(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function sg(e){return e.model.at(e.model.position).type==="array"}function lg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((n,i)=>Math.max(n,i.length),0)]:[0,0]}function Pf(e,t){NA(e),e.flushInlineShortcutBuffer(),ih(e.model,t),Es(e)}function cg(e){var t,r;let n;if(e.model.selectionIsCollapsed?n=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!n)return"";let i=n.evaluate();return i.isSame(n)&&(i=n.N()),i.latex}function W0(e,t,r,n){return{label:()=>Il(`\\${r}{${ys(e)}}`),tooltip:()=>{var i;return(i=X(n))!=null?i:n},visible:()=>Jm(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variant:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function G0(e,t,r,n){return{label:()=>Il(`\\${r}{${ys(e)}}`),tooltip:()=>{var i;return(i=X(n))!=null?i:n},visible:()=>Ym(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variantStyle:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function hf(e,t){return e+df(t)}ic({speak:(e,t,r)=>Ag(e,t,r)},{target:"mathfield"});function Ag(e,t,r){var n,i;r=r!=null?r:{withHighlighting:!1};const{model:s}=e;function A(Ae){let Qe=null;switch(Ae){case"all":Qe=s.root;break;case"selection":Qe=s.getAtoms(s.selection);break;case"left":{Qe=s.getAtoms(s.offsetOf(s.at(s.position).leftSibling),s.position);break}case"right":{Qe=s.getAtoms(s.position,s.offsetOf(s.at(s.position).rightSibling));break}case"group":Qe=s.getAtoms(s.getSiblingsRange(s.position));break;case"parent":{const{parent:ft}=s.at(s.position);ft!=null&&ft.parent?Qe=ft:Qe=s.root;break}default:Qe=s.root}return Qe}function M(Ae){let Qe="";switch(Ae){case"all":console.log("Internal failure: speak all failed");break;case"selection":Qe="no selection";break;case"left":Qe="at start";break;case"right":Qe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Qe="no parent";break;default:console.log('unknown speak_ param value: "'+Ae+'"');break}return Qe}const z=A(t);if(z===null)return(i=(n=window.MathfieldElement).speakHook)==null||i.call(n,M(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const J=df(z);return N()&&r.withHighlighting?(Cd().readAloudMathfield=e,bu(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,J)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(J),!1}function ug(e){var t,r;if(!N()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const n=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(n)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};n.synthesizeSpeech(i,(s,A)=>{if(s)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);else if(A!=null&&A.AudioStream){const M=new Uint8Array(A.AudioStream),z=new Blob([M.buffer],{type:"audio/mpeg"}),J=URL.createObjectURL(z);new Audio(J).play().catch(Qe=>console.log(Qe))}else console.log("polly.synthesizeSpeech():",A)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function Qh(e){var t;let r;if(e.parent.type==="prompt")e.parentBranch==="body"&&(r="prompt");else if(e.parentBranch==="body")r=e.type&&(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])!=null?t:"parent";else if(e.parent.type==="genfrac"){if(e.parentBranch==="above")return"numerator";if(e.parentBranch==="below")return"denominator"}else e.parent.type==="surd"?e.parentBranch==="above"&&(r="index"):e.parentBranch==="superscript"?r="superscript":e.parentBranch==="subscript"&&(r="subscript");return r||console.log("unknown relationship"),r!=null?r:"parent"}function dg(e,t,r,n){let i="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")i=hf("deleted: ",n);else if(t==="focus"||t.includes("move"))i=fg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+hg(e.model);else if(t==="replacement")i=hf("",e.model.at(e.model.position));else if(t==="line"){const s=hf("",e.model.root);e.keyboardDelegate.setAriaLabel(s)}else i=n?hf(t+" ",n):t;if(i){const s=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=i+s}}function fg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let n="",i=r.parent;const s=e.at(e.position).parent;for(;i!==e.root&&i!==s;)n+=`out of ${Qh(i)};`,i=i.parent;return n}function hg(e){if(!e.selectionIsCollapsed)return hf("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),n=Qh(r);return r.isFirstSibling&&(t=(n?"start of "+n:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=n?"end of "+n:"unknown"):t+=hf("",r),t}var pg=class{constructor(e,t,r){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=r}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var r;const n=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let i={};if((t==null?void 0:t.type)==="undo"&&(i={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(i={inputType:"historyRedo"}),this.contentWillChange(i)){const s=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=pA(e.content),this.selection=e.selection,this.silenceNotifications=s,this.contentDidChange(i)}this.silenceNotifications=n}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var r,n,i;const s=this.normalizeSelection(e,t);if(s===void 0)throw new TypeError("Invalid selection");if(s.ranges.length===1&&s.ranges[0][0]===s.ranges[0][1]){const Ae=s.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(Ae))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((n=this.at(Ae-1))!=null&&n.parentPrompt){this._anchor=this.normalizeOffset(Ae-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((i=this.at(Ae+1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(Ae+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=Ae,this._position=Ae,this._selection=s;return}const A=ws(s);s.direction==="backward"?[this._position,this._anchor]=A:[this._anchor,this._position]=A;const M=this.at(A[0]+1),z=this.at(A[1]),J=Zr.commonAncestor(M,z);(J==null?void 0:J.type)==="array"&&M.parent===J&&z.parent===J?this._selection={ranges:[A],direction:s.direction}:this._selection={ranges:[A],direction:s.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(e){var t;const r=this.at(e);(r==null?void 0:r.type)==="placeholder"?this.setSelection(e-1,e):((t=r==null?void 0:r.rightSibling)==null?void 0:t.type)==="placeholder"?this.setSelection(e,e+1):this.position=e,r instanceof Is&&r.isSuggestion&&(r.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(e="forward"){return this._anchor===this._position?!1:(e==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:r}=t;if(!r)return[0,this.lastOffset];const n=t.parent.branch(t.parentBranch);return[this.offsetOf(n[0]),this.offsetOf(n[n.length-1])]}getBranchRange(e,t){const r=this.at(e).branch(t);return[this.offsetOf(r[0]),this.offsetOf(r[r.length-1])]}getAtoms(e,t,r){let n=r!=null?r:{};if(Gc(e)){if(n=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((J,Ae)=>[...J,...this.getAtoms(Ae,n)],[]);e=e.ranges[0]}let i,s;if(vc(e)){if(i=e,!vc(t))return[];s=t}else[i,s]=e,n=t!=null?t:{};if(!Number.isFinite(i))return[];n.includeChildren===void 0&&(n.includeChildren=!1),i<0&&(i=this.lastOffset-i+1),s<0&&(s=this.lastOffset-s+1);const A=Math.min(i,s)+1,M=Math.max(i,s);if(!n.includeChildren&&A===1&&M===this.lastOffset)return[this.root];let z=[];for(let J=A;J<=M;J++){const Ae=this.atoms[J];Kh(this,Ae,A,M)&&z.push(Ae)}return n.includeChildren||(z=z.filter(J=>{let Ae=!1,{parent:Qe}=J;for(;Qe&&!Ae;)Ae=Kh(this,Qe,A,M),Qe=Qe.parent;return!Ae})),z}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let n=e;n<=r;n++)t.push(this.atoms[n]);for(let n=0;n<e;n++)t.push(this.atoms[n]);return t}findAtom(e,t=0,r="forward"){let n;const i=this.lastOffset;if(r==="forward"){for(let s=t;s<=i;s++)if(n=this.atoms[s],e(n))return n;for(let s=0;s<t;s++)if(n=this.atoms[s],e(n))return n;return}for(let s=t;s>=0;s--)if(n=this.atoms[s],e(n))return n;for(let s=i;s>t;s--)if(n=this.atoms[s],e(n))return n}extractAtoms(e){let t=this.getAtoms(e);if(t.length===1&&!t[0].parent)if(t[0].type==="root")t=[...t[0].body],t.shift();else return t=this.root.cells.flat(),this.root=new Zr({type:"root",body:[]}),t;for(const r of t)r.parent.removeChild(r);return t}deleteAtoms(e){this.extractAtoms(e),this.position=e[0]}atomToString(e,t){const r=t!=null?t:"latex";if(r.startsWith("latex"))return Zr.serialize([e],{expandMacro:r==="latex-expanded",skipStyles:r==="latex-unstyled",skipPlaceholders:r==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(r==="math-ml")return Fo(e);if(r==="spoken")return df(e);if(r==="spoken-text"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const i=df(e);return window.MathfieldElement.textToSpeechMarkup=n,i}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const i=df(e);return window.MathfieldElement.textToSpeechMarkup=n,i}return r==="ascii-math"?$s(e):(console.error(`MathLive 0.98.5: Unexpected format "${r}`),"")}getValue(e,t,r){if(e===void 0)return this.atomToString(this.root,"latex");if(typeof e=="string"&&e!=="math-json")return this.atomToString(this.root,e);let n,i;if(vc(e)&&vc(t)?(n=[this.normalizeRange([e,t])],i=r):GA(e)?(n=[this.normalizeRange(e)],i=t):Gc(e)?(n=e.ranges,i=t):(n=[this.normalizeRange([0,-1])],i=e),i!=null||(i="latex"),i==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const s=this.getValue({ranges:n},"latex-unstyled");try{const A=window.MathfieldElement.computeEngine.parse(s);return JSON.stringify(A.json)}catch(A){return JSON.stringify(["Error",`'${A.toString()}'`])}}if(i.startsWith("latex")){const s={expandMacro:i==="latex-expanded",skipStyles:i==="latex-unstyled",skipPlaceholders:i==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return wa(n.map(A=>Zr.serialize(this.getAtoms(A),s)))}return n.map(s=>this.getAtoms(s).map(A=>this.atomToString(A,i)).join("")).join("")}extendSelectionTo(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const r=this.normalizeRange([e,t]);let[n,i]=r,{parent:s}=this.at(i);if(s&&(s.type==="genfrac"||s.type==="subsup"))for(;s!==this.root&&X0(this,s,[n,i]);)i=this.offsetOf(s),s=s.parent;for(s=this.at(n).parent;s!==this.root&&X0(this,s,[n,i]);)n=this.offsetOf(s.leftSibling),s=s.parent;if(s=this.at(i).parent,(s==null?void 0:s.type)==="genfrac")for(;s!==this.root&&X0(this,s,[n,i]);)i=this.offsetOf(s),console.assert(i>=0),s=s.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[n,i]],direction:"none"}})}announce(e,t,r=[]){var n,i;((i=(n=this.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0)&&dg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,n=this._anchor,i=this._position,s=this.silenceNotifications;this.silenceNotifications=!0;const A=this.root.changeCounter;t();const M=this.root.changeCounter!==A,z=n!==this._anchor||i!==this._position||Au(this._selection,r)==="different";return this.silenceNotifications=s,e.content&&M&&this.contentDidChange({inputType:e.type}),e.selection&&z&&this.selectionDidChange(),M||z}normalizeOffset(e){return e>0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,r]=e;return t=this.normalizeOffset(t),r=this.normalizeOffset(r),t<r?[t,r]:[r,t]}normalizeSelection(e,t){var r;let n;if(vc(e)){const i=this.normalizeOffset(e);if(vc(t)){const s=this.normalizeOffset(t);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else n={ranges:[[i,i]],direction:"none"}}else if(GA(e)){const i=this.normalizeOffset(e[0]),s=this.normalizeOffset(e[1]);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else Gc(e)&&(n={ranges:e.ranges.map(i=>this.normalizeRange(i)),direction:(r=e.direction)!=null?r:"none"});return console.assert(n!==void 0),n}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&e.type!=="array";)e=e.parent;if(e.type==="array")return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&((e=t.parent)==null?void 0:e.type)!=="array";)t=t.parent;if(!(!(t!=null&&t.parent)||t.parent.type!=="array"))return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const r=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,r}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",E(f({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=r}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Kh(e,t,r,n){const i=e.offsetOf(t);if(i<r||i>n)return!1;if(!t.hasChildren)return!0;const s=e.offsetOf(t.firstChild);if(s>=r&&s<=n){const A=e.offsetOf(t.lastChild);if(A>=r&&A<=n)return!0}return!1}function X0(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[n,i]=r,s=e.offsetOf(t.firstChild),A=e.offsetOf(t.lastChild);return s>=n&&s<=i&&A>=s&&A<=i}function Nf(e,t,r,n){var i,s,A,M,z,J;const Ae=r.parent;if(Ae&&r instanceof Xa){const Qe=!n&&t==="forward"||n==="body"&&t==="backward";let ft=Qe?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Qe?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),ft--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),ft--),e.position=ft,!0}if(Ae&&r.type==="surd"){if(t==="forward"&&!n||t==="backward"&&n==="body"){const Qe=r.leftSibling;r.hasChildren&&Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),e.position=e.offsetOf(Qe)}else t==="forward"&&n==="body"?e.position=e.offsetOf(r):!n&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),Ae.removeChild(r)):n==="above"&&(r.hasEmptyBranch("above")&&r.removeBranch("above"),t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r.body[0]));return!0}if(Ae&&(r.type==="box"||r.type==="enclose")){const Qe=n&&t==="backward"||!n&&t==="forward"?r.leftSibling:r.lastChild;return Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),e.position=e.offsetOf(Qe),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!n)return r.type==="overunder"&&r.hasEmptyBranch("body")||r.type==="genfrac"&&r.hasEmptyBranch("below")&&r.hasEmptyBranch("above")?!1:(e.position=e.offsetOf(t==="forward"?r.firstChild:r.lastChild),!0);const Qe=Of.fractionNavigationOrder==="numerator-denominator"?"above":"below",ft=Qe==="above"?"below":"above";if(Ae&&(t==="forward"&&n===Qe||t==="backward"&&n===ft)){const Ft=r.removeBranch(Qe),Ot=r.removeBranch(ft);return Ae.addChildrenAfter([...Ft,...Ot],r),Ae.removeChild(r),e.position=e.offsetOf(Ft.length>0?Ft[Ft.length-1]:Ot[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!n&&t==="forward")return!1;if(!n){if(r.subscript||r.superscript){const Qe=t==="forward"?(A=(i=r.superscript)==null?void 0:i[0])!=null?A:(s=r.subscript)==null?void 0:s[0]:(J=(M=r.subscript)==null?void 0:M[0].lastSibling)!=null?J:(z=r.superscript)==null?void 0:z[0].lastSibling;return Qe&&(e.position=e.offsetOf(Qe)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Qe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Qe,!0}if(n==="superscript")if(t==="backward"){const Qe=e.offsetOf(r.firstChild)-1;console.assert(Qe>=0),e.position=Qe}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else n==="subscript"&&(t==="backward"&&r.superscript?e.position=e.offsetOf(r.superscript[0].lastSibling):t==="backward"?e.position=e.offsetOf(r.firstChild)-1:e.position=e.offsetOf(r));if(n&&r.hasEmptyBranch(n)&&(r.removeBranch(n),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Qe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Qe}return!0}if((Ae==null?void 0:Ae.type)==="genfrac"&&!n&&r.type!=="first"){let Qe=e.offsetOf(r.leftSibling);return Ae.removeChild(r),Ae.hasEmptyBranch("above")&&Ae.hasEmptyBranch("below")?(Qe=e.offsetOf(Ae.leftSibling),Ae.parent.removeChild(Ae),e.announce("delete",void 0,[Ae]),e.position=Qe,!0):(e.announce("delete",void 0,[r]),e.position=Qe,!0)}if(t==="backward"&&((Ae==null?void 0:Ae.command)==="\\ln"||(Ae==null?void 0:Ae.command)==="\\log")&&r.parentBranch!=="body"){const Qe=e.offsetOf(Ae.leftSibling);return Ae.parent.removeChild(Ae),e.announce("delete",void 0,[Ae]),e.position=Qe,!0}return!1}function mg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentBackward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let t=e.at(e.position);if(!(t&&Nf(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(Nf(e,"backward",t.parent,t.parentBranch))return;t=null}if(!t){e.announce("plonk");return}e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])}}):Eu(e,ws(e.selection),"deleteContentBackward")}function gg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentForward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var t,r;let n=e.at(e.position).rightSibling;if(n&&Nf(e,"forward",n))return;if(n){if(e.at(e.position).isLastSibling&&Nf(e,"forward",n.parent,n.parentBranch))return}else{if(n=e.at(e.position),n.isLastSibling&&Nf(e,"forward",n.parent,n.parentBranch))return;n=void 0}if(e.position===e.lastOffset||!n){e.announce("plonk");return}n.parent.removeChild(n);let i=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(i==null?void 0:i.type)==="subsup";)i.parent.removeChild(i),i=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[n])}):Eu(e,ws(e.selection),"deleteContentForward")}function Eu(e,t,r){const n=e.getAtoms(t);if(n.length>0&&n[0].parent){let i=n[0].parent.firstChild;i.type==="first"&&(i=i.rightSibling);const s=n[n.length-1].parent.lastChild;let A=n[0];A.type==="first"&&(A=A.rightSibling);const M=n[n.length-1];if(A===i&&M===s){const z=n[0].parent;z.parent&&z.type!=="prompt"&&(t=[e.offsetOf(z.leftSibling),e.offsetOf(z)])}if(n.length===1&&n[0].type==="placeholder"&&n[0].parent.type==="genfrac"){const z=n[0].parent,J=n[0].parentBranch==="below"?"above":"below",Ae=e.offsetOf(z.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Qe,ft;const Ft=z.removeBranch(J);if(Ft.length===1&&Ft[0].type==="placeholder")(ft=z.parent)==null||ft.removeChild(z),e.position=Math.max(0,Ae);else{const Ot=z.parent.addChildrenAfter(Ft,z);(Qe=z.parent)==null||Qe.removeChild(z),e.position=e.offsetOf(Ot)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}ic({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&Eu(e,[0,-1],"deleteContent"),deleteForward:e=>gg(e),deleteBackward:e=>mg(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&Eu(e,[e.anchor,S0(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&Eu(e,[e.anchor,S0(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&Eu(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&Eu(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&Eu(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&Eu(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var vg=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${X("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,yg=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${X("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,bg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,n,i;this.options=f(E(f({},Jf()),{macros:At(),registers:ec()}),Xf(t)),this.eventController=new AbortController;const s=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let A=(n=(r=t.value)!=null?r:this.element.textContent)!=null?n:"";A=A.trim();const M=th(this.options),z=new Zr({type:"root",mode:M,body:al(A,{context:this.context})});this.model=new pg(this,M,z),this.undoManager=new $p(this.model);const J=[];if(J.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),J.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),J.push("<span part=content class=ML__content>"),J.push(Kf(this)),J.push("</span>"),window.mathVirtualKeyboard&&(J.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),J.push(vg),J.push("</div>")),J.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),J.push(yg),J.push("</div>"),J.push("</span>"),J.push("<span class=ML__sr-only>"),J.push("<span role=status aria-live=assertive aria-atomic=true></span>"),J.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(J.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=te.subscribe(()=>te.update(this.element)),te.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Qe=>Qe.stopImmediatePropagation(),{capture:!1,signal:s}),this.field.addEventListener("wheel",this,{passive:!1,signal:s}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:s}):this.field.addEventListener("mousedown",this,{signal:s}),(i=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||i.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Bu(this)))},{signal:s}),this._menu=new Mm(og(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:s});const Ae=this.element.querySelector("[part=menu-toggle]");Ae==null||Ae.addEventListener("pointerdown",Qe=>{if(Qe.currentTarget!==Ae||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ft=Ae.getBoundingClientRect();this._menu.modifiers=Ua(Qe),this._menu.show({target:Ae,location:{x:ft.left,y:ft.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Qe.preventDefault(),Qe.stopPropagation()},{signal:s}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ae.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=ol(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:s}),document.addEventListener("scroll",this,{signal:s}),this.resizeObserver=new ResizeObserver(()=>Es(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:s}),Or&&!te.locale.startsWith(Or.locale)&&fi(te.locale),Tc!=="ready"&&document.fonts.ready.then(()=>Yu(this)),e.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const e=this.model.at(this.model.position),t=this.adoptStyle==="right"?e.rightSibling:e;if(!t)return this.defaultStyle;if(t.type==="group"){const r=t.branch("body");return!r||r.length<2?{}:this.adoptStyle==="right"?r[1].computedStyle:r[r.length-1].computedStyle}return t.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this)),c0(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,O0())}showMenu(e){var t,r;const n=(r=(t=e==null?void 0:e.location)!=null?t:Cs(this.field))!=null?r:void 0,i=e==null?void 0:e.modifiers,s=this.element.querySelector("[part=container]");return this._menu.show({target:s,location:n,modifiers:i})}get colorMap(){return e=>{var t,r,n;return(n=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?n:je(e)}}get backgroundColorMap(){return e=>{var t,r,n,i,s,A;return(A=(s=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?s:(i=(n=this.options).colorMap)==null?void 0:i.call(n,e))!=null?A:q(e)}}get smartFence(){var e;return(e=this.options.smartFence)!=null?e:!1}get readOnly(){var e;return(e=this.options.readOnly)!=null?e:!1}get disabled(){var e,t;return(t=(e=this.host)==null?void 0:e.disabled)!=null?t:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(e=>e.type==="prompt"&&!e.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),r=Zr.commonAncestor(e,t);return!!((r==null?void 0:r.type)==="prompt"||r!=null&&r.parentPrompt)}get letterShapeStyle(){var e;return(e=this.options.letterShapeStyle)!=null?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(e.length===0)return{};const t=f({},e[0].style);for(const r of e)for(const[n,i]of Object.entries(r.style))t[n]!==i&&delete t[n];return t}queryStyle(e){const t=L0(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const r=Object.keys(t).length;if(r===0)return"all";if(r>1){for(const z of Object.keys(t)){const J=this.queryStyle({[z]:t[z]});if(J==="none")return"none";if(J==="some")return"some"}return"all"}const n=Object.keys(t)[0],i=t[n];if(this.model.selectionIsCollapsed)return this.effectiveStyle[n]===i?"all":"none";const s=this.model.getAtoms(this.model.selection,{includeChildren:!0});let A=s.length;if(A===0)return"none";let M=0;for(const z of s){if(z.type==="first"){A-=1;continue}z.style[n]===i&&(M+=1)}return M===0?"none":M===A?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,n]=dc(this.options.keybindings,(e=Jn())!=null?e:Gi());return((t=Jn())==null?void 0:t.score)>0&&(this._keybindings=r,n.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",n)),r}get menu(){return this._menu}setOptions(e){var t;this.options=f(f({},this.options),Xf(e)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let r=this.options.defaultMode;r==="inline-math"&&(r="math"),((t=this.model.root.firstChild)==null?void 0:t.mode)!==r&&(this.model.root.firstChild.mode=r),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const n=Zr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==n)&&zi.insert(this.model,n,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&Es(this)}getOptions(e){return Od(this.options,e)}getOption(e){return Od(this.options,e)}handleEvent(e){return Bd(this,null,function*(){var t;if(zo(this)){if(rf(e)){if(!sA(e.origin,(t=this.options.originValidator)!=null?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:r}=e.data;if(r==="execute-command"){const n=e.data.command;if(ed(n)==="virtual-keyboard")return;this.executeCommand(n)}else r==="update-state"||(r==="focus"?this.focus({preventScroll:!0}):r==="blur"&&this.blur());return}switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&mh(this,e);break;case"pointerdown":this.userSelect!=="none"&&(mh(this,e),e.shiftKey===!1&&(yield Mh(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield Mh(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&c0(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>zo(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>zo(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!zo(this))return;te.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const e=this.element;delete e.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,rm(),gd(),Cm()}flushInlineShortcutBuffer(e){if(e!=null||(e={defer:!1}),!e.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(e){return ed(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Bu(this))),!1):v0(this,e)}get errors(){return Ru(this.model.getValue(),{context:this.context})}getValue(e,t,r){return this.model.getValue(e,t,r)}setValue(e,t){var r;t=t!=null?t:{mode:"math"},t.insertionMode===void 0&&(t.insertionMode="replaceAll"),(t.format===void 0||t.format==="auto")&&(t.format="latex"),(t.mode===void 0||t.mode==="auto")&&(t.mode=(r=XA(this.model,this.model.position))!=null?r:"math");const n=this.undoManager.canUndo();zi.insert(this.model,e,t)&&(Es(this),n||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const n=window.mathVirtualKeyboard.boundingRect,i=this.host.getBoundingClientRect();i.bottom>n.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,i.bottom-n.top+8))}}this.dirty&&bu(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=Cs(this.field);else{const n=fu(this);if(n.length>0){let i=-1/0,s=-1/0;for(const A of n)A.right>i&&(i=A.right),A.top<s&&(s=A.top);r={x:i+t.left-this.field.scrollLeft,y:s+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const n=this.host.getBoundingClientRect(),i=r.y;let s=this.host.scrollTop;i<n.top?s=i-n.top+this.host.scrollTop:i>n.bottom&&(s=i-n.bottom+this.host.scrollTop+r.height),this.host.scroll({top:s,left:0})}if(r){const n=r.x-window.scrollX;let i=this.field.scrollLeft;n<t.left?i=n-t.left+this.field.scrollLeft-20:n>t.right&&(i=n-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:i})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&I()&&navigator.vibrate(wf),window.MathfieldElement.playSound("keypress")),e==="\\\\"?rh(this.model):e==="&"?nh(this.model):this.model.selectionIsCollapsed?zi.insert(this.model,e,f({style:this.model.at(this.model.position).computedStyle},t)):zi.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Es(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var n;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const i=this.model.mode;if(this.model.mode=e,!((n=this.host)!=null&&n.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=i;return}const s=this.model.mode,{model:A}=this;A.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let M=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const z=al(t,{context:this.context,parseMode:e});A.collapseSelection("forward");const J=A.at(A.position);A.position=A.offsetOf(J.parent.addChildrenAfter(z,J)),M=!0}if(this.model.mode=e,e==="latex"){let z=A.selectionIsCollapsed;As(this,"accept");let J,Ae=A.at(A.position);if(z)J="\\";else{const ft=ws(A.selection);J=this.model.getValue(ft,"latex");const Ft=this.model.extractAtoms(ft);Ft.length===1&&Ft[0].type==="placeholder"&&(J=t,z=!0),Ae=A.at(ft[0])}const Qe=new Hu(J);Ae.parent.addChildAfter(Qe,Ae),z?A.position=A.offsetOf(Qe.lastChild):A.setSelection(A.offsetOf(Qe.firstChild),A.offsetOf(Qe.lastChild))}else zs(A).forEach(z=>{z.isError=!1});if(r){const z=al(r,{context:this.context,parseMode:s});A.collapseSelection("forward");const J=A.at(A.position);A.position=A.offsetOf(J.parent.addChildrenAfter(z,J)),M=!0}return Es(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),M}),this.model.mode=e,window.mathVirtualKeyboard.update(Bu(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(t=e==null?void 0:e.preventScroll)!=null&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var r,n;const i={operation:"set",silenceNotifications:!1};GA(t)?i.range=t:(t.operation==="toggle"&&(i.operation="toggle"),i.range=t.range,i.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const s=L0(this,e),A=(n=i.operation)!=null?n:"set";if(i.range===void 0&&this.model.selectionIsCollapsed){if(A==="set"){this.defaultStyle=f(f({},this.defaultStyle),s);return}const M=f({},this.defaultStyle);for(const z of Object.keys(s))M[z]===s[z]?(z==="color"&&delete M.verbatimColor,z==="backgroundColor"&&delete M.verbatimBackgroundColor,delete M[z]):M[z]=s[z];this.defaultStyle=M;return}this.model.deferNotifications({content:!i.silenceNotifications,type:"insertText"},()=>{if(i.range===void 0)for(const M of this.model.selection.ranges)C0(this.model,M,s,{operation:A});else C0(this.model,i.range,s,{operation:A})}),Es(this)}toggleContextMenu(){var e;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(e=this.getCaretPoint())!=null?e:void 0,onDismiss:()=>{var t;return(t=this.element)==null?void 0:t.focus()}}),!0):!1}getCaretPoint(){const e=Cs(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=Mf(this,e,t,{bias:0});if(r<0)return!1;const n=this.model.position;return this.model.position=r,this.model.announce("move",n),Es(this),!0}getPrompt(e){const t=this.model.findAtom(r=>r.type==="prompt"&&r.placeholderId===e);return console.assert(t!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),t}getPromptValue(e,t){const r=this.getPrompt(e);if(!r)return"";const n=this.model.offsetOf(r.firstChild),i=this.model.offsetOf(r.lastChild);return this.model.getValue(n,i,t)}getPrompts(e){return this.model.getAllAtoms().filter(t=>t.type!=="prompt"?!1:e?!(e.id&&t.placeholderId!==e.id||e.locked&&t.locked!==e.locked||e.correctness==="undefined"&&t.correctness||e.correctness&&t.correctness!==e.correctness):!0).map(t=>t.placeholderId)}setPromptValue(e,t,r){if(t!==void 0){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}const i=this.model.getBranchRange(this.model.offsetOf(n),"body");this.model.setSelection(i),this.insert(t,E(f({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),Es(this)}setPromptState(e,t,r){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}t==="undefined"?n.correctness=void 0:typeof t=="string"&&(n.correctness=t),typeof r=="boolean"&&(n.locked=r,n.captureSelection=r),Es(this)}getPromptState(e){const t=this.getPrompt(e);return t?[t.correctness,t.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[void 0,!0])}getPromptRange(e){const t=this.getPrompt(e);return t?this.model.getBranchRange(this.model.offsetOf(t),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(e){var t;this.undoManager.snapshot(e)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this)),(t=this.host)==null||t.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var e;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var e;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;(e=this.undoManager)==null||e.reset()}onSelectionDidChange(){var e,t;const r=this.model;this.keyboardDelegate.setValue(r.getValue(this.model.selection,"latex-expanded"));{const n=r.at(r.position),i=(e=n.mode)!=null?e:th(this.options);this.model.mode!==i&&(this.model.mode==="latex"?(As(this,"accept",{mode:i}),r.position=r.offsetOf(n)):this.switchMode(i))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Bu(this)),c0(this)}onContentWillChange(e){var t,r,n;return(n=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",E(f({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?n:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),bu(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,r;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",nc(this),this.model.getValue()!==this.valueOnFocus&&((e=this.host)==null||e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(t=this.host)==null||t.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(r=this.host)==null||r.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),Es(this),this.focusBlurInProgress=!1,O0();const n=new AbortController,i=n.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{zo(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:i})},{once:!0,signal:i}),setTimeout(()=>n.abort(),100)}onInput(e){F0(this,e)}onKeystroke(e){return fh(this,e)}onCompositionStart(e){this.model.deleteAtoms(ws(this.model.selection));const t=Cs(this.field);t&&requestAnimationFrame(()=>{bu(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){Op(this.model,e),Es(this)}onCompositionEnd(e){Tp(this.model),F0(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),zi.onCopy(this,e),Eu(this.model,ws(this.model.selection),"deleteByCut"),this.snapshot("cut"),Es(this))}onCopy(e){zi.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=zi.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),Xu(this),c0(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||t===0)return;const r=this.field;t<0&&r.scrollLeft===0||t>0&&r.offsetWidth+r.scrollLeft>=r.scrollWidth||(r.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:(e=this.options.registers)!=null?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(t=this.options.placeholderSymbol)!=null?t:"\u25A2",colorMap:r=>this.colorMap(r),backgroundColorMap:r=>this.backgroundColorMap(r),getMacro:r=>Ut(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Hh(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)Hh(t)}function J0(e,t){var r;e&&(!t||((r=e.dataset)==null?void 0:r.atomId)===t?(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&J0(n)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&J0(n,t)})))}function wg(e,t){var r;if(!N())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};Cd().readAloudElement=e,n.synthesizeSpeech(i,(s,A)=>{if(s){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);return}if(!(A!=null&&A.AudioStream)){console.log("polly.synthesizeSpeech():",A);return}const M=new TextDecoder("utf-8").decode(new Uint8Array(A.AudioStream));Cd().readAloudMarks=M.split(`
`).map(z=>z?JSON.parse(z):{}),Cd().readAloudTokens=[];for(const z of Cd().readAloudMarks)z.value&&Cd().readAloudTokens.push(z.value);Cd().readAloudCurrentMark="",i.OutputFormat="mp3",i.SpeechMarkTypes=[],n.synthesizeSpeech(i,(z,J)=>{if(z){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${z}`);return}if(!(J!=null&&J.AudioStream))return;const Ae=new Uint8Array(J.AudioStream),Qe=new Blob([Ae.buffer],{type:"audio/mpeg"}),ft=URL.createObjectURL(Qe),Ft=Cd();Ft.readAloudAudio?Ft.readAloudAudio.pause():(Ft.readAloudAudio=new Audio,Ft.readAloudAudio.addEventListener("ended",()=>{const Ot=Ft.readAloudMathfield;Ft.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ot?(bu(Ot),Ft.readAloudElement=null,Ft.readAloudMathfield=null,Ft.readAloudTokens=[],Ft.readAloudMarks=[],Ft.readAloudCurrentMark=""):Hh(Ft.readAloudElement)}),Ft.readAloudAudio.addEventListener("timeupdate",()=>{let Ot="";const Er=Ft.readAloudAudio.currentTime*1e3+100;for(const En of Ft.readAloudMarks)En.time<Er&&(Ot=En.value);Ft.readAloudCurrentMark!==Ot&&(Ft.readAloudCurrentToken=Ot,Ot&&Ot===Ft.readAloudFinalToken?Ft.readAloudAudio.pause():(Ft.readAloudCurrentMark=Ot,J0(Ft.readAloudElement,Ft.readAloudCurrentMark)))})),Ft.readAloudAudio.src=ft,Ft.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ft.readAloudAudio.play()})})}N()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Bo=new WeakMap,xg=.5,xd={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},Zl=class zd extends HTMLElement{static get formAssociated(){return pf()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(t){t!==this._fontsDirectory&&(this._fontsDirectory=t,m0())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(t){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(t){this._soundsDirectory=t,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(t){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(t){var r,n,i;this.audioBuffers={},t===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof t=="string"?this._keypressSound={spacebar:t,return:t,delete:t,default:t}:typeof t=="object"&&"default"in t&&(this._keypressSound={spacebar:(r=t.spacebar)!=null?r:t.default,return:(n=t.return)!=null?n:t.default,delete:(i=t.delete)!=null?i:t.default,default:t.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(t){this.audioBuffers={},this._plonkSound=t}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(t){this._speechEngine=t}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(t){this._speechEngineRate=t}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(t){this._speechEngineVoice=t}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(t){this._textToSpeechMarkup=t}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(t){this._textToSpeechRules=t}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(t){this._textToSpeechRulesOptions=t}static get locale(){return te.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),te.locale=t}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(t){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return te.strings}static set strings(t){te.merge(t)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(t){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(t){this._decimalSeparator=t,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(t){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var t,r;if(this._computeEngine===void 0){const n=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!n)return null;this._computeEngine=new n,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(r=this._computeEngine)!=null?r:null}static set computeEngine(t){this._computeEngine=t}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(t){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(t){this._isFunction=t}static loadSound(t){return Bd(this,null,function*(){delete this.audioBuffers[t];let r="";switch(t){case"keypress":r=this._keypressSound.default;break;case"return":r=this._keypressSound.return;break;case"spacebar":r=this._keypressSound.spacebar;break;case"delete":r=this._keypressSound.delete;break;case"plonk":r=this.plonkSound;break}if(typeof r!="string")return;r=r.trim();const n=this.soundsDirectory;if(!(n==null||n==="null"||r==="none"||r==="null"))try{const s=yield(yield fetch(yield Ld(`${n}/${r}`))).arrayBuffer(),A=yield this.audioContext.decodeAudioData(s);this.audioBuffers[t]=A}catch(i){}})}static playSound(t){return Bd(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[t]||(yield this.loadSound(t)),!this.audioBuffers[t])return;const r=this.audioContext.createBufferSource();r.buffer=this.audioBuffers[t];const n=this.audioContext.createGain();n.gain.value=xg,r.connect(n).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const n of Object.keys(t))if(xd[n])if(xd[n].startsWith("mf."))if(xd[n].startsWith(`mf.${n}`))r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${xd[n]}`);else{const i=xd[n].match(/([a-zA-Z]+) =/);r.push(`Option \`${n}\` has been renamed \`${i[1]}\``)}else r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${xd[n]}`);if(r.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const n of r)console.warn(n);console.groupEnd()}}if(pf()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[gl("core"),gl("mathfield"),gl("mathfield-element"),gl("ui"),gl("menu")],this.shadowRoot.appendChild(document.createElement("span"));const r=document.createElement("slot");r.style.display="none",this.shadowRoot.appendChild(r)}else this.shadowRoot.innerHTML="<style>"+Ql("core")+Ql("mathfield")+Ql("mathfield-element")+Ql("ui")+Ql("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const n=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=n==null?void 0:n.assignedNodes().map(i=>i.nodeType===3?i.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?n:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",t=>{var r;t.target===this&&!((r=this._mathfield)!=null&&r.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:t.altKey,button:t.button,buttons:t.buttons,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,relatedTarget:t.relatedTarget,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}))},{once:!0})}getPromptValue(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.getPromptValue(t,r))!=null?i:""}setPromptValue(t,r,n){var i;(i=this._mathfield)==null||i.setPromptValue(t,r,n)}getPromptRange(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?n:null}getPrompts(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?n:[]}get form(){var t;return(t=this._internals)==null?void 0:t.form}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}get type(){return this.localName}get mode(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.mode)!=null?r:this.defaultMode==="text"?"text":"math"}set mode(t){var r;(r=this._mathfield)==null||r.switchMode(t)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(t){var r,n;if(!this._mathfield)return;const i=(n=(r=zd.computeEngine)==null?void 0:r.box(t).latex)!=null?n:null;i!==null&&this._mathfield.setValue(i),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.errors)!=null?r:[]}_getOptions(t){return this._mathfield?Od(this._mathfield.options,t):Bo.has(this)?f({},Od(f(f({},Jf()),Xf(Bo.get(this).options)),t)):null}getOptions(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Od(this._mathfield.options,t):Bo.has(this)?Od(f(f({},Jf()),Xf(Bo.get(this).options)),t):null}reflectAttributes(){const t=Jf(),r=this._getOptions();Object.keys(zd.optionsAttributes).forEach(n=>{const i=rd(n);zd.optionsAttributes[n]==="on/off"?t[i]!==r[i]?this.setAttribute(n,r[i]?"on":"off"):this.removeAttribute(n):t[i]!==r[i]&&(zd.optionsAttributes[n]==="boolean"?r[i]?this.setAttribute(n,""):this.removeAttribute(n):(typeof r[i]=="string"||typeof r[i]=="number")&&this.setAttribute(n,r[i].toString()))})}getOption(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([t])[t]}_getOption(t){return this._getOptions([t])[t]}_setOptions(t){if(this._mathfield)this._mathfield.setOptions(t);else if(Bo.has(this)){const r=f(f({},Bo.get(this).options),t);Bo.set(this,E(f({},Bo.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Bo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:t,menuItems:void 0});this.reflectAttributes()}setOptions(t){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const r of Object.keys(t))xd[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${xd[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?n:!1}getValue(t,r,n){var i,s;if(this._mathfield)return this._mathfield.model.getValue(t,r,n);if(Bo.has(this)){let A,M,z;if(Gc(t)?([A,M]=t.ranges[0],z=r):GA(t)?([A,M]=t,z=r):vc(t)&&vc(r)?(A=t,M=r,z=n):(A=0,M=-1,z=t),(z===void 0||z==="latex")&&A===0&&M===-1)return(s=(i=Bo.get(this).value)!=null?i:this.textContent)!=null?s:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(Bo.has(this)){const i=Bo.get(this).options;Bo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0});return}const n=Tf(this);Bo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:n,menuItems:void 0})}hasFocus(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.hasFocus())!=null?r:!1}focus(){var t;(t=this._mathfield)==null||t.focus()}blur(){var t;(t=this._mathfield)==null||t.blur()}select(){var t;(t=this._mathfield)==null||t.select()}insert(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.insert(t,r))!=null?i:!1}applyStyle(t,r){var n;return(n=this._mathfield)==null?void 0:n.applyStyle(t,r)}queryStyle(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?n:"none"}get caretPoint(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.getCaretPoint())!=null?r:null}set caretPoint(t){var r;t&&((r=this._mathfield)==null||r.setCaretPoint(t.x,t.y))}setCaretPoint(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.setCaretPoint(t,r))!=null?i:!1}offsetFromPoint(t,r,n){return this._mathfield?Mf(this._mathfield,t,r,n):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const n=oA(this._mathfield,r);return n?new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top):null}resetUndo(){var t;(t=this._mathfield)==null||t.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(t){var r,n,i,s;ea.state==="closed"&&((n=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:n.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((i=this._mathfield)==null||i.focus()),t.type==="blur"&&((s=this._mathfield)==null||s.blur()))}connectedCallback(){var t,r,n,i;const s=window.getComputedStyle(this),A=this.shadowRoot,M=s.userSelect!=="none";if(M)A.host.addEventListener("pointerdown",this,!0);else{const Ae=A.querySelector("span");Ae.style.pointerEvents="none"}A.host.addEventListener("focus",this,!0),A.host.addEventListener("blur",this,!0),pf()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),M&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const z=A.querySelector("slot:not([name])");if(z)try{this._style=z.assignedElements().filter(Ae=>Ae.tagName.toLowerCase()==="style").map(Ae=>Ae.textContent).join("")}catch(Ae){console.error(Ae)}if(this._style){const Ae=document.createElement("style");Ae.textContent=this._style,A.appendChild(Ae)}let J="";if(this.hasAttribute("value")?J=this.getAttribute("value"):J=(t=z==null?void 0:z.assignedNodes().map(Ae=>Ae.nodeType===3?Ae.textContent:"").join("").trim())!=null?t:"",this._mathfield=new bg(A.querySelector(":host > span"),E(f({},(n=(r=Bo.get(this))==null?void 0:r.options)!=null?n:Tf(this)),{eventSink:this,value:J})),!Bo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ae of Object.keys(zd.optionsAttributes))this.upgradeProperty(rd(Ae))}if(!((i=this._mathfield)!=null&&i.model)){this._mathfield=null;return}if(Bo.has(this)){const Ae=this._mathfield,Qe=Bo.get(this),ft=Qe.menuItems;Ae.model.deferNotifications({content:!1,selection:!1},()=>{const Ft=Qe.value;Ft!==void 0&&Ae.setValue(Ft),Ae.model.selection=Qe.selection,Bo.delete(this)}),ft&&(this.menuItems=ft)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),vd()}disconnectedCallback(){var t,r;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const n=Od(this._mathfield.options,Object.keys(zd.optionsAttributes).map(i=>rd(i)));Bo.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(r=(t=this._mathfield.menu)==null?void 0:t.menuItems)!=null?r:void 0,options:n}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(t){if(this.hasOwnProperty(t)){const r=this[t];delete this[t],(t==="readonly"||t==="read-only")&&(t="readOnly"),this[t]=r}}attributeChangedCallback(t,r,n){if(r===n)return;const i=n!==null;switch(t){case"contenteditable":Es(this._mathfield);break;case"disabled":this.disabled=i;break;case"read-only":case"readonly":this.readOnly=i;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),pf()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(pf()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:r})}get disabled(){return this.hasAttribute("disabled")}set disabled(t){var r;const n=!!t;n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),pf()?this._internals.ariaDisabled=n?"true":"false":this.setAttribute("aria-disabled",n?"true":"false"),n&&((r=this._mathfield)!=null&&r.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(t){this.setValue(t)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(t){this._setOptions({defaultMode:t})}get macros(){return this._getOption("macros")}set macros(t){this._setOptions({macros:t})}get registers(){const t=this;return new Proxy({},{get:(r,n)=>{if(typeof n=="string")return t._getOption("registers")[n]},set(r,n,i){return typeof n!="string"?!1:(t._setOptions({registers:E(f({},t._getOption("registers")),{[n]:i})}),!0)}})}set registers(t){this._setOptions({registers:t})}get colorMap(){return this._getOption("colorMap")}set colorMap(t){this._setOptions({colorMap:t})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(t){this._setOptions({backgroundColorMap:t})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(t){this._setOptions({letterShapeStyle:t})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(t){this._setOptions({minFontScale:t})}get smartMode(){return this._getOption("smartMode")}set smartMode(t){this._setOptions({smartMode:t})}get smartFence(){return this._getOption("smartFence")}set smartFence(t){this._setOptions({smartFence:t})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(t){this._setOptions({smartSuperscript:t})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(t){this._setOptions({scriptDepth:t})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(t){this._setOptions({removeExtraneousParentheses:t})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(t){this._setOptions({mathModeSpace:t})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(t){this._setOptions({placeholderSymbol:t})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(t){this._setOptions({popoverPolicy:t})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(t){this._setOptions({environmentPopoverPolicy:t})}get menuItems(){var t,r,n;return this._mathfield?(t=this._mathfield.menu._menuItems.map(i=>i.menuItem))!=null?t:[]:(n=(r=Bo.get(this))==null?void 0:r.menuItems)!=null?n:[]}set menuItems(t){var r;if(this._mathfield){const n=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");n&&(n.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}Bo.has(this)?Bo.set(this,E(f({},Bo.get(this)),{menuItems:t})):Bo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Tf(this),menuItems:t})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(t){this._setOptions({mathVirtualKeyboardPolicy:t})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(t){this._setOptions({inlineShortcuts:t})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(t){this._setOptions({inlineShortcutTimeout:t})}get keybindings(){return this._getOption("keybindings")}set keybindings(t){this._setOptions({keybindings:t})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(t){this._setOptions({onInlineShortcut:t})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(t){this._setOptions({onScrollIntoView:t})}get onExport(){return this._getOption("onExport")}set onExport(t){this._setOptions({onExport:t})}get readOnly(){return this._getOption("readOnly")}set readOnly(t){this._setOptions({readOnly:t})}get isSelectionEditable(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.isSelectionEditable)!=null?r:!1}setPromptState(t,r,n){var i;(i=this._mathfield)==null||i.setPromptState(t,r,n)}getPromptState(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?n:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(t){this._setOptions({virtualKeyboardTargetOrigin:t})}get selection(){return this._mathfield?this._mathfield.model.selection:Bo.has(this)?Bo.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(t){if(typeof t=="number"&&(t={ranges:[[t,t]]}),this._mathfield){this._mathfield.model.selection=t,Es(this._mathfield);return}if(Bo.has(this)){Bo.set(this,E(f({},Bo.get(this)),{selection:t}));return}Bo.set(this,{value:void 0,selection:t,options:Tf(this),menuItems:void 0})}get selectionIsCollapsed(){const t=this.selection;return t.ranges.length===1&&t.ranges[0][0]===t.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Bo.has(this)?Bo.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,Es(this._mathfield)),Bo.has(this)){Bo.set(this,E(f({},Bo.get(this)),{selection:{ranges:[[t,t]]}}));return}Bo.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:Tf(this),menuItems:void 0})}getOffsetDepth(t){var r,n;return this._mathfield?((n=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?n:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};Zl.version="0.98.5",Zl._fontsDirectory="./fonts",Zl._soundsDirectory="./sounds",Zl.keypressVibration=!0,Zl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Zl._plonkSound="plonk.wav",Zl.audioBuffers={},Zl.createHTML=e=>e,Zl._speechEngineRate="100%",Zl._speechEngineVoice="Joanna",Zl._textToSpeechMarkup="",Zl._textToSpeechRules="mathlive",Zl._textToSpeechRulesOptions={},Zl.speakHook=ug,Zl.readAloudHook=wg,Zl._decimalSeparator=".",Zl.fractionNavigationOrder="numerator-denominator",Zl._isFunction=e=>{var t,r;const n=window.MathfieldElement.computeEngine;return(r=(t=n==null?void 0:n.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var Of=Zl;function rd(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Tf(e){const t={readOnly:!1},r=Of.optionsAttributes;return Object.keys(r).forEach(n=>{if(e.hasAttribute(n)){const i=e.getAttribute(n);n==="placeholder"?t.contentPlaceholder=i!=null?i:"":r[n]==="boolean"?t[rd(n)]=!0:r[n]==="on/off"?i==="on"?t[rd(n)]=!0:i==="off"?t[rd(n)]=!1:t[rd(n)]=void 0:r[n]==="number"?t[rd(n)]=Number.parseFloat(i!=null?i:"0"):t[rd(n)]=i}}),t}function pf(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var jh=Of,zh,$h,Zh,Vh;if(N()&&!((zh=window.customElements)!=null&&zh.get("math-field"))){(Zh=window[$h=Symbol.for("io.cortexjs.mathlive")])!=null||(window[$h]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=Of,(Vh=window.customElements)==null||Vh.define("math-field",Of)}function Cg(e,t,r){let n=r,i=0;const s=e.length;for(;n<t.length;){const A=t[n];if(i<=0&&t.slice(n,n+s)===e)return n;A==="\\"?n++:A==="{"?i++:A==="}"&&i--,n++}return-1}function h0(e,t,r,n,i="latex"){const s=[];for(const A of e)if(A.type==="text"){const M=A.data;let z=!0,J=0,Ae;Ae=M.indexOf(t),Ae!==-1&&(J=Ae,J>0&&s.push({type:"text",data:M.slice(0,J)}),z=!1);let Qe=!1;for(;!Qe;){if(z){if(Ae=M.indexOf(t,J),Ae===-1){Qe=!0;break}J!==Ae&&s.push({type:"text",data:M.slice(J,Ae)}),J=Ae}else{if(Ae=Cg(r,M,J+t.length),Ae===-1){Qe=!0;break}let ft=M.slice(J+t.length,Ae);i==="ascii-math"&&([,ft]=P(ft,{format:"ascii-math"})),s.push({type:"math",data:ft,rawData:M.slice(J,Ae+r.length),mathstyle:n}),J=Ae+r.length}z=!z}J<M.length&&s.push({type:"text",data:M.slice(J)})}else s.push(A);return s}function Wh(e,t,r){let n=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle")}),t!=null&&t.display&&t.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle","ascii-math")}),n}function Bg(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const n="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(n)}catch(n){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${n}`),r.textContent=e}return r.className="ML__sr-only",r}function Sg(e,t,r,n){try{const i=t.renderToMarkup(e,{mathstyle:r,format:"html"}),s=document.createElement("span");return s.dataset.latex=e,s.style.display=r==="displaystyle"?"flex":"inline-flex",s.setAttribute("aria-hidden","true"),s.setAttribute("translate","no"),s.innerHTML=window.MathfieldElement.createHTML(i),s}catch(i){if(console.error("Could not parse'"+e+"' with ",i),n)return document.createTextNode(e)}return null}function mf(e,t,r,n){var i;const s=Sg(e,r,t||"textstyle",n),A=(i=r.renderAccessibleContent)!=null?i:"";if(s&&/\b(mathml|speakable-text)\b/i.test(A)){const M=document.createElement("span");if(/\bmathml\b/i.test(A)&&r.renderToMathML&&M.append(Bg(e,r)),/\bspeakable-text\b/i.test(A)&&r.renderToSpeakableText){const z=document.createElement("span");z.setAttribute("translate","no");const J=r.renderToSpeakableText(e);z.innerHTML=window.MathfieldElement.createHTML(J),z.className="ML__sr-only",M.append(z)}return M.append(s),M}return s}function Eg(e,t){var r,n,i;let s=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){s=document.createDocumentFragment();const A=mf(e,"",t,!0);A&&s.appendChild(A)}else{if(!e.trim())return null;const A=Wh(e,(n=t.TeX)==null?void 0:n.delimiters,(i=t.asciiMath)==null?void 0:i.delimiters);if(A.length===1&&A[0].type==="text")return null;s=document.createDocumentFragment();for(const M of A)if(M.type==="text")s.appendChild(document.createTextNode(M.data));else{const z=mf(M.data,M.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);z&&s.appendChild(z)}}return s}function Gh(e,t){var r,n,i,s,A,M,z,J,Ae,Qe,ft,Ft,Ot,Er,En,Cr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const nn=(r=e.childNodes[0].textContent)!=null?r:"";if((n=t.TeX)!=null&&n.processEnvironments&&/^\s*\\begin/.test(nn)){e.textContent="";const pn=mf(nn,"",t,!0);pn&&e.append(pn);return}const Pn=Wh(nn,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(Pn.length===1&&Pn[0].type==="math"){e.textContent="";const pn=mf(Pn[0].data,Pn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);pn&&e.append(pn);return}if(Pn.length===1&&Pn[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const Pn=e.childNodes[nn];if(Pn.nodeType===3){const pn=Eg((A=Pn.textContent)!=null?A:"",t);pn&&(nn+=pn.childNodes.length-1,Pn.replaceWith(pn))}else if(Pn.nodeType===1){const pn=Pn,Ii=Pn.nodeName.toLowerCase();if(Ii==="script"){const $i=Pn;let Ui;if((M=t.processScriptTypePattern)!=null&&M.test($i.type))Ui=(z=$i.textContent)!=null?z:"";else if((J=t.processMathJSONScriptTypePattern)!=null&&J.test($i.type))try{Ui=(Qe=t.serializeToLatex)==null?void 0:Qe.call(t,JSON.parse((Ae=$i.textContent)!=null?Ae:""))}catch(lo){console.error(lo)}if(Ui){let lo="textstyle";for(const $n of $i.type.split(";")){const[gA,_u]=$n.toLowerCase().split("=");gA.trim()==="mode"&&(lo=_u.trim()==="display"?"displaystyle":"textstyle")}const Vo=mf(Ui,lo,t,!0);Vo&&$i.parentNode.replaceChild(Vo,$i)}}else if(((Ft=(ft=t.processClassPattern)==null?void 0:ft.test(pn.className))!=null?Ft:!1)||!((Er=(Ot=t.skipTags)==null?void 0:Ot.includes(Ii))!=null&&Er||(Cr=(En=t.ignoreClassPattern)==null?void 0:En.test(pn.className))!=null&&Cr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Ui=e.textContent;e.textContent="";const lo=mf(Ui!=null?Ui:"","displaystyle",t,!0);lo&&e.append(lo)}else Gh(pn,t)}}}var _g={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function Fg(e,t){var r,n,i,s;try{const A=f(f({},_g),t);A.ignoreClassPattern=new RegExp((r=A.ignoreClass)!=null?r:""),A.processClassPattern=new RegExp((n=A.processClass)!=null?n:""),A.processScriptTypePattern=new RegExp((i=A.processScriptType)!=null?i:""),A.processMathJSONScriptTypePattern=new RegExp((s=A.processMathJSONScriptType)!=null?s:""),vd(),Kl("core"),Gh(e,A)}catch(A){A instanceof Error?console.error("renderMathInElement(): "+A.message):console.error("renderMathInElement(): Could not render math for element",e)}}function Ig(e,t){const r=bd.singleton;return r?(r.show(),yd(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function Mg(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}ic({switchKeyboardLayer:Ig,toggleVirtualKeyboard:Mg,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Cd(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Og(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Tg(e){kg(document.body,e)}function Lg(e){if(typeof e=="string"){const t=document.getElementById(e);if(t===null)throw new Error(`The element with ID "${e}" could not be found.`);return t}return typeof e=="string"?null:e}function kg(e,t){var r,n,i,s;const A=Lg(e);if(!A)return;const M=t!=null?t:{};(r=M.renderToMarkup)!=null||(M.renderToMarkup=Il),(n=M.renderToMathML)!=null||(M.renderToMathML=zm),(i=M.renderToSpeakableText)!=null||(M.renderToSpeakableText=$m),(s=M.serializeToLatex)!=null||(M.serializeToLatex=Zm),Fg(A,M)}var Ug={mathlive:"0.98.5"}}}]);
}());